:root {
  color-scheme: light;
  --canvas: #f4f7f5;
  --surface: #ffffff;
  --surface-soft: #f8fbf9;
  --ink: #17312b;
  --ink-muted: #5d706a;
  --ink-subtle: #81918c;
  --line: #dbe7e2;
  --line-strong: #bdd2ca;
  --brand: #087f73;
  --brand-hover: #066b61;
  --brand-soft: #e6f5f0;
  --success: #198754;
  --success-soft: #edf9f1;
  --warning: #ae6600;
  --warning-soft: #fff7e7;
  --danger: #bd3e36;
  --danger-soft: #fff1f0;
  --shadow: 0 14px 36px rgba(23, 49, 43, .08);
  --radius: 16px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; min-height: 100vh; color: var(--ink); font: 15px/1.5 var(--font); }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(8, 127, 115, .35); outline-offset: 3px; }
a { color: inherit; }
.skip-link { position: fixed; left: 12px; top: -48px; z-index: 99; background: var(--ink); color: #fff; border-radius: 8px; padding: 8px 12px; }
.skip-link:focus { top: 12px; }

.shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; align-self: start; height: 100vh; padding: 24px 14px; background: #113e36; color: #dcefe9; display: flex; flex-direction: column; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 10px; color: #fff; font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px 9px 9px 2px; background: #2bc19c; color: #063b31; font-weight: 800; font-size: 14px; }
.brand small { display: block; color: #a4c2b9; font-size: 11px; font-weight: 500; letter-spacing: .02em; }
.nav { display: grid; gap: 4px; }
.nav-label { margin: 10px 11px 4px; color: #8aafa5; font-size: 11px; font-weight: 600; letter-spacing: .08em; }
.nav a { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 9px 11px; border-radius: 10px; color: #c9dfd8; text-decoration: none; font-weight: 500; }
.nav a:hover { background: rgba(255,255,255,.075); color: #fff; }
.nav a.is-active { background: #196051; color: #fff; box-shadow: inset 3px 0 #50d5b1; }
.nav-icon { width: 18px; color: #8fd5c2; text-align: center; font-size: 15px; }
.sidebar-footer { margin-top: auto; display: grid; gap: 12px; padding: 12px 10px 0; border-top: 1px solid rgba(255,255,255,.12); }
.role-switch { display: flex; background: rgba(0,0,0,.16); padding: 3px; border-radius: 10px; }
.role-switch button { flex: 1; border: 0; border-radius: 7px; padding: 6px; background: transparent; color: #bed9d0; font-size: 12px; }
.role-switch button[aria-pressed="true"] { background: #3b806f; color: #fff; }
.identity { display: flex; align-items: center; gap: 9px; color: #e7f5f0; font-size: 13px; }
.avatar { display: grid; flex: 0 0 auto; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #dff1eb; color: #155548; font-weight: 700; font-size: 12px; }

.page { min-width: 0; padding: 28px clamp(20px, 4vw, 56px) 54px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 42px; margin-bottom: 29px; }
.crumb { color: var(--ink-muted); font-size: 13px; }
.crumb strong { color: var(--ink); font-weight: 600; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.icon-button { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink-muted); }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 7px; font-size: clamp(27px, 3vw, 34px); line-height: 1.15; letter-spacing: -.03em; text-wrap: balance; }
h2 { margin-bottom: 4px; font-size: 19px; line-height: 1.25; letter-spacing: -.02em; text-wrap: balance; }
h3 { margin-bottom: 5px; font-size: 15px; line-height: 1.35; }
.lede { max-width: 58ch; margin: 0; color: var(--ink-muted); text-wrap: pretty; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; border: 1px solid transparent; border-radius: 10px; padding: 9px 14px; background: var(--brand); color: #fff; font-weight: 600; white-space: nowrap; }
.button:hover { background: var(--brand-hover); }
.button.secondary { background: var(--surface); border-color: var(--line); color: var(--ink); }
.button.secondary:hover { background: var(--surface-soft); }
.button:disabled { cursor: not-allowed; opacity: .52; }

.attention { display: flex; align-items: flex-start; gap: 15px; padding: 18px 20px; margin-bottom: 24px; border: 1px solid #b9ded2; border-radius: var(--radius); background: linear-gradient(90deg, #e8f8f1, #f5fbf8); }
.attention-icon { display: grid; flex: 0 0 auto; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: #ccefe0; color: #087f73; font-weight: 800; }
.attention h2 { margin-bottom: 2px; font-size: 16px; }
.attention p { margin: 0; color: #426259; font-size: 14px; }
.attention a { color: var(--brand); font-weight: 600; text-underline-offset: 3px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 28px; }
.stat { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 3px 8px rgba(23,49,43,.02); }
.stat-label { color: var(--ink-muted); font-size: 13px; font-weight: 500; }
.stat-number { margin: 6px 0 2px; font-variant-numeric: tabular-nums; font-size: 28px; font-weight: 700; line-height: 1; letter-spacing: -.035em; }
.stat-note { color: var(--ink-subtle); font-size: 12px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .8fr); gap: 20px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 4px 16px rgba(23,49,43,.025); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 19px 20px 15px; }
.card-head p { margin: 3px 0 0; color: var(--ink-muted); font-size: 13px; }
.text-link { color: var(--brand); font-size: 13px; font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.task-list { display: grid; }
.task-row { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 13px; align-items: center; padding: 15px 20px; border-top: 1px solid var(--line); }
.task-bar { height: 37px; border-radius: 5px; background: var(--warning); }
.task-bar.success { background: var(--success); }.task-bar.danger { background: var(--danger); }.task-bar.brand { background: var(--brand); }
.task-row p { margin: 3px 0 0; color: var(--ink-muted); font-size: 13px; }
.due { text-align: right; color: var(--ink-subtle); font-size: 12px; }
.due strong { display: block; color: var(--ink); font-size: 13px; font-weight: 600; }
.status { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 4px 8px; background: var(--surface-soft); color: var(--ink-muted); font-size: 11px; font-weight: 600; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }.status.warning { background: var(--warning-soft); color: var(--warning); }.status.success { background: var(--success-soft); color: var(--success); }.status.danger { background: var(--danger-soft); color: var(--danger); }
.project { padding: 18px 20px; border-top: 1px solid var(--line); }
.project:first-of-type { border-top: 0; }.project-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--ink-muted); font-size: 12px; }.progress { height: 7px; margin: 11px 0 8px; overflow: hidden; border-radius: 999px; background: #e7eeeb; }.progress span { display: block; height: 100%; border-radius: inherit; background: var(--brand); }.project.risk .progress span { background: var(--warning); }

.review-layout { display: grid; grid-template-columns: minmax(320px, .9fr) minmax(420px, 1.25fr); gap: 20px; align-items: start; }
.meeting-card { overflow: hidden; }.meeting-top { padding: 21px 22px 17px; background: #f8fbf9; border-bottom: 1px solid var(--line); }.meeting-top p { margin: 6px 0 0; color: var(--ink-muted); font-size: 13px; }.meeting-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }.chip { border: 1px solid var(--line); border-radius: 999px; padding: 4px 8px; color: var(--ink-muted); font-size: 11px; font-weight: 600; background: #fff; }.timeline { padding: 18px 22px; }.timeline h3 { margin-bottom: 12px; }.timeline-item { position: relative; padding: 0 0 17px 21px; color: var(--ink-muted); font-size: 13px; }.timeline-item::before { content: ""; position: absolute; left: 3px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: #9cb6ad; }.timeline-item:not(:last-child)::after { content: ""; position: absolute; left: 7px; top: 14px; width: 1px; bottom: -1px; background: var(--line); }.timeline-item.done::before { background: var(--success); }.timeline-item.current { color: var(--ink); font-weight: 600; }.timeline-item.current::before { background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }.summary { padding: 0 22px 22px; }.summary p { color: var(--ink-muted); font-size: 14px; }.quote { margin: 14px 0 0; padding: 13px 14px; border-left: 3px solid #72bda9; border-radius: 0 9px 9px 0; background: var(--brand-soft); color: #315d52; font-size: 13px; line-height: 1.55; }
.review-card { overflow: hidden; }.review-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 20px 21px; border-bottom: 1px solid var(--line); }.review-header p { margin: 4px 0 0; color: var(--ink-muted); font-size: 13px; }.draft-list { display: grid; }.draft { padding: 17px 20px; border-bottom: 1px solid var(--line); }.draft-top { display: flex; align-items: flex-start; gap: 11px; }.draft-check { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brand); }.draft-title { flex: 1; min-width: 0; }.draft-title h3 { margin: 0; font-size: 15px; }.draft-title p { margin: 3px 0 0; color: var(--ink-muted); font-size: 12px; }.draft-actions { display: flex; flex-wrap: wrap; gap: 7px; margin: 13px 0 0 29px; }.small-button { min-height: 30px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 4px 8px; background: #fff; color: #35544a; font-size: 12px; font-weight: 600; }.small-button:hover { border-color: var(--brand); color: var(--brand); }.small-button.is-selected { border-color: #67b7a4; background: var(--brand-soft); color: #086e62; }.issue-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0 29px; }.issue { border-radius: 6px; padding: 4px 7px; background: var(--warning-soft); color: #9a5a00; font-size: 11px; font-weight: 600; }.issue.good { background: var(--success-soft); color: var(--success); }
.publish-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 20px; background: #f8fbf9; }.publish-bar p { margin: 3px 0 0; color: var(--ink-muted); font-size: 12px; }.publish-bar strong { font-size: 14px; }
.table-card { overflow: hidden; }.table-tools { display: flex; gap: 10px; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }.search { width: min(100%, 320px); min-height: 38px; border: 1px solid var(--line-strong); border-radius: 9px; padding: 7px 11px; background: #fff; color: var(--ink); }.search:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); outline: 0; }.work-table { width: 100%; border-collapse: collapse; text-align: left; }.work-table th { padding: 10px 20px; background: #f8fbf9; color: var(--ink-muted); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }.work-table td { padding: 14px 20px; border-top: 1px solid var(--line); font-size: 13px; vertical-align: middle; }.work-table td:first-child { font-weight: 600; }.work-table tr:hover td { background: #fbfdfc; }
.empty { padding: 48px 20px; color: var(--ink-muted); text-align: center; }.empty strong { display: block; margin-bottom: 5px; color: var(--ink); }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 9; max-width: min(380px, calc(100vw - 32px)); padding: 12px 16px; border: 1px solid #9dcfbd; border-radius: 11px; background: #f0faf6; color: #175544; box-shadow: var(--shadow); font-size: 13px; font-weight: 600; transform: translateY(20px); opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease; }.toast.show { opacity: 1; transform: translateY(0); }
.login-page { display: grid; min-height: 100vh; place-items: center; padding: 24px; background: radial-gradient(circle at top left, #dff4ec 0, transparent 32%), var(--canvas); }.login-card { width: min(100%, 440px); padding: 34px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }.login-brand { margin-bottom: 28px; padding: 0; color: var(--ink); }.login-brand small { color: var(--ink-muted); }.login-card h1 { margin-bottom: 8px; }.login-card form { display: grid; gap: 15px; margin-top: 22px; }.login-card label { display: grid; gap: 7px; color: var(--ink-muted); font-size: 13px; font-weight: 600; }.login-card input { min-height: 44px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 9px 11px; color: var(--ink); }.login-card input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); outline: 0; }.login-card .button { width: 100%; margin-top: 4px; }.login-error { margin: 18px 0 -3px; padding: 9px 11px; border-radius: 9px; background: var(--danger-soft); color: var(--danger); font-size: 13px; }

@media (max-width: 1040px) { .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.review-layout, .content-grid { grid-template-columns: 1fr; }.sidebar { width: 205px; }.shell { grid-template-columns: 205px minmax(0, 1fr); } }
@media (max-width: 740px) { .shell { display: block; }.sidebar { position: sticky; z-index: 5; top: 0; width: 100%; height: auto; padding: 11px 14px 8px; gap: 9px; }.brand { padding: 0 4px; }.brand small, .nav-label, .sidebar-footer { display: none; }.nav { display: flex; overflow: auto; gap: 4px; padding-bottom: 1px; }.nav a { flex: 0 0 auto; min-height: 36px; padding: 7px 9px; font-size: 13px; }.nav-icon { width: auto; }.page { padding: 20px 16px 36px; }.topbar { margin-bottom: 21px; }.top-actions .button { display: none; }.page-heading { display: block; margin-bottom: 20px; }.page-heading .button { width: 100%; margin-top: 14px; }.stat-grid { gap: 10px; margin-bottom: 20px; }.stat { padding: 15px; }.stat-number { font-size: 24px; }.attention { padding: 15px; }.card-head, .review-header { padding: 16px; }.task-row { grid-template-columns: 6px minmax(0, 1fr); padding: 13px 16px; }.due { grid-column: 2; text-align: left; }.task-bar { height: 42px; }.meeting-top, .timeline, .summary { padding-left: 16px; padding-right: 16px; }.draft { padding: 15px 16px; }.publish-bar { position: sticky; bottom: 0; flex-direction: column; align-items: stretch; padding: 13px 16px; border-top: 1px solid var(--line); box-shadow: 0 -8px 18px rgba(23,49,43,.05); }.publish-bar .button { width: 100%; }.work-table th:nth-child(3), .work-table td:nth-child(3), .work-table th:nth-child(4), .work-table td:nth-child(4) { display: none; }.work-table th, .work-table td { padding-left: 14px; padding-right: 14px; } }
