/* 配色：参考 dataviz 的 palette.md —— 表面、墨色、状态色；明暗各取一套 */
:root {
  color-scheme: light;
  --page: #f9f9f7;
  --surface: #fcfcfb;
  --ink: #0b0b0b;
  --ink-2: #52514e;
  --ink-3: #898781;
  --grid: #e1e0d9;
  --base: #c3c2b7;
  --hair: rgba(11, 11, 11, 0.1);
  --series: #2a78d6;
  --good: #0ca30c;
  --critical: #d03b3b;
  --good-soft: rgba(12, 163, 12, 0.1);
  --crit-soft: rgba(208, 59, 59, 0.1);
  --shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0d0d0d;
  --surface: #1a1a19;
  --ink: #f0efec;
  --ink-2: #c3c2b7;
  --ink-3: #898781;
  --grid: #2c2c2a;
  --base: #383835;
  --hair: rgba(255, 255, 255, 0.1);
  --series: #3987e5;
  --good: #0ca30c;
  --critical: #d03b3b;
  --good-soft: rgba(12, 163, 12, 0.18);
  --crit-soft: rgba(208, 59, 59, 0.2);
  --shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #0d0d0d;
    --surface: #1a1a19;
    --ink: #f0efec;
    --ink-2: #c3c2b7;
    --ink-3: #898781;
    --grid: #2c2c2a;
    --base: #383835;
    --hair: rgba(255, 255, 255, 0.1);
    --series: #3987e5;
    --good-soft: rgba(12, 163, 12, 0.18);
    --crit-soft: rgba(208, 59, 59, 0.2);
    --shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--page);
  color: var(--ink);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
  -webkit-font-smoothing: antialiased;
}
.page { max-width: 980px; margin: 0 auto; padding: 24px 18px 40px; }

/* ---------- 顶栏 ---------- */
.top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
h1 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: 0.2px; }
h2 { margin: 0; font-size: 15px; font-weight: 600; }
.sub { color: var(--ink-2); font-size: 13px; margin-top: 4px; }
.actions { display: flex; gap: 8px; align-items: center; }

.btn {
  font: inherit; font-size: 13px; cursor: pointer;
  border: 1px solid var(--hair); background: var(--surface); color: var(--ink);
  border-radius: 999px; padding: 7px 14px;
  transition: transform 0.2s var(--ease), background-color 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-1px); border-color: var(--series); }
.btn:active { transform: translateY(0) scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: default; transform: none; }
.btn.ghost { background: transparent; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--hair); background: var(--surface); padding: 0;
  display: grid; place-items: center; transition: transform 0.3s var(--ease);
}
.icon-btn:hover { transform: rotate(-20deg); }
.theme-glyph {
  width: 14px; height: 14px; border-radius: 50%;
  background: linear-gradient(90deg, var(--ink) 50%, transparent 50%);
  border: 1.5px solid var(--ink);
}

/* ---------- 日期导航 ---------- */
.daynav { display: flex; align-items: center; gap: 8px; margin: 18px 0 14px; flex-wrap: wrap; }
.daynav .btn { padding: 6px 12px; }
.daylabel { font-size: 16px; font-weight: 600; min-width: 170px; text-align: center; font-variant-numeric: tabular-nums; }
.live { margin-left: auto; font-size: 12px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; }
.live i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--good);
  box-shadow: 0 0 0 0 var(--good-soft); animation: beat 2s infinite;
}
.live.stale i { background: var(--critical); animation: none; }
@keyframes beat {
  0% { box-shadow: 0 0 0 0 var(--good-soft); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface); border: 1px solid var(--hair); border-radius: 14px;
  box-shadow: var(--shadow); padding: 18px; margin-bottom: 14px;
  animation: rise 0.6s var(--ease) both;
  transition: background-color 0.4s, border-color 0.4s;
}
.card:nth-of-type(2) { animation-delay: 0.05s; }
.card:nth-of-type(3) { animation-delay: 0.12s; }
.card:nth-of-type(4) { animation-delay: 0.19s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.card-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; gap: 10px; flex-wrap: wrap; }

/* ---------- 进度环 + 摘要 ---------- */
.hero { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.ring-wrap { position: relative; width: 150px; height: 150px; flex: 0 0 auto; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: var(--grid); stroke-width: 11; }
.ring-fill {
  fill: none; stroke: var(--series); stroke-width: 11; stroke-linecap: round;
  stroke-dasharray: 339.29; stroke-dashoffset: 339.29;
  transition: stroke-dashoffset 1.1s var(--ease), stroke 0.5s;
}
.ring-fill.done { stroke: var(--good); }
.ring-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-num { font-size: 34px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.ring-num small { font-size: 16px; font-weight: 600; color: var(--ink-2); margin-left: 2px; }
.ring-cap { font-size: 12px; color: var(--ink-2); margin-top: 6px; font-variant-numeric: tabular-nums; }

.hero-text { flex: 1 1 260px; min-width: 0; }
.status-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600; background: var(--grid); color: var(--ink-2);
  transition: background-color 0.4s, color 0.4s, transform 0.4s var(--ease);
}
.status-pill.done { background: var(--good-soft); color: var(--good); }
.status-pill.todo { background: var(--crit-soft); color: var(--critical); }
.status-pill.none { color: var(--ink-3); }
.status-pill.pop { transform: scale(1.06); }
.hero-line { font-size: 17px; margin: 10px 0 0; line-height: 1.5; }
.missing { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; min-height: 0; }
.chip {
  font-size: 12px; padding: 4px 10px; border-radius: 999px;
  background: var(--crit-soft); color: var(--critical); font-weight: 600;
  animation: chipIn 0.45s var(--ease) both;
}
@keyframes chipIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}
.meta { margin-top: 12px; font-size: 12px; color: var(--ink-3); }

/* ---------- 寝室网格 ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.room {
  border: 1px solid var(--hair); border-radius: 12px; padding: 12px 12px 11px;
  background: var(--page); position: relative; overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.3s;
  animation: pop 0.5s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 30ms);
}
.room:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.room::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--good); transform: scaleY(0); transform-origin: top;
  transition: transform 0.5s var(--ease);
}
.room.bad::before { background: var(--critical); }
.room.in::before { transform: scaleY(1); }
.room.bad { border-color: rgba(208, 59, 59, 0.45); }
@keyframes pop {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.room-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.room-name { font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.badge { font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge.good { color: var(--good); }
.badge.bad { color: var(--critical); }
.room-detail { margin-top: 8px; font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }
.room-detail b { color: var(--ink-3); font-weight: 500; margin-right: 4px; }
.room-detail .muted { color: var(--ink-3); }
.room-score { position: absolute; right: 10px; bottom: 9px; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.room.bad .room-score { color: var(--critical); }

.legend { display: flex; gap: 12px; font-size: 12px; color: var(--ink-2); }
.lg { display: inline-flex; align-items: center; gap: 5px; }
.lg i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.lg.good i { background: var(--good); }
.lg.bad i { background: var(--critical); }

/* ---------- 柱状图 ---------- */
.bars {
  display: grid; grid-template-columns: repeat(14, 1fr); gap: 8px;
  height: 200px; align-items: end; position: relative; padding-top: 14px;
  border-bottom: 1px solid var(--base);
}
.bars::before, .bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--grid);
}
.bars::before { top: 14px; }
.bars::after { top: 50%; }
.bar-col { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; z-index: 1; }
.bar {
  width: 100%; max-width: 40px; border-radius: 4px 4px 0 0; background: var(--series);
  height: 0;
  transition: height 0.9s var(--ease), background-color 0.3s, opacity 0.3s;
}
.bar.full { background: var(--good); }
.bar.empty { background: transparent; border: 1.5px dashed var(--base); border-bottom: 0; }
.bar-col:hover .bar { opacity: 0.8; }
.bar-val { font-size: 11px; color: var(--ink-2); margin-bottom: 4px; font-variant-numeric: tabular-nums; min-height: 14px; opacity: 0; transition: opacity 0.4s 0.5s; }
.bar-col.in .bar-val { opacity: 1; }
.bar-date { font-size: 11px; color: var(--ink-3); margin-top: 6px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bar-col.today .bar-date { color: var(--ink); font-weight: 700; }

/* ---------- 提示框 & 其它 ---------- */
.tip {
  position: fixed; pointer-events: none; z-index: 10; font-size: 12.5px; line-height: 1.5;
  background: var(--ink); color: var(--page); padding: 7px 10px; border-radius: 8px;
  opacity: 0; transform: translateY(4px); transition: opacity 0.15s, transform 0.15s var(--ease);
  white-space: nowrap;
}
.tip.show { opacity: 1; transform: none; }
.empty-state { grid-column: 1 / -1; color: var(--ink-3); text-align: center; padding: 30px 0; font-size: 14px; }
.foot { text-align: center; font-size: 12px; color: var(--ink-3); margin-top: 18px; }

@media (max-width: 560px) {
  .ring-wrap { margin: 0 auto; }
  .hero { justify-content: center; text-align: center; }
  .hero-text { text-align: center; }
  .missing { justify-content: center; }
  .bars { gap: 4px; }
  .live { margin-left: 0; width: 100%; justify-content: center; }
  .daylabel { min-width: 0; }
}

/* ---------- 代填 / 分析 / 回填 ---------- */
.fill { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 12px; }
.fill label, .mini { font-size: 12px; color: var(--ink-2); display: flex; flex-direction: column; gap: 5px; }
.fill input, .fill select, .range input {
  font: inherit; font-size: 14px; color: var(--ink); background: var(--page);
  border: 1px solid var(--hair); border-radius: 8px; padding: 8px 10px; min-width: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.fill input:focus, .fill select:focus, .range input:focus {
  outline: none; border-color: var(--series); box-shadow: 0 0 0 3px var(--good-soft);
}
.fill-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.btn.primary { background: var(--series); border-color: var(--series); color: #fff; font-weight: 600; }
.btn.primary:hover { border-color: var(--series); filter: brightness(1.06); }
.warn-note { font-size: 12px; color: var(--ink-3); margin: 10px 0 14px; line-height: 1.6; }
.mini { margin: 16px 0 8px; font-weight: 600; color: var(--ink); font-size: 13px; }
.ranklist { list-style: none; margin: 0; padding: 0; }
.ranklist li {
  display: flex; justify-content: space-between; gap: 10px; padding: 7px 0;
  border-bottom: 1px solid var(--grid); font-size: 13px;
  animation: rise 0.4s var(--ease) both;
}
.ranklist li.bad .rl-count { color: var(--critical); }
.rl-count { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.range { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); }
.range input { font-size: 13px; padding: 6px 8px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 6px 0 4px; }
.kpi { background: var(--page); border: 1px solid var(--hair); border-radius: 12px; padding: 12px 14px; }
.kpi span { font-size: 12px; color: var(--ink-3); }
.kpi b { display: block; font-size: 22px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.hbars { display: flex; flex-direction: column; gap: 8px; }
.hrow { display: grid; grid-template-columns: 90px 1fr 40px; align-items: center; gap: 10px; font-size: 13px; }
.hname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.htrack { height: 10px; background: var(--grid); border-radius: 999px; overflow: hidden; }
.htrack i {
  display: block; height: 100%; width: 0; border-radius: 999px; background: var(--series);
  transition: width 0.9s var(--ease);
}
.hrow:hover .htrack i { background: var(--critical); }
.hval { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.progress { height: 8px; background: var(--grid); border-radius: 999px; overflow: hidden; margin-top: 14px; }
.progress i { display: block; height: 100%; width: 0; background: var(--series); border-radius: 999px; transition: width 0.4s var(--ease); }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } .hrow { grid-template-columns: 70px 1fr 32px; } }

/* ---------- 计划面板 ---------- */
.tasks { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.task {
  display: grid; grid-template-columns: 150px 1fr 70px 1fr auto; gap: 10px; align-items: center;
  padding: 10px 12px; border: 1px solid var(--hair); border-radius: 10px; background: var(--page);
  font-size: 13px; animation: rise 0.4s var(--ease) both;
}
.t-when, .t-res { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.t-status { font-weight: 600; color: var(--ink-2); }
.task.st-pending .t-status { color: var(--series); }
.task.st-done .t-status { color: var(--good); }
.task.st-failed .t-status { color: var(--critical); }
.t-act { display: flex; gap: 6px; }
.btn.small { padding: 4px 10px; font-size: 12px; }
@media (max-width: 760px) { .task { grid-template-columns: 1fr; } }

/* ---------- 登录遮罩 ---------- */
body.locked .page { visibility: hidden; }
.gate {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center;
  background: #02080c; color: #d4faff; overflow: hidden;
  transition: opacity 0.6s var(--ease);
  font-family: Consolas, "Microsoft YaHei", monospace;
}
.gate.done { opacity: 0; pointer-events: none; }
#rain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.55; }
.gate-card {
  position: relative; width: min(340px, 86vw); padding: 28px 26px;
  border: 1px solid rgba(0, 229, 255, 0.35); background: rgba(2, 14, 20, 0.82);
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.18), inset 0 0 30px rgba(0, 229, 255, 0.05);
  transition: opacity 0.35s, transform 0.35s;
}
.gate-card.fade-out { opacity: 0; transform: scale(0.96); }
.gate-card.shake { animation: shake 0.45s; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-10px); }
  40% { transform: translateX(9px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(4px); }
}
.gate-kicker { font-size: 11px; letter-spacing: 3px; color: #00e5ff; opacity: 0.8; }
.gate-title { margin: 8px 0 4px; font-size: 22px; font-weight: 700; letter-spacing: 2px; color: #eafcff; }
.gate-sub { margin: 0 0 18px; font-size: 12px; color: #7fb8c9; }
.gate-card input {
  width: 100%; font: inherit; font-size: 16px; letter-spacing: 3px; text-align: center;
  color: #eafcff; background: transparent; border: 0; border-bottom: 1px solid #00e5ff;
  padding: 10px 4px; outline: none; caret-color: #00e5ff;
}
.gate-card input:focus { box-shadow: 0 8px 14px -12px #00e5ff; }
.gate-btn {
  width: 100%; margin-top: 22px; padding: 11px; font: inherit; font-size: 14px; letter-spacing: 2px;
  color: #02080c; background: #00e5ff; border: 0; cursor: pointer; border-radius: 2px;
  transition: box-shadow 0.25s, transform 0.2s;
}
.gate-btn:hover { box-shadow: 0 0 22px rgba(0, 229, 255, 0.6); transform: translateY(-1px); }
.gate-err { min-height: 18px; margin-top: 12px; font-size: 12px; color: #ff3d6e; text-align: center; }
.glitch { position: relative; }
.glitch::before, .glitch::after {
  content: attr(data-text); position: absolute; inset: 0; pointer-events: none;
}
.glitch::before { color: #ff3d6e; animation: glitch-a 2.6s infinite steps(2); clip-path: inset(0 0 60% 0); }
.glitch::after { color: #00ff9c; animation: glitch-b 2.6s infinite steps(2); clip-path: inset(55% 0 0 0); }
@keyframes glitch-a {
  0%, 92%, 100% { transform: translate(0); }
  94% { transform: translate(-3px, 1px); }
  97% { transform: translate(3px, -1px); }
}
@keyframes glitch-b {
  0%, 90%, 100% { transform: translate(0); }
  93% { transform: translate(3px, 0); }
  96% { transform: translate(-2px, 1px); }
}
.intro { position: relative; text-align: center; padding: 0 20px; }
.intro-line { font-size: 15px; letter-spacing: 4px; color: #00e5ff; min-height: 1.4em; }
.intro-line.big { margin: 22px 0 10px; font-size: 30px; letter-spacing: 6px; color: #eafcff; text-shadow: 0 0 18px rgba(0, 229, 255, 0.7); }
.intro-line.small { font-size: 13px; color: #00ff9c; letter-spacing: 3px; }

/* 默认密码提示条 */
.banner {
  margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; font-size: 13px;
  background: rgba(255, 176, 32, 0.12); color: #c77700; border: 1px solid rgba(255, 176, 32, 0.45);
}
body.tech .banner { color: #ffb020; }
.gate-pass { margin-top: 18px; }

/* 开机动画：HUD 圆环、终端日志、进度条、闪屏、扫描线 */
.gate::after {
  content: ""; position: absolute; left: 0; right: 0; height: 120px; top: -120px; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(0, 229, 255, 0.10), transparent);
  animation: scan 3.2s linear infinite;
}
@keyframes scan { to { top: 100%; } }
.intro { width: min(460px, 92vw); display: flex; flex-direction: column; align-items: center; }
.hud { position: relative; width: 190px; height: 190px; margin-bottom: 6px; }
.hud svg { width: 100%; height: 100%; overflow: visible; }
.hud circle { fill: none; stroke: #00e5ff; stroke-width: 1.5; transform-origin: 100px 100px; }
.hud-r1 { stroke-dasharray: 18 10 4 10; animation: spin 6s linear infinite; opacity: 0.8; }
.hud-r2 { stroke-dasharray: 60 14; stroke-width: 3 !important; animation: spin 3.2s linear infinite reverse; filter: drop-shadow(0 0 4px #00e5ff); }
.hud-r3 { stroke-dasharray: 2 6; animation: spin 10s linear infinite; opacity: 0.6; }
.hud-core { fill: #00ff9c !important; stroke: none !important; animation: pulse 1.2s ease-in-out infinite; }
.gate.hud-done .hud-r2 { stroke: #00ff9c; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: 0.25; } }
.hud-num {
  position: absolute; inset: 0; display: grid; place-content: center; font-size: 34px; font-weight: 700;
  letter-spacing: 2px; color: #eafcff; text-shadow: 0 0 14px rgba(0, 229, 255, 0.8); font-variant-numeric: tabular-nums;
}
.boot {
  align-self: stretch; min-height: 140px; margin: 6px 0 14px; font-size: 12px; line-height: 1.75;
  color: #7fb8c9; text-align: left; padding: 10px 12px; border-left: 2px solid rgba(0, 229, 255, 0.4);
  background: rgba(0, 229, 255, 0.04);
}
.boot div { animation: rise 0.3s var(--ease) both; }
.boot b { color: #00ff9c; font-weight: 600; margin-right: 6px; }
.boot b.warn { color: #ffb020; }
.prog { width: 100%; height: 4px; background: rgba(0, 229, 255, 0.15); overflow: hidden; border-radius: 2px; margin-bottom: 16px; }
.prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #00e5ff, #00ff9c); box-shadow: 0 0 12px #00e5ff; }
.flash {
  position: fixed; inset: 0; z-index: 60; background: #eafcff; opacity: 0; pointer-events: none;
}
.flash.on { animation: flash 0.5s ease-out forwards; }
@keyframes flash {
  0% { opacity: 0.85; }
  100% { opacity: 0; }
}

/* ---------- 科技风（登录后启用） ---------- */
body.tech {
  --page: #030a10;
  --surface: rgba(6, 22, 32, 0.72);
  --ink: #d4faff;
  --ink-2: #7fb8c9;
  --ink-3: #4b7585;
  --grid: #0f2a36;
  --base: #15394a;
  --hair: rgba(0, 229, 255, 0.2);
  --series: #00e5ff;
  --good: #00ff9c;
  --critical: #ff3d6e;
  --good-soft: rgba(0, 255, 156, 0.12);
  --crit-soft: rgba(255, 61, 110, 0.14);
  --shadow: 0 0 26px rgba(0, 229, 255, 0.1);
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(0, 229, 255, 0.14), transparent 60%),
    radial-gradient(800px 500px at 110% 10%, rgba(0, 255, 156, 0.08), transparent 60%),
    var(--page);
  font-family: Consolas, "Microsoft YaHei", system-ui, monospace;
}
body.tech::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}
body.tech::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px);
  opacity: 0.35;
}
body.tech .page { position: relative; z-index: 2; }
body.tech .card { backdrop-filter: blur(6px); box-shadow: var(--shadow); }
body.tech h1 { letter-spacing: 3px; text-shadow: 0 0 14px rgba(0, 229, 255, 0.5); }
body.tech h2 { letter-spacing: 1px; color: #eafcff; }
body.tech .ring-fill { filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.8)); }
body.tech .ring-fill.done { filter: drop-shadow(0 0 6px rgba(0, 255, 156, 0.8)); }
body.tech .ring-num, body.tech .daylabel, body.tech .kpi b { text-shadow: 0 0 12px rgba(0, 229, 255, 0.45); }
body.tech .btn, body.tech .fill input, body.tech .fill select, body.tech .range input { font-family: inherit; }
body.tech .btn.primary { background: #00e5ff; border-color: #00e5ff; color: #02080c; }
body.tech .room:hover { box-shadow: 0 0 22px rgba(0, 229, 255, 0.25); }
.who { margin-top: 8px; font-size: 12px; letter-spacing: 1px; color: #00e5ff; display: none; }
body.tech .who { display: block; }
.who-tag {
  display: inline-block; padding: 1px 7px; margin-right: 4px; border: 1px solid #00ff9c;
  color: #00ff9c; font-size: 11px; letter-spacing: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .bar { transform: none; }
  .room::before { transform: none; }
}
