:root {
  --bg: #f6f5f1;
  --card: #fff;
  --ink: #1f2328;
  --muted: #6b7076;
  --line: #e3e1da;
  --brand: #0f6e5c;
  --brand-ink: #fff;
  --warn: #b25e00;
  --warn-bg: #fff4e0;
  --bad: #b3261e;
  --ok: #1b7f3b;
  --radius: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 16px; line-height: 1.6; }
.wrap { max-width: 760px; margin: 0 auto; padding: 16px; }
.wide { max-width: 1180px; }
header.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
header.top h1 { font-size: 17px; margin: 0; }
header.top .who { color: var(--muted); font-size: 14px; }
nav.tabs { display: flex; gap: 4px; padding: 8px 16px 0; max-width: 760px; margin: 0 auto; }
.wide nav.tabs, nav.tabs.wide { max-width: 1180px; }
nav.tabs button { flex: 1; border: 0; background: transparent; padding: 10px 6px; font-size: 15px; color: var(--muted); border-bottom: 3px solid transparent; cursor: pointer; }
nav.tabs button.on { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 12px 0; }
.muted { color: var(--muted); font-size: 14px; }
.small { font-size: 13px; }
label { display: block; font-size: 14px; color: var(--muted); margin: 12px 0 4px; }
input, select, textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
textarea { min-height: 160px; resize: vertical; }
textarea.short { min-height: 70px; }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--brand) 40%, transparent); border-color: var(--brand); }
button.btn { font: inherit; border: 1px solid var(--line); background: #fff; padding: 10px 16px; border-radius: 10px; cursor: pointer; }
button.btn.primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); font-weight: 600; }
button.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
button.btn:disabled { opacity: .5; cursor: default; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row > .grow { flex: 1; }
.right { margin-left: auto; }
.q-text { font-size: 19px; font-weight: 600; margin: 6px 0 4px; }
.tag { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 999px; background: #eef3f1; color: var(--brand); margin-right: 6px; }
.tag.live { background: #fdecec; color: var(--bad); }
.tag.warn { background: var(--warn-bg); color: var(--warn); }
.tag.ok { background: #e7f5ec; color: var(--ok); }
.tag.bad { background: #fdecec; color: var(--bad); }
.progress { height: 8px; background: #e9e7e0; border-radius: 999px; overflow: hidden; margin-top: 6px; }
.progress > i { display: block; height: 100%; background: var(--brand); transition: width .3s; }
details { margin-top: 10px; }
details summary { cursor: pointer; color: var(--muted); font-size: 14px; }
details .ref { white-space: pre-wrap; background: #faf9f6; border: 1px dashed var(--line); padding: 10px; border-radius: 8px; font-size: 14px; margin-top: 6px; }
.msg { padding: 10px 12px; border-radius: 10px; margin: 10px 0; font-size: 14px; }
.msg.err { background: #fdecec; color: var(--bad); }
.msg.ok { background: #e7f5ec; color: var(--ok); }
.msg.info { background: var(--warn-bg); color: var(--warn); }
.hidden { display: none !important; }
.list .item { border-top: 1px solid var(--line); padding: 10px 0; }
.list .item:first-child { border-top: 0; }
.pre { white-space: pre-wrap; }
table.stats { width: 100%; border-collapse: collapse; font-size: 14px; }
table.stats th, table.stats td { border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: left; }
table.stats td.n, table.stats th.n { text-align: right; font-variant-numeric: tabular-nums; }
.login { max-width: 420px; margin: 8vh auto; }
.login h1 { font-size: 22px; margin: 0 0 4px; }
.counter { font-size: 14px; color: var(--muted); }
.counter b { color: var(--ink); font-size: 18px; }
.rv-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 800px) { .rv-cols { grid-template-columns: 1fr; } }
.badge { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--bad); color: #fff; font-size: 12px; margin-left: 4px; text-align: center; }

/* ===== 顾问页：简洁版 ===== */
body.simple { background: #fff; }
body.simple .wrap { max-width: 640px; padding: 20px 20px 96px; }
body.simple .login { margin-top: 14vh; }
body.simple .login h1 { font-size: 26px; font-weight: 600; margin-bottom: 4px; }
body.simple form > input, body.simple form > select, body.simple form > textarea, body.simple details > input, body.simple details > select { margin-bottom: 10px; }
body.simple input, body.simple select, body.simple textarea { border-color: #e6e6e6; background: #fafafa; font-size: 16px; }
body.simple textarea { min-height: 200px; line-height: 1.7; }
body.simple textarea.short { min-height: 100px; }
.btn.block { width: 100%; padding: 12px; margin-top: 6px; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--muted); }
.bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px 10px; max-width: 640px; margin: 0 auto; font-size: 15px; color: var(--muted); }
.bar .today b { color: var(--ink); font-size: 17px; }
.track { height: 3px; background: #f0f0f0; }
.track > i { display: block; height: 100%; width: 0; background: var(--brand); transition: width .3s; }
.topic { color: var(--muted); font-size: 13px; min-height: 18px; margin-top: 8px; }
body.simple .q-text { font-size: 21px; line-height: 1.5; margin: 6px 0 18px; }
body.simple details { margin: 0 0 10px; }
body.simple details summary { list-style: none; font-size: 14px; padding: 4px 0; }
body.simple details summary::-webkit-details-marker { display: none; }
body.simple details[open] summary { margin-bottom: 8px; }
.actions { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.actions .primary { min-width: 140px; padding: 12px 20px; }
nav.tabs.bottom { position: fixed; left: 0; right: 0; bottom: 0; max-width: none; margin: 0; padding: 0 0 env(safe-area-inset-bottom); background: #fff; border-top: 1px solid #eee; }
nav.tabs.bottom button { border-bottom: 0; border-top: 2px solid transparent; padding: 14px 6px; }
nav.tabs.bottom button.on { border-top-color: var(--brand); }
body.simple h3 { font-size: 15px; margin: 24px 0 4px; }
body.simple .list .item { border-color: #f0f0f0; }
html:has(body.simple) { background: #fff; }
