:root {
  color-scheme: light;
  --ink: #272333;
  --muted: #615a70;
  --line: #e2dce7;
  --canvas: #f7f5f0;
  --surface: #fffefa;
  --white: #ffffff;
  --green: #33234e;
  --green-hover: #241735;
  --mint: #e7eedc;
  --purple-wash: #ede6f5;
  --danger: #9a352b;
  --focus: #7456a1;
  --radius: 12px;
  --font: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 0; }
body {
  margin: 0;
  min-width: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 14px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .62; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
a { color: var(--green); text-underline-offset: 3px; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.3; font-weight: 690; }
h1 { font-size: clamp(26px, 3.15vw, 38px); letter-spacing: -.04em; }
h2 { font-size: 20px; letter-spacing: -.018em; }
h3 { font-size: 16px; }

.shell { min-height: 100vh; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.masthead { border-bottom: 1px solid var(--line); background: var(--canvas); }
.masthead-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: clamp(20px, 3vw, 48px);
  min-height: 63px;
  max-width: 1424px;
  margin: 0 auto;
  padding-inline: clamp(18px, 4vw, 54px);
}
.brand { display: flex; gap: 10px; align-items: center; color: var(--ink); text-decoration: none; }
.brand-mark {
  flex: 0 0 auto;
  display: block;
  width: 70px;
  height: auto;
  border-radius: 6px;
}
.brand-copy { display: flex; align-items: baseline; gap: 7px; min-width: 0; font-size: 17px; font-weight: 700; line-height: 1.4; white-space: nowrap; }
.brand-copy span { color: var(--muted); font-size: 11px; font-weight: 500; }
.primary-nav, .masthead-tools { display: flex; align-items: center; gap: 6px; min-width: 0; }
.masthead-tools { justify-self: end; }
.nav-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 5px 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.nav-button:hover { color: var(--green); background: #f6f1f8; }
.nav-button.active, .nav-button[aria-current='page'] { color: var(--green); border-color: #e5d9ef; background: var(--purple-wash); font-weight: 690; }
.nav-count { min-width: 18px; padding: 0 4px; border-radius: 12px; background: var(--purple-wash); color: var(--green); text-align: center; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.connection { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.connection-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #a49bab; }
.connection-dot.online { background: #58863e; }
.session-name {
  max-width: 10ch;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.login-panel {
  display: grid;
  justify-items: start;
  gap: 16px;
  width: min(100%, 530px);
  margin: clamp(24px, 8vh, 95px) auto 0;
  padding: clamp(22px, 5vw, 42px);
}
.login-panel h1 { font-size: clamp(26px, 4vw, 34px); }
.login-panel > p:not(.form-error) { color: var(--muted); }
.login-panel .form-error { margin: 0; }

.main { min-width: 0; }
.template-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.content { max-width: 1424px; min-width: 0; margin: 0 auto; padding: 27px clamp(18px, 4vw, 54px) 52px; }
.overview-header { margin-bottom: 24px; }
.heading-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px 20px; }
.heading-row > :first-child { min-width: 0; }
.heading-row p, .overview-header > p { margin-top: 7px; color: var(--muted); }
.eyebrow { margin-bottom: 5px; color: var(--green); font-size: 12px; font-weight: 670; }

.metrics, .financial-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.metrics { margin-bottom: 23px; }
.metric { min-width: 0; padding: 17px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.metric-label { display: block; color: var(--muted); font-size: 12px; font-weight: 640; }
.metric-value { display: block; margin-top: 5px; color: var(--ink); font-size: clamp(23px, 2.6vw, 33px); line-height: 1.15; font-weight: 730; font-variant-numeric: tabular-nums; letter-spacing: -.04em; overflow-wrap: anywhere; }
.metric-note { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.panel + .panel { margin-top: 14px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px 18px; padding: 17px 19px; }
.panel-head p { margin-top: 4px; color: var(--muted); font-size: 13px; }
.filters { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; min-width: 0; }
.search-box { display: flex; align-items: center; min-width: 0; position: relative; }
.search-box svg, .search-box span { position: absolute; inset-inline-start: 10px; width: 16px; height: 16px; color: var(--muted); line-height: 16px; pointer-events: none; }
.search-box input[type='search'] { width: min(250px, 100%); min-width: 0; padding-inline-start: 29px; }
input:not([type='checkbox']):not([type='radio']), select, textarea {
  min-height: 38px;
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid #bfcfc5;
  border-radius: 7px;
  background: var(--white);
  color: var(--ink);
}
input::placeholder, textarea::placeholder { color: #66786f; opacity: 1; }
input[readonly], select:disabled { background: #edf1ec; color: var(--muted); }
textarea { min-height: 78px; resize: vertical; }
.table-wrap { max-width: 100%; overflow-x: auto; border-radius: 0 0 var(--radius) var(--radius); }
.product-table { width: 100%; min-width: 650px; border-collapse: collapse; text-align: left; }
.product-table th, .product-table td { padding: 12px 15px; border-top: 1px solid var(--line); vertical-align: middle; }
.product-table th:first-child, .product-table td:first-child { padding-inline-start: 19px; }
.product-table th:last-child, .product-table td:last-child { padding-inline-end: 19px; }
.product-table th { background: #f4f0f6; color: #534765; font-size: 12px; font-weight: 670; white-space: nowrap; }
.product-table tbody tr:hover { background: #f9f5fc; }
.product-link { display: inline-block; padding: 0; border: 0; background: none; color: var(--green); text-align: left; text-decoration: none; font-weight: 690; overflow-wrap: anywhere; }
.product-link:hover { text-decoration: underline; }
.product-sub { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.listed-launch-dates { display: grid; gap: 2px; font-variant-numeric: tabular-nums; }
.listed-launch-dates time { display: inline-block; white-space: nowrap; }
.listed-launch-plan, .listed-launch-empty { color: var(--muted); font-size: 12px; }
.listed-launch-dates:not(:has(strong)) .listed-launch-plan { color: var(--ink); }
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 23px;
  padding: 2px 8px;
  border-radius: 5px;
  background: #eaf0ec;
  color: #465b50;
  font-size: 11px;
  font-weight: 670;
  line-height: 1.35;
  white-space: nowrap;
}
.chip.green { background: var(--mint); color: #205840; }
.chip.amber { background: #f7ead0; color: #725118; }
.chip.blue { background: #e5eff5; color: #285674; }
.chip.gray { background: #edf0ed; color: #4d6055; }
.progress-track { display: inline-block; width: 70px; height: 6px; overflow: hidden; border-radius: 8px; background: #e2ebe3; vertical-align: middle; }
.progress-fill { display: block; height: 100%; border-radius: inherit; background: #2d775b; }
.empty-state { display: grid; justify-items: center; gap: 8px; padding: 42px 16px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; }
.empty-state h2, .empty-state h3, .empty-state strong { color: var(--ink); }
.empty-state p { max-width: 47ch; }
.empty-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 4px; border-radius: 10px; background: #e7f0e7; color: var(--green); }
.empty-icon svg { width: 21px; height: 21px; }
.empty-state .btn, .empty-state .template-actions { margin-top: 5px; }

.btn, .icon-button, .stage-edit, .entry-edit, .back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 6px 11px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--green);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 660;
  white-space: nowrap;
}
.btn svg, .icon-button svg, .back-button svg { width: 16px; height: 16px; flex: 0 0 auto; }
.btn.primary { border-color: var(--green); background: var(--green); color: #fff; }
.btn.primary:hover { border-color: var(--green-hover); background: var(--green-hover); }
.btn.secondary, .stage-edit, .entry-edit { border-color: #d6cce0; background: var(--white); }
.btn.secondary:hover, .stage-edit:hover, .entry-edit:hover { border-color: #a48abc; background: #f7f2fb; }
.btn.subtle:hover, .icon-button:hover, .back-button:hover { background: var(--purple-wash); }
.icon-button { min-width: 36px; padding-inline: 7px; }
.back-button { padding-inline: 7px; margin-inline-start: -7px; margin-bottom: 9px; }

.detail-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 20px; min-width: 0; margin-bottom: 16px; }
.detail-head > div { min-width: 0; }
.detail-head > .btn { flex: 0 0 auto; }
.detail-head h1 { overflow-wrap: anywhere; }
.detail-head p { margin-top: 5px; color: var(--muted); overflow-wrap: anywhere; }
.detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 7px; color: var(--muted); font-size: 13px; }
.detail-tabs { display: flex; gap: 5px; margin: 23px 0 17px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.detail-tab {
  flex: 0 0 auto;
  min-height: 43px;
  padding: 8px 13px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 630;
}
.detail-tab:hover { color: var(--green); background: #f6f1f8; }
.detail-tab.active, .detail-tab[aria-selected='true'] { border-bottom-color: var(--green); color: var(--green); font-weight: 700; }
.detail-tab:focus-visible { outline-offset: -3px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, .75fr) minmax(0, 1.4fr); gap: 0; margin-bottom: 12px; }
.detail-grid > div { min-width: 0; padding: 12px 15px; }
.detail-grid > div + div { border-inline-start: 1px solid var(--line); }
.detail-grid strong { display: block; margin-top: 3px; font-size: 14px; line-height: 1.45; font-variant-numeric: tabular-nums; white-space: pre-wrap; overflow-wrap: anywhere; }
.details-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px 16px; max-width: 580px; padding: 0; margin-top: 7px; }
.details-list > div { display: flex; align-items: baseline; gap: 5px; min-width: 0; }
.details-list dt { flex-shrink: 0; color: var(--muted); font-size: 12px; }
.details-list dd { color: var(--ink); font-size: 12px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; white-space: pre-wrap; }
.stage-list, .entry-list, .history-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.panel > .stage-list, .panel > .entry-list, .panel > .history-list { padding: 0 16px 16px; }
.stage-card, .entry-card, .history-item { min-width: 0; border: 1px solid var(--line); border-radius: 9px; background: var(--white); }
.stage-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 11px; align-items: start; padding: 13px 13px; }
.stage-index { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 7px; background: #e8f1e8; color: var(--green); font-size: 11px; font-weight: 760; font-variant-numeric: tabular-nums; }
.stage-main { min-width: 0; }
.stage-header { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 8px; min-width: 0; }
.stage-header h3 { overflow-wrap: anywhere; }
.stage-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 11px; margin-top: 4px; color: var(--muted); font-size: 12px; }
.stage-main p, .entry-card p { margin-top: 4px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; white-space: pre-wrap; }
.stage-edit, .entry-edit { min-height: 30px; padding: 4px 8px; font-size: 12px; }
.entry-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 15px; align-items: start; padding: 13px 14px; }
.entry-card h3, .entry-card strong { overflow-wrap: anywhere; }
.entry-card > :first-child { min-width: 0; }
.entry-card .entry-edit { justify-self: end; }
.entry-card .stage-header { flex-wrap: wrap; }
.entry-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.entry-amount { font-variant-numeric: tabular-nums; white-space: nowrap; }
.entry-note a, .stage-meta a { overflow-wrap: anywhere; }
.history-item { padding: 11px 13px; }
.history-item > div { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; }
.history-item time { color: var(--muted); font-size: 12px; }
.history-item p, .history-item pre { margin: 3px 0 0; color: var(--muted); font: 12px/1.55 var(--font); white-space: pre-wrap; overflow-wrap: anywhere; }
.financial-grid { gap: 8px; margin-bottom: 14px; }
.financial-grid .metric { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 8px; flex-wrap: wrap; padding: 10px 13px; border-radius: 8px; }
.financial-grid .metric-value { margin: 0; font-size: 18px; line-height: 1.4; }
.inline-alert { margin: 0 0 12px; padding: 9px 11px; border: 1px solid #ded0a7; border-radius: 7px; background: #fbf5e5; color: #694c1d; font-size: 13px; }
.inline-alert.error { border-color: #e4bdb5; background: #fff3f0; color: var(--danger); }
.toast { position: fixed; z-index: 10; right: 20px; bottom: 19px; width: max-content; max-width: calc(100vw - 40px); padding: 9px 13px; border: 1px solid #a7cdb6; border-radius: 8px; background: #eaf7ee; color: #174734; font-size: 13px; font-weight: 620; overflow-wrap: anywhere; box-shadow: 0 6px 22px #152e2920; }
.toast.error { border-color: #e4bdb5; background: #fff3f0; color: var(--danger); }

dialog#editor {
  width: min(620px, calc(100% - 28px));
  max-height: min(88vh, 850px);
  max-height: min(88dvh, 850px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 18px 64px #0d271f40;
}
dialog#editor::backdrop { background: #112b23a0; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 19px; border-bottom: 1px solid var(--line); }
.dialog-head p { margin-top: 4px; color: var(--muted); font-size: 13px; }
.dialog-body { padding: 16px 19px 18px; }
.dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; position: sticky; bottom: 0; padding: 12px 19px; border-top: 1px solid var(--line); background: var(--surface); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 13px; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; color: var(--ink); font-size: 13px; font-weight: 630; }
.field > input, .field > select, .field > textarea { width: 100%; min-width: 0; font-weight: 450; }
.field small { color: var(--muted); font-size: 12px; font-weight: 450; overflow-wrap: anywhere; }
.field .required, .field [aria-hidden='true'] { color: var(--danger); }
.form-grid > .full, .form-error { grid-column: 1 / -1; }
.form-section {
  min-width: 0;
  margin: 0;
  padding: 8px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.form-section legend { padding-inline: 4px; color: var(--green); font-weight: 690; }
.legacy-revenue { color: var(--muted); font-size: 12px; }
.legacy-revenue summary { width: fit-content; cursor: pointer; }
.legacy-revenue p {
  margin-top: 5px;
  padding: 7px 9px;
  border-radius: 5px;
  background: #f6f1f8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.form-error { padding: 8px 10px; border: 1px solid #e4bdb5; border-radius: 7px; background: #fff3f0; color: var(--danger); font-size: 13px; }
.form-error:not(:empty) { margin-top: 12px; }

.product-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px 22px;
  margin-bottom: 19px;
}
.product-identity { min-width: 0; }
.product-identity .back-button { min-height: 30px; margin-bottom: 8px; }
.product-identity h1 { font-size: clamp(27px, 3.8vw, 43px); overflow-wrap: anywhere; }
.product-identity p { margin-top: 5px; color: var(--muted); overflow-wrap: anywhere; }
.product-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.product-detail-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 14px;
  margin: 19px 0 17px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line);
}
.product-detail-nav .detail-tabs { margin: 0; border: 0; }
.product-module-links { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.product-module-links .btn { min-height: 34px; }
.product-module-links .btn span { color: var(--muted); font-size: 11px; }
.module-page .overview-header { margin-bottom: 20px; }
.module-filters { justify-content: flex-start; margin-bottom: 16px; }
.module-filters select { width: auto; min-width: 110px; }
.module-filters #module-product-filter { max-width: min(100%, 360px); }
.module-reference {
  margin-bottom: 16px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f5f1f8;
}
.module-reference-header, .module-reference-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}
.module-reference-header { justify-content: space-between; }
.module-reference-header h2 { font-size: 16px; }
.module-reference-actions .btn { min-height: 32px; }
.module-reference-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 128px), 1fr));
  gap: 8px 12px;
  margin: 12px 0 8px;
}
.module-reference-values dt { color: var(--muted); font-size: 12px; }
.module-reference-values dd {
  margin: 0;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.entry-form-note { margin: 0; color: var(--muted); font-size: 12px; }
.entry-form-note output { margin-inline-start: 6px; color: var(--ink); font-weight: 650; }
.module-amounts { margin-bottom: 18px; }
.module-amounts > .metric-note { margin: 0 0 8px; }
.module-page .module-sections {
  flex-wrap: wrap;
  margin: 0;
  padding: 0 12px;
}
.module-page .entry-list { padding-top: 12px; }

.launch-board {
  --violet: #705094;
  --violet-strong: #583c7b;
  --violet-selected: #d9c6ee;
  --violet-selected-line: #8966ab;
  --launch-ink: #382b47;
  --launch-muted: #625571;
  --launch-line: #dcd0e8;
  min-width: 0;
  padding: clamp(13px, 1.55vw, 21px) clamp(15px, 2vw, 27px);
  border: 1px solid var(--launch-line);
  border-radius: 16px;
  background: #f0eaf7;
  color: var(--launch-ink);
  box-shadow: 0 10px 24px #47335b0c;
}
.launch-board-head {
  display: grid;
  grid-template-columns: minmax(0, 1.26fr) minmax(0, 1fr);
  align-items: center;
  gap: 10px clamp(14px, 2vw, 28px);
  margin-bottom: 12px;
}
.launch-dates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-self: start;
  align-items: start;
  gap: 10px clamp(8px, 1.6vw, 23px);
}
.launch-target { min-width: 0; }
.launch-actual-target { padding-inline-start: clamp(8px, 1.6vw, 23px); border-inline-start: 1px solid var(--launch-line); }
.launch-label { display: block; margin-bottom: 3px; color: var(--launch-muted); font-size: 13px; font-weight: 600; }
.launch-date {
  display: block;
  color: var(--violet-strong);
  font-size: clamp(23px, 2.7vw, 38px);
  font-weight: 730;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.045em;
  line-height: 1.12;
}
.launch-date.is-pending { color: var(--launch-muted); font-size: clamp(19px, 2vw, 27px); letter-spacing: 0; }
.launch-actual-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 8px; }
.launch-actual-meta .date-variance { margin-top: 0; }
.launch-stage-link {
  min-height: 26px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--violet-strong);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.launch-stage-link:hover { color: var(--green-hover); }
.launch-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 13px; min-width: 0; }
.launch-summary-item { min-width: 0; flex: 0 1 auto; padding-inline-start: 12px; border-inline-start: 1px solid var(--launch-line); color: var(--launch-muted); font-size: 12px; }
.launch-summary-item strong, .launch-summary-item time { display: block; margin-top: 2px; color: var(--launch-ink); font-size: 15px; font-variant-numeric: tabular-nums; line-height: 1.4; }
.launch-evidence { margin: -3px 0 8px; color: var(--launch-muted); font-size: 12px; overflow-wrap: anywhere; white-space: pre-wrap; }
.launch-board .launch-edit {
  min-height: 30px;
  padding: 4px 8px;
  border: 1px solid #c6b6d8;
  border-radius: 7px;
  background: #faf7fd;
  color: var(--launch-ink);
  font-size: 12px;
}
.launch-board .launch-edit:hover { border-color: var(--violet-selected-line); background: #e8ddf3; color: var(--launch-ink); }
.launch-board button:focus-visible { outline-color: var(--violet-strong); }
.launch-track-scroll, .launch-track {
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #a893be transparent;
  padding: 3px 3px 5px;
  margin: -3px -3px 0;
}
.launch-track-scroll .launch-track { overflow: visible; margin: 0; padding: 0; }
.launch-segments { display: flex; gap: 4px; align-items: stretch; min-width: 0; padding-block: 1px; }
.launch-segment {
  --segment: #e6dcef;
  display: flex;
  flex: var(--span, 1) 0 0;
  min-width: 73px;
  min-height: 47px;
  padding: 5px 8px;
  border: 2px solid var(--segment-border, transparent);
  border-radius: 8px;
  background: var(--segment);
  color: var(--launch-ink);
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  text-align: left;
}
.launch-segment:nth-child(even) { --segment: #eae2f3; }
.launch-segment.is-done { --segment: #e2ece4; }
.launch-board:has(#launch-date-value:not(time)) .launch-segment { --segment: #faf7fd; --segment-border: var(--launch-line); }
.launch-segment.is-selected, .launch-board:has(#launch-date-value:not(time)) .launch-segment.is-selected {
  --segment: var(--violet-selected);
  --segment-border: var(--violet-selected-line);
}
.launch-segment:hover { border-color: var(--violet-selected-line); }
.segment-name { display: block; font-size: 13px; line-height: 1.3; font-weight: 750; overflow-wrap: anywhere; }
.segment-date { display: block; font-size: 11px; font-weight: 600; line-height: 1.25; font-variant-numeric: tabular-nums; white-space: normal; overflow-wrap: anywhere; }
.launch-flag { position: relative; flex: 0 0 18px; margin-inline-start: 4px; border-inline-start: 1px solid var(--violet-selected-line); }
.launch-flag span { position: absolute; top: 0; left: 0; width: 15px; height: 11px; background: var(--violet); clip-path: polygon(0 0, 100% 0, 72% 50%, 100% 100%, 0 100%); }
.launch-axis {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 7px 15px;
  padding-top: 4px;
  color: var(--launch-muted);
  font-size: 11px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
.launch-axis > :last-child { color: var(--violet-strong); text-align: end; }
.launch-warning { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--launch-line); color: var(--launch-muted); font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.launch-warning-action, .inspector-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.launch-warning-action { justify-content: space-between; }
.launch-board .launch-warning-action .launch-edit { border-color: var(--violet); background: var(--violet); color: #fff; }
.launch-board .launch-warning-action .launch-edit:hover { border-color: var(--violet-strong); background: var(--violet-strong); }
.inspector-actions { justify-content: flex-end; }
.launch-scroll-hint { display: none; margin-top: 5px; color: var(--launch-muted); font-size: 11px; }

.schedule-workspace {
  display: grid;
  grid-template-columns: minmax(250px, .8fr) minmax(0, 1.2fr);
  gap: clamp(14px, 3vw, 35px);
  align-items: start;
  min-width: 0;
}
.schedule-rail {
  --rail-columns: 16px minmax(0, 1fr) 118px 58px;
  display: grid;
  align-content: start;
  gap: 1px;
  min-width: 0;
  margin: 0;
  padding: 0;
}
.rail-head, .schedule-node {
  display: grid;
  grid-template-columns: var(--rail-columns);
  column-gap: 8px;
}
.rail-head { align-items: baseline; padding: 0 11px 9px; border: 1px solid transparent; }
.rail-head h2 { font-size: 16px; }
.rail-head h2 { grid-column: 1 / 3; }
.rail-date-head { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; text-align: center; }
.rail-date-head, .rail-mobile-caption { color: var(--muted); font-size: 12px; }
.rail-mobile-caption { display: none; }
.schedule-node {
  align-items: center;
  width: 100%;
  min-height: 57px;
  min-width: 0;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-bottom-color: var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
}
.schedule-node:hover { background: #f6f1f8; }
.schedule-node.is-selected, .schedule-node[aria-pressed='true'] {
  border-color: #dfd2e9;
  border-radius: 9px;
  background: #eee7f5;
}
.node-indicator { position: relative; width: 10px; height: 10px; margin-inline: auto; border: 1px solid #91839d; border-radius: 50%; background: var(--surface); }
.node-indicator.green { border-color: #638255; background: #739562; }
.node-indicator.amber { border-color: #966824; background: #dda44f; }
.node-indicator.blue { border-color: #5c79a3; background: #7b9bc7; }
.is-selected .node-indicator, [aria-pressed='true'] .node-indicator { border-color: #50346f; background: #7955a1; box-shadow: 0 0 0 3px #d6c5e6; }
.node-identity { display: grid; gap: 2px; min-width: 0; }
.node-name { display: block; font-size: 14px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.node-weekly-status { color: var(--muted); font-size: 11px; line-height: 1.35; overflow-wrap: anywhere; }
.node-timing { display: grid; gap: 3px; min-width: 0; }
.node-dates {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  color: var(--green);
  font-size: 13px;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}
.node-date { display: flex; align-items: center; justify-content: center; }
.node-date-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.node-date-value {
  width: 100%;
  padding: 3px 4px;
  border-radius: 5px;
  background: #f6f1f8;
  font-weight: 670;
  text-align: center;
}
.node-date-value:not(:has(time)) { background: transparent; color: var(--muted); font-weight: 500; }
.schedule-node.is-selected .node-date-value:has(time) { background: #fffefa; }
.node-date-status { display: block; color: var(--muted); font-size: 12px; text-align: center; }
.node-actual { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px 4px; color: var(--ink); font-size: 11px; line-height: 1.35; }
.node-actual time { font-variant-numeric: tabular-nums; white-space: nowrap; }
.node-actual .date-variance { margin-top: 0; padding-inline: 3px; white-space: nowrap; }
.schedule-node > .chip { grid-column: 4; justify-self: end; }
.stage-inspector { min-width: 0; padding: 21px 23px; border-radius: 13px; scroll-margin-block-start: 12px; }
.inspector-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 14px; }
.inspector-header h2, .inspector-header h3 { overflow-wrap: anywhere; }
.inspector-status { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 8px; margin-top: 6px; color: var(--muted); font-size: 12px; }
.inspector-dates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 13px;
  margin: 12px 0;
  padding: 12px 0;
  border-block: 1px solid var(--line);
}
.inspector-dates > * { min-width: 0; overflow-wrap: anywhere; }
.inspector-dates dt, .inspector-dates .metric-label { color: var(--muted); font-size: 12px; }
.inspector-dates dd, .inspector-dates strong, .inspector-dates time { display: block; margin-top: 2px; color: var(--ink); font-size: 15px; font-weight: 690; font-variant-numeric: tabular-nums; }
.date-variance { display: inline-flex; max-width: 100%; margin-top: 4px; padding: 1px 6px; border-radius: 5px; background: #e9eee2; color: #415b33; font-size: 11px; font-weight: 650; line-height: 1.5; }
.date-variance.late, .date-variance.is-late { background: #f6e8d5; color: #794515; }
.inspector-notes { display: grid; gap: 5px; color: var(--muted); font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.inspector-notes > p { white-space: pre-wrap; }
.inspector-notes .details-list { display: flex; flex-wrap: wrap; margin: 0; }
.project-revenue { margin-block: 6px; }
.project-revenue h3 { color: var(--ink); font-size: 13px; }
.project-revenue-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 5px 0; }
.project-revenue-details > div { min-width: 0; padding: 6px 9px; border: 1px solid var(--line); border-radius: 6px; }
.project-revenue-details dt, .project-revenue-details dd { font-size: 12px; }
.project-revenue-details dd { color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.inspector-memo { margin-top: 3px; padding: 8px 10px; border-radius: 6px; background: #f6f1f8; }
.stage-inspector .stage-edit { min-height: 36px; padding-inline: 12px; }
.stage-inspector > .stage-edit { margin-top: 14px; }

.goods-context {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 14px;
  padding-block: 10px;
  border-block: 1px solid var(--line);
}
.goods-context dt, .goods-metrics dt, .goods-note, .goods-heading span {
  color: var(--muted);
  font-size: 12px;
}
.goods-context dd { font-weight: 600; overflow-wrap: anywhere; }
.goods-heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 9px;
  margin-bottom: 8px;
  color: var(--green);
}
.goods-heading span { font-weight: 500; }
.goods-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.goods-metrics > div {
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf8fc;
}
.goods-metrics dd:first-of-type {
  margin-top: 3px;
  font-size: clamp(13px, 1.8vw, 17px);
  font-weight: 680;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.goods-waiting {
  margin-bottom: 14px;
  padding: 8px 10px;
  border-radius: 7px;
  background: #f6f1f8;
  color: var(--green);
  font-size: 13px;
}
.goods-images { margin-block: 16px 12px; }
.goods-photo-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 560px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.goods-thumbnail {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6f1f8;
}
.goods-thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; }
.goods-photo-remove { min-height: 27px; margin-top: 4px; padding: 2px 6px; font-size: 12px; }
.goods-upload .goods-photo-list { margin-bottom: 8px; }
.goods-upload-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin-bottom: 5px;
  padding: 6px 8px;
  border: 1px dashed var(--focus);
  border-radius: 7px;
  color: var(--green);
  background: #fbf8fc;
  cursor: text;
  font-size: 13px;
}
.goods-upload-row span { color: var(--muted); font-size: 12px; }
.goods-upload-row .btn { min-height: 29px; padding: 3px 8px; font-size: 12px; }
.goods-check { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; cursor: pointer; }
.goods-check input { width: auto; margin: 0; accent-color: var(--green); }
dialog.goods-photo-viewer {
  width: min(900px, calc(100% - 28px));
  max-height: min(90vh, 860px);
  max-height: min(90dvh, 860px);
  margin: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  color: var(--ink);
}
.goods-photo-viewer::backdrop { background: #241735ba; }
.goods-viewer-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.goods-viewer-head h2 { font-size: 15px; }
.goods-photo-viewer > img { display: block; width: 100%; max-height: 74vh; object-fit: contain; }

.weekly-progress { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.weekly-progress-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.weekly-progress-head h3 { color: var(--green); }
.weekly-date-range, .weekly-update-meta { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.weekly-progress-head h4 { margin: 0; }
.weekly-empty, .weekly-update-fields {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 7px;
  background: #f6f1f8;
  font-size: 13px;
}
.weekly-empty { color: var(--muted); }
.weekly-update-fields { display: grid; gap: 8px; }
.weekly-update-fields > div { display: grid; grid-template-columns: 4.5em minmax(0, 1fr); gap: 8px; }
.weekly-update-fields dt { color: var(--muted); }
.weekly-update-fields dd { white-space: pre-wrap; overflow-wrap: anywhere; }
.weekly-update-meta { margin-top: 6px; }
.weekly-history { margin-top: 12px; border-top: 1px solid var(--line); }
.weekly-history > summary { padding: 9px 0 2px; color: var(--green); font-size: 13px; font-weight: 650; cursor: pointer; }
.weekly-history-item { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.weekly-history-item .weekly-edit { min-height: 32px; }

@media (max-width: 740px) {
  .launch-scroll-hint { display: block; }
}

@media (max-width: 1050px) {
  .panel-head { flex-wrap: wrap; }
  .panel-head .filters { justify-content: flex-start; }
}

@media (max-width: 940px) {
  .schedule-rail { --rail-columns: 16px minmax(0, 1fr) auto; }
  .rail-date-head { display: none; }
  .rail-mobile-caption { display: block; text-align: end; }
  .schedule-node { row-gap: 3px; }
  .schedule-node > .node-indicator { grid-row: 1; }
  .node-identity { grid-column: 2; grid-row: 1; }
  .node-timing { grid-column: 2; grid-row: 2; }
  .node-dates { grid-template-columns: repeat(2, max-content); font-size: 12px; }
  .node-date { justify-content: start; gap: 4px; }
  .node-date-label { position: static; width: auto; height: auto; overflow: visible; clip-path: none; color: var(--muted); }
  .node-date-value { min-width: 39px; padding: 2px 3px; }
  .node-date-status { text-align: start; }
  .node-actual { justify-content: start; }
  .schedule-node > .chip { grid-column: 3; grid-row: 1 / 3; }
}

@media (max-width: 900px) {
  .masthead-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand tools" "navigation navigation";
    gap: 5px 14px;
    padding-block: 8px 7px;
  }
  .brand { grid-area: brand; justify-self: start; }
  .primary-nav { grid-area: navigation; }
  .masthead-tools { grid-area: tools; }
  .masthead-inner:has(.primary-nav[hidden]) { grid-template-areas: "brand tools"; }
}

@media (max-width: 850px) {
  .metrics, .financial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid > div:nth-child(3) { border-inline-start: 0; }
  .detail-grid > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .launch-board-head { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 8px; }
  .launch-summary { justify-content: flex-start; }
}

@media (max-width: 680px) {
  .masthead-inner { padding-inline: 13px; gap: 5px 8px; }
  .brand { gap: 6px; }
  .brand-mark { width: 54px; }
  .brand-copy { font-size: 14px; }
  .brand-copy span, .connection, .session-name { display: none; }
  .primary-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; }
  .primary-nav:has(#nav-finance[hidden]) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .primary-nav > .nav-button { justify-content: center; padding-inline: 3px; }
  .nav-button { min-height: 34px; padding: 5px 7px; gap: 4px; font-size: 12px; }
  .nav-count { min-width: 17px; padding-inline: 4px; font-size: 10px; }
  .masthead-tools > .btn { min-height: 34px; padding-inline: 7px; font-size: 12px; }
  .content { padding: 19px 15px 35px; }
  .overview-header { margin-bottom: 16px; }
  .heading-row { align-items: flex-start; flex-wrap: wrap; }
  .heading-row p { margin-top: 4px; font-size: 13px; }
  .metrics, .financial-grid { gap: 8px; }
  .metric { padding: 11px 12px; }
  .metric-value { font-size: 23px; }
  .financial-grid .metric { padding: 7px 9px; }
  .financial-grid .metric-value { font-size: 16px; }
  .metric-note { margin-top: 5px; font-size: 11px; }
  .panel-head { padding: 12px; }
  .panel-head .filters { width: 100%; }
  .search-box { flex: 1 1 142px; }
  .search-box input[type='search'] { width: 100%; }
  .panel > .stage-list, .panel > .entry-list, .panel > .history-list { padding: 0 11px 11px; }
  .stage-card { gap: 8px; padding: 10px; }
  .stage-index { width: 23px; height: 23px; }
  .stage-header h3 { font-size: 15px; }
  .detail-head { flex-wrap: wrap; align-items: flex-start; }
  .detail-grid > div { padding: 9px 11px; }
  .detail-tabs { margin: 15px 0 12px; }
  .detail-tab { padding-inline: 7px; font-size: 12px; }
  .entry-card { padding: 11px; gap: 6px 9px; }
  .entry-actions { flex-direction: column; align-items: flex-end; gap: 3px; }
  .details-list { display: flex; flex-wrap: wrap; gap: 3px 10px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-section { padding-inline: 9px; }
  .field > input, .field > select, .field > textarea { font-size: 16px; }
  .dialog-head, .dialog-body, .dialog-actions { padding-inline: 13px; }
  .product-heading { margin-bottom: 13px; flex-wrap: wrap; align-items: flex-start; }
  .product-detail-nav { margin: 14px 0 12px; padding-bottom: 8px; }
  .product-module-links .btn { min-height: 32px; font-size: 12px; }
  .module-page .overview-header { margin-bottom: 14px; }
  .module-filters { gap: 6px; margin-bottom: 12px; }
  .module-filters select { flex: 1 1 116px; min-width: 0; font-size: 13px; }
  .module-page .module-sections { padding-inline: 7px; }
  .product-identity .back-button { margin-bottom: 5px; }
  .launch-board { padding: 12px; border-radius: 13px; }
  .launch-board-head { margin-bottom: 9px; }
  .launch-date { font-size: clamp(21px, 5.3vw, 30px); }
  .launch-summary { gap: 7px 10px; }
  .launch-summary-item { padding-inline-start: 7px; }
  .launch-summary-item strong, .launch-summary-item time { font-size: 13px; }
  .launch-track:has(.launch-segment:nth-child(4)) { min-width: 350px; }
  .launch-track:has(.launch-segment:nth-child(5)) { min-width: 445px; }
  .launch-segment { min-width: 81px; min-height: 43px; padding: 4px 7px; }
  .segment-name { font-size: 12px; }
  .segment-date { font-size: 10px; }
  .schedule-workspace { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .stage-inspector { grid-row: 1; padding: 15px; }
  .schedule-node { min-height: 49px; padding: 6px 9px; }
  .inspector-dates { gap: 6px 7px; }
  .inspector-dates dd, .inspector-dates strong, .inspector-dates time { font-size: 13px; }
}

@media (max-width: 540px) {
  .product-table { min-width: 0; table-layout: fixed; }
  .product-table th:nth-child(2), .product-table td:nth-child(2),
  .product-table th:nth-child(4), .product-table td:nth-child(4),
  .product-table th:nth-child(6), .product-table td:nth-child(6) { display: none; }
  .product-table th:first-child, .product-table td:first-child { width: 43%; padding-inline: 12px 5px; }
  .product-table th:nth-child(3), .product-table td:nth-child(3) { width: 30%; padding-inline: 4px; }
  .product-table th:nth-child(5), .product-table td:nth-child(5) { width: 27%; padding-inline: 4px 8px; }
  .product-table td:nth-child(3) .chip { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
  .product-table td:nth-child(5) { font-size: 12px; font-variant-numeric: tabular-nums; }
}

@media (max-width: 385px) {
  .masthead-inner { padding-inline: 9px; gap: 5px; }
  .nav-button { padding-inline: 6px; }
  .content { padding-inline: 11px; }
  .stage-card { grid-template-columns: minmax(0, 1fr) auto; }
  .stage-index { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
