/* 五育并举 · 育人与成长支持平台
   风格延续本仓 M01 自有目录页：深海军蓝侧栏、白/极淡灰画布、克制青绿高亮。不外链字体或 CDN。 */

:root {
  color-scheme: light;
  --navy-950: #071a2d;
  --navy-900: #0b243e;
  --navy-850: #0e2b47;
  --navy-800: #123451;
  --navy-700: #1d496c;
  --navy-600: #2c5b80;
  --ink: #172b3d;
  --ink-soft: #3a5266;
  --muted: #607184;
  --subtle: #8796a3;
  --line: #dfe6ec;
  --soft-line: #ebf0f3;
  --paper: #ffffff;
  --canvas: #f4f7f9;
  --canvas-2: #f8fafb;
  --teal: #147b7d;
  --teal-strong: #0f6466;
  --teal-soft: #e8f4f2;
  --teal-line: #b9dcd6;
  --info: #2f6690;
  --info-soft: #eaf2f8;
  --success: #2f7a55;
  --success-soft: #e9f4ee;
  --warning: #9a6a1c;
  --warning-soft: #fbf4e6;
  --danger: #a23d34;
  --danger-soft: #fbecea;
  --d: #6f8fb0;
  --z: #4c86a8;
  --t: #5d9b84;
  --m: #a184a3;
  --l: #af8a55;
  --x: #b08a48;
  --u: #728494;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(15, 42, 64, .04), 0 8px 24px rgba(15, 42, 64, .05);
  --shadow-lg: 0 30px 90px rgba(3, 22, 38, .26);
  --sidebar: 256px;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
  font-family: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-size: 14px; line-height: 1.7; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--navy-700); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--navy-900); }
p { margin: 0; }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid rgba(20, 123, 125, .32); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mono { font-family: "Cascadia Mono", Consolas, "SFMono-Regular", monospace; font-size: 12px; color: var(--muted); }
.block { display: block; }
.center { display: flex; justify-content: center; padding-top: 14px; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.muted-small { color: var(--subtle); font-size: 12px; }
.stack { display: flex; flex-direction: column; gap: 20px; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 8px 14px; color: #fff; background: var(--navy-800); border-radius: 6px; }
.skip-link:focus { top: 12px; }

/* ---------- 启动与登录 ---------- */
.boot { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; }
.boot-mark { width: 56px; height: 56px; display: grid; place-items: center; color: #e6f3f0; background: var(--navy-900); border-radius: 14px; font-family: var(--serif); font-size: 26px; }
.boot-text { color: var(--muted); }
.noscript { max-width: 520px; margin: 24px auto; padding: 16px; background: var(--warning-soft); border: 1px solid #ecdcb8; border-radius: 8px; }
.boot .gate, .boot .error-block { max-width: 560px; }

.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr); grid-template-rows: 1fr auto; background: var(--canvas); }
.login-brand { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 48px clamp(28px, 5vw, 80px); overflow: hidden; color: #d7e3ec; background: linear-gradient(160deg, var(--navy-950), var(--navy-850)); }
.login-brand::after { content: ""; position: absolute; right: -120px; top: -120px; width: 320px; height: 320px; border: 1px solid rgba(120, 185, 168, .16); border-radius: 50%; box-shadow: 0 0 0 46px rgba(120, 185, 168, .035), 0 0 0 92px rgba(120, 185, 168, .022); pointer-events: none; }
.login-copy h1 { margin: 10px 0 18px; color: #fff; font-family: var(--serif); font-size: clamp(34px, 3.6vw, 52px); font-weight: 600; line-height: 1.32; letter-spacing: .02em; }
.login-copy p:last-child { max-width: 540px; color: #a9bccb; font-size: 15px; line-height: 1.95; }
.login-points { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; color: #b8cad7; }
.login-points li { display: flex; gap: 10px; align-items: center; }
.login-points .icon { color: #8fcabd; }
.login-panel { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.login-card { width: min(440px, 100%); padding: 34px 32px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.login-card h2 { margin: 0 0 4px; font-size: 24px; font-weight: 620; }
.login-sub { color: var(--muted); margin-bottom: 22px !important; }
.profile-group { display: grid; gap: 8px; margin-bottom: 18px; }
.profile-option { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; text-align: left; background: var(--canvas-2); border: 1px solid var(--line); border-radius: 9px; cursor: pointer; transition: border-color .15s, background .15s; }
.profile-option:hover { border-color: var(--teal-line); background: var(--teal-soft); }
.profile-option:disabled { opacity: .6; cursor: progress; }
.profile-mark { width: 34px; height: 34px; display: grid; place-items: center; color: var(--navy-700); background: #fff; border: 1px solid var(--line); border-radius: 50%; }
.profile-text { flex: 1; display: flex; flex-direction: column; }
.profile-text strong { color: var(--navy-900); font-weight: 600; }
.profile-text small { color: var(--muted); font-size: 12px; }
.profile-arrow { color: var(--subtle); }
.login-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 14px; color: var(--subtle); font-size: 12px; }
.login-divider::before, .login-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.login-error { margin-top: 12px; }
.login-footer { grid-column: 1 / -1; display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; padding: 16px; color: #8ea3b3; background: var(--navy-950); font-size: 12px; }

/* ---------- 外框 ---------- */
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; width: var(--sidebar); display: flex; flex-direction: column; padding: 26px 16px 20px; overflow-y: auto; color: #d4e0e9; background: linear-gradient(180deg, var(--navy-950), #0a2036 70%, var(--navy-950)); border-right: 1px solid rgba(255, 255, 255, .05); }
.brand { display: flex; gap: 12px; align-items: center; padding: 0 8px 22px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; flex: none; color: #e6f3f0; background: rgba(77, 147, 139, .14); border: 1px solid rgba(151, 210, 198, .36); border-radius: 10px; font-family: var(--serif); font-size: 20px; }
.brand strong { display: block; color: #fff; font-size: 19px; font-weight: 650; letter-spacing: .14em; line-height: 1.3; }
.brand small { display: block; margin-top: 3px; color: #a3b8c8; font-size: 11px; letter-spacing: .08em; }
.side-nav { flex: 1; padding-top: 14px; }
.nav-group + .nav-group { margin-top: 18px; }
.nav-label { margin: 0 12px 6px; color: #6d879c; font-size: 11px; letter-spacing: .14em; }
.nav-item { min-height: 42px; display: flex; align-items: center; gap: 11px; margin: 2px 0; padding: 9px 12px; color: #b4c6d3; border-radius: 7px; font-size: 14px; transition: background .15s, color .15s; }
.nav-item:hover { color: #fff; background: rgba(255, 255, 255, .055); text-decoration: none; }
.nav-item .icon { color: #7f9bae; }
.nav-item.active { color: #fff; background: #143b52; box-shadow: inset 3px 0 #69aaa2; }
.nav-item.active .icon { color: #93cdc1; }
.nav-item.locked { color: #71889a; }
.nav-lock { margin-left: auto; display: inline-flex; color: #5f788b; }
.nav-lock .icon { width: 14px; height: 14px; }
.nav-count { margin-left: auto; min-width: 22px; padding: 0 7px; color: #0b2a2a; background: #8fcabd; border-radius: 10px; font-size: 11px; font-weight: 650; line-height: 20px; text-align: center; }
.side-foot { display: flex; gap: 10px; margin-top: 20px; padding: 14px 12px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 8px; background: rgba(255, 255, 255, .025); }
.side-foot strong { display: block; color: #cfdee7; font-size: 12px; font-weight: 560; }
.side-foot p { color: #7f98aa; font-size: 11px; line-height: 1.6; }
.status-dot { width: 7px; height: 7px; flex: none; margin-top: 7px; border-radius: 50%; background: #c0a466; box-shadow: 0 0 0 4px rgba(192, 164, 102, .12); }
.status-dot.real { background: #78b9a8; box-shadow: 0 0 0 4px rgba(120, 185, 168, .12); }
.nav-backdrop { display: none; }

.page-shell { min-height: 100vh; margin-left: var(--sidebar); display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; min-height: 64px; display: flex; align-items: center; gap: 18px; padding: 10px clamp(20px, 3vw, 44px); background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.2) blur(6px); }
.menu-btn { display: none; }
.crumb { display: flex; align-items: center; gap: 9px; min-width: 0; font-size: 13px; }
.crumb span { color: var(--subtle); white-space: nowrap; }
.crumb strong { color: var(--navy-900); font-weight: 600; white-space: nowrap; }
.crumb-sep { color: #c2ccd4 !important; }
.top-meta { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.chip { display: inline-flex; align-items: center; min-height: 26px; padding: 2px 10px; color: var(--navy-700); background: #eef3f7; border: 1px solid #dae4eb; border-radius: 5px; font-size: 12px; white-space: nowrap; }
.view-switch { display: inline-flex; align-items: center; gap: 8px; padding-left: 10px; border-left: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.select-compact { height: 32px; padding: 0 28px 0 10px; color: var(--navy-800); background: #fff; border: 1px solid #cfdbe3; border-radius: 6px; font-size: 13px; font-weight: 560; cursor: pointer; }
.identity-btn { display: inline-flex; align-items: center; gap: 8px; max-width: 220px; height: 36px; padding: 0 12px 0 4px; background: #fff; border: 1px solid var(--line); border-radius: 18px; cursor: pointer; }
.identity-btn:hover { background: var(--canvas-2); }
.identity-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--navy-800); }
.identity-avatar { width: 44px; height: 44px; display: grid; place-items: center; flex: none; color: var(--navy-700); background: #eaf1f5; border-radius: 50%; }
.identity-avatar.sm { width: 28px; height: 28px; }
.identity-avatar.sm .icon { width: 15px; height: 15px; }
.icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; flex: none; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: 7px; cursor: pointer; color: var(--navy-800); }
.icon-btn:hover { background: var(--canvas-2); }
.icon-btn.sm { width: 28px; height: 28px; }
.icon-btn.sm .icon { width: 14px; height: 14px; }

.env-banner, .lost-banner { display: flex; align-items: flex-start; gap: 10px; padding: 10px clamp(20px, 3vw, 44px); font-size: 13px; }
.env-banner { color: #2d5a5b; background: var(--teal-soft); border-bottom: 1px solid #d3e9e4; }
.env-banner .icon { margin-top: 3px; color: var(--teal); }
.env-banner strong, .lost-banner strong { font-weight: 620; }
.lost-banner { color: #7a4a10; background: var(--warning-soft); border-bottom: 1px solid #efdfbc; align-items: center; flex-wrap: wrap; }
.lost-banner p { flex: 1; min-width: 240px; }
.lost-actions { display: flex; gap: 8px; }

.main { flex: 1; width: 100%; max-width: 1400px; margin: 0 auto; padding: 30px clamp(20px, 3vw, 44px) 56px; outline: none; }
.page { display: flex; flex-direction: column; gap: 22px; }

.footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 22px clamp(20px, 3vw, 44px); color: #92a7b6; background: var(--navy-950); font-size: 12px; }
.footer strong { color: #d4e0e8; font-size: 13px; font-weight: 560; }
.footer p { margin-top: 3px; }
.provider { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; color: #b7cbd7; }

/* ---------- 页面标题 ---------- */
.page-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding-bottom: 4px; }
.page-heading { min-width: 0; max-width: 880px; }
.kicker { margin: 0 0 6px; color: var(--teal); font-size: 11px; font-weight: 650; letter-spacing: .16em; }
.kicker.light { color: #8fcabd; }
.page-heading h1 { margin: 0; font-family: var(--serif); font-size: clamp(26px, 2.4vw, 34px); font-weight: 600; letter-spacing: .02em; line-height: 1.35; overflow-wrap: anywhere; }
.page-description { margin-top: 10px !important; color: var(--muted); font-size: 14px; line-height: 1.85; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- 面板 ---------- */
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 18px 22px 0; }
.panel-head h2 { margin: 0; font-size: 16px; font-weight: 640; letter-spacing: .01em; }
.panel-desc { margin-top: 4px !important; color: var(--muted); font-size: 13px; }
.panel-actions { display: flex; gap: 8px; align-items: center; flex: none; }
.panel-body { padding: 16px 22px 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.panel-soft { background: var(--canvas-2); box-shadow: none; }
.panel-warning { border-color: #ecdcb8; background: #fffdf8; }

.grid-main { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.grid-form { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.grid-review { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr); gap: 22px; align-items: start; }
.col-main, .col-side { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.col-side { position: sticky; top: 86px; }

/* ---------- 统计与五育 ---------- */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.stat-label { color: var(--muted); font-size: 12px; }
.stat-value { color: var(--navy-900); font-family: Georgia, var(--serif); font-size: 26px; font-weight: 500; line-height: 1.3; }
.stat-note { color: var(--subtle); font-size: 11px; }
.domain-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.domain-card { position: relative; padding: 14px 14px 12px 18px; background: var(--canvas-2); border: 1px solid var(--soft-line); border-radius: 8px; }
.domain-bar { position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--u); }
.domain-card strong { display: block; color: var(--navy-900); font-size: 15px; font-weight: 620; }
.domain-card p { margin-top: 2px !important; color: var(--ink-soft); font-size: 12px; }
.domain-card small { color: var(--subtle); font-size: 11px; }
.domain-d .domain-bar, .domain-d .dot { background: var(--d); }
.domain-z .domain-bar, .domain-z .dot { background: var(--z); }
.domain-t .domain-bar, .domain-t .dot { background: var(--t); }
.domain-m .domain-bar, .domain-m .dot { background: var(--m); }
.domain-l .domain-bar, .domain-l .dot { background: var(--l); }
.domain-x .domain-bar, .domain-x .dot { background: var(--x); }
.domain-u .domain-bar, .domain-u .dot, .domain-none .dot { background: var(--u); }

/* ---------- 待办与时间线 ---------- */
.todo-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.todo + .todo { border-top: 1px solid var(--soft-line); }
.todo-link { display: flex; align-items: center; gap: 14px; padding: 13px 6px; color: inherit; border-radius: 8px; }
.todo-link:hover { background: var(--canvas-2); text-decoration: none; }
.todo-link.static:hover { background: transparent; }
.todo-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: none; border-radius: 9px; background: #eef3f7; color: var(--navy-700); }
.tone-warning { background: var(--warning-soft); color: var(--warning); }
.tone-info { background: var(--info-soft); color: var(--info); }
.tone-teal { background: var(--teal-soft); color: var(--teal); }
.todo-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.todo-text strong { color: var(--navy-900); font-weight: 580; overflow-wrap: anywhere; }
.todo-text small { color: var(--subtle); font-size: 12px; }
.todo-arrow { color: #a8b5bf; }
.timeline { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0; }
.timeline li { position: relative; display: flex; gap: 14px; padding: 0 0 16px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 14px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline-dot { width: 9px; height: 9px; flex: none; margin-top: 7px; border-radius: 50%; background: #fff; border: 2px solid var(--teal); }
.timeline-title { color: var(--navy-900); font-weight: 560; }
.timeline-title .status { margin-left: 6px; vertical-align: 1px; }
.timeline-text { margin: 4px 0 !important; color: var(--ink-soft); font-size: 13px; }
.timeline small { color: var(--subtle); font-size: 12px; }
.status-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.status-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--ink-soft); font-size: 13px; }
.quick-links { display: flex; flex-direction: column; }
.quick-link { display: flex; justify-content: space-between; align-items: center; padding: 10px 2px; color: var(--navy-800); border-bottom: 1px solid var(--soft-line); font-weight: 520; }
.quick-link:last-child { border-bottom: 0; }
.quick-link .icon { color: var(--subtle); transition: transform .15s; }
.quick-link:hover { text-decoration: none; color: var(--teal-strong); }
.quick-link:hover .icon { transform: translateX(3px); color: var(--teal); }
.plain-list { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: 13px; display: flex; flex-direction: column; gap: 6px; }

/* ---------- 状态徽标与指标标签 ---------- */
.status { display: inline-flex; align-items: center; min-height: 22px; padding: 1px 8px; border-radius: 4px; font-size: 12px; font-weight: 560; line-height: 1.5; white-space: nowrap; border: 1px solid transparent; }
.status-neutral { color: var(--navy-700); background: #eef3f7; border-color: #dce6ed; }
.status-info { color: var(--info); background: var(--info-soft); border-color: #d3e3ef; }
.status-success { color: var(--success); background: var(--success-soft); border-color: #cfe6d9; }
.status-warning { color: var(--warning); background: var(--warning-soft); border-color: #eedfbf; }
.status-danger { color: var(--danger); background: var(--danger-soft); border-color: #f0d2ce; }
.status-muted { color: #6f7f8b; background: #f3f5f7; border-color: #e5eaee; }
.indicator-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 2px 9px 2px 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; font-size: 12px; line-height: 1.6; }
.indicator-chip .dot, .chip-btn .dot, .indicator-group .dot { width: 7px; height: 7px; flex: none; border-radius: 50%; display: inline-block; }
.indicator-chip .code { color: var(--navy-800); font-weight: 650; letter-spacing: .02em; white-space: nowrap; }
.indicator-chip .name { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-line { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }

/* ---------- 提示 / 空态 / 加载 / 错误 ---------- */
.notice { display: flex; gap: 12px; padding: 13px 15px; border-radius: 8px; border: 1px solid; font-size: 13px; }
.notice strong { display: block; color: inherit; font-weight: 620; }
.notice p { margin-top: 2px !important; color: var(--ink-soft); }
.icon.notice-icon { width: 18px; height: 18px; margin-top: 2px; }
.notice > div { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.notice-info { color: var(--info); background: var(--info-soft); border-color: #d6e5f0; }
.notice-success { color: var(--success); background: var(--success-soft); border-color: #d1e7da; }
.notice-warning { color: var(--warning); background: var(--warning-soft); border-color: #eedfbf; }
.notice-danger { color: var(--danger); background: var(--danger-soft); border-color: #f0d2ce; }
.empty { padding: 34px 20px; text-align: center; color: var(--muted); }
.icon.empty-icon { width: 30px; height: 30px; color: #a4b3bf; margin-bottom: 8px; }
.empty h3 { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.empty p { font-size: 13px; margin-bottom: 12px !important; }
.loading { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 40px 16px; color: var(--muted); }
.spinner { width: 18px; height: 18px; border: 2px solid #d7e1e8; border-top-color: var(--teal); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-block { display: flex; gap: 12px; padding: 16px 18px; color: var(--danger); background: var(--danger-soft); border: 1px solid #f0d2ce; border-radius: 8px; }
.error-block strong { display: block; font-weight: 640; }
.error-block p { margin: 2px 0 8px !important; color: var(--ink-soft); font-size: 13px; }
.icon.error-icon { width: 18px; height: 18px; margin-top: 2px; }
.error-extra { margin: 0 0 8px; padding-left: 18px; color: var(--ink-soft); font-size: 12px; }
.gate { max-width: 640px; margin: 40px auto; padding: 36px; text-align: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.icon.gate-icon { width: 30px; height: 30px; color: var(--subtle); }
.gate h2 { margin: 10px 0 8px; font-size: 19px; }
.gate p { color: var(--muted); }

/* ---------- 表格 ---------- */
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--soft-line); border-radius: 8px; -webkit-overflow-scrolling: touch; }
.table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 13px; }
.table th, .table td { padding: 11px 14px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--soft-line); }
.table thead th { position: sticky; top: 0; color: var(--muted); background: #f7f9fb; font-size: 12px; font-weight: 560; white-space: nowrap; }
.table tbody tr:last-child td, .table tbody tr:last-child th { border-bottom: 0; }
.table tbody tr:hover { background: #fbfcfd; }
.table .num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.table .actions { text-align: right; white-space: nowrap; }
.cell-title { display: flex; flex-direction: column; min-width: 160px; }
.cell-title strong { color: var(--navy-900); font-weight: 580; overflow-wrap: anywhere; }
.cell-title small { color: var(--subtle); font-size: 12px; }
.row-actions { display: inline-flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; align-items: center; }
.table-map td:first-child { min-width: 170px; }
.table-map td:last-child { min-width: 200px; }
.row-missing { background: #fffaf0; }
.table-rubric { min-width: 880px; table-layout: fixed; }
.table-rubric th[scope="row"] { width: 150px; color: var(--navy-800); }
.table-rubric td { vertical-align: top; color: var(--ink-soft); font-size: 12px; line-height: 1.8; }
.row-errors { margin: 0; padding-left: 16px; font-size: 12px; color: var(--ink-soft); }

/* ---------- 标签页 ---------- */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; padding: 4px; background: #eef2f5; border-radius: 8px; align-self: flex-start; max-width: 100%; }
.tab { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; color: var(--ink-soft); background: transparent; border: 0; border-radius: 6px; cursor: pointer; font-size: 13px; }
.tab:hover { color: var(--navy-900); background: rgba(255, 255, 255, .6); }
.tab.active { color: var(--navy-900); background: #fff; box-shadow: 0 1px 3px rgba(15, 42, 64, .1); font-weight: 600; }
.tab-count { min-width: 20px; padding: 0 6px; color: var(--muted); background: rgba(15, 42, 64, .06); border-radius: 10px; font-size: 11px; line-height: 18px; text-align: center; }
.tab.active .tab-count { color: var(--teal-strong); background: var(--teal-soft); }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 6px 16px; border: 1px solid transparent; border-radius: 7px; font-size: 13px; font-weight: 560; line-height: 1.4; white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s, color .15s; text-decoration: none !important; }
.btn .icon { width: 16px; height: 16px; }
.btn-primary { color: #fff; background: var(--navy-800); border-color: var(--navy-800); }
.btn-primary:hover { background: var(--navy-700); border-color: var(--navy-700); }
.btn-secondary { color: var(--navy-800); background: #fff; border-color: #cfdbe3; }
.btn-secondary:hover { background: #f3f7f9; border-color: #b9cad6; }
.btn-ghost { color: var(--navy-700); background: transparent; }
.btn-ghost:hover { background: #eef3f7; }
.btn-danger-ghost { color: var(--danger); background: transparent; border-color: #f0d2ce; }
.btn-danger-ghost:hover { background: var(--danger-soft); }
.btn-sm { min-height: 30px; padding: 4px 11px; font-size: 12px; }
.btn-block { width: 100%; }
.btn:disabled, .btn[aria-busy="true"] { opacity: .55; cursor: not-allowed; }
.btn[aria-busy="true"] { cursor: progress; }
.btn.current { border-color: var(--teal-line); background: var(--teal-soft); color: var(--teal-strong); opacity: 1; }
.btn-group { display: inline-flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.text-btn { padding: 2px 4px; color: var(--navy-700); background: transparent; border: 0; font-size: 12px; cursor: pointer; }
.text-btn:hover { text-decoration: underline; }

/* ---------- 表单 ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label { color: var(--ink-soft); font-size: 13px; font-weight: 560; }
.req { color: var(--danger); }
.hint { color: var(--subtle); font-size: 12px; line-height: 1.6; }
.input { width: 100%; min-height: 38px; padding: 8px 11px; color: var(--ink); background: #fff; border: 1px solid #d3dee6; border-radius: 7px; font-size: 14px; transition: border-color .15s, box-shadow .15s; }
.input:hover { border-color: #bccbd6; }
.input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(20, 123, 125, .14); }
.input:disabled { color: var(--muted); background: #f5f7f9; cursor: not-allowed; }
.textarea { min-height: 90px; resize: vertical; line-height: 1.75; }
.select { cursor: pointer; }
.check { display: flex; align-items: flex-start; gap: 9px; padding: 4px 0; color: var(--ink-soft); font-size: 13px; cursor: pointer; }
.check input { width: 16px; height: 16px; margin: 3px 0 0; flex: none; accent-color: var(--teal); }
.checks { margin: 0; padding: 14px 16px; border: 1px solid var(--soft-line); border-radius: 8px; background: var(--canvas-2); display: flex; flex-direction: column; gap: 2px; }
.checks legend { padding: 0 6px; color: var(--navy-800); font-size: 13px; font-weight: 620; }
.radio-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.radio-card { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; transition: border-color .15s, background .15s; }
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card strong { color: var(--navy-900); font-size: 14px; }
.radio-card small { color: var(--muted); font-size: 12px; line-height: 1.5; }
.radio-card:hover { border-color: #bccbd6; }
.radio-card.selected { border-color: var(--teal); background: var(--teal-soft); box-shadow: inset 0 0 0 1px var(--teal); }
.radio-card:focus-within { outline: 3px solid rgba(20, 123, 125, .28); outline-offset: 2px; }
.form-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 4px; }
.sticky-actions { position: sticky; bottom: 0; z-index: 2; margin: 0 -22px -22px; padding: 14px 22px; background: rgba(255, 255, 255, .96); border-top: 1px solid var(--soft-line); border-radius: 0 0 var(--radius) var(--radius); }
.save-state { color: var(--subtle); font-size: 12px; }
.save-state.dirty { color: var(--warning); }
.save-state.clean { color: var(--success); }
.form-error:empty { display: none; }
.inline-field { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.inline-field .input { width: auto; min-width: 200px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

.evidence-editor { display: flex; flex-direction: column; gap: 10px; }
.evidence-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.evidence-list li { display: flex; align-items: center; gap: 10px; padding: 7px 8px 7px 10px; background: var(--canvas-2); border: 1px solid var(--soft-line); border-radius: 7px; }
.evidence-index { width: 22px; height: 22px; display: grid; place-items: center; flex: none; color: var(--teal-strong); background: var(--teal-soft); border-radius: 50%; font-size: 11px; font-weight: 650; }
.evidence-text { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 13px; }
.evidence-list .evidence-empty { color: var(--subtle); font-size: 12px; background: transparent; border-style: dashed; }
.inline-add { display: flex; gap: 8px; }
.inline-add .input { flex: 1; }
.evidence-read { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; color: var(--ink-soft); }

/* ---------- 卡片 ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.task-card { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 9px; transition: border-color .15s, box-shadow .15s; }
.task-card:hover { border-color: #c9d6df; box-shadow: var(--shadow); }
.task-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.task-card h3 { margin: 2px 0 0; font-size: 15px; font-weight: 620; }
.task-card p { color: var(--muted); font-size: 13px; line-height: 1.75; flex: 1; }
.task-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 8px; border-top: 1px solid var(--soft-line); }
.task-info { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.task-info h3 { margin: 0; font-size: 15px; }
.feedback-card { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; background: #fff; border: 1px solid #ecdcb8; border-left: 3px solid #c79a45; border-radius: 8px; }
.feedback-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.feedback-head strong { color: var(--navy-900); }
.feedback-head small { color: var(--subtle); }
.reading { display: flex; flex-direction: column; gap: 6px; }
.reading h3 { margin: 10px 0 0; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .08em; }
.reading h3:first-child { margin-top: 0; }
.reading p { color: var(--ink); font-size: 14px; line-height: 1.95; }
.meta-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-top: 6px; }
.meta-grid div { padding: 10px 12px; background: var(--canvas-2); border-radius: 7px; display: flex; flex-direction: column; }
.meta-grid span { color: var(--subtle); font-size: 11px; }
.meta-grid strong { color: var(--navy-900); font-size: 13px; font-weight: 580; overflow-wrap: anywhere; }
.result-card { padding: 14px 16px; background: var(--teal-soft); border: 1px solid var(--teal-line); border-radius: 8px; }
.result-card strong { display: block; color: var(--teal-strong); font-size: 16px; }
.result-card p:last-child { margin-top: 4px !important; color: var(--ink-soft); font-size: 13px; }
.mini-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.mini-list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--soft-line); }
.mini-list li:last-child { border-bottom: 0; }
.mini-list li > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mini-list small { color: var(--subtle); font-size: 12px; }
.soft-box { padding: 14px 16px; background: var(--canvas-2); border-radius: 8px; }
.soft-box h3 { margin: 0 0 8px; font-size: 13px; }

/* ---------- AI ---------- */
.ai-list { display: flex; flex-direction: column; gap: 12px; }
.ai-card { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; background: #fbfdfd; border: 1px dashed #b9dcd6; border-radius: 9px; }
.ai-card-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ai-flag { display: inline-flex; align-items: center; gap: 6px; color: var(--teal-strong); font-size: 12px; font-weight: 650; letter-spacing: .04em; margin-right: auto; }
.ai-flag .icon { width: 15px; height: 15px; }
.ai-text { color: var(--ink); font-size: 13px; line-height: 1.85; }
.ai-evidence ul { margin: 4px 0 0; padding-left: 18px; font-size: 12px; color: var(--ink-soft); }
.ai-evidence small { display: block; color: var(--subtle); }

/* ---------- 定义列表 ---------- */
.deflist { margin: 0; }
.deflist > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding: 10px 0; border-top: 1px solid var(--soft-line); }
.deflist > div:first-child { border-top: 0; }
.deflist dt { color: var(--muted); font-size: 12px; }
.deflist dd { margin: 0; color: var(--ink); font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.deflist-compact > div { grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding: 8px 0; }

/* ---------- 学校配置 ---------- */
.indicator-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.indicator-group { margin: 0; padding: 12px 14px; border: 1px solid var(--soft-line); border-radius: 8px; min-width: 0; }
.indicator-group legend { display: inline-flex; align-items: center; gap: 7px; padding: 0 6px; color: var(--navy-900); font-weight: 620; }
.indicator-group legend small { color: var(--subtle); font-weight: 400; }
.group-tools { display: flex; gap: 4px; justify-content: flex-end; margin-top: -4px; }
.check-grid { display: grid; grid-template-columns: 1fr; gap: 0; max-height: 260px; overflow-y: auto; padding-right: 4px; }
.check-indicator span { overflow-wrap: anywhere; }
.check-indicator strong { color: var(--navy-800); font-weight: 620; }

/* ---------- 数据接入 ---------- */
.connector-meta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.connector-meta .btn { margin-left: auto; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.file-drop { display: flex; align-items: center; gap: 12px; padding: 20px; color: var(--navy-800); background: var(--canvas-2); border: 1.5px dashed #c3d2dc; border-radius: 9px; cursor: pointer; font-weight: 560; }
.file-drop:hover { border-color: var(--teal); background: var(--teal-soft); }
.file-drop small { margin-left: auto; color: var(--subtle); font-weight: 400; }
.file-input:focus-visible + * , .file-drop:focus-within { outline: 3px solid rgba(20, 123, 125, .28); }
.file-summary, .preview-summary, .tally, .catalog-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.file-summary div, .preview-summary div, .tally div, .catalog-summary div { display: flex; flex-direction: column; gap: 2px; padding: 11px 13px; background: var(--canvas-2); border: 1px solid var(--soft-line); border-radius: 8px; min-width: 0; }
.file-summary span, .preview-summary span, .tally span, .catalog-summary span { color: var(--subtle); font-size: 11px; }
.file-summary strong, .preview-summary strong, .tally strong, .catalog-summary strong { color: var(--navy-900); font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.preview-summary .ok strong { color: var(--success); }
.preview-summary .warn strong { color: var(--warning); }

/* ---------- 报告 ---------- */
.sub-title { margin: 8px 0 0; font-size: 14px; font-weight: 620; }
.work-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.work-list li { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding: 10px 12px; background: var(--canvas-2); border-radius: 8px; }
.work-list p { color: var(--ink-soft); font-size: 13px; }
.trace { margin-top: 6px; padding: 10px 14px; background: var(--canvas-2); border-radius: 8px; font-size: 13px; }
.trace summary { color: var(--muted); cursor: pointer; }
.trace .deflist dd { font-family: "Cascadia Mono", Consolas, monospace; font-size: 12px; }

/* ---------- 指标目录 ---------- */
.catalog-summary { grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 2fr); align-items: stretch; }
.catalog-summary p { align-self: center; padding: 0 6px; color: var(--muted); font-size: 12px; }
.search-box { position: relative; flex: 1; min-width: 220px; max-width: 420px; }
.search-box .icon { position: absolute; left: 11px; top: 11px; color: var(--subtle); }
.search-box .input { padding-left: 36px; }
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-btn { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; color: var(--ink-soft); background: #fff; border: 1px solid var(--line); border-radius: 15px; font-size: 12px; cursor: pointer; }
.chip-btn:hover { border-color: #bccbd6; }
.chip-btn.active { color: var(--navy-900); border-color: var(--navy-700); box-shadow: inset 0 0 0 1px var(--navy-700); font-weight: 600; }
.indicator-list { display: flex; flex-direction: column; border: 1px solid var(--soft-line); border-radius: 9px; overflow: hidden; }
.indicator-row { position: relative; display: flex; align-items: center; gap: 16px; width: 100%; padding: 16px 20px 16px 24px; text-align: left; background: #fff; border: 0; border-bottom: 1px solid var(--soft-line); cursor: pointer; }
.indicator-row:last-child { border-bottom: 0; }
.indicator-row::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0; background: var(--u); }
.indicator-row.domain-d::before { background: var(--d); }
.indicator-row.domain-z::before { background: var(--z); }
.indicator-row.domain-t::before { background: var(--t); }
.indicator-row.domain-m::before { background: var(--m); }
.indicator-row.domain-l::before { background: var(--l); }
.indicator-row.domain-x::before { background: var(--x); }
.indicator-row:hover { background: #fbfcfd; }
.indicator-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.indicator-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.code-badge { padding: 1px 7px; color: var(--navy-800); background: #edf3f7; border: 1px solid #dce6ed; border-radius: 4px; font-size: 11px; font-weight: 650; letter-spacing: .03em; }
.indicator-main strong { color: var(--navy-900); font-size: 15px; font-weight: 600; }
.indicator-def { color: var(--muted); font-size: 13px; line-height: 1.75; }
.row-arrow { color: #a8b5bf; }
.source-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.source-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--soft-line); }
.source-list li > div { min-width: 0; display: flex; flex-direction: column; }
.source-list strong { color: var(--ink); font-size: 13px; font-weight: 560; }
.source-list small { color: var(--subtle); font-size: 12px; }

/* ---------- 对话框 ---------- */
.dialog { width: min(620px, calc(100vw - 32px)); max-height: min(88dvh, 860px); padding: 0; color: var(--ink); background: #fff; border: 0; border-radius: 12px; box-shadow: var(--shadow-lg); overflow: hidden; }
.dialog[open] { display: flex; flex-direction: column; }
.dialog-wide { width: min(880px, calc(100vw - 32px)); }
.dialog::backdrop { background: rgba(5, 25, 42, .55); backdrop-filter: blur(2px); }
.dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 20px 24px 14px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { margin: 0; font-size: 19px; font-weight: 640; overflow-wrap: anywhere; }
.dialog-body { flex: 1; padding: 18px 24px 22px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.dialog-foot { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; padding: 12px 24px; background: var(--canvas-2); border-top: 1px solid var(--line); }
.dialog-text { color: var(--ink-soft); line-height: 1.85; }
.identity-card { display: flex; gap: 14px; align-items: center; }
.identity-card strong { display: block; color: var(--navy-900); font-size: 16px; }
.identity-card p { color: var(--muted); font-size: 13px; }
.identity-section { padding-top: 14px; border-top: 1px solid var(--soft-line); }
.profile-list { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- 提示条 ---------- */
.toast-region { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: min(420px, calc(100vw - 40px)); pointer-events: none; }
.toast { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; color: #fff; background: var(--navy-900); border-radius: 9px; box-shadow: var(--shadow-lg); font-size: 13px; pointer-events: auto; animation: rise .2s ease; transition: opacity .3s, transform .3s; }
.toast .icon { margin-top: 2px; color: #8fcabd; }
.toast-warning .icon { color: #e3c07a; }
.toast-danger { background: #5d211c; }
.toast-danger .icon { color: #f3b1a8; }
.toast.leaving { opacity: 0; transform: translateY(6px); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* ---------- 响应式 ---------- */
@media (max-width: 1360px) {
  .grid-main { grid-template-columns: minmax(0, 1fr) 300px; }
  .grid-form { grid-template-columns: minmax(0, 1fr) 320px; }
  .domain-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1180px) {
  .grid-review { grid-template-columns: 1fr; }
  .grid-review .col-side { position: static; }
  .indicator-groups { grid-template-columns: 1fr; }
  .catalog-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .catalog-summary p { grid-column: 1 / -1; }
}

@media (max-width: 1023px) {
  .sidebar { transform: translateX(-100%); transition: transform .22s ease; box-shadow: 24px 0 60px rgba(5, 25, 42, .24); }
  .nav-open .sidebar { transform: none; }
  .nav-open { overflow: hidden; }
  .nav-open .nav-backdrop { display: block; position: fixed; inset: 0; z-index: 35; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(5, 25, 42, .45); }
  .page-shell { margin-left: 0; }
  .menu-btn { display: inline-grid; }
  .grid-main, .grid-form { grid-template-columns: 1fr; }
  .col-side { position: static; }
  .chip-scope { display: none; }
  .login { grid-template-columns: 1fr; }
  .login-brand { padding: 36px 28px; gap: 24px; }
  .login-points { display: none; }
}

@media (max-width: 767px) {
  body { font-size: 14px; }
  .topbar { gap: 10px; padding: 8px 14px; min-height: 56px; }
  .crumb > span:first-child, .crumb-sep { display: none; }
  .chip-version { display: none; }
  .view-switch { border-left: 0; padding-left: 0; }
  .view-switch > span { display: none; }
  .identity-name { display: none; }
  .identity-btn { padding: 0 4px; }
  .top-meta { gap: 6px; }
  .env-banner, .lost-banner { padding: 9px 14px; font-size: 12px; }
  .main { padding: 20px 14px 40px; }
  .page { gap: 16px; }
  .page-header { align-items: flex-start; }
  .page-actions { width: 100%; }
  .panel-head { padding: 14px 16px 0; flex-direction: column; }
  .panel-body { padding: 12px 16px 16px; }
  .sticky-actions { margin: 0 -16px -16px; padding: 12px 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .radio-row { grid-template-columns: 1fr; }
  .meta-grid { grid-template-columns: 1fr; }
  .domain-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 12px 14px; }
  .stat-value { font-size: 22px; }
  .deflist > div { grid-template-columns: 1fr; gap: 2px; }
  .source-list { grid-template-columns: 1fr; }
  .catalog-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer { flex-direction: column; align-items: flex-start; }
  .provider { align-items: flex-start; }
  .dialog, .dialog-wide { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); }
  .dialog-head { padding: 16px 16px 12px; }
  .dialog-body { padding: 14px 16px 18px; }
  .dialog-foot { padding: 10px 16px; }
  .tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .tab { white-space: nowrap; }
  .inline-add { flex-direction: column; }
  .connector-meta .btn { margin-left: 0; }
  .login-card { padding: 26px 20px; }
}

@media (max-width: 420px) {
  .top-meta > .status { display: none; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .domain-strip { grid-template-columns: 1fr 1fr; }
  .btn { padding: 6px 12px; }
  .page-heading h1 { font-size: 24px; }
  .file-drop small { display: none; }
  .toast-region { right: 10px; left: 10px; bottom: 10px; max-width: none; }
}

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

@media print {
  .sidebar, .topbar, .env-banner, .lost-banner, .footer, .page-actions, .btn, .tabs, .toast-region { display: none !important; }
  .page-shell { margin: 0; }
  .main { max-width: none; padding: 0; }
  .panel { box-shadow: none; break-inside: avoid; }
  body { background: #fff; }
}

/* ---------- 标准工作表与成长选摘（2026-11-09 R5 追加） ---------- */
.ws-effect { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 10px 14px; color: var(--ink-soft); background: var(--teal-soft); border: 1px solid var(--teal-line); border-radius: 8px; font-size: 13px; }
.ws-effect .icon { width: 16px; height: 16px; margin-top: 3px; color: var(--teal); }
.ws-code { display: inline-grid; place-items: center; min-width: 34px; height: 24px; padding: 0 7px; color: var(--teal-strong); background: var(--teal-soft); border: 1px solid var(--teal-line); border-radius: 6px; font-size: 12px; font-weight: 700; letter-spacing: .03em; }
.ws-code.sm { min-width: 28px; height: 20px; padding: 0 5px; font-size: 11px; vertical-align: 1px; }
.ws-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.ws-type-card { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; background: var(--canvas-2); border: 1px solid var(--soft-line); border-radius: var(--radius); }
.ws-type-head { display: flex; align-items: center; gap: 10px; }
.ws-type-head strong { color: var(--navy-900); font-size: 15px; font-weight: 620; }
.ws-type-card > p { color: var(--ink-soft); font-size: 13px; }
.ws-type-foot { margin-top: auto; padding-top: 4px; }
.ws-group { min-width: 0; margin: 0; padding: 16px 18px 18px; border: 1px solid var(--soft-line); border-radius: var(--radius); background: var(--paper); scroll-margin-top: 90px; }
.ws-group + .ws-group { margin-top: 4px; }
.ws-group > legend { padding: 0 8px; margin-left: -8px; color: var(--navy-900); font-size: 15px; font-weight: 640; }
.ws-group-help { margin: 0 0 14px; font-size: 12px; color: var(--muted); }
.ws-group-help summary { width: max-content; max-width: 100%; color: var(--navy-700); cursor: pointer; }
.ws-group-help p { margin-top: 6px !important; padding: 9px 12px; background: var(--canvas-2); border-radius: 7px; line-height: 1.7; }
.ws-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.ws-label { padding: 0; color: var(--ink-soft); font-size: 13px; font-weight: 560; }
.ws-error { color: var(--danger); font-size: 12px; }
.ws-error:empty { display: none; }
.input[aria-invalid="true"] { border-color: #dba59f; background: #fffafa; }
.ws-readonly { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 38px; padding: 7px 11px; color: var(--ink); background: #f5f7f9; border: 1px dashed #d3dee6; border-radius: 7px; font-size: 13px; overflow-wrap: anywhere; }
.ws-foreign { padding: 6px 10px; color: var(--warning); background: var(--warning-soft); border-radius: 6px; font-size: 12px; overflow-wrap: anywhere; }
.ws-warn { color: var(--warning); font-size: 12px; }
.ws-ids { font-family: "Cascadia Mono", Consolas, monospace; font-size: 13px; }
.ws-multi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px 12px; padding: 8px 12px; background: var(--canvas-2); border: 1px solid var(--soft-line); border-radius: 8px; }
.ws-multi.compact { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.ws-rows { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ws-row { display: grid; grid-template-columns: 140px minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; padding: 10px 12px; background: var(--canvas-2); border: 1px solid var(--soft-line); border-radius: 8px; }
.ws-row-static { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-soft); }
.ws-row-empty { padding: 10px 12px; color: var(--subtle); border: 1px dashed var(--line); border-radius: 8px; font-size: 12px; }
.ws-progress-head { display: flex; align-items: baseline; gap: 8px; }
.ws-progress-head strong { color: var(--navy-900); font-family: Georgia, var(--serif); font-size: 24px; font-weight: 500; }
.ws-progress-head span { color: var(--muted); font-size: 12px; }
.ws-progress { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ws-progress li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; font-size: 13px; }
.ws-progress a { color: var(--navy-800); overflow-wrap: anywhere; }
.ws-count { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.ws-count.complete { color: var(--success); font-weight: 600; }
.ws-bar { grid-column: 1 / -1; height: 4px; background: #e8eef2; border-radius: 2px; overflow: hidden; }
.ws-bar > span { display: block; height: 100%; background: var(--teal); border-radius: 2px; }
.ws-warnings { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.ws-warnings li { display: flex; gap: 6px; color: var(--warning); font-size: 12px; }
.ws-warnings .icon { width: 14px; height: 14px; margin-top: 3px; }
.ws-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.ws-step { display: flex; gap: 12px; align-items: flex-start; color: var(--subtle); }
.ws-step-dot { width: 24px; height: 24px; display: grid; place-items: center; flex: none; border: 1px solid var(--line); border-radius: 50%; background: #fff; font-size: 11px; font-weight: 650; }
.ws-step-dot .icon { width: 13px; height: 13px; }
.ws-step div { display: flex; flex-direction: column; }
.ws-step strong { font-size: 13px; font-weight: 600; }
.ws-step small { font-size: 12px; }
.ws-step.done { color: var(--success); }
.ws-step.done .ws-step-dot { color: #fff; background: var(--success); border-color: var(--success); }
.ws-step.active { color: var(--navy-900); }
.ws-step.active .ws-step-dot { color: var(--teal-strong); border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.ws-step.returned .ws-step-dot { color: var(--warning); border-color: var(--warning); box-shadow: 0 0 0 3px var(--warning-soft); }
.ws-review-reason { margin-top: 10px; padding: 9px 12px; background: #fff; border: 1px solid var(--soft-line); border-radius: 7px; }
.ws-review-reason small { color: var(--subtle); font-size: 12px; }
.ws-review-panel { border-color: var(--teal-line); box-shadow: inset 3px 0 0 var(--teal), var(--shadow); }
.excerpt { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.excerpt-group { min-width: 0; }
.excerpt-tools { margin-bottom: 4px; }
.excerpt-pick span { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.excerpt-banner { padding: 6px 12px; color: var(--warning); background: var(--warning-soft); border: 1px solid #eedfbf; border-radius: 6px; font-size: 12px; font-weight: 600; text-align: center; letter-spacing: .04em; }
.excerpt-preview { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border: 1px dashed var(--teal-line); border-radius: 8px; }
.excerpt-preview-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.excerpt-preview-head strong { color: var(--navy-900); }
.excerpt-works li { width: 100%; }
.excerpt-fields { margin: 0; width: 100%; display: flex; flex-direction: column; gap: 4px; }
.excerpt-fields > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; font-size: 13px; }
.excerpt-fields dt { color: var(--muted); font-size: 12px; }
.excerpt-fields dd { margin: 0; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }

@media (max-width: 767px) {
  .ws-group { padding: 14px 14px 16px; }
  .ws-multi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ws-multi.compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ws-row { grid-template-columns: 1fr; align-items: stretch; }
  .ws-types { grid-template-columns: 1fr; }
  .excerpt-fields > div { grid-template-columns: 1fr; gap: 0; }
  .todo-link { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; column-gap: 12px; row-gap: 6px; align-items: center; }
  .todo-link > .todo-icon { grid-column: 1; grid-row: 1; align-self: start; }
  .todo-link > .todo-text { grid-column: 2; grid-row: 1; }
  .todo-link > .todo-arrow { grid-column: 3; grid-row: 1; }
  .todo-link > :not(.todo-icon):not(.todo-text):not(.todo-arrow) { grid-column: 2 / -1; grid-row: 2; justify-self: start; min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
}