:root {
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui,
    sans-serif;
  color: #18263a;
  background: #f1f5f7;
  font-synthesis: none;
  --nav: #112033;
  --ink: #18263a;
  --muted: #657489;
  --line: #dce5eb;
  --teal: #087f76;
  --teal-hover: #09665f;
  --soft: #e7f6f2;
  --white: #fff;
  --radius: 14px;
}

.landed-cost-chart { margin-bottom: 1rem; }
.landed-cost-totals { display: flex; flex-wrap: wrap; gap: .4rem 1.15rem; align-items: baseline; margin: .65rem 0; }
.landed-cost-rail { display: flex; height: .9rem; overflow: hidden; border-radius: .35rem; background: var(--line); }
.landed-cost-rail span { flex-basis: 0; min-width: 0; }
.landed-cost-allocation-bar { margin-top: .6rem; display: grid; gap: .2rem; }
.landed-cost-goods { background: #08786c; }
.landed-cost-added { background: #335f94; }
.landed-cost-wip { background: #72428a; }
.landed-cost-finished { background: #40733c; }
.landed-cost-sales { background: #a75422; }
.landed-cost-finished-sales { background: #993655; }
.landed-cost-totals .landed-cost-legend-stock { border-left: .25rem solid #335f94; padding-left: .45rem; }
.landed-cost-totals .landed-cost-legend-wip { border-left: .25rem solid #72428a; padding-left: .45rem; }
.landed-cost-totals .landed-cost-legend-finished { border-left: .25rem solid #40733c; padding-left: .45rem; }
.landed-cost-totals .landed-cost-legend-sales { border-left: .25rem solid #a75422; padding-left: .45rem; }
.landed-cost-totals .landed-cost-legend-finished-sales { border-left: .25rem solid #993655; padding-left: .45rem; }

.purchase-intake { margin-bottom: 1rem; }
.purchase-intake-picker { display: grid; gap: .3rem; min-width: min(21rem, 100%); color: var(--muted); }
.purchase-intake-picker select { min-width: 0; width: 100%; }
.purchase-intake-facts { display: flex; align-items: baseline; flex-wrap: wrap; gap: .15rem 1rem; margin: .75rem 0; }
.purchase-intake-facts p { margin: 0; }
.purchase-intake-supplement { color: var(--ink); font-size: .86rem; }
.purchase-intake-rail { display: flex; overflow: hidden; border-radius: .35rem; height: 1rem; background: var(--line); }
.purchase-intake-rail span { flex-basis: 0; min-width: 0; opacity: .72; }
.purchase-intake-rail .is-current { opacity: 1; }
.purchase-intake-posted { background: #08786c; }
.purchase-intake-registered { background: #97651d; }
.purchase-intake-undelivered { background: #335f94; }
.purchase-intake-cancelled { background: #67768a; }
.purchase-intake-controls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .55rem; margin: .75rem 0; }
.purchase-intake-stage {
  display: grid;
  justify-items: start;
  gap: .3rem;
  min-width: 0;
  min-height: 3.5rem;
  padding: .45rem .7rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: var(--white);
  color: var(--ink);
  text-align: left;
}
.purchase-intake-stage[aria-pressed="true"] { border-color: var(--teal); background: var(--soft); }
.purchase-intake-stage > span { align-items: center; display: flex; gap: .35rem; font-size: .85rem; }
.purchase-intake-stage > strong { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.purchase-intake-swatch { flex: 0 0 .6rem; height: .6rem; border-radius: .125rem; }
.purchase-intake-links { display: flex; flex-wrap: wrap; gap: .6rem; }
@media (max-width: 640px) {
  .purchase-intake-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.production-reservation-chart {
  margin-bottom: 1rem;
}

.production-reservation-picker {
  display: grid;
  gap: .25rem;
  min-width: min(20rem, 100%);
  color: var(--muted);
}

.production-reservation-track {
  display: flex;
  height: .875rem;
  overflow: hidden;
  border-radius: .5rem;
  background: var(--line);
}

.production-reservation-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  list-style: none;
  padding: 0;
  margin: .75rem 0 0;
}

.production-reservation-legend li {
  display: flex;
  align-items: center;
  gap: .375rem;
}

.production-reservation-key {
  width: .625rem;
  height: .625rem;
  border-radius: .125rem;
}

.production-reservation-pending { background: #97651d; }
.production-reservation-converted { background: #007b6e; }
.production-reservation-released { background: #66768a; }
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #3caa9f;
  outline-offset: 2px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
#app {
  min-height: 100vh;
}
.shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}
.rail {
  background: var(--nav);
  color: #c5d3e4;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  min-height: 0;
  padding: 24px 17px 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: 0.05em;
}
.rail .brand {
  padding: 0 10px 25px;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 0.19em;
  font-weight: 650;
  color: #91a7bc;
  margin-top: 6px;
}
.brand-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #93e0cd;
  color: #102e34;
  font-size: 21px;
  font-weight: 850;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 1px #c1f0e3;
}
.workspace-label {
  padding: 7px 10px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  color: #8298af;
}
.navigation {
  overflow: auto;
  flex: 1;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: #3b4f66 transparent;
}
.nav-link,
.nav-section summary {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 40px;
  gap: 10px;
  color: #c7d3e1;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  padding: 9px 11px;
  cursor: pointer;
}
.nav-link:hover,
.nav-section summary:hover {
  background: #ffffff12;
  color: #fff;
}
.nav-link.active {
  color: #d3fff2;
  background: #1e4349;
  box-shadow: inset 3px 0 #76d8bf;
}
.nav-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 17px;
  color: #96d9cd;
  font-size: 17px;
}
.nav-section {
  margin-top: 4px;
}
.nav-section summary {
  list-style: none;
}
.nav-section summary::-webkit-details-marker {
  display: none;
}
.nav-section summary::after {
  content: "›";
  margin-left: auto;
  color: #8ea4b8;
  transition: transform 0.16s;
  font-size: 17px;
}
.nav-section[open] summary::after {
  transform: rotate(90deg);
}
.subnav {
  padding-left: 18px;
}
.subnav .nav-link {
  min-height: 34px;
  padding-block: 7px;
  font-weight: 500;
}
.profile {
  margin-top: 10px;
  border-top: 1px solid #ffffff20;
  padding: 15px 8px 1px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  background: #d4e9e6;
  color: #13534d;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
}
.profile strong,
.profile span:not(.avatar) {
  display: block;
}
.profile strong {
  color: #f2f8fc;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 112px;
}
.profile span:not(.avatar) {
  font-size: 11px;
  color: #88a2b8;
  margin-top: 4px;
}
.profile .quiet {
  margin-left: auto;
  color: #9fb3c7;
}
.main {
  min-width: 0;
}
.topbar {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 36px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.crumb {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}
.crumb strong {
  color: var(--ink);
  font-weight: 680;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.keycap {
  font: 11px system-ui;
  color: #69798b;
  background: #f1f5f7;
  border: 1px solid #e1e8ed;
  padding: 2px 5px;
  border-radius: 5px;
  margin-left: 10px;
}
.quiet,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 8px;
  white-space: nowrap;
  min-height: 34px;
  padding: 6px 11px;
  font-size: 13px;
  font-weight: 650;
}
.quiet {
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
}
.quiet:hover {
  background: #8090a51b;
  color: var(--ink);
}
.profile .quiet:hover {
  color: #fff;
}
.btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  min-height: 38px;
  padding: 8px 14px;
}
.btn:hover {
  background: #eef5f5;
}
.btn.primary {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
.btn.primary:hover {
  background: var(--teal-hover);
  border-color: var(--teal-hover);
}
.btn.inverse {
  background: #d8f6ec;
  color: #104e49;
  border-color: #d8f6ec;
}
.btn.inverse:hover {
  background: #f2fffb;
}
.menu-toggle,
.rail-close,
.rail-backdrop {
  display: none;
}
.content {
  padding: 30px 36px 42px;
  max-width: 1520px;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  margin: 0 0 21px;
}
.page-heading h1 {
  font-size: 31px;
  letter-spacing: -0.04em;
  line-height: 1.2;
  font-weight: 800;
}
.page-heading p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.hero {
  color: #f4fffc;
  min-height: 206px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 29px 32px;
  border-radius: 17px;
  background: linear-gradient(113deg, #112c3e 0%, #173b49 50%, #17675f 100%);
  display: flex;
  align-items: center;
}
.hero::after,
.auth-art::after {
  content: "";
  pointer-events: none;
  position: absolute;
  z-index: -1;
  width: 70%;
  height: 100%;
  right: 0;
  bottom: 0;
  opacity: 0.52;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 39px,
      #a4e9d523 40px,
      #a4e9d523 41px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 39px,
      #a4e9d523 40px,
      #a4e9d523 41px
    );
  mask-image: linear-gradient(90deg, transparent, #000);
}
.hero-orbits {
  position: absolute;
  z-index: -1;
  right: 9%;
  top: 50%;
  width: 210px;
  height: 210px;
  transform: translateY(-50%) rotate(-12deg);
  border: 1px solid #baf7e956;
  border-radius: 50%;
  box-shadow:
    0 0 0 35px #b0ffe011,
    0 0 0 66px #b0ffe009;
}
.hero-orbits::before,
.hero-orbits::after {
  content: "";
  position: absolute;
  border: 1px solid #baf7e96e;
  border-radius: 50%;
  inset: 23px;
  transform: rotate(36deg) scaleX(0.58);
}
.hero-orbits::after {
  transform: rotate(-36deg) scaleX(0.58);
}
.hero-coordinates {
  position: absolute;
  right: 12%;
  top: 50%;
  height: 7px;
  width: 7px;
  border-radius: 50%;
  background: #c5ffe7;
  box-shadow:
    27px -41px 0 0 #8ee4c9,
    -54px -54px 0 -1px #c5ffe7,
    -103px 52px 0 0 #b7ffdc,
    -27px 55px 0 -2px #d7ffe7;
}
.hero-date {
  color: #a0ddcf;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.hero h2 {
  font-size: clamp(25px, 4vw, 38px);
  font-weight: 820;
  line-height: 1.15;
  letter-spacing: -0.035em;
}
.hero .btn {
  margin-top: 16px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.metric,
.panel,
.table-panel {
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 2px 2px #0c2a3c04;
}
.metric {
  padding: 17px 18px;
  min-height: 106px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.metric-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  color: #516176;
  font-weight: 650;
  font-size: 12px;
}
.metric-icon {
  font-size: 17px;
  color: #138678;
  background: #e5f5f1;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
}
.metric strong {
  font-size: 27px;
  font-weight: 820;
  letter-spacing: -0.04em;
  margin-top: 7px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(265px, 0.75fr);
  gap: 16px;
}
.panel {
  padding: 19px 21px;
}
.panel + .panel.full {
  margin-top: 16px;
}
.panel h2 {
  font-size: 17px;
  letter-spacing: -0.018em;
  font-weight: 790;
}
.panel-subtitle {
  font-size: 12px;
  color: var(--muted);
  margin: 6px 0 13px;
}
.project-budget-chart {
  margin: 0 0 16px;
}
.order-flow-chart {
  margin-bottom: 16px;
}
.order-flow-chart-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 12px;
}
.order-flow-bars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 265px), 1fr));
  gap: 6px 12px;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.order-flow-bar {
  display: grid;
  grid-template-columns: minmax(92px, auto) minmax(26px, 1fr) auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface, #fff);
  color: inherit;
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.order-flow-bar[aria-pressed="true"] {
  background: #e5f4ff;
  border-color: #3978a6;
  font-weight: 650;
}
.order-flow-bar:hover {
  border-color: #3978a6;
}
.order-flow-bar:focus-visible {
  outline: 2px solid #3978a6;
  outline-offset: 2px;
}
.order-flow-track {
  display: block;
  height: 8px;
  background: #e5edf2;
  border-radius: 4px;
}
.order-flow-fill {
  display: block;
  width: var(--order-flow-width, 0%);
  height: 100%;
  background: #266289;
  border-radius: inherit;
}
.external-maturity-totals {
  display: grid;
  gap: 12px;
  margin: 12px 0;
}
.order-flow-fill.external-maturity-out {
  background: #935336;
}
.aging-chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
  gap: 12px;
  margin-top: 12px;
}
.aging-chart-controls {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.analytics-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 0 14px;
}
.inventory-alert-chart-content {
  margin-top: 15px;
}
.inventory-alert-bar {
  display: flex;
  overflow: hidden;
  background: #e5edf2;
  border-radius: 7px;
  height: 14px;
}
.inventory-alert-bar span {
  flex: 0 0 var(--inventory-segment, 0%);
}
.inventory-alert-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 9px 0;
  padding: 0;
  list-style: none;
}
.inventory-alert-legend li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
}
.inventory-alert-key {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}
.inventory-alert-out {
  background: #a4413a;
}
.inventory-alert-low {
  background: #a46323;
}
.inventory-alert-healthy {
  background: #26705a;
}
.project-budget-header {
  display: flex;
  gap: 12px 20px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}
.project-budget-description {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.project-budget-picker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 9px;
  font-size: 13px;
  font-weight: 650;
  min-width: 0;
  max-width: 100%;
}
.project-budget-picker .control {
  width: min(265px, 100%);
  min-width: 0;
}
.funding-deadline-chart {
  --funding-in: #167965;
  --funding-out: #ad503a;
}
.funding-deadline-slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 118px), 1fr));
  gap: 8px;
}
.funding-deadline-slot {
  min-width: 0;
  min-height: 109px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 7px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: #f7fafb;
  padding: 9px;
}
.funding-deadline-slot:not(:disabled):hover,
.funding-deadline-slot[aria-pressed="true"] {
  background: var(--soft);
  border-color: var(--teal);
}
.funding-deadline-slot:disabled {
  cursor: default;
}
.funding-deadline-values {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
  overflow-wrap: anywhere;
  align-self: start;
}
.funding-deadline-values span {
  display: block;
}
.funding-deadline-values span:first-child {
  color: var(--muted);
}
.funding-deadline-tracks {
  display: grid;
  justify-items: start;
  grid-template-rows: repeat(2, 5px);
  gap: 3px;
  border-inline-start: 1px solid #bacbd4;
  background: #e9eff2;
}
.funding-deadline-tracks span {
  width: var(--funding-bar, 0);
}
.funding-deadline-chart .funding-in {
  background: var(--funding-in);
}
.funding-deadline-chart .funding-out {
  background: var(--funding-out);
}
.funding-deadline-actions .btn {
  margin-top: 9px;
}
.cash-3d-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 15px;
  list-style: none;
  padding: 0;
  margin: 13px 0 9px;
  font-size: 12px;
  color: var(--muted);
}
.cash-3d-legend li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cash-3d-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
}
.cash-3d-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(190px, 1fr);
  gap: 13px;
  align-items: start;
}
.cash-3d-plot-area,
.cash-3d-inspector {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
  min-width: 0;
}
.cash-3d-canvas {
  display: block;
  width: 100%;
  height: clamp(265px, 38vw, 395px);
  border-radius: 10px 10px 0 0;
  touch-action: none;
  cursor: grab;
}
.cash-3d-canvas:active { cursor: grabbing; }
.cash-3d-canvas:focus-visible {
  outline: 2px solid #3165ce;
  outline-offset: -2px;
}
.cash-3d-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 9px;
  border-top: 1px solid var(--line);
}
.cash-3d-inspector { padding: 12px; }
.cash-3d-amounts { margin: 10px 0 0; }
.cash-3d-amounts > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding: 7px 5px;
  font-size: 13px;
}
.cash-3d-amounts > div:last-child { border-bottom: none; }
.cash-3d-amounts > div.selected {
  background: #e9f0ff;
  border-radius: 5px;
}
.cash-3d-amounts dd {
  margin: 0;
  font-weight: 720;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.group-liquidity-3d { margin-top: 15px; }
.group-liquidity-3d-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px 11px;
}
.group-liquidity-3d .cash-3d-legend { margin-top: 7px; }
.group-liquidity-canvas { cursor: pointer; touch-action: pan-y; }
.cash-waterfall-bars {
  display: grid;
  gap: 10px;
  margin-top: 13px;
}
.cash-waterfall-total .project-budget-bar.actual:not(.zero) { background: #263d69; }
.publication-revision-card { display: grid; gap: 6px; }
.publication-revision-card code { overflow-wrap: anywhere; }
.publication-revision-card a { justify-self: start; }
.publication-revision-waterfall { margin-top: 13px; }
@media (max-width: 760px) {
  .cash-3d-layout { grid-template-columns: minmax(0, 1fr); }
}
.project-budget-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 12px;
  margin-top: 16px;
}
.project-budget-metric {
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 10px;
  min-width: 0;
  padding: 13px 15px;
}
.project-budget-metric h3 {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 780;
}
.project-budget-series + .project-budget-series {
  margin-top: 8px;
}
.project-budget-value,
.project-budget-axis {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2px 8px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.project-budget-value strong {
  overflow-wrap: anywhere;
}
.project-budget-axis {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}
.project-budget-track {
  height: 8px;
  position: relative;
  margin-top: 4px;
  border-radius: 3px;
  background: #e6edf2;
  overflow: hidden;
}
.project-budget-track::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: clamp(0px, var(--zero), calc(100% - 1px));
  border-left: 1px solid #465c70;
  content: "";
}
.project-budget-bar {
  position: absolute;
  inset: 0 auto 0 var(--bar-start);
  width: var(--bar-width);
  border-radius: 2px;
  background: var(--teal-hover);
}
.project-budget-bar.budget {
  border: 1px solid #6b8093;
  background: repeating-linear-gradient(135deg, #a8b9c7 0 3px, #d2dde6 3px 6px);
}
.project-budget-bar.zero {
  inset-inline-start: clamp(0px, var(--bar-start), calc(100% - 4px));
  width: 4px;
}
.project-budget-gap {
  margin-top: 8px;
  color: #09665f;
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.project-budget-gap.unfavorable {
  color: #9b3125;
}
.operating-trend-scroll {
  overflow-x: auto;
  margin-top: 15px;
}
.operating-trend-bars {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(62px, 1fr);
  gap: 2px;
  padding: 3px;
}
.project-forecast-bars {
  grid-auto-columns: minmax(90px, 1fr);
}
.operating-month {
  display: grid;
  grid-template-rows: 118px auto;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: #f6f9fa;
  color: var(--ink);
  padding: 6px 0;
  min-width: 0;
}
.operating-month:hover,
.operating-month[aria-pressed="true"] {
  background: #e7f6f2;
  border-color: #329387;
}
.operating-month-rail {
  position: relative;
}
.operating-month-rail::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: clamp(0px, var(--operating-zero), calc(100% - 1px));
  border-top: 1px solid #64798c;
}
.operating-month-fill {
  position: absolute;
  top: var(--operating-top);
  left: 34%;
  width: 32%;
  height: max(2px, var(--operating-height));
  border-radius: 2px;
  background: #087f76;
}
.operating-month-fill.negative {
  background: #9b432f;
}
.operating-month-fill.zero {
  top: clamp(0px, var(--operating-top), calc(100% - 2px));
  background: #64798c;
}
.operating-month-label {
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.operating-trend-detail {
  margin-top: 14px;
}
.operating-trend-detail h3 {
  font-size: 14px;
}
.operating-trend-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr));
  gap: 8px;
  margin: 8px 0 0;
}
.operating-trend-values > div {
  background: #f6f9fa;
  border-radius: 7px;
  padding: 8px 10px;
}
.operating-trend-values dt {
  color: var(--muted);
  font-size: 12px;
}
.operating-trend-values dd {
  margin: 3px 0 0;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.capacity-timeline-scroll {
  overflow-x: auto;
  margin-top: 14px;
  padding-bottom: 3px;
}
.capacity-schedule-grid {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(120px, 180px) 1fr;
  gap: 7px 11px;
  min-width: max(330px, calc(155px + var(--capacity-hours) * 26px));
  padding: 0 30px 3px 3px;
}
.capacity-schedule-grid > :first-child,
.capacity-schedule-device {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.capacity-schedule-axis {
  position: relative;
  min-height: 24px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.capacity-schedule-axis span {
  position: absolute;
  inset-inline-start: var(--tick);
  transform: translateX(-50%);
}
.capacity-schedule-track {
  position: relative;
  height: 35px;
  border-radius: 5px;
  background: #e9f0f3;
}
.capacity-schedule-block {
  position: absolute;
  top: 3px;
  bottom: 3px;
  inset-inline-start: var(--booking-start);
  width: var(--booking-width);
  min-width: 1px;
  border: 0;
  border-radius: 4px;
  padding: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
  background: #146d64;
  font-size: 11px;
}
.capacity-schedule-block:hover {
  background: #154f65;
}
.shortcut {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 4px;
  color: #2b4056;
  border-bottom: 1px solid #eef2f5;
  font-size: 13px;
  font-weight: 650;
}
.shortcut:last-child {
  border: 0;
}
.shortcut:hover {
  color: var(--teal);
}
.shortcut::after {
  content: "›";
  color: #7c8da0;
  margin-left: auto;
  font-size: 18px;
}
.chart {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 9px;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 32px,
    #e8eff2 33px,
    #e8eff2 34px
  );
  border-bottom: 1px solid var(--line);
  height: 170px;
}
.chart-item {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: flex-start;
  font-size: 10px;
  color: var(--muted);
  min-width: 0;
  gap: 4px;
}
.bar {
  width: 60%;
  max-width: 32px;
  min-height: 3px;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(#67c8b1, #168679);
  height: var(--height, 3px);
}
.chart-day {
  padding: 3px 0;
  background: #fff;
  width: 100%;
  text-align: center;
  white-space: nowrap;
}
.chart-value {
  font-size: 10px;
  background: #fff;
  padding: 0 2px;
  font-weight: 650;
  color: #4c6b70;
}
.recent {
  margin-top: 17px;
}
.recent-line {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #edf2f4;
  font-size: 13px;
}
.recent-line:last-child {
  border-bottom: 0;
}
.recent-line span:not(:first-child) {
  color: var(--muted);
}
.filters,
.table-tools {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.filters {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.period-filter {
  margin-bottom: 16px;
}
.period-filter .filters {
  border-bottom: 0;
}
.group-liquidity-data table {
  min-width: 1180px;
}
.group-liquidity-data td:nth-child(2) {
  min-width: 10rem;
}
.group-liquidity-data td:nth-child(1),
.group-liquidity-data td:nth-child(5) {
  min-width: 7.5rem;
}
.group-liquidity-data td:nth-child(4),
.group-liquidity-data td:nth-child(13) {
  white-space: nowrap;
}
.filter-field {
  width: min(190px, 100%);
}
.table-tools {
  padding: 13px 16px;
  justify-content: space-between;
}
.table-tools strong {
  font-size: 13px;
}
.table-tools .control {
  min-width: 170px;
  width: min(100%, 235px);
}
.table-scroll {
  overflow: auto;
  max-width: 100%;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
th {
  color: #4a6277;
  background: #f0f6f7;
  font-size: 12px;
  white-space: nowrap;
  font-weight: 700;
}
td,
th {
  padding: 13px 15px;
  border-bottom: 1px solid #e6edf0;
  line-height: 1.42;
}
td {
  max-width: 390px;
  overflow-wrap: anywhere;
  vertical-align: middle;
}
tbody tr:hover {
  background: #f7fafb;
}
.currency {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}
.table-actions {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  min-width: max-content;
}
.table-actions .quiet {
  color: var(--teal);
  padding-inline: 7px;
  min-height: 28px;
}
.chip {
  display: inline-block;
  padding: 3px 8px;
  background: #eaf0f4;
  color: #39566b;
  font-size: 11px;
  font-weight: 700;
  border-radius: 20px;
  white-space: nowrap;
}
.chip.good {
  background: #dcf2e8;
  color: #167359;
}
.chip.waiting {
  background: #fff1d9;
  color: #855006;
}
.chip.bad {
  background: #fce6e6;
  color: #a83838;
}
.empty {
  min-height: 155px;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 22px;
  color: var(--muted);
  font-size: 13px;
  gap: 9px;
}
.empty strong {
  color: var(--ink);
  font-size: 15px;
}
.pages {
  padding: 11px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}
.pages div {
  display: flex;
  gap: 5px;
}
.error,
.toast {
  padding: 11px 13px;
  border: 1px solid #f2cfcf;
  background: #fff0f0;
  color: #943232;
  border-radius: 8px;
  line-height: 1.5;
  font-size: 13px;
}
.table-panel > .error {
  margin: 14px 16px;
}
.toasts {
  position: fixed;
  z-index: 5;
  bottom: 22px;
  right: 22px;
  display: grid;
  gap: 6px;
  max-width: calc(100vw - 44px);
}
.toast.success {
  background: #e8f9f2;
  color: #14654d;
  border-color: #bae4d4;
  box-shadow: 0 5px 20px #0a243522;
}
.dialog {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  max-height: 90dvh;
  width: min(690px, calc(100vw - 28px));
  background: #fff;
  box-shadow: 0 16px 60px #101d3544;
}
.dialog::backdrop {
  background: #1322348c;
}
.dialog-head,
.dialog-foot {
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fff;
}
.dialog-head {
  border-bottom: 1px solid var(--line);
}
.dialog-head h2 {
  font-size: 19px;
  letter-spacing: -0.015em;
}
.dialog-foot {
  border-top: 1px solid var(--line);
  justify-content: flex-end;
}
.dialog-body {
  padding: 18px 22px;
  overflow: auto;
  max-height: calc(90dvh - 135px);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px 17px;
}
.field {
  min-width: 0;
}
.field.wide,
.wide {
  grid-column: 1/-1;
}
.field label,
.field-title {
  display: block;
  color: #405266;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}
.field small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 5px;
  line-height: 1.45;
}
.control {
  display: block;
  width: 100%;
  min-width: 0;
  border: 1px solid #cbd8e1;
  border-radius: 8px;
  padding: 9px 10px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
  min-height: 36px;
}
.control[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  accent-color: var(--teal);
}
textarea.control {
  resize: vertical;
  min-height: 85px;
}
.repeat-row {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px;
  margin-bottom: 8px;
  background: #f7fafa;
}
.repeat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #596f81;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 7px;
}
.dialog .error {
  margin-top: 12px;
}
.detail {
  display: grid;
  grid-template-columns: minmax(108px, 0.4fr) minmax(0, 1fr);
  font-size: 13px;
  margin: 0;
}
.detail dt,
.detail dd {
  margin: 0;
  padding: 9px 0;
  border-bottom: 1px solid #e6edf0;
  overflow-wrap: anywhere;
}
.detail dt {
  font-weight: 650;
  color: var(--muted);
}
.detail pre {
  white-space: pre-wrap;
  margin: 0;
  word-break: break-word;
}
.auth {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fbfdfd;
}
.auth-art {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(138deg, #102238, #124c4c);
  color: #fff;
  padding: clamp(28px, 5vw, 78px);
}
.auth-art::after {
  width: 100%;
  height: 80%;
}
.auth-art .hero-orbits {
  width: clamp(180px, 29vw, 440px);
  height: clamp(180px, 29vw, 440px);
  right: 15%;
  top: 53%;
}
.auth-copy {
  z-index: 1;
}
.auth-copy h1 {
  font-size: clamp(32px, 5.3vw, 79px);
  letter-spacing: -0.05em;
  line-height: 1.08;
}
.auth-copy p {
  margin-top: 13px;
  color: #c8e1e0;
  font-size: clamp(13px, 1.4vw, 17px);
  line-height: 1.6;
}
.auth-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px;
}
.auth-form form {
  width: min(390px, 100%);
  display: grid;
  gap: 16px;
}
.auth-form h2 {
  font-size: 30px;
  letter-spacing: -0.035em;
  margin-bottom: 4px;
}
.auth-form p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.auth-form .btn {
  min-height: 44px;
}
.auth-form .control {
  min-height: 43px;
}
.auth-form .field label {
  font-size: 13px;
}
.muted {
  color: var(--muted);
}
.loading {
  min-height: 100vh;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.skip {
  position: fixed;
  top: 8px;
  left: 8px;
  padding: 8px;
  background: #fff;
  z-index: 8;
  transform: translateY(-140%);
}
.skip:focus {
  transform: none;
}
.search-list {
  min-height: 80px;
}
.search-list .shortcut:first-child {
  margin-top: 4px;
}
.initial-brand {
  margin-bottom: 23px;
}
.hidden,
[hidden] {
  display: none !important;
}
@media (max-width: 1080px) {
  .shell {
    grid-template-columns: 205px minmax(0, 1fr);
  }
  .content {
    padding-inline: 24px;
  }
  .topbar {
    padding-inline: 24px;
  }
  .rail {
    padding-inline: 13px;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 13px;
  }
  .profile strong {
    max-width: 90px;
  }
}
@media (max-width: 780px) {
  .shell {
    display: block;
  }
  .rail {
    position: fixed;
    left: 0;
    top: 0;
    width: 245px;
    transform: translateX(-100%);
    visibility: hidden;
    transition:
      transform 0.2s,
      visibility 0.2s;
    z-index: 3;
    box-shadow: 0 0 45px #0d22344d;
  }
  .rail.open {
    transform: none;
    visibility: visible;
  }
  .menu-toggle,
  .rail-close {
    display: inline-flex;
  }
  .rail-close {
    position: absolute;
    right: 11px;
    top: 17px;
    color: #c5d3e4;
    font-size: 18px;
  }
  .rail-close:hover {
    color: #fff;
  }
  .rail-backdrop {
    display: block;
    position: fixed;
    z-index: 2;
    inset: 0;
    background: #1322348c;
    border: 0;
  }
  .topbar {
    height: 54px;
    padding: 0 14px;
    gap: 8px;
  }
  .content {
    padding: 18px 14px 30px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .hero {
    min-height: 185px;
    padding: 22px;
  }
  .hero-orbits {
    opacity: 0.58;
    right: 0;
  }
  .hero-coordinates {
    opacity: 0.5;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .metric {
    min-height: 88px;
  }
  .recent-line {
    grid-template-columns: 1fr 1fr;
  }
  .recent-line span:last-child {
    grid-column: 1/-1;
    font-size: 11px;
  }
  .auth {
    grid-template-columns: 1fr;
  }
  .auth-art {
    min-height: 236px;
  }
  .auth-copy h1 {
    font-size: 36px;
  }
  .auth-form {
    padding: 26px 20px;
  }
  .auth-art .hero-orbits {
    right: 6%;
    top: 66%;
  }
  .table-tools .control {
    min-width: 0;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .keycap {
    display: none;
  }
  .crumb {
    gap: 6px;
  }
  .crumb span {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
