:root {
  color-scheme: light;
  --forest-950: #12362a;
  --forest-900: #143d2e;
  --forest-800: #16523b;
  --forest-700: #176b4d;
  --forest-600: #23805e;
  --forest-100: #dceadf;
  --forest-050: #eef5ee;
  --sidebar: #0f382b;
  --sidebar-deep: #0a2b21;
  --sidebar-active: #286e52;
  --paper: #f7f3e8;
  --paper-deep: #eee7d7;
  --surface: #fffcf4;
  --surface-strong: #fffef9;
  --ink: #26322d;
  --ink-soft: #4f5c55;
  --muted: #737c75;
  --amber: #d59a34;
  --amber-soft: #f8ebca;
  --red: #c94736;
  --red-soft: #f8e1dc;
  --blue: #4c8fab;
  --blue-soft: #dfedf2;
  --line: rgba(28, 68, 49, .13);
  --line-strong: rgba(28, 68, 49, .22);
  --shadow-1: 0 2px 10px rgba(31, 56, 42, .045);
  --shadow-2: 0 12px 36px rgba(31, 56, 42, .08);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --body: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
  --display: "Songti SC", "STSong", "SimSun", serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body { margin: 0; min-height: 100vh; color: var(--ink); font-family: var(--body); background: radial-gradient(circle at 83% 4%, rgba(204,219,191,.26), transparent 24rem), linear-gradient(rgba(255,255,255,.28), rgba(255,255,255,.28)), var(--paper); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: inherit; }
:focus-visible { outline: 3px solid rgba(23,107,77,.24); outline-offset: 2px; }
.ui-icon { width: 18px; height: 18px; flex: 0 0 auto; }
.official-brand-asset { display: block; flex: 0 0 auto; object-fit: contain; pointer-events: none; user-select: none; }
.brand-wordmark { width: 180px; height: auto; }
.brand-character { width: 520px; height: 520px; object-fit: contain; }
.brand-face { width: 46px; height: 46px; border-radius: 50%; }
.brand-banner { width: 190px; height: 190px; object-fit: contain; }
.brand-import, .brand-quality, .brand-decision { width: 100%; height: 100%; object-fit: contain; }
.boot-screen { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 16px; color: var(--forest-900); }
.boot-mark { width: 60px; height: 60px; animation: boot-breathe 1.8s ease-in-out infinite; }
.boot-screen p { margin: 0; color: var(--muted); font-size: 13px; letter-spacing: .08em; }
@keyframes boot-breathe { 50% { transform: translateY(-4px); } }

/* Login */
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(680px,1.22fr) minmax(452px,.78fr); background: var(--surface); }
.login-story { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; min-height: 100vh; padding: clamp(28px,3.2vw,48px); border-right: 1px solid rgba(17,54,42,.14); background: radial-gradient(circle at 14% 20%,rgba(255,255,255,.95),transparent 34%),linear-gradient(145deg,#fffdf8 0%,#f4eddf 58%,#dfe8d8 100%); }
.login-story::before { content: ""; position: absolute; z-index: -1; left: -7%; right: -7%; bottom: -168px; height: 420px; border-radius: 48% 52% 0 0; background: linear-gradient(128deg,#b9cfae,#e8eddc 47%,#92b18a); opacity: .72; }
.login-story::after { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; right: -190px; top: -190px; border: 1px solid rgba(38,98,70,.12); border-radius: 50%; box-shadow: 0 0 0 52px rgba(255,255,255,.18),0 0 0 104px rgba(38,98,70,.035); }
.login-brand { position: relative; z-index: 3; min-height: 102px; }
.login-brand-lockup { display: grid; justify-items: start; width: max-content; gap: 4px; }
.login-wordmark { width: 226px; height: auto; filter: drop-shadow(0 6px 14px rgba(39,63,49,.05)); }
.login-product { display: flex; align-items: baseline; gap: 10px; padding-left: 62px; margin-top: -4px; }
.login-product strong { display: block; color: var(--forest-900); font-size: 14px; letter-spacing: .08em; }
.login-product span { display: block; color: var(--muted); font-size: 9px; letter-spacing: .04em; }
.login-brand-scene { position: relative; z-index: 2; flex: 1; display: grid; grid-template-columns: minmax(370px,1.1fr) minmax(260px,.9fr); align-items: center; min-height: 560px; margin-top: -14px; }
.login-character { align-self: end; justify-self: start; width: min(43vw,590px); height: min(43vw,590px); margin-left: -22px; margin-bottom: -18px; }
.login-copy { position: relative; z-index: 2; align-self: center; max-width: 370px; margin: -54px 0 0 20px; padding: 28px 26px 30px; border: 1px solid rgba(20,61,46,.12); border-radius: 20px; background: rgba(255,253,247,.78); box-shadow: 0 18px 50px rgba(40,65,49,.08); backdrop-filter: blur(8px); }
.eyebrow { margin: 0 0 10px; color: var(--forest-700); font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.login-copy h1 { margin: 0; color: var(--forest-900); font: 700 clamp(42px,4.1vw,62px)/1.08 var(--display); letter-spacing: -.055em; }
.login-copy h1 em { position: relative; color: var(--forest-700); font-style: normal; }
.login-copy h1 em::after { content: ""; position: absolute; left: 0; right: -18px; bottom: -8px; height: 9px; border-bottom: 2px solid rgba(23,107,77,.58); border-radius: 50%; transform: rotate(-2deg); }
.login-copy > p:last-child { max-width: 330px; margin: 24px 0 0; color: var(--ink-soft); font-size: 13px; line-height: 1.85; }
.login-foot { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 18px; color: var(--ink-soft); font-size: 10px; }
.login-foot span:first-child { color: var(--forest-800); font-weight: 700; }
.login-panel { position: relative; display: grid; place-items: center; padding: clamp(30px,3.8vw,58px); background: linear-gradient(160deg,#f0ede4,#e9eee5); }
.login-card { width: min(100%,452px); padding: clamp(36px,3.4vw,46px); border: 1px solid rgba(17,54,42,.18); border-radius: 18px; background: rgba(255,254,250,.97); box-shadow: 0 24px 68px rgba(20,52,39,.15); }
.login-card-brand { display: flex; align-items: center; gap: 13px; margin-bottom: 30px; }
.login-card-brand .brand-face { width: 52px; height: 52px; box-shadow: 0 0 0 4px var(--forest-050); }
.login-card-brand strong { display: block; color: var(--forest-900); font: 700 24px/1.2 var(--display); }
.login-card-brand span { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.form-stack { display: grid; gap: 17px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field > span { color: var(--ink); font-size: 11px; font-weight: 700; }
.field small { color: var(--muted); font-size: 10px; line-height: 1.5; }
input, select, textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 11px 12px; color: var(--ink); outline: none; background: rgba(255,255,255,.8); transition: border-color .16s,box-shadow .16s,background .16s; }
input:hover, select:hover, textarea:hover { border-color: rgba(23,107,77,.4); }
input:focus, select:focus, textarea:focus { border-color: var(--forest-700); box-shadow: 0 0 0 3px rgba(23,107,77,.1); background: white; }
input:disabled, select:disabled, textarea:disabled { color: var(--muted); background: #f1eee5; }
textarea { min-height: 92px; resize: vertical; line-height: 1.6; }
.login-options { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 10px; }
.login-options label { display: flex; align-items: center; gap: 6px; }
.login-options input { width: auto; }
.primary-button, .ghost-button, .danger-button, .icon-button, .row-action { border-radius: var(--radius-sm); font-weight: 700; transition: transform .14s,filter .14s,border-color .14s,background .14s; }
.primary-button, .ghost-button, .danger-button { min-height: 38px; padding: 10px 16px; border: 1px solid transparent; }
.primary-button { color: white; background: linear-gradient(180deg,#1d7958,#176b4d); box-shadow: 0 6px 16px rgba(23,107,77,.15); }
.primary-button:hover:not(:disabled) { filter: brightness(.96); transform: translateY(-1px); }
.primary-button:disabled { opacity: .48; transform: none; }
.ghost-button { color: var(--forest-800); border-color: var(--line-strong); background: rgba(255,255,255,.58); }
.ghost-button:hover { border-color: rgba(23,107,77,.42); background: var(--forest-050); }
.danger-button { color: white; background: var(--red); }
.icon-button { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; color: var(--forest-900); border: 1px solid var(--line); background: var(--surface); }
.login-submit { margin-top: 5px; min-height: 48px; font-size: 12px; box-shadow: 0 9px 22px rgba(23,107,77,.2); }
.trial-accounts { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 20px; }
.trial-account { padding: 11px; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-sm); background: #faf7ee; text-align: left; }
.trial-account:hover { border-color: rgba(23,107,77,.4); background: var(--forest-050); }
.trial-account strong, .trial-account span { display: block; }
.trial-account strong { font-size: 11px; }
.trial-account span { margin-top: 4px; color: var(--muted); font-size: 9px; }
.form-error { min-height: 18px; margin: 11px 0 0; color: var(--red); font-size: 11px; }
.login-copyright { position: absolute; bottom: 18px; margin: 0; color: #9a9e99; font-size: 9px; }

/* Shell */
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 240px minmax(0,1fr); }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: 240px; display: flex; flex-direction: column; color: #f6f2e8; border-right: 1px solid rgba(255,255,255,.08); background: var(--sidebar); box-shadow: 10px 0 34px rgba(8,38,28,.14); }
.sidebar-head { display: grid; gap: 5px; min-height: 88px; padding: 12px 15px 10px; border-bottom: 1px solid rgba(255,255,255,.09); }
.sidebar-brand-plate { display: grid; place-items: center; height: 49px; padding: 3px 8px; overflow: hidden; border: 1px solid rgba(226,239,225,.17); border-radius: 9px; background: rgba(226,239,225,.34); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.sidebar-head .brand-wordmark { width: 166px; height: auto; filter: brightness(1.18) contrast(1.12); }
.sidebar-head small { display: block; color: rgba(242,239,228,.54); font-size: 8px; font-weight: 700; letter-spacing: .1em; text-align: center; }
.nav-scroll { flex: 1; overflow: auto; padding: 9px 10px 13px; }
.nav-section { margin: 15px 10px 7px; color: rgba(233,237,226,.42); font-size: 8px; font-weight: 800; letter-spacing: .15em; }
.nav-item { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 39px; margin: 2px 0; padding: 8px 10px; color: rgba(247,246,239,.78); border: 1px solid transparent; border-radius: var(--radius-sm); background: transparent; text-align: left; font-size: 12px; }
.nav-item .ui-icon { width: 17px; height: 17px; color: rgba(229,239,229,.68); }
.nav-item:hover { color: white; border-color: rgba(255,255,255,.07); background: rgba(255,255,255,.07); }
.nav-item.active { color: white; border-color: rgba(255,255,255,.08); background: var(--sidebar-active); box-shadow: 0 7px 18px rgba(2,26,17,.22),inset 3px 0 0 #f1bc4e; }
.nav-item.active .ui-icon { color: white; }
.private-nav::after { content: "B"; margin-left: auto; padding: 2px 5px; color: #37290d; border-radius: 999px; background: #f1c25d; font-size: 8px; font-weight: 900; }
.sidebar-foot { padding: 13px 15px 16px; border-top: 1px solid rgba(255,255,255,.09); background: var(--sidebar-deep); }
.entity-context { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.07); border-radius: var(--radius-sm); background: rgba(255,255,255,.055); }
.entity-context span { color: rgba(241,240,232,.5); font-size: 8px; }
.entity-context strong { color: #f8f4e9; font-size: 10px; }
.role-card { display: flex; align-items: center; gap: 9px; }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; color: var(--sidebar-deep); background: #e7e4d5; font: 700 12px/1 var(--display); }
.role-card strong { display: block; font-size: 11px; }
.role-card small { display: block; margin-top: 2px; color: rgba(241,240,232,.52); font-size: 9px; }
.workspace-badge { margin-left: auto; padding: 3px 6px; color: #2d240f; border-radius: 999px; background: #e9bd5c; font-size: 8px; font-weight: 900; }
.logout-link { width: 100%; margin-top: 11px; padding: 7px; color: rgba(242,240,232,.54); border: 1px solid rgba(255,255,255,.09); border-radius: var(--radius-sm); background: transparent; font-size: 9px; }
.logout-link:hover { color: white; background: rgba(255,255,255,.06); }
.sidebar-scrim { display: none; }
.workspace { grid-column: 2; min-width: 0; background: #f5f1e7; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 clamp(20px,3.2vw,42px); border-bottom: 1px solid var(--line); background: rgba(247,243,232,.88); backdrop-filter: blur(14px); }
.topbar-title { display: flex; align-items: center; gap: 10px; }
.topbar-title > div { display: grid; gap: 2px; }
.topbar-title strong { color: var(--forest-800); font-size: 13px; font-weight: 700; }
.topbar-title span { color: var(--muted); font-size: 9px; }
.topbar-meta { display: flex; align-items: center; gap: 8px; }
.demo-chip, .role-chip, .private-area-chip { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 9px; font-size: 8px; font-weight: 800; letter-spacing: .03em; }
.demo-chip { color: #745217; border: 1px solid #ead6a3; background: var(--amber-soft); }
.demo-chip.pilot { color: #eaf6ed; border-color: rgba(220,240,224,.28); background: var(--forest-700); }
.role-chip { color: var(--forest-800); border: 1px solid var(--line); background: var(--surface); }
.private-area-chip { min-height: 30px; color: #745217; border: 1px solid #ead6a3; background: #fff7e4; }
.menu-button { display: none; }

/* Shared */
.page { width: min(100%,1540px); margin: 0 auto; padding: 28px clamp(20px,3.2vw,42px) 64px; animation: page-in .28s ease both; }
@keyframes page-in { from { opacity: 0; transform: translateY(5px); } }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.page-heading h1 { margin: 0; color: var(--forest-950); font: 700 clamp(25px,2.4vw,34px)/1.16 var(--display); letter-spacing: -.035em; }
.page-heading p:not(.eyebrow) { max-width: 760px; margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.workbench-heading { position: relative; display: flex; align-items: flex-end; gap: 22px; margin-bottom: 14px; padding: 16px 18px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: linear-gradient(110deg,rgba(255,254,249,.98),rgba(235,242,232,.84)); box-shadow: var(--shadow-1); }
.workbench-heading::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--forest-600); }
.workbench-heading .page-heading { flex: 1; margin: 0; }
.workbench-heading .page-heading h1 { font-size: clamp(23px,2.1vw,30px); }
.workbench-heading .page-heading p:not(.eyebrow) { margin-top: 5px; font-size: 10px; }
.context-asset { position: relative; align-self: stretch; width: 104px; min-height: 78px; flex: 0 0 auto; overflow: hidden; }
.context-asset img { position: absolute; right: -2px; bottom: -28px; width: 112px; height: 112px; filter: drop-shadow(0 8px 10px rgba(37,64,47,.08)); }
.context-asset-quality img { bottom: -25px; }
.context-asset-decision { width: 118px; }
.context-asset-decision img { width: 124px; height: 124px; }
.page-workbench { padding-top: 22px; }
.page-ceo-report { padding-top: 24px; }
.page-private .workbench-heading { border-color: rgba(213,154,52,.3); background: linear-gradient(110deg,#fffef9,#f7efdc); }
.page-private .workbench-heading::before { background: var(--amber); }
.ledger-strip { display: flex; align-items: center; gap: 9px; margin: -4px 0 8px; padding: 6px 10px; color: var(--muted); border: 1px solid var(--line); border-bottom: 0; border-radius: 8px 8px 0 0; background: rgba(237,241,233,.76); font-size: 8px; }
.ledger-strip span { padding: 3px 6px; color: white; border-radius: 5px; background: var(--forest-800); font-weight: 900; letter-spacing: .06em; }
.ledger-strip strong { color: var(--forest-900); font-size: 9px; }
.ledger-strip small { margin-left: auto; font-size: 8px; }
.heading-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.private-heading { padding: 17px 19px; border: 1px solid #ead6a3; border-radius: var(--radius-md); background: linear-gradient(90deg,#fff9e8,rgba(255,252,244,.4)); }
.quality-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; padding: 10px 13px; color: #70531e; border: 1px solid #ecd9aa; border-radius: var(--radius-sm); background: rgba(248,235,202,.68); font-size: 10px; }
.quality-banner > span:first-child { display: flex; align-items: center; gap: 6px; }
.quality-banner .ui-icon { width: 15px; height: 15px; }
.quality-banner strong { color: #5d4215; }
.panel, .data-panel, .import-preview-card { border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,252,244,.88); box-shadow: var(--shadow-1); overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 53px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 0; color: var(--forest-900); font-size: 13px; }
.panel-head > span, .panel-head > div + span { color: var(--muted); font-size: 9px; }
.panel-kicker { display: block; margin-bottom: 3px; color: var(--muted); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.section-gap { margin-top: 16px; }
.button-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.empty-state { display: grid; justify-items: center; padding: 30px 18px; color: var(--muted); text-align: center; }
.empty-state img { width: 42px; height: 42px; opacity: .8; }
.empty-state h2 { margin: 9px 0 0; color: var(--forest-800); font: 700 14px/1.25 var(--display); }
.empty-state p { max-width: 430px; margin: 6px 0 0; font-size: 10px; line-height: 1.6; }
.empty-state .ghost-button { margin-top: 13px; }
.empty-state.compact { padding: 21px; }
.loading-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.loading-heading img { width: 42px; height: 42px; }
.loading-heading span, .loading-heading small { display: block; }
.loading-heading span { color: var(--forest-900); font-size: 13px; font-weight: 700; }
.loading-heading small { margin-top: 3px; color: var(--muted); font-size: 9px; }

/* Dashboard */
.dashboard-hero { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 178px; margin-bottom: 12px; padding: 20px 28px; overflow: hidden; border: 1px solid rgba(25,76,54,.17); border-radius: var(--radius-lg); background: radial-gradient(circle at 79% 50%,rgba(255,255,255,.92),transparent 24%),linear-gradient(110deg,#fffdf7 0%,#f2f2e5 58%,#dfe9d8 100%); box-shadow: 0 10px 30px rgba(24,58,43,.07); }
.dashboard-hero::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(#1e674b,#e4b342); }
.dashboard-hero::after { content: ""; position: absolute; right: -72px; top: -156px; width: 390px; height: 390px; border: 1px solid rgba(39,102,72,.11); border-radius: 50%; box-shadow: 0 0 0 48px rgba(255,255,255,.18),0 0 0 96px rgba(52,106,76,.035); }
.dashboard-intro { position: relative; z-index: 3; max-width: 760px; }
.dashboard-intro h1 { margin: 0; color: var(--forest-950); font: 700 clamp(31px,3vw,42px)/1.08 var(--display); letter-spacing: -.035em; }
.dashboard-intro .hero-period { margin: 10px 0 0; color: var(--ink-soft); font-size: 11px; font-weight: 700; }
.dashboard-intro .hero-assurance { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.dashboard-intro .heading-actions { margin-top: 13px; }
.hero-brand-scene { position: relative; z-index: 2; align-self: stretch; width: 330px; flex: 0 0 auto; }
.hero-brand-scene .brand-banner { position: absolute; z-index: 2; right: 60px; bottom: -34px; width: 190px; height: 190px; filter: drop-shadow(0 14px 18px rgba(43,63,48,.13)); }
.hero-brand-scene > span { position: absolute; z-index: 3; right: 4px; top: 7px; padding: 7px 10px; color: var(--forest-800); border: 1px solid rgba(25,76,54,.13); border-radius: 999px; background: rgba(255,253,247,.84); font: 700 10px/1.2 var(--display); transform: rotate(-2deg); }
.hero-botanical { position: absolute; z-index: 1; width: 118px; height: 92px; background-image: url('/assets/xiaoman-botanicals.png'); background-size: 720px 480px; background-repeat: no-repeat; opacity: .78; }
.hero-botanical-left { left: 2px; bottom: -17px; background-position: -6px -117px; }
.hero-botanical-right { right: -31px; bottom: -23px; background-position: -586px -118px; transform: scale(.82); }
.metric-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 11px; }
.metric-card { position: relative; min-height: 130px; padding: 16px 17px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,254,250,.96); box-shadow: 0 5px 18px rgba(30,56,42,.055); transition: border-color .16s ease,box-shadow .16s ease; }
.metric-card:hover { border-color: rgba(28,68,49,.2); box-shadow: 0 9px 24px rgba(30,56,42,.085); }
.metric-card::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 3px; background: #bdc6bf; }
.metric-card.verified::before { background: var(--forest-600); }
.metric-card.alert::before { background: var(--red); }
.metric-card.revenue { background: linear-gradient(145deg,#fffef9,#edf4ec); }
.metric-card.pipeline { background: linear-gradient(145deg,#fffef9,#edf3f5); }
.metric-card.profit { background: linear-gradient(145deg,#fffef9,#eef4e9); }
.metric-card.cash { background: linear-gradient(145deg,#fffef9,#faf2dd); }
.metric-card.fulfillment { background: linear-gradient(145deg,#fffef9,#eef3ec); }
.metric-card.risk { background: linear-gradient(145deg,#fffef9,#fbefeb); }
.metric-card.decisions { background: linear-gradient(145deg,#fffef9,#faf1df); }
.metric-card.quality { background: linear-gradient(145deg,#fffef9,#f1f1ed); }
.metric-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.metric-card .label { color: rgba(79,92,85,.75); font-size: 10px; font-weight: 700; }
.metric-icon { display: grid; place-items: center; width: 32px; height: 32px; color: var(--forest-700); border: 1px solid rgba(26,91,62,.09); border-radius: 9px; background: rgba(231,241,230,.9); }
.pipeline .metric-icon { color: #33748d; background: var(--blue-soft); }
.cash .metric-icon,.decisions .metric-icon { color: #9c6c19; background: var(--amber-soft); }
.quality .metric-icon { color: #5f6d66; background: #e8ebe8; }
.metric-card.alert .metric-icon { color: var(--red); background: var(--red-soft); }
.metric-icon .ui-icon { width: 16px; height: 16px; }
.metric-card .value { margin-top: 12px; color: var(--forest-950); font: 700 32px/1 var(--display); letter-spacing: -.04em; }
.metric-card.alert .value { color: var(--red); }
.metric-card .note { margin-top: 8px; color: rgba(79,92,85,.58); font-size: 9px; line-height: 1.5; }
.dashboard-lower { display: grid; grid-template-columns: 1.15fr .85fr; gap: 12px; margin-top: 12px; }
.private-panel { border-color: #eadfc0; }
.risk-list, .decision-list { display: grid; }
.risk-row, .decision-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; min-height: 58px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.risk-row:last-child, .decision-row:last-child { border-bottom: 0; }
.risk-row strong, .risk-row small, .decision-row strong, .decision-row small { display: block; }
.risk-row strong, .decision-row strong { font-size: 10px; }
.risk-row small, .decision-row small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.decision-icon { display: grid; place-items: center; width: 32px; height: 32px; color: #9c6c19; border-radius: var(--radius-sm); background: var(--amber-soft); }
.decision-icon .ui-icon { width: 16px; height: 16px; }

/* Data */
.status-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border: 1px solid transparent; border-radius: 999px; font-size: 8px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-chip.verified, .status-chip.open, .status-chip.active, .status-chip.in_progress { color: #146446; border-color: #c6dfce; background: #e5f1e7; }
.status-chip.pending, .status-chip.paused, .status-chip.blocked, .status-chip.cancelled, .status-chip.lost, .status-chip.imported { color: #84601c; border-color: #ecd8a5; background: #fbefcf; }
.status-chip.conflict { color: #a23a2d; border-color: #efc4bc; background: #fae3df; }
.status-chip.missing, .status-chip.closed, .status-chip.done, .status-chip.won, .status-chip.delivered { color: #5e6863; border-color: #d9dedb; background: #eef0ee; }
.severity { display: inline-grid; place-items: center; min-width: 31px; height: 28px; padding: 0 7px; border-radius: 7px; font-size: 9px; font-weight: 900; }
.severity.s0 { color: #5a5fc0; background: #e6e7fb; }
.severity.s1 { color: #22647d; background: var(--blue-soft); }
.severity.s2 { color: #795417; background: #f5d891; }
.severity.s3 { color: white; background: var(--red); }
.table-tools { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 48px; padding: 7px 11px; border-bottom: 1px solid var(--line); background: rgba(250,249,244,.72); }
.search-box { position: relative; width: min(340px,100%); }
.search-box .ui-icon { position: absolute; z-index: 1; left: 11px; top: 10px; width: 15px; height: 15px; color: var(--muted); }
.search-box input { padding: 9px 11px 9px 34px; background: #fbfaf5; }
.record-count { color: var(--muted); font-size: 9px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 10px; }
th { padding: 9px 11px; color: #53625a; border-bottom: 1px solid var(--line-strong); background: #eef1e9; font-size: 8px; font-weight: 800; letter-spacing: .03em; text-align: left; white-space: nowrap; }
td { max-width: 320px; padding: 9px 11px; border-top: 1px solid var(--line); line-height: 1.45; vertical-align: middle; }
tbody tr { transition: background .14s; }
tbody tr:hover { background: rgba(223,235,218,.32); }
.cell-primary { color: var(--forest-900); font-weight: 700; }
.cell-muted { color: var(--muted); }
.row-actions { display: flex; gap: 5px; }
.row-action { min-height: 27px; padding: 5px 8px; color: var(--forest-800); border: 1px solid var(--line); background: var(--surface); font-size: 8px; white-space: nowrap; }
.row-action:hover { border-color: rgba(23,107,77,.5); background: var(--forest-050); }
.row-action.danger { color: var(--red); border-color: #efc4bc; }
.private-data-panel { border-color: #eadfc0; }
.page-risk .workbench-heading { margin-bottom: 10px; }
.page-risk .ledger-strip { margin-top: 0; border-bottom: 1px solid var(--line); border-radius: var(--radius-sm); }
.page-risk .table-tools { min-height: 45px; background: linear-gradient(90deg,#f4f5ee,#f9f7ef); }
.page-risk .search-box { width: min(410px,100%); }
.page-risk th { color: #45554c; background: #e8ede5; }
.page-risk td { padding-block: 8px; }
.page-risk .cell-risk-id { width: 132px; font-variant-numeric: tabular-nums; }
.page-risk .cell-target-close-date, .page-risk .cell-owner-id { white-space: nowrap; font-variant-numeric: tabular-nums; }
.page-risk .cell-data-quality-status, .page-risk .cell-status, .page-risk .cell-severity { text-align: center; }
.page-risk tbody .empty-state { min-height: 170px; padding: 24px 18px; }

/* Imports + quality */
.import-guide { display: grid; grid-template-columns: repeat(5,1fr); gap: 8px; margin-bottom: 12px; }
.import-guide article { position: relative; min-height: 94px; padding: 12px 13px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,252,244,.84); }
.import-guide article > span { color: var(--amber); font: 800 9px/1 var(--display); }
.import-guide article > .ui-icon { position: absolute; top: 13px; right: 13px; width: 18px; height: 18px; color: var(--forest-600); }
.import-guide strong { display: block; margin-top: 9px; color: var(--forest-900); font-size: 11px; }
.import-guide p { margin: 6px 0 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.upload-panel { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,252,244,.9); box-shadow: var(--shadow-1); }
.upload-zone { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 14px; color: var(--ink); border: 1px dashed rgba(23,107,77,.4); border-radius: var(--radius-sm); background: var(--forest-050); text-align: left; }
.upload-zone:hover { border-color: var(--forest-700); background: #e5f0e4; }
.upload-zone strong, .upload-zone small { grid-column: 2; }
.upload-zone strong { font-size: 11px; }
.upload-zone small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.upload-mark { grid-row: 1 / 3; display: grid; place-items: center; width: 38px; height: 38px; color: white; border-radius: var(--radius-sm); background: var(--forest-700); }
.upload-mark .ui-icon { width: 18px; height: 18px; }
.upload-status { max-width: 250px; color: var(--muted); font-size: 9px; line-height: 1.6; }
.import-preview-card { margin-top: 14px; }
.preview-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px; }
.preview-summary h2 { margin: 0; color: var(--forest-900); font-size: 16px; }
.preview-summary p { margin: 5px 0 0; color: var(--muted); font-size: 9px; }
.preview-score { min-width: 78px; padding: 10px; border-radius: var(--radius-sm); text-align: center; }
.preview-score.ready { color: #146446; background: #e5f1e7; }
.preview-score.blocked { color: #a23a2d; background: #fae3df; }
.preview-score strong, .preview-score span { display: block; }
.preview-score strong { font: 700 21px/1 var(--display); }
.preview-score span { margin-top: 4px; font-size: 8px; }
.import-counts { display: grid; grid-template-columns: repeat(5,1fr); border-block: 1px solid var(--line); }
.import-counts div { padding: 10px 13px; border-right: 1px solid var(--line); }
.import-counts div:last-child { border-right: 0; }
.import-counts span, .import-counts strong { display: block; }
.import-counts span { color: var(--muted); font-size: 8px; }
.import-counts strong { margin-top: 4px; color: var(--forest-900); font: 700 15px/1 var(--display); }
.import-rules { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 10px 15px; color: var(--muted); background: #f6f3e9; font-size: 8px; }
.import-rules strong { color: var(--forest-900); }
.import-rules span::before { content: "✓"; margin-right: 4px; color: var(--forest-600); font-weight: 900; }
.import-issues { max-height: 330px; overflow: auto; }
.preview-table-head { display: flex; justify-content: space-between; padding: 11px 14px; border-top: 1px solid var(--line); }
.preview-table-head strong { color: var(--forest-900); font-size: 10px; }
.preview-table-head span { color: var(--muted); font-size: 8px; }
.preview-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 15px; border-top: 1px solid var(--line); }
.preview-actions > span { color: var(--muted); font-size: 8px; }
.batch-list { display: grid; }
.batch-row { display: grid; grid-template-columns: minmax(0,1fr) auto 105px; align-items: center; gap: 12px; padding: 11px 14px; border-top: 1px solid var(--line); }
.batch-row:first-child { border-top: 0; }
.batch-row strong, .batch-row small { display: block; }
.batch-row strong { font-size: 10px; }
.batch-row small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.batch-row > .cell-muted { max-width: 105px; color: var(--muted); font-size: 8px; line-height: 1.35; overflow-wrap: anywhere; }
.verify-boundary { padding: 13px; color: var(--muted); border: 1px solid #ecd9aa; border-radius: var(--radius-sm); background: rgba(248,235,202,.6); }
.verify-boundary strong { color: var(--forest-900); font-size: 10px; }
.verify-boundary p { margin: 6px 0 0; font-size: 9px; line-height: 1.6; }
.quality-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 9px; margin-bottom: 14px; }
.quality-card { display: flex; align-items: center; justify-content: space-between; min-height: 72px; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,252,244,.9); }
.quality-card > div > span:last-child { display: block; margin-top: 7px; color: var(--muted); font-size: 8px; }
.quality-card > strong { color: var(--forest-900); font: 700 25px/1 var(--display); }
.quality-pending { border-color: #ecd9aa; }
.quality-conflict { border-color: #efc4bc; }
.issue-list { display: grid; }
.issue-row { display: grid; grid-template-columns: 82px 92px 1fr 100px; gap: 10px; align-items: center; padding: 11px 14px; border-top: 1px solid var(--line); font-size: 9px; }
.issue-row:first-child { border-top: 0; }
    .issue-rule { color: var(--red); font-weight: 900; }

    /* V1.3 automatic discovery — keeps the frozen professional workbench language */
    .scanner-overview { margin-bottom: 14px; overflow: hidden; border: 1px solid rgba(23,107,77,.25); border-radius: var(--radius-md); background: linear-gradient(120deg,#edf4ea 0%,#fffaf0 72%); box-shadow: var(--shadow-1); }
    .scanner-overview.scanner-alert { border-color: rgba(184,69,51,.45); }
    .scanner-overview-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 16px 11px; border-bottom: 1px solid rgba(28,68,49,.13); }
    .scanner-overview-head h2 { margin: 3px 0 0; color: var(--forest-950); font-size: 16px; }
    .scanner-health { display: grid; grid-template-columns: 9px auto; align-items: center; gap: 2px 7px; min-width: 145px; padding: 9px 11px; border: 1px solid rgba(23,107,77,.2); border-radius: 10px; background: rgba(255,255,255,.65); }
    .scanner-health-dot { grid-row: 1 / span 2; width: 9px; height: 9px; border-radius: 50%; background: #2e9167; box-shadow: 0 0 0 4px rgba(46,145,103,.12); }
    .scanner-alert .scanner-health-dot { background: var(--red); box-shadow: 0 0 0 4px rgba(184,69,51,.12); }
    .scanner-health strong { color: var(--forest-900); font-size: 10px; }
    .scanner-health small { color: var(--muted); font-size: 7px; }
    .scanner-metric-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
    .scanner-metric-grid article { min-height: 72px; padding: 11px 14px; border-right: 1px solid rgba(28,68,49,.12); border-bottom: 1px solid rgba(28,68,49,.12); }
    .scanner-metric-grid article:nth-child(4n) { border-right: 0; }
    .scanner-metric-grid article:nth-last-child(-n+4) { border-bottom: 0; }
    .scanner-metric-grid span, .scanner-metric-grid strong, .scanner-metric-grid small { display: block; }
    .scanner-metric-grid span { color: var(--muted); font-size: 8px; }
    .scanner-metric-grid strong { margin-top: 7px; color: var(--forest-950); font: 700 18px/1.1 var(--display); }
    .scanner-metric-grid small { margin-top: 5px; color: var(--forest-600); font-size: 7px; }
    .scanner-boundary { margin: 0; padding: 9px 14px; color: #6f694f; border-top: 1px solid rgba(208,165,76,.2); background: rgba(248,235,202,.44); font-size: 8px; }
    .local-dropbox-panel { margin-bottom: 14px; overflow: hidden; }
    .local-dropbox-intro { display: flex; align-items: baseline; gap: 12px; padding: 11px 14px; color: var(--forest-900); border-bottom: 1px solid var(--line); background: linear-gradient(90deg,#eef5eb,#fffaf0); }
    .local-dropbox-intro strong { white-space: nowrap; font-size: 10px; }
    .local-dropbox-intro p { margin: 0; color: var(--muted); font-size: 8px; line-height: 1.55; }
    .local-dropbox-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; padding: 12px; }
    .local-dropbox-card { min-width: 0; padding: 13px; border: 1px solid var(--line); border-top: 3px solid var(--forest-600); border-radius: var(--radius-sm); background: #fffdf7; }
    .local-dropbox-card.policy-restricted { border-top-color: var(--amber); }
    .local-dropbox-card.policy-ceo_only { border-top-color: var(--forest-950); }
    .local-dropbox-card header { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
    .local-dropbox-card small { color: var(--forest-600); font-size: 7px; font-weight: 900; letter-spacing: .06em; }
    .local-dropbox-card h3 { margin: 4px 0 0; color: var(--forest-950); font-size: 14px; }
    .local-dropbox-card > p { min-height: 32px; margin: 8px 0 10px; color: var(--muted); font-size: 8px; line-height: 1.55; }
    .dropbox-state { padding: 4px 7px; color: var(--forest-700); border-radius: 99px; background: var(--forest-050); font-size: 7px; font-weight: 900; }
    .local-dropbox-card dl { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 0 0 10px; border: 1px solid var(--line); border-radius: 8px; }
    .local-dropbox-card dl div { min-width: 0; padding: 7px; border-right: 1px solid var(--line); }
    .local-dropbox-card dl div:last-child { border-right: 0; }
    .local-dropbox-card dt { color: var(--muted); font-size: 7px; }
    .local-dropbox-card dd { margin: 4px 0 0; overflow-wrap: anywhere; color: var(--forest-900); font-size: 8px; font-weight: 800; }
    .dropbox-directory-actions { display: flex; flex-wrap: wrap; gap: 6px; }
    .dropbox-directory-actions .row-action { font-size: 7px; }
    .local-dropbox-empty { grid-column: 1/-1; display: grid; gap: 4px; place-items: center; min-height: 92px; color: var(--muted); }
    .local-dropbox-empty strong { color: var(--forest-900); font-size: 11px; }
    .local-dropbox-empty span { font-size: 8px; }
    .dropbox-remediation { margin: 0 12px 12px; padding: 10px 12px; color: #7b432f; border: 1px solid #efc4bc; border-radius: var(--radius-sm); background: #fff3ef; }
    .dropbox-remediation strong { font-size: 8px; }
    .dropbox-remediation p { margin: 4px 0 0; font-size: 8px; }

    /* V1.2 controlled AI intake — extends the frozen workbench language */
    .intake-stage-flow { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin: 0 0 14px; }
    .intake-stage { position: relative; display: grid; grid-template-columns: 29px 1fr; align-items: center; gap: 9px; min-height: 58px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255,252,244,.82); }
    .intake-stage::after { content: ""; position: absolute; top: 50%; right: -9px; z-index: 1; width: 9px; border-top: 1px solid #b9cabf; }
    .intake-stage:last-child::after { display: none; }
    .intake-stage > span { display: grid; place-items: center; width: 29px; height: 29px; color: var(--forest-700); border-radius: 50%; background: var(--forest-050); font-size: 8px; font-weight: 900; }
    .intake-stage strong, .intake-stage small { display: block; }
    .intake-stage strong { color: var(--forest-900); font-size: 10px; }
    .intake-stage small { margin-top: 3px; color: var(--muted); font-size: 8px; }
    .intake-stage.active { border-color: rgba(23,107,77,.42); background: #edf4ea; box-shadow: inset 3px 0 var(--forest-700); }
    .intake-stage.active > span { color: white; background: var(--forest-700); }
    .intake-entry-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin-bottom: 14px; }
    .intake-entry-card { display: grid; grid-template-columns: 40px 1fr; gap: 11px; min-height: 142px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,252,244,.9); box-shadow: var(--shadow-1); }
    .intake-entry-card.primary { border-color: rgba(23,107,77,.34); background: linear-gradient(145deg,#eef5eb,#fffaf0); }
    .intake-entry-card > span { display: grid; place-items: center; width: 40px; height: 40px; color: white; border-radius: 12px; background: var(--forest-700); }
    .intake-entry-card .ui-icon { width: 19px; height: 19px; }
    .intake-entry-card small { color: var(--forest-600); font-size: 7px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
    .intake-entry-card h2 { margin: 4px 0 0; color: var(--forest-950); font-size: 14px; }
    .intake-entry-card p { margin: 7px 0 0; color: var(--muted); font-size: 9px; line-height: 1.6; }
    .intake-entry-card > button { grid-column: 2; justify-self: start; align-self: end; }
    .manual-entry-panel[hidden] { display: none; }
    .manual-entry-panel, .mapping-rule-panel { margin-bottom: 14px; overflow: hidden; }
    .manual-entry-form { display: grid; grid-template-columns: minmax(0,1fr) 230px; gap: 12px; padding: 14px; border-bottom: 1px solid var(--line); background: linear-gradient(105deg,#f0f5ed,#fffaf0); }
    .manual-entry-form > label, .manual-entry-form > div, .manual-entry-form > div > label { display: grid; gap: 7px; }
    .manual-entry-form label > span { color: var(--forest-900); font-size: 9px; font-weight: 800; }
    .manual-entry-form > div { align-content: start; }
    .manual-entry-textarea { min-height: 136px; padding: 14px; background: rgba(255,255,255,.9); font-size: 12px; line-height: 1.75; }
    .manual-preview-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 14px 14px 8px; }
    .manual-preview-head h3 { margin: 3px 0 0; color: var(--forest-950); font-size: 15px; }
    .manual-preview-head > span { color: var(--muted); font-size: 9px; }
    .manual-preview-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; padding: 0 14px 14px; }
    .manual-preview-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fffdf7; }
    .manual-preview-card header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #f5f7f1; }
    .manual-preview-card h3 { margin: 2px 0 0; color: var(--forest-900); font-size: 12px; }
    .manual-preview-card header small { color: var(--forest-600); font-size: 7px; font-weight: 900; }
    .manual-preview-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
    .manual-preview-fields > div { min-width: 0; padding: 9px 11px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
    .manual-preview-fields span, .manual-preview-fields strong, .manual-preview-fields small { display: block; overflow-wrap: anywhere; }
    .manual-preview-fields span { color: var(--muted); font-size: 7px; }
    .manual-preview-fields strong { margin-top: 4px; color: var(--ink); font-size: 9px; }
    .manual-preview-fields small { margin-top: 4px; color: var(--forest-600); font-size: 7px; }
    .manual-preview-card footer { padding: 8px 11px; color: var(--muted); font-size: 7px; }
    .manual-preview-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 14px; border-top: 1px solid var(--line); background: #faf8ef; }
    .manual-preview-actions p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
    .mapping-rule-save { display: grid; grid-template-columns: 1fr minmax(240px,.8fr) auto; align-items: end; gap: 12px; padding: 12px 14px; border-bottom: 1px solid #e6d39f; background: #fff8e5; }
    .mapping-rule-save strong, .mapping-rule-save small { display: block; }
    .mapping-rule-save strong { color: #76551c; font-size: 10px; }
    .mapping-rule-save small { margin-top: 4px; color: var(--muted); font-size: 8px; }
    .mapping-rule-save label { display: grid; gap: 5px; }
    .mapping-rule-save label span { color: var(--muted); font-size: 8px; font-weight: 800; }
    .mapping-rule-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; padding: 12px; }
    .mapping-rule-card { min-width: 0; padding: 12px; border: 1px solid var(--line); border-left: 3px solid var(--forest-600); border-radius: var(--radius-sm); background: #fbfaf4; }
    .mapping-rule-card.drifted { border-left-color: var(--red); background: #fff8f6; }
    .mapping-rule-card > div:first-child span, .mapping-rule-card > div:first-child small { color: var(--muted); font-size: 7px; }
    .mapping-rule-card h3 { margin: 4px 0; color: var(--forest-900); font-size: 11px; }
    .mapping-rule-status { display: flex; align-items: center; justify-content: space-between; margin: 9px 0; }
    .mapping-rule-status strong { color: var(--forest-700); font-size: 10px; }
    .mapping-rule-card dl { display: grid; grid-template-columns: repeat(3,1fr); margin: 0; border: 1px solid var(--line); border-radius: 6px; }
    .mapping-rule-card dl > div { padding: 7px; border-right: 1px solid var(--line); }
    .mapping-rule-card dl > div:last-child { border-right: 0; }
    .mapping-rule-card dt { color: var(--muted); font-size: 7px; }
    .mapping-rule-card dd { margin: 3px 0 0; color: var(--ink); font-size: 9px; }
    .mapping-rule-card p { margin: 9px 0 0; color: var(--muted); font-size: 8px; line-height: 1.5; }
    .intake-upload-backdrop[hidden] { display: none; }
    .intake-source-panel { margin-top: 0; }
    .material-overview { overflow: hidden; }
    .material-metric-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); border-bottom: 1px solid var(--line); background: linear-gradient(120deg,rgba(237,244,235,.78),rgba(255,250,240,.82)); }
    .material-metric-grid article { min-height: 66px; padding: 10px 12px; border-right: 1px solid rgba(28,68,49,.11); border-bottom: 1px solid rgba(28,68,49,.08); }
    .material-metric-grid article:nth-child(6n) { border-right: 0; }
    .material-metric-grid span, .material-metric-grid strong, .material-metric-grid small { display: block; }
    .material-metric-grid span { color: var(--muted); font-size: 7px; font-weight: 800; letter-spacing: .03em; }
    .material-metric-grid strong { margin-top: 5px; color: var(--forest-950); font: 750 19px/1 var(--display); }
    .material-metric-grid small { margin-top: 4px; color: var(--forest-600); font-size: 7px; }
    .material-toolbar { display: flex; gap: 6px; align-items: center; overflow-x: auto; padding: 10px 12px; border-bottom: 1px solid var(--line); background: rgba(255,252,244,.72); }
    .material-filter { flex: 0 0 auto; padding: 6px 9px; color: var(--forest-700); border: 1px solid rgba(23,107,77,.2); border-radius: 999px; background: transparent; font-size: 8px; font-weight: 800; cursor: pointer; }
    .material-filter strong { margin-left: 4px; }
    .material-filter.active { color: white; border-color: var(--forest-700); background: var(--forest-700); }
    .material-table-wrap { max-height: 520px; overflow: auto; }
    .material-table { min-width: 1420px; }
    .material-table thead { position: sticky; top: 0; z-index: 2; }
    .material-table th, .material-table td { padding: 8px 10px; vertical-align: middle; }
    .material-file-name { min-width: 235px; max-width: 330px; white-space: normal; }
    .material-directory { min-width: 230px; max-width: 330px; color: var(--muted); font-size: 8px; white-space: normal; word-break: break-word; }
    .source-channel { display: inline-flex; align-items: center; padding: 3px 7px; border-radius: 999px; font-size: 7px; font-weight: 900; white-space: nowrap; }
    .source-channel.auto { color: #176b4d; background: #e4f2e9; }
    .source-channel.manual { color: #885c13; background: #fff0c9; }
    .hash-cell { max-width: 260px; color: #5d6c63; font-family: ui-monospace,SFMono-Regular,Menlo,monospace; font-size: 8px; overflow-wrap: anywhere; }
    .source-proof-grid { display: grid; grid-template-columns: 1.1fr .6fr .8fr 1.7fr; margin-bottom: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255,252,244,.9); }
    .source-proof-grid article { min-width: 0; padding: 12px 14px; border-right: 1px solid var(--line); }
    .source-proof-grid article:last-child { border-right: 0; }
    .source-proof-grid span, .source-proof-grid strong { display: block; }
    .source-proof-grid span { color: var(--muted); font-size: 8px; }
    .source-proof-grid strong { margin-top: 5px; color: var(--forest-900); font-size: 10px; overflow-wrap: anywhere; }
    .candidate-card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; padding: 12px; }
    .candidate-summary { padding: 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fbfaf4; }
    .candidate-summary > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
    .candidate-summary > div > small { color: var(--forest-600); font-weight: 900; }
    .candidate-summary h3 { margin: 11px 0 0; color: var(--forest-900); font-size: 11px; }
    .candidate-summary p { margin: 6px 0 11px; color: var(--muted); font-size: 8px; }
    .review-filter-grid { display: grid; grid-template-columns: repeat(4,minmax(120px,1fr)); gap: 8px 10px; padding: 13px 14px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg,#f2f5ef,#faf8ef); }
    .review-workbench .data-panel { overflow: hidden; border-color: rgba(28,68,49,.18); }
    .review-filter-grid label { display: grid; gap: 5px; }
    .review-filter-grid label > span { color: var(--muted); font-size: 8px; font-weight: 800; }
    .review-filter-grid select, .review-filter-grid input { width: 100%; min-height: 31px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.82); font-size: 9px; }
    .review-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 43px; padding: 8px 14px; border-bottom: 1px solid var(--line); }
    .review-toolbar strong { color: var(--forest-900); font: 700 17px/1 var(--display); }
    .review-toolbar span, .review-toolbar p { color: var(--muted); font-size: 8px; }
    .review-toolbar p { margin: 0; }
    .candidate-table td { vertical-align: middle; }
    .candidate-table td strong, .candidate-table td small { display: block; }
    .candidate-table td small { margin-top: 3px; color: var(--muted); font-size: 7px; }
    .pending-boundary-banner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; margin-top: 13px; padding: 12px 14px; border: 1px solid #e8d49d; border-radius: var(--radius-sm); background: #fff8e5; }
    .pending-boundary-banner strong { color: #76551c; font-size: 10px; }
    .pending-boundary-banner span { color: var(--muted); font-size: 9px; }
    .evidence-drawer { width: min(760px,98vw); }
    .evidence-source-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: #faf8ef; }
    .evidence-source-card span, .evidence-source-card strong, .evidence-source-card small { display: block; }
    .evidence-source-card span { color: var(--muted); font-size: 8px; }
    .evidence-source-card strong { margin-top: 3px; color: var(--forest-900); font-size: 12px; }
    .evidence-source-card small { margin-top: 4px; color: var(--muted); font-size: 8px; }
    .evidence-integrity { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 10px; padding: 11px 18px; border-bottom: 1px solid var(--line); }
    .evidence-integrity > span { min-width: 0; color: var(--muted); font-family: ui-monospace,SFMono-Regular,Menlo,monospace; font-size: 8px; overflow-wrap: anywhere; }
    .evidence-integrity strong { display: block; margin-bottom: 4px; color: var(--forest-700); font-family: var(--sans); font-size: 7px; text-transform: uppercase; }
    .evidence-field-list { display: grid; gap: 9px; padding: 14px 18px 105px; }
    .evidence-field { padding: 12px; border: 1px solid var(--line); border-left: 3px solid #a8bead; border-radius: var(--radius-sm); background: #fffdf7; }
    .evidence-field.conflict { border-left-color: #c95545; background: #fff8f6; }
    .evidence-field.missing { border-left-color: #d29b2d; background: #fffbf1; }
    .evidence-field header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
    .evidence-field header span, .evidence-field header strong { display: block; }
    .evidence-field header span { color: var(--muted); font-size: 7px; }
    .evidence-field header strong { margin-top: 3px; color: var(--forest-900); font-family: ui-monospace,SFMono-Regular,Menlo,monospace; font-size: 10px; }
    .evidence-field dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; margin: 0 0 10px; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
    .evidence-field dl > div { min-width: 0; padding: 8px 9px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
    .evidence-field dt { color: var(--muted); font-size: 7px; }
    .evidence-field dd { margin: 4px 0 0; color: var(--ink-soft); font-size: 9px; line-height: 1.45; overflow-wrap: anywhere; }
    .conflict-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 14px 18px 0; padding: 12px; border: 1px solid #efc4bc; border-radius: var(--radius-sm); background: #fff4f2; }
    .conflict-compare > div { padding: 9px; background: rgba(255,255,255,.72); }
    .conflict-compare span, .conflict-compare strong, .conflict-compare small { display: block; }
    .conflict-compare span { color: var(--red); font-size: 8px; font-weight: 800; }
    .conflict-compare strong { margin-top: 5px; color: var(--ink); font-size: 11px; }
    .conflict-compare small { margin-top: 4px; color: var(--muted); font-size: 7px; overflow-wrap: anywhere; }
    .conflict-compare p { grid-column: 1 / -1; margin: 0; color: var(--red); font-size: 8px; }
    .duplicate-review { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; margin: 12px 18px 0; padding: 11px 12px; border: 1px solid #e8d49d; border-radius: var(--radius-sm); background: #fff9e9; }
    .duplicate-review strong, .duplicate-review span { display: block; }
    .duplicate-review strong { color: #76551c; font-size: 9px; }
    .duplicate-review span { margin-top: 4px; color: var(--muted); font-size: 8px; }
    .duplicate-review > div:last-child { display: flex; gap: 6px; }
    .duplicate-review input { width: 130px; min-height: 29px; padding: 5px 7px; border: 1px solid var(--line); border-radius: 6px; font-size: 8px; }
    .review-audit-chain { margin: 12px 18px 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #f8faf5; }
    .review-audit-chain .panel-head { min-height: 48px; }
    .review-audit-chain h3 { margin: 0; color: var(--forest-900); font-size: 11px; }
    .review-audit-row { display: grid; grid-template-columns: 84px 1fr 1.25fr 120px; gap: 9px; align-items: center; padding: 9px 12px; border-top: 1px solid var(--line); }
    .review-audit-row > span { color: var(--forest-700); font-size: 8px; font-weight: 900; }
    .review-audit-row strong, .review-audit-row small { display: block; }
    .review-audit-row strong { color: var(--ink); font-size: 8px; }
    .review-audit-row small { margin-top: 3px; color: var(--muted); font-size: 7px; overflow-wrap: anywhere; }
    .review-audit-row code { color: #53645a; font-size: 7px; overflow-wrap: anywhere; }
    .evidence-actions { position: fixed; right: 0; bottom: 0; width: min(760px,98vw); display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); background: rgba(255,252,244,.96); backdrop-filter: blur(12px); }
    .evidence-actions > div { margin-right: auto; }
    .evidence-actions strong, .evidence-actions span { display: block; }
    .evidence-actions strong { color: var(--forest-900); font-size: 9px; }
    .evidence-actions span { margin-top: 3px; color: var(--muted); font-size: 7px; }

/* Weekly + reviews */
.weekly-layout { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(265px,.45fr); gap: 13px; }
.page-weekly .page-heading { margin-bottom: 14px; }
.page-weekly .quality-banner { margin-bottom: 12px; }
.weekly-document { padding: clamp(22px,3vw,38px); }
.report-cover { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 23px; }
.report-cover .brand-wordmark { width: 112px; height: auto; }
.report-kicker { color: var(--amber); font-size: 9px; font-weight: 900; letter-spacing: .13em; }
.weekly-document h2 { margin: 7px 0 0; color: var(--forest-950); font: 700 27px/1.2 var(--display); }
.report-cover p { margin: 8px 0 0; color: var(--muted); font-size: 9px; }
.report-section { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.section-number { color: #b7b6ac; font: 700 11px/1 var(--display); }
.report-section h3 { margin: 0 0 10px; color: var(--forest-900); font-size: 12px; }
.report-section ul { margin: 0; padding-left: 17px; color: var(--ink-soft); font-size: 10px; line-height: 1.85; }
.report-aside { align-self: start; padding: 16px; }
.aside-brand { display: flex; align-items: center; gap: 9px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.aside-brand .brand-wordmark { width: 82px; height: auto; }
.report-aside h3 { margin: 0; color: var(--forest-900); font-size: 12px; }
.aside-brand span { display: block; margin-top: 3px; color: var(--forest-600); font-size: 7px; font-weight: 800; }
.mini-metric { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 9px; }
.mini-metric strong { color: var(--forest-900); }
.weekly-quality-link { width: 100%; margin-top: 14px; }
.decision-heading { margin-bottom: 15px; }
.review-list { display: grid; gap: 14px; }
.review-learning-layout { display: grid; grid-template-columns: minmax(0,2fr) minmax(260px,1fr); overflow: hidden; border: 1px solid #e4d6b1; border-radius: var(--radius-lg); background: rgba(255,253,247,.96); box-shadow: var(--shadow-1); }
.review-main { min-width: 0; padding: 24px 26px 28px; }
.review-document-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.review-document-head h2 { margin: 0 0 6px; color: var(--forest-950); font: 700 22px/1.25 var(--display); }
.review-id { color: var(--muted); font-size: 10px; }
.review-head-status { display: grid; justify-items: end; gap: 7px; flex: 0 0 auto; }
.review-head-status small { color: var(--muted); font-size: 9px; }
.review-chain { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
.review-chain-block { padding: 17px 0; border-bottom: 1px solid var(--line); }
.review-chain-block:nth-last-child(-n+2) { border-bottom: 0; }
.review-chain-block > span, .review-aside-section > span { display: block; margin-bottom: 7px; color: var(--forest-700); font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.review-chain-block p { margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.75; }
.review-decision-block, .review-chain-block:has(.review-action-list) { grid-column: 1 / -1; }
.review-decision-block { margin-top: 3px; padding: 16px 18px; border: 1px solid #ead6a3; border-radius: var(--radius-sm); background: #fff8e6; }
.review-conclusion-block p { color: var(--forest-900); font-weight: 700; }
.review-action-list { display: grid; gap: 7px; }
.review-action { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #faf8f1; }
.review-action strong, .review-action small { display: block; }
.review-action strong { color: var(--forest-900); font-size: 11px; }
.review-action small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.review-aside { min-width: 0; padding: 22px 20px; border-left: 1px solid #e4d6b1; background: linear-gradient(165deg,#f5f0df,#fbf8ee); }
.review-aside-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid rgba(103,79,32,.16); }
.review-aside-head span { color: var(--forest-900); font-size: 13px; font-weight: 800; }
.review-aside-head strong { color: #76551c; font-size: 9px; }
.review-meta-list { margin: 0; }
.review-meta-list > div { display: grid; grid-template-columns: 72px 1fr; gap: 10px; padding: 11px 0; border-bottom: 1px solid rgba(103,79,32,.12); }
.review-meta-list dt { color: var(--muted); font-size: 9px; }
.review-meta-list dd { margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; }
.review-state { display: inline-flex; align-items: center; padding: 4px 7px; border: 1px solid var(--line); border-radius: 999px; font-size: 9px; font-weight: 800; }
.review-state.done { color: #146446; border-color: #c6dfce; background: #e5f1e7; }
.review-state.due { color: #a23a2d; border-color: #efc4bc; background: #fae3df; }
.review-state.scheduled { color: #84601c; border-color: #ecd8a5; background: #fbefcf; }
.review-aside-section { padding-top: 16px; }
.review-aside-section ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.review-aside-section li { color: var(--ink-soft); font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.review-aside-section li strong { display: inline-block; min-width: 38px; color: var(--forest-800); }
.review-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.review-tags span { padding: 5px 7px; color: #72531d; border: 1px solid #e5d09a; border-radius: 999px; background: #fff7e2; font-size: 9px; font-weight: 800; }

/* Drawers */
.drawer-backdrop { position: fixed; inset: 0; z-index: 60; display: grid; justify-items: end; background: rgba(17,45,33,.35); backdrop-filter: blur(3px); animation: fade .18s ease; }
@keyframes fade { from { opacity: 0; } }
.drawer { width: min(610px,96vw); height: 100vh; overflow: auto; color: var(--ink); border-left: 4px solid var(--forest-800); background: var(--surface); box-shadow: -20px 0 50px rgba(17,45,33,.18); animation: drawer-in .22s ease; }
@keyframes drawer-in { from { transform: translateX(30px); opacity: .5; } }
.drawer-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; min-height: 68px; padding: 13px 18px; border-bottom: 1px solid var(--line); background: linear-gradient(110deg,rgba(237,244,235,.97),rgba(255,252,244,.96)); backdrop-filter: blur(12px); }
.drawer-head h2 { margin: 0; color: var(--forest-900); font-size: 17px; }
.drawer-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; padding: 17px 18px 90px; }
.drawer-form .field.wide, .verify-boundary.wide { grid-column: 1 / -1; }
.drawer-actions { position: fixed; right: 0; bottom: 0; width: min(610px,96vw); display: flex; justify-content: flex-end; gap: 8px; padding: 13px 20px; border-top: 1px solid var(--line); background: rgba(255,252,244,.95); backdrop-filter: blur(12px); }
.toast-stack { position: fixed; right: 18px; bottom: 18px; z-index: 80; display: grid; gap: 7px; }
.toast { min-width: 250px; max-width: 420px; padding: 11px 13px; color: white; border-radius: var(--radius-sm); background: var(--forest-900); box-shadow: var(--shadow-2); font-size: 10px; animation: toast-in .2s ease; }
.toast.error { background: var(--red); }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }
.skeleton { position: relative; overflow: hidden; min-height: 110px; border-radius: var(--radius-md); background: rgba(23,107,77,.06); }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg,transparent,rgba(255,255,255,.68),transparent); animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

@media (max-width: 1220px) { .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .hero-brand-scene { width: 280px; } .hero-brand-scene .brand-banner { right: 38px; width: 190px; height: 190px; } }
@media (max-width: 1140px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-story { min-height: 680px; padding: 32px; }
  .login-brand-scene { grid-template-columns: minmax(300px,1fr) minmax(260px,.8fr); min-height: 490px; }
  .login-character { width: 430px; height: 430px; }
  .login-copy { margin-left: -24px; }
  .login-copy h1 { font-size: 48px; }
  .login-panel { min-height: 580px; padding: 48px 24px 76px; }
}
@media (max-width: 1120px) { .review-learning-layout { grid-template-columns: 1fr; } .review-aside { border-top: 1px solid #e4d6b1; border-left: 0; } }
    @media (max-width: 1040px) { .dashboard-lower, .weekly-layout { grid-template-columns: 1fr; } .import-guide { grid-template-columns: repeat(2,1fr); } .report-aside { position: static; } }
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .workspace { grid-column: 1; }
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; }
  .app-shell.nav-open .sidebar { transform: translateX(0); }
  .sidebar-scrim { position: fixed; inset: 0; z-index: 25; border: 0; background: rgba(17,45,33,.25); }
  .app-shell.nav-open .sidebar-scrim { display: block; }
  .menu-button { display: inline-grid; }
  .page, .topbar { padding-inline: 18px; }
      .quality-grid { grid-template-columns: 1fr 1fr; }
      .intake-entry-grid { grid-template-columns: 1fr; }
      .review-filter-grid { grid-template-columns: repeat(2,minmax(120px,1fr)); }
      .source-proof-grid { grid-template-columns: 1fr 1fr; }
      .scanner-metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
      .material-metric-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
      .local-dropbox-grid { grid-template-columns: 1fr; }
      .scanner-metric-grid article:nth-child(2n) { border-right: 0; }
  .issue-row { grid-template-columns: 72px 85px 1fr; }
  .issue-row > :last-child { display: none; }
}
@media (max-width: 620px) {
  .login-story { min-height: 680px; padding: 24px; }
  .login-brand { align-items: flex-start; flex-direction: column; gap: 8px; }
  .login-wordmark { width: 190px; height: auto; box-shadow: none; }
  .login-product { padding: 0; border: 0; }
  .login-brand-scene { grid-template-columns: 1fr; align-content: end; min-height: 510px; }
  .login-character { position: absolute; left: -48px; bottom: -22px; width: 330px; height: 330px; opacity: .96; }
  .login-copy { justify-self: end; width: 68%; margin: 0 0 28px; padding: 20px; }
  .login-copy h1 { font-size: 38px; }
  .login-copy > p:last-child { max-width: none; font-size: 11px; }
  .login-foot { display: none; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .heading-actions { width: 100%; flex-wrap: wrap; }
  .dashboard-hero { padding: 20px; }
  .hero-brand-scene { display: none; }
  .metric-grid, .quality-grid { grid-template-columns: 1fr; }
  .review-main, .review-aside { padding: 18px; }
  .review-document-head { flex-direction: column; gap: 12px; }
  .review-head-status { justify-items: start; }
  .review-chain { grid-template-columns: 1fr; }
  .review-decision-block, .review-chain-block:has(.review-action-list) { grid-column: auto; }
  .trial-accounts, .drawer-form { grid-template-columns: 1fr; }
  .drawer-form .field.wide, .verify-boundary.wide { grid-column: auto; }
  .quality-banner, .preview-actions { align-items: flex-start; flex-direction: column; }
  .scanner-overview-head { align-items: flex-start; flex-direction: column; }
  .scanner-health { width: 100%; }
  .local-dropbox-intro { align-items: flex-start; flex-direction: column; }
  .local-dropbox-card dl { grid-template-columns: 1fr; }
  .local-dropbox-card dl div { border-right: 0; border-bottom: 1px solid var(--line); }
  .local-dropbox-card dl div:last-child { border-bottom: 0; }
  .scanner-metric-grid { grid-template-columns: 1fr; }
  .material-metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .scanner-metric-grid article { border-right: 0; }
  .import-guide { grid-template-columns: 1fr; }
  .upload-panel { grid-template-columns: 1fr; }
      .import-counts { grid-template-columns: repeat(2,1fr); }
      .intake-stage-flow, .candidate-card-grid { grid-template-columns: 1fr; }
      .intake-stage::after { display: none; }
      .review-filter-grid, .evidence-field dl { grid-template-columns: 1fr; }
      .pending-boundary-banner, .conflict-compare, .duplicate-review { grid-template-columns: 1fr; }
      .evidence-integrity { grid-template-columns: 1fr; }
      .evidence-actions { flex-wrap: wrap; }
      .evidence-actions > div { width: 100%; }
  .batch-row { grid-template-columns: 1fr auto; }
  .batch-row > :last-child { grid-column: 1 / -1; }
  .topbar-title span, .role-chip { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
