/* 项目实施监控中心视觉系统 */
:root {
  color-scheme: light;
  --ledger-canvas: #f4f3ef;
  --ledger-paper: #fbfaf7;
  --ledger-raised: #ffffff;
  --ledger-inset: #efeee9;
  --ink-primary: #202722;
  --ink-secondary: #56615a;
  --ink-tertiary: #7c857f;
  --ink-muted: #a1a7a2;
  --rule-soft: rgba(35, 46, 39, 0.08);
  --rule-standard: rgba(35, 46, 39, 0.13);
  --bank-green: #176b4d;
  --bank-green-deep: #0f563d;
  --bank-green-soft: #e5f0ea;
  --approval-green: #267557;
  --warning-amber: #a76616;
  --warning-soft: #f7ead7;
  --seal-red: #a9463d;
  --seal-soft: #f5e5e2;
  --slate-soft: #e8ece9;
  --shadow-raised: 0 0 0 1px rgba(20, 34, 26, 0.05), 0 1px 2px rgba(20, 34, 26, 0.05), 0 8px 24px rgba(20, 34, 26, 0.035);
  --radius-small: 7px;
  --radius-medium: 12px;
  --radius-large: 18px;
  --sidebar-width: 248px;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--ledger-canvas); }

body {
  margin: 0;
  color: var(--ink-primary);
  background: var(--ledger-canvas);
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

.login-screen {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background: var(--ledger-canvas);
}
.login-panel {
  width: min(430px, 100%);
  padding: 38px;
  border-radius: var(--radius-large);
  background: var(--ledger-paper);
  box-shadow: var(--shadow-raised);
}
.login-mark { width: 44px; height: 44px; margin-bottom: 30px; }
.login-panel h1 { margin: 6px 0 10px; font-family: "Songti SC", serif; font-size: 29px; letter-spacing: -.035em; }
.login-panel > p:not(.eyebrow) { margin: 0; color: var(--ink-secondary); font-size: 12px; line-height: 1.7; }
.login-button {
  width: 100%;
  min-height: 46px;
  margin-top: 28px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--bank-green-deep);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  transition: background-color 160ms, transform 120ms;
}
.login-button:hover { background: var(--bank-green); }
.login-button:active { transform: scale(.98); }
.login-button:focus-visible { outline: 3px solid rgba(23,107,77,.22); outline-offset: 3px; }
.login-panel > span { display: block; margin-top: 12px; color: var(--ink-muted); font-size: 9px; text-align: center; }

button, input { font: inherit; }
button { color: inherit; }

.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  padding: 24px 16px 18px;
  border-right: 1px solid var(--rule-soft);
  background: var(--ledger-canvas);
}

.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 25px; }
.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  color: #f7fbf8;
  background: var(--bank-green-deep);
  font-family: "Songti SC", serif;
  font-size: 20px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
}
.brand strong { display: block; font-size: 15px; font-weight: 650; letter-spacing: .01em; }
.brand span { display: block; margin-top: 2px; color: var(--ink-tertiary); font-size: 12px; }

.nav-list { display: grid; gap: 4px; }
.project-switcher {
  position: relative;
  width: 100%;
  min-height: 82px;
  margin-bottom: 18px;
  padding: 12px 34px 12px 13px;
  border: 1px solid var(--rule-soft);
  border-radius: 10px;
  color: var(--ink-primary);
  background: rgba(255,255,255,.42);
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms, background-color 160ms, transform 120ms;
}
.project-switcher:hover { border-color: rgba(23,107,77,.2); background: rgba(255,255,255,.68); }
.project-switcher:active { transform: scale(.985); }
.project-switcher:focus-visible { outline: 2px solid rgba(23,107,77,.35); outline-offset: 2px; }
.project-switcher span, .project-switcher strong, .project-switcher small { display: block; }
.project-switcher span { color: var(--ink-muted); font-size: 9px; font-weight: 700; letter-spacing: .1em; }
.project-switcher strong { margin-top: 5px; overflow: hidden; font-size: 12px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.project-switcher small { margin-top: 3px; overflow: hidden; color: var(--ink-tertiary); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.project-switcher b { position: absolute; top: 50%; right: 13px; color: var(--ink-muted); font-size: 13px; transform: translateY(-50%); }
.nav-item {
  position: relative;
  display: grid;
  min-height: 44px;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  width: 100%;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  color: var(--ink-secondary);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background-color 160ms cubic-bezier(.23,1,.32,1), color 160ms cubic-bezier(.23,1,.32,1), transform 120ms cubic-bezier(.23,1,.32,1);
}
.nav-item:hover { background: rgba(31, 79, 59, .06); color: var(--ink-primary); }
.nav-item:active { transform: scale(.98); }
.nav-item:focus-visible { outline: 2px solid rgba(23,107,77,.35); outline-offset: 2px; }
.nav-item.is-active { color: var(--bank-green-deep); background: var(--bank-green-soft); font-weight: 650; }
.nav-icon { width: 20px; color: currentColor; font-size: 16px; text-align: center; }
.nav-count { min-width: 24px; padding: 2px 7px; border-radius: 99px; color: var(--ink-tertiary); background: rgba(255,255,255,.62); font-size: 11px; text-align: center; font-variant-numeric: tabular-nums; }
.nav-count.is-warning { color: var(--warning-amber); }

.sidebar-foot { margin-top: auto; padding: 16px 8px 0; border-top: 1px solid var(--rule-soft); }
.connection-status { display: flex; align-items: center; gap: 10px; }
.connection-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warning-amber); box-shadow: 0 0 0 4px var(--warning-soft); }
.connection-status strong, .connection-status span { display: block; }
.connection-status strong { font-size: 12px; font-weight: 650; }
.connection-status span { margin-top: 2px; color: var(--ink-tertiary); font-size: 11px; }
.sidebar-foot p { margin: 14px 0 0; color: var(--ink-muted); font-size: 10px; line-height: 1.55; }
.signed-in-user { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rule-soft); }
.signed-in-user span, .signed-in-user strong { display: block; }
.signed-in-user span { color: var(--ink-muted); font-size: 9px; }
.signed-in-user strong { max-width: 122px; margin-top: 2px; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.signed-in-user button { min-width: 44px; min-height: 34px; border: 1px solid var(--rule-soft); border-radius: 7px; color: var(--ink-tertiary); background: rgba(255,255,255,.45); font-size: 9px; cursor: pointer; }
.signed-in-user button:hover { color: var(--seal-red); background: var(--seal-soft); }

.main-content { width: calc(100% - var(--sidebar-width)); margin-left: var(--sidebar-width); padding: 0 42px 56px; }
.topbar {
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--rule-soft);
}
.eyebrow, .section-kicker { margin: 0 0 5px; color: var(--ink-tertiary); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.topbar h1 { margin: 0; font-family: "Songti SC", "STSong", serif; font-size: 27px; font-weight: 700; letter-spacing: -.03em; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.sync-state { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border: 1px solid var(--rule-soft); border-radius: 8px; color: var(--ink-tertiary); background: rgba(255,255,255,.45); font-size: 11px; }
.sync-state.is-ok { color: var(--approval-green); }
.sync-state.is-error { color: var(--seal-red); }
.sync-pulse { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sync-state:not(.is-ok):not(.is-error) .sync-pulse { animation: pulse 1.2s infinite; }
.icon-button { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--rule-soft); border-radius: 8px; background: rgba(255,255,255,.55); cursor: pointer; transition: background-color 160ms, transform 120ms; }
.icon-button:hover { background: var(--ledger-raised); }
.icon-button:active { transform: scale(.96); }
.icon-button:focus-visible, .text-button:focus-visible, .filter-chip:focus-visible, .status-button:focus-visible, .criteria-button:focus-visible { outline: 2px solid rgba(23,107,77,.36); outline-offset: 2px; }

.view { display: none; padding-top: 28px; }
.view.is-visible { display: block; animation: fade-in 220ms cubic-bezier(.23,1,.32,1); }

.focus-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(310px, .85fr); gap: 18px; }
.current-card, .progress-card, .section-block {
  border-radius: var(--radius-medium);
  background: var(--ledger-paper);
  box-shadow: var(--shadow-raised);
}
.current-card { position: relative; overflow: hidden; min-height: 290px; padding: 28px 30px 25px; color: #f3f7f4; background: var(--bank-green-deep); }
.current-card.is-blocked { background: #6f4a24; }
.current-card.is-blocked .live-dot { background: #f3bc72; box-shadow: 0 0 0 4px rgba(243,188,114,.16); }
.current-card::after { content: ""; position: absolute; right: -48px; bottom: -68px; width: 220px; height: 220px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: 0 0 0 32px rgba(255,255,255,.025), 0 0 0 68px rgba(255,255,255,.018); pointer-events: none; }
.focus-label { display: flex; align-items: center; gap: 9px; color: rgba(242,249,245,.72); font-size: 11px; font-weight: 650; letter-spacing: .08em; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #81d4ac; box-shadow: 0 0 0 4px rgba(129,212,172,.14); }
.current-copy { position: relative; z-index: 1; max-width: 620px; margin-top: 31px; }
.task-code { display: inline-block; color: var(--ink-tertiary); font-family: "SFMono-Regular", Consolas, monospace; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.current-card .task-code { color: rgba(242,249,245,.54); }
.current-copy h2 { margin: 7px 0 10px; font-family: "Songti SC", "STSong", serif; font-size: clamp(25px, 2.6vw, 38px); font-weight: 700; letter-spacing: -.035em; text-wrap: balance; }
.current-copy p { max-width: 590px; margin: 0; color: rgba(242,249,245,.68); font-size: 13px; line-height: 1.65; text-wrap: pretty; }
.current-meta { position: relative; z-index: 1; display: flex; align-items: flex-end; gap: 38px; margin-top: 29px; }
.current-meta div span, .current-meta div strong { display: block; }
.current-meta div span { color: rgba(242,249,245,.5); font-size: 10px; }
.current-meta div strong { margin-top: 4px; font-size: 13px; font-weight: 600; }
.text-button { min-height: 40px; margin-left: auto; padding: 0; border: 0; color: var(--bank-green); background: transparent; font-size: 12px; font-weight: 650; cursor: pointer; }
.current-card .text-button { color: #bce6d1; }
.text-button:hover { text-decoration: underline; text-underline-offset: 4px; }

.progress-card { display: flex; flex-direction: column; min-height: 290px; padding: 27px 26px 22px; }
.progress-head { display: flex; align-items: flex-start; justify-content: space-between; }
.progress-head span { display: block; color: var(--ink-tertiary); font-size: 11px; }
.progress-head strong { display: block; margin-top: 5px; font-family: "Songti SC", serif; font-size: 42px; line-height: 1; font-variant-numeric: tabular-nums; }
.version-chip { padding: 5px 8px; border-radius: 6px; color: var(--ink-secondary) !important; background: var(--ledger-inset); font-family: "SFMono-Regular", Consolas, monospace; font-size: 9px !important; }
.progress-track { height: 6px; margin: 24px 0 19px; overflow: hidden; border-radius: 99px; background: var(--ledger-inset); }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--bank-green); transition: width 500ms cubic-bezier(.23,1,.32,1); }
.progress-counts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.progress-counts div { min-width: 0; }
.progress-counts strong, .progress-counts span { display: block; }
.progress-counts strong { font-size: 18px; font-weight: 650; font-variant-numeric: tabular-nums; }
.progress-counts span { margin-top: 2px; color: var(--ink-tertiary); font-size: 10px; }
.next-step { margin-top: auto; padding-top: 17px; border-top: 1px solid var(--rule-soft); }
.next-step span { display: block; color: var(--ink-tertiary); font-size: 10px; }
.next-step strong { display: block; margin-top: 5px; overflow: hidden; font-size: 12px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }

.section-block { margin-top: 18px; padding: 24px 26px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.section-heading.compact { align-items: center; }
.section-heading h2 { margin: 0; font-family: "Songti SC", serif; font-size: 20px; letter-spacing: -.025em; }
.section-note { color: var(--ink-tertiary); font-size: 10px; }
.stage-rail { position: relative; display: grid; grid-template-columns: repeat(7, minmax(90px, 1fr)); gap: 0; margin-top: 30px; }
.stage-rail::before { content: ""; position: absolute; top: 17px; left: 7%; right: 7%; height: 1px; background: var(--rule-standard); }
.stage-node { position: relative; display: grid; justify-items: center; padding: 0 7px; text-align: center; }
.stage-marker { position: relative; z-index: 1; display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--rule-standard); border-radius: 50%; color: var(--ink-tertiary); background: var(--ledger-paper); font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stage-node.completed .stage-marker { border-color: var(--bank-green); color: #fff; background: var(--bank-green); }
.stage-node.in_progress .stage-marker { border: 2px solid var(--bank-green); color: var(--bank-green); box-shadow: 0 0 0 5px var(--bank-green-soft); }
.stage-node.blocked .stage-marker { border-color: var(--seal-red); color: var(--seal-red); background: var(--seal-soft); }
.stage-name { margin-top: 11px; font-size: 11px; font-weight: 650; }
.stage-percent { margin-top: 3px; color: var(--ink-muted); font-size: 9px; font-variant-numeric: tabular-nums; }

.lower-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; }
.attention-panel, .activity-panel { min-height: 300px; }
.attention-list, .timeline { display: grid; gap: 2px; margin-top: 18px; }
.attention-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; min-height: 58px; padding: 8px 10px; border-radius: 8px; cursor: pointer; transition: background-color 160ms; }
.attention-item:hover { background: rgba(30,52,40,.035); }
.attention-symbol { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 8px; color: var(--warning-amber); background: var(--warning-soft); font-size: 12px; font-weight: 800; }
.attention-symbol.blocked { color: var(--seal-red); background: var(--seal-soft); }
.attention-item strong, .attention-item span { display: block; }
.attention-item strong { font-size: 12px; }
.attention-item span { margin-top: 3px; color: var(--ink-tertiary); font-size: 10px; }
.attention-arrow { color: var(--ink-muted); }
.empty-state { display: grid; min-height: 180px; place-items: center; color: var(--ink-tertiary); font-size: 12px; text-align: center; }

.timeline-item { position: relative; display: grid; grid-template-columns: 11px 1fr; gap: 12px; padding: 7px 0 13px; }
.timeline-item::after { content: ""; position: absolute; top: 20px; bottom: -3px; left: 5px; width: 1px; background: var(--rule-soft); }
.timeline-item:last-child::after { display: none; }
.timeline-dot { position: relative; z-index: 1; width: 9px; height: 9px; margin-top: 4px; border: 2px solid var(--ledger-paper); border-radius: 50%; background: var(--bank-green); box-shadow: 0 0 0 1px rgba(23,107,77,.2); }
.timeline-copy p { margin: 0; font-size: 11px; line-height: 1.5; }
.timeline-copy time { display: block; margin-top: 3px; color: var(--ink-muted); font-size: 9px; font-variant-numeric: tabular-nums; }
.timeline.expanded { max-width: 820px; margin-top: 26px; }
.timeline.expanded .timeline-item { padding-bottom: 22px; }

.view-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.filter-group { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-chip { min-height: 36px; padding: 0 13px; border: 1px solid var(--rule-soft); border-radius: 7px; color: var(--ink-secondary); background: rgba(255,255,255,.42); font-size: 11px; cursor: pointer; transition: background-color 160ms, color 160ms, transform 120ms; }
.filter-chip:hover { background: var(--ledger-paper); }
.filter-chip:active { transform: scale(.97); }
.filter-chip.is-selected { border-color: rgba(23,107,77,.16); color: var(--bank-green-deep); background: var(--bank-green-soft); font-weight: 650; }
.search-box { display: flex; width: min(280px, 100%); min-height: 40px; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid var(--rule-soft); border-radius: 8px; color: var(--ink-muted); background: var(--ledger-inset); }
.search-box:focus-within { border-color: rgba(23,107,77,.35); box-shadow: 0 0 0 3px rgba(23,107,77,.08); }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--ink-primary); background: transparent; font-size: 11px; }
.search-box input::placeholder { color: var(--ink-muted); }

.task-table-wrap { overflow: hidden; border-radius: var(--radius-medium); background: var(--ledger-paper); box-shadow: var(--shadow-raised); }
.task-table { width: 100%; border-collapse: collapse; }
.task-table th { padding: 13px 16px; border-bottom: 1px solid var(--rule-standard); color: var(--ink-tertiary); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.task-table td { padding: 15px 16px; border-bottom: 1px solid var(--rule-soft); color: var(--ink-secondary); font-size: 11px; vertical-align: middle; }
.task-table tr:last-child td { border-bottom: 0; }
.task-table tbody tr { transition: background-color 150ms; }
.task-table tbody tr:hover { background: rgba(34,71,51,.025); }
.task-name-cell strong { display: block; color: var(--ink-primary); font-size: 12px; }
.task-name-cell span { display: block; margin-top: 4px; color: var(--ink-muted); font-family: "SFMono-Regular", Consolas, monospace; font-size: 9px; }
.status-pill { display: inline-flex; min-height: 25px; align-items: center; gap: 6px; padding: 0 9px; border-radius: 99px; color: var(--ink-secondary); background: var(--slate-soft); font-size: 9px; font-weight: 650; white-space: nowrap; }
.status-pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-pill.completed { color: var(--approval-green); background: var(--bank-green-soft); }
.status-pill.in_progress { color: var(--bank-green-deep); background: #dcece4; }
.status-pill.review { color: var(--warning-amber); background: var(--warning-soft); }
.status-pill.blocked { color: var(--seal-red); background: var(--seal-soft); }
.status-pill.paused { color: var(--ink-tertiary); }
.criteria-mini { color: var(--ink-tertiary); font-variant-numeric: tabular-nums; }
.row-button { min-width: 40px; min-height: 36px; border: 0; color: var(--bank-green); background: transparent; font-size: 11px; font-weight: 650; cursor: pointer; }

.attention-board { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.attention-column { min-height: 420px; padding: 24px; border-radius: var(--radius-medium); background: var(--ledger-paper); box-shadow: var(--shadow-raised); }
.attention-column-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--rule-soft); }
.attention-column-head h2 { margin: 0; font-family: "Songti SC", serif; font-size: 19px; }
.attention-column-head span { min-width: 25px; padding: 3px 8px; border-radius: 99px; color: var(--warning-amber); background: var(--warning-soft); font-size: 10px; text-align: center; }
.attention-column.blocked .attention-column-head span { color: var(--seal-red); background: var(--seal-soft); }
.attention-card { margin-top: 13px; padding: 16px; border: 1px solid var(--rule-soft); border-radius: 9px; background: rgba(255,255,255,.45); cursor: pointer; }
.attention-card:hover { border-color: rgba(23,107,77,.22); }
.attention-card h3 { margin: 5px 0 7px; font-size: 13px; }
.attention-card p { margin: 0; color: var(--ink-tertiary); font-size: 10px; line-height: 1.55; }
.full-activity { margin-top: 0; min-height: 520px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 32px; padding: 18px 2px 0; border-top: 1px solid var(--rule-soft); color: var(--ink-muted); font-size: 9px; }
.filing-links { display: flex; align-items: center; gap: 14px; }
.filing-links a { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-tertiary); text-decoration: none; }
.filing-links a:hover { color: var(--bank-green); }
.filing-links img { width: 13px; height: 13px; }

.task-dialog { width: min(680px, calc(100% - 32px)); max-height: calc(100vh - 40px); padding: 0; overflow: hidden; border: 0; border-radius: var(--radius-large); background: var(--ledger-paper); box-shadow: 0 24px 80px rgba(24,34,28,.18), 0 0 0 1px rgba(24,34,28,.08); }
.task-dialog::backdrop { background: rgba(22,30,25,.34); backdrop-filter: blur(3px); }
.dialog-shell { display: flex; max-height: calc(100vh - 40px); flex-direction: column; }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; padding: 25px 27px 20px; border-bottom: 1px solid var(--rule-soft); }
.dialog-header h2 { margin: 6px 0 0; font-family: "Songti SC", serif; font-size: 24px; letter-spacing: -.025em; }
.dialog-body { overflow-y: auto; padding: 23px 27px 28px; }
.dialog-description { margin: 0; color: var(--ink-secondary); font-size: 12px; line-height: 1.65; }
.dialog-meta { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 19px; }
.meta-cell { padding: 12px; border-radius: 8px; background: var(--ledger-inset); }
.meta-cell span, .meta-cell strong { display: block; }
.meta-cell span { color: var(--ink-tertiary); font-size: 9px; }
.meta-cell strong { margin-top: 4px; font-size: 11px; font-weight: 650; }
.dialog-section { margin-top: 24px; }
.dialog-section h3 { margin: 0 0 12px; font-size: 12px; }
.dialog-section-heading { display: flex; align-items: center; justify-content: space-between; }
.dialog-section-heading span { color: var(--ink-tertiary); font-size: 10px; }
.criteria-list { display: grid; gap: 7px; }
.criteria-button { display: grid; min-height: 43px; grid-template-columns: 20px 1fr; align-items: center; gap: 10px; width: 100%; padding: 8px 11px; border: 1px solid var(--rule-soft); border-radius: 8px; color: var(--ink-secondary); background: rgba(255,255,255,.5); font-size: 11px; text-align: left; cursor: pointer; }
.criteria-button:hover { border-color: rgba(23,107,77,.22); }
.criteria-check { display: grid; width: 18px; height: 18px; place-items: center; border: 1px solid var(--rule-standard); border-radius: 5px; color: transparent; background: var(--ledger-raised); font-size: 11px; }
.criteria-button.is-done { color: var(--ink-tertiary); }
.criteria-button.is-done .criteria-check { border-color: var(--bank-green); color: white; background: var(--bank-green); }
.link-list { display: flex; flex-wrap: wrap; gap: 8px; }
.link-chip { display: inline-flex; min-height: 36px; align-items: center; padding: 0 11px; border: 1px solid var(--rule-soft); border-radius: 7px; color: var(--bank-green); background: rgba(255,255,255,.5); font-size: 10px; font-weight: 650; text-decoration: none; }
.link-chip:hover { border-color: rgba(23,107,77,.22); background: var(--bank-green-soft); }
.status-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.status-button { min-height: 38px; padding: 0 13px; border: 1px solid var(--rule-soft); border-radius: 7px; color: var(--ink-secondary); background: rgba(255,255,255,.6); font-size: 10px; cursor: pointer; transition: transform 120ms, border-color 150ms, background-color 150ms; }
.status-button:hover { border-color: rgba(23,107,77,.24); }
.status-button:active { transform: scale(.97); }
.status-button.is-active { border-color: rgba(23,107,77,.2); color: var(--bank-green-deep); background: var(--bank-green-soft); font-weight: 700; }
.save-hint { margin: 10px 0 0; color: var(--ink-muted); font-size: 9px; line-height: 1.5; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 100; max-width: 360px; padding: 11px 15px; border-radius: 8px; color: #f6faf7; background: var(--bank-green-deep); box-shadow: 0 12px 30px rgba(20,34,26,.18); font-size: 11px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity 180ms, transform 180ms; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast.is-error { background: #7d342f; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@keyframes fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 50% { opacity: .35; } }

@media (max-width: 1080px) {
  :root { --sidebar-width: 210px; }
  .main-content { padding-inline: 26px; }
  .focus-grid { grid-template-columns: 1fr; }
  .progress-card { min-height: 245px; }
  .stage-rail { overflow-x: auto; grid-template-columns: repeat(7, 120px); padding-bottom: 8px; }
  .stage-rail::before { left: 60px; right: 60px; }
}

@media (max-width: 760px) {
  :root { --sidebar-width: 0px; }
  .app-shell { display: block; }
  .sidebar { position: static; width: 100%; height: auto; padding: 15px 14px 10px; border-right: 0; border-bottom: 1px solid var(--rule-soft); }
  .brand { padding: 0 3px 12px; }
  .brand-mark { width: 34px; height: 34px; }
  .nav-list { display: flex; overflow-x: auto; }
  .project-switcher { min-height: 64px; margin-bottom: 10px; }
  .nav-item { flex: 0 0 auto; grid-template-columns: 20px auto auto; padding: 0 10px; }
  .sidebar-foot { display: none; }
  .main-content { width: 100%; margin-left: 0; padding: 0 14px 38px; }
  .topbar { min-height: 80px; }
  .topbar h1 { font-size: 23px; }
  .sync-state { display: none; }
  .view { padding-top: 18px; }
  .current-card { min-height: 310px; padding: 24px 21px 22px; }
  .current-meta { flex-wrap: wrap; gap: 20px 32px; }
  .current-meta .text-button { width: 100%; margin-left: 0; text-align: left; }
  .progress-counts { grid-template-columns: repeat(2,1fr); gap: 14px; }
  .lower-grid, .attention-board { grid-template-columns: 1fr; }
  .section-block { padding: 21px 18px; }
  .section-heading { align-items: flex-start; }
  .section-note { display: none; }
  .view-toolbar { align-items: stretch; flex-direction: column; }
  .search-box { width: 100%; }
  .task-table-wrap { overflow-x: auto; }
  .task-table { min-width: 720px; }
  .dialog-meta { grid-template-columns: 1fr; }
  .site-footer { align-items: flex-start; flex-direction: column; }
  .filing-links { align-items: flex-start; flex-direction: column; gap: 8px; }
}

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