:root {
  color-scheme: light;
  --ink: #15201b;
  --ink-soft: #33413a;
  --muted: #6d7872;
  --quiet: #94a09a;
  --paper: #f3f5f1;
  --surface: #ffffff;
  --surface-soft: #f8faf7;
  --line: #dfe5df;
  --line-strong: #cbd5ce;
  --green-950: #10251d;
  --green-900: #153329;
  --green-800: #1b4837;
  --green-700: #206347;
  --green-600: #2b7a57;
  --green-100: #dff0e7;
  --green-050: #edf7f1;
  --blue: #356b9d;
  --blue-soft: #e7f0f8;
  --amber: #b86420;
  --amber-soft: #fbebd8;
  --red: #b43f38;
  --red-soft: #fae9e6;
  --purple: #7055a5;
  --purple-soft: #eee9f8;
  --shadow: 0 16px 46px rgba(24, 44, 35, .08);
  --shadow-soft: 0 8px 24px rgba(24, 44, 35, .055);
  --sidebar: 244px;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, sans-serif; font-size: 14px; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(43, 122, 87, .22); outline-offset: 1px; }

.app-shell { min-height: 100vh; }
.app-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: var(--sidebar); display: flex; flex-direction: column; color: #d8e3dd; background: var(--green-950); border-right: 1px solid rgba(255,255,255,.08); }
.brand-lockup { height: 76px; padding: 0 22px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; color: var(--green-950); background: #b8dec8; font-family: Georgia, "Songti SC", serif; font-size: 22px; font-weight: 800; }
.brand-title { color: #f3f8f5; font-size: 16px; font-weight: 800; letter-spacing: .12em; }
.brand-subtitle { margin-top: 3px; color: #8ea399; font-size: 10px; }
.workspace-switcher { padding: 18px 15px 14px; }
.workspace-switcher > span { display: block; margin: 0 8px 7px; color: #71877c; font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.workspace-switcher button { width: 100%; padding: 11px 12px; display: grid; gap: 3px; text-align: left; cursor: pointer; border: 1px solid #2f4b40; border-radius: 10px; background: #1b342a; }
.workspace-switcher strong { color: #e7f0eb; font-size: 11px; }
.workspace-switcher small { color: #80968c; font-size: 9px; }
.primary-nav { flex: 1; padding: 0 11px 20px; overflow-y: auto; scrollbar-width: thin; }
.nav-group-label { margin: 19px 11px 7px; color: #60766c; font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.nav-item { width: 100%; min-height: 39px; padding: 0 10px; display: grid; grid-template-columns: 27px 1fr auto; align-items: center; gap: 8px; color: #9eb1a8; cursor: pointer; border: 0; border-radius: 8px; background: transparent; text-align: left; font-size: 11px; }
.nav-item:hover { color: #edf5f1; background: rgba(255,255,255,.055); }
.nav-item.active { color: #fff; background: #264b3b; box-shadow: inset 3px 0 #95d0ae; }
.nav-code { color: #657e72; font: 9px/1.2 Georgia, serif; }
.nav-item.active .nav-code { color: #b9dec9; }
.nav-item em { min-width: 20px; padding: 3px 6px; color: #d6e8dd; border-radius: 999px; background: #385b4c; font-size: 8px; font-style: normal; text-align: center; }
.sidebar-footer { padding: 10px 11px 17px; border-top: 1px solid rgba(255,255,255,.07); }
.nav-item.utility { margin-bottom: 12px; }
.governance-note { padding: 11px 12px; display: grid; grid-template-columns: 7px 1fr; gap: 8px; border: 1px solid #2d493e; border-radius: 9px; background: #172f26; }
.governance-note span { width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: #7cc49d; }
.governance-note p { margin: 0; color: #81988d; font-size: 9px; line-height: 1.65; }

.app-main { margin-left: var(--sidebar); min-width: 0; }
.app-topbar { position: sticky; top: 0; z-index: 20; height: 76px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.topbar-context { display: flex; align-items: center; gap: 12px; min-width: 180px; }
.topbar-context > div > span { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.topbar-context h1 { margin: 2px 0 0; font-size: 17px; line-height: 1.2; }
.mobile-menu { display: none; border: 0; background: transparent; }
.topbar-tools { display: flex; align-items: center; gap: 10px; min-width: 0; }
.global-search { width: min(360px, 30vw); height: 38px; padding: 0 10px; display: grid; grid-template-columns: 1fr auto; align-items: center; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); }
.global-search > span, .period-select > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.global-search input { width: 100%; min-width: 0; height: auto; padding: 0; border: 0; background: transparent; outline: 0; font-size: 11px; }
.global-search kbd { padding: 3px 5px; color: var(--quiet); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; background: #fff; font: 8px system-ui; }
.period-select select { height: 38px; padding: 0 28px 0 10px; border: 1px solid var(--line); border-radius: 9px; background: white; font-size: 10px; }
.notification-bell { width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer; border: 1px solid var(--line); border-radius: 9px; background: white; }
.notification-bell::before { content: "消息"; color: var(--muted); font-size: 8px; }
.notification-bell span { position: absolute; transform: translate(14px,-13px); min-width: 16px; height: 16px; padding: 0 4px; display: grid; place-items: center; color: white; border: 2px solid white; border-radius: 999px; background: var(--red); font-size: 7px; }
.identity { display: flex; align-items: center; gap: 8px; padding-left: 10px; border-left: 1px solid var(--line); }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; color: var(--green-800); border-radius: 9px; background: var(--green-100); font-size: 9px; font-weight: 800; }
.identity strong, .identity small { display: block; white-space: nowrap; }
.identity strong { font-size: 10px; }
.identity small { margin-top: 2px; color: var(--quiet); font-size: 8px; }
.identity small.online { color: var(--green-600); }

.app-content { max-width: 1580px; margin: 0 auto; padding: 28px 30px 64px; }
.view { display: none; animation: view-in .18s ease-out; }
.view.active { display: block; }
@keyframes view-in { from { opacity: .25; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.view-heading { min-height: 78px; margin-bottom: 20px; display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; }
.view-heading.compact { min-height: 60px; }
.view-heading h2 { margin: 6px 0 7px; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; letter-spacing: -.025em; }
.view-heading p { max-width: 720px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.section-kicker { color: var(--green-600); font-size: 9px; font-weight: 850; letter-spacing: .14em; }
.heading-actions { padding-top: 18px; display: flex; align-items: center; gap: 8px; }

.button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 8px; cursor: pointer; font-size: 10px; font-weight: 750; transition: transform .15s, background .15s; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.button.primary { color: #fff; background: var(--green-700); }
.button.primary:hover { background: var(--green-800); }
.button.secondary { color: var(--green-800); background: var(--green-100); }
.button.ghost { color: var(--green-700); border: 1px solid #bcd1c5; background: white; }
.button.text { color: var(--green-700); background: transparent; }
.button.danger { color: var(--red); background: var(--red-soft); }
.count-pill, .status-chip { padding: 6px 10px; border-radius: 999px; color: var(--green-700); background: var(--green-100); font-size: 9px; font-weight: 800; }
.count-pill.danger { color: var(--red); background: var(--red-soft); }
.status-chip.neutral { color: var(--muted); background: #eef1ed; }

.surface { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-soft); }
.surface-heading { min-height: 64px; padding: 15px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.surface-heading span { color: var(--green-600); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.surface-heading h3 { margin: 3px 0 0; font-size: 14px; }
.surface-heading > strong { font-size: 10px; color: var(--muted); }
.surface-toolbar { min-height: 54px; padding: 9px 12px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.toolbar-note { color: var(--quiet); font-size: 9px; }
.segmented { display: inline-flex; padding: 3px; gap: 2px; border-radius: 8px; background: #edf1ed; }
.segmented button { min-height: 30px; padding: 0 11px; cursor: pointer; border: 0; border-radius: 6px; color: var(--muted); background: transparent; font-size: 9px; font-weight: 750; }
.segmented button.active { color: var(--green-800); background: white; box-shadow: 0 1px 4px rgba(18, 45, 33, .11); }

/* Executive dashboard */
.executive-dashboard { display: grid; gap: 14px; }
.executive-kpis, .kpi-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.executive-kpi, .kpi-card { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.executive-kpi .kpi-label, .kpi-card .kpi-label { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 9px; }
.executive-kpi strong, .kpi-card strong { display: block; margin-top: 9px; font-family: Georgia, serif; font-size: 25px; line-height: 1; }
.executive-kpi small, .kpi-card small { display: block; margin-top: 8px; color: var(--quiet); font-size: 8px; line-height: 1.5; }
.kpi-delta { padding: 3px 5px; border-radius: 5px; color: var(--green-700); background: var(--green-050); font-size: 7px; }
.kpi-delta.negative { color: var(--red); background: var(--red-soft); }
.dashboard-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 14px; }
.dashboard-grid.three { grid-template-columns: 1.2fr 1fr 1fr; }
.dashboard-panel { min-width: 0; background: white; border: 1px solid var(--line); border-radius: 14px; }
.dashboard-panel-head { padding: 15px 17px 10px; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.dashboard-panel-head h3 { margin: 0; font-size: 13px; }
.dashboard-panel-head p { margin: 4px 0 0; color: var(--quiet); font-size: 8px; }
.dashboard-panel-body { padding: 6px 17px 17px; }
.trend-chart { width: 100%; min-height: 210px; display: block; }
.chart-grid-line { stroke: #e8ede9; stroke-width: 1; }
.chart-axis-label { fill: #839089; font-size: 9px; }
.chart-line-primary { fill: none; stroke: var(--green-600); stroke-width: 3; }
.chart-line-secondary { fill: none; stroke: var(--amber); stroke-width: 2; stroke-dasharray: 5 4; }
.chart-area { fill: rgba(43, 122, 87, .09); }
.chart-dot { fill: white; stroke: var(--green-600); stroke-width: 2; }
.dashboard-list { margin: 0; padding: 0; list-style: none; }
.dashboard-row { min-height: 48px; padding: 9px 0; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 10px; border-bottom: 1px solid #edf0ed; cursor: pointer; }
.dashboard-row:last-child { border-bottom: 0; }
.signal { width: 7px; height: 30px; border-radius: 999px; background: var(--green-600); }
.signal.red { background: var(--red); }
.signal.amber { background: var(--amber); }
.dashboard-row strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.dashboard-row small { display: block; margin-top: 3px; color: var(--quiet); font-size: 8px; }
.health-score { min-width: 34px; font: 700 13px Georgia, serif; text-align: right; }
.department-row { padding: 9px 0; display: grid; grid-template-columns: 70px 1fr 38px; align-items: center; gap: 9px; border-bottom: 1px solid #edf0ed; font-size: 9px; }
.department-row:last-child { border-bottom: 0; }
.health-bar { height: 6px; overflow: hidden; border-radius: 999px; background: #edf1ed; }
.health-bar span { display: block; height: 100%; border-radius: inherit; background: var(--green-600); }
.health-bar span.warning { background: var(--amber); }
.health-bar span.danger { background: var(--red); }
.milestone-strip { display: grid; gap: 7px; }
.milestone-item { padding: 9px 10px; display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 9px; border-left: 3px solid var(--green-600); background: var(--surface-soft); }
.milestone-item.warning { border-color: var(--amber); }
.milestone-item.danger { border-color: var(--red); }
.milestone-item time { color: var(--muted); font-size: 8px; }
.milestone-item strong { font-size: 9px; }
.milestone-item small { color: var(--quiet); font-size: 8px; }

/* Personal work */
.work-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.summary-tile { padding: 15px 17px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 12px; background: white; }
.summary-tile span { color: var(--muted); font-size: 9px; }
.summary-tile strong { font: 700 22px Georgia, serif; }
.action-list { padding: 0 16px; }
.action-row { min-height: 66px; display: grid; grid-template-columns: 78px minmax(0,1fr) 125px 92px auto; align-items: center; gap: 13px; border-bottom: 1px solid var(--line); }
.action-row:last-child { border-bottom: 0; }
.action-kind { color: var(--green-700); font-size: 8px; font-weight: 800; }
.action-main strong { display: block; font-size: 10px; }
.action-main small, .action-owner small { display: block; margin-top: 4px; color: var(--quiet); font-size: 8px; }
.action-owner strong { display: block; font-size: 9px; }
.action-deadline { font-size: 9px; }

/* Meetings */
.meeting-steps { margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: var(--shadow-soft); overflow: hidden; }
.meeting-steps li { min-height: 72px; padding: 13px 16px; display: flex; align-items: center; gap: 11px; border-right: 1px solid var(--line); }
.meeting-steps li:last-child { border-right: 0; }
.meeting-steps li > span { width: 28px; height: 28px; flex: 0 0 auto; display: grid; place-items: center; color: var(--green-700); border: 1px solid #bfd4c7; border-radius: 50%; font: 11px Georgia, serif; }
.meeting-steps li.active { background: var(--green-050); }
.meeting-steps li.active > span { color: white; background: var(--green-700); border-color: var(--green-700); }
.meeting-steps strong, .meeting-steps small { display: block; }
.meeting-steps strong { font-size: 11px; }
.meeting-steps small { margin-top: 3px; color: var(--quiet); font-size: 9px; line-height: 1.45; }
.meeting-layout { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(320px,.72fr); gap: 14px; align-items: start; }
.meeting-side-stack { min-width: 0; display: grid; gap: 14px; }
.meeting-form { padding: 18px; display: grid; grid-template-columns: 1fr 235px; gap: 14px; }
.meeting-form label, .candidate-form label, .action-body label { display: grid; gap: 7px; color: var(--ink-soft); font-size: 10px; font-weight: 750; }
.full { grid-column: 1 / -1; }
input, textarea, select { width: 100%; border: 1px solid #d7ded8; border-radius: 8px; color: var(--ink); background: #fbfcfa; }
input, select { height: 38px; padding: 0 10px; }
textarea { padding: 11px; resize: vertical; line-height: 1.75; }
input:focus, textarea:focus, select:focus { border-color: #6ca88b; box-shadow: 0 0 0 3px rgba(43, 122, 87, .1); outline: 0; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.form-footer small, .muted { color: var(--muted); font-size: 10px; line-height: 1.65; }
.source-picker { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; border: 0; }
.source-picker legend { margin-bottom: 8px; color: var(--ink-soft); font-size: 10px; font-weight: 750; }
.source-picker .source-choice { min-width: 0; padding: 11px; display: flex; grid-template-columns: none; align-items: flex-start; gap: 9px; cursor: pointer; border: 1px solid var(--line); border-radius: 9px; background: #fbfcfa; }
.source-choice:has(input:checked) { border-color: #78a98f; background: var(--green-050); box-shadow: inset 0 0 0 1px #c9dfd2; }
.source-choice input { width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--green-700); }
.source-choice span { min-width: 0; }
.source-choice strong, .source-choice small { display: block; }
.source-choice strong { font-size: 10px; }
.source-choice small { margin-top: 4px; color: var(--quiet); font-size: 8px; font-weight: 500; line-height: 1.45; }
.field-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.field-heading > span { display: flex; align-items: center; gap: 7px; }
.field-heading b { font-size: 11px; }
.field-heading em { color: var(--quiet); font-size: 9px; font-style: normal; font-weight: 500; }
.field-heading .button { min-height: 28px; padding: 0 7px; }
.transcript-details { padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fbfcfa; }
.transcript-details summary { cursor: pointer; color: var(--green-700); font-size: 10px; font-weight: 750; }
.transcript-details[open] summary { margin-bottom: 11px; }
.meeting-ai-hints { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.meeting-ai-hints span { margin-right: 4px; color: var(--muted); font-size: 10px; }
.meeting-ai-hints b { padding: 5px 8px; border-radius: 5px; color: var(--green-700); background: var(--green-050); font-size: 9px; }
.readiness-panel { padding: 15px; }
.readiness-intro { padding: 12px; border-radius: 9px; background: var(--green-050); }
.readiness-intro strong { font-size: 11px; }
.readiness-intro p { margin: 5px 0 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.readiness-checks { margin-top: 10px; display: grid; gap: 6px; }
.readiness-check { min-height: 49px; padding: 8px 10px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3px 8px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfa; }
.readiness-check.found { border-color: #cee1d6; background: #f7fbf8; }
.readiness-check span { font-size: 9px; font-weight: 750; }
.readiness-check strong { min-width: 24px; color: var(--green-700); font: 700 15px Georgia, serif; text-align: right; }
.readiness-check small { grid-column: 1 / -1; color: var(--quiet); font-size: 8px; line-height: 1.4; }
.meeting-list { padding: 5px 16px 16px; }
.meeting-row { width: 100%; padding: 13px 8px; cursor: pointer; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.meeting-row:hover, .meeting-row.selected { margin-inline: -8px; width: calc(100% + 16px); padding-inline: 16px; border-radius: 8px; background: var(--green-050); }
.meeting-row:last-child { border-bottom: 0; }
.meeting-row-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.meeting-row strong { font-size: 11px; line-height: 1.5; }
.meeting-row small { display: block; margin-top: 5px; color: var(--quiet); font-size: 9px; line-height: 1.5; }
.progress-track { height: 5px; margin-top: 9px; overflow: hidden; border-radius: 99px; background: #edf1ed; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--green-600); }

/* AI studio */
.candidate-overview { margin-bottom: 10px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.candidate-summary-tile { min-width: 0; padding: 12px 13px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.candidate-summary-tile span, .candidate-summary-tile small { display: block; }
.candidate-summary-tile span { color: var(--muted); font-size: 9px; }
.candidate-summary-tile strong { display: block; margin-top: 5px; font: 700 21px Georgia, serif; }
.candidate-summary-tile small { margin-top: 4px; color: var(--quiet); font-size: 8px; line-height: 1.4; }
.candidate-toolbar { min-height: 54px; margin-bottom: 10px; padding: 8px 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.candidate-toolbar-actions { display: flex; align-items: center; gap: 7px; }
.candidate-toolbar-actions > span { color: var(--muted); font-size: 9px; white-space: nowrap; }
.ai-studio { min-height: 670px; display: grid; grid-template-columns: 290px minmax(520px,1fr) 270px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow-soft); }
.studio-source, .studio-tree, .studio-assurance { min-width: 0; }
.studio-source { border-right: 1px solid var(--line); background: #f7f9f6; }
.studio-tree { border-right: 1px solid var(--line); }
.studio-assurance { background: #fbfcfa; }
.studio-title { min-height: 64px; padding: 13px 15px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.studio-title > span { width: 26px; height: 26px; display: grid; place-items: center; color: var(--green-700); border: 1px solid #c5d8cd; border-radius: 50%; font: 8px Georgia, serif; }
.studio-title strong, .studio-title small { display: block; }
.studio-title strong { font-size: 11px; }
.studio-title small { margin-top: 3px; color: var(--quiet); font-size: 9px; line-height: 1.4; }
.source-document { max-height: 720px; padding: 17px; overflow-y: auto; }
.source-document h4 { margin: 0 0 9px; font-size: 12px; line-height: 1.5; }
.source-origin { margin-bottom: 12px; padding: 8px 9px; border: 1px solid var(--line); border-radius: 7px; background: white; }
.source-origin span, .source-origin strong { display: block; }
.source-origin span { color: var(--green-700); font-size: 8px; font-weight: 750; }
.source-origin strong { margin-top: 3px; font-size: 9px; }
.source-document p { margin: 0; color: var(--ink-soft); font-family: Georgia, "Songti SC", serif; font-size: 11px; line-height: 2; }
.source-document mark { padding: 1px 2px; color: inherit; background: #fff0b8; }
.source-meta { margin-top: 14px; display: grid; gap: 7px; }
.source-meta span { padding: 7px 8px; display: flex; justify-content: space-between; color: var(--muted); border: 1px solid var(--line); border-radius: 7px; background: white; font-size: 8px; }
.studio-tree .card-list { max-height: 720px; padding: 12px; overflow-y: auto; }
.wbs-preview { padding: 12px 12px 0; }
.wbs-shell { padding: 12px; border: 1px solid #bdd4c7; border-radius: 10px; background: var(--green-050); }
.wbs-shell-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.wbs-shell-head span { display: block; color: var(--green-700); font-size: 7px; font-weight: 800; letter-spacing: .08em; }
.wbs-shell-head strong { display: block; margin-top: 4px; font-size: 10px; }
.wbs-nodes { margin-top: 10px; padding-left: 12px; display: grid; gap: 6px; border-left: 1px solid #a9c9b7; }
.wbs-node { min-height: 34px; padding: 7px 9px; display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 7px; border: 1px solid #d7e5dd; border-radius: 7px; background: white; }
.wbs-node b { color: var(--green-700); font: 8px Georgia, serif; }
.wbs-node strong { display: block; font-size: 8px; }
.wbs-node small { display: block; margin-top: 2px; color: var(--quiet); font-size: 7px; }
.wbs-node em { color: var(--muted); font-size: 7px; font-style: normal; }
.wbs-dependency { margin-top: 8px; padding: 6px 8px; color: #8c551f; border-left: 2px solid var(--amber); background: var(--amber-soft); font-size: 7px; line-height: 1.5; }
.wbs-empty { padding: 12px; display: grid; gap: 5px; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: 9px; font-size: 9px; }
.wbs-empty strong { color: var(--ink); font-size: 10px; }
.quality-panel { padding: 14px; }
.quality-score { padding: 14px; color: white; border-radius: 10px; background: var(--green-800); }
.quality-score span { color: #b9d0c5; font-size: 8px; }
.quality-score strong { display: block; margin-top: 5px; font: 700 27px Georgia, serif; }
.quality-checks { margin: 14px 0 0; padding: 0; list-style: none; }
.quality-checks li { min-height: 42px; padding: 9px 0; display: grid; grid-template-columns: 9px 1fr; align-items: start; gap: 8px; border-bottom: 1px solid var(--line); font-size: 9px; line-height: 1.55; }
.quality-checks li::before { content: ""; width: 7px; height: 7px; margin-top: 3px; border-radius: 50%; background: var(--green-600); }
.quality-checks li.warning::before { background: var(--amber); }
.quality-checks li.danger::before { background: var(--red); }
.quality-note { margin-top: 14px; padding: 10px; color: var(--muted); border-left: 3px solid var(--amber); background: var(--amber-soft); font-size: 9px; line-height: 1.65; }
.card-list { display: grid; gap: 10px; }
.empty-state { min-height: 110px; display: grid; place-items: center; color: var(--quiet); border: 1px dashed var(--line-strong); border-radius: 10px; font-size: 10px; }
.item-card { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.item-top { display: flex; align-items: flex-start; gap: 10px; }
.candidate-select { width: 40px; flex: 0 0 auto; display: grid; place-items: center; gap: 2px; color: var(--quiet); font-size: 7px; font-weight: 650; }
.candidate-select input { width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--green-700); }
.item-main { flex: 1; min-width: 0; }
.item-title { margin: 0; font-size: 12px; line-height: 1.55; }
.item-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.tag { padding: 4px 6px; border-radius: 5px; color: #56635c; background: #edf1ed; font-size: 8px; font-weight: 750; }
.tag.green { color: var(--green-700); background: var(--green-100); }
.tag.orange { color: #92501d; background: var(--amber-soft); }
.tag.red { color: var(--red); background: var(--red-soft); }
.ai-decision { margin-top: 11px; padding: 9px 10px; display: grid; grid-template-columns: 58px 1fr; gap: 9px; border: 1px solid #d9e5de; border-radius: 8px; background: var(--green-050); }
.ai-decision > span { color: var(--green-700); font-size: 8px; font-weight: 800; }
.ai-decision strong, .ai-decision small { display: block; }
.ai-decision strong { font-size: 10px; }
.ai-decision small { margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.45; }
.source-quote { margin: 11px 0; padding: 9px 10px; color: #536159; border-left: 3px solid #92b9a4; background: #f5f8f4; font-family: Georgia, "Songti SC", serif; font-size: 10px; line-height: 1.75; }
.candidate-review { margin-top: 10px; border-top: 1px dashed var(--line); }
.candidate-review summary { padding: 11px 2px 2px; display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; color: var(--green-700); font-size: 10px; font-weight: 750; }
.candidate-review summary small { color: var(--quiet); font-size: 8px; font-weight: 500; }
.candidate-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-top: 11px; padding-top: 11px; border-top: 1px dashed var(--line); }
.candidate-review .candidate-form { border-top: 0; padding-top: 0; }
.candidate-form .wide { grid-column: 1 / -1; }
.automation-preview { padding: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; border-radius: 8px; background: #f5f8f4; }
.automation-preview strong { width: 100%; margin-bottom: 2px; font-size: 9px; }
.automation-preview span { padding: 4px 6px; color: var(--green-700); border-radius: 5px; background: white; font-size: 8px; }
.card-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; margin-top: 11px; }
.review-complete { padding: 18px; text-align: center; }
.review-complete strong { color: var(--ink); font-size: 13px; }
.review-complete p { margin: 7px 0 13px; color: var(--muted); font-size: 10px; line-height: 1.6; }

/* Ledger */
.task-workspace { overflow: hidden; }
.task-toolbar { min-height: 58px; padding: 10px 13px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); }
.task-filters { display: flex; align-items: center; gap: 7px; }
.task-filters select { width: 124px; height: 34px; font-size: 9px; }
.task-filters input { width: 210px; height: 34px; font-size: 9px; }
.ledger-summary { min-height: 40px; padding: 8px 14px; display: flex; align-items: center; gap: 18px; color: var(--muted); border-bottom: 1px solid var(--line); background: #fbfcfa; font-size: 8px; }
.ledger-summary strong { margin-right: 4px; color: var(--ink); font: 700 13px Georgia, serif; }
.task-data-view { min-height: 360px; }
.ledger-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.ledger-table th { height: 38px; padding: 0 10px; color: var(--quiet); background: #f8faf7; border-bottom: 1px solid var(--line); text-align: left; font-size: 8px; font-weight: 750; }
.ledger-table td { height: 58px; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 8px; }
.ledger-table tr:last-child td { border-bottom: 0; }
.ledger-table tbody tr:hover { background: #fafcf9; }
.task-title-cell { cursor: pointer; }
.task-title-cell strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.task-title-cell small { display: block; margin-top: 4px; overflow: hidden; color: var(--quiet); text-overflow: ellipsis; white-space: nowrap; font-size: 7px; }
.status-dot { width: 7px; height: 7px; display: inline-block; margin-right: 5px; border-radius: 50%; background: var(--green-600); }
.status-dot.risk { background: var(--red); }
.status-dot.wait { background: var(--amber); }
.ledger-owner strong, .ledger-owner small { display: block; }
.ledger-owner strong { font-size: 8px; }
.ledger-owner small { margin-top: 3px; color: var(--quiet); font-size: 7px; }
.task-board { padding: 13px; display: grid; grid-template-columns: repeat(4, minmax(190px, 1fr)); gap: 10px; overflow-x: auto; background: #f6f8f5; }
.board-column { min-width: 190px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.board-column-head { margin-bottom: 9px; display: flex; justify-content: space-between; font-size: 9px; font-weight: 800; }
.board-column-head span { color: var(--quiet); }
.board-task { padding: 10px; margin-top: 7px; cursor: pointer; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfa; }
.board-task strong { display: block; font-size: 9px; line-height: 1.5; }
.board-task small { display: block; margin-top: 7px; color: var(--quiet); font-size: 7px; }
.timeline-view { padding: 15px; overflow-x: auto; }
.timeline-header, .timeline-row { min-width: 840px; display: grid; grid-template-columns: 210px repeat(12, 1fr); }
.timeline-header { height: 30px; color: var(--quiet); font-size: 7px; }
.timeline-header span { text-align: center; }
.timeline-row { min-height: 46px; align-items: center; border-top: 1px solid var(--line); }
.timeline-label { padding-right: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 8px; }
.timeline-track { grid-column: 2 / 14; height: 18px; position: relative; background: repeating-linear-gradient(90deg, #edf1ed 0, #edf1ed 1px, transparent 1px, transparent 8.333%); }
.timeline-bar { position: absolute; top: 4px; height: 10px; min-width: 12px; border-radius: 4px; background: var(--green-600); }
.timeline-bar.risk { background: var(--red); }
.timeline-bar.warning { background: var(--amber); }

/* Automation */
.automation-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.automation-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.automation-column { padding-bottom: 14px; }
.compact-list { padding: 12px; display: grid; gap: 9px; }
.rule-card { padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: #fbfcfa; }
.rule-top, .rule-footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.rule-top strong { display: block; font-size: 9px; line-height: 1.55; }
.rule-top small, .rule-footer small { display: block; margin-top: 4px; color: var(--quiet); font-size: 7px; line-height: 1.5; }
.rule-timeline { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.rule-timeline span { padding: 4px 6px; color: var(--muted); border-radius: 5px; background: #edf1ed; font-size: 7px; }
.rule-footer { align-items: center; margin-top: 10px; padding-top: 9px; border-top: 1px dashed var(--line); }
.micro-quote { margin: 9px 0 0; padding: 8px 9px; color: var(--muted); border-left: 2px solid #9fc5b0; background: #f4f8f5; font-size: 8px; line-height: 1.65; }
.rule-library { margin-top: 14px; }
.rule-template-list { padding: 12px 17px 17px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.rule-template { padding: 12px; border: 1px solid var(--line); border-radius: 9px; }
.rule-template strong { display: block; font-size: 9px; }
.rule-template p { margin: 6px 0 11px; color: var(--muted); font-size: 7px; line-height: 1.55; }

/* Warnings and analytics */
.warning-layout { display: grid; grid-template-columns: 250px minmax(0,1fr); gap: 14px; }
.warning-filters { padding: 14px; }
.warning-filter-group + .warning-filter-group { margin-top: 18px; }
.warning-filter-group h3 { margin: 0 0 8px; color: var(--muted); font-size: 8px; letter-spacing: .08em; }
.warning-filter-button { width: 100%; min-height: 34px; padding: 0 9px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; border: 0; border-radius: 7px; background: transparent; font-size: 9px; }
.warning-filter-button.active { color: var(--green-800); background: var(--green-050); font-weight: 800; }
.warning-table { width: 100%; border-collapse: collapse; }
.warning-table th, .warning-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: 8px; vertical-align: top; }
.warning-table th { color: var(--quiet); background: #f8faf7; }
.warning-table td strong { display: block; font-size: 9px; line-height: 1.45; }
.warning-table td small { display: block; margin-top: 4px; color: var(--quiet); font-size: 7px; line-height: 1.5; }
.warning-actions { display: flex; gap: 5px; }
.warning-actions button { padding: 4px 6px; cursor: pointer; color: var(--green-700); border: 1px solid #c9d8d0; border-radius: 5px; background: white; font-size: 7px; }
.analytics-grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 14px; }
.analytics-card { grid-column: span 4; min-height: 250px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.analytics-card.wide { grid-column: span 8; }
.analytics-card.full { grid-column: 1 / -1; }
.analytics-card header { padding: 14px 16px 7px; }
.analytics-card h3 { margin: 0; font-size: 11px; }
.analytics-card p { margin: 4px 0 0; color: var(--quiet); font-size: 7px; }
.analytics-card .chart-body { padding: 8px 16px 16px; }
.bar-chart { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 70px 1fr 34px; align-items: center; gap: 8px; font-size: 8px; }
.bar-track { height: 8px; border-radius: 99px; background: #edf1ed; overflow: hidden; }
.bar-track span { display: block; height: 100%; border-radius: inherit; background: var(--green-600); }
.bar-track span.amber { background: var(--amber); }
.bar-track span.red { background: var(--red); }
.donut-wrap { display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 8px; }
.donut { width: 116px; height: 116px; position: relative; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--green-600) 0 58%, var(--amber) 58% 79%, var(--red) 79% 100%); }
.donut::after { content: ""; width: 72px; height: 72px; border-radius: 50%; background: white; }
.donut strong { position: absolute; z-index: 1; font: 700 20px Georgia, serif; }
.chart-legend { display: grid; gap: 8px; font-size: 8px; }
.chart-legend span { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.legend-dot { width: 7px; height: 7px; margin-right: auto; border-radius: 50%; background: var(--green-600); }

/* Reports */
.report-layout { display: grid; grid-template-columns: 280px minmax(0,1fr); gap: 14px; }
.report-catalog { padding: 9px; }
.report-category { margin: 9px 7px 6px; color: var(--quiet); font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.report-item { width: 100%; min-height: 48px; padding: 8px 10px; display: grid; grid-template-columns: 1fr auto; align-items: center; cursor: pointer; border: 0; border-radius: 8px; background: transparent; text-align: left; }
.report-item:hover, .report-item.active { background: var(--green-050); }
.report-item strong { display: block; font-size: 9px; }
.report-item small { display: block; margin-top: 4px; color: var(--quiet); font-size: 7px; }
.report-item span { color: var(--green-700); font-size: 7px; }
.report-preview { min-height: 650px; padding: 32px 38px; }
.report-document-head { padding-bottom: 21px; border-bottom: 2px solid var(--green-800); }
.report-document-head h3 { margin: 7px 0 4px; font-size: 24px; }
.report-document-head p { margin: 0; color: var(--muted); font-size: 9px; }
.report-summary-strip { margin: 22px 0; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.report-summary-strip div { padding: 13px; border-right: 1px solid var(--line); }
.report-summary-strip div:last-child { border-right: 0; }
.report-summary-strip span { display: block; color: var(--quiet); font-size: 7px; }
.report-summary-strip strong { display: block; margin-top: 6px; font: 700 20px Georgia, serif; }
.report-section { margin-top: 24px; }
.report-section h4 { margin: 0 0 10px; font-size: 12px; }
.report-section p, .report-section li { color: var(--ink-soft); font-size: 9px; line-height: 1.8; }

/* Notifications */
.inbox-tabs { margin-bottom: 12px; }
.delivery-summary { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.delivery-summary span { padding: 9px 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; background: white; font-size: 8px; }
.delivery-summary strong { margin-right: 4px; color: var(--ink); font: 700 15px Georgia, serif; }
.notification-list { padding: 12px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.wecom-card { min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfa; }
.wecom-head { display: grid; grid-template-columns: 30px minmax(0,1fr) auto; align-items: start; gap: 8px; }
.wecom-logo { width: 30px; height: 30px; display: grid; place-items: center; color: white; border-radius: 8px; background: #2a79c7; font-size: 8px; font-weight: 800; }
.wecom-head strong { display: block; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
.wecom-head small { display: block; color: var(--quiet); font-size: 7px; }
.wecom-body { margin-top: 10px; color: var(--ink-soft); font-size: 8px; line-height: 1.65; }
.wecom-meta { margin-top: 9px; display: grid; gap: 4px; }
.wecom-meta div { display: flex; justify-content: space-between; gap: 8px; color: var(--quiet); font-size: 7px; }
.wecom-actions { margin-top: 10px; padding-top: 9px; display: flex; gap: 5px; border-top: 1px solid var(--line); }
.wecom-actions span { padding: 5px 7px; color: var(--blue); border-radius: 5px; background: var(--blue-soft); font-size: 7px; }

/* Governance */
.governance-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.governance-card { min-height: 210px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.governance-card h3 { margin: 0; font-size: 12px; }
.governance-card p { margin: 7px 0 14px; color: var(--muted); font-size: 8px; line-height: 1.65; }
.governance-card ul { margin: 0; padding: 0; list-style: none; }
.governance-card li { min-height: 35px; padding: 8px 0; display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line); font-size: 8px; }
.governance-card li span { color: var(--quiet); }

/* Dialogs */
.modal { width: min(760px, calc(100vw - 32px)); max-height: 88vh; padding: 0; color: var(--ink); border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 30px 90px rgba(13, 32, 23, .24); }
.modal::backdrop { background: rgba(11, 27, 20, .56); backdrop-filter: blur(2px); }
.wide-modal { width: min(920px, calc(100vw - 32px)); }
.task-detail-modal { width: min(980px, calc(100vw - 32px)); }
.dialog-heading { min-height: 70px; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); }
.dialog-heading h2 { margin: 4px 0 0; font-size: 17px; }
.icon-button { min-height: 32px; padding: 0 10px; cursor: pointer; color: var(--muted); border: 1px solid var(--line); border-radius: 7px; background: white; font-size: 9px; }
.action-body { padding: 20px; display: grid; gap: 13px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }
.audit-list { padding: 17px 20px 24px; }
.audit-entry { position: relative; margin-left: 8px; padding: 10px 0 10px 22px; border-left: 1px solid var(--line); }
.audit-entry::before { content: ""; position: absolute; left: -4px; top: 15px; width: 7px; height: 7px; border-radius: 50%; background: var(--green-600); }
.audit-entry strong { display: block; font-size: 9px; }
.audit-entry small { display: block; margin-top: 4px; color: var(--quiet); font-size: 7px; }
.task-detail-grid { padding: 18px 20px 22px; display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 18px; }
.task-detail-section + .task-detail-section { margin-top: 18px; }
.task-detail-section h3 { margin: 0 0 9px; font-size: 11px; }
.task-contract-list { margin: 0; padding: 0; list-style: none; }
.task-contract-list li { min-height: 35px; padding: 8px 0; display: grid; grid-template-columns: 100px 1fr; gap: 10px; border-bottom: 1px solid var(--line); font-size: 8px; }
.task-contract-list li span { color: var(--quiet); }
.task-side-card { padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #f8faf7; }
.task-side-card + .task-side-card { margin-top: 10px; }
.task-side-card h4 { margin: 0 0 8px; font-size: 9px; }
.task-side-card p { margin: 0; color: var(--muted); font-size: 8px; line-height: 1.65; }
.task-grid, .state, .task-dates, .commitment-strip { min-width: 0; }
.task-outcome { margin: 7px 0 0; color: var(--muted); font-size: 9px; line-height: 1.6; }
.task-dates { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); }
.task-dates div { display: grid; gap: 3px; }
.task-dates span { color: var(--quiet); font-size: 7px; text-transform: uppercase; }
.task-dates strong { font-size: 8px; }
.commitment-strip { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }

.command-palette { position: fixed; inset: 0; z-index: 100; padding-top: 12vh; background: rgba(14, 31, 23, .54); }
.command-box { width: min(640px, calc(100vw - 32px)); margin: 0 auto; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: 0 30px 90px rgba(9, 25, 17, .3); }
.command-box input { height: 54px; padding: 0 17px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 13px; }
.command-result { min-height: 44px; padding: 0 17px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; border-bottom: 1px solid var(--line); font-size: 9px; }
.command-result:hover { background: var(--green-050); }
.command-result span { color: var(--quiet); }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 120; max-width: 380px; padding: 11px 14px; color: white; border-radius: 8px; background: var(--green-800); box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s; font-size: 9px; }
.toast.show { opacity: 1; transform: none; }
.toast.error { background: var(--red); }

@media (max-width: 1240px) {
  :root { --sidebar: 218px; }
  .app-content { padding-inline: 22px; }
  .global-search { width: 230px; }
  .period-select, .identity > div:last-child { display: none; }
  .executive-kpis, .kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .ai-studio { grid-template-columns: 230px minmax(440px,1fr); }
  .studio-assurance { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .quality-panel { display: grid; grid-template-columns: 180px 1fr 240px; gap: 14px; }
  .candidate-toolbar { align-items: flex-start; flex-direction: column; }
  .candidate-toolbar-actions { width: 100%; justify-content: flex-end; }
  .notification-list { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 940px) {
  :root { --sidebar: 244px; }
  .app-sidebar { transform: translateX(-100%); transition: transform .2s; }
  body.sidebar-open .app-sidebar { transform: none; box-shadow: 20px 0 60px rgba(9, 26, 17, .25); }
  .app-main { margin-left: 0; }
  .mobile-menu { display: block; }
  .topbar-tools .button.secondary, .identity { display: none; }
  .global-search { width: min(300px, 42vw); }
  .dashboard-grid, .dashboard-grid.three, .meeting-layout, .automation-grid, .report-layout, .warning-layout { grid-template-columns: 1fr; }
  .meeting-steps { grid-template-columns: repeat(2, 1fr); }
  .meeting-steps li:nth-child(2) { border-right: 0; }
  .meeting-steps li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .candidate-overview { grid-template-columns: repeat(2, 1fr); }
  .candidate-summary-tile:last-child { grid-column: 1 / -1; }
  .ai-studio { grid-template-columns: 1fr; }
  .studio-source, .studio-tree { border-right: 0; border-bottom: 1px solid var(--line); }
  .source-document, .studio-tree .card-list { max-height: none; }
  .quality-panel { display: block; }
  .analytics-card, .analytics-card.wide { grid-column: span 6; }
  .rule-template-list { grid-template-columns: repeat(2,1fr); }
  .governance-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 680px) {
  .app-topbar { height: 66px; padding: 0 14px; }
  .global-search, .period-select { display: none; }
  .app-content { padding: 20px 13px 48px; }
  .view-heading { min-height: 0; display: block; }
  .view-heading h2 { font-size: 24px; }
  .heading-actions { padding-top: 13px; }
  .executive-kpis, .kpi-grid, .work-summary, .automation-stats { grid-template-columns: repeat(2,1fr); }
  .meeting-form { grid-template-columns: 1fr; }
  .meeting-form > * { grid-column: 1; }
  .source-picker { grid-template-columns: 1fr; }
  .meeting-steps { grid-template-columns: 1fr; }
  .meeting-steps li { border-right: 0; border-bottom: 1px solid var(--line); }
  .meeting-steps li:last-child { border-bottom: 0; }
  .candidate-overview { grid-template-columns: 1fr; }
  .candidate-summary-tile:last-child { grid-column: auto; }
  .candidate-toolbar .segmented { width: 100%; overflow-x: auto; }
  .candidate-toolbar-actions { flex-wrap: wrap; justify-content: flex-start; }
  .candidate-form { grid-template-columns: 1fr; }
  .candidate-form > *, .candidate-form .wide { grid-column: 1; }
  .field-heading { align-items: flex-start; }
  .task-toolbar { align-items: stretch; flex-direction: column; }
  .task-filters { flex-wrap: wrap; }
  .task-filters input { flex: 1; min-width: 150px; }
  .ledger-table { min-width: 780px; }
  .task-data-view { overflow-x: auto; }
  .action-row { padding: 10px 0; grid-template-columns: 60px minmax(0,1fr) auto; }
  .action-owner, .action-deadline { display: none; }
  .analytics-card, .analytics-card.wide { grid-column: 1 / -1; }
  .notification-list, .governance-grid, .rule-template-list { grid-template-columns: 1fr; }
  .report-preview { padding: 24px 19px; }
  .report-summary-strip { grid-template-columns: repeat(2,1fr); }
  .report-summary-strip div:nth-child(2) { border-right: 0; }
  .report-summary-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .task-detail-grid { grid-template-columns: 1fr; }
}
