:root {
  /* Portal Design System v1 */
  --ink: #17211C;
  --ink-secondary: #4A5651;
  --forest: #0A5C3E;
  --green: #0E7A52;
  --green-2: #0B6B47;
  --mint: #E6F2EB;
  --mint-2: #F0F3F1;
  --yellow: #8A5300;
  --yellow-soft: #FBF0DC;
  --paper: #FFFFFF;
  --line: #E2E7E4;
  --line-soft: #EDF1EE;
  --line-strong: #C9D2CD;
  --muted: #6B7771;
  --danger: #B42318;
  --danger-soft: #FDECEA;
  --white: #FFFFFF;
  --brand-forest: #013D29;
  --brand-yellow: #FCC71E;
  --brand-teal: #539D9D;

  /* Semantic color roles. */
  --surface-canvas: #F5F7F6;
  --surface-raised: var(--white);
  --surface-subtle: var(--mint-2);
  --surface-brand: var(--ink);
  --surface-warning: var(--yellow-soft);
  --text-primary: var(--ink);
  --text-secondary: var(--ink-secondary);
  --text-on-brand: #F7F9F8;
  --text-on-brand-muted: #C6D1CD;
  --status-success-text: #0B6B47;
  --status-warning-text: #8A5300;
  --focus-ring: #1B57D6;

  /* Typography and rhythm — 5 sizes, weights 400/600 only. */
  --font-display: "IBM Plex Sans", "Noto Sans SC", sans-serif;
  --font-body: "IBM Plex Sans", "Noto Sans SC", "PingFang SC", sans-serif;
  --font-label: "IBM Plex Mono", "Noto Sans SC", monospace;
  --type-caption: .75rem;   /* 12 */
  --type-body-sm: .875rem;  /* 14 */
  --type-body: .875rem;     /* 14 */
  --type-title-sm: 1rem;    /* 16 */
  --type-title: 1.25rem;    /* 20 */
  --type-display: 1.5rem;   /* 24 */
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --control-sm: 36px;
  --control-md: 40px;
  --topbar-h: 56px;
  --sidebar-w: 208px;
  --rail-w: 72px;
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-card: 8px;
  --radius-pill: 4px;
  --radius: var(--radius-card);
  --content-max: 1200px;
  --shadow: none;
  --duration-fast: 160ms;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--text-primary); background: var(--surface-canvas); font-family: var(--font-body); font-size: var(--type-body); line-height: 1.571; font-weight: 400; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
button, a, input, select, textarea { transition: color var(--duration-fast) var(--ease-out), background-color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out), opacity var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out); }
button:active, a:active { transform: translateY(1px); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 14px; color: var(--white); background: var(--forest); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.eyebrow { margin: 0 0 18px; color: var(--text-on-brand-muted); font: 600 var(--type-caption)/1.2 var(--font-label); letter-spacing: .11em; }
.eyebrow.green { color: var(--green); }
.muted { color: var(--muted); }
.text-success { color: var(--status-success-text); }
.text-warning { color: var(--status-warning-text); }
.text-danger { color: var(--danger); }
.brand { position: relative; display: inline-flex; align-self: flex-start; align-items: center; gap: var(--space-xs); min-height: var(--control-sm); color: var(--brand-yellow); text-decoration: none; font: 800 .9375rem/1 "Poppins", var(--font-body); letter-spacing: .04em; }
.brand img { display: block; width: 33px; height: 24px; object-fit: cover; border-radius: var(--radius-sm); }
.brand span { position: relative; }
.brand-light { color: var(--ink); }

/* Login */
.login-screen { display: grid; grid-template-columns: minmax(420px, 1.05fr) minmax(440px, .95fr); min-height: 100vh; background: var(--paper); }
.login-story { display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; padding: clamp(36px, 5vw, 76px); color: var(--white); background: var(--forest); }
.story-copy { max-width: 620px; margin: 90px 0; }
.story-copy h1 { max-width: 600px; margin: 0 0 28px; font: 600 clamp(42px, 5.2vw, 74px)/1.08 var(--font-display); letter-spacing: -.045em; }
.story-copy > p:last-child { max-width: 580px; margin: 0; color: #d5e4de; font-size: 18px; line-height: 1.8; }
.trust-note { display: flex; align-items: flex-start; gap: 14px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.16); }
.trust-note > span { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; color: var(--forest); background: var(--yellow); border-radius: 50%; font-weight: 700; }
.trust-note p { margin: 0; color: #c8d9d2; line-height: 1.6; }
.trust-note strong { color: var(--white); }
.login-panel { display: grid; place-items: center; min-height: 100vh; padding: 50px clamp(28px, 6vw, 96px); }
.login-box { width: min(100%, 520px); }
.login-box h2 { margin: 0 0 8px; font: 600 2.25rem/1.2 var(--font-display); letter-spacing: -.035em; }
.login-box > .muted { margin: 0 0 32px; }
.login-box form { display: grid; gap: 18px; }
.login-box label:not(.check):not(.demo-role-select) { display: grid; gap: 8px; font-size: 13px; font-weight: 600; }
.login-box input { min-height: 52px; padding: 0 15px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 9px; }
.login-options { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.check { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); }
.check input { width: 16px; min-height: auto; accent-color: var(--green); }
.link-button { padding: 0; color: var(--green); background: none; border: 0; }
.button, .action, .primary { display: inline-flex; align-items: center; justify-content: center; min-height: var(--control-sm); padding: 0 16px; border-radius: var(--radius-md); font-size: var(--type-body-sm); font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap; }
.button--large, .primary { min-height: 50px; padding-inline: 16px; }
.button--large span, .primary span { margin-inline-start: auto; }
.button--primary, .action.primary-action, .primary { color: var(--text-on-brand); background: var(--green); border: 1px solid var(--green); }
.button--primary:hover, .action.primary-action:hover, .primary:hover { background: color-mix(in oklch, var(--green) 84%, var(--forest)); border-color: color-mix(in oklch, var(--green) 84%, var(--forest)); }
.button--secondary, .action.secondary-action { color: var(--forest); background: var(--surface-raised); border: 1px solid var(--line); }
.button--secondary:hover, .action.secondary-action:hover { border-color: color-mix(in oklch, var(--green) 48%, var(--line)); background: var(--surface-subtle); }
.button:disabled, .action:disabled, .primary:disabled { cursor: not-allowed; opacity: .48; transform: none; }
.demo-divider { display: flex; align-items: center; gap: 12px; margin: 30px 0 18px; color: #81908a; font-size: 12px; }
.demo-divider::before, .demo-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.demo-roles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.demo-roles button { display: grid; gap: 4px; min-height: 68px; padding: 12px 14px; text-align: left; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 9px; }
.demo-roles button:hover { border-color: var(--green); background: var(--mint-2); }
.demo-roles small { color: var(--muted); }
.prototype-note { margin: 20px 0 0; color: #86928d; font-size: 11px; line-height: 1.6; }

/* Shell */
.portal { min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; flex-wrap: nowrap; gap: 14px; height: var(--topbar-h); min-height: var(--topbar-h); max-height: var(--topbar-h); padding: 0 20px; background: var(--white); border-bottom: 1px solid var(--line); overflow: visible; }
.topbar-brand { display: flex; align-items: center; gap: 12px; width: 196px; flex: none; }
.product-name { color: var(--muted); border-left: 1px solid var(--line); padding-left: 12px; font-size: var(--type-caption); line-height: 1; }
.topbar-spacer { flex: 1; min-width: 8px; }
.company-switch { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; text-align: left; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); flex: none; white-space: nowrap; }
.company-switch:hover { border-color: var(--line-strong); background: var(--mint-2); }
.company-switch__mark {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--white);
  background: var(--forest);
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
}
.company-switch__copy { display: grid; gap: 0; line-height: 1.2; min-width: 0; }
.company-switch small { color: var(--muted); font-size: 12px; }
.company-switch small[hidden] { display: none; }
.company-switch strong { max-width: 160px; overflow: hidden; text-overflow: ellipsis; font-size: 14px; font-weight: 600; }
.company-switch > span:last-child { color: var(--muted); font-size: 11px; }
.topbar-actions { display: flex; align-items: center; gap: 2px; flex: none; }
.icon-button, .mobile-menu { width: 34px; height: 34px; color: #4A5651; background: transparent; border: 0; border-radius: var(--radius-sm); }
.resource-button { height: 34px; padding: 0 12px; color: var(--ink-secondary); background: transparent; border: 0; border-radius: var(--radius-sm); font-size: var(--type-body-sm); }
.resource-button:hover, .icon-button:hover { background: #F0F3F1; }
.icon-button { position: relative; display: grid; place-items: center; font-size: 14px; }
.topbar-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: none;
  background: currentColor;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}
.topbar-icon--search {
  width: 15px;
  height: 15px;
  -webkit-mask-image: url("https://unpkg.com/lucide-static@0.454.0/icons/search.svg");
  mask-image: url("https://unpkg.com/lucide-static@0.454.0/icons/search.svg");
}
.topbar-icon--bell {
  -webkit-mask-image: url("https://unpkg.com/lucide-static@0.454.0/icons/bell.svg");
  mask-image: url("https://unpkg.com/lucide-static@0.454.0/icons/bell.svg");
}
.topbar-icon--help {
  -webkit-mask-image: url("https://unpkg.com/lucide-static@0.454.0/icons/circle-help.svg");
  mask-image: url("https://unpkg.com/lucide-static@0.454.0/icons/circle-help.svg");
}
.notification-dot { position: absolute; top: 4px; right: 3px; min-width: 15px; height: 15px; padding: 0 4px; background: #8A5300; color: #fff; border: 0; border-radius: 8px; font-size: 10px; line-height: 15px; text-align: center; }
.notification-dot:empty { width: 7px; min-width: 7px; height: 7px; padding: 0; top: 8px; right: 8px; border-radius: 50%; }
.profile-button { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 6px 0 12px; margin-left: 4px; text-align: left; color: var(--ink); background: transparent; border: 0; border-left: 1px solid var(--line); border-radius: 0; flex: none; white-space: nowrap; }
.logout-button { height: 32px; padding: 0 8px; color: var(--muted); background: transparent; border: 0; font-size: var(--type-caption); }
.profile-button > span:first-child { display: grid; place-items: center; width: 30px; height: 30px; color: var(--white); background: var(--forest); border-radius: var(--radius-sm); font-size: 12px; font-weight: 600; }
.profile-button > span:nth-child(2) { display: grid; line-height: 1.25; }
.profile-button strong { font-size: 13px; font-weight: 600; }
.profile-button small { color: var(--muted); font-size: 11px; }
.profile-button > span:last-child { color: var(--muted); font-size: 11px; }
.account-menu__role {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--ink);
  box-sizing: border-box;
}
.account-menu__role > span {
  flex: 0 0 auto;
  white-space: nowrap;
  color: var(--ink-secondary);
}
.account-menu__role select {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  width: auto;
  height: 28px;
  padding: 0 24px 0 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%236B7280' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 8px center;
  background-size: 12px;
  appearance: none;
  -webkit-appearance: none;
  font-size: 12px;
  color: var(--ink);
}
.mobile-menu { display: none; margin-right: 10px; }
.portal-layout { display: grid; grid-template-columns: var(--rail-w) var(--sidebar-w) minmax(0, 1fr); min-height: calc(100vh - var(--topbar-h)); }
.sidebar { position: sticky; top: var(--topbar-h); display: flex; flex-direction: column; width: var(--sidebar-w); height: calc(100vh - var(--topbar-h)); padding: 16px 12px; background: var(--paper); border-right: 1px solid var(--line); }
.sidebar nav { display: grid; gap: 2px; }
.nav-label { margin: 0 12px 8px; color: var(--muted); font: 400 var(--type-caption)/1.2 var(--font-body); letter-spacing: 0; text-transform: none; }
.nav-item { display: flex; align-items: center; gap: 10px; width: 100%; height: 36px; min-height: 36px; padding: 0 12px; color: var(--ink-secondary); background: none; border: 0; border-radius: var(--radius-md); text-align: left; font-size: var(--type-body-sm); font-weight: 400; }
.nav-item .rail-icon { width: 16px; height: 16px; }
.nav-item:hover { color: var(--ink); background: var(--mint-2); }
.nav-item.active { color: var(--green-2); background: var(--mint); font-weight: 600; }
.nav-icon { display: grid; place-items: center; width: 16px; color: inherit; font-size: 13px; opacity: .8; }
.nav-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; color: var(--ink-secondary); background: #EEF1EF; border-radius: 10px; font-size: var(--type-caption); line-height: 20px; text-align: center; font-weight: 400; }
.nav-badge.is-urgent { color: var(--danger); background: var(--danger-soft); }
.sidebar-foot { margin-top: auto; padding-top: 12px; display: grid; gap: 10px; }
.settings-entry { display: flex; align-items: center; gap: 10px; width: 100%; min-height: var(--control-sm); padding: 8px 10px; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: var(--radius-md); text-align: left; }
.settings-entry:hover, .settings-entry.active { background: var(--mint-2); border-color: var(--line-strong); }
.settings-entry > span:first-child { color: var(--green); }
.settings-entry strong, .settings-entry small { display: block; }
.settings-entry strong { font-size: var(--type-caption); font-weight: 600; }
.settings-entry small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.demo-role-switch { border: 1px dashed var(--line-strong); border-radius: var(--radius-md); padding: 8px 12px; display: grid; gap: 2px; }
.demo-role-switch__label { color: var(--muted); font-size: var(--type-caption); }
.demo-role-switch select { width: 100%; min-height: 28px; padding: 0; border: 0; background: transparent; font-weight: 600; font-size: var(--type-body-sm); color: var(--ink); }
.sidebar-foot label, .sidebar-foot select { width: 100%; }
.workspace { min-width: 0; padding: var(--space-xl); }

/* Shared content */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; max-width: var(--content-max); margin: 0; width: 100%; }
.page-head p, .page-head__meta { margin: 0 0 4px; color: var(--muted); font: 400 var(--type-caption)/1.5 var(--font-body); letter-spacing: 0; text-transform: none; }
.page-head h1 { margin: 0; font: 600 var(--type-display)/2rem var(--font-display); letter-spacing: 0; }
.page-head .head-note { max-width: 420px; margin: 0; color: var(--text-secondary); font: 400 var(--type-body-sm)/1.6 var(--font-body); letter-spacing: 0; }
.head-actions { display: flex; align-items: center; gap: var(--space-xs); }
.status-chip { display: inline-flex; align-items: center; gap: 0; min-height: 20px; height: 20px; padding: 0 6px; color: var(--green-2); background: var(--mint); border-radius: var(--radius-sm); font-size: var(--type-caption); font-weight: 400; line-height: 20px; white-space: nowrap; }
.status-chip::before { display: none; }
.status-chip.warn { color: var(--status-warning-text); background: var(--yellow-soft); }
.status-chip.locked { color: var(--ink-secondary); background: #EEF1EF; }
.status-chip.danger { color: var(--danger); background: var(--danger-soft); }
.section-label { margin: 0; color: var(--muted); font-size: var(--type-caption); font-weight: 600; }
.text-button { min-height: auto; padding: 0; color: var(--green); background: none; border: 0; font-size: var(--type-caption); font-weight: 400; }
.text-button:hover { text-decoration: underline; color: var(--forest); }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 48px; padding: 0 20px; border-bottom: 1px solid var(--line-soft); }
.panel-head h2, .panel-head h3 { margin: 0; font-size: 14px; }
.panel-head small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; font-weight: 400; }
.next-action { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 1460px; margin: 16px auto 0; padding: 14px 16px; color: var(--forest); background: var(--yellow-soft); border: 1px solid color-mix(in oklch, var(--yellow) 44%, var(--line)); border-radius: var(--radius-md); }
.next-action > div { display: grid; gap: 2px; }
.next-action small { color: #806410; font: 600 .625rem/1.2 var(--font-label); letter-spacing: .07em; }
.next-action strong { font-size: .875rem; }
.next-action p { max-width: 72ch; margin: 0; color: #695d39; font-size: .75rem; line-height: 1.45; }
.next-action .button span { margin-left: 12px; }
.empty-page { display: grid; place-items: center; min-height: 62vh; padding: 40px; text-align: center; }
.empty-page div { max-width: 520px; }
.empty-page .empty-mark { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 20px; color: var(--green); background: var(--mint); border-radius: 50%; font-size: 25px; }
.empty-page h2 { margin: 0 0 10px; font: 600 1.625rem/1.2 var(--font-display); }
.empty-page p { color: var(--muted); line-height: 1.7; }

/* Customer */
.customer-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 16px; max-width: 1460px; margin: 0 auto; }
.customer-main { display: grid; gap: 14px; min-width: 0; }
.progress-strip { display: grid; grid-template-columns: 180px 1fr auto; align-items: center; gap: 24px; padding: 22px 24px; background: var(--forest); border-radius: var(--radius); color: var(--white); }
.progress-strip small { display: block; color: #bcd0c8; }
.progress-strip strong { font: 600 1.5625rem/1.2 var(--font-display); }
.progress-track { height: 7px; overflow: hidden; background: rgba(255,255,255,.15); border-radius: 10px; }
.progress-track i { display: block; width: var(--progress, 62%); height: 100%; background: var(--yellow); border-radius: inherit; }
.progress-strip > span { color: #d7e4df; font-size: 12px; }
.agent-task { overflow: hidden; }
.agent-task-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; background: var(--mint-2); border-bottom: 1px solid var(--line); }
.agent-identity { display: flex; align-items: center; gap: 12px; }
.agent-mark { display: grid; place-items: center; width: 32px; height: 32px; color: var(--white); background: var(--green); border-radius: 9px; font-size: 14px; }
.agent-identity strong { display: block; font-size: 13px; }
.agent-identity small { color: var(--muted); }
.agent-task-body { padding: 20px 22px 22px; }
.question-count { margin: 0 0 10px; color: var(--green); font: 600 .6875rem/1.2 var(--font-label); letter-spacing: .07em; }
.agent-task h2 { max-width: 760px; margin: 0 0 9px; font: 600 1.5rem/1.25 var(--font-display); letter-spacing: -.025em; }
.why { max-width: 72ch; margin: 0 0 16px; color: var(--muted); font-size: .8125rem; line-height: 1.6; }
.answer-row { display: flex; flex-wrap: wrap; gap: 8px; }
.answer-button { min-height: 38px; padding: 0 13px; color: var(--forest); background: var(--white); border: 1px solid #bcd6ca; border-radius: 8px; font-size: .8125rem; font-weight: 700; }
.answer-button:hover, .answer-button.selected { color: var(--white); background: var(--green); border-color: var(--green); }
.answer-button.secondary { color: var(--muted); border-color: var(--line); }
.agent-result { display: grid; grid-template-columns: 1fr auto; gap: 3px 14px; align-items: center; padding: 13px 15px; color: var(--forest); background: var(--mint); border-radius: 9px; font-size: .8125rem; line-height: 1.5; }
.agent-result strong { grid-column: 1; }
.agent-result p { grid-column: 1; margin: 0; color: var(--muted); }
.agent-result .text-button { grid-column: 2; grid-row: 1 / 3; }
.question-explainer { max-width: 72ch; margin: -4px 0 16px; padding: 10px 12px; background: var(--yellow-soft); border: 1px solid color-mix(in oklch, var(--yellow) 48%, var(--line)); border-radius: 8px; }
.question-explainer strong { font-size: .75rem; }
.question-explainer p { margin: 3px 0 0; color: #695d39; font-size: .75rem; line-height: 1.55; }
.task-list { margin: 0; padding: 0; list-style: none; }
.task-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 15px 20px; border-bottom: 1px solid #edf1ef; }
.task-row:last-child { border-bottom: 0; }
.task-number { display: grid; place-items: center; width: 26px; height: 26px; color: var(--green); background: var(--mint); border-radius: 50%; font-size: 11px; font-weight: 700; }
.task-row strong { display: block; margin-bottom: 3px; font-size: 13px; }
.task-row small { color: var(--muted); }
.task-row time { color: var(--muted); font-size: 11px; }
.task-row-action { display: grid; justify-items: end; gap: 1px; }
.task-row-action .text-button { min-height: 28px; padding-block: 2px; }
.context-rail { align-self: start; position: sticky; top: 80px; overflow: hidden; }
.context-intro { padding: 16px 18px; color: var(--white); background: var(--forest); }
.context-intro p { margin: 0 0 6px; color: var(--text-on-brand-muted); font: 600 var(--type-caption)/1.2 var(--font-label); letter-spacing: .07em; }
.context-intro h2 { margin: 0; font-size: .9375rem; line-height: 1.4; }
.context-section { padding: 15px 17px; border-bottom: 1px solid var(--line); }
.context-section:last-child { border-bottom: 0; }
.context-section h3 { margin: 0 0 13px; font-size: 12px; }
.fact-list { display: grid; gap: 11px; margin: 0; }
.fact-list div { display: grid; grid-template-columns: 78px 1fr; gap: 8px; font-size: 12px; line-height: 1.45; }
.fact-list dt { color: var(--muted); }
.fact-list dd { margin: 0; font-weight: 600; }
.source-line { display: flex; gap: 9px; align-items: flex-start; color: var(--muted); font-size: 11px; line-height: 1.5; }
.source-line span { color: var(--green); }
.locked-banner { display: flex; align-items: center; gap: 13px; padding: 16px 19px; color: #44524d; background: #e9edeb; border-radius: 12px; }
.locked-banner b { font-size: 20px; }
.locked-banner p { margin: 0; font-size: 12px; line-height: 1.5; }

/* Staff tables / boards */
.staff-layout { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(440px, 1.28fr); gap: 18px; max-width: 1460px; margin: 0 auto; }
.metric-line { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; max-width: 1460px; margin: 0 auto 18px; overflow: hidden; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); }
.metric-line div { padding: 18px 20px; background: var(--white); }
.metric-line span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 11px; }
.metric-line strong { font: 600 1.5625rem/1 var(--font-display); }
.metric-line small { margin-left: 5px; color: var(--muted); }
.case-list { margin: 0; padding: 0; list-style: none; }
.case-item { width: 100%; padding: 17px 19px; text-align: left; color: var(--ink); background: var(--white); border: 0; border-bottom: 1px solid var(--line); }
.case-item:last-child { border-bottom: 0; }
.case-item:hover, .case-item.active { background: var(--mint-2); }
.case-item.active { color: var(--forest); font-weight: 600; }
.case-item > span { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.case-item strong { font-size: 13px; }
.case-item em { color: var(--danger); font-size: 10px; font-style: normal; }
.case-item p { margin: 0 0 7px; font-size: 12px; }
.case-item small { color: var(--muted); }
.case-detail { padding: 25px; }
.case-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.case-detail h2 { margin: 0 0 7px; font: 600 1.5rem/1.2 var(--font-display); letter-spacing: -.025em; }
.case-detail > p { color: var(--muted); line-height: 1.65; }
.comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0; }
.comparison article { padding: 17px; background: var(--mint-2); border: 1px solid var(--line); border-radius: 10px; }
.comparison article:last-child { background: #fff9e7; }
.comparison small { color: var(--muted); }
.comparison strong { display: block; margin-top: 7px; font-size: 14px; line-height: 1.5; }
.evidence-box { padding: 16px; border: 1px dashed #b9c9c1; border-radius: 10px; }
.evidence-box h3 { margin: 0 0 9px; font-size: 12px; }
.evidence-box p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.action-bar { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.action { min-height: var(--control-sm); padding: 0 16px; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 11px 15px; color: var(--muted); background: var(--mint-2); font-size: 10px; text-align: left; text-transform: uppercase; letter-spacing: .06em; }
.data-table td { padding: 15px; border-top: 1px solid var(--line); font-size: 12px; vertical-align: middle; }
.data-table strong { display: block; margin-bottom: 3px; font-size: 13px; }
.data-table small { color: var(--muted); }
.data-table th:first-child, .data-table td:first-child { white-space: nowrap; }
.program-table { min-width: 760px; }
.privacy-cell { color: #8e9995; font-style: italic; }
.bar-cell { min-width: 110px; }
.mini-bar { display: block; width: 100%; height: 5px; margin-top: 7px; background: #e6ece9; border-radius: 5px; }
.mini-bar i { display: block; height: 100%; background: var(--green-2); border-radius: inherit; }
.wide-panel { max-width: 1460px; margin: 0 auto; overflow: hidden; }
.callout { max-width: 1460px; margin: 0 auto 18px; padding: 15px 18px; color: #6a5107; background: var(--yellow-soft); border: 1px solid #ead88d; border-radius: 10px; font-size: 12px; line-height: 1.55; }
.import-notice { margin: 0 0 24px; padding: 14px 16px; color: var(--forest); background: var(--mint); border: 1px solid #c9ded3; border-radius: 9px; font-size: 12px; line-height: 1.55; }
.import-notice strong { display: block; margin-bottom: 3px; }
.trial-handoff { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 20px; color: var(--forest); background: var(--yellow-soft); border: 1px solid #ead88d; border-radius: 12px; }
.trial-handoff > div { display: grid; gap: 3px; }
.trial-handoff small { color: #806410; font-size: 10px; font-weight: 700; }
.trial-handoff strong { font-size: 14px; }
.trial-handoff p { margin: 0; color: #695d39; font-size: 11px; line-height: 1.5; }
.content-split { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 20px; max-width: 1460px; margin: 0 auto; }
.content-main, .content-side { display: grid; align-content: start; gap: 18px; min-width: 0; }
.object-summary { display: flex; align-items: center; justify-content: space-between; min-height: 132px; padding: 22px 26px; color: var(--white); background: var(--forest); border-radius: var(--radius); }
.object-summary > div:first-child { display: grid; gap: 5px; }
.object-summary small { color: #bcd0c8; }
.object-summary strong { font: 600 1.875rem/1.15 var(--font-display); }
.object-summary span { color: #d4e1dc; font-size: 12px; }
.coverage-ring { --coverage: 68%; position: relative; display: grid; place-items: center; width: 84px; height: 84px; background: conic-gradient(var(--yellow) var(--coverage), rgba(255,255,255,.15) 0); border-radius: 50%; }
.coverage-ring::after { content: ""; position: absolute; inset: 7px; background: var(--forest); border-radius: 50%; }
.coverage-ring b, .coverage-ring small { position: relative; z-index: 1; }
.coverage-ring b { align-self: end; font-size: 18px; }
.coverage-ring small { align-self: start; color: #c7d8d1; font-size: 9px; }
.upload-zone { display: grid; place-items: center; gap: 6px; min-height: 142px; padding: 20px; color: var(--forest); background: rgba(255,255,255,.58); border: 1px dashed #9fbeb0; border-radius: 13px; text-align: center; }
.upload-zone:hover { background: var(--white); border-color: var(--green); }
.upload-zone > span { font-size: 25px; font-weight: 300; }
.upload-zone strong { font-size: 14px; }
.upload-zone small { color: var(--muted); }
.flat-panel { overflow: hidden; }
.panel-head > span { color: var(--muted); font-size: 11px; }
.record-list { display: grid; }
.record { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid #edf1ef; }
.record:last-child { border-bottom: 0; }
.record-code { color: var(--green); font: 600 var(--type-caption)/1 var(--font-label); }
.record strong { display: block; font-size: 13px; }
.record p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.record-state { display: inline-flex; padding: 5px 8px; color: #596862; background: #edf1ef; border-radius: 20px; font-size: 10px; white-space: nowrap; }
.record-state.ok { color: #126543; background: var(--mint); }
.record-state.warn { color: #806410; background: var(--yellow-soft); }
.extraction-review { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 1460px; margin: 0 auto 14px; padding: 14px 16px; }
.extraction-review > div { display: grid; gap: 3px; }
.extraction-review small { color: var(--green); font: 600 .625rem/1.2 var(--font-label); letter-spacing: .06em; }
.extraction-review h2 { margin: 0; font-size: .9375rem; }
.extraction-review p { max-width: 75ch; margin: 0; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.fact-review { overflow: hidden; }
.fact-review-body { padding: 21px; }
.fact-review-body > small { color: var(--green); font-size: 10px; }
.fact-review-body h3 { margin: 8px 0 20px; font-size: 19px; line-height: 1.4; }
.confirmation-note { margin: 18px 0 0; padding: 12px; color: var(--forest); background: var(--mint); border-radius: 8px; font-size: 12px; }
.plain-note { padding: 8px 4px; }
.plain-note strong { font-size: 12px; }
.plain-note p { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.result-ledger { display: grid; grid-template-columns: minmax(310px, 1.4fr) repeat(3, minmax(150px, .7fr)); max-width: 1460px; margin: 0 auto 20px; color: var(--white); background: var(--forest); border-radius: var(--radius); overflow: hidden; }
.result-ledger > div { display: grid; align-content: center; gap: 6px; padding: 23px; border-right: 1px solid rgba(255,255,255,.13); }
.result-ledger > div:last-child { border-right: 0; }
.result-ledger small, .result-ledger span, .result-ledger p { color: #bfd1ca; font-size: 10px; }
.result-ledger strong { font: 600 1.5625rem/1.1 var(--font-display); }
.result-primary strong { font-size: 38px; }
.result-primary strong em { font-size: 12px; font-style: normal; letter-spacing: 0; }
.result-primary p { margin: 3px 0 0; line-height: 1.5; }
.result-content { grid-template-columns: minmax(0, 1fr) 330px; }
.finding-list { display: grid; }
.finding { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 20px; border-bottom: 1px solid var(--line); }
.finding:last-child { border-bottom: 0; }
.finding.resolved { background: var(--mint-2); }
.finding-level { display: grid; place-items: center; width: 30px; height: 30px; color: var(--white); background: var(--danger); border-radius: 50%; font-size: 10px; font-weight: 700; }
.finding-level.medium { color: #715600; background: var(--yellow); }
.finding strong { font-size: 13px; }
.finding p { max-width: 70ch; margin: 5px 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.finding small { color: #89948f; font-size: 10px; }
.trace-panel { align-self: start; overflow: hidden; }
.trace-list { margin: 0; padding: 5px 20px 12px; list-style: none; }
.trace-list li { display: grid; grid-template-columns: 32px 1fr; gap: 10px; padding: 14px 0; border-bottom: 1px solid #edf1ef; }
.trace-list li > span { color: var(--green); font: 600 var(--type-caption)/1.5 var(--font-label); }
.trace-list strong, .trace-list small { display: block; }
.trace-list strong { font-size: 12px; }
.trace-list small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.trace-action { margin: 0 20px 18px; }
.delivery-intro { display: grid; grid-template-columns: 1fr minmax(260px, .7fr); align-items: end; gap: 40px; max-width: 1460px; margin: 0 auto 18px; padding: 24px 28px; color: var(--white); background: var(--forest); border-radius: var(--radius); }
.delivery-intro > div:first-child { display: grid; gap: 5px; }
.delivery-intro small { color: #bcd0c8; }
.delivery-intro strong { font-size: 21px; }
.delivery-intro p { max-width: 68ch; margin: 0; color: #cbdad4; font-size: 11px; line-height: 1.5; }
.stage-line { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.stage-line i { height: 5px; background: rgba(255,255,255,.17); border-radius: 5px; }
.stage-line i.done { background: var(--green-2); }
.stage-line i.current { background: var(--yellow); }
.delivery-list { max-width: 1460px; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.delivery-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) minmax(150px, .35fr) 42px; gap: 18px; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.delivery-row:last-child { border-bottom: 0; }
.delivery-index { color: var(--green); font: 600 var(--type-caption)/1 var(--font-label); }
.delivery-row small { color: var(--green); font-size: 9px; letter-spacing: .09em; }
.delivery-row h2 { margin: 5px 0 3px; font-size: 16px; }
.delivery-row p { margin: 0; color: var(--muted); font-size: 11px; }
.delivery-note { color: var(--muted); font-size: 11px; }
.round-action { width: var(--control-sm); height: var(--control-sm); color: var(--green); background: var(--mint); border: 0; border-radius: 50%; font-size: 18px; }
.delivery-detail { margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--line); }
.delivery-detail strong { display: block; margin-bottom: 5px; font-size: 11px; }
.delivery-detail .button { margin-top: 12px; }
.permission-summary { display: grid; grid-template-columns: repeat(3, minmax(130px, .35fr)) minmax(280px, 1fr); max-width: 1460px; margin: 0 auto 18px; color: var(--white); background: var(--forest); border-radius: var(--radius); overflow: hidden; }
.permission-summary > div { padding: 20px 22px; border-right: 1px solid rgba(255,255,255,.13); }
.permission-summary small { display: block; color: #bcd0c8; font-size: 10px; }
.permission-summary strong { display: block; margin-top: 7px; font: 600 1.625rem/1 var(--font-display); }
.permission-summary p { align-self: center; margin: 0; padding: 20px 24px; color: #ccdad5; font-size: 11px; line-height: 1.6; }
.security-note { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; max-width: 1460px; margin: 18px auto 0; padding: 16px 20px; color: var(--forest); background: var(--mint); border-radius: 10px; }
.security-note strong { font-size: 12px; }
.security-note p { margin: 0; color: var(--muted); font-size: 11px; }
.year-setup { display: grid; max-width: 900px; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.year-step { display: grid; grid-template-columns: 54px 1fr; gap: 17px; padding: 24px 28px; border-bottom: 1px solid var(--line); }
.year-step > span { display: grid; place-items: center; width: var(--control-sm); height: var(--control-sm); color: var(--green); background: var(--mint); border-radius: 50%; font: 600 var(--type-caption)/1 var(--font-label); }
.year-step small, .year-step strong { display: block; }
.year-step small { margin-bottom: 5px; color: var(--green); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.year-step strong { font-size: 15px; }
.year-step p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.year-setup-actions { display: flex; justify-content: flex-end; gap: 9px; padding: 20px 28px; background: var(--mint-2); }
.control-tower { display: grid; grid-template-columns: 1fr 1.2fr 1fr; overflow: hidden; color: #f4faf7; background: var(--forest); border-radius: var(--radius); }
.control-tower > div { display: grid; align-content: center; gap: 4px; min-height: 96px; padding: 15px 18px; border-right: 1px solid rgba(255,255,255,.13); }
.control-tower > div:last-child { border-right: 0; }
.control-tower small { color: #c3d6ce; font-size: 11px; }
.control-tower strong { font-size: .9375rem; }
.control-tower .text-button { justify-self: start; color: #f3d36d; }
.tower-cost strong { font: 600 1.25rem/1.2 var(--font-display); }
.tower-cost s { color: #a9c0b7; font-size: .8125rem; font-weight: 500; }
.tower-cost strong span { color: #f6d35e; }
.tower-cost p { margin: 0; color: #cfe0d9; font-size: 11px; }
.project-position { display: grid; grid-template-columns: minmax(180px, .7fr) minmax(320px, 1.3fr) auto; align-items: center; gap: var(--space-lg); padding: 14px 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); }
.project-position > div { display: grid; gap: 3px; }
.project-position small { color: var(--muted); font: 500 .625rem/1.2 var(--font-label); letter-spacing: .06em; }
.project-position strong { font-size: .8125rem; line-height: 1.45; }
.project-position .text-button { white-space: nowrap; }
.journey-mini { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; padding: 0 4px; }
.journey-mini span { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 5px; color: var(--muted); }
.journey-mini i { height: 4px; background: #dce5e1; border-radius: 5px; }
.journey-mini small { font-size: 9px; }
.journey-mini .done i { background: var(--green-2); }
.journey-mini .current i { background: var(--yellow); }
.secondary-agent-task { margin-top: var(--space-md); }
.journey-rail { display: grid; grid-template-columns: repeat(7, minmax(110px, 1fr)); max-width: 1460px; margin: 0 auto 20px; overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.journey-node { display: grid; grid-template-columns: 32px 1fr; gap: 4px 9px; min-width: 120px; padding: 16px 13px; color: var(--muted); background: transparent; border: 0; border-right: 1px solid var(--line); text-align: left; }
.journey-node:last-child { border-right: 0; }
.journey-node > span { grid-row: 1 / 3; display: grid; place-items: center; width: 29px; height: 29px; color: var(--muted); background: #edf1ef; border-radius: 50%; font-size: 11px; }
.journey-node strong { color: var(--ink); font-size: 11px; }
.journey-node small { font-size: 9px; }
.journey-node.done > span { color: #f7fbf9; background: var(--green); }
.journey-node.current { background: var(--yellow-soft); }
.journey-node.current > span { color: var(--forest); background: var(--yellow); }
.roadmap-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; max-width: 1460px; margin: 0 auto; }
.step-focus, .gate-panel { overflow: hidden; }
.stage-gate-panel { margin: 0 0 var(--space-lg); padding: var(--space-md) var(--space-lg); border: 1px solid var(--line); border-top: 2px solid var(--ink); background: var(--paper); border-radius: var(--radius-md); }
.stage-gate-panel > header { display: grid; gap: 8px; margin-bottom: var(--space-md); }
.stage-gate-panel > header h2 { margin: 0; font: 600 1.125rem/1.3 var(--font-display); }
.stage-gate-panel > header p:last-child { margin: 0; color: var(--muted); font-size: .75rem; line-height: 1.6; }
.stage-gate-panel ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.stage-gate-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.stage-gate-row > span { font-family: var(--font-label); font-size: 11px; color: var(--green); padding-top: 3px; }
.stage-gate-row strong { display: block; font-size: .875rem; }
.stage-gate-row small { display: block; margin-top: 4px; color: var(--muted); font-size: .75rem; line-height: 1.55; }
.stage-gate-row em { font-style: normal; font-size: .6875rem; font-weight: 700; padding: 3px 7px; border-radius: 3px; background: var(--wash, #f3f6f4); color: var(--muted); }
.stage-gate-row--pass em { background: color-mix(in oklab, var(--green) 16%, white); color: var(--green); }
.stage-gate-row--fail em { background: #fff4e5; color: #9a5b00; }
.stage-gate-row--blocked em { background: var(--wash, #f3f6f4); color: var(--muted); }
.step-checks { display: grid; }
.step-checks > div { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.step-checks > div:last-child { border-bottom: 0; }
.step-checks b { display: grid; place-items: center; width: 27px; height: 27px; color: #795c00; background: var(--yellow-soft); border-radius: 50%; }
.step-checks .complete b { color: var(--green); background: var(--mint); }
.step-checks strong, .step-checks small { display: block; }
.step-checks strong { font-size: 12px; }
.step-checks small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.gate-panel > div:last-child { display: grid; gap: 14px; padding: 22px; }
.gate-count { font: 600 2.375rem/1 var(--font-display); color: var(--green); }
.gate-panel p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.period-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 1460px; margin: 0 auto 18px; }
.period-card { padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); }
.period-card > div:first-child { display: flex; justify-content: space-between; align-items: center; }
.period-card > div:first-child > small { color: var(--green); font-weight: 700; }
.period-card > strong { display: block; margin-top: 18px; font: 600 1.75rem/1 var(--font-display); }
.period-card > p { margin: 5px 0 12px; color: var(--muted); font-size: 11px; }
.period-card > i { display: block; height: 5px; overflow: hidden; background: #e6ece9; border-radius: 5px; }
.period-card > i em { display: block; height: 100%; background: var(--green); border-radius: inherit; }
.period-card.warn > i em { background: var(--yellow); }
.period-card ul { display: grid; gap: 6px; margin: 15px 0 0; padding: 0; color: var(--muted); font-size: 10px; list-style: none; }
.data-layout { grid-template-columns: minmax(0, 1fr) 330px; }
.inline-create { display: grid; grid-template-columns: minmax(190px, 1.05fr) repeat(3, minmax(130px, .7fr)) minmax(220px, .95fr) auto; gap: 12px; align-items: end; max-width: 1460px; margin: 0 auto 14px; padding: 15px 16px; }
.inline-create h2 { margin: 2px 0; font-size: 15px; }
.inline-create p { margin: 0; color: var(--muted); font-size: 10px; }
.inline-create > div > small { color: var(--green); font-size: 9px; }
.inline-create label { display: grid; gap: 4px; color: var(--muted); font-size: 10px; }
.inline-create input:not([type="checkbox"]), .master-fields input { min-height: 36px; padding: 0 9px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 7px; font-size: 12px; }
.inline-create .action-bar { flex-wrap: nowrap; margin: 0; }
.year-scope-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.year-scope-field legend { margin-bottom: 4px; color: var(--muted); font-size: 10px; }
.year-scope-field > div { display: flex; align-items: center; gap: 5px; min-height: 36px; padding: 4px 6px; overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 7px; }
.year-scope-field label, .year-scope-field span { display: inline-flex; grid-auto-flow: column; align-items: center; gap: 4px; min-height: 26px; padding: 0 7px; color: var(--forest); background: var(--mint); border-radius: 5px; font-size: 10px; white-space: nowrap; }
.year-scope-field input { width: 13px; height: 13px; margin: 0; accent-color: var(--green); }
.year-scope-field span { color: var(--muted); background: var(--surface-canvas); }
.product-workspace { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 14px; max-width: 1460px; margin: 0 auto; }
.product-index { align-self: start; overflow: hidden; }
.product-list { display: grid; }
.product-row { display: grid; gap: 3px; padding: 11px 15px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); text-align: left; }
.product-row.active, .product-row:hover { background: var(--mint-2); }
.product-row span { color: var(--green); font-size: 9px; }
.product-row strong { font-size: 12px; }
.product-row small { color: var(--muted); font-size: 10px; }
.product-row em { color: var(--green); font-size: 9px; font-style: normal; }
.product-index-foot { display: flex; justify-content: space-between; gap: 8px; padding: 8px 15px; }
.product-detail { display: grid; gap: 14px; min-width: 0; }
.product-title { display: flex; justify-content: space-between; gap: 18px; padding: 18px 20px; color: var(--text-on-brand); background: var(--forest); border-radius: var(--radius); }
.product-title > div:first-child { display: grid; gap: 5px; }
.product-title small { color: #c7d9d1; font-size: 9px; }
.product-title h2 { margin: 0; font-size: 21px; }
.product-title p { margin: 0; color: #c7d9d1; font-size: 11px; }
.product-title > div:last-child { display: flex; align-items: flex-start; gap: 8px; }
.product-title .button--secondary { color: #f5faf7; background: transparent; border-color: rgba(255,255,255,.32); }
.product-year-line { width: max-content; margin-top: 3px; padding: 3px 7px; color: var(--text-on-brand-muted); background: rgba(255,255,255,.08); border-radius: 5px; font-size: 9px; }
.configuration-section { overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.section-heading > :last-child { flex: 0 0 auto; }
.section-heading h3 { margin: 0; font-size: 15px; }
.section-heading p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.configuration-list { display: grid; }
.configuration-list article { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.configuration-list article:last-child { border-bottom: 0; }
.config-top { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.config-top > span:first-child { display: grid; place-items: center; width: 30px; height: 30px; color: var(--green); background: var(--mint); border-radius: 50%; font-weight: 700; }
.config-top strong, .config-top small { display: block; }
.config-top strong { font-size: 13px; }
.config-top small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.configuration-list dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 10px 0 0 42px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.configuration-list dl div { padding: 8px 10px; background: var(--mint-2); }
.configuration-list dt { color: var(--muted); font-size: 9px; }
.configuration-list dd { margin: 4px 0 0; font-size: 11px; font-weight: 600; }
.configuration-empty { display: grid; justify-items: center; gap: 7px; padding: 48px 24px; text-align: center; }
.configuration-empty span { display: grid; place-items: center; width: 38px; height: 38px; color: var(--green); background: var(--mint); border-radius: 50%; }
.configuration-empty h3 { margin: 5px 0 0; font-size: 15px; }
.configuration-empty p { max-width: 460px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.new-config { background: var(--yellow-soft); }
.new-config .text-button { margin: 13px 0 0 44px; }
.scenario-intro { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; max-width: 1460px; margin: 0 auto 14px; padding: 20px 24px; color: #f5faf7; background: var(--forest); border-radius: var(--radius); }
.scenario-intro > div { display: grid; gap: 4px; }
.scenario-intro small { color: #c7d9d1; font-size: 10px; }
.scenario-intro strong { font-size: 20px; }
.scenario-intro p, .scenario-intro span { margin: 0; color: #c7d9d1; font-size: 11px; }
.recognized-saving { padding-left: 30px; border-left: 1px solid rgba(255,255,255,.18); }
.recognized-saving strong { color: var(--yellow); font: 600 1.875rem/1 var(--font-display); }
.scenario-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 1460px; margin: 0 auto 18px; }
.scenario-board article { padding: 17px; background: var(--white); border: 1px solid var(--line); border-radius: 13px; }
.scenario-board article.current { border-color: var(--green); background: var(--mint-2); }
.scenario-board header { display: flex; gap: 11px; align-items: center; }
.scenario-board header > span { display: grid; place-items: center; width: 30px; height: 30px; color: var(--green); background: var(--mint); border-radius: 50%; font-weight: 700; }
.scenario-board header small { color: var(--green); font-size: 8px; letter-spacing: .08em; }
.scenario-board h2 { margin: 3px 0 0; font-size: 14px; }
.scenario-board article > strong { display: block; margin-top: 17px; font: 600 1.75rem/1 var(--font-display); }
.scenario-board article > p { margin: 6px 0 18px; color: var(--muted); font-size: 10px; }
.scenario-board dl { display: grid; margin: 0; border-top: 1px solid var(--line); }
.scenario-board dl div { display: flex; justify-content: space-between; gap: 18px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 10px; }
.scenario-board dt { color: var(--muted); }
.scenario-board dd { margin: 0; font-weight: 600; text-align: right; }
.scenario-state { display: inline-flex; margin-top: 15px; padding: 6px 9px; color: var(--forest); background: var(--mint); border-radius: 20px; font-size: 9px; }
.scenario-state.warn { color: #745800; background: var(--yellow-soft); }
.decision-panel { display: grid; grid-template-columns: minmax(220px, .72fr) minmax(420px, 1.28fr); gap: 16px 22px; max-width: 1460px; margin: 0 auto 18px; padding: 17px; }
.decision-copy small { color: var(--green); font: 600 .625rem/1.2 var(--font-label); letter-spacing: .07em; }
.decision-copy h2 { margin: 5px 0 6px; font-size: 1rem; }
.decision-copy p { max-width: 52ch; margin: 0; color: var(--muted); font-size: .75rem; line-height: 1.55; }
.decision-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.decision-option { display: grid; align-content: start; gap: 4px; min-height: 76px; padding: 11px; color: var(--forest); background: var(--surface-subtle); border: 1px solid var(--line); border-radius: var(--radius-sm); text-align: left; }
.decision-option:hover { border-color: color-mix(in oklch, var(--green) 48%, var(--line)); }
.decision-option.selected { background: var(--mint); border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.decision-option strong { font-size: .75rem; line-height: 1.35; }
.decision-option span { color: var(--muted); font-size: .6875rem; line-height: 1.4; }
.decision-footer { grid-column: 2; display: flex; justify-content: flex-end; gap: 8px; }
.reduction-ledger { max-width: 1460px; margin: 0 auto 18px; overflow-x: auto; }
.reduction-ledger .panel-head > div { display: grid; gap: 3px; }
.scenario-disclaimer { margin: 0; padding: 14px 18px; color: var(--muted); background: var(--mint-2); font-size: 10px; line-height: 1.6; }
.master-data-note { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 1460px; margin: 0 auto 18px; padding: 17px 20px; color: var(--forest); background: var(--yellow-soft); border: 1px solid #ead88d; border-radius: 10px; }
.master-data-note strong { font-size: 12px; }
.master-data-note p { margin: 4px 0 0; color: #695d39; font-size: 11px; }
.settings-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 18px; max-width: 1460px; margin: 0 auto; }
.settings-nav { align-self: start; display: grid; padding: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.settings-nav button { display: flex; justify-content: space-between; gap: 12px; min-height: 42px; padding: 0 11px; color: var(--muted); background: transparent; border: 0; border-radius: 7px; text-align: left; }
.settings-nav button.active, .settings-nav button:hover { color: var(--forest); background: var(--mint); font-weight: 700; }
.settings-nav span { color: var(--green); }
.settings-main { display: grid; gap: 18px; }
.master-section { overflow: hidden; }
.master-section .panel-head > div { display: grid; gap: 3px; }
.master-fields { display: grid; grid-template-columns: 1fr 1fr; margin: 0; }
.master-fields div { padding: 17px 20px; border-bottom: 1px solid var(--line); }
.master-fields div:nth-child(odd) { border-right: 1px solid var(--line); }
.master-fields dt { color: var(--muted); font-size: 10px; }
.master-fields dd { margin: 6px 0 0; font-size: 12px; font-weight: 600; }
.master-fields input { width: 100%; }
.responsibility-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }
.responsibility-grid div { display: grid; gap: 5px; padding: 16px; background: var(--white); }
.responsibility-grid small { color: var(--muted); font-size: 9px; }
.responsibility-grid strong { font-size: 12px; }
.responsibility-grid span { color: var(--muted); font-size: 10px; }
.approval-board { display: grid; grid-template-columns: minmax(280px, .68fr) minmax(420px, 1.32fr); gap: 18px; max-width: 1460px; margin: 0 auto; }
.stack-list { display: grid; }
.stack-row { display: grid; gap: 5px; width: 100%; padding: 17px 19px; color: var(--ink); background: var(--white); border: 0; border-bottom: 1px solid var(--line); text-align: left; }
.stack-row:last-child { border-bottom: 0; }
.stack-row.active, button.stack-row:hover { background: var(--mint-2); }
.stack-row span { color: var(--green); font-size: 9px; letter-spacing: .05em; }
.stack-row strong { font-size: 13px; }
.stack-row small { color: var(--muted); font-size: 10px; }
.review-sheet { padding: 25px; }
.review-sheet > small { color: var(--green); font-size: 9px; letter-spacing: .08em; }
.review-sheet h2 { margin: 8px 0; font-size: 23px; }
.review-sheet > p { margin: 0; color: var(--muted); font-size: 12px; }
.review-sheet ol { display: grid; margin: 22px 0 0; padding: 0; list-style: none; }
.review-sheet li { display: grid; grid-template-columns: 28px 1fr; gap: 11px; padding: 14px 0; border-top: 1px solid var(--line); }
.review-sheet li > span { color: var(--green); font-weight: 700; }
.review-sheet li strong, .review-sheet li small { display: block; }
.review-sheet li strong { font-size: 12px; }
.review-sheet li small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.workload-panel { overflow: hidden; }
.workload-list { display: grid; padding: 6px 20px 18px; }
.workload-list > div { display: grid; grid-template-columns: 1fr auto; gap: 8px 20px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.workload-list > div:last-child { border-bottom: 0; }
.workload-list span, .workload-list strong, .workload-list small { display: block; }
.workload-list strong { font-size: 12px; }
.workload-list small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.workload-list b { color: var(--forest); font-size: 12px; }
.workload-list i { grid-column: 1 / 3; height: 5px; overflow: hidden; background: #e8eeeb; border-radius: 5px; }
.workload-list em { display: block; height: 100%; background: var(--green); border-radius: inherit; }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 1460px; margin: 0 auto; }
.account-grid article { padding: clamp(24px, 3vw, 38px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.account-grid article > small { color: var(--green); font-size: 9px; letter-spacing: .08em; }
.account-grid h2 { margin: 8px 0 12px; font-size: 25px; }
.account-grid article > p { min-height: 52px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.account-grid dl { display: grid; margin: 24px 0; border-top: 1px solid var(--line); }
.account-grid dl div { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.account-grid dt { color: var(--muted); }
.account-grid dd { margin: 0; font-weight: 700; }
.service-hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, .5fr); gap: var(--space-lg); max-width: 1460px; margin: 0 auto 18px; padding: 28px; color: #f5faf7; background: var(--forest); border-radius: var(--radius); }
.service-hero > div { display: grid; align-content: start; gap: 6px; }
.service-hero small { color: #c7d9d1; font-size: 9px; letter-spacing: .08em; }
.service-hero h2 { margin: 0; font-size: 24px; }
.service-hero p, .service-hero span { margin: 0; color: #c7d9d1; font-size: 11px; }
.service-hero > div:last-child { padding-top: 2px; border-top: 1px solid rgba(255,255,255,.18); }
.service-hero > div:last-child strong { margin-top: 3px; font-size: 14px; }
.service-layout { max-width: 1460px; margin-right: auto; margin-left: auto; }
.scope-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.scope-grid div { padding: 15px 18px; border-top: 1px solid var(--line); }
.scope-grid div:nth-child(odd) { border-right: 1px solid var(--line); }
.scope-grid dt { color: var(--muted); font-size: 9px; }
.scope-grid dd { margin: 5px 0 0; font-size: 11px; font-weight: 600; }
.compact-checklist { display: grid; margin: 0; padding: 0 20px 10px; list-style: none; }
.compact-checklist li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); }
.compact-checklist li > span { color: var(--green); font-weight: 700; }
.compact-checklist strong, .compact-checklist small { display: block; }
.compact-checklist strong { font-size: 11px; }
.compact-checklist small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.privacy-band { display: flex; align-items: center; gap: 12px 20px; max-width: 1460px; margin: 0 auto 18px; padding: 15px 18px; color: var(--forest); background: var(--mint); border: 1px solid var(--line-strong); border-radius: 10px; }
.privacy-band strong { flex: 0 0 auto; font-size: 11px; }
.privacy-band span { flex: 1; color: var(--muted); font-size: 10px; line-height: 1.55; }
.task-focus { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 900px; margin: 0 auto 18px; padding: 28px; }
.task-focus > div { display: grid; gap: 6px; }
.task-focus small { color: var(--green); font-size: 9px; }
.task-focus h2 { margin: 0; font-size: 21px; }
.task-focus p { max-width: 70ch; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.case-ledger { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1460px; margin: 0 auto 18px; overflow: hidden; color: #f5faf7; background: var(--forest); border-radius: var(--radius); }
.case-ledger > div { display: grid; gap: 5px; padding: 18px 20px; border-right: 1px solid rgba(255,255,255,.14); }
.case-ledger > div:last-child { border-right: 0; }
.case-ledger small, .case-ledger span { color: #c7d9d1; font-size: 9px; }
.case-ledger strong { font-size: 12px; }
.case-workspace { max-width: 1460px; margin-right: auto; margin-left: auto; }
.relationship-map { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 12px; align-items: center; padding: 22px; border-top: 1px solid var(--line); }
.relationship-map > div { display: grid; gap: 5px; padding: 14px; background: var(--mint-2); border: 1px solid var(--line); border-radius: 8px; }
.relationship-map > i { color: var(--green); font-style: normal; }
.relationship-map small, .relationship-map span { color: var(--muted); font-size: 9px; }
.relationship-map strong { font-size: 11px; }
.handoff-flow { display: flex; align-items: center; gap: 9px; max-width: 1460px; margin: 0 auto 18px; padding: 15px 18px; overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
.handoff-flow span { flex: 0 0 auto; padding: 7px 10px; color: var(--muted); font-size: 10px; border-radius: 18px; }
.handoff-flow span.done { color: var(--forest); background: var(--mint); }
.handoff-flow span.current { color: var(--white); background: var(--green); }
.handoff-flow i { color: var(--line-strong); font-style: normal; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 100; max-width: 360px; padding: 14px 17px; color: var(--white); background: var(--forest); border-radius: 9px; box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); pointer-events: none; transition: .22s ease; }
.toast.show { opacity: 1; transform: translateY(0); }

/* Website alignment
   The portal inherits the public site's typography, geometry and restrained
   editorial hierarchy. Operational density changes; the brand language does not. */
.login-screen {
  position: relative;
  grid-template-columns: minmax(520px, 1.12fr) minmax(440px, .88fr);
  background: var(--white);
}
.login-screen::before,
.login-screen::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 1px;
  height: 66%;
  top: 9%;
  background: #DDEBE5;
  transform: rotate(16deg);
  transform-origin: top;
  pointer-events: none;
}
.login-screen::before { left: 26%; }
.login-screen::after { left: 61%; }
.login-story,
.login-panel { position: relative; z-index: 1; }
.login-story {
  min-height: 100vh;
  padding: clamp(32px, 4vw, 64px);
  color: var(--ink);
  background: rgba(255, 255, 255, .91);
}
.story-copy { max-width: 700px; margin: 68px 0; }
.login-story .eyebrow { color: var(--green); }
.story-copy h1 {
  max-width: 700px;
  margin-bottom: 24px;
  font-size: clamp(40px, 4vw, 64px);
  line-height: 1.08;
  letter-spacing: -.045em;
}
.story-copy h1 span { color: var(--green); }
.story-copy > p:last-child {
  max-width: 620px;
  color: #46524E;
  font-size: 16px;
  line-height: 1.75;
}
.trust-note { max-width: 620px; padding-top: 20px; border-top-color: var(--line); }
.trust-note > span {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
  color: var(--green);
  background: var(--mint);
  border: 1px solid #B9D8CC;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.trust-note p { color: var(--muted); font-size: 13px; }
.trust-note strong { color: var(--ink); }
.login-panel {
  padding: 48px clamp(36px, 5vw, 80px);
  background: rgba(247, 249, 248, .94);
  border-left: 1px solid var(--line);
}
.login-box {
  width: min(100%, 500px);
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
}
.login-box h2 { font-size: 30px; font-weight: 600; }
.login-box > .muted { margin-bottom: 24px; font-size: 14px; }
.login-box form { gap: 15px; }
.login-box label:not(.check) { gap: 7px; font-size: 12px; font-weight: 500; }
.login-box input { min-height: 44px; border-color: var(--line-strong); border-radius: var(--radius-sm); }
.login-options { font-size: 12px; }
.button,
.action,
.primary { border-radius: var(--radius-sm); font-weight: 500; }
.button--large,
.primary { min-height: 44px; }
.button--secondary,
.action.secondary-action { border-color: var(--line-strong); }
.demo-divider { margin: 24px 0 15px; color: var(--muted); font-size: 11px; }
.demo-roles { gap: 8px; }
.demo-roles button {
  min-height: 60px;
  padding: 10px 12px;
  border-color: var(--line);
  border-radius: var(--radius-sm);
}
.demo-roles b { font-size: 13px; font-weight: 600; }
.demo-roles small { font-size: 10px; }
.prototype-note { margin-top: 16px; color: var(--muted); font-size: 10px; }

.topbar {
  min-height: var(--topbar-h);
  height: var(--topbar-h);
  max-height: var(--topbar-h);
  padding: 0 24px;
  background: var(--white);
  backdrop-filter: none;
}
.product-name { color: var(--muted); font-size: var(--type-caption); }
.company-switch {
  border-radius: var(--radius-md);
  border-color: var(--line);
}
.company-switch strong { font-weight: 600; }
.year-switch select,
.quarter-switch select,
.sidebar select {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line-strong);
  border-radius: var(--radius-sm);
  font-weight: 500;
}
.year-switch select, .quarter-switch select { color: var(--ink); }
.mobile-menu,
.profile-button > span:first-child { border-radius: var(--radius-sm); background: var(--forest); }
.icon-button { background: transparent; color: #4A5651; }
.portal-layout { grid-template-columns: var(--rail-w) var(--sidebar-w) minmax(0, 1fr); min-height: calc(100vh - var(--topbar-h)); }
.sidebar {
  top: 68px;
  height: calc(100vh - 68px);
  padding: 20px 12px 14px;
  background: var(--white);
}
.sidebar nav { gap: 2px; }
.nav-label { margin-top: 10px; color: var(--muted); font-weight: 500; }
.nav-item {
  min-height: 38px;
  color: #47534F;
  border-radius: var(--radius-sm);
}
.nav-item:hover { color: var(--ink); background: var(--mint-2); }
.nav-item.active { color: var(--green); background: var(--mint); font-weight: 600; }
.nav-icon { color: currentColor; }
.nav-badge,
.status-chip,
.record-state,
.scenario-state { border-radius: var(--radius-xs); font-weight: 500; }
.settings-entry {
  background: var(--white);
  border-color: var(--line-strong);
  border-radius: var(--radius-sm);
}
.workspace { padding: 28px clamp(22px, 2.2vw, 36px) 48px; }

.page-head { margin-bottom: 22px; }
.page-head p { margin-bottom: 7px; font-weight: 500; }
.page-head h1 { font-size: 26px; font-weight: 600; letter-spacing: -.03em; }
.page-head .head-note { font-size: 12px; }
.panel,
.year-setup,
.configuration-section,
.delivery-list,
.journey-rail,
.period-card,
.inline-create,
.product-index,
.context-rail,
.wide-panel,
.flat-panel,
.fact-review,
.trace-panel,
.task-focus,
.case-workspace,
.handoff-flow,
.relationship-map > div {
  border-radius: var(--radius-md);
}
.panel-head { padding: 13px 16px; }
.panel-head h2,
.panel-head h3 { font-weight: 600; }
.text-button { font-weight: 600; }
.next-action,
.master-data-note,
.trial-handoff,
.callout {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line-strong);
  border-top: 2px solid var(--yellow);
  border-radius: var(--radius-md);
}
.next-action small,
.next-action p,
.master-data-note p,
.trial-handoff small,
.trial-handoff p { color: var(--muted); }

/* The website's Communication Form card is the reference for high-value summaries. */
.control-tower,
.progress-strip,
.object-summary,
.result-ledger,
.delivery-intro,
.permission-summary,
.product-title,
.scenario-intro,
.service-hero,
.case-ledger {
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-top: 2px solid var(--ink);
  border-radius: var(--radius-md);
}
.control-tower > div,
.result-ledger > div,
.permission-summary > div,
.case-ledger > div { border-color: var(--line); }
.control-tower small,
.progress-strip small,
.progress-strip > span,
.object-summary small,
.object-summary span,
.result-ledger small,
.result-ledger span,
.result-ledger p,
.delivery-intro small,
.delivery-intro p,
.permission-summary small,
.permission-summary p,
.product-title small,
.product-title p,
.scenario-intro small,
.scenario-intro p,
.scenario-intro span,
.service-hero small,
.service-hero p,
.service-hero span,
.case-ledger small,
.case-ledger span { color: var(--muted); }
.control-tower .text-button { color: var(--green); }
.tower-cost s { color: var(--muted); }
.tower-cost strong span { color: var(--green); text-decoration: underline 3px var(--yellow); text-underline-offset: 5px; }
.tower-cost p { color: var(--muted); }
.product-title .button--secondary { color: var(--ink); background: var(--white); border-color: var(--line-strong); }
.service-hero > div:last-child { border-top-color: var(--line); }
.stage-line i { background: var(--line); }
.stage-line i.done { background: var(--green); }
.coverage-ring::after { background: var(--white); }
.coverage-ring { background: conic-gradient(var(--yellow) var(--coverage), var(--line) 0); }
.coverage-ring small { color: var(--muted); }
.progress-track { background: var(--line); }
.product-year-line { color: var(--muted); background: var(--mint-2); border-radius: var(--radius-xs); }
.recognized-saving { border-left-color: var(--line); }
.recognized-saving strong { color: var(--green); text-decoration: underline 3px var(--yellow); text-underline-offset: 5px; }

.agent-task-top { background: var(--white); }
.agent-mark { border-radius: var(--radius-sm); }
.agent-task h2 { font-size: 21px; font-weight: 600; }
.answer-button {
  min-height: 40px;
  border-color: var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
}
.agent-result,
.question-explainer,
.confirmation-note,
.locked-banner,
.evidence-box,
.upload-zone,
.comparison article,
.security-note,
.privacy-band { border-radius: var(--radius-md); }
.context-intro {
  color: var(--ink);
  background: var(--white);
  border-bottom: 2px solid var(--ink);
}
.context-intro p { color: var(--green); font-weight: 500; }
.context-intro h2 { color: var(--ink); }
.task-number,
.year-step > span,
.journey-node > span,
.step-checks b,
.config-top > span:first-child,
.configuration-empty span,
.finding-level,
.round-action { border-radius: var(--radius-sm); }
.metric-line { border-radius: var(--radius-md); }
.metric-line strong,
.tower-cost strong,
.result-ledger strong,
.permission-summary strong,
.period-card > strong,
.scenario-board article > strong { font-family: var(--font-label); font-weight: 500; letter-spacing: -.02em; }
.scenario-card,
.period-card,
.comparison article,
.evidence-box,
.upload-zone,
.privacy-band,
.security-note,
.locked-banner,
.master-data-note,
.settings-nav,
.settings-nav button,
.configuration-list dl,
.scenario-board article,
.inline-create input:not([type="checkbox"]),
.master-fields input,
.year-scope-field > div,
.year-scope-field label,
.year-scope-field span { border-radius: var(--radius-md); }
.round-action { border: 1px solid var(--line); }
.toast { border-radius: var(--radius-sm); }

/* Editorial application layout: the same 1200px rhythm and alternating
   light/dark hierarchy used by the public website. */
.login-screen {
  grid-template-columns: minmax(0, 1fr) minmax(440px, 1fr);
  grid-template-rows: 56px minmax(0, 1fr);
  background: linear-gradient(150deg, #EFF7F4 0%, #FFFFFF 62%);
}
.login-header {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--topbar-h);
  min-height: var(--topbar-h);
  max-height: var(--topbar-h);
  padding: 0 clamp(24px, 4vw, 56px);
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.login-header .brand {
  align-self: center;
  min-height: 0;
  height: 32px;
  gap: 8px;
  /* 保留全局 .brand 字色（品牌黄），仅修垂直居中与尺寸 */
}
.login-header .brand img {
  width: 28px;
  height: 20px;
  object-fit: contain;
  border-radius: 0;
}
.login-header nav { display: flex; align-items: center; gap: 28px; }
.login-header nav a {
  color: #47534F;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
}
.login-header nav a:hover { color: var(--green); }
.login-header .login-header-cta {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  color: var(--white);
  background: var(--green);
  border-radius: var(--radius-sm);
  font-weight: 500;
}
.login-header .login-header-cta:hover { color: var(--white); background: #0A4F3A; }
.login-story,
.login-panel { min-height: calc(100vh - var(--topbar-h)); }
.login-story {
  grid-column: 1;
  padding: clamp(96px, 12vh, 128px) clamp(32px, 4.5vw, 64px) 40px;
  background: transparent;
}
.story-copy { margin: 0; }
.story-copy h1 {
  max-width: none;
  margin-bottom: 18px;
  font-size: clamp(2.25rem, 3.2vw, 2.875rem);
  line-height: 1.12;
  letter-spacing: -.03em;
}
.story-copy h1 .story-title-line { display: block; color: var(--ink); white-space: nowrap; }
.story-copy h1 .story-title-line--accent { color: var(--green); }
.story-copy > p:last-child { max-width: 40ch; font-size: 1rem; line-height: 1.65; }
.trust-note { margin-top: 32px; }
.login-panel {
  grid-column: 2;
  align-items: start;
  justify-items: center;
  padding: clamp(48px, 7vh, 64px) clamp(32px, 4.5vw, 64px) 40px;
  background: transparent;
  border-left: 0;
}
.login-box {
  width: min(100%, 500px);
  min-height: 440px;
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-top: 2px solid var(--ink);
  border-radius: var(--radius-sm);
}
.login-box h2 {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.02em;
}
.login-step[data-step-panel="sso"] h2,
.login-step[data-step-panel="password"] h2,
.login-step[data-step-panel="workspace"] h2 {
  margin: 14px 0 8px;
  font-size: 24px;
  line-height: 1.3;
}
.login-step[data-step-panel="password"] h2 { margin-bottom: 20px; }
.login-step[data-step-panel="workspace"] h2 { margin: 0 0 4px; }
.login-box .muted,
.login-step-copy {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.login-step-copy { margin-bottom: 20px; color: var(--ink-secondary); line-height: 1.6; }
.login-box form { display: flex; flex-direction: column; flex: 1; gap: 0; }
.demo-roles button { min-height: 52px; }
.login-step { display: flex; flex-direction: column; flex: 1; }
.login-box label:not(.check):not(.demo-role-select) {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
}
.login-box input {
  min-height: 44px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 400;
}
.login-box input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--mint);
  outline: none;
}
.login-email-hint {
  margin: 8px 0 0;
  min-height: 18px;
  color: #0B6B47;
  font-size: 12px;
  line-height: 1.4;
}
.login-email-hint--muted,
.login-email-hint.is-muted { color: var(--muted); }
.login-email-hint.is-error { color: var(--danger); }
.login-email-hint:empty { min-height: 0; margin-top: 0; }
.login-continue {
  margin-top: 12px;
  justify-content: space-between;
  width: 100%;
  height: 44px;
  min-height: 44px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 500;
}
.login-step[data-step-panel="sso"] .login-continue,
.login-step[data-step-panel="password"] .login-continue {
  margin-top: auto;
}
.login-email-chip { margin-bottom: 0; }
.login-alt-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: var(--muted);
  font-size: 12px;
}
.login-alt-divider::before,
.login-alt-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.login-alt-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.login-alt-actions .button {
  height: 40px;
  min-height: 40px;
  padding: 0 12px;
  color: var(--forest);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.login-alt-actions .button:hover { background: var(--mint-2); }
.demo-role-select {
  margin-top: 28px;
  padding: 10px 14px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  box-sizing: border-box;
}
.demo-role-select > span {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.4;
  white-space: nowrap;
}
.demo-role-select select {
  flex: 0 0 auto;
  width: auto;
  max-width: 160px;
  min-height: 0;
  height: auto;
  margin: 0;
  padding: 0 18px 0 0;
  border: 0;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%231A1A1A' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right center;
  background-size: 12px;
  appearance: none;
  -webkit-appearance: none;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-align: right;
}
.login-email-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--ink-secondary);
  font-size: 13px;
}
.login-sso-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  padding: 16px;
  background: var(--mint-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.login-sso-card__mark,
.workspace-card__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  color: var(--white);
  background: var(--forest);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
}
.workspace-card__mark--ext { background: #47534F; }
.login-sso-card strong,
.login-sso-card small { display: block; }
.login-sso-card strong { font-size: 14px; }
.login-sso-card small { margin-top: 2px; color: var(--muted); font-size: 12px; }
.login-secondary-link {
  margin-top: 10px;
  align-self: flex-start;
  height: 40px;
  font-size: 13px;
}
.login-options { margin-top: 8px; font-size: 12px; }
.login-workspace-lead { margin: 0 0 16px; font-size: 13px; }
.workspace-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.workspace-card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: center;
  width: 100%;
  padding: 14px;
  text-align: left;
  background: var(--white);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}
.workspace-card:last-child { border-bottom: 0; }
.workspace-card:hover { background: var(--mint-2); }
.workspace-card span:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
.workspace-card strong { font-size: 14px; }
.workspace-card small { color: var(--ink-secondary); font-size: 12px; }
.workspace-card > span:last-child { color: var(--muted); }
.login-workspace-foot {
  margin-top: auto;
  padding-top: 16px;
  color: var(--muted);
  font-size: 12px;
}
.login-footer {
  position: absolute;
  left: clamp(24px, 4vw, 56px);
  right: clamp(24px, 4vw, 56px);
  bottom: 24px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 12px;
}
.login-screen { position: relative; }

.topbar { min-height: var(--topbar-h); height: var(--topbar-h); max-height: var(--topbar-h); padding-inline: 24px; }
.portal-layout { grid-template-columns: var(--rail-w) var(--sidebar-w) minmax(0, 1fr); min-height: calc(100vh - var(--topbar-h)); }
.sidebar { top: var(--topbar-h); height: calc(100vh - var(--topbar-h)); padding-top: 16px; width: var(--sidebar-w); }
.workspace {
  position: relative;
  padding: var(--space-xl);
  background: var(--surface-canvas);
}
.page-head { margin-bottom: var(--space-lg); max-width: var(--content-max); }
.page-head p, .page-head__meta { font-size: var(--type-caption); letter-spacing: 0; color: var(--muted); font-weight: 400; text-transform: none; }
.page-head h1 { font-size: var(--type-display); letter-spacing: 0; line-height: 2rem; }
.page-head .head-note { max-width: 480px; font-size: 13px; line-height: 1.65; }
.product-name { font-size: 15px; }

.page-head,
.next-action,
.customer-layout,
.staff-layout,
.metric-line,
.wide-panel,
.callout,
.content-split,
.extraction-review,
.result-ledger,
.delivery-intro,
.delivery-list,
.permission-summary,
.security-note,
.journey-rail,
.roadmap-layout,
.period-grid,
.inline-create,
.product-workspace,
.scenario-intro,
.scenario-board,
.decision-panel,
.reduction-ledger,
.master-data-note,
.settings-layout,
.approval-board,
.account-grid,
.service-hero,
.service-layout,
.privacy-band,
.case-ledger,
.case-workspace,
.handoff-flow,
.cadence-notice,
.certificate-price-strip,
.cadence-deliverables,
.annual-overview,
.empty-workspace,
.annual-result-grid { max-width: var(--content-max); }

/* A single brand panel may lead a page; subsequent sections return to paper. */
.service-hero,
.scenario-intro,
.delivery-intro,
.object-summary,
.result-ledger {
  color: var(--text-on-brand);
  background: var(--forest);
  border-color: var(--forest);
  border-top-color: var(--forest);
  border-radius: var(--radius-lg);
}
.service-hero { padding: 32px 36px; }
.service-hero h2 { margin-top: 12px; font-size: 28px; letter-spacing: -.02em; }
.service-hero > div { gap: 8px; }
.service-hero > div:last-child { align-self: stretch; padding: 6px 0 0 28px; border-top: 0; border-left: 1px solid rgba(255,255,255,.18); }
.service-hero small,
.service-hero p,
.service-hero span,
.scenario-intro small,
.scenario-intro p,
.scenario-intro span,
.delivery-intro small,
.delivery-intro p,
.object-summary small,
.object-summary span,
.result-ledger small,
.result-ledger span,
.result-ledger p { color: #C6D1CD; }
.result-ledger > div { border-color: rgba(255,255,255,.14); }
.coverage-ring::after { background: var(--forest); }
.recognized-saving { border-left-color: rgba(255,255,255,.18); }
.recognized-saving strong { color: var(--yellow); text-decoration: none; }
.product-title,
.permission-summary,
.case-ledger { border-top-width: 1px; }

.panel-head { padding: 16px 20px; }
.panel-head h2,
.panel-head h3 { font-size: 15px; }
.data-table th { padding: 12px 18px; font-size: 11px; font-weight: 500; }
.data-table td { padding: 16px 18px; font-size: 13px; }
.data-table strong { font-size: 14px; }
.service-layout .panel,
.service-layout .flat-panel { border-radius: var(--radius-lg); }
.scope-grid div { padding: 18px 20px; }
.scope-grid dt { font-size: 11px; }
.scope-grid dd { margin-top: 7px; font-size: 13px; }
.compact-checklist li { padding-block: 17px; }
.compact-checklist strong { font-size: 13px; }
.compact-checklist small { font-size: 11px; }

/* Operation guide: an actionable map, not a passive process poster. */
.guide-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .45fr);
  max-width: var(--content-max);
  margin: 0 auto 28px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-top: 2px solid var(--ink);
  border-radius: var(--radius-md);
}
.guide-overview > div:first-child { padding: 28px 32px; }
.guide-overview small,
.guide-section-head small,
.guide-role-list span {
  color: var(--green);
  font: 500 11px/1.3 var(--font-label);
  letter-spacing: .08em;
}
.guide-overview h2 { max-width: 30ch; margin: 10px 0 12px; font-size: 24px; line-height: 1.35; letter-spacing: -.02em; }
.guide-overview p { max-width: 70ch; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.guide-entry-links { display: flex; align-items: center; gap: var(--space-md); margin-top: var(--space-md); }
.guide-entry-links a { color: var(--muted); font-size: 12px; text-decoration: none; }
.guide-entry-links a:hover { color: var(--green); }
.guide-now {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 24px;
  background: var(--mint-2);
  border-left: 1px solid var(--line);
}
.guide-now > small { color: var(--muted); }
.guide-now strong { font-size: 16px; }
.guide-now span { color: var(--muted); font-size: 12px; line-height: 1.55; }
.guide-now .button { justify-content: space-between; min-height: 40px; margin-top: 8px; }

.platform-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: var(--content-max);
  margin: 0 auto 28px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.platform-flow.five-stage-flow { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.flow-node {
  position: relative;
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 118px;
  padding: 18px 18px 20px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  text-align: left;
  text-decoration: none;
}
.flow-node:last-child { border-right: 0; }
.flow-node:hover { background: var(--mint-2); }
.flow-node.current { background: var(--yellow-soft); }
.flow-node > span { color: var(--green); font: 500 11px/1 var(--font-label); }
.flow-node.current > span { color: #765A00; }
.flow-node > strong { font-size: 14px; line-height: 1.4; }
.flow-node > small { color: var(--muted); font-size: 11px; line-height: 1.5; }
.flow-node.done > strong::after { content: " · 已完成"; color: var(--green); font-size: 10px; font-weight: 500; }

.cadence-map {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: var(--content-max);
  margin: 0 auto var(--space-xl);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 2px solid var(--ink);
  border-radius: var(--radius-md);
}
.cadence-map > div { display: grid; align-content: start; gap: var(--space-xs); min-height: 166px; padding: var(--space-lg); }
.cadence-map > div + div { border-left: 1px solid var(--line); }
.cadence-map small,
.cadence-notice small,
.certificate-price-strip > div > small { color: var(--green); font: 500 11px/1.3 var(--font-label); letter-spacing: .08em; }
.cadence-map strong { font-size: 17px; }
.cadence-map p { max-width: 58ch; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.cadence-map .text-button { justify-self: start; margin-top: auto; }

.cadence-notice {
  display: grid;
  grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: var(--space-lg);
  margin: 0 auto var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 2px solid var(--ink);
  border-radius: var(--radius-md);
}
.cadence-notice strong { display: block; margin-top: var(--space-xs); font-size: 14px; }
.cadence-notice p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

.period-card { width: 100%; color: var(--ink); text-align: left; }
.period-card.selected { border-color: var(--green); outline: 1px solid var(--green); outline-offset: -2px; background: var(--mint-2); }

.certificate-price-strip {
  display: grid;
  grid-template-columns: minmax(320px, 1.5fr) repeat(4, minmax(110px, .5fr));
  margin: 0 auto var(--space-md);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 2px solid var(--ink);
  border-radius: var(--radius-md);
}
.certificate-price-strip > div { padding: var(--space-md) var(--space-lg); }
.certificate-price-strip > div > strong { display: block; margin-top: var(--space-xs); font-size: 14px; }
.certificate-price-strip > div > p { margin: var(--space-xs) 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.certificate-price-strip > div > p a { color: var(--green); font-weight: 600; text-decoration: none; white-space: nowrap; }
.price-cell { display: grid; align-content: center; gap: var(--space-xs); padding: var(--space-md); color: var(--ink); background: transparent; border: 0; border-left: 1px solid var(--line); text-align: left; }
.price-cell:hover { background: var(--mint-2); }
.price-cell.active { background: var(--yellow-soft); }
.price-cell small { color: var(--green); font: 500 11px/1 var(--font-label); }
.price-cell strong { font: 500 16px/1.2 var(--font-label); }
.price-cell span { color: var(--muted); font-size: 9px; }

.cadence-deliverables { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr); gap: var(--space-md); margin: 0 auto var(--space-xl); }
.quarter-package-list { display: grid; grid-template-columns: repeat(4, 1fr); }
.quarter-package { display: grid; gap: var(--space-xs); min-height: 110px; padding: var(--space-md); color: var(--ink); background: transparent; border: 0; border-right: 1px solid var(--line); text-align: left; }
.quarter-package:last-child { border-right: 0; }
.quarter-package:hover { background: var(--mint-2); }
.quarter-package.active { background: var(--yellow-soft); }
.quarter-package > span { color: var(--green); font: 500 11px/1 var(--font-label); }
.quarter-package > strong { margin-top: auto; font-size: 13px; }
.quarter-package > small { color: var(--muted); font-size: 9px; }
.annual-rule ol { display: grid; margin: 0; padding: 0; list-style: none; }
.annual-rule li { display: grid; grid-template-columns: 28px 1fr; gap: var(--space-sm); padding: var(--space-sm) var(--space-md); border-bottom: 1px solid var(--line); }
.annual-rule li:last-child { border-bottom: 0; }
.annual-rule li > span { color: var(--green); font: 500 10px/1.5 var(--font-label); }
.annual-rule li strong, .annual-rule li small { display: block; }
.annual-rule li strong { font-size: 12px; }
.annual-rule li small { margin-top: var(--space-2xs); color: var(--muted); font-size: 10px; line-height: 1.45; }

.guide-roles { max-width: var(--content-max); margin: 0 auto 36px; overflow: hidden; }
.guide-role-list { display: grid; grid-template-columns: repeat(3, 1fr); }
.guide-role-list article { min-height: 148px; padding: 22px 24px; border-right: 1px solid var(--line); }
.guide-role-list article:last-child { border-right: 0; }
.guide-role-list strong { display: block; margin-top: 13px; font-size: 15px; line-height: 1.45; }
.guide-role-list p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.guide-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--content-max);
  margin: 0 auto 16px;
}
.guide-section-head h2 { margin: 7px 0 0; font-size: 22px; }
.guide-section-head p { margin: 0; color: var(--muted); font-size: 12px; }
.journey-node { min-height: 146px; align-content: start; padding: 18px 13px; }
.journey-node > span { grid-row: 1 / 5; border-radius: var(--radius-sm); }
.journey-node strong { font-size: 12px; line-height: 1.4; }
.journey-node em { color: var(--muted); font-size: 10px; font-style: normal; line-height: 1.5; }
.journey-node small { color: var(--green); line-height: 1.45; }
.journey-node.current small { color: #765A00; }

/* Project context and drawers */
.project-period {
  display: flex;
  align-items: stretch;
  flex: none;
  height: 34px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.project-period[hidden] { display: none !important; }
.project-period label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 0 12px;
  margin: 0;
}
.project-period__sep {
  align-self: center;
  width: 1px;
  height: 18px;
  background: var(--line);
}
.project-period small {
  color: var(--muted);
  font: 400 12px/1 var(--font-body);
  letter-spacing: 0;
}
.project-period .year-switch select,
.project-period .quarter-switch select {
  min-height: 0;
  height: auto;
  padding: 0 14px 0 0;
  color: var(--ink);
  background-color: transparent;
  background-image: none;
  border: 0;
  border-radius: 0;
  font: 600 13px/1 var(--font-label);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.project-period__tone {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--green-2);
  font-size: 12px;
}
.project-period__tone i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.project-period__tone em { font-style: normal; }
.project-period__tone[data-tone="locked"] { color: #4A5651; }
.project-period__tone[data-tone="warn"] { color: #8A5300; }
.project-period__tone[data-tone="active"] { color: var(--green-2); }
.project-period__chevron {
  display: grid;
  place-items: center;
  width: 28px;
  height: 100%;
  border-left: 1px solid var(--line);
  color: var(--muted);
  pointer-events: none;
}
.project-period__chevron::before {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: url("https://unpkg.com/lucide-static@0.454.0/icons/chevron-down.svg") center / contain no-repeat;
  mask: url("https://unpkg.com/lucide-static@0.454.0/icons/chevron-down.svg") center / contain no-repeat;
}
.sidebar select {
  min-height: 32px;
  padding: 0 28px 0 10px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-weight: 400;
}

body.drawer-open { overflow: hidden; }
.drawer-layer { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-columns: 1fr minmax(440px, 560px); }
.drawer-layer--wide { grid-template-columns: 1fr minmax(560px, 780px); }
.drawer-layer[hidden] { display: none; }
.drawer-backdrop { grid-column: 1 / 3; grid-row: 1; width: 100%; height: 100%; background: rgba(6, 30, 22, .38); border: 0; }
.drawer {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
  border-left: 1px solid var(--line-strong);
  box-shadow: -18px 0 50px rgba(7, 38, 28, .12);
}
.drawer:focus { outline: none; }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 23px 24px 18px; background: var(--white); border-bottom: 1px solid var(--line); }
.drawer-head p { margin: 0 0 5px; color: var(--green); font: 600 10px/1.2 var(--font-label); letter-spacing: .1em; }
.drawer-head h2 { margin: 0; font: 600 23px/1.2 var(--font-display); letter-spacing: -.025em; }
.drawer-close { display: grid; place-items: center; width: 34px; height: 34px; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 22px; line-height: 1; }
.drawer-body { min-height: 0; overflow: auto; padding: 22px 24px 30px; }
.drawer-form { display: flex; flex-direction: column; min-height: 100%; }
.drawer-intro { margin: 0 0 20px; padding: 13px 14px; color: var(--text-secondary); background: var(--mint-2); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 12px; line-height: 1.65; }
.drawer-fields { display: grid; align-content: start; gap: 16px; }
.drawer-field { display: grid; gap: 7px; color: var(--ink); font-size: 12px; font-weight: 600; }
.drawer-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.drawer-fieldset legend { margin-bottom: 7px; padding: 0; }
.drawer-field > small { color: var(--muted); font-size: 10px; font-weight: 400; line-height: 1.5; }
.drawer-field :where(input:not([type="checkbox"]), select, textarea) { width: 100%; min-height: 40px; padding: 9px 11px; color: var(--ink); background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font: 400 12px/1.45 var(--font-body); }
.drawer-field textarea { resize: vertical; }
.drawer-field :where(input, select, textarea):focus { border-color: var(--green); outline: 2px solid color-mix(in oklch, var(--green) 18%, transparent); outline-offset: 1px; }
.drawer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.drawer-actions .button {
  height: 36px;
  min-height: 36px;
  padding: 0 14px;
  flex: 0 0 auto;
  align-self: center;
}
.upload-drop { display: grid; place-items: center; min-height: 128px; padding: 18px; text-align: center; background: var(--white); border: 1px dashed var(--green); border-radius: var(--radius-sm); }
.upload-drop input { width: 100%; font-size: 11px; }
.upload-drop strong { margin-top: 8px; font-size: 13px; }
.upload-drop small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.check-grid label { display: flex; align-items: center; gap: 7px; min-height: 38px; padding: 8px 10px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 11px; font-weight: 500; }
.check-grid input { accent-color: var(--green); }
.code-candidate, .locked-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.code-candidate strong, .code-candidate small, .locked-row strong, .locked-row span { display: block; }
.code-candidate small, .locked-row span { margin-top: 2px; color: var(--muted); font-size: 10px; }
.drawer-context { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 12px; background: var(--forest); border-radius: var(--radius-sm); color: var(--white); }
.drawer-context span { grid-row: 1 / 3; align-self: center; color: var(--yellow); font-size: 10px; }
.drawer-context strong { font-size: 12px; }
.drawer-context small { color: #bed0c9; font-size: 10px; }
.audit-list { display: grid; gap: 10px; }
.audit-list article { padding: 15px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.audit-list span { color: var(--green); font-size: 10px; }
.audit-list strong { display: block; margin-top: 4px; font-size: 13px; }
.audit-list p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.detail-ledger { display: grid; gap: 16px; }
.detail-ledger dl, .document-sheet dl { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.detail-ledger dl > div, .document-sheet dl > div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 11px 13px; border-bottom: 1px solid var(--line); }
.detail-ledger dl > div:last-child, .document-sheet dl > div:last-child { border-bottom: 0; }
.detail-ledger dt, .document-sheet dt { color: var(--muted); font-size: 10px; }
.detail-ledger dd, .document-sheet dd { margin: 0; font-size: 12px; font-weight: 600; }
.detail-ledger section { padding: 15px; background: var(--yellow-soft); border: 1px solid color-mix(in oklch, var(--yellow) 40%, var(--line)); border-radius: var(--radius-sm); }
.detail-ledger section strong { font-size: 12px; }
.detail-ledger section p { margin: 5px 0 0; color: #665a38; font-size: 11px; line-height: 1.6; }
.document-sheet { padding: 22px; background: var(--white); border: 1px solid var(--line-strong); border-top: 3px solid var(--ink); }
.document-sheet > small { color: var(--green); font: 600 10px/1.2 var(--font-label); letter-spacing: .1em; }
.document-sheet h3 { margin: 10px 0 20px; font-size: 21px; }
.document-sheet p { margin: 18px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }

.inheritance-panel { max-width: 980px; margin: 16px auto 0; overflow: hidden; }
.inheritance-table { display: grid; }
.inheritance-row { display: grid; grid-template-columns: minmax(210px, .85fr) minmax(280px, 1.3fr) 110px; align-items: center; gap: 16px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.inheritance-row:last-child { border-bottom: 0; }
.inheritance-row strong { font-size: 12px; }
.inheritance-row span { color: var(--muted); font-size: 11px; line-height: 1.5; }
.inherit { justify-self: end; font-size: 10px; font-style: normal; font-weight: 700; }
.inherit.yes { color: var(--green); }
.inherit.review { color: #806410; }
.inherit.no { color: var(--muted); }
.inheritance-panel .year-setup-actions { margin: 0; padding: 16px; background: var(--mint-2); border-top: 1px solid var(--line); }

/* Object-state language shared across customer, external and staff views. */
.object-context {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: var(--content-max);
  margin: 0 auto var(--space-lg);
  background: var(--white);
  border-block: 1px solid var(--line-strong);
}
.object-context > div { display: grid; gap: var(--space-2xs); padding: var(--space-sm) var(--space-md); border-inline-end: 1px solid var(--line); }
.object-context > div:last-child { border-inline-end: 0; }
.object-context small { color: var(--muted); font-size: .6875rem; }
.object-context strong { overflow: hidden; font-size: .8125rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.responsibility-notice {
  display: grid;
  grid-template-columns: minmax(220px, .42fr) minmax(0, 1fr);
  gap: var(--space-lg);
  max-width: var(--content-max);
  margin: 0 auto var(--space-lg);
  padding: var(--space-md) 0;
  border-block: 1px solid var(--ink);
}
.responsibility-notice.compact { margin-bottom: var(--space-md); }
.responsibility-notice strong { font-size: .875rem; }
.responsibility-notice p { max-width: 75ch; margin: 0; color: var(--muted); font-size: .8125rem; line-height: 1.65; }
.workflow-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); max-width: var(--content-max); margin: 0 auto var(--space-lg); }
.workflow-card { display: grid; gap: var(--space-sm); padding: var(--space-lg); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); }
.workflow-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-md); }
.workflow-card header small { color: var(--green); font: 500 .625rem/1.2 var(--font-label); letter-spacing: .06em; }
.workflow-card h2 { margin: var(--space-2xs) 0 0; font-size: 1rem; font-weight: 600; }
.workflow-meta { display: flex; flex-wrap: wrap; gap: var(--space-2xs); color: var(--muted); font: 500 .5625rem/1.2 var(--font-label); }
.workflow-meta span { padding: 3px 6px; background: var(--surface-subtle); border: 1px solid var(--line); border-radius: 3px; }
.workflow-card p { margin: 0; color: var(--muted); font-size: .75rem; line-height: 1.6; }
.workflow-card p b { color: var(--ink); font-weight: 600; }
.workflow-card .text-button { justify-self: start; }
.state-track { height: 4px; overflow: hidden; background: var(--line); }
.state-track span { display: block; width: var(--state-progress); height: 100%; background: var(--green); }
.state-sequence { display: grid; margin: var(--space-sm) 0 0; padding: 0; list-style: none; }
.state-sequence li { display: grid; grid-template-columns: 24px 1fr; gap: var(--space-xs); padding: var(--space-xs) 0; border-top: 1px solid color-mix(in oklch, var(--yellow) 30%, var(--line)); }
.state-sequence li > span { display: grid; place-items: center; width: 22px; height: 22px; color: var(--muted); background: var(--surface-subtle); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .625rem; }
.state-sequence li.done > span { color: var(--green); background: var(--mint); }
.state-sequence li.current > span { color: var(--forest); background: var(--yellow); border-color: var(--yellow); }
.state-sequence strong, .state-sequence small { display: block; }
.state-sequence strong { font-size: .75rem; }
.state-sequence small { margin-top: 2px; color: var(--muted); font: 400 .5625rem/1.2 var(--font-label); }
.audit-list.compact { margin-top: var(--space-xs); }
.audit-list.compact article { padding: var(--space-xs); background: color-mix(in oklch, var(--white) 75%, transparent); }
.status-chip.ok { color: var(--status-success-text); background: var(--mint); }
.governance-actions { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-xs); padding: var(--space-md) var(--space-lg); border-top: 1px solid var(--line); }
.danger-link { margin-inline-start: auto; color: var(--danger); }

/* Optional first-run guidance: useful, dismissible and never a gate. */
.onboarding-guide {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  align-items: center;
  gap: var(--space-xl);
  max-width: var(--content-max);
  margin: 0 auto var(--space-lg);
  padding: var(--space-lg);
  color: var(--text-on-brand);
  background: var(--forest);
  border: 1px solid var(--forest);
  border-radius: var(--radius-md);
}
.onboarding-guide small { color: var(--yellow); font: 500 .625rem/1.2 var(--font-label); letter-spacing: .08em; }
.onboarding-guide strong { display: block; margin-top: var(--space-xs); font-size: 1rem; }
.onboarding-guide p { max-width: 60ch; margin: var(--space-2xs) 0 0; color: var(--text-on-brand-muted); font-size: .75rem; line-height: 1.6; }
.onboarding-guide ol { display: flex; gap: var(--sm, 12px); margin: 0; padding: 0; list-style: none; }
.onboarding-guide li { display: grid; justify-items: center; gap: var(--space-2xs); min-width: 72px; color: var(--text-on-brand-muted); font-size: .6875rem; }
.onboarding-guide li span { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid rgba(255,255,255,.28); border-radius: var(--radius-sm); }
.onboarding-guide li.current { color: var(--white); }
.onboarding-guide li.current span { color: var(--forest); background: var(--yellow); border-color: var(--yellow); }
.onboarding-actions { display: grid; gap: var(--space-xs); justify-items: stretch; }
.onboarding-actions .text-button { color: var(--text-on-brand-muted); }
.offline-banner { display: flex; align-items: center; gap: var(--space-md); max-width: var(--content-max); margin: 0 auto var(--space-md); padding: var(--space-sm) var(--space-md); color: #624c0d; background: var(--yellow-soft); border: 1px solid color-mix(in oklch, var(--yellow) 48%, var(--line)); font-size: .75rem; }
.offline-banner span { color: #75683e; }

/* Resilience utilities shared by all generated pages. */
.workspace :where(h1, h2, h3, p, strong, small, em, td, th, dd) { overflow-wrap: anywhere; }
.workspace :where(section, article, aside, div) { min-width: 0; }
.workspace:focus { outline: none; }

/* Annual mock states: one aligned structure for archived, active and planned years. */
.annual-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto var(--space-md);
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.annual-overview article { display: grid; align-content: start; gap: var(--space-2xs); min-height: 104px; padding: var(--space-md) var(--space-lg); border-inline-end: 1px solid var(--line); }
.annual-overview article:last-child { border-inline-end: 0; }
.annual-overview article.current { background: var(--mint); }
.annual-overview small { color: var(--green); font: 600 .6875rem/1.2 var(--font-label); letter-spacing: .08em; }
.annual-overview strong { font-size: .9375rem; }
.annual-overview span { color: var(--muted); font-size: .75rem; line-height: 1.5; }

.empty-workspace { display: grid; justify-items: start; gap: var(--space-md); margin: 0 auto; padding: var(--space-xl); background: var(--surface-raised); border: 1px solid var(--line); border-top: 2px solid var(--ink); border-radius: var(--radius-md); }
.empty-workspace > small { color: var(--green); font: 600 .6875rem/1.2 var(--font-label); letter-spacing: .1em; }
.empty-workspace h2 { margin: 0; font: 600 1.375rem/1.25 var(--font-display); }
.empty-workspace p { max-width: 68ch; margin: 0; color: var(--muted); font-size: .8125rem; line-height: 1.65; }
.empty-checks { display: grid; grid-template-columns: repeat(2, minmax(240px, 1fr)); width: 100%; border: 1px solid var(--line); }
.empty-checks span { padding: var(--space-sm) var(--space-md); border-bottom: 1px solid var(--line); font-size: .75rem; }
.empty-checks span:nth-child(odd) { border-inline-end: 1px solid var(--line); }
.empty-checks span:nth-last-child(-n + 2) { border-bottom: 0; }

.annual-result-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: var(--space-md) auto 0; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); }
.annual-result-grid article { display: grid; gap: var(--space-xs); padding: var(--space-md) var(--space-lg); border-inline-end: 1px solid var(--line); }
.annual-result-grid article:last-child { border-inline-end: 0; }
.annual-result-grid small { color: var(--muted); font-size: .6875rem; }
.annual-result-grid strong { font-size: 1rem; }
.annual-result-grid span { color: var(--muted); font-size: .6875rem; }
.archived-summary { margin-bottom: 0; }

/* Unified multi-service portal */
.resource-button { height: 32px; min-height: 32px; padding: 0 12px; color: var(--ink-secondary); background: transparent; border: 0; border-radius: var(--radius-md); font-size: var(--type-body-sm); font-weight: 400; }
.resource-button:hover { background: var(--mint-2); }
.nav-section-label { margin: var(--space-lg) var(--space-sm) var(--space-xs); padding-top: var(--space-md); color: var(--green); border-top: 1px solid var(--line); font: 600 .6875rem/1.2 var(--font-label); letter-spacing: .08em; }
.page-lead { max-width: 72ch; margin: calc(-1 * var(--space-md)) auto var(--space-lg); color: var(--muted); line-height: 1.65; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: var(--content-max); margin: 0 auto; border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line); }
.service-card { display: flex; flex-direction: column; min-height: 0; padding: var(--space-md) var(--space-md) var(--space-lg); background: var(--surface-raised); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); container-type: inline-size; }
.service-card--active { background: var(--mint-2); }
.service-card--pilot { background: var(--yellow-soft); }
.service-card header { display: flex; align-items: center; justify-content: space-between; }
.service-index, .service-code { color: var(--green); font: 600 .6875rem/1.2 var(--font-label); letter-spacing: .09em; }
.service-code { margin: var(--space-md) 0 var(--space-2xs); }
.service-card h2 { margin: 0; font: 600 1.125rem/1.25 var(--font-display); letter-spacing: -.02em; }
.service-card > p:not(.service-code) { min-height: 0; margin: var(--space-2xs) 0 var(--space-sm); color: var(--muted); font-size: .8125rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@container (max-width: 240px) {
  .service-card > p:not(.service-code) { -webkit-line-clamp: 2; }
}
.service-current { display: grid; gap: var(--space-2xs); margin-top: auto; padding-top: var(--space-lg); border-top: 1px solid var(--line); }
.service-current span { color: var(--muted); font-size: .75rem; }
.service-card footer { margin-top: var(--space-lg); }
.service-card footer .button { width: 100%; }
.service-tag { display: inline-block; padding: 4px 7px; color: var(--status-success-text); background: var(--mint); border-radius: var(--radius-xs); font: 600 .6875rem/1 var(--font-label); }
.service-tag.pilot { color: var(--status-warning-text); background: var(--yellow-soft); }
.shared-table { max-width: var(--content-max); margin-inline: 0; overflow-x: auto; border-radius: var(--radius-card); }
.shared-table table { width: 100%; min-width: 720px; border-collapse: collapse; }
.shared-table th, .shared-table td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.shared-table th { height: 40px; box-sizing: border-box; color: var(--muted); font: 400 var(--type-caption)/1.2 var(--font-body); letter-spacing: 0; border-bottom: 1px solid var(--line); }
.shared-table tbody tr { cursor: pointer; }
.shared-table tbody tr:hover { background: #F8FAF9; }
.shared-table td small { display: block; margin-top: 4px; color: var(--muted); }
.shared-center-summary { display: none; }
/* delivery-pipeline → see .metric-strip in Portal DS components */
.shared-center-summary-legacy { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: var(--content-max); margin: 0 auto var(--space-md); background: var(--surface-raised); border: 1px solid var(--line); }
.shared-center-summary > div { display: grid; gap: var(--space-2xs); min-width: 0; padding: var(--space-md) var(--space-lg); border-inline-end: 1px solid var(--line); }
.shared-center-summary > div:last-child { border-inline-end: 0; }
.shared-center-summary dt { color: var(--muted); font: 600 .625rem/1.25 var(--font-label); letter-spacing: .07em; text-transform: uppercase; }
.shared-center-summary dd { margin: 0; overflow-wrap: anywhere; font: 600 1.25rem/1.2 var(--font-display); }
.shared-task-ledger td:nth-child(2) { min-width: 300px; }
.source-reference { display: block; margin-top: var(--space-xs); color: var(--muted); font: 500 .625rem/1.4 var(--font-label); letter-spacing: .03em; }
.due-state { display: inline-flex; align-items: center; min-height: 20px; height: 20px; padding: 0 6px; color: var(--muted); background: #EEF1EF; border: 0; border-radius: var(--radius-sm); font-size: var(--type-caption); white-space: nowrap; }
.due-state--warn { color: var(--status-warning-text); background: var(--yellow-soft); }
.due-state--danger { color: var(--danger); background: var(--danger-soft); }
.shared-empty-row td { padding: var(--space-2xl); text-align: center; }
.shared-empty-row strong { display: block; font-size: 1rem; }
.shared-empty-row p { max-width: 56ch; margin: var(--space-xs) auto var(--space-sm); color: var(--muted); line-height: 1.6; }
.delivery-ledger { max-width: var(--content-max); margin: 0 auto; background: var(--surface-raised); border: 1px solid var(--line); }
.delivery-ledger article, .recovery-action, .report-status { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); padding: var(--space-lg); }
.delivery-ledger article { border-bottom: 1px solid var(--line); }
.delivery-ledger article:last-child { border-bottom: 0; }
.delivery-ledger h2 { margin: var(--space-xs) 0 0; font-size: 1rem; }
.delivery-ledger p, .recovery-action p, .report-status p { margin: var(--space-xs) 0 0; color: var(--muted); font-size: .75rem; }
.delivery-ledger .delivery-ledger-row { display: grid; grid-template-columns: minmax(250px, 1.1fr) auto minmax(300px, .9fr) minmax(180px, .55fr); align-items: center; gap: var(--space-lg); }
.delivery-ledger-row__identity { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: var(--space-sm); min-width: 0; }
.delivery-ledger-row__identity h2 { margin-top: 0; overflow-wrap: anywhere; }
.delivery-ledger-row__identity p { overflow-wrap: anywhere; }
.delivery-control-line { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); min-width: 0; margin: 0; border-inline: 1px solid var(--line); }
.delivery-control-line > div { min-width: 0; padding: 0 var(--space-sm); border-inline-end: 1px solid var(--line); }
.delivery-control-line > div:last-child { border-inline-end: 0; }
.delivery-control-line dt { color: var(--muted); font-size: .625rem; }
.delivery-control-line dd { margin: 3px 0 0; overflow-wrap: anywhere; font-size: .75rem; font-weight: 700; }
.delivery-ledger-row__action { display: grid; justify-items: end; gap: var(--space-xs); min-width: 0; text-align: end; }
.delivery-ledger-row__action small { max-width: 100%; overflow-wrap: anywhere; color: var(--muted); font-size: .625rem; }
.shared-empty-state { display: grid; justify-items: start; max-width: var(--content-max); margin: 0 auto; padding: var(--space-2xl); background: var(--surface-raised); border: 1px solid var(--line); border-top: 2px solid var(--ink); }
.shared-empty-state > span { color: var(--green); font: 600 .625rem/1.3 var(--font-label); letter-spacing: .08em; }
.shared-empty-state h2 { margin: var(--space-sm) 0; font: 600 1.35rem/1.25 var(--font-display); }
.shared-empty-state p { max-width: 62ch; margin: 0 0 var(--space-lg); color: var(--muted); line-height: 1.65; }
.workspace--pcf { --pcf-content-max: 1080px; }
.workspace--pcf .page-head { max-width: var(--pcf-content-max); margin-bottom: var(--space-lg); }
.pcf-shell { max-width: var(--pcf-content-max); margin: 0 auto var(--space-xl); }
.pcf-context { display: grid; grid-template-columns: minmax(210px, .7fr) minmax(320px, 1.3fr) auto; align-items: center; gap: var(--space-lg); padding: var(--space-md) 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.pcf-context__identity { display: grid; gap: 3px; }
.pcf-context__identity > span, .pcf-kicker { color: var(--green); font: 600 .6875rem/1.3 var(--font-label); letter-spacing: .09em; text-transform: uppercase; }
.pcf-context__identity strong { font-size: .9375rem; }
.pcf-context__identity small, .pcf-card__header small { color: var(--muted); font-size: .6875rem; }
.pcf-context > p { max-width: 58ch; margin: 0; color: var(--muted); font-size: .75rem; line-height: 1.65; }
.pcf-context > .text-button { justify-self: end; white-space: nowrap; }
.pcf-progress { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0; padding: var(--space-lg) 0 0; list-style: none; }
.pcf-progress li { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: center; gap: var(--space-xs); min-width: 0; color: var(--muted); }
.pcf-progress li::before { position: absolute; top: 12px; right: calc(100% - 1px); width: calc(100% - 24px); height: 1px; background: var(--line); content: ""; }
.pcf-progress li:first-child::before { display: none; }
.pcf-progress li span { position: relative; z-index: 1; display: grid; place-items: center; width: 24px; height: 24px; color: var(--muted); background: var(--paper); border: 1px solid var(--line-strong); border-radius: 50%; font-size: .6875rem; }
.pcf-progress li small { overflow: hidden; font-size: .6875rem; text-overflow: ellipsis; white-space: nowrap; }
.pcf-progress li.current { color: var(--ink); font-weight: 700; }
.pcf-progress li.current span { color: var(--ink); background: var(--yellow); border-color: var(--yellow); }
.pcf-progress li.done span { color: white; background: var(--green); border-color: var(--green); }
.pcf-progress li.done::before, .pcf-progress li.current::before { background: var(--green); }

.pcf-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr); align-items: start; gap: var(--space-lg); max-width: var(--pcf-content-max); margin: 0 auto; }
.pcf-card { background: var(--surface-raised); border: 1px solid var(--line); border-top: 2px solid var(--ink); border-radius: var(--radius-md); }
.pcf-card__header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-md); padding: var(--space-lg) var(--space-xl); border-bottom: 1px solid var(--line); }
.pcf-card__header h2 { margin: var(--space-xs) 0 0; font: 600 1.375rem/1.25 var(--font-display); }
.pcf-card__header p { max-width: 64ch; margin: var(--space-sm) 0 0; color: var(--muted); font-size: .75rem; line-height: 1.6; }
.pcf-form { display: block; padding: 0; }
.pcf-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg); padding: var(--space-xl); }
.pcf-field-grid label { display: grid; align-content: start; gap: var(--space-xs); min-width: 0; color: var(--ink); font-size: .8125rem; font-weight: 700; }
.pcf-field-grid label > small { min-height: 1.4em; color: var(--muted); font-size: .6875rem; font-weight: 400; line-height: 1.4; }
.pcf-field--wide { grid-column: 1 / -1; }
.pcf-form :where(input, select, textarea) { width: 100%; min-height: 44px; padding: 10px 12px; color: var(--ink); background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font: inherit; font-weight: 400; }
.pcf-form textarea { resize: vertical; line-height: 1.55; }
.pcf-form :where(input, select, textarea):focus { border-color: var(--green); outline: 2px solid color-mix(in srgb, var(--green) 18%, transparent); outline-offset: 1px; }
.pcf-card__actions { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); padding: var(--space-md) var(--space-xl); background: var(--surface-subtle); border-top: 1px solid var(--line); }
.pcf-card__actions p { max-width: 60ch; margin: 0; color: var(--muted); font-size: .6875rem; line-height: 1.55; }
.pcf-card__actions .button { flex: 0 0 auto; }

.pcf-agent-note { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--space-sm); padding: var(--space-lg); background: var(--mint-2); border: 1px solid var(--line); border-top: 2px solid var(--green); border-radius: var(--radius-md); }
.pcf-agent-mark { display: grid; place-items: center; width: 28px; height: 28px; color: var(--green); background: var(--surface-raised); border: 1px solid var(--line); border-radius: 50%; }
.pcf-agent-note h2 { margin: var(--space-sm) 0 var(--space-md); font: 600 1.125rem/1.35 var(--font-display); }
.pcf-agent-note p, .pcf-agent-note small { color: var(--muted); font-size: .75rem; line-height: 1.65; }
.pcf-agent-note ol { display: grid; gap: var(--space-sm); margin: 0 0 var(--space-lg); padding-left: 1.15rem; font-size: .8125rem; line-height: 1.5; }
.pcf-agent-note dl { display: grid; gap: var(--space-sm); margin: var(--space-lg) 0; }
.pcf-agent-note dl div { padding-top: var(--space-sm); border-top: 1px solid var(--line); }
.pcf-agent-note dt { color: var(--muted); font-size: .6875rem; }
.pcf-agent-note dd { margin: 4px 0 0; font-size: .75rem; font-weight: 700; line-height: 1.45; }

.pcf-recovery, .pcf-empty-state, .pcf-calculation-ready, .pcf-report-overview, .pcf-review-grid, .pcf-report-ready, .evidence-proposal, .result-summary, .pcf-template-band, .pcf-collection-flow, .pcf-domain-ledger, .pcf-import-review, .pcf-awaiting-pack, .pcf-result-detail, .pcf-report-outline { max-width: var(--pcf-content-max); margin-inline: auto; }
.pcf-recovery { display: flex; align-items: center; justify-content: space-between; gap: var(--space-xl); padding: var(--space-xl); background: var(--surface-raised); border: 1px solid var(--line); border-top: 2px solid var(--yellow); border-radius: var(--radius-md); }
.pcf-recovery h2 { margin: var(--space-xs) 0; font: 600 1.25rem/1.35 var(--font-display); }
.pcf-recovery p { max-width: 68ch; margin: 0; color: var(--muted); font-size: .75rem; line-height: 1.65; }
.pcf-recovery .button { flex: 0 0 auto; }

.pcf-template-band { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(280px, .58fr); overflow: hidden; color: var(--text-on-brand); background: var(--forest); border-radius: var(--radius-md); }
.pcf-template-band > div { padding: var(--space-xl); }
.pcf-template-band .pcf-kicker { color: var(--yellow); }
.pcf-template-band h2 { max-width: 22ch; margin: var(--space-sm) 0; font: 600 1.65rem/1.2 var(--font-display); }
.pcf-template-band p { max-width: 62ch; margin: 0; color: var(--text-on-brand-muted); font-size: .8125rem; line-height: 1.7; }
.pcf-template-actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xl); }
.pcf-template-actions .button--secondary { color: var(--white); background: transparent; border-color: rgba(255,255,255,.38); }
.pcf-template-actions .button--secondary:hover { background: rgba(255,255,255,.08); border-color: var(--white); }
.pcf-template-band > aside { display: grid; align-content: center; gap: var(--space-lg); padding: var(--space-xl); background: rgba(255,255,255,.045); border-left: 1px solid rgba(255,255,255,.14); }
.pcf-template-band > aside > div { display: flex; align-items: baseline; gap: var(--space-sm); }
.pcf-template-band > aside > div strong { color: var(--yellow); font: 600 3rem/1 var(--font-display); }
.pcf-template-band > aside > div span { color: var(--text-on-brand-muted); font-size: .6875rem; line-height: 1.5; }
.pcf-template-band ul { display: grid; gap: var(--space-sm); margin: 0; padding: 0; list-style: none; }
.pcf-template-band li { padding-top: var(--space-sm); color: var(--text-on-brand-muted); border-top: 1px solid rgba(255,255,255,.14); font-size: .6875rem; line-height: 1.5; }

.pcf-collection-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: var(--space-md); margin-bottom: var(--space-xl); padding: 0; border-block: 1px solid var(--line-strong); list-style: none; }
.pcf-collection-flow li { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: var(--space-sm); padding: var(--space-md); border-right: 1px solid var(--line); }
.pcf-collection-flow li:last-child { border-right: 0; }
.pcf-collection-flow li > span { display: grid; place-items: center; width: 26px; height: 26px; color: var(--muted); background: var(--surface-raised); border: 1px solid var(--line-strong); border-radius: 50%; font-size: .6875rem; }
.pcf-collection-flow li.done > span { color: var(--white); background: var(--green); border-color: var(--green); }
.pcf-collection-flow li.current > span { color: var(--ink); background: var(--yellow); border-color: var(--yellow); }
.pcf-collection-flow strong, .pcf-collection-flow small { display: block; }
.pcf-collection-flow strong { font-size: .75rem; }
.pcf-collection-flow small { margin-top: 3px; color: var(--muted); font-size: .625rem; line-height: 1.4; }

.pcf-domain-ledger { overflow: hidden; background: var(--surface-raised); border: 1px solid var(--line); border-top: 2px solid var(--ink); border-radius: var(--radius-md); }
.pcf-domain-ledger > header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-xl); padding: var(--space-lg) var(--space-xl); border-bottom: 1px solid var(--line); }
.pcf-domain-ledger h2 { margin: var(--space-xs) 0; font: 600 1.375rem/1.25 var(--font-display); }
.pcf-domain-ledger header p { max-width: 66ch; margin: 0; color: var(--muted); font-size: .75rem; line-height: 1.6; }
.pcf-domain-summary { flex: 0 0 auto; display: grid; justify-items: end; }
.pcf-domain-summary strong { font: 600 1.5rem/1.1 var(--font-display); }
.pcf-domain-summary span { margin-top: 4px; color: var(--muted); font-size: .6875rem; }
.pcf-domain-row { display: grid; grid-template-columns: 34px minmax(200px, 1.2fr) minmax(180px, 1.1fr) minmax(96px, .45fr) 104px auto; align-items: center; gap: var(--space-md); min-height: 78px; padding: var(--space-sm) var(--space-xl); border-bottom: 1px solid var(--line); }
.pcf-domain-row:last-child { border-bottom: 0; }
.pcf-domain-number { color: var(--green); font: 600 .6875rem/1 var(--font-label); letter-spacing: .06em; }
.pcf-domain-name, .pcf-domain-owner, .pcf-domain-count, .pcf-domain-value { display: grid; gap: 4px; min-width: 0; }
.pcf-domain-name strong, .pcf-domain-owner strong, .pcf-domain-count strong, .pcf-domain-value strong { font-size: .75rem; }
.pcf-domain-value strong {
  font: 500 .8125rem/1.35 var(--font-label);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pcf-domain-name small, .pcf-domain-owner span, .pcf-domain-count span, .pcf-domain-value span, .pcf-domain-value small { color: var(--muted); font-size: .625rem; line-height: 1.45; }
.pcf-domain-status { justify-self: start; font-size: .6875rem; font-weight: 700; }
.pcf-domain-status--ok { color: var(--status-success-text); }
.pcf-domain-status--warn { color: var(--status-warning-text); }
.pcf-domain-status--danger { color: var(--danger); }
.pcf-domain-status--neutral { color: var(--muted); }
.pcf-domain-row .text-button { justify-self: end; white-space: nowrap; }

.pcf-awaiting-pack { display: grid; justify-items: start; gap: var(--space-sm); margin-top: var(--space-lg); padding: var(--space-xl); background: var(--surface-raised); border: 1px solid var(--line); border-top: 2px solid var(--yellow); border-radius: var(--radius-md); }
.pcf-awaiting-pack h2 { margin: 0; font: 600 1.25rem/1.3 var(--font-display); }
.pcf-awaiting-pack p { max-width: 70ch; margin: 0 0 var(--space-sm); color: var(--muted); font-size: .75rem; line-height: 1.65; }

.pcf-import-review { margin-top: var(--space-lg); overflow: hidden; background: var(--surface-raised); border: 1px solid var(--line); border-top: 2px solid var(--green); border-radius: var(--radius-md); }
.pcf-import-review > header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-lg); padding: var(--space-lg) var(--space-xl); border-bottom: 1px solid var(--line); }
.pcf-import-review h2 { margin: var(--space-xs) 0; font: 600 1.25rem/1.25 var(--font-display); }
.pcf-import-review header p { margin: 0; color: var(--muted); font-size: .6875rem; }
.pcf-import-checks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--mint-2); border-bottom: 1px solid var(--line); }
.pcf-import-checks > div { display: grid; gap: 4px; padding: var(--space-md) var(--space-lg); border-right: 1px solid var(--line); }
.pcf-import-checks > div:last-child { border-right: 0; }
.pcf-import-checks span, .pcf-import-checks small { color: var(--muted); font-size: .625rem; line-height: 1.4; }
.pcf-import-checks strong { font-size: .75rem; }
.pcf-proposed-fact { display: grid; grid-template-columns: minmax(240px, 1.1fr) minmax(360px, 1fr) auto; align-items: center; gap: var(--space-lg); padding: var(--space-xl); }
.pcf-proposed-fact h3 { margin: var(--space-xs) 0; font-size: 1rem; }
.pcf-proposed-fact p { margin: 0; color: var(--muted); font-size: .6875rem; }
.pcf-proposed-fact dl { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border: 1px solid var(--line); }
.pcf-proposed-fact dl > div { padding: var(--space-sm); border-right: 1px solid var(--line); }
.pcf-proposed-fact dl > div:last-child { border-right: 0; }
.pcf-proposed-fact dt { color: var(--muted); font-size: .625rem; }
.pcf-proposed-fact dd { margin: 4px 0 0; font-size: .6875rem; font-weight: 700; }
.pcf-import-review > footer { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); padding: var(--space-md) var(--space-xl); background: var(--surface-subtle); border-top: 1px solid var(--line); }
.pcf-import-review > footer p { margin: 0; color: var(--muted); font-size: .6875rem; }

.drawer-template-link { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding: var(--space-md); background: var(--mint-2); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.drawer-template-link > div { display: grid; gap: 3px; }
.drawer-template-link span { color: var(--green); font: 600 .625rem/1.3 var(--font-label); letter-spacing: .06em; }
.drawer-template-link strong { font-size: .75rem; }
.drawer-template-link small { color: var(--muted); font-size: .625rem; line-height: 1.45; }
.drawer-template-link .button { flex: 0 0 auto; }
.upload-drop--secondary { min-height: 100px; border-color: var(--line-strong); }

.pcf-empty-state { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); overflow: hidden; background: var(--surface-raised); border: 1px solid var(--line); border-top: 2px solid var(--ink); border-radius: var(--radius-md); }
.pcf-empty-state > div { display: grid; justify-items: start; align-content: center; min-height: 310px; padding: var(--space-2xl); }
.pcf-empty-state h2 { max-width: 18ch; margin: var(--space-sm) 0; font: 600 1.75rem/1.18 var(--font-display); }
.pcf-empty-state p { max-width: 60ch; margin: 0 0 var(--space-lg); color: var(--muted); font-size: .8125rem; line-height: 1.7; }
.pcf-empty-state > div > small { margin-top: var(--space-sm); color: var(--muted); font-size: .6875rem; }
.pcf-empty-state aside { padding: var(--space-xl); background: var(--mint-2); border-left: 1px solid var(--line); }
.pcf-empty-state aside > span { color: var(--green); font: 600 .6875rem/1.3 var(--font-label); letter-spacing: .08em; }
.pcf-empty-state ul { display: grid; gap: 0; margin: var(--space-lg) 0 0; padding: 0; list-style: none; }
.pcf-empty-state li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: var(--space-sm); padding: var(--space-md) 0; border-top: 1px solid var(--line); }
.pcf-empty-state li b { color: var(--green); font: 500 .6875rem/1.4 var(--font-label); }
.pcf-empty-state li span { display: grid; gap: 3px; }
.pcf-empty-state li strong { font-size: .8125rem; }
.pcf-empty-state li small { color: var(--muted); font-size: .6875rem; line-height: 1.45; }

.evidence-proposal { overflow: hidden; }
.evidence-proposal dl { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-bottom: 1px solid var(--line); }
.evidence-proposal dl div { padding: var(--space-lg); border-right: 1px solid var(--line); }
.evidence-proposal dl div:last-child { border-right: 0; }
.evidence-proposal dt, .pcf-report-overview dt, .pcf-report-ready dt, .pcf-calculation-ready dt { color: var(--muted); font-size: .6875rem; }
.evidence-proposal dd, .pcf-report-overview dd, .pcf-report-ready dd, .pcf-calculation-ready dd { margin: var(--space-xs) 0 0; font-size: .8125rem; font-weight: 700; }

.pcf-calculation-ready { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); background: var(--surface-raised); border: 1px solid var(--line); border-top: 2px solid var(--ink); border-radius: var(--radius-md); }
.pcf-calculation-ready > div { display: grid; justify-items: start; align-content: center; padding: var(--space-2xl); }
.pcf-calculation-ready h2 { max-width: 21ch; margin: var(--space-sm) 0; font: 600 1.75rem/1.2 var(--font-display); }
.pcf-calculation-ready p { max-width: 58ch; margin: 0 0 var(--space-lg); color: var(--muted); font-size: .8125rem; line-height: 1.7; }
.pcf-calculation-ready dl { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; background: var(--mint-2); border-left: 1px solid var(--line); }
.pcf-calculation-ready dl div { display: grid; align-content: center; min-height: 120px; padding: var(--space-lg); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pcf-calculation-ready dl div:nth-child(even) { border-right: 0; }
.pcf-calculation-ready dl div:nth-last-child(-n + 2) { border-bottom: 0; }

.result-summary { display: grid; grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr); overflow: hidden; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); }
.result-summary > div { padding: var(--space-xl); }
.pcf-result-total { color: var(--text-on-brand); background: var(--forest); }
.pcf-result-total .pcf-kicker { color: var(--yellow); }
.pcf-result-total > strong { display: block; margin: var(--space-xl) 0 var(--space-xs); font: 600 4rem/1 var(--font-display); letter-spacing: -.04em; }
.pcf-result-total > span:not(.pcf-kicker) { color: var(--text-on-brand-muted); font-size: .8125rem; }
.pcf-result-total p { margin: var(--space-2xl) 0 0; color: var(--text-on-brand-muted); font-size: .6875rem; line-height: 1.65; }
.hotspot-list header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-md); }
.hotspot-list h2 { margin: var(--space-xs) 0 var(--space-lg); }
.hotspot-list ol { display: grid; gap: var(--space-md); margin: 0; padding: 0; list-style: none; }
.hotspot-list li { position: relative; display: flex; justify-content: space-between; padding: 0 0 var(--space-sm); overflow: hidden; border-bottom: 4px solid var(--surface-subtle); }
.hotspot-list li::after { position: absolute; bottom: -4px; left: 0; width: var(--share); height: 4px; background: var(--green); content: ""; }
.hotspot-list li span, .hotspot-list li b { font-size: .8125rem; }
.hotspot-list footer { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); margin-top: var(--space-xl); padding-top: var(--space-md); border-top: 1px solid var(--line); }
.hotspot-list footer p { margin: 0; color: var(--muted); font-size: .6875rem; }

.pcf-result-detail { display: grid; grid-template-columns: minmax(0, 1.34fr) minmax(300px, .66fr); gap: var(--space-lg); margin-top: var(--space-lg); }
.pcf-stage-table { overflow: hidden; background: var(--surface-raised); border: 1px solid var(--line); border-top: 2px solid var(--ink); border-radius: var(--radius-md); }
.pcf-stage-table > header { padding: var(--space-lg) var(--space-xl); border-bottom: 1px solid var(--line); }
.pcf-stage-table h2, .pcf-quality-register h2 { margin: var(--space-xs) 0 0; font: 600 1.2rem/1.3 var(--font-display); }
.pcf-stage-table table { width: 100%; border-collapse: collapse; }
.pcf-stage-table th, .pcf-stage-table td { padding: var(--space-sm) var(--space-md); text-align: left; border-bottom: 1px solid var(--line); font-size: .6875rem; vertical-align: top; }
.pcf-stage-table tr:last-child td { border-bottom: 0; }
.pcf-stage-table th { color: var(--muted); font: 600 .625rem/1.3 var(--font-label); letter-spacing: .05em; }
.pcf-stage-table td:nth-child(2), .pcf-stage-table td:nth-child(3) { white-space: nowrap; font-weight: 700; }
.pcf-stage-table td:last-child { color: var(--muted); }
.pcf-quality-register { padding: var(--space-lg); background: var(--mint-2); border: 1px solid var(--line); border-top: 2px solid var(--green); border-radius: var(--radius-md); }
.pcf-quality-register dl { display: grid; margin: var(--space-lg) 0 0; border-top: 1px solid var(--line); }
.pcf-quality-register dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-md); padding: var(--space-sm) 0; border-bottom: 1px solid var(--line); }
.pcf-quality-register dt { color: var(--muted); font-size: .6875rem; }
.pcf-quality-register dd { margin: 0; font-size: .75rem; font-weight: 700; text-align: right; }
.pcf-quality-register p { margin: var(--space-lg) 0 0; color: var(--muted); font-size: .6875rem; line-height: 1.6; }

.pcf-report-overview { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); margin-bottom: var(--space-lg); background: var(--forest); border-radius: var(--radius-md); color: var(--text-on-brand); }
.pcf-report-overview > div { padding: var(--space-xl); }
.pcf-report-overview .pcf-kicker { color: var(--yellow); }
.pcf-report-overview h2 { margin: var(--space-sm) 0; font: 600 1.5rem/1.25 var(--font-display); }
.pcf-report-overview p { max-width: 65ch; margin: 0; color: var(--text-on-brand-muted); font-size: .75rem; line-height: 1.65; }
.pcf-report-overview dl { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-left: 1px solid rgba(255,255,255,.14); }
.pcf-report-overview dl div { display: grid; align-content: center; min-width: 0; padding: var(--space-lg); border-right: 1px solid rgba(255,255,255,.14); }
.pcf-report-overview dt { color: var(--text-on-brand-muted); }
.pcf-report-overview dd { overflow-wrap: anywhere; }
.pcf-report-outline { margin-bottom: var(--space-lg); overflow: hidden; background: var(--surface-raised); border: 1px solid var(--line); border-top: 2px solid var(--ink); border-radius: var(--radius-md); }
.pcf-report-outline > header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-lg); padding: var(--space-lg) var(--space-xl); border-bottom: 1px solid var(--line); }
.pcf-report-outline h2 { margin: var(--space-xs) 0 0; font: 600 1.25rem/1.3 var(--font-display); }
.pcf-report-outline header > small { color: var(--muted); font-size: .6875rem; white-space: nowrap; }
.pcf-report-outline ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.pcf-report-outline li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--space-sm); min-height: 104px; padding: var(--space-md); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pcf-report-outline li:nth-child(3n) { border-right: 0; }
.pcf-report-outline li:nth-last-child(-n + 3) { border-bottom: 0; }
.pcf-report-outline li > span { display: grid; place-items: center; align-self: start; width: 26px; height: 26px; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 50%; font-size: .625rem; }
.pcf-report-outline li.done > span { color: var(--white); background: var(--green); border-color: var(--green); }
.pcf-report-outline li.current > span { color: var(--ink); background: var(--yellow); border-color: var(--yellow); }
.pcf-report-outline li > div { display: grid; align-content: start; gap: 4px; }
.pcf-report-outline li strong { font-size: .75rem; line-height: 1.45; }
.pcf-report-outline li small { color: var(--muted); font-size: .625rem; line-height: 1.45; }
.pcf-review-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); align-items: start; gap: var(--space-lg); }
.review-checklist ul { margin: 0; padding: var(--space-sm) var(--space-xl); list-style: none; }
.review-checklist li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--space-md); padding: var(--space-md) 0; border-bottom: 1px solid var(--line); }
.review-checklist li:last-child { border-bottom: 0; }
.review-checklist li > span { display: grid; place-items: center; width: 26px; height: 26px; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 50%; font-size: .6875rem; }
.review-checklist li.done > span { color: white; background: var(--green); border-color: var(--green); }
.review-checklist li > div { display: grid; gap: 3px; }
.review-checklist li strong { font-size: .8125rem; }
.review-checklist li small { color: var(--muted); font-size: .6875rem; }
.pcf-version-note { padding: var(--space-lg); background: var(--surface-raised); border: 1px solid var(--line); border-top: 2px solid var(--green); border-radius: var(--radius-md); }
.pcf-version-note h2 { margin: var(--space-sm) 0 var(--space-lg); font: 600 1.125rem/1.35 var(--font-display); }
.pcf-version-note dl { display: grid; margin: 0; }
.pcf-version-note dl div { padding: var(--space-sm) 0; border-top: 1px solid var(--line); }
.pcf-version-note dt { color: var(--muted); font-size: .6875rem; }
.pcf-version-note dd { margin: 4px 0 0; font-size: .75rem; font-weight: 700; }
.pcf-version-note p { margin: var(--space-lg) 0 0; color: var(--muted); font-size: .6875rem; line-height: 1.6; }
.pcf-report-ready { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); overflow: hidden; background: var(--surface-raised); border: 1px solid var(--line); border-top: 2px solid var(--green); border-radius: var(--radius-md); }
.pcf-report-ready > div { padding: var(--space-2xl); }
.pcf-ready-mark { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: var(--space-lg); color: white; background: var(--green); border-radius: 50%; }
.pcf-report-ready h2 { max-width: 24ch; margin: var(--space-sm) 0; font: 600 1.6rem/1.25 var(--font-display); }
.pcf-report-ready p { margin: 0 0 var(--space-lg); color: var(--muted); font-size: .75rem; }
.pcf-report-ready > div > div { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.pcf-report-ready dl { display: grid; margin: 0; background: var(--mint-2); border-left: 1px solid var(--line); }
.pcf-report-ready dl div { display: grid; align-content: center; padding: var(--space-lg); border-bottom: 1px solid var(--line); }
.pcf-report-ready dl div:last-child { border-bottom: 0; }
.resource-list { display: grid; border: 1px solid var(--line); }
.resource-list :where(a, button) { display: flex; justify-content: space-between; gap: var(--space-md); padding: var(--space-md); color: var(--ink); background: var(--paper); border: 0; border-bottom: 1px solid var(--line); text-align: left; text-decoration: none; }
.resource-list :where(a, button):last-child { border-bottom: 0; }
.resource-list span { color: var(--green); font-size: .75rem; }
.permission-self { max-width: 800px; margin-inline: 0; width: 100%; }
.permission-self h2 { margin: 0; font-size: var(--type-title-sm); font-weight: 600; }
.permission-self .panel-head { border-bottom: 1px solid var(--line-soft); }
.permission-self dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 0; border: 0; }
.permission-self dl div { padding: var(--space-md) 20px; border-bottom: 1px solid var(--line-soft); }
.permission-self dt { color: var(--muted); font-size: var(--type-caption); }
.permission-self dd { margin: 4px 0 0; font-weight: 600; }
.permission-self .permission-self__foot { padding: 16px 20px; border-top: 1px solid var(--line-soft); }

/* Enterprise data assets: a register, not another service dashboard. */
.asset-attention {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  max-width: var(--content-max);
  margin: 0 0 var(--space-lg);
  padding: var(--space-lg) 20px;
  color: var(--ink);
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.asset-attention span, .asset-catalog > header span, .asset-governance article > span { font: 600 var(--type-caption)/1.3 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--green); }
.asset-kind { font: 400 var(--type-caption)/1.3 var(--font-label); letter-spacing: 0; text-transform: none; color: var(--muted); }
.asset-attention h2 { margin: var(--space-xs) 0; font: 600 var(--type-title)/1.3 var(--font-display); }
.asset-attention p { max-width: 68ch; margin: 0; color: var(--ink-secondary); font-size: var(--type-caption); line-height: 1.65; }
.asset-attention .button { flex: 0 0 auto; }
.asset-register-summary { display: none; }
.asset-catalog { max-width: var(--content-max); margin: 0 0 var(--space-lg); background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; }
.asset-catalog > header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-xl); height: 48px; padding: 0 20px; border-bottom: 1px solid var(--line-soft); }
.asset-catalog > header h2 { margin: 0; font: 600 var(--type-title-sm)/1.3 var(--font-display); }
.asset-catalog > header p { display: none; }
.asset-table-wrap { overflow-x: auto; }
.asset-catalog table { width: 100%; min-width: 920px; border-collapse: collapse; }
.asset-catalog th, .asset-catalog td { padding: 14px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
.asset-catalog tr:last-child td { border-bottom: 0; }
.asset-catalog th { height: 40px; box-sizing: border-box; color: var(--muted); background: transparent; font: 400 var(--type-caption)/1.2 var(--font-body); letter-spacing: 0; border-bottom: 1px solid var(--line); }
.asset-catalog tbody tr { cursor: pointer; }
.asset-catalog tbody tr:hover { background: #F8FAF9; }
.asset-catalog td { font-size: .75rem; }
.asset-catalog td strong { display: block; margin-top: 4px; font-size: .8125rem; }
.asset-catalog td small { display: block; margin-top: 5px; color: var(--muted); line-height: 1.45; }
.asset-catalog td:nth-child(3) { min-width: 128px; }
.asset-kind { display: block; }
.asset-unused { color: var(--muted); font-size: .6875rem; }
.asset-governance { display: grid; grid-template-columns: 1fr 1fr; max-width: var(--content-max); margin: 0 auto; border: 1px solid var(--line); background: var(--surface-raised); }
.asset-governance article { padding: var(--space-xl); }
.asset-governance article + article { border-inline-start: 1px solid var(--line); }
.asset-governance h2 { max-width: 28ch; margin: var(--space-sm) 0 var(--space-lg); font: 600 1.125rem/1.35 var(--font-display); }
.asset-governance p, .asset-governance li { color: var(--muted); font-size: .75rem; line-height: 1.65; }
.asset-governance ol { display: grid; gap: var(--space-xs); margin: 0; padding-inline-start: 1.2rem; }
.asset-governance .text-button { display: inline-flex; margin-top: var(--space-lg); }
.asset-attention__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); flex: 0 0 auto; }
/* Asset facets = underline tabs (Portal DS). Pill chips banned. */
.asset-facets { /* aliased below in DS components */ }
.asset-capsule-panel,
.asset-capsule-row { max-width: var(--content-max); margin: 0 auto var(--space-lg); }
.asset-capsule-panel {
  padding: var(--space-lg) var(--space-xl);
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.asset-capsule-panel > header { margin-bottom: var(--space-md); }
.asset-capsule-panel span { color: var(--green); font: 600 .6875rem/1.3 var(--font-label); letter-spacing: .08em; text-transform: uppercase; }
.asset-capsule-panel h2 { margin: var(--space-xs) 0; font: 600 1.125rem/1.3 var(--font-display); }
.asset-capsule-panel p { margin: 0; color: var(--muted); font-size: .75rem; line-height: 1.55; }
.asset-capsule-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pcf-import-review .asset-capsule-row { max-width: none; margin: 0 0 var(--space-md); }
.asset-capsule {
  display: grid;
  gap: 4px;
  min-width: min(100%, 220px);
  max-width: 280px;
  padding: 12px 14px;
  text-align: left;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 2px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.asset-capsule--ok {
  border-top-color: var(--green);
  background: color-mix(in oklab, var(--mint) 55%, white);
}
.asset-capsule--warn {
  border-top-color: var(--yellow);
  background: color-mix(in oklab, var(--yellow-soft) 70%, white);
}
.asset-capsule__kind { color: var(--green); font: 600 .625rem/1.2 var(--font-label); letter-spacing: .08em; text-transform: uppercase; }
.asset-capsule strong { font-size: .8125rem; line-height: 1.35; }
.asset-capsule__meta { color: var(--text-secondary); font-size: .75rem; }
.asset-capsule small { color: var(--muted); font-size: .6875rem; line-height: 1.45; }
.asset-capsule:hover, .asset-capsule:focus-visible {
  border-color: var(--green);
  outline: 2px solid color-mix(in oklch, var(--green) 18%, transparent);
  outline-offset: 1px;
}
.asset-detail { display: grid; gap: 16px; }
.asset-detail__hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 2px solid var(--ink);
  border-radius: var(--radius-sm);
}
.asset-detail__hero span:first-child { color: var(--green); font: 600 .625rem/1.2 var(--font-label); letter-spacing: .08em; text-transform: uppercase; }
.asset-detail__hero h3 { margin: 4px 0; font: 600 1.25rem/1.25 var(--font-display); }
.asset-detail__hero p { margin: 0; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.asset-detail__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.asset-detail__facts div { padding: 12px 14px; border-bottom: 1px solid var(--line); border-inline-end: 1px solid var(--line); }
.asset-detail__facts div:nth-child(2n) { border-inline-end: 0; }
.asset-detail__facts div:nth-last-child(-n + 2) { border-bottom: 0; }
.asset-detail__facts dt { color: var(--muted); font-size: .6875rem; }
.asset-detail__facts dd { margin: 6px 0 0; font-size: .8125rem; font-weight: 600; }
.asset-value-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--mint-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.asset-value-pair > div { padding: 12px 14px; }
.asset-value-pair > div + div { border-inline-start: 1px solid var(--line); }
.asset-value-pair span { color: var(--muted); font-size: .6875rem; }
.asset-value-pair strong { display: block; margin-top: 6px; font-size: .9375rem; }

/* 详情 Drawer：原始值重点强调（设计色 --ink / --text-on-brand） */
.asset-value-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
}
.asset-value-panel__primary {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  color: var(--text-on-brand);
  background: var(--ink);
}
.asset-value-panel__primary span {
  color: var(--text-on-brand-muted);
  font: 600 .6875rem/1.2 var(--font-label);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.asset-value-panel__primary strong {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  color: var(--text-on-brand);
  font: 600 1.5rem/1.2 var(--font-display);
  letter-spacing: -.02em;
}
.asset-value-panel__primary strong em {
  font-style: normal;
  font-family: var(--font-label);
  font-variant-numeric: tabular-nums;
}
.asset-value-panel__secondary {
  display: grid;
  gap: 8px;
  align-content: center;
  padding: 16px 18px;
  color: var(--ink);
  background: var(--mint-2);
  border-inline-start: 1px solid var(--line);
}
.asset-value-panel__secondary span {
  color: var(--muted);
  font: 600 .6875rem/1.2 var(--font-label);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.asset-value-panel__secondary strong {
  margin: 0;
  color: var(--ink);
  font: 600 1rem/1.35 var(--font-body);
}
.asset-detail__block {
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.asset-detail__block.is-proposal { background: color-mix(in oklch, var(--yellow) 10%, white); border-color: color-mix(in oklch, var(--yellow) 45%, var(--line)); }
.asset-detail__block > header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.asset-detail__block > header span { color: var(--green); font: 600 .625rem/1.2 var(--font-label); letter-spacing: .08em; text-transform: uppercase; }
.asset-detail__block > header strong { font-size: .75rem; }
.asset-detail__block > p, .asset-impact-hint { margin: 0; color: var(--muted); font-size: .75rem; line-height: 1.55; }
.asset-impact-hint { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.asset-quality-grid, .asset-issue-list, .asset-timeline, .asset-impact-list { list-style: none; margin: 0; padding: 0; }
.asset-quality-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.asset-quality-grid li, .asset-binding-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.asset-quality-grid span, .asset-issue-list li { color: var(--muted); font-size: .6875rem; }
.asset-quality-grid strong { font-size: .75rem; }
.asset-issue-list { display: grid; gap: 4px; }
.asset-binding-list { display: grid; gap: 8px; }
.asset-binding-row { align-items: flex-start; background: var(--white); }
.asset-binding-row strong, .asset-binding-row small { display: block; }
.asset-binding-row strong { margin-top: 4px; font-size: .8125rem; }
.asset-binding-row small { margin-top: 4px; color: var(--muted); font-size: .6875rem; line-height: 1.4; }
.asset-empty { margin: 0; color: var(--muted); font-size: .75rem; }
.asset-timeline { display: grid; gap: 8px; }
.asset-timeline li {
  position: relative;
  padding: 10px 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.asset-timeline li.current {
  background: var(--mint-2);
  border-color: color-mix(in oklab, var(--green) 35%, var(--line));
}
.asset-timeline strong { display: block; font-size: .75rem; }
.asset-timeline span, .asset-timeline small { display: block; color: var(--muted); font-size: .6875rem; line-height: 1.45; margin-top: 3px; }
.asset-impact { display: grid; gap: 16px; }
.asset-impact section > span { display: block; margin-bottom: 8px; color: var(--green); font: 600 .625rem/1.2 var(--font-label); letter-spacing: .08em; text-transform: uppercase; }
.asset-impact-list { display: grid; gap: 8px; }
.asset-impact-list li {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.asset-impact-list strong { font-size: .8125rem; }
.asset-impact-list span, .asset-impact-list small { color: var(--muted); font-size: .6875rem; line-height: 1.45; }

@media (max-width: 1120px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .asset-register-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .asset-register-summary div:nth-child(2) { border-inline-end: 0; }
  .asset-register-summary div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .pcf-context { grid-template-columns: minmax(190px, .65fr) minmax(260px, 1.35fr); }
  .pcf-context > .text-button { grid-column: 1 / -1; justify-self: start; }
  .pcf-layout, .pcf-review-grid { grid-template-columns: minmax(0, 1.25fr) minmax(240px, .75fr); }
  .delivery-ledger .delivery-ledger-row { grid-template-columns: minmax(250px, 1fr) auto minmax(280px, .85fr); }
  .delivery-ledger-row__action { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto; align-items: center; justify-items: start; width: 100%; padding-top: var(--space-sm); border-top: 1px solid var(--line); text-align: start; }
  .delivery-ledger-row__action .text-button { justify-self: end; }
}
@media (max-width: 820px) {
  .service-grid, .pcf-layout, .pcf-review-grid, .result-summary, .pcf-empty-state, .pcf-calculation-ready, .pcf-report-overview, .pcf-report-ready, .pcf-template-band, .pcf-result-detail { grid-template-columns: 1fr; }
  .service-card { min-height: 0; }
  .delivery-ledger article, .pcf-recovery { align-items: flex-start; flex-direction: column; }
  .shared-center-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shared-center-summary > div:nth-child(2) { border-inline-end: 0; }
  .shared-center-summary > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .delivery-ledger .delivery-ledger-row { grid-template-columns: minmax(0, 1fr) auto; }
  .delivery-control-line, .delivery-ledger-row__action { grid-column: 1 / -1; width: 100%; }
  .pcf-context { grid-template-columns: 1fr auto; gap: var(--space-sm); }
  .pcf-context > p { grid-column: 1 / -1; grid-row: 2; }
  .pcf-context > .text-button { grid-column: 2; grid-row: 1; align-self: start; justify-self: end; }
  .pcf-progress { display: flex; gap: var(--space-md); overflow-x: auto; padding-bottom: var(--space-xs); scrollbar-width: thin; }
  .pcf-progress li { flex: 0 0 118px; }
  .pcf-progress li::before { width: var(--space-md); right: calc(100% + 1px); }
  .pcf-agent-note { order: -1; }
  .pcf-template-band > aside { border-top: 1px solid rgba(255,255,255,.14); border-left: 0; }
  .pcf-domain-row { grid-template-columns: 30px minmax(180px, 1fr) minmax(140px, .9fr) 104px auto; }
  .pcf-domain-owner, .pcf-domain-count { display: none; }
  .pcf-import-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pcf-import-checks > div:nth-child(2) { border-right: 0; }
  .pcf-import-checks > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .pcf-proposed-fact { grid-template-columns: 1fr; }
  .pcf-proposed-fact .button, .pcf-proposed-fact .status-chip { justify-self: start; }
  .pcf-report-outline ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pcf-report-outline li:nth-child(3n) { border-right: 1px solid var(--line); }
  .pcf-report-outline li:nth-child(2n) { border-right: 0; }
  .pcf-report-outline li:nth-last-child(-n + 3) { border-bottom: 1px solid var(--line); }
  .pcf-report-outline li:last-child { border-bottom: 0; }
  .pcf-empty-state aside, .pcf-calculation-ready dl, .pcf-report-overview dl, .pcf-report-ready dl { border-top: 1px solid var(--line); border-left: 0; }
  .pcf-report-overview dl { min-height: 112px; }
  .evidence-proposal dl { grid-template-columns: repeat(2, 1fr); }
  .asset-attention, .asset-catalog > header { align-items: stretch; flex-direction: column; }
  .asset-attention .button, .asset-attention__actions, .asset-catalog > header .button { align-self: flex-start; }
  .asset-detail__facts, .asset-value-pair, .asset-value-panel, .asset-quality-grid { grid-template-columns: 1fr; }
  .asset-detail__facts div, .asset-value-pair > div + div { border-inline-end: 0; border-inline-start: 0; border-bottom: 1px solid var(--line); }
  .asset-detail__facts div:last-child, .asset-value-pair > div:last-child { border-bottom: 0; }
  .asset-value-panel__secondary { border-inline-start: 0; border-top: 1px solid var(--line); }
  .drawer-layer--wide { grid-template-columns: minmax(0, 1fr); }
  .asset-governance { grid-template-columns: 1fr; }
  .asset-governance article + article { border-top: 1px solid var(--line); border-inline-start: 0; }
}
@media (max-width: 560px) {
  .resource-button { display: none; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }
  .workspace--pcf .page-head { margin-bottom: var(--space-md); }
  .pcf-shell { margin-bottom: var(--space-lg); }
  .pcf-context { grid-template-columns: 1fr; }
  .pcf-context > .text-button { grid-column: 1; grid-row: 3; justify-self: start; }
  .pcf-progress li { flex-basis: 110px; }
  .pcf-field-grid { grid-template-columns: 1fr; padding: var(--space-lg); }
  .pcf-field--wide { grid-column: auto; }
  .pcf-card__header, .pcf-card__actions { align-items: stretch; flex-direction: column; padding-inline: var(--space-lg); }
  .pcf-card__actions .button, .pcf-recovery .button { width: 100%; }
  .pcf-template-band > div, .pcf-template-band > aside, .pcf-domain-ledger > header, .pcf-import-review > header, .pcf-proposed-fact, .pcf-import-review > footer { padding: var(--space-lg); }
  .pcf-template-actions { display: grid; }
  .pcf-template-actions .button { width: 100%; }
  .pcf-collection-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pcf-collection-flow li:nth-child(2) { border-right: 0; }
  .pcf-collection-flow li:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .pcf-domain-ledger > header { align-items: stretch; flex-direction: column; }
  .pcf-domain-summary { justify-items: start; }
  .pcf-domain-row { grid-template-columns: 28px minmax(0, 1fr) auto; gap: var(--space-xs) var(--space-sm); padding: var(--space-md) var(--space-lg); }
  .pcf-domain-name { grid-column: 2 / -1; }
  .pcf-domain-value { grid-column: 2 / -1; }
  .pcf-domain-status { grid-column: 2; }
  .pcf-domain-row .text-button { grid-column: 3; }
  .pcf-import-checks { grid-template-columns: 1fr; }
  .pcf-import-checks > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .pcf-import-checks > div:last-child { border-bottom: 0; }
  .pcf-proposed-fact dl { grid-template-columns: 1fr; }
  .pcf-proposed-fact dl > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .pcf-proposed-fact dl > div:last-child { border-bottom: 0; }
  .pcf-import-review > footer { align-items: stretch; flex-direction: column; }
  .pcf-import-review > footer .button { width: 100%; }
  .drawer-template-link { align-items: stretch; flex-direction: column; }
  .drawer-template-link .button { width: 100%; }
  .pcf-stage-table { overflow-x: auto; }
  .pcf-stage-table table { min-width: 620px; }
  .pcf-report-outline ol { grid-template-columns: 1fr; }
  .pcf-report-outline li, .pcf-report-outline li:nth-child(3n), .pcf-report-outline li:nth-child(2n), .pcf-report-outline li:nth-last-child(-n + 3) { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .pcf-report-outline li:last-child { border-bottom: 0; }
  .pcf-agent-note { padding: var(--space-md); }
  .pcf-empty-state > div, .pcf-calculation-ready > div, .pcf-report-ready > div { min-height: 0; padding: var(--space-xl) var(--space-lg); }
  .pcf-empty-state h2, .pcf-calculation-ready h2 { font-size: 1.45rem; }
  .pcf-calculation-ready dl { grid-template-columns: 1fr 1fr; }
  .pcf-calculation-ready dl div { min-height: 96px; }
  .pcf-result-total > strong { font-size: 3.25rem; }
  .result-summary > div, .pcf-report-overview > div { padding: var(--space-lg); }
  .hotspot-list footer { align-items: flex-start; flex-direction: column; }
  .pcf-report-overview dl { grid-template-columns: 1fr; }
  .pcf-report-overview dl div { min-height: 72px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
  .pcf-report-overview dl div:last-child { border-bottom: 0; }
  .evidence-proposal dl { grid-template-columns: 1fr; }
  .evidence-proposal dl div { border-right: 0; border-bottom: 1px solid var(--line); }
  .pcf-report-ready > div > div { display: grid; }
  .permission-self dl { grid-template-columns: 1fr; }
  .asset-register-summary { grid-template-columns: 1fr; }
  .asset-register-summary div { border-bottom: 1px solid var(--line); border-inline-end: 0; }
  .asset-register-summary div:last-child { border-bottom: 0; }
  .page-lead, .asset-attention, .asset-register-summary, .asset-catalog, .asset-governance { width: 100%; }
  .asset-attention, .asset-catalog > header, .asset-governance article { padding: var(--space-lg); }
  .asset-attention > div, .asset-catalog > header > div { min-width: 0; max-width: 100%; }
  .asset-table-wrap { overflow: visible; }
  .asset-catalog table, .asset-catalog tbody, .asset-catalog tr, .asset-catalog td { display: block; width: 100%; min-width: 0; }
  .asset-catalog thead { display: none; }
  .asset-catalog tr { padding: var(--space-xs) 0; border-bottom: 1px solid var(--line); }
  .asset-catalog tr:last-child { border-bottom: 0; }
  .asset-catalog td, .asset-catalog td:nth-child(3) { min-width: 0; padding: 10px var(--space-lg); border: 0; }
  .asset-catalog td + td { padding-top: 8px; }
  .asset-catalog td::before { display: block; margin-bottom: 4px; color: var(--muted); font: 600 .625rem/1.2 var(--font-label); letter-spacing: .05em; content: attr(data-label); }
  .asset-catalog td:first-child { padding-top: var(--space-md); }
  .asset-catalog td:last-child { padding-bottom: var(--space-md); }
  .asset-catalog td:last-child .text-button { min-height: 40px; }
}

@media (forced-colors: active) {
  .status-chip::before, .notification-dot { forced-color-adjust: none; }
  .nav-item.active, .product-row.active, .journey-node.current, .workflow-card, .responsibility-notice { outline: 2px solid CanvasText; outline-offset: -2px; }
}

@media (max-width: 1120px) {
  .topbar { padding: 0 16px; }
  .product-name, .company-switch small, .company-switch span { display: none; }
  .page-head h1 { font-size: 26px; }
  .wide-panel { overflow-x: auto; }
  .wide-panel .data-table { min-width: 760px; }
  .product-title { flex-direction: column; }
  .product-title > div:last-child { flex-wrap: wrap; justify-content: flex-start; }
  .company-switch { display: block; min-width: 0; padding: 8px; }
  .company-switch strong { white-space: nowrap; }
  .customer-layout { grid-template-columns: minmax(0, 1fr); }
  .context-rail { position: static; }
  .context-intro { padding: 17px 20px; }
  .context-rail .context-section { display: inline-block; width: 49.5%; vertical-align: top; border-bottom: 0; }
  .staff-layout { grid-template-columns: minmax(240px, .7fr) minmax(360px, 1.3fr); }
  .approval-board { grid-template-columns: minmax(240px, .65fr) minmax(380px, 1.35fr); }
  .content-split, .result-content { grid-template-columns: minmax(0, 1fr); }
  .case-ledger { grid-template-columns: 1fr 1fr; }
  .case-ledger > div:nth-child(2) { border-right: 0; }
  .case-ledger > div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.14); }
  .content-side { grid-template-columns: 1fr 1fr; }
  .result-ledger { grid-template-columns: 1.2fr repeat(3, .7fr); }
  .roadmap-layout { grid-template-columns: minmax(0, 1fr); }
  .inline-create { grid-template-columns: 1fr 1fr; }
  .inline-create > div:first-child { grid-column: 1 / 3; }
  .scenario-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .certificate-price-strip { grid-template-columns: repeat(4, 1fr); }
  .certificate-price-strip > div { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .cadence-deliverables { grid-template-columns: 1fr; }
  .onboarding-guide { grid-template-columns: 1fr auto; }
  .onboarding-guide ol { grid-column: 1; grid-row: 2; }
  .onboarding-actions { grid-column: 2; grid-row: 1 / 3; }
}

@media (max-width: 820px) {
  :root { --control-sm: 44px; --control-md: 48px; }
  .login-screen { grid-template-columns: 1fr; }
  .login-story { min-height: auto; padding: 36px 28px; }
  .story-copy { margin: 72px 0; }
  .story-copy h1 { font-size: clamp(40px, 10vw, 62px); }
  .login-panel { min-height: auto; padding: 52px 28px; }
  .mobile-menu { display: block; }
  .topbar .brand i, .product-name, .company-switch, .profile-button > span:nth-child(2), .profile-button b, .logout-button { display: none; }
  .topbar-context { margin-left: auto; margin-right: 8px; }
  .portal-layout { grid-template-columns: 1fr; }
  .sidebar { position: fixed; top: 64px; bottom: 0; left: 0; z-index: 25; width: 260px; height: auto; box-shadow: var(--shadow); transform: translateX(-105%); transition: transform .2s ease; }
  .sidebar.open { transform: translateX(0); }
  .workspace { padding: 26px 18px; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .page-head .head-note { max-width: none; }
  .staff-layout { grid-template-columns: 1fr; }
  .approval-board, .account-grid { grid-template-columns: 1fr; }
  .service-hero { grid-template-columns: 1fr; }
  .relationship-map { grid-template-columns: 1fr; }
  .relationship-map > i { transform: rotate(90deg); justify-self: center; }
  .metric-line { grid-template-columns: 1fr 1fr; }
  .comparison { grid-template-columns: 1fr; }
  .wide-panel { overflow-x: auto; }
  .data-table { min-width: 720px; }
  .result-ledger { grid-template-columns: 1fr 1fr; }
  .result-ledger > div:nth-child(2) { border-right: 0; }
  .delivery-intro { grid-template-columns: 1fr; }
  .permission-summary { grid-template-columns: repeat(3, 1fr); }
  .permission-summary p { grid-column: 1 / 4; }
  .control-tower { grid-template-columns: 1fr; }
  .control-tower > div { min-height: auto; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.13); }
  .control-tower > div:last-child { border-bottom: 0; }
  .period-grid { grid-template-columns: 1fr 1fr; }
  .data-layout { grid-template-columns: minmax(0, 1fr); }
  .product-workspace, .settings-layout { grid-template-columns: minmax(0, 1fr); }
  .product-index { position: static; }
  .product-list { grid-template-columns: 1fr 1fr; }
  .product-row:nth-child(odd) { border-right: 1px solid var(--line); }
  .settings-nav { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; }
  .scenario-board { grid-template-columns: 1fr; }
  .responsibility-grid { grid-template-columns: 1fr 1fr; }
  .nav-item { min-height: var(--control-sm); }
  .inline-create input:not([type="checkbox"]), .master-fields input { min-height: var(--control-sm); }
  .answer-button { min-height: var(--control-sm); }
  .decision-panel { grid-template-columns: 1fr; }
  .decision-footer { grid-column: 1; }
  .cadence-map, .cadence-notice { grid-template-columns: 1fr; }
  .cadence-map > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .platform-flow { grid-template-columns: 1fr 1fr; }
  .drawer-layer { grid-template-columns: minmax(0, 1fr); }
  .drawer-backdrop, .drawer { grid-column: 1; }
  .inheritance-row { grid-template-columns: 1fr; gap: 5px; }
  .inherit { justify-self: start; }
  .object-context { grid-template-columns: 1fr 1fr; }
  .object-context > div:nth-child(2) { border-inline-end: 0; }
  .object-context > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .workflow-grid { grid-template-columns: 1fr; }
  .responsibility-notice { grid-template-columns: 1fr; gap: var(--space-xs); }
  .onboarding-guide { grid-template-columns: 1fr; }
  .onboarding-guide ol, .onboarding-actions { grid-column: 1; grid-row: auto; }
}

@media (max-width: 560px) {
  .login-story { padding: 28px 20px; }
  .story-copy { margin: 58px 0; }
  .story-copy h1 { font-size: 40px; }
  .story-copy > p:last-child { font-size: 16px; }
  .login-panel { padding: 42px 20px; }
  .demo-roles { grid-template-columns: 1fr; }
  .topbar { min-height: var(--topbar-h); height: var(--topbar-h); }
  .topbar .brand { font-size: 14px; }
  .profile-button { display: none; }
  .topbar-actions { gap: 0; }
  .sidebar { top: var(--topbar-h); }
  .portal-layout { min-height: calc(100vh - var(--topbar-h)); }
  .workspace { padding: 22px 14px 60px; }
  .page-head h1 { font-size: 1.5rem; }
  .workspace :where(p, dd, td, li > div > small, article > small) { font-size: .875rem; }
  .workspace :where(.record-state, .status-chip, .scenario-state) { font-size: .75rem; }
  .workspace .page-head p, .workspace .question-count { font-size: .75rem; }
  .shared-center-summary > div { padding: var(--space-sm) var(--space-md); }
  .shared-center-summary dd { font-size: 1rem; }
  .shared-task-ledger { overflow: visible; }
  .shared-task-ledger table { min-width: 0; }
  .shared-task-ledger thead { display: none; }
  .shared-task-ledger tbody { display: grid; }
  .shared-task-ledger tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-sm); padding: var(--space-lg) var(--space-md); border-bottom: 1px solid var(--line); }
  .shared-task-ledger tr:last-child { border-bottom: 0; }
  .shared-task-ledger td { display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: start; gap: var(--space-xs); min-width: 0; padding: 0; border: 0; }
  .shared-task-ledger td::before { color: var(--muted); font: 600 .625rem/1.45 var(--font-label); letter-spacing: .05em; content: attr(data-label); }
  .shared-task-ledger td:nth-child(1), .shared-task-ledger td:nth-child(4) { display: block; }
  .shared-task-ledger td:nth-child(1)::before, .shared-task-ledger td:nth-child(4)::before { display: none; }
  .shared-task-ledger td:nth-child(2), .shared-task-ledger td:nth-child(3), .shared-task-ledger td:nth-child(5) { grid-column: 1 / -1; }
  .shared-task-ledger td:nth-child(2) { min-width: 0; }
  .shared-task-ledger td:nth-child(5) .text-button { justify-self: start; }
  .shared-task-ledger .shared-empty-row { display: table-row; padding: 0; }
  .shared-task-ledger .shared-empty-row td { display: table-cell; padding: var(--space-xl) var(--space-md); }
  .shared-task-ledger .shared-empty-row td::before { display: none; }
  .delivery-ledger .delivery-ledger-row { grid-template-columns: 1fr; padding: var(--space-lg) var(--space-md); }
  .delivery-ledger-row__identity, .delivery-control-line, .delivery-ledger-row__action, .delivery-ledger-row > .record-state { grid-column: 1; }
  .delivery-control-line { border-inline: 0; border-block: 1px solid var(--line); }
  .delivery-control-line > div { padding: var(--space-sm); }
  .delivery-ledger-row__action { grid-template-columns: 1fr; }
  .delivery-ledger-row__action .text-button { justify-self: start; }
  .shared-empty-state { padding: var(--space-xl) var(--space-lg); }
  .progress-strip { grid-template-columns: 1fr auto; gap: 12px; }
  .progress-track { grid-row: 2; grid-column: 1 / 3; }
  .progress-strip > span { grid-row: 1; grid-column: 2; }
  .agent-task-body { padding: 25px 19px; }
  .agent-task h2 { font-size: 1.375rem; }
  .answer-row { display: grid; grid-template-columns: 1fr 1fr; }
  .answer-button { padding: 0 10px; }
  .task-row { grid-template-columns: 28px 1fr; }
  .task-row time { grid-column: 2; }
  .context-rail .context-section { display: block; width: 100%; border-bottom: 1px solid var(--line); }
  .metric-line { grid-template-columns: 1fr 1fr; }
  .metric-line div { padding: 15px; }
  .metric-line strong { font-size: 21px; }
  .trial-handoff { align-items: stretch; flex-direction: column; }
  .content-side { grid-template-columns: 1fr; }
  .record { grid-template-columns: 46px minmax(0, 1fr); }
  .record > :last-child { grid-column: 2; justify-self: start; }
  .result-ledger { grid-template-columns: 1fr; }
  .result-ledger > div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.13); }
  .result-ledger > div:last-child { border-bottom: 0; }
  .finding { grid-template-columns: 32px 1fr; }
  .finding > :last-child { grid-column: 2; justify-self: start; }
  .delivery-row { grid-template-columns: 34px minmax(0, 1fr) 36px; gap: 10px; padding: 18px 15px; }
  .delivery-note { grid-column: 2; }
  .round-action { grid-row: 1 / 3; grid-column: 3; }
  .permission-summary { grid-template-columns: 1fr 1fr; }
  .permission-summary > div:nth-child(2) { border-right: 0; }
  .permission-summary > div:nth-child(3) { grid-column: 1 / 3; border-top: 1px solid rgba(255,255,255,.13); border-right: 0; }
  .permission-summary p { grid-column: 1 / 3; }
  .security-note { grid-template-columns: 1fr; }
  .year-step { padding: 20px 17px; }
  .year-setup-actions { align-items: stretch; flex-direction: column-reverse; }
  .journey-rail { grid-template-columns: repeat(7, 132px); }
  .step-checks > div { grid-template-columns: 30px minmax(0, 1fr); }
  .step-checks > div .text-button { grid-column: 2; justify-self: start; }
  .period-grid, .product-list { grid-template-columns: 1fr; }
  .product-row:nth-child(odd) { border-right: 0; }
  .inline-create { grid-template-columns: 1fr; }
  .inline-create > div:first-child { grid-column: auto; }
  .inline-create .action-bar { flex-wrap: wrap; }
  .product-title, .section-heading, .master-data-note { align-items: stretch; flex-direction: column; }
  .product-title > div:last-child { flex-wrap: wrap; }
  .config-top { grid-template-columns: 32px minmax(0, 1fr); }
  .config-top > :last-child { grid-column: 2; justify-self: start; }
  .configuration-list dl { grid-template-columns: 1fr; margin-left: 0; }
  .new-config .text-button { margin-left: 0; }
  .scenario-intro { grid-template-columns: 1fr; }
  .decision-options { grid-template-columns: 1fr; }
  .next-action, .extraction-review { align-items: stretch; flex-direction: column; }
  .next-action .button, .extraction-review .button { width: 100%; }
  .recognized-saving { padding: 16px 0 0; border-top: 1px solid rgba(255,255,255,.18); border-left: 0; }
  .master-fields { grid-template-columns: 1fr; }
  .master-fields div:nth-child(odd) { border-right: 0; }
  .responsibility-grid { grid-template-columns: 1fr; }
  .toast { right: 14px; bottom: 14px; left: 14px; }
  .service-hero { padding: 22px 18px; }
  .scope-grid { grid-template-columns: 1fr; }
  .scope-grid div:nth-child(odd) { border-right: 0; }
  .privacy-band, .task-focus { align-items: stretch; flex-direction: column; }
  .case-ledger { grid-template-columns: 1fr; }
  .case-ledger > div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
  .case-ledger > div:last-child { border-bottom: 0; }
}

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


.pcf-factor-disclaimer {
  margin: 0;
  color: var(--muted);
  max-width: 52rem;
}
.pcf-factor-disclaimer small {
  font: 500 .75rem/1.45 var(--font-body);
}


.pcf-match-reasons,
.pcf-factor-gaps {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.45;
  font-weight: 400;
}
.pcf-factor-alts {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}
.pcf-factor-alts > span {
  color: var(--muted);
  font-size: .7rem;
}
.pcf-card__action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.pcf-stage-table td strong {
  display: block;
}
.pcf-stage-table td small {
  display: block;
  color: var(--muted);
  font-weight: 400;
}


/* Stage gates: secondary reference only (never the page's primary focus). */
.stage-gate-panel {
  margin: 0;
  max-width: none;
  text-align: left;
  background: transparent;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
}
.stage-gate-panel > header {
  display: grid;
  gap: 4px;
  margin-bottom: 8px;
  justify-items: start;
  text-align: left;
}
.stage-gate-panel > header .eyebrow {
  margin: 0;
  color: var(--muted);
  font: 500 10px/1.2 var(--font-label);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.stage-gate-panel > header h2 {
  margin: 0;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.3;
}
.stage-gate-panel .stage-gate-summary {
  display: block;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.5;
  text-align: left;
}
.stage-gate-panel .stage-gate-summary strong { color: var(--ink); font-weight: 600; }

/* Below the working form — left-aligned strip, not a centered hero. */
.stage-gate-panel.is-footer {
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--line);
}
.stage-gate-panel.is-footer ol {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0;
  border-top: 0;
}
.stage-gate-panel.is-footer .stage-gate-row {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-right: 0;
  border-bottom: 0;
  min-height: 52px;
  align-content: start;
  background: var(--surface-raised);
}
.stage-gate-panel.is-footer .stage-gate-row:nth-child(odd) { background: var(--surface-subtle); }
.stage-gate-panel.is-footer .stage-gate-row em { justify-self: start; }
.stage-gate-panel.is-footer .stage-gate-row small { display: none; }

/* Context rail — dense checklist, supports the "why this is next" column. */
.stage-gate-panel.is-rail {
  margin-top: 4px;
  padding: 12px 0 0;
  border-top: 1px solid var(--line-soft);
}
.stage-gate-panel.is-rail ol {
  display: grid;
  gap: 0;
  border-top: 0;
}
.stage-gate-panel.is-rail .stage-gate-row {
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 6px;
  padding: 7px 0;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  min-height: 0;
  background: transparent;
}
.stage-gate-panel.is-rail .stage-gate-row:last-child { border-bottom: 0; }
.stage-gate-panel.is-rail .stage-gate-row > span {
  font-size: 10px;
  padding-top: 2px;
}
.stage-gate-panel.is-rail .stage-gate-row strong { font-size: .75rem; }
.stage-gate-panel.is-rail .stage-gate-row small { display: none; }
.stage-gate-panel.is-rail .stage-gate-row em {
  font-size: .625rem;
  padding: 2px 6px;
}

.page-lead {
  max-width: 62ch;
  margin: 0 0 var(--space-lg);
  color: var(--text-secondary);
  font-size: .875rem;
  line-height: 1.55;
}

.pcf-channel-lead {
  max-width: 58ch;
  margin: 0 0 var(--space-md);
  color: var(--text-secondary);
  font-size: .8125rem;
  line-height: 1.55;
}

.pcf-factor-rec-banner {
  display: grid;
  gap: 6px;
  margin: 0 var(--space-xl) var(--space-md);
  padding: 12px 14px;
  background: color-mix(in oklab, var(--mint) 42%, white);
  border: 1px solid color-mix(in oklab, var(--green) 22%, var(--line));
  border-radius: var(--radius-sm);
}
.pcf-factor-rec-banner strong {
  font: 600 .875rem/1.35 var(--font-display);
}
.pcf-factor-rec-banner span {
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.5;
}

.pcf-factor-alts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.pcf-factor-alts > span {
  flex: 0 0 100%;
  color: var(--muted);
  font: 600 .625rem/1.2 var(--font-label);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.pcf-factor-alts .text-button {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: .6875rem;
}
.pcf-factor-alts .text-button:hover {
  border-color: var(--green);
  color: var(--status-success-text);
}

.pcf-card__action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.pcf-agent-note {
  align-self: start;
}
.pcf-agent-note h2 {
  font-size: 1.05rem;
}

.pcf-recovery {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface-raised);
}

/* ═══════════════════════════════════════════════
   Portal Design System v1 — shared components
   Prefer these classes; do not invent page skins.
   ═══════════════════════════════════════════════ */

:root {
  --border-secondary: #D5DCD8;
  --page-gap: 24px;
  --row-pad-y: 14px;
  --row-pad-x: 20px;
  --table-head-h: 40px;
  --card-head-h: 48px;
}

/* Page stack */
.portal-shell,
.workbench,
.service-hub-shell,
.task-ledger-shell {
  width: min(100%, var(--content-max));
  margin-inline: 0;
  display: grid;
  gap: var(--page-gap);
  align-content: start;
}
.portal-shell > .page-head,
.workbench > .page-head,
.task-ledger-shell > .page-head,
.service-hub-shell > .page-head,
.workbench > .workbench__head {
  margin: 0;
}
.page-lead,
.page-lead--aligned { display: none; }

/* Page head */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
  max-width: var(--content-max);
}
.page-head__meta,
.page-head > div > p {
  margin: 0 0 4px;
  color: var(--muted);
  font: 400 12px/18px var(--font-body);
  letter-spacing: 0;
  text-transform: none;
}
.page-head h1 {
  margin: 0;
  font: 600 24px/32px var(--font-display);
  letter-spacing: 0;
}

/* Card — only skin */
.ds-card,
.panel,
.focus-card,
.workbench-focus,
.metric-strip,
.ds-table,
.asset-catalog,
.service-tile,
.asset-attention,
.permission-self,
.asset-governance article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: none;
}
.ds-card { overflow: hidden; }
.ds-card__head,
.panel-head,
.asset-catalog > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: var(--card-head-h);
  min-height: var(--card-head-h);
  padding: 0 var(--row-pad-x);
  border-bottom: 1px solid var(--line-soft);
  box-sizing: border-box;
}
.ds-card__head h2,
.panel-head h2,
.asset-catalog > header h2 {
  margin: 0;
  font: 600 16px/24px var(--font-display);
}
.ds-card__head .text-button,
.panel-head .text-button { font-size: 12px; }

/* Next action / focus (框架 2a · 今天最重要) */
.next-action,
.focus-card,
.workbench-focus,
.asset-attention {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 16px 18px;
  margin: 0;
  max-width: none;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 2px solid var(--ink);
  border-radius: var(--radius-card);
}
.next-action--done {
  border-top-color: #C9DED3;
  background: #E6F2EB;
}
.next-action__copy,
.focus-card__copy,
.workbench-focus__copy,
.asset-attention > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1 1 360px;
}
.next-action__kicker,
.focus-card__label,
.workbench-focus__label,
.asset-attention > div:first-child > span:first-child {
  color: var(--green);
  font: 600 11px/1.2 var(--font-label);
  letter-spacing: 0.07em;
  text-transform: none;
}
.next-action__copy strong,
.focus-card__copy h2,
.workbench-focus__copy h2,
.asset-attention h2 {
  margin: 0;
  font: 600 16px/1.35 var(--font-display);
}
.next-action--done .next-action__copy strong { color: var(--green-2); }
.next-action__copy > span,
.focus-card__copy > p,
.workbench-focus__copy > p,
.asset-attention p {
  margin: 0;
  max-width: none;
  color: var(--ink-secondary);
  font: 400 13px/1.55 var(--font-body);
  text-wrap: pretty;
}
.focus-card__meta,
.workbench-focus__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 12px;
}
.next-action > .button,
.focus-card__actions,
.workbench-focus__actions,
.asset-attention__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.next-action > .button span[aria-hidden] { margin-left: 4px; }

/* Underline tabs — tasks + assets share one recipe */
.ds-tabs,
.task-tabs,
.asset-facets {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  overflow-x: auto;
}
.ds-tab,
.task-tab,
.asset-facet {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  min-height: 36px;
  padding: 0 12px;
  margin: 0 0 -1px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--ink-secondary);
  font: 400 14px/1 var(--font-body);
  white-space: nowrap;
  cursor: pointer;
}
.ds-tab span,
.task-tab span,
.asset-facet span {
  min-width: 0;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border-radius: 0;
  font: 400 12px/1 var(--font-body);
}
.ds-tab.is-active,
.ds-tab[aria-selected="true"],
.task-tab.is-active,
.task-tab[aria-selected="true"],
.asset-facet.active,
.asset-facet[aria-selected="true"],
.asset-facet.is-active {
  color: var(--ink);
  font-weight: 600;
  background: transparent;
  border-color: transparent;
  border-bottom-color: var(--green);
}
.ds-tab.is-active span,
.task-tab.is-active span,
.asset-facet.active span,
.asset-facet.is-active span {
  color: var(--muted);
  background: transparent;
  font-weight: 400;
}

/* Data table */
.ds-table,
.shared-table,
.asset-catalog {
  width: 100%;
  max-width: none;
  margin: 0;
  overflow-x: auto;
}
.ds-table table,
.shared-table table,
.asset-catalog table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}
.ds-table th,
.ds-table td,
.shared-table th,
.shared-table td,
.asset-catalog th,
.asset-catalog td {
  padding: var(--row-pad-y) var(--row-pad-x);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
  line-height: 22px;
}
.ds-table th,
.shared-table th,
.asset-catalog th {
  height: var(--table-head-h);
  box-sizing: border-box;
  padding-top: 0;
  padding-bottom: 0;
  color: var(--muted);
  background: transparent;
  font: 400 12px/var(--table-head-h) var(--font-body);
  letter-spacing: 0;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.ds-table tbody tr,
.shared-table tbody tr,
.asset-catalog tbody tr { cursor: pointer; }
.ds-table tbody tr:hover,
.shared-table tbody tr:hover,
.asset-catalog tbody tr:hover { background: #F8FAF9; }
.ds-table tr:last-child td,
.shared-table tr:last-child td,
.asset-catalog tr:last-child td { border-bottom: 0; }
.ds-table td strong,
.shared-table td strong,
.asset-catalog td strong {
  display: block;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
}
.ds-table td small,
.shared-table td small,
.asset-catalog td small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
}
.asset-catalog > header { display: none; } /* actions live in page-head */
.asset-kind {
  display: block;
  margin-bottom: 2px;
  color: var(--green);
  font: 400 12px/18px var(--font-body);
  letter-spacing: 0;
  text-transform: none;
}
.asset-governance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: var(--page-gap);
  max-width: none;
  margin: 0;
  border: 0;
  background: transparent;
}
.asset-governance article {
  padding: 20px;
  display: grid;
  gap: 8px;
}
.asset-governance article > span { display: none; }
.asset-governance h2 {
  margin: 0;
  max-width: none;
  font: 600 16px/24px var(--font-display);
}
.asset-governance p,
.asset-governance li {
  color: var(--ink-secondary);
  font-size: 14px;
  line-height: 22px;
}
.asset-governance ol {
  margin: 0;
  padding-inline-start: 20px;
  display: grid;
  gap: 2px;
}
.asset-governance article + article { border-inline-start: 0; }
.asset-governance .text-button { margin-top: 4px; font-size: 14px; }

/* Metric strip (交付进度 / 交付中心摘要) */
.metric-strip,
.delivery-pipeline,
.workbench-delivery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
.metric-strip > div,
.delivery-pipeline > div,
.workbench-delivery-grid > div {
  display: grid;
  gap: 6px;
  padding: 16px 20px;
  border-inline-end: 1px solid var(--line-soft);
  min-width: 0;
}
.metric-strip > div:last-child,
.delivery-pipeline > div:last-child,
.workbench-delivery-grid > div:last-child { border-inline-end: 0; }
.metric-strip__bar,
.delivery-pipeline__bar,
.workbench-delivery-grid .bar {
  height: 4px;
  border-radius: 2px;
  background: var(--line-soft);
}
.metric-strip__bar.is-active,
.delivery-pipeline__bar.is-active,
.workbench-delivery-grid .bar.is-on { background: var(--green); }
.metric-strip__meta,
.delivery-pipeline__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.metric-strip__meta span,
.delivery-pipeline__meta span,
.delivery-pipeline > div > span:last-child,
.workbench-delivery-grid span {
  color: var(--muted);
  font: 400 12px/18px var(--font-body);
}
.metric-strip__meta strong,
.delivery-pipeline__meta strong,
.delivery-pipeline strong,
.workbench-delivery-grid strong {
  margin: 0;
  font: 500 20px/28px var(--font-label);
  color: var(--ink);
}
.metric-strip__meta strong.is-empty,
.delivery-pipeline strong.is-empty,
.workbench-delivery-grid strong.is-empty { color: #A3ADA8; }
/* workbench strip sits inside a card — no outer border duplicate */
.ds-card > .metric-strip,
.ds-card > .workbench-delivery-grid,
.ds-card > .delivery-pipeline {
  border: 0;
  border-radius: 0;
  background: transparent;
}

/* Service tile */
.service-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: var(--page-gap);
}
.service-tile,
.service-open-card {
  display: grid;
  gap: 12px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  cursor: pointer;
}
.service-open-card { border-bottom: 1px solid var(--line); } /* legacy list-in-card */
.ds-card .service-open-card {
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--line-soft);
  padding: 16px 20px;
  gap: 6px;
}
.service-tile__top,
.service-open-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.service-tile__code,
.service-open-card__top .mono {
  color: var(--ink-secondary);
  font: 400 12px/1 var(--font-label);
}
.service-tile__title {
  margin: 0;
  font: 600 16px/24px var(--font-display);
}
.service-section {
  display: grid;
  gap: 12px;
}
.service-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.service-section__head h2 {
  margin: 0;
  font: 600 16px/24px var(--font-display);
}
.service-section__head small {
  color: var(--muted);
  font-size: 12px;
}
.service-catalog-list { list-style: none; margin: 0; padding: 0; }
.service-catalog-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line-soft);
}
.service-catalog-list li:last-child { border-bottom: 0; }
.service-catalog-list .mono {
  flex: none;
  width: 56px;
  color: var(--ink-secondary);
  font: 400 12px/1.4 var(--font-label);
}
.service-catalog-list strong { display: block; font-size: 14px; font-weight: 600; }
.service-catalog-list small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
}
.service-catalog-list .status-chip,
.service-catalog-list .text-button,
.service-catalog-list__status { margin-left: auto; flex: none; }
.service-catalog-list__status {
  width: 64px;
  color: var(--muted);
  font-size: 12px;
}

/* Buttons / chips polish */
.button--secondary {
  border-color: var(--border-secondary);
  color: var(--ink);
  background: var(--white);
}
.button--secondary:hover {
  background: var(--surface-canvas);
  border-color: var(--border-secondary);
}
.status-chip {
  height: 20px;
  min-height: 20px;
  padding: 0 6px;
  border-radius: 4px;
  font: 400 12px/20px var(--font-body);
}
.text-button { font-size: 12px; font-weight: 400; color: var(--green); }

/* Workbench pieces */
.workbench__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.workbench__head h1 { margin: 0; font: 600 24px/32px var(--font-display); }
.workbench__meta { margin: 0 0 4px; color: var(--muted); font-size: 12px; }
.workbench__date { color: var(--muted); font-size: 12px; }
.workbench-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: var(--page-gap);
  align-items: start;
}
.workbench-grid--proto {
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
}
.workbench-col { display: grid; gap: var(--page-gap); min-width: 0; }
.workbench-col--services { gap: 12px; }
.workbench-quiet {
  margin: 0;
  padding: 16px 20px;
  color: var(--muted);
  font-size: 12px;
}
.workbench-queue,
.workbench-asset-preview { list-style: none; margin: 0; padding: 0; }
.workbench-queue li,
.workbench-asset-preview li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
  background: transparent;
  text-align: left;
}
.workbench-queue li:last-child,
.workbench-asset-preview li:last-child { border-bottom: 0; }
.workbench-queue li:hover,
.workbench-asset-preview li:hover { background: #F0F3F1; }
.workbench-queue__code {
  justify-self: start;
  padding: 2px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--green-2);
  font: 600 10px/1.2 var(--font-label);
}
.workbench-queue__body,
.workbench-asset-preview__body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.workbench-queue strong,
.workbench-asset-preview strong { font-size: 14px; font-weight: 600; }
.workbench-queue small,
.workbench-asset-preview small {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.workbench-queue__due {
  flex: none;
  text-align: right;
  display: grid;
  line-height: 18px;
  font-size: 14px;
}
.workbench-queue__due small { font-size: 12px; }
.workbench-queue__go {
  justify-self: end;
  color: var(--green);
  font-size: 13px;
}
.workbench-service-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding: 16px 18px;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  color: var(--ink);
  cursor: pointer;
}
.workbench-service-card:hover { border-color: var(--green); }
.workbench-service-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.workbench-service-card__code {
  color: var(--green-2);
  font: 600 11px/1 var(--font-label);
}
.workbench-service-card__code.is-warn { color: #8A5300; }
.workbench-service-card__meta { color: var(--muted); font-size: 12px; }
.workbench-service-card strong { font-size: 15px; font-weight: 600; }
.workbench-service-card__foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  color: var(--ink-secondary);
  font-size: 13px;
}
.workbench-service-card__go { color: var(--green); flex: none; }
.workbench-consult-link {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 18px;
  text-align: left;
  background: transparent;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-card);
  color: var(--ink-secondary);
  font-size: 13px;
  cursor: pointer;
}
.workbench-consult-link:hover { background: var(--white); }
.workbench-consult-link > span:last-child { color: var(--green); }

/* CBAM · 当前工作（框架 2a / 原型 cbam-work） */
.cbam-work {
  display: grid;
  gap: 16px;
  max-width: var(--content-max);
}
.cbam-work > .page-head { margin-bottom: 0; }
.cbam-work__board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 280px);
  gap: 16px;
  align-items: start;
}
.cbam-work__queue,
.cbam-work__progress { margin: 0; }
.cbam-work__queue .ds-card__head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
.cbam-work__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cbam-work__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 13px 18px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
  text-align: left;
  color: inherit;
  cursor: pointer;
}
.cbam-work__list li:last-child .cbam-work__row { border-bottom: 0; }
.cbam-work__row:hover { background: #F0F3F1; }
.cbam-work__row-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.cbam-work__row-copy strong {
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
}
.cbam-work__row-copy small {
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cbam-work__go {
  justify-self: end;
  color: var(--green);
  font-size: 13px;
  white-space: nowrap;
}
.cbam-work__progress {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
}
.cbam-work__progress > strong { font-size: 14px; font-weight: 600; }
.cbam-work__pct {
  font: 600 28px/1 var(--font-display);
  color: var(--ink);
  letter-spacing: -.02em;
}
.cbam-work__bar {
  display: block;
  height: 6px;
  overflow: hidden;
  background: var(--line-soft);
  border-radius: 3px;
}
.cbam-work__bar > i {
  display: block;
  height: 100%;
  background: var(--green);
  border-radius: 3px;
}
.cbam-work__progress > p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 13px;
  line-height: 1.6;
}
.cbam-work__quarters {
  list-style: none;
  margin: 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--line-soft);
  display: grid;
  gap: 6px;
}
.cbam-work__quarter {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--ink-secondary);
}
.cbam-work__quarter strong { font-weight: 600; }
.cbam-work__quarter.is-ok strong { color: var(--green-2); }
.cbam-work__quarter.is-warn strong { color: var(--yellow); }
.cbam-work__quarter.is-muted strong { color: var(--muted); font-weight: 400; }
.cbam-work__state {
  display: grid;
  gap: 12px;
  max-width: 640px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 2px solid var(--ink);
  border-radius: var(--radius-card);
}
.cbam-work__state > strong,
.cbam-work__state header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
}
.cbam-work__state-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: #EEF1EF;
  color: var(--ink-secondary);
}
.cbam-work__state-icon::before {
  content: "";
  width: 17px;
  height: 17px;
  background: currentColor;
  -webkit-mask: url(https://unpkg.com/lucide-static@0.454.0/icons/archive.svg) center / contain no-repeat;
  mask: url(https://unpkg.com/lucide-static@0.454.0/icons/archive.svg) center / contain no-repeat;
}
.cbam-work__state > p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 14px;
  line-height: 1.65;
}
.cbam-work__inherit {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--ink-secondary);
}
.cbam-work__inherit li {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line-soft);
}
.cbam-work__inherit li:last-child { border-bottom: 0; }
.cbam-work__state-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
@media (max-width: 960px) {
  .cbam-work__board { grid-template-columns: 1fr; }
}

/* CBAM · 计算与成本（框架 T5 / 原型 cbam-results） */
.cbam-results {
  display: grid;
  gap: 16px;
  max-width: var(--content-max);
}
.cbam-results > .page-head { margin-bottom: 0; }
.cbam-run {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 2px solid var(--ink);
  border-radius: var(--radius-card);
}
.cbam-run--danger { border-top-color: var(--danger); }
.cbam-run--ok { border-top-color: var(--green); }
.cbam-run__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
}
.cbam-run__copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1 1 360px;
}
.cbam-run__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.cbam-run__meta small {
  color: var(--green);
  font: 600 11px/1 var(--font-label);
  letter-spacing: .07em;
}
.cbam-run__meta b {
  font: 600 13px/1 var(--font-label);
}
.cbam-run__copy > strong {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}
.cbam-run__copy > span:last-child {
  color: var(--ink-secondary);
  font-size: 13px;
  line-height: 1.55;
}
.cbam-run__blockers {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-soft);
}
.cbam-run__blocker {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 11px 18px;
  border: 0;
  border-bottom: 1px solid #F3F5F4;
  background: var(--white);
  text-align: left;
  color: inherit;
  cursor: pointer;
}
.cbam-run__blockers li:last-child .cbam-run__blocker { border-bottom: 0; }
.cbam-run__blocker:hover:not(:disabled) { background: #F7FAF8; }
.cbam-run__blocker:disabled { cursor: default; }
.cbam-run__dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  color: var(--white);
  background: var(--line-strong);
}
.cbam-run__dot.is-done { background: var(--green); }
.cbam-run__dot.is-danger { background: var(--danger); }
.cbam-run__blocker-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.cbam-run__blocker-copy strong {
  font-size: 13px;
  font-weight: 600;
}
.cbam-run__blocker-copy small {
  color: var(--muted);
  font-size: 12px;
}
.cbam-run__diff {
  color: var(--ink-secondary);
  font: 500 12px/1 var(--font-label);
  white-space: nowrap;
}

.cbam-scenario { margin: 0; overflow-x: auto; }
.cbam-scenario > .ds-card__head {
  height: auto;
  min-height: 48px;
  padding: 10px 18px;
  flex-wrap: wrap;
}
.cbam-scenario > .ds-card__head h2 {
  font-size: 14px;
  line-height: 22px;
}
.cbam-scenario > .ds-card__head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
.cbam-scenario__grid {
  display: grid;
  grid-template-columns: minmax(150px, 1.1fr) repeat(3, minmax(140px, 1fr));
  min-width: 620px;
}
.cbam-scenario__corner {
  padding: 12px 18px;
  background: var(--mint-2);
  color: var(--muted);
  font-size: 12px;
}
.cbam-scenario__colhead {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  background: var(--mint-2);
}
.cbam-scenario__colhead.is-applied {
  background: var(--mint);
  box-shadow: inset 0 2px 0 var(--green);
}
.cbam-scenario__colhead strong {
  font-size: 13px;
  font-weight: 600;
}
.cbam-scenario__label,
.cbam-scenario__cell {
  padding: 11px 14px;
  border-top: 1px solid var(--line-soft);
  background: var(--white);
}
.cbam-scenario__label {
  padding-left: 18px;
  padding-right: 18px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.cbam-scenario__label span {
  font-size: 13px;
  font-weight: 400;
}
.cbam-scenario__label.is-emph span { font-weight: 600; }
.cbam-scenario__label small {
  color: var(--muted);
  font-size: 11px;
}
.cbam-scenario__label.is-emph,
.cbam-scenario__cell.is-emph { background: #FAFBFA; }
.cbam-scenario__cell {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  text-align: right;
  font: 500 13px/1.3 var(--font-label);
}
.cbam-scenario__cell.is-emph { font-weight: 600; font-size: 14px; }
.cbam-scenario__cell.is-applied { background: #F7FAF8; }
.cbam-scenario__cell.is-emph.is-applied { background: #F7FAF8; }
.cbam-scenario__cell strong { font-weight: inherit; }
.cbam-scenario__cell small {
  color: var(--muted);
  font: 400 11px/1.3 var(--font-body);
}
.cbam-scenario__cell small.is-warn { color: var(--yellow); }
.cbam-scenario__cell small.is-ok { color: var(--green-2); }
.cbam-scenario__note {
  margin: 0;
  padding: 12px 18px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.cbam-results__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px;
}
.cbam-history {
  flex: 2 1 440px;
  min-width: 0;
  margin: 0;
}
.cbam-history .ds-card__head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
.cbam-history__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cbam-results__aside {
  flex: 1 1 260px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 18px;
  background: var(--mint-2);
  border-radius: var(--radius-card);
  color: var(--ink-secondary);
  font-size: 13px;
  line-height: 1.65;
}
.cbam-results__aside strong {
  color: var(--ink);
  font-size: 13px;
}
.cbam-results__aside p { margin: 0; }
.cbam-run__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  flex: none;
}
.cbam-inputs { margin: 0; }
.cbam-inputs .ds-card__head .text-button { font-size: 13px; }
.cbam-snapshot {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cbam-snapshot__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--white);
}
.cbam-snapshot--page .cbam-snapshot__row { padding: 11px 18px; }
.cbam-snapshot__row:last-child { border-bottom: 0; }
.cbam-snapshot__row.is-warn { background: #FFFBF2; }
.cbam-snapshot__row span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.cbam-snapshot__row strong {
  font-size: 13px;
  font-weight: 600;
}
.cbam-snapshot__row small {
  color: var(--muted);
  font-size: 11px;
}
.cbam-snapshot__row.is-warn small { color: var(--yellow); }
.cbam-snapshot__row b {
  color: var(--ink-secondary);
  font: 500 12px/1.3 var(--font-label);
  white-space: nowrap;
}
.cbam-snapshot--bordered {
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.cbam-extract {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.cbam-extract__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 48px;
  gap: 12px;
  align-items: center;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--white);
}
.cbam-extract__row:last-child { border-bottom: 0; }
.cbam-extract__row span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.cbam-extract__row strong {
  font-size: 13px;
  font-weight: 600;
}
.cbam-extract__row small {
  color: var(--muted);
  font-size: 11px;
}
.cbam-extract__row b {
  font: 500 13px/1.3 var(--font-label);
  text-align: right;
}
.drawer-detail {
  display: grid;
  gap: 18px;
}
.drawer-detail__sub {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.cbam-history__row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 12px 18px;
  border: 0;
  border-bottom: 1px solid #F3F5F4;
  background: transparent;
  text-align: left;
  color: inherit;
  cursor: pointer;
}
.cbam-history__list li:last-child .cbam-history__row { border-bottom: 0; }
.cbam-history__row:hover { background: #F7FAF8; }
.cbam-history__row b { font: 600 12px/1 var(--font-label); }
.cbam-history__row > span {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.cbam-history__row strong { font-size: 13px; font-weight: 400; }
.cbam-history__row small { color: var(--muted); font-size: 12px; }
.drawer-kv {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}
.drawer-kv dt { margin: 0; color: var(--muted); }
.drawer-kv dd { margin: 0; }
.drawer-lead {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 14px;
  line-height: 1.65;
}
.drawer-note {
  margin: 0;
  padding: 12px 14px;
  color: var(--ink-secondary);
  background: var(--mint-2);
  border-radius: var(--radius-card);
  font-size: 13px;
  line-height: 1.6;
}
.drawer-file-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  font-size: 13px;
}
.drawer-file-list li {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
}
.drawer-file-list li:last-child { border-bottom: 0; }
.drawer-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.drawer-timeline__item {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 12px;
}
.drawer-timeline__item > i {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.drawer-timeline__item > i::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 50%;
  background: #9FBEB0;
  flex: none;
}
.drawer-timeline__item > i::after {
  content: "";
  width: 1px;
  flex: 1;
  background: var(--line);
}
.drawer-timeline__item:last-child > i::after { display: none; }
.drawer-timeline__item.is-now > i::before { background: var(--green); }
.drawer-timeline__item.is-wait > i::before {
  background: var(--white);
  border: 1px solid var(--line-strong);
}
.drawer-timeline__item span {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-bottom: 14px;
}
.drawer-timeline__item strong { font-size: 13px; font-weight: 400; }
.drawer-timeline__item.is-now strong { font-weight: 600; }
.drawer-timeline__item.is-wait strong { color: var(--muted); }
.drawer-timeline__item small { color: var(--muted); font-size: 12px; }

/* CBAM · 季度数据（框架 T2 / 原型 cbam-data） */
.cbam-data {
  display: grid;
  gap: 16px;
  max-width: var(--content-max);
}
.cbam-data > .page-head { margin-bottom: 0; }
.cbam-data__cats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.cbam-data__cat {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  text-align: left;
  color: inherit;
  background: var(--white);
  border: 0;
  border-right: 1px solid var(--line-soft);
  cursor: pointer;
}
.cbam-data__cat:last-child { border-right: 0; }
.cbam-data__cat:hover { background: var(--mint-2); }
.cbam-data__cat.is-on {
  background: #F7FAF8;
  box-shadow: inset 0 -2px 0 var(--ink);
}
.cbam-data__cat span {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.cbam-data__cat strong { font-size: 14px; font-weight: 600; }
.cbam-data__cat small { color: var(--muted); font-size: 12px; }
.cbam-data__cat em {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-style: normal;
  color: var(--muted);
}
.cbam-data__cat em.warn { color: var(--yellow); }
.cbam-data__cat em.danger { color: var(--danger); }
.cbam-data__cat em i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.cbam-data__body {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px;
}
.cbam-data__table {
  flex: 2 1 520px;
  min-width: 0;
  margin: 0;
  overflow-x: auto;
}
.cbam-data__head,
.cbam-data__row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(90px, auto) auto 64px;
  gap: 14px;
  align-items: center;
  min-width: 620px;
  padding: 12px 18px;
}
.cbam-data__head {
  background: var(--mint-2);
  color: var(--muted);
  font-size: 12px;
}
.cbam-data__head span:nth-child(3) { text-align: right; }
.cbam-data__group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 620px;
  padding: 10px 18px 6px;
  border-top: 1px solid var(--line-soft);
}
.cbam-data__group-head span {
  color: var(--green);
  font: 600 11px/1 var(--font-label);
  letter-spacing: .07em;
}
.cbam-data__group-head small { color: var(--muted); font-size: 12px; }
.cbam-data__row {
  width: 100%;
  text-align: left;
  color: inherit;
  background: var(--white);
  border: 0;
  border-top: 1px solid #F3F5F4;
  cursor: pointer;
}
.cbam-data__row:hover { background: var(--mint-2); }
.cbam-data__row.is-danger { background: #FFFBFA; }
.cbam-data__name {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.cbam-data__name strong { font-size: 14px; font-weight: 600; }
.cbam-data__name small { color: var(--muted); font-size: 12px; }
.cbam-data__src {
  color: var(--ink-secondary);
  font-size: 13px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cbam-data__val {
  font: 500 13px/1.3 var(--font-label);
  text-align: right;
  white-space: nowrap;
}
.cbam-data__val.is-warn { color: var(--yellow); }
.cbam-data__val.is-muted { color: var(--muted); }
.cbam-data__aside {
  flex: 1 1 260px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cbam-data__flow {
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cbam-data__flow > strong { font-size: 14px; }
.cbam-data__flow ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.cbam-data__flow li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-size: 13px;
  line-height: 1.5;
}
.cbam-data__flow li > span {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--mint-2);
  color: var(--ink-secondary);
  font: 600 11px/1 var(--font-label);
}
.cbam-data__flow li > span.is-ok {
  background: #E6F2EB;
  color: var(--green-2);
}
.cbam-data__flow b { font-weight: 600; }
.cbam-data__flow small { color: var(--muted); font-size: 12px; }
.cbam-data__note {
  margin: 0;
  padding: 14px 18px;
  background: var(--mint-2);
  border-radius: 4px;
  color: var(--ink-secondary);
  font-size: 13px;
  line-height: 1.6;
}
.cbam-extract__row.is-warn { background: #FFFBF2; }
.cbam-data-history {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.cbam-data-history__row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  font-size: 13px;
}
.cbam-data-history__row b {
  color: var(--green);
  font: 600 12px/1.3 var(--font-label);
}
.cbam-data-history__row small { color: var(--muted); font-size: 12px; }
@media (max-width: 900px) {
  .cbam-data__cats { grid-template-columns: 1fr 1fr; }
  .cbam-data__cat:nth-child(2n) { border-right: 0; }
}

/* CBAM · 报告与交付（框架 T2 / 原型 cbam-reports） */
.cbam-reports {
  display: grid;
  gap: 16px;
  max-width: var(--content-max);
}
.cbam-reports > .page-head { margin-bottom: 0; }
.cbam-reports__legend {
  align-items: center;
  gap: 8px 14px;
  padding: 12px 16px;
  color: var(--ink-secondary);
  background: var(--white);
  border-color: var(--line);
}
.cbam-reports__legend-label {
  color: var(--muted);
  font: 600 11px/1 var(--font-label);
  letter-spacing: .07em;
}
.cbam-reports__state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cbam-reports__state i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}
.cbam-reports__state i.is-warn { background: var(--yellow); }
.cbam-reports__state i.is-muted { background: var(--line-strong); }
.cbam-reports__state i.is-ok { background: var(--green); }
.cbam-reports__state em {
  margin-left: 8px;
  color: var(--line-strong);
  font-style: normal;
}
.cbam-reports__legend-note {
  margin-left: auto;
  color: var(--muted);
}
.cbam-reports__table { margin: 0; }
.cbam-reports__group td {
  padding: 10px 18px 6px;
  background: var(--white);
  border-top: 1px solid var(--line-soft);
  vertical-align: middle;
}
.cbam-reports__group span {
  color: var(--green);
  font: 600 11px/1 var(--font-label);
  letter-spacing: .07em;
}
.cbam-reports__group small {
  float: right;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  white-space: nowrap;
}
.shared-row.is-mine { background: #F7FAF8; }
.shared-row.is-dim { opacity: .55; }
.shared-row.is-dim:hover { opacity: .75; }

@media (max-width: 960px) {
  .cbam-run__blocker {
    grid-template-columns: 18px minmax(0, 1fr) auto;
  }
  .cbam-run__diff { display: none; }
  .cbam-history__list li {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .cbam-history__list b {
    grid-column: 1 / -1;
  }
}

.workbench-service-row {
  display: grid;
  gap: 6px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
}
.workbench-service-row:last-child { border-bottom: 0; }
.workbench-service-row:hover { background: #F8FAF9; }
.workbench-service-row__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.workbench-service-row__top .mono {
  margin-right: 8px;
  color: var(--ink-secondary);
  font: 400 12px/1 var(--font-label);
}
.workbench-service-row__top strong { font-weight: 600; font-size: 14px; }
.workbench-service-row__pct { font: 400 14px/1 var(--font-label); }
.workbench-service-row__detail { color: var(--muted); font-size: 12px; }
.progress-bar {
  display: block;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--line-soft);
  overflow: hidden;
}
.progress-bar > i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--green);
}
@media (max-width: 960px) {
  .workbench-grid--proto { grid-template-columns: 1fr; }
}
.permission-self { max-width: 800px; width: 100%; margin: 0; overflow: hidden; }
.permission-self dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 0;
}
.permission-self dl div {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-soft);
}
.permission-self dt { color: var(--muted); font-size: 12px; }
.permission-self dd { margin: 2px 0 0; font-weight: 600; font-size: 14px; }
.mono { font-family: var(--font-label); }
.source-reference {
  display: block;
  color: var(--ink-secondary);
  font: 400 12px/18px var(--font-label);
}
.service-row--pilot,
.workbench-channel--pilot,
.service-card--pilot { background: var(--white) !important; }

@media (max-width: 900px) {
  .metric-strip,
  .delivery-pipeline,
  .workbench-delivery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-strip > div:nth-child(2n),
  .delivery-pipeline > div:nth-child(2n),
  .workbench-delivery-grid > div:nth-child(2n) { border-inline-end: 0; }
  .metric-strip > div:nth-child(-n + 2),
  .delivery-pipeline > div:nth-child(-n + 2),
  .workbench-delivery-grid > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line-soft); }
}

@media (prefers-reduced-motion: no-preference) {
  .pcf-card,
  .stage-gate-panel,
  .service-card {
    animation: lumino-rise var(--duration-fast) var(--ease-out) both;
  }
  .service-card:nth-child(2) { animation-delay: 40ms; }
  .service-card:nth-child(3) { animation-delay: 80ms; }
  .service-card:nth-child(4) { animation-delay: 120ms; }
}
@keyframes lumino-rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Framework 1a / 1d (Issue #68) ===== */
.login-destinations {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  color: var(--text-on-brand-muted);
  font-size: 14px;
  line-height: 1.5;
}
.login-destinations strong { color: #fff; font-weight: 600; }
.login-destinations em { color: var(--kicker, #7FD1A8); font-style: normal; font-weight: 600; }
.login-email-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  color: var(--ink-secondary);
  font-size: 13px;
}
.login-sso-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--mint-2);
}
.login-sso-card small { color: var(--muted); font-size: 12px; }
.workspace-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.workspace-card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: center;
  width: 100%;
  padding: 14px;
  text-align: left;
  background: var(--white);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}
.workspace-card:last-child { border-bottom: 0; }
.workspace-card:hover { background: var(--mint-2); }
.workspace-card small { color: var(--ink-secondary); font-size: 12px; }
.portal-layout {
  grid-template-columns: var(--rail-w) var(--sidebar-w) minmax(0, 1fr);
}
.portal-layout--rail-only {
  grid-template-columns: var(--rail-w) minmax(0, 1fr);
}
.portal-layout--rail-only .sidebar { display: none; }
.shell-rail {
  position: sticky;
  top: var(--topbar-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: var(--rail-w);
  height: calc(100vh - var(--topbar-h));
  padding: 12px 0;
  background: var(--white);
  border-right: 1px solid var(--line);
  overflow: auto;
}
.rail-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 60px;
  min-height: 52px;
  padding: 8px 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: #4A5651;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.2;
}
.rail-item:hover { background: #F0F3F1; color: var(--ink); }
.rail-item.active { background: var(--mint); color: var(--green-2); font-weight: 600; }
.rail-item--code { font-family: var(--font-label); font-weight: 600; }
.rail-item--code.active { color: var(--green-2); }
.rail-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: none;
  background: currentColor;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}
.rail-label {
  max-width: 56px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  line-height: 1.2;
}
.rail-code {
  display: grid;
  place-items: center;
  width: 32px;
  height: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  font: 600 9px/1 var(--font-label);
}
.rail-item--code.active .rail-code {
  border-color: var(--green);
  color: var(--green-2);
}
.rail-badge {
  position: absolute;
  top: 4px;
  right: 8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: #EEF1EF;
  color: #4A5651;
  border-radius: 8px;
  font-size: 10px;
  line-height: 16px;
  font-weight: 400;
}
.rail-divider { width: 32px; height: 1px; margin: 6px 0; background: var(--line); flex: none; }
.rail-spacer { flex: 1; min-height: 8px; }
.sidebar-channel {
  display: grid;
  gap: 2px;
  margin-bottom: 12px;
  padding: 10px 10px 12px;
  border-bottom: 1px solid var(--line-soft);
}
.sidebar-channel__eyebrow {
  margin: 0;
  font: 500 10px/1.2 var(--font-label);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.sidebar-channel strong { font-size: 14px; color: var(--ink); }
.sidebar-channel span { font-size: 12px; color: var(--muted); }

.cmdk-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 1 240px;
  min-width: 160px;
  max-width: 280px;
  height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: #F0F3F1;
  color: #6B7771;
  font-size: 13px;
}
.cmdk-trigger:hover { background: #E9EDEB; }
.cmdk-trigger span { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk-trigger kbd {
  margin-left: auto;
  font: 500 11px var(--font-label);
  color: #6B7771;
}
.cmdk-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: start center;
  padding-top: 12vh;
}
.cmdk-backdrop { position: absolute; inset: 0; border: 0; background: rgba(23, 33, 28, .35); }
.cmdk-dialog {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100vw - 32px));
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(0,0,0,.18);
  overflow: hidden;
}
.cmdk-dialog input {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  outline: none;
  font-size: 15px;
}
.cmdk-results { max-height: 360px; overflow: auto; }
.cmdk-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 18px;
  border: 0;
  background: #fff;
  text-align: left;
}
.cmdk-item:hover, .cmdk-item:focus-visible { background: var(--mint-2); }
.cmdk-item span { color: var(--muted); font-size: 12px; }
.cmdk-empty { margin: 0; padding: 20px 18px; color: var(--muted); }

.account-menu { position: relative; }
.account-menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 40;
  min-width: 240px;
  width: max-content;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
  display: grid;
  gap: 2px;
}
.account-menu__panel button {
  width: 100%;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  text-align: left;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 13px;
  white-space: nowrap;
}
.account-menu__panel button:hover { background: var(--mint-2); }
.account-menu__panel .account-menu__role:hover { background: var(--mint-2); border-radius: var(--radius-sm); }

@media (max-width: 820px) {
  .portal-layout { grid-template-columns: minmax(0, 1fr); }
  .shell-rail { display: none; }
  .cmdk-trigger { display: none; }
}

/* T4 step-flow footer (Issue #68 Phase C) */
.step-flow-footer {
  position: sticky;
  bottom: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(8px);
  box-shadow: 0 -8px 24px rgba(23, 33, 28, 0.06);
}
.step-flow-footer__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}
.step-flow-footer__meta p {
  max-width: 36ch;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  text-align: right;
}
@media (max-width: 820px) {
  .step-flow-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .step-flow-footer__meta {
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
  }
  .step-flow-footer__meta p { text-align: left; max-width: none; }
  .step-flow-footer .button { width: 100%; }
}

/* System state panels (Issue #68 Phase C/D) */
.system-state {
  display: grid;
  gap: 10px;
  justify-items: start;
  max-width: 640px;
  margin: 0;
  padding: 20px 22px;
  background: var(--surface-raised, #fff);
  border: 1px solid var(--line);
  border-top: 2px solid var(--ink);
  border-radius: var(--radius-sm);
}
.system-state__code {
  margin: 0;
  color: var(--muted);
  font: 500 11px/1.2 var(--font-label);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.system-state h2 {
  margin: 0;
  font: 600 1.25rem/1.3 var(--font-display);
  color: var(--ink);
}
.system-state__reason {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 14px;
  line-height: 1.65;
}
.system-state__can {
  margin: 4px 0 0;
  padding-left: 1.2em;
  display: grid;
  gap: 6px;
  color: var(--ink-secondary);
  font-size: 13px;
}
.system-state__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.system-state--forbidden { border-top-color: var(--danger); }
.system-state--stale, .system-state--locked { border-top-color: var(--yellow); }
.system-state--empty { border-top-color: var(--ink); }
.system-state--error { border-top-color: var(--danger, #B42318); }
.system-state--loading { border-top-color: var(--green); }
.system-state__error-code {
  margin: 0;
  color: var(--muted);
  font: 500 12px/1.4 var(--font-label);
}
.system-state__skeleton {
  display: grid;
  gap: 8px;
  width: min(100%, 360px);
  margin-top: 4px;
}
.system-state__skeleton span {
  display: block;
  height: 10px;
  border-radius: 4px;
  background: linear-gradient(90deg, #EEF1EF 0%, #F7F9F8 50%, #EEF1EF 100%);
  background-size: 200% 100%;
  animation: system-state-shimmer 1.2s ease-in-out infinite;
}
.system-state__skeleton span:nth-child(2) { width: 78%; }
.system-state__skeleton span:nth-child(3) { width: 54%; }
@keyframes system-state-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.list-page-shell { display: grid; gap: 16px; max-width: var(--content-max); }
.shared-empty-row td .system-state { max-width: none; width: 100%; border-top-width: 2px; }

/* T2 shared centers · 任务 / 资产 / 交付 — 列宽对齐原型 grid */
.shared-list table {
  table-layout: fixed;
  width: 100%;
  min-width: 720px;
}
.shared-list th,
.shared-list td {
  overflow: hidden;
  vertical-align: middle;
}
.shared-list .shared-empty-row td { overflow: visible; }
.shared-list td strong,
.shared-list td small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shared-list th:last-child,
.shared-list td:last-child,
.shared-list .shared-row__go {
  text-align: right;
  white-space: nowrap;
  overflow: visible;
}

/*
 * 任务 / 交付列宽：原型 grid 轨是「内容宽」(52 / … / auto / 96 + gap 14)；
 * table 的 col 宽还要计入单元格左右 padding，不能照抄 52/56，否则服务徽章被裁切。
 */
.shared-list--tasks th,
.shared-list--tasks td,
.shared-list--deliverables th,
.shared-list--deliverables td {
  padding-left: 14px;
  padding-right: 14px;
}
.shared-list--tasks th:first-child,
.shared-list--tasks td:first-child,
.shared-list--deliverables th:first-child,
.shared-list--deliverables td:first-child {
  padding-left: 18px;
  padding-right: 8px;
}
.shared-list--tasks th:last-child,
.shared-list--tasks td:last-child,
.shared-list--deliverables th:last-child,
.shared-list--deliverables td:last-child {
  padding-left: 8px;
  padding-right: 18px;
}
.shared-list--tasks .shared-col--svc,
.shared-list--deliverables .shared-col--svc { width: 78px; } /* 18 + 52 + 8 */
.shared-list--tasks .shared-col--main,
.shared-list--deliverables .shared-col--main { width: auto; }
.shared-list--tasks .shared-col--due { width: 110px; }
.shared-list--deliverables .shared-col--recipient { width: 22%; }
.shared-list--tasks .shared-col--state,
.shared-list--deliverables .shared-col--state { width: 128px; } /* chip ≈ 100 + pad */
.shared-list--tasks .shared-col--go { width: 88px; }
.shared-list--deliverables .shared-col--go { width: 112px; } /* 「检查并共享 →」 */
.shared-list td:has(.shared-code),
.shared-list td:has(.status-chip) {
  overflow: visible;
}
.cbam-reports__group td {
  padding-left: 18px;
  padding-right: 18px;
}

/* 资产：主列 1.6 · 期间 1 · 服务使用 · 状态 · 操作（百分比合计 100%） */
.shared-list--assets .shared-col--asset { width: 40%; }
.shared-list--assets .shared-col--period { width: 26%; }
.shared-list--assets .shared-col--svc-use { width: 12%; }
.shared-list--assets .shared-col--state { width: 14%; }
.shared-list--assets .shared-col--go { width: 8%; }

.shared-code {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--green-2);
  font: 600 10px/1 var(--font-mono, "IBM Plex Mono", ui-monospace, monospace);
  letter-spacing: .02em;
  white-space: nowrap;
}
.shared-type {
  display: block;
  margin-bottom: 2px;
  color: var(--green-2);
  font: 400 12px/18px var(--font-body);
}
.shared-row__go {
  color: var(--green);
  font-size: 13px;
  font-weight: 500;
}
.shared-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding: 10px 14px;
  color: var(--muted);
  background: var(--surface-soft, #F7F9F8);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  font-size: 12px;
  line-height: 1.5;
}
.shared-legend span { white-space: nowrap; }
.shared-footnote {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

/* T5 review suite */
.review-suite { display: grid; gap: 14px; max-width: var(--content-max, 1460px); }
.review-suite__note { max-width: none; margin: 0; }
.review-suite__board { margin: 0; }

/* T6 settings shell */
.settings-shell { display: grid; gap: 14px; max-width: var(--content-max, 1460px); }
.settings-shell__lead {
  max-width: 68ch;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.settings-shell__hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.settings-shell .settings-layout { margin: 0; max-width: none; }
.settings-shell .settings-nav {
  border-radius: var(--radius-sm);
}
.settings-shell .action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

/* T3 drawer shell */
.drawer-shell { display: grid; gap: 14px; }
.drawer-shell__head {
  display: grid;
  gap: 6px;
  justify-items: start;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.drawer-shell__head p {
  margin: 0;
  color: var(--green);
  font: 600 10px/1.2 var(--font-label);
  letter-spacing: .08em;
}
.drawer-shell__head h3 {
  margin: 0;
  font: 600 1.125rem/1.3 var(--font-display);
}
.drawer-shell__block {
  display: grid;
  gap: 6px;
}
.drawer-shell__block > span {
  color: var(--muted);
  font: 500 11px/1.2 var(--font-label);
  letter-spacing: .04em;
}
.drawer-shell__block p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 13px;
  line-height: 1.55;
}

/* Independent service overview — demo entry layer, intentionally outside navigation. */
.service-overview-layer {
  position: fixed;
  inset: var(--topbar-h) 0 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 28px;
}
.service-overview-layer[hidden],
.service-overview-dock[hidden] { display: none; }
.service-overview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 34, 25, .42);
  backdrop-filter: blur(3px);
}
.service-overview-dialog {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(1180px, 100%);
  max-height: min(760px, calc(100vh - var(--topbar-h) - 56px));
  overflow: hidden;
  color: var(--ink);
  background: #F7F9F8;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 14px;
  box-shadow: 0 28px 80px rgba(10, 28, 19, .26);
  animation: service-overview-in .22s ease-out both;
}
@keyframes service-overview-in {
  from { opacity: 0; transform: translateY(12px) scale(.992); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.service-overview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 28px 30px 22px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.service-overview-head > div:first-child { max-width: 720px; }
.service-overview-kicker {
  display: block;
  margin-bottom: 9px;
  color: var(--green);
  font: 600 11px/1 var(--font-label);
  letter-spacing: .08em;
}
.service-overview-head h2 {
  margin: 0;
  font: 600 clamp(24px, 2.4vw, 34px)/1.2 var(--font-display);
  letter-spacing: -.025em;
}
.service-overview-head p {
  margin: 10px 0 0;
  color: var(--ink-secondary);
  font-size: 14px;
  line-height: 1.65;
}
.service-overview-actions {
  display: flex;
  gap: 8px;
  flex: none;
}
.service-overview-actions button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 11px;
  color: var(--ink-secondary);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.service-overview-actions button:hover { color: var(--green); border-color: var(--green); }
.service-overview-actions span { font: 400 20px/1 var(--font-label); }
.service-overview-actions em { font-style: normal; font-size: 12px; }
.service-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-height: 0;
  padding: 18px;
  overflow: auto;
}
.service-overview-grid--page {
  padding: 0;
  overflow: visible;
}
.service-overview-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 9px;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.service-overview-card:hover {
  border-color: #9FB9AB;
  transform: translateY(-1px);
  box-shadow: 0 9px 24px rgba(17, 51, 33, .07);
}
.service-overview-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.service-overview-card__identity {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.service-overview-card__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  color: var(--green-2);
  background: #EAF3EE;
  border: 1px solid #D7E8DE;
  border-radius: 9px;
}
.service-overview-card__icon::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 4px;
  width: 4px;
  height: 4px;
  background: #E4B82F;
  border-radius: 50%;
}
.service-overview-card__icon i {
  display: block;
  width: 17px;
  height: 17px;
  background: currentColor;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}
.service-overview-card__code {
  color: var(--green);
  font: 700 12px/1 var(--font-label);
  letter-spacing: .06em;
}
.service-overview-card__enter {
  padding: 0;
  color: var(--green);
  background: transparent;
  border: 0;
  font-size: 12px;
  cursor: pointer;
}
.service-overview-card__enter:hover { text-decoration: underline; text-underline-offset: 3px; }
.service-overview-card__copy { padding: 16px 0 18px; }
.service-overview-card__copy h3 {
  margin: 0;
  font: 600 17px/1.35 var(--font-display);
}
.service-overview-card__copy p {
  margin: 7px 0 0;
  min-height: 42px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.service-overview-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.service-overview-card dl > div {
  min-width: 0;
  padding-inline: 10px;
  border-inline-end: 1px solid var(--line-soft);
}
.service-overview-card dl > div:first-child { padding-inline-start: 0; }
.service-overview-card dl > div:last-child { padding-inline-end: 0; border-inline-end: 0; }
.service-overview-card dt {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.service-overview-card dd {
  margin: 5px 0 0;
  overflow: hidden;
  color: var(--ink);
  font: 600 13px/1.4 var(--font-label);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.service-overview-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 50px;
  padding: 10px 30px;
  background: var(--white);
  border-top: 1px solid var(--line);
}
.service-overview-foot > span { color: var(--muted); font-size: 11px; }
.service-overview-dock {
  position: fixed;
  right: 0;
  top: 42%;
  z-index: 60;
  display: grid;
  justify-items: center;
  gap: 7px;
  width: 48px;
  padding: 10px 6px 11px;
  color: var(--white);
  background: var(--forest);
  border: 0;
  border-radius: 10px 0 0 10px;
  box-shadow: 0 10px 30px rgba(10, 35, 22, .22);
  cursor: pointer;
}
.service-overview-dock__mark {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  color: var(--forest);
  background: #E4B82F;
  border-radius: 7px;
  font: 800 12px/1 var(--font-label);
}
.service-overview-dock > span:nth-child(2) {
  writing-mode: vertical-rl;
  font-size: 12px;
  letter-spacing: .12em;
}
.service-overview-dock i {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: var(--forest);
  background: var(--white);
  border-radius: 50%;
  font: 700 10px/1 var(--font-label);
}

@media (max-width: 980px) {
  .service-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .service-overview-layer { inset: var(--topbar-h) 0 0; padding: 10px; }
  .service-overview-dialog { max-height: calc(100vh - var(--topbar-h) - 20px); border-radius: 10px; }
  .service-overview-head { gap: 14px; padding: 20px 18px 16px; }
  .service-overview-head p { font-size: 13px; }
  .service-overview-actions em { display: none; }
  .service-overview-actions button { width: 36px; justify-content: center; padding: 0; }
  .service-overview-grid { grid-template-columns: 1fr; padding: 10px; }
  .service-overview-grid--page { padding: 0; }
  .service-overview-card__copy p { min-height: 0; }
  .service-overview-foot { padding: 10px 18px; }
  .service-overview-foot > span { display: none; }
  .service-overview-foot .text-button { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .service-overview-dialog { animation: none; }
  .service-overview-card { transition: none; }
}

/* Keep the editorial login composition single-column after the later desktop
   and service-overview overrides above. This block must remain last. */
@media (max-width: 820px) {
  .login-screen {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 56px auto auto;
  }
  .login-header { grid-column: 1; padding-inline: 20px; }
  .login-story {
    grid-column: 1;
    min-height: auto;
    padding: 32px 28px 28px;
  }
  .story-copy h1 { max-width: none; font-size: clamp(28px, 7.7vw, 42px); }
  .trust-note { margin-top: 28px; }
  .login-panel {
    grid-column: 1;
    min-height: auto;
    padding: 16px 28px 40px;
  }
  .login-box { width: 100%; }
}

@media (max-width: 560px) {
  .login-header nav > a:not(.login-header-cta) { display: none; }
  .login-story { padding: 28px 20px 24px; }
  .story-copy h1 { font-size: clamp(28px, 7.7vw, 32px); }
  .trust-note { margin-top: 24px; }
  .login-panel { padding: 12px 20px 32px; }
  .login-box { padding: 22px 20px 24px; }
}
