/* 项目中枢主样式表：深邃午夜蓝侧栏 + 纯白一体式页头 + 冰川冷瓷灰画布 + 皇家蓝宝石交互体系。
   按「色彩令牌 → 基础排印 → 侧栏与页头外框 → 表单按钮 → 面板标签 → 统计与表格 → 总览与项目页 → 剪辑排期 → 窄屏与打印 → 会议室大屏」组织。 */

:root {
  --navy-900: #0b1526;
  --navy-800: #102038;
  --navy-700: #1e3a8a;
  --navy-600: #1d4ed8;
  --accent: #1d4ed8;
  --accent-hover: #1e40af;
  --accent-soft: #eff6ff;
  --accent-line: #bfdbfe;
  --gold: #2563eb;
  --gold-soft: #eff6ff;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --soft: #f1f5f9;
  --na: #f1f5f9;
  --ink: #0f172a;
  --ink-2: #1e293b;
  --muted: #475569;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --red: #dc2626;
  --red-bg: #fef2f2;
  --yellow: #b45309;
  --yellow-bg: #fffbeb;
  --green: #059669;
  --green-bg: #ecfdf5;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 12px rgba(15, 23, 42, .03);
  --shadow-lift: 0 4px 14px rgba(15, 23, 42, .08);
  --side-w: 224px;
}

/* ---------- 基础排印 ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14.5px/1.6 "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
h1 { font-size: 22px; line-height: 1.35; margin: 0 0 6px; font-weight: 600; letter-spacing: -.015em; color: var(--ink); }
h2 { font-size: 16.5px; line-height: 1.4; margin: 28px 0 12px; font-weight: 600; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; color: var(--ink); }
h2::before { content: ""; width: 3px; height: 15px; border-radius: 2px; background: var(--accent); flex: none; }
h3 { font-size: 15px; line-height: 1.4; margin: 0 0 10px; font-weight: 600; color: var(--ink); }
p { margin: 6px 0; }
.muted { color: var(--muted); }
.small { font-size: 12.75px; line-height: 1.55; }
.nowrap { white-space: nowrap; }
.pre { white-space: pre-wrap; word-break: break-word; }
.path { word-break: break-all; }
.c-red, .stat b.c-red { color: var(--red); }
.c-yellow, .stat b.c-yellow { color: var(--yellow); }
.c-green, .stat b.c-green { color: var(--green); }
.c-blue, .stat b.c-blue { color: var(--accent); }
.tick { font-size: 15px; margin-right: 4px; }

/* ---------- 外框：顶部模式条、左侧午夜蓝导航栏、纯白一体式页头 ---------- */
.demo { background: #0f172a; color: #cbd5e1; text-align: center; font-size: 12px; padding: 5px 12px; letter-spacing: .02em; border-bottom: 1px solid rgba(148, 163, 184, .18); }
.demo.preview { background: #1e3a8a; color: #dbeafe; }
.shell { display: flex; min-height: 100vh; align-items: stretch; }
.side {
  width: var(--side-w); flex: none; background: var(--navy-900);
  color: #94a3b8; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, .06);
}
body:has(.demo) .side { height: calc(100vh - 30px); }
.brand { display: flex; align-items: center; gap: 11px; padding: 18px 18px 14px; color: #f8fafc; }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 9px; flex: none; display: grid; place-items: center;
  background: linear-gradient(135deg, #3b82f6, var(--accent)); color: #fff; font-weight: 700; font-size: 16px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, .32);
}
.brand .name { font-weight: 600; font-size: 16px; line-height: 1.25; letter-spacing: .01em; color: #f8fafc; }
.brand small { display: block; font-size: 11px; font-weight: 400; color: #8496ae; letter-spacing: .05em; margin-top: 2px; }
.side nav { display: flex; flex-direction: column; gap: 2px; padding: 4px 10px 14px; flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .14) transparent; }
.side nav a { padding: 7px 12px; border-radius: 8px; color: #cbd5e1; font-size: 13.75px; position: relative; transition: background .12s, color .12s; }
.side nav a:hover { text-decoration: none; background: rgba(255, 255, 255, .06); color: #fff; }
.side nav a.on { background: rgba(59, 130, 246, .18); color: #fff; font-weight: 600; }
.side nav a.on::before { content: ""; position: absolute; left: -10px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: #60a5fa; }
.side nav .sep { font-size: 11px; color: #8496ae; letter-spacing: .08em; padding: 14px 12px 4px; font-weight: 500; }
.side nav a.ext { color: #94a3b8; font-size: 12.75px; }
.side-foot { padding: 12px 14px 14px; border-top: 1px solid rgba(255, 255, 255, .08); flex: none; }
.who { display: flex; flex-direction: column; gap: 5px; font-size: 11.5px; color: #94a3b8; }
.who select { background: rgba(255, 255, 255, .07); color: #f8fafc; border-color: rgba(255, 255, 255, .14); min-height: 32px; font-size: 12.5px; width: 100%; border-radius: 7px; }
.who select option { color: var(--ink); background: #fff; }
.who a { color: #cbd5e1; }
.page { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.hero { background: var(--surface); border-bottom: 1px solid var(--line); color: var(--ink); }
.hero-in { max-width: 1360px; margin: 0 auto; padding: 18px 36px 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
.hero-in > :not(.find) { grid-column: 1; min-width: 0; }
.hero-in > .find { grid-column: 2; grid-row: 1 / 5; align-self: start; margin-left: 24px; }
.hero h1 { color: var(--ink); max-width: 980px; }
.hero h1 .muted { color: var(--muted); font-size: 14.5px; font-weight: 400; margin-left: 6px; }
.hero .sub { color: var(--ink-2); margin: 4px 0 0; max-width: 960px; font-size: 13.5px; line-height: 1.85; }
.hero .sub a { color: var(--accent); font-weight: 500; }
.hero .find input[type=search] { height: 34px; width: 236px; border-radius: 8px; padding: 5px 12px; font-size: 13px; background: var(--soft); border: 1px solid var(--line); color: var(--ink); transition: background .12s, border-color .12s, box-shadow .12s; }
.hero .find input[type=search]::placeholder { color: #64748b; }
.hero .find input[type=search]:focus { background: var(--surface); border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(29, 78, 216, .14); }
main { max-width: 1360px; width: 100%; margin: 0 auto; padding: 20px 36px 56px; position: relative; }
main > h2:first-child { margin-top: 4px; }

/* ---------- 表单控件与按钮 ---------- */
select, input, button, textarea { font: inherit; color: inherit; }
select, input[type=text], input[type=date], input[type=search], input[type=url], input[type=number], input[type=password], textarea {
  border: 1px solid var(--line-strong); border-radius: 8px; padding: 5px 11px; background: var(--surface); max-width: 100%; min-height: 35px; font-size: 13.75px;
  transition: border-color .12s, box-shadow .12s;
}
textarea { width: 100%; line-height: 1.6; padding: 9px 11px; resize: vertical; }
input.num { width: 72px; font-variant-numeric: tabular-nums; }
input[type=file] { font-size: 12.75px; max-width: 100%; }
::placeholder { color: #64748b; }
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(29, 78, 216, .14); }
button:focus-visible, summary:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button, .btn {
  border: 1px solid var(--accent); background: var(--accent); color: #fff;
  border-radius: 8px; padding: 5px 15px; min-height: 35px; cursor: pointer; font-weight: 500; font-size: 13.5px; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(29, 78, 216, .16), inset 0 1px 0 rgba(255, 255, 255, .12); transition: background .12s, border-color .12s, box-shadow .12s, transform .05s;
}
button:hover, .btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); text-decoration: none; }
button:active { transform: translateY(1px); }
button.ghost, .btn.ghost { background: var(--surface); color: var(--ink-2); border-color: var(--line-strong); font-weight: 500; box-shadow: 0 1px 2px rgba(15, 23, 42, .03); }
button.ghost:hover, .btn.ghost:hover { background: var(--soft); border-color: #94a3b8; color: var(--ink); }
button.danger, .btn.danger { background: var(--surface); color: var(--red); border-color: #fca5a5; box-shadow: none; }
button.danger:hover, .btn.danger:hover { background: var(--red-bg); border-color: var(--red); }
button.sm, .btn.sm { padding: 3px 11px; min-height: 28px; font-size: 12.5px; border-radius: 6px; }
.formrow { display: flex; gap: 8px 10px; flex-wrap: wrap; align-items: center; margin: 8px 0; }
.formrow > span { color: var(--ink-2); font-size: 13px; }
.inline { display: inline-flex; gap: 6px; align-items: center; margin-left: 6px; vertical-align: middle; }
.fg { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px 14px; align-items: end; margin: 8px 0; }
.fg.fg-compact { grid-template-columns: repeat(auto-fit, minmax(136px, 1fr)); }
.f { display: grid; gap: 4px; font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
.f > input, .f > select, .f > textarea { width: 100%; font-weight: 400; }
.fg > button { justify-self: start; }
label { cursor: pointer; }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); width: 14.5px; height: 14.5px; vertical-align: -2px; }

/* ---------- 面板、徽章标签、提示横幅、按需展开小表单 ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px; box-shadow: var(--shadow); }
.panel > h3:first-child { margin-top: 0; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.panel > details.act:only-child > summary { font-size: 14px; }
.empty { text-align: center; color: var(--muted); padding: 22px 12px; }
.empty b { display: block; color: var(--ink-2); font-size: 15px; margin-bottom: 4px; font-weight: 600; }
.tag { display: inline-block; font-size: 12px; line-height: 1.45; border-radius: 6px; padding: 2px 8px; background: var(--soft); color: var(--ink-2); border: 1px solid var(--line); margin-right: 5px; white-space: nowrap; font-weight: 500; }
.tag.red { background: var(--red-bg); color: var(--red); border-color: #fecaca; }
.tag.yellow { background: var(--yellow-bg); color: var(--yellow); border-color: #fde68a; }
.tag.green { background: var(--green-bg); color: var(--green); border-color: #a7f3d0; }
.tag.blue, .tag.gold { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }
.tag.gray { background: var(--soft); color: var(--muted); border-color: var(--line); }
a.tag:hover { text-decoration: none; background: var(--accent-soft); color: var(--accent); border-color: #93c5fd; }
.msg { border-radius: var(--radius); padding: 11px 16px; margin-bottom: 12px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-left: 3px solid var(--green); box-shadow: var(--shadow); font-size: 13.5px; }
.msg.error { background: #fffafa; color: #991b1b; border-color: #fecaca; border-left-color: var(--red); }
.msg.warn, .msg.warning { border-left-color: #f59e0b; }
.help { background: #f8fbff; border-radius: var(--radius); padding: 10px 15px; margin-bottom: 10px; color: var(--ink-2); border: 1px solid #dbeafe; border-left: 3px solid var(--accent); font-size: 13.5px; }
.help a, .msg a { text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.toasts { position: fixed; right: 20px; top: 16px; z-index: 60; display: flex; flex-direction: column; gap: 8px; max-width: min(440px, calc(100vw - 32px)); }
.toasts .msg { margin: 0; box-shadow: var(--shadow-lift); animation: toast-in .22s ease-out; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: 9px 0; border-bottom: 1px solid var(--line); }
ul.plain li:last-child { border-bottom: 0; padding-bottom: 2px; }
ul.plain li:first-child { padding-top: 2px; }

details.act { margin: 6px 0; }
details.act > summary { cursor: pointer; color: var(--accent); font-size: 13px; list-style: none; display: inline-block; padding: 2px 0; border-radius: 6px; font-weight: 500; }
details.act > summary::-webkit-details-marker { display: none; }
details.act > summary::before { content: "＋ "; color: var(--accent); font-weight: 600; }
details.act[open] > summary::before { content: "－ "; }
details.act.sub-act > summary { color: var(--muted); font-weight: 400; }
details.act.sub-act > summary::before { color: currentColor; }
details.act.sub-act > summary:hover { color: var(--ink); }
details.act > summary:hover { text-decoration: underline; }
details.act[open] { background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px 11px; }
details.act textarea { margin-top: 6px; }

/* ---------- 统计指标卡、时间线与数据表格 ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(124px, 1fr)); gap: 12px; margin: 0 0 18px; }
@media (min-width: 1460px) { .stats, .panel .stats { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); } }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 12px;
  font-size: 12.75px; color: var(--muted); line-height: 1.35; box-shadow: var(--shadow); position: relative; font-weight: 500;
}
.stat b { display: block; font-size: 28px; line-height: 1.15; color: var(--ink); font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-bottom: 3px; }
a.stat { color: var(--muted); transition: border-color .12s, box-shadow .12s; }
a.stat:hover { text-decoration: none; border-color: #93c5fd; box-shadow: var(--shadow-lift); color: var(--ink-2); }
a.stat.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent); }
.panel .stats { margin: 4px 0 12px; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(108px, 1fr)); }
.panel .stat { box-shadow: none; background: var(--soft); border-color: var(--line); padding: 11px 10px 10px; font-size: 12px; }
.panel .stat b { font-size: 24px; }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
#timeline { min-width: 0; }
.tl-wrap { padding: 4px 0 6px; overflow-y: hidden; overscroll-behavior-x: contain; }
.tl-svg { width: 100%; min-width: 900px; height: auto; display: block; overflow: visible; }
.tl-dot circle[fill="var(--gold)"] + text { fill: #fff; }
.tl-tip { min-height: 1.5em; margin: 2px 0 0; }
.tl-hint { margin: 0 0 4px; }
.tl-wrap:focus:not(:focus-visible) { outline: none; }
.tl-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
@media print { .tl-wrap { overflow: visible; } .tl-svg { min-width: 0; } .tl-hint { display: none; } }

table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { border-bottom: 1px solid var(--line); padding: 9px 11px; text-align: left; vertical-align: top; }
th { font-size: 12px; color: var(--muted); font-weight: 500; white-space: nowrap; background: var(--soft); letter-spacing: .02em; }
th:first-child { border-radius: 6px 0 0 6px; }
th:last-child { border-radius: 0 6px 6px 0; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td, table tr:hover td { background: #f8fafc; }
.cell { font-size: 12px; text-align: center; border-radius: 6px; padding: 3px 9px; min-width: 52px; display: inline-block; font-weight: 500; }
.cell.ok { background: var(--green-bg); color: var(--green); }
.cell.wait { background: var(--yellow-bg); color: var(--yellow); }
.cell.miss { background: var(--red-bg); color: var(--red); }
.cell.na, .cell.blank { background: var(--na); color: var(--muted); }

/* ---------- 总览看板与项目卡片 ---------- */
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.col > h2 { margin-top: 8px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.grid-half { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card {
  display: block; position: relative; background: var(--surface); color: var(--ink); overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 15px 12px 18px; margin-bottom: 10px;
  box-shadow: var(--shadow); transition: border-color .12s, box-shadow .12s;
}
.card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--line-strong); }
.card.red::before { background: var(--red); }
.card.yellow::before { background: #f59e0b; }
.card.green::before { background: var(--green); }
.card.gray::before { background: #94a3b8; }
a.card:hover { text-decoration: none; border-color: #93c5fd; box-shadow: var(--shadow-lift); }
.card .t { font-weight: 600; font-size: 14.5px; line-height: 1.4; margin-bottom: 4px; color: var(--ink); font-variant-numeric: tabular-nums; }
.card .m { font-size: 12.75px; color: var(--ink-2); margin-top: 3px; line-height: 1.48; }
.card .m.meta { font-size: 12.25px; color: var(--muted); }
.card .tag { white-space: normal; }

/* ---------- 项目详情页与剪辑排期 ---------- */
.steps { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; margin: 0 0 8px; background: var(--surface); border: 1px solid var(--line); padding: 9px 14px; border-radius: var(--radius); box-shadow: var(--shadow); }
.step { font-size: 12.5px; padding: 4px 11px; border-radius: 6px; background: var(--soft); color: var(--muted); font-weight: 500; }
.step.done { background: var(--accent-soft); color: var(--accent); }
.step.now { background: var(--accent); color: #fff; font-weight: 600; }
.steps .stage-act { margin: 0 0 0 auto; }
.steps .stage-act[open] { padding: 4px 10px; border-radius: 6px; }
.pace-note { margin: 0 0 8px; font-size: 12.25px; }
.jump { display: flex; gap: 2px; flex-wrap: wrap; align-items: center; position: sticky; top: 0; z-index: 10; background: rgba(246, 248, 251, .94); backdrop-filter: blur(8px); padding: 2px 0 0; margin: 0 0 14px; border-bottom: 1px solid var(--line); }
.jump a { font-size: 13px; padding: 7px 11px 6px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--muted); font-weight: 500; transition: color .12s, border-color .12s; }
.jump a:hover { text-decoration: none; color: var(--ink); border-bottom-color: #93c5fd; }
.jump a:not(.print) + a.print { margin-left: auto; }
.jump a.print { font-size: 12.25px; color: var(--muted); }
.panel[id] { scroll-margin-top: 48px; }
.line { padding: 10px 0; border-bottom: 1px solid var(--line); }
.line:first-of-type { padding-top: 2px; }
.line:last-of-type { border-bottom: 0; padding-bottom: 2px; }
.line-h { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.line-h > b { font-size: 14.25px; font-weight: 600; }
.line-top { display: flex; gap: 6px 10px; flex-wrap: wrap; align-items: baseline; }
.line-top > .line-h { flex: 1 1 auto; min-width: 0; }
.line-top > details.act { margin: 0; }
.line-top > details.act[open] { flex: 1 1 100%; margin-top: 6px; }
.step-row { padding: 4px 0 4px 4px; }
.step-row details.act { display: inline-block; margin: 0 0 0 6px; }
.step-row details.act[open] { display: block; margin: 6px 0; }
.q { display: flex; justify-content: space-between; gap: 10px; margin: 8px 0; align-items: flex-start; }
.yn { white-space: nowrap; display: flex; gap: 10px; }
label.q { justify-content: flex-start; }
.task { padding: 8px 0; border-bottom: 1px solid var(--line); }
.task:last-child { border-bottom: 0; }

.board td:first-child, .board th:first-child { min-width: 116px; white-space: nowrap; position: sticky; left: 0; background: var(--surface); z-index: 1; }
.board th:first-child { background: var(--soft); }
.week { min-width: 168px; }
.job-t { font-size: 12.75px; font-weight: 600; line-height: 1.38; }
.job-d { margin-top: 2px; white-space: nowrap; }
.job-m { opacity: .88; }
.job-cont { font-size: 12px; color: var(--muted); padding: 2px 8px; white-space: nowrap; }
.job details.act { margin: 4px 0 0; }
.job { font-size: 12px; line-height: 1.45; border-radius: 6px; padding: 6px 9px; margin-bottom: 5px; background: var(--accent-soft); color: #1e3a8a; border-left: 3px solid var(--accent); }
.job a { color: inherit; font-weight: 600; }
.job.idle { border-left-style: dashed; }
.job.返工 { background: var(--yellow-bg); color: var(--yellow); border-left-color: #f59e0b; }
.job.零活 { background: var(--soft); color: var(--ink-2); border-left-color: #94a3b8; }
.job.暂定 { background: #f8fafc; color: var(--ink-2); border: 1px dashed #93c5fd; border-left: 3px dashed var(--accent); }
td.over { background: var(--red-bg) !important; }
tr.caprow td { background: var(--soft); }
.gate { max-width: 400px; margin: 16px auto; }

/* ---------- 窄屏、手机与打印 ---------- */
@media (max-width: 1040px) { .grid2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1000px) {
  .shell { flex-direction: column; }
  .side, body:has(.demo) .side { width: 100%; height: auto; position: static; flex-direction: row; align-items: center; overflow: visible; flex-wrap: wrap; }
  .brand { padding: 9px 12px; }
  .brand .mark { width: 28px; height: 28px; font-size: 14px; border-radius: 7px; }
  .brand .name { font-size: 15px; }
  .brand small { display: none; }
  .side-foot { border-top: 0; padding: 6px 8px 6px 4px; margin-left: auto; }
  .who { flex-direction: row; align-items: center; }
  .who > span { display: none; }
  .who select { width: auto; max-width: 138px; min-height: 30px; font-size: 12px; padding: 3px 7px; }
  .hero-in { display: block; padding: 14px 16px; }
  .hero-in > .find { margin: 0 0 10px; }
  .hero .find input[type=search] { width: 100%; }
  .hero .tag { white-space: normal; }
  h1 { font-size: 20px; }
  main { padding: 16px 14px 36px; }
  .cols, .grid2, .grid-half { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .panel { padding: 14px 15px; }
  .stats { grid-template-columns: repeat(auto-fit, minmax(108px, 1fr)); gap: 10px; }
  .stat { padding: 12px 14px 10px; }
  .stat b { font-size: 24px; }
  select, input, textarea { font-size: 16px; }
  button.sm, .btn.sm { min-height: 36px; }
  .formrow input[type=text], .formrow input[type=url], .formrow input[type=search] { flex: 1 1 180px; min-width: 0; }
  .steps { flex-wrap: nowrap; overflow-x: auto; }
  .steps > * { flex: none; }
  .q { flex-direction: column; gap: 4px; }
}
@media (max-width: 640px) {
  #subs table, #subs tr, #subs td { display: block; }
  #subs tr:first-child { display: none; }
  #subs td { border: 0; padding: 4px 0; }
  #subs tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
}
@media print {
  .side, .demo, form, details.act, .jump, .find { display: none !important; }
  body { background: #fff; }
  .hero { border: 0; }
  .hero-in { padding: 0 0 10px; display: block; }
  main { padding: 0; }
  .panel, .card, .stat { box-shadow: none; break-inside: avoid; border: 1px solid #cbd5e1; }
}

/* ---------- 会议室大屏模式（?tv=1） ---------- */
body.tv { background: var(--navy-900); }
body.tv .side, body.tv form, body.tv details.act, body.tv .demo, body.tv .find, body.tv .jump { display: none !important; }
body.tv .hero { background: var(--navy-800); border-bottom-color: rgba(255, 255, 255, .1); }
body.tv .hero-in { padding: 26px 48px; max-width: none; }
body.tv .hero h1 { color: #fff; font-size: 44px; }
body.tv .hero .sub { color: #94a3b8; font-size: 18px; }
body.tv main { max-width: none; padding: 28px 48px 60px; }
body.tv h2 { color: #fff; font-size: 26px; }
body.tv .muted { color: #94a3b8; }
body.tv .card { padding: 20px 22px 18px 26px; }
body.tv .card .t { font-size: 21px; }
body.tv .card .m { font-size: 16px; }
body.tv .tag { font-size: 14px; padding: 3px 11px; }
body.tv .help { font-size: 18px; }
body.tv .grid-half, body.tv main > p.small { display: none; }
body.tv .stats, body.tv .card .tag.red, body.tv .card .tag.yellow, body.tv .card .tag.gray { display: none !important; }
body.tv .card::before { background: var(--line-strong) !important; }
