/* 城市模拟器 · 界面
   美术方向见 11-美术.md:暖纸色底、墨色字、安全黄做主操作、金色只留给「好」的东西(S 级、成就)、坏的用暖红。 */

:root {
  --paper: #f3eee3;
  --paper-2: #ebe4d6;
  --card: #fffaf1;
  --ink: #26221c;
  --ink-2: #756c5d;
  --ink-3: #a79e8e;
  --line: #e5dccb;
  --yellow: #e8b030;
  --yellow-ink: #2a2110;
  --gold: #c9962c;
  --good: #3d8757;
  --bad: #c24e3c;
  --warn: #b97a1c;
  --shadow: 0 1px 0 rgba(60, 45, 20, 0.04), 0 6px 18px -10px rgba(60, 45, 20, 0.25);
  --radius: 14px;
  --top-h: 56px;
  --ticker-h: 30px;
  --nav-h: 58px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15130f;
    --paper-2: #1b1813;
    --card: #1f1c16;
    --ink: #efe8da;
    --ink-2: #a89f8d;
    --ink-3: #6f675a;
    --line: #322d24;
    --gold: #e0b24c;
    --good: #6fbf88;
    --bad: #e2735f;
    --warn: #dea04a;
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 8px 20px -12px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.55 system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; }
.num { font-variant-numeric: tabular-nums; }
h1, h2, h3 { margin: 0; font-weight: 700; }
p { margin: 0; }
small { font-size: 12px; color: var(--ink-2); font-weight: 400; }
.good { color: var(--good); }
.bad { color: var(--bad); }
.warn { color: var(--warn); font-size: 13px; margin-top: 6px; }
.meta { color: var(--ink-2); font-size: 13px; margin-top: 2px; }
.label { display: block; color: var(--ink-2); font-size: 12px; }
.grow { flex: 1; }
.empty { color: var(--ink-3); font-size: 14px; padding: 14px 2px; }

/* ---------- 顶栏 ---------- */
.top {
  position: fixed; z-index: 20; left: 0; right: 0; top: 0;
  height: calc(var(--top-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 16px 0;
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 16px;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.top a { text-decoration: none; }
.top b { display: block; font-size: 15px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top span { display: block; font-size: 11px; color: var(--ink-2); line-height: 1.3; white-space: nowrap; }
.top em { font-style: normal; color: var(--ink); }
.top-co { min-width: 0; }
.top-cash, .top-date { text-align: right; }
.top-cash b { font-size: 16px; }

.ticker {
  position: fixed; z-index: 19; left: 0; right: 0; top: calc(var(--top-h) + env(safe-area-inset-top, 0px));
  height: var(--ticker-h); overflow: hidden; white-space: nowrap;
  background: #26221c; color: #f3eee3; font-size: 12.5px; line-height: var(--ticker-h);
  mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent);
}
.ticker-track { display: inline-block; text-decoration: none; padding-left: 100%; animation: ticker linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.tick { margin-right: 36px; }
.tick i { font-style: normal; color: var(--yellow); margin-right: 8px; font-variant-numeric: tabular-nums; }
.tick-collapse, .tick-bad { color: #f2a896; }
.tick-good i { color: var(--gold); }
.ticker-empty { padding-left: 16px; color: rgba(243, 238, 227, 0.55); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; padding-left: 16px; } }

/* ---------- 底部导航 ---------- */
.nav {
  position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; display: flex; justify-content: center;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  padding: 4px 8px env(safe-area-inset-bottom, 0px);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line);
}
.nav a {
  position: relative; flex: 1; max-width: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; font-size: 11.5px; color: var(--ink-3); text-decoration: none; font-weight: 600;
}
.nav a.on { color: var(--ink); }
.nav a.dot::after { content: ""; position: absolute; top: 6px; left: calc(50% + 9px); width: 7px; height: 7px; border-radius: 50%; background: var(--bad); }
.ico { width: 22px; height: 22px; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.nav a.on .ico { background: var(--gold); }
/* 图标:细线条,和剖面图同一种笔触 */
.ico-map { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M12 3 21 8l-9 5-9-5 9-5Z'/%3E%3Cpath d='m3 12 9 5 9-5M3 16l9 5 9-5'/%3E%3C/svg%3E"); }
.ico-sites { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M5 21V3M5 5h15M17 5v4M1 21h22'/%3E%3Cpath d='M9 21v-8h8v8M9 17h8'/%3E%3C/svg%3E"); }
.ico-board { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round'%3E%3Crect x='4' y='3' width='16' height='18' rx='2'/%3E%3Cpath d='M8 8h8M8 12h8M8 16h5'/%3E%3C/svg%3E"); }
.ico-market { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M3 9l2-5h14l2 5M3 9h18v2a3 3 0 0 1-6 0 3 3 0 0 1-6 0 3 3 0 0 1-6 0V9ZM5 13v8h14v-8'/%3E%3C/svg%3E"); }
.ico-company { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M4 21V7l8-4 8 4v14M2 21h20M9 21v-5h6v5M8 10h2M14 10h2'/%3E%3C/svg%3E"); }

/* ---------- 页面 ---------- */
.page {
  max-width: 600px; margin: 0 auto;
  padding: calc(var(--top-h) + var(--ticker-h) + env(safe-area-inset-top, 0px) + 16px) 16px
    calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 28px);
}
.title { display: flex; align-items: baseline; justify-content: space-between; font-size: 13px; color: var(--ink-2);
  font-weight: 600; margin: 26px 2px 10px; letter-spacing: 0.04em; }
.title:first-child { margin-top: 4px; }
.count { font-weight: 400; color: var(--ink-3); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.sub { font-size: 14px; margin: 22px 0 10px; display: flex; align-items: baseline; gap: 8px; }
.sub:first-child { margin-top: 6px; }
.row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 14px; margin-top: 6px; }

/* 卡片 */
.card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px;
  margin-bottom: 10px; box-shadow: var(--shadow); text-decoration: none; }
a.card:active { transform: translateY(1px); }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.card-head h3 { font-size: 16px; min-width: 0; }
.card-head h2 { font-size: 20px; }
.card.past { opacity: 0.7; box-shadow: none; }
.card .bar { margin-top: 10px; }

.bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--yellow); border-radius: 3px; transition: width 0.4s ease; }
.bar.bad i { background: var(--bad); }

/* 品级:金色只给 S */
.grade { flex: none; display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 7px;
  font-weight: 800; font-size: 14px; border: 1.5px solid var(--line); color: var(--ink-2); }
.grade-s { color: #2a2110; background: linear-gradient(135deg, #f3d27a, var(--gold)); border-color: transparent; box-shadow: 0 2px 8px -3px var(--gold); }
.grade-a { color: var(--ink); border-color: var(--ink-3); }
.grade-c, .grade-d { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 50%, var(--line)); }

/* 按钮:主操作只有一种样子 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; margin: 0; padding: 9px 18px; border: 0;
  border-radius: 10px; background: transparent; color: var(--ink); font: inherit; font-weight: 700; font-size: 14px;
  cursor: pointer; text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); transition: transform 0.08s ease;
  white-space: nowrap;
}
.btn.primary { background: var(--yellow); color: var(--yellow-ink); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn.small { padding: 5px 12px; font-size: 13px; border-radius: 8px; }
.card > .btn { margin-top: 12px; }
.actions { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.actions.wrap .btn { flex: none; }
.out { font-size: 13px; color: var(--ink-2); }
.out.bad { color: var(--bad); }

/* 表单 */
select, input[type="number"], input:not([type]), input[type="text"] {
  font: inherit; font-size: 15px; color: var(--ink); background: var(--paper); border: 1px solid var(--line);
  border-radius: 9px; padding: 7px 10px; min-width: 0; font-variant-numeric: tabular-nums;
}
select:focus, input:focus { outline: 2px solid color-mix(in srgb, var(--yellow) 70%, transparent); outline-offset: 0; border-color: transparent; }
select:disabled, input:disabled { opacity: 0.5; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.field { display: grid; gap: 3px; font-size: 13px; }
.field > span:first-child { color: var(--ink-2); }
.field .input { display: flex; align-items: center; gap: 6px; }
.field .input > * { flex: 1; width: 100%; }
.field .input i { flex: none; width: auto; font-style: normal; color: var(--ink-3); font-size: 12px; }
.field small { color: var(--ink-3); font-size: 11.5px; }
.field.differs select, .field.differs input { border-color: color-mix(in srgb, var(--warn) 65%, var(--line)); background: color-mix(in srgb, var(--warn) 7%, var(--paper)); }
.field.differs small { color: var(--warn); }
.checks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.check { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; padding: 6px 12px 6px 9px; border-radius: 999px;
  border: 1px solid var(--line); cursor: pointer; user-select: none; }
.check input { width: 17px; height: 17px; margin: 0; accent-color: var(--yellow); }
.check.differs { border-color: color-mix(in srgb, var(--warn) 65%, var(--line)); color: var(--warn); }
.calc { font-size: 13px; color: var(--ink-2); margin-top: 10px; }
.spec[inert] { opacity: 0.6; }

/* 表格 */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl td, .tbl th { padding: 8px 4px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: baseline; }
.tbl th { font-size: 12px; color: var(--ink-2); font-weight: 600; }
.tbl .r { text-align: right; white-space: nowrap; }
.tbl td small { display: block; }
.tbl tr:last-child td { border-bottom: 0; }

/* ---------- 地图 ---------- */
.page-map { max-width: none; padding: 0; }
.map { position: fixed; inset: 0; }
#city { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
#city:active { cursor: grabbing; }
.sheet {
  position: fixed; z-index: 15; left: 12px; right: 12px; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 12px);
  max-width: 420px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 16px 18px; box-shadow: 0 16px 40px -18px rgba(40, 30, 10, 0.55);
  animation: rise 0.18s ease-out;
}
.sheet h3 { font-size: 17px; padding-right: 26px; }
.sheet .btn { margin-top: 12px; }
.sheet-close { position: absolute; right: 10px; top: 8px; width: 30px; height: 30px; border: 0; background: none; color: var(--ink-3);
  font-size: 22px; cursor: pointer; }
@keyframes rise { from { transform: translateY(10px); opacity: 0; } }

/* ---------- 工地 ---------- */
.site h3 { font-size: 16px; }
.page-site { padding-top: calc(var(--top-h) + var(--ticker-h) + env(safe-area-inset-top, 0px) + 12px); }
.site-top { padding: 0 2px 12px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 10px 12px; margin-top: 12px; }
.stats b { display: block; font-size: 17px; line-height: 1.3; white-space: nowrap; }
.stats small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stats small { display: block; }
.section-wrap { position: relative; height: min(52vh, 420px); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow);
  margin: 0 -4px; }
#section { display: block; width: 100%; height: 100%; cursor: pointer; }
.alerts { display: grid; gap: 6px; margin-top: 10px; }
.alert { font-size: 13.5px; padding: 8px 12px; border-radius: 10px; margin: 0; }
.alert.warn { background: color-mix(in srgb, var(--warn) 11%, var(--card)); color: var(--warn); }
.alert.bad { background: color-mix(in srgb, var(--bad) 11%, var(--card)); color: var(--bad); font-weight: 600; }

.tabs { position: sticky; z-index: 5; top: calc(var(--top-h) + var(--ticker-h) + env(safe-area-inset-top, 0px));
  display: flex; gap: 2px; margin: 14px -16px 4px; padding: 8px 16px; background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); overflow-x: auto; scrollbar-width: none; }
.tabs a { flex: 1; text-align: center; padding: 7px 10px; border-radius: 9px; text-decoration: none; font-size: 14px; font-weight: 600;
  color: var(--ink-2); white-space: nowrap; }
.tabs a.on { background: var(--ink); color: var(--paper); }

.auto { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
.auto-row { display: grid; gap: 3px; font-size: 13px; color: var(--ink-2); }
.order { display: grid; grid-template-columns: 1.4fr 1fr 0.8fr auto; gap: 8px; align-items: center; }
.order .calc, .order .actions { grid-column: 1 / -1; margin-top: 0; }
.unit { font-size: 12px; color: var(--ink-3); }

.crew { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
/* 名字、等级、按钮一行,说明折到第二行 */
.crew > .grow { order: 2; }
.crew > .btn, .crew > .out, .crew > span.bad { order: 3; }
.crew > .btn { margin-left: auto; }
.crew > .meta { order: 4; width: 100%; margin: 0; }
.card .crew { border: 0; padding: 0; }
.lv { font-size: 11px; font-weight: 700; padding: 0 6px; border-radius: 5px; border: 1px solid var(--line); color: var(--ink-2); }
.lv-4, .lv-5 { color: var(--ink); border-color: var(--ink-3); }
.lv-5 { color: var(--gold); border-color: var(--gold); }
.crew-card .actions { margin-top: 10px; }

.floors { display: grid; gap: 0; }
.floor { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 10px; padding: 10px 2px;
  border-bottom: 1px solid var(--line); scroll-margin-top: 140px; }
.floor > b { font-size: 15px; color: var(--ink-2); }
.floor-body { display: grid; gap: 1px; font-size: 14px; }
.floor .notes { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; }
.floor.is-cracked > b { color: var(--bad); }
.floor .out { grid-column: 1 / -1; }

.log { list-style: none; margin: 0; padding: 0; }
.log li { padding: 9px 2px; border-bottom: 1px solid var(--line); font-size: 14px; display: grid; grid-template-columns: 62px 1fr; gap: 8px; }
.log li i { font-style: normal; color: var(--ink-3); font-size: 12px; padding-top: 2px; }
.log li a { text-decoration: none; }
.log .log-bad, .log .log-collapse { color: var(--bad); }
.log .log-warn, .log .log-wait { color: var(--warn); }
.log .log-good a, .log .log-good { color: var(--ink); }
.log .log-good i::after { content: " ●"; color: var(--gold); font-size: 9px; }
.log li.unread { font-weight: 600; }

/* ---------- 招标 ---------- */
.contract .price { font-size: 18px; }
.kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; margin: 12px 0 8px; }
.kv dt { font-size: 12px; color: var(--ink-2); }
.kv dd { margin: 0; font-weight: 700; font-size: 14.5px; }
.kv dd small { display: block; font-weight: 400; }
.contract.cannot { box-shadow: none; }
.contract.cannot .price { color: var(--ink-2); }
.sign { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.sign .actions { margin: 0 0 0 auto; }
.why { font-size: 13px; color: var(--ink-2); margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.status { font-size: 12px; font-weight: 700; }
.status-signed { color: var(--warn); }
.status-done { color: var(--good); }
.status-defaulted { color: var(--bad); }

/* ---------- 市场 ---------- */
.market td small { font-size: 11px; }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.tier { padding: 12px; margin: 0; }
.tier h3 { font-size: 14px; }
.tier-black h3 { color: var(--bad); }

/* ---------- 公司 ---------- */
.co { padding: 4px 2px 6px; }
.co h1 { font-size: 26px; letter-spacing: 0.02em; }
.level { margin-top: 16px; }
.level .bar { margin-top: 6px; }
.builds { display: grid; gap: 8px; }
.build { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--card);
  border: 1px solid var(--line); text-decoration: none; }
.build > span:nth-child(2) { flex: 1; min-width: 0; display: grid; }
.build b { font-size: 14.5px; }
.build-pic { flex: none; width: 34px; height: 40px; display: flex; align-items: flex-end; justify-content: center;
  border-bottom: 2px solid var(--ink-3); }
.build-pic i { display: block; width: 18px; height: calc(8px + var(--f) * 30px); border-radius: 2px 2px 0 0; background: #ece6da;
  box-shadow: inset -5px 0 0 rgba(0, 0, 0, 0.12), inset 0 0 0 1px rgba(0, 0, 0, 0.12); }
.build-pic .t-villa { background: #e6d3b3; }
.build-pic .t-highrise { background: #cfd4d8; }
.build-pic .t-office { background: #8ea3b3; }
.build-pic .t-landmark { background: #34404d; }
.build.collapsed .build-pic i { height: 6px; width: 26px; background: #8f8a82; border-radius: 3px; }
.build.collapsed b { color: var(--bad); }

.paper { padding: 4px 2px 14px; border-bottom: 3px double var(--ink); margin-bottom: 8px; }
.paper h1 { font-size: 28px; letter-spacing: 0.12em; font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif; }
.news li { font-size: 15px; }
.forecast { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.forecast .day { display: grid; justify-items: center; gap: 2px; padding: 12px 6px; margin: 0; }
.wx { font-size: 26px; line-height: 1.2; font-weight: 400; }
.rank { list-style: none; margin: 0; padding: 0; }
.rank li { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--line); font-size: 14px; }
.rank li i { font-style: normal; width: 22px; color: var(--ink-3); }
.rank li:nth-child(1) i { color: var(--gold); font-weight: 800; }
.rank li a { text-decoration: none; font-weight: 600; }
.rank li.me { background: color-mix(in srgb, var(--yellow) 10%, transparent); }

/* ---------- 登录 ---------- */
.login { min-height: 100dvh; display: grid; place-content: center; text-align: center; gap: 8px; padding: 24px; }
.login h1 { font-size: 28px; letter-spacing: 0.06em; }
.login-mark { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 16px; background: var(--yellow);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M5 21V3M5 5h15M17 5v4M1 21h22'/%3E%3Cpath d='M9 21v-8h8v8M9 17h8'/%3E%3C/svg%3E") center / contain no-repeat; }

@media (min-width: 720px) {
  .fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .auto { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 380px) {
  .top { gap: 10px; padding-left: 12px; padding-right: 12px; }
  .kv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order { grid-template-columns: 1fr 1fr; }
}

/* ---------- 点开看解释 ---------- */
.term { border-bottom: 1px dashed color-mix(in srgb, var(--ink-2) 70%, transparent); cursor: help; }
.info { display: inline-grid; place-items: center; width: 17px; height: 17px; margin-left: 5px; padding: 0; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font: italic 700 10.5px/1 Georgia, serif; cursor: help;
  vertical-align: 1px; }
.pop { position: fixed; z-index: 50; width: min(320px, calc(100vw - 24px)); background: #26221c; color: #f3eee3; border-radius: 12px;
  padding: 12px 14px; font-size: 13.5px; line-height: 1.5; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.6); animation: rise 0.12s ease-out; }
.pop h4 { margin: 0 0 4px; font-size: 14.5px; color: #fff; }
.pop p { color: rgba(243, 238, 227, 0.82); }
.pop dl { margin: 8px 0 0; display: grid; gap: 3px; }
.pop dl div { display: flex; justify-content: space-between; gap: 12px; }
.pop dt { color: rgba(243, 238, 227, 0.65); }
.pop dd { margin: 0; text-align: right; }
.pop-total { border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 5px; font-weight: 700; }
.stars { display: inline-flex; gap: 3px; vertical-align: middle; }
.stars i { width: 7px; height: 7px; border-radius: 2px; background: color-mix(in srgb, currentColor 22%, transparent); }
.stars i.on { background: var(--yellow); }
.statbars { margin: 10px 0 4px; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 4px 14px; font-size: 12.5px; }
.statbars div { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.statbars dt { color: var(--ink-2); }
.statbars dd { margin: 0; }

/* ---------- 分段选择、套餐 ---------- */
.seg { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 4px; }
.seg button { flex: 1 0 auto; min-width: 74px; display: grid; gap: 1px; text-align: left; padding: 8px 11px; border-radius: 11px;
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: inherit; cursor: pointer; }
.seg button b { font-size: 14px; }
.seg button small { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.seg button.on { border-color: var(--ink); background: color-mix(in srgb, var(--yellow) 13%, var(--card)); }
.seg button.on small { color: var(--ink-2); }

.ledger { margin: 12px 0 6px; padding: 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ledger-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ledger-grid > div { display: grid; gap: 1px; }
.ledger-grid b { font-size: 18px; }
.ledger-grid small { font-size: 11.5px; color: var(--ink-2); }
.big-save { grid-column: 1 / -1; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.big-save b { font-size: 28px; letter-spacing: -0.01em; }
.big-save.good b { color: var(--good); }
.big-save.bad b { color: var(--bad); }
.warn-t { color: var(--warn); }
.risks { margin-top: 10px; font-size: 13px; }
.risks ul { margin: 4px 0 0; padding-left: 18px; color: var(--ink-2); }
.risks li { margin: 2px 0; }
details.more { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 8px; }
details.more summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ink-2); padding: 6px 0; }
.sticky-actions { position: sticky; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 8px); z-index: 4;
  background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 10px 0; margin-bottom: -10px; }

/* ---------- 采购 ---------- */
.panel { margin-top: 10px; padding: 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.panel .sub:first-child { margin-top: 0; }
.plan-controls { display: grid; gap: 10px; margin: 10px 0 6px; }
.tier-cards { font-size: 12.5px; color: var(--ink-3); margin: 2px 0 8px; }
.tier-link { border-bottom: 1px dashed var(--ink-3); cursor: help; }
.plan td small { display: block; }
.plan tr.dim td { color: var(--ink-3); }
.plan tfoot td { font-size: 15px; border-bottom: 0; }
input.qty { width: 76px; text-align: right; padding: 5px 7px; }
.tier-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.tier-row .tier { cursor: help; }
.tier-row .statbars { grid-template-columns: 1fr; font-size: 11.5px; }
.card.mat .tbl { margin-top: 6px; }

/* ---------- 现场:班组在干什么、要拍板的事 ---------- */
.doing { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; flex-wrap: wrap; gap: 5px; pointer-events: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 3px 9px 3px 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--card) 88%, transparent); border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.doing .chip { background: rgba(28, 25, 20, 0.62); color: #f3ecdd; border-color: transparent; backdrop-filter: blur(4px); }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); flex: none; }
.chip.busy i { background: #6fbf88; box-shadow: 0 0 0 0 rgba(111, 191, 136, 0.6); animation: beat 1.6s infinite; }
.chip.bad i { background: var(--bad); }
@keyframes beat { 70% { box-shadow: 0 0 0 5px rgba(111, 191, 136, 0); } 100% { box-shadow: 0 0 0 0 rgba(111, 191, 136, 0); } }
.ask { margin-top: 10px; padding: 14px; border-radius: 14px; background: var(--card); border: 1.5px solid color-mix(in srgb, var(--yellow) 60%, var(--line));
  box-shadow: var(--shadow); animation: rise 0.2s ease-out; }
.ask-who { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--ink-2); }
.ask-who b { color: var(--ink); font-size: 14px; }
.ask > p { margin-top: 6px; font-size: 15px; }
.ask-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-top: 10px; }
.ask-opts .btn { display: grid; justify-items: start; gap: 2px; text-align: left; white-space: normal; padding: 9px 12px; }
.ask-opts .btn small { font-weight: 400; font-size: 12px; color: var(--ink-2); }
.ask-opts .btn.def { box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.ask .meta { margin-top: 8px; font-size: 12px; }
.ask-done { font-weight: 600; color: var(--good); }

.trades { display: grid; gap: 10px; }
.trade { padding: 10px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.trade.missing { border-style: dashed; }
.trade-head { display: flex; align-items: baseline; gap: 8px; font-size: 14px; margin-bottom: 2px; }
.trade-head .meta, .trade-head .good { font-size: 12px; margin: 0; }
.trade .crew { border: 0; padding: 6px 0 0; }

/* ---------- 人情、成就 ---------- */
.rels { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.rel { margin: 0; padding: 12px; }
.rel .card-head b { font-size: 16px; }
.relbar { position: relative; height: 6px; margin: 8px 0 6px; border-radius: 3px; background: var(--line); }
.relbar::after { content: ""; position: absolute; left: 50%; top: -2px; width: 1px; height: 10px; background: var(--ink-3); }
.relbar i { position: absolute; top: 0; height: 100%; border-radius: 3px; background: var(--good); }
.relbar i.neg { background: var(--bad); }
.rel .actions { margin-top: 8px; gap: 4px; }
.achs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.ach { padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--line); color: var(--ink-3); display: grid; gap: 2px; }
.ach b { font-size: 14px; }
.ach small { font-size: 11.5px; color: inherit; }
.ach.got { border: 1px solid transparent; color: var(--ink); background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 22%, var(--card)), var(--card));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 55%, transparent); }
.ach.got small { color: var(--ink-2); }
.ach.got.ach-shame { background: var(--card); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bad) 45%, transparent); }
textarea { width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; resize: vertical; }
.lv { cursor: help; white-space: nowrap; }
.stats.card { margin-top: 12px; }
.prows { display: grid; margin: 8px 0; }
.prow { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: center; }
.prow.dim { color: var(--ink-3); }
.pname small { display: block; color: var(--ink-3); font-size: 12px; }
.psub { text-align: right; font-weight: 700; }
.pnums { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 12.5px; color: var(--ink-2); }
.pbuy { display: flex; align-items: center; gap: 6px; justify-self: end; font-size: 13px; color: var(--ink-2); }
.pbuy i { font-style: normal; font-size: 12px; min-width: 18px; }
.ptotal { display: flex; justify-content: space-between; padding: 10px 0 2px; font-size: 15px; }
.rel .actions { flex-wrap: nowrap; align-items: center; }
.rel .actions .btn { flex: 1; min-width: 0; white-space: normal; font-size: 12.5px; padding: 6px 8px; line-height: 1.3; }
.rel .actions .out { display: none; }
.rel .actions .out.bad { display: block; position: absolute; }
.alert.go { background: color-mix(in srgb, var(--good) 11%, var(--card)); color: var(--good); }
.patrol-wrap { position: relative; margin-top: 10px; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); background: #2b2620; }
#patrol { display: block; width: 100%; aspect-ratio: 100 / 64; touch-action: none; cursor: crosshair; }
.patrol-hud { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 8px 12px; background: #26221c; color: #f3eee3; font-size: 13px; }
.patrol-hud .bar { background: rgba(255, 255, 255, 0.15); }
.patrol-cover { position: absolute; inset: 0 0 38px; display: grid; place-content: center; gap: 8px; text-align: center;
  background: rgba(30, 26, 20, 0.55); backdrop-filter: blur(2px); }
.patrol-cover .meta { color: #f3eee3; }
.out.good { color: var(--good); font-weight: 600; }
.official { font-size: 12.5px; font-weight: 600; color: var(--gold); margin: 2px 0 4px; }
.speed { position: absolute; right: 12px; top: calc(env(safe-area-inset-top, 0px) + var(--top-h) + var(--ticker-h) + 6px); display: flex; gap: 2px;
  background: rgba(38, 34, 28, 0.82); border-radius: 999px; padding: 3px; z-index: 21; }
.speed button { border: 0; background: none; color: rgba(243, 238, 227, 0.7); font: 600 12px system-ui; padding: 4px 9px; border-radius: 999px; cursor: pointer; }
.speed button.on { background: var(--yellow); color: var(--yellow-ink); }
.legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 10px 0; }
.lg { padding: 8px 10px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.lg b { font-size: 13.5px; }
.lg-pics { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 4px; }
.lg figure { margin: 0; display: grid; gap: 2px; justify-items: center; }
.lg figcaption { font-size: 11px; color: var(--ink-2); text-align: center; line-height: 1.3; max-width: 84px; }
.lg figure.bad figcaption { color: var(--bad); }
.lg svg { border-radius: 6px; width: 100%; height: auto; max-width: 84px; }
/* ---------- 做法的选项卡 ---------- */
.opts { display: grid; gap: 10px; }
@media (min-width: 720px) { .opts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.opt { padding: 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.opt-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.opt-head b { font-size: 14.5px; }
.opt-head small { color: var(--ink-3); }
.opt-chips { display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; margin: 8px -2px 0; padding: 2px; }
.opt-chips button { flex: none; padding: 6px 10px; border-radius: 9px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink);
  font: 600 13px/1.2 inherit; font-variant-numeric: tabular-nums; cursor: pointer; position: relative; }
.opt-chips button.design::after { content: "图纸"; position: absolute; top: -7px; right: -3px; font-size: 9px; font-weight: 700; padding: 0 3px;
  border-radius: 4px; background: var(--ink-3); color: var(--card); }
.opt-chips button.on { border-color: var(--ink); background: color-mix(in srgb, var(--yellow) 18%, var(--card)); }
.opt-card { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--paper); font-size: 13px; }
.opt-card.differs { background: color-mix(in srgb, var(--warn) 9%, var(--paper)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn) 45%, transparent); }
.opt-card p { color: var(--ink-2); }
.card-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 4px 12px; margin: 8px 0 0; }
.card-stats div, .card-facts div { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.card-stats dt, .card-facts dt { color: var(--ink-2); font-size: 12.5px; }
.card-stats dd, .card-facts dd { margin: 0; }
.card-facts { display: grid; gap: 2px; margin: 8px 0 0; padding-top: 6px; border-top: 1px dashed var(--line); }
.card-facts dd { font-size: 12.5px; font-weight: 600; text-align: right; }
.stars.risk i.on { background: var(--bad); }
details.more summary small { font-weight: 400; margin-left: 6px; color: var(--ink-3); }
.opts > .opt { min-width: 0; }
.opt { overflow: hidden; }
.opt-chips { max-width: 100%; }
.spec, #tab { min-width: 0; }
.opt-chips { padding-top: 9px; }
/* ---------- 开发商 ---------- */
.card.land .price { font-size: 17px; }
.unit-grid { display: grid; gap: 4px; margin-top: 10px; }
.urow { display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 6px; }
.urow > b { color: var(--ink-2); font-size: 13px; }
.ucells { display: flex; gap: 4px; flex-wrap: wrap; }
.ucell { flex: 1 1 60px; min-width: 60px; display: grid; gap: 1px; padding: 5px 6px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper);
  font: 12px/1.2 inherit; color: var(--ink); cursor: pointer; text-align: left; overflow: hidden; }
.ucell i { font-style: normal; font-size: 10.5px; color: var(--ink-3); }
.ucell span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ucell.m-sell { border-color: color-mix(in srgb, var(--yellow) 70%, var(--line)); background: color-mix(in srgb, var(--yellow) 12%, var(--paper)); }
.ucell.m-rent { border-color: color-mix(in srgb, #2f6db0 50%, var(--line)); background: color-mix(in srgb, #2f6db0 8%, var(--paper)); }
.ucell.s-sold { background: var(--line); color: var(--ink-3); cursor: default; }
.ucell.s-rented { background: color-mix(in srgb, var(--good) 14%, var(--paper)); border-color: color-mix(in srgb, var(--good) 45%, var(--line)); cursor: default; }
.prices { display: grid; gap: 8px; }
.price-card { margin: 0; }
.spark { width: 100%; height: 34px; margin-top: 6px; }
.spark.up polyline { stroke: var(--good); }
.spark.down polyline { stroke: var(--bad); }
.bsheet { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rank li.dim { opacity: 0.5; }
#borrow input, #season-new input { width: 90px; }
.bad-panel { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); }
#divert input, #ask input, #mortgage input { width: 90px; }
.bidbox { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.bidform input { width: 80px; }
.scroll-x { overflow-x: auto; }
.metrics td small { display: block; font-size: 11px; color: var(--ink-3); }
.metrics td.dim { color: var(--ink-3); }
.metrics th, .metrics td { white-space: nowrap; }
.metrics td:first-child { white-space: normal; min-width: 130px; }
/* ---------- 自己画的楼 ---------- */
.shape-grid { display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: end; margin-top: 10px; }
.silhouette { width: 120px; display: block; }
.shape-floors { display: grid; gap: 2px; max-height: 200px; overflow-y: auto; }
.wrow { display: grid; grid-template-columns: 34px 1fr 42px; align-items: center; gap: 6px; font-size: 12px; }
.wrow input { accent-color: var(--yellow); }
.wrow b { text-align: right; font-weight: 600; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sw { width: 30px; height: 30px; border-radius: 8px; border: 2px solid var(--line); background: var(--paper); cursor: pointer; font-size: 9px; color: var(--ink-2); padding: 0; }
.sw.on { border-color: var(--ink); box-shadow: 0 0 0 2px var(--yellow); }
.pop.hover { pointer-events: none; width: max-content; max-width: min(320px, calc(100vw - 24px)); }

.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-3); }
.btn.ghost:hover { color: var(--ink); border-color: var(--line); }
.dispatch { display: grid; gap: 6px; }
.dispatch-head { display: grid; gap: 6px; }
.dispatch .meta { margin: 0; }
.btn.armed { background: var(--bad, #b5452f); border-color: transparent; color: #fff; }
.have { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
/* 招标卡片:三个大数 + 钱怎么给 */
.deal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0 6px; }
.deal > div { display: grid; gap: 1px; }
.deal b { font-size: 18px; }
.deal small { color: var(--ink-3); font-size: 12px; }
.paysteps { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 0; font-size: 13px; border-left: 2px solid var(--line); }
.paysteps li { display: grid; grid-template-columns: 5.5em 1fr; gap: 8px; padding: 3px 0 3px 10px; position: relative; }
.paysteps li::before { content: ''; position: absolute; left: -5px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--card); border: 2px solid var(--ink-3); }
.paysteps b { color: var(--ink-2); font-weight: 600; }
.paysteps span { color: var(--ink-2); }
@media (max-width: 420px) { .deal b { font-size: 16px; } }
.payrules summary, .more > summary { cursor: pointer; font-weight: 600; color: var(--ink-2); padding: 2px 0; }
.payrules .paysteps { margin-bottom: 0; }
.more { margin: 10px 0; }
.more > summary { padding: 10px 2px; }
.costrow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.costrow div { display: grid; gap: 2px; }
.costrow dt { font-size: 12px; color: var(--ink-3); }
.costrow dd { margin: 0; font-weight: 700; display: grid; }
.costrow small, .ptotal small { font-size: 12px; font-weight: 500; margin-left: 6px; }

/* ---------- 管理台 ---------- */
.admin { max-width: 1100px; margin: 0 auto; padding: 12px 16px 40px; }
.admin-top { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0 12px; }
.admin-top b { font-size: 17px; margin-right: 10px; }
.admin-body { display: grid; gap: 12px; margin-top: 12px; }
.admin .tbl td small { display: block; color: var(--ink-3); font-size: 11.5px; }
.tag { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 0 6px; margin-right: 6px; border-radius: 5px; border: 1px solid var(--line); color: var(--ink-2); }
.tag-school, .tag-hospital { color: var(--good); border-color: currentColor; }
.tag-developer { color: var(--warn, #b7791f); border-color: currentColor; }
.tag-official { color: var(--gold); border-color: currentColor; }
.wants { margin: 4px 0 0; font-size: 13px; color: var(--ink-2); }
.needs { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 0; }
.needs span { font-size: 12px; padding: 1px 7px; border-radius: 999px; background: var(--bg-2, rgba(0,0,0,0.05)); color: var(--ink-2); }
.card.auction.leading { border-color: var(--good); }
.card.auction.outbid { border-color: var(--bad); }
.bidland input { width: 7em; }
.presets { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.card.preset { margin: 0; display: grid; gap: 6px; }
.tbl tr.me td { background: rgba(232, 177, 57, 0.12); }
.flag { display: inline-block; width: 10px; height: 12px; margin-right: 6px; border-radius: 2px 6px 6px 2px; vertical-align: -1px; }
.swatches { display: inline-flex; gap: 4px; }
.swatches .sw { width: 22px; height: 22px; border-radius: 6px; cursor: pointer; position: relative; }
.swatches .sw input { position: absolute; opacity: 0; }
.swatches .sw:has(input:checked) { outline: 2px solid var(--ink); outline-offset: 1px; }
.crew.poach input { width: 6.5em; }
.statbars dt { white-space: nowrap; }
@media (max-width: 520px) {
  .tier-row { grid-template-columns: 1fr; }
  .tier-row .statbars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.lockform { flex-wrap: wrap; }
.lockform select { max-width: 11em; }
.lockform input { width: 5.5em; }

/* 做法的选项默认收起:只露评分那一行,点「说明」或点了选项再展开说明和数字 */
.opt-head .grow { flex: 1; }
.opt-more { border: 0; background: none; color: var(--ink-3); font-size: 12px; padding: 0 2px; cursor: pointer; text-decoration: underline dotted; }
.opt.open .opt-more { color: var(--ink); }
.opt:not(.open) .opt-card > p, .opt:not(.open) .opt-card .card-facts { display: none; }
.opt:not(.open) .opt-card { padding: 6px 10px; margin-top: 8px; }
.opt:not(.open) .card-stats { margin: 0; }
.back { display: inline-block; margin: 2px 0 8px; font-size: 13px; color: var(--ink-2); text-decoration: none; }
/* 手机上工地剖面图不占满一屏,下面的做法和采购露出来 */
@media (max-width: 520px) { .section-wrap { height: min(40vh, 320px); } }
form.dirty .sticky-actions .out:empty::before { content: '有改动还没保存'; color: var(--warn); font-size: 12.5px; }

/* 亲自上阵 */
.hand-ctl { display: grid; gap: 8px; }
.hand-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hand-row input[type=range] { flex: 1; min-width: 140px; accent-color: var(--yellow); }
.hand-acct { margin: 0; font-size: 13px; color: var(--ink-2); }
.hand-wrap { height: min(58vh, 460px); border-radius: 16px; overflow: hidden; background: #2b2620; margin: 10px 0; }
.hand-wrap canvas { width: 100%; height: 100%; display: block; }
.hand-bar { display: flex; align-items: center; gap: 10px; }

/* 亲手拆模:回弹测区 */
.rb-areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 210px)); gap: 12px; margin: 12px 0; }
.rb-area { background: #8f8a82; border-radius: 8px; padding: 10px; color: #fff; }
.rb-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.rb-head .meta { color: rgba(255, 255, 255, 0.85); }
.rb-grid { display: grid; grid-template-columns: repeat(4, 36px); gap: 8px; justify-content: space-between; }
.rb-pt { width: 36px; height: 36px; border: 1px dashed rgba(255, 255, 255, 0.55); border-radius: 50%; background: transparent; color: #fff; font: 600 13px/1 system-ui, sans-serif; cursor: pointer; padding: 0; }
.rb-pt.on { background: rgba(0, 0, 0, 0.28); border-style: solid; }
.rb-est { font-size: 15px; }

/* 亲手放线:激光铅直仪的靶 */
.laser { position: relative; width: 120px; height: 120px; flex: none; border-radius: 50%; background: #2b2620;
  background-image: radial-gradient(circle, transparent 18px, rgba(255,255,255,0.18) 19px, transparent 20px, transparent 38px, rgba(255,255,255,0.18) 39px, transparent 40px); overflow: hidden; }
.laser i::before, .laser i::after { content: ''; position: absolute; background: rgba(255,255,255,0.6); }
.laser i::before { left: 59px; top: 0; width: 2px; height: 120px; }
.laser i::after { top: 59px; left: 0; height: 2px; width: 120px; }
.laser b { position: absolute; left: 55px; top: 55px; width: 10px; height: 10px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 8px #ff3b30; }
.l-checks { margin: 4px 0 12px; }

/* 亲手浇筑:堵管 */
.hand-wrap { position: relative; }
.jam { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: rgba(29, 26, 22, 0.92); color: #f1e7cf;
  border-radius: 10px; padding: 14px 18px; display: flex; flex-direction: column; gap: 8px; align-items: center; max-width: 80%; text-align: center; }
.jam .meta { color: rgba(241, 231, 207, 0.75); }

/* 工地:眼下这一步 */
.now-step { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 8px 12px; margin: 0 0 8px;
  border-radius: 10px; background: var(--paper, #fbf6ea); border: 1px solid rgba(0,0,0,0.08); }
.now-step b { font-size: 15px; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.check { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; }
.hand-ctl .seg { flex-wrap: wrap; }
.hand-ctl > p.meta:first-of-type, #p-hint, #f-hint, #l-hint, #r-hint, #v-hint { min-height: 2.9em; }

/* 练习场:工具店 */
.tool-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.tool .card-head { display: flex; justify-content: space-between; align-items: baseline; }

/* 工地:毛病清单 */
.issue { padding: 10px 12px; border-radius: 10px; background: var(--card, #fffaf0); border: 1px solid rgba(0,0,0,0.08); margin: 8px 0; }
.issue-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.issue p { margin: 2px 0; }

/* 开发:设计院的方案 */
.scheme-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.scheme { text-align: left; cursor: pointer; font: inherit; color: inherit; }
.scheme.on { outline: 2px solid var(--gold, #e0b24c); }
.scheme dl { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; margin: 8px 0 0; }
.scheme dt { font-size: 11px; color: var(--muted, #8a8174); }
.scheme dd { margin: 0; font-weight: 600; }
