:root {
  --bg: #f6f4ef; --card: #ffffff; --ink: #1f2328; --mute: #6b7280; --line: #e2ddd2;
  --acc: #1f6f5c; --acc-ink: #ffffff; --ok: #1f7a3f; --warn: #b26a00; --bad: #b3261e; --soft: #eef3f1;
  --han: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", "Heiti SC", sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font: 17px/1.45 -apple-system, "Segoe UI", Roboto, var(--han); padding-bottom: env(safe-area-inset-bottom); }
#app { max-width: 720px; margin: 0 auto; padding: 12px 16px 96px; }
h1 { font-size: 22px; margin: 8px 0 12px; }
h2 { font-size: 18px; margin: 20px 0 8px; }
p { margin: 8px 0; }
small, .mute { color: var(--mute); font-size: 14px; }
button { font: inherit; color: inherit; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 10px 18px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--card); cursor: pointer; font-weight: 600; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: default; }
.btn.pri { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); }
.btn.ok { background: var(--ok); color: #fff; border-color: var(--ok); }
.btn.bad { background: var(--bad); color: #fff; border-color: var(--bad); }
.btn.warn { background: #fff7e6; border-color: #e6c47a; }
.btn.small { min-height: 44px; padding: 6px 12px; font-weight: 500; font-size: 15px; }
.btn.wide { width: 100%; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row > .grow { flex: 1 1 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin: 12px 0; }
.top { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.top .title { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.banner { border-radius: 12px; padding: 10px 14px; margin: 10px 0; background: #fff7e6; border: 1px solid #e6c47a; }
.banner.bad { background: #fdecea; border-color: #f0b4ae; }
.banner.ok { background: #e9f5ec; border-color: #b5d9bf; }
.who { display: grid; gap: 14px; margin-top: 24px; }
.who .btn { min-height: 96px; font-size: 22px; flex-direction: column; gap: 2px; }
.who .btn small { font-weight: 400; }
.parts { display: grid; gap: 10px; }
.part { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; }
.part .name { flex: 1; }
.part .cnt { font-variant-numeric: tabular-nums; color: var(--mute); font-weight: 500; }
.part.done { border-color: #b5d9bf; background: #f2faf4; }
.bar { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; margin: 6px 0; }
.bar > i { display: block; height: 100%; background: var(--acc); }
.han { font-family: var(--han); font-size: 64px; line-height: 1.2; text-align: center; margin: 18px 0 4px; word-break: break-all; }
.han.long { font-size: 34px; }
.han.mid { font-size: 48px; }
.py { text-align: center; font-size: 24px; color: #374151; margin: 0 0 10px; }
.py.long { font-size: 19px; }
.say { text-align: center; border: 2px dashed var(--bad); border-radius: 14px; padding: 10px; margin: 10px 0; background: #fff; }
.say b { display: block; font-size: 30px; color: var(--bad); }
.meter { height: 10px; background: var(--line); border-radius: 5px; overflow: hidden; margin: 10px 0 4px; }
.meter > i { display: block; height: 100%; width: 0; background: var(--ok); transition: width .06s linear; }
.meter.hot > i { background: var(--bad); }
.rec { width: 100%; min-height: 84px; font-size: 22px; border-radius: 20px; }
.rec.on { background: var(--bad); border-color: var(--bad); color: #fff; }
.status { text-align: center; min-height: 26px; margin: 6px 0; }
.dots { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.dot { min-width: 40px; height: 40px; padding: 0 6px; border-radius: 10px; border: 1px solid var(--line); background: var(--card);
  font-size: 14px; cursor: pointer; font-family: var(--han); }
.dot.done { background: #e9f5ec; border-color: #b5d9bf; }
.dot.wait { background: #fff7e6; border-color: #e6c47a; }
.dot.cur { outline: 3px solid var(--acc); }
.dot.v-ok { background: #e9f5ec; border-color: #b5d9bf; }
.dot.v-minor { background: #fff7e6; border-color: #e6c47a; }
.dot.v-wrong { background: #fdecea; border-color: #f0b4ae; }
.dot.v-problem { background: #eceff3; border-color: #c5ccd6; }
.verdicts { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin: 14px 0 8px; }
.verdicts .btn { min-height: 76px; font-size: 20px; flex-direction: column; gap: 0; padding: 8px 6px; }
.verdicts .btn small { font-weight: 400; color: inherit; opacity: .85; font-size: 13px; }
.verdicts .btn.sel { outline: 4px solid #11182733; }
.syls { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 10px 0; }
.syl { min-width: 64px; padding: 6px 10px; border-radius: 12px; border: 2px solid var(--line); background: var(--card); cursor: pointer; text-align: center; }
.syl b { display: block; font-family: var(--han); font-size: 28px; font-weight: 500; line-height: 1.2; }
.syl span { font-size: 15px; color: #374151; }
.syl em { display: block; font-style: normal; font-size: 12px; color: var(--bad); min-height: 15px; }
.syl.act { border-color: var(--acc); background: var(--soft); }
.syl.marked { border-color: var(--bad); }
.q { margin: 12px 0 4px; font-weight: 600; }
.q span { font-weight: 400; color: var(--mute); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 48px; min-width: 56px; padding: 6px 14px; border-radius: 24px; border: 1px solid var(--line); background: var(--card);
  cursor: pointer; font-size: 17px; }
.chip.sel { background: var(--acc); border-color: var(--acc); color: #fff; }
.chip[disabled] { opacity: .35; cursor: default; }
.chip.more { border-style: dashed; color: var(--mute); }
textarea, input[type=text] { width: 100%; font: inherit; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
textarea { min-height: 64px; }
.foot { position: fixed; left: 0; right: 0; bottom: 0; background: #f6f4efee; border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
.foot .in { max-width: 720px; margin: 0 auto; display: flex; gap: 10px; }
.foot .btn { flex: 1; }
.center { text-align: center; }
.hide { display: none !important; }
ul.plain { padding-left: 20px; margin: 6px 0; }
ul.plain li { margin: 4px 0; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 10px; background: var(--soft); font-size: 13px; color: var(--acc); }
@media (max-width: 380px) { .han { font-size: 52px; } .verdicts .btn { font-size: 18px; } }
.upline { min-height: 24px; font-size: 14px; color: var(--mute); text-align: center; }
.upline.bad { color: var(--warn); }
