/* 自带字体（OFL 授权，见 fonts/OFL.txt）：品牌字只含界面用到的几个字，不依赖 Google 字体服务 */
@font-face { font-family: "ZCOOL KuaiLe"; src: url(fonts/zcool-kuaile-subset.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Fredoka"; src: url(fonts/fredoka-latin.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }
/* 独立网页的基础样式（claude.ai 版由平台提供） */
body { margin: 0; }
[hidden] { display: none !important; }

/* Layout: one-column phone app — scrolling cards on a pale sage ground, tab bar pinned at the bottom of the flex column */
:root {
  --bg: #EDF2EF;
  --surface: #FFFFFF;
  --sunk: #E2EAE6;
  --ink: #1B2A28;
  --ink-2: #4A5D59;
  --muted: #677874;
  --line: #D3DED9;
  --accent: #2C7A6A;
  --accent-ink: #FFFFFF;
  --accent-soft: #D5EAE3;
  --sun: #E9A035;
  --sun-soft: #FBEBCF;
  --warn: #A84B2B;
  --warn-soft: #F8E1D7;
  --skin: #86B865;
  --f-brand: "ZCOOL KuaiLe", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --f-body: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --f-num: "Fredoka", ui-rounded, "SF Pro Rounded", -apple-system, sans-serif;
  --r-card: 18px;
  --r-ctl: 12px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1716; --surface: #172221; --sunk: #1F2D2B; --ink: #E4EEEB; --ink-2: #B3C4C0; --muted: #8FA19D;
    --line: #2A3A38; --accent: #5BC0A8; --accent-ink: #0B1F1A; --accent-soft: #1D3A33; --sun: #F2B65A;
    --sun-soft: #3A2E17; --warn: #E8906E; --warn-soft: #3B231B; --skin: #9CCB7A; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F1716; --surface: #172221; --sunk: #1F2D2B; --ink: #E4EEEB; --ink-2: #B3C4C0; --muted: #8FA19D;
  --line: #2A3A38; --accent: #5BC0A8; --accent-ink: #0B1F1A; --accent-soft: #1D3A33; --sun: #F2B65A;
  --sun-soft: #3A2E17; --warn: #E8906E; --warn-soft: #3B231B; --skin: #9CCB7A; color-scheme: dark;
}

html { height: 100%; box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
body { height: 100%; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 15px; line-height: 1.6; -webkit-text-size-adjust: 100%; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.app { height: 100%; display: flex; flex-direction: column; }
.gut { width: 100%; max-width: 600px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

.top { flex: none; background: var(--bg); padding-top: env(safe-area-inset-top, 0px); }
.top .gut { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-block: 10px 6px; }
.brand { display: flex; align-items: center; gap: 8px; font-family: var(--f-brand); font-size: 24px; line-height: 1; letter-spacing: 1px; white-space: nowrap; }
.brand svg { width: 30px; height: 30px; }
.t-shell { fill: var(--accent); }
.t-skin { fill: var(--skin); }
.t-pattern { fill: none; stroke: var(--accent-ink); stroke-width: 1.4; opacity: .55; }
.t-eye { fill: var(--ink); }
.top-right { display: flex; align-items: center; gap: 6px; }
.mode { font-size: 12px; color: var(--ink-2); background: var(--sunk); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.mode[data-m="cloud"]::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 5px; vertical-align: 1px; }
.hbtn { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 3px 10px 3px 8px; min-height: 32px; font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.hbtn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hbtn[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

main { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.view { display: flex; flex-direction: column; gap: 14px; padding-block: 6px 28px; }
.eyebrow { font-size: 12px; letter-spacing: .12em; color: var(--muted); margin: 0; }
h1 { font-size: 26px; line-height: 1.25; margin: 0; text-wrap: balance; font-weight: 700; }
h2 { font-size: 17px; line-height: 1.35; margin: 0; font-weight: 650; text-wrap: balance; }
h3, .sub { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 0; }
p { margin: 0; }
.lede { color: var(--ink-2); max-width: 36em; }
.hint { font-size: 13px; color: var(--ink-2); }
.meta { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.head-block { display: flex; flex-direction: column; gap: 4px; }

.card { background: var(--surface); border-radius: var(--r-card); padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tipline { background: var(--sun-soft); border-radius: var(--r-card); padding: 12px 16px; display: flex; gap: 12px; align-items: flex-start; }
.tipline b { font-family: var(--f-brand); font-weight: 400; font-size: 15px; white-space: nowrap; color: var(--ink); }
.tipline span { color: var(--ink); }

/* buttons */
.btn { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-ctl); padding: 9px 16px; min-height: 42px; font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--accent); padding-inline: 8px; }
.btn.big { min-height: 52px; font-size: 17px; width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.small { min-height: 32px; padding: 4px 10px; font-size: 13px; }
.row-end { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.seg { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 4px 14px; min-height: 34px; font-size: 14px; }
.seg[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
input[type="date"] { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 4px 12px; min-height: 34px; font-size: 14px; max-width: 150px; }

/* rating pebbles */
.pebbles { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 5px; }
.pebble { border: 1.5px solid var(--line); background: var(--surface); border-radius: 14px; height: 46px; font-family: var(--f-num); font-weight: 600; font-size: 19px; display: grid; place-items: center; padding: 0; transition: transform .12s ease; }
.pebble[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: translateY(-2px); }
.scale { display: flex; flex-direction: column; gap: 4px; }
.scale-bar { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--accent-soft), var(--accent)); }
.scale-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.sr-desc { background: var(--sunk); border-radius: var(--r-ctl); padding: 8px 12px; font-size: 14px; min-height: 40px; }
.sr-desc b { font-family: var(--f-num); font-weight: 600; margin-right: 6px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 13px; font-size: 14px; min-height: 36px; text-align: left; }
.chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); font-weight: 600; }
textarea { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-ctl); padding: 10px 12px; resize: vertical; font-size: 15px; line-height: 1.5; }
input[type="text"], input[type="number"] { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-ctl); padding: 8px 12px; min-height: 42px; font-size: 15px; min-width: 0; width: 100%; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }

.stat-row { display: flex; gap: 10px; flex-wrap: wrap; }
.stat { flex: 1 1 120px; background: var(--sunk); border-radius: var(--r-ctl); padding: 10px 12px; min-width: 0; }
.stat .n { font-family: var(--f-num); font-weight: 600; font-size: 26px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat .l { font-size: 12px; color: var(--ink-2); }

/* AI output */
.actions { display: flex; flex-direction: column; gap: 10px; counter-reset: act; }
.act { border-left: 3px solid var(--sun); padding: 2px 0 2px 12px; display: flex; flex-direction: column; gap: 4px; }
.act .ti { font-weight: 650; font-size: 16px; }
.act .ti::before { counter-increment: act; content: counter(act) "  "; font-family: var(--f-num); color: var(--sun); }
.act .how { color: var(--ink); }
.act .why { font-size: 13px; color: var(--ink-2); }
.flags { background: var(--warn-soft); border-radius: var(--r-ctl); padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.flags b { color: var(--warn); font-size: 14px; }
.flags ul, .rep ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 4px; }
.rep { display: flex; flex-direction: column; gap: 12px; }
.rep h3 { margin-top: 2px; }
.quote { background: var(--sunk); border-radius: 10px; padding: 6px 10px; font-size: 14px; }
.change { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-top: 1px solid var(--line); }
.change:first-of-type { border-top: none; padding-top: 0; }
.change .try { color: var(--ink); }
.change .try b { color: var(--accent); }
.working { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); background: var(--sunk); border-radius: var(--r-ctl); padding: 10px 12px; }
.dot3 { display: inline-flex; gap: 4px; }
.dot3 i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: blink 1.2s infinite ease-in-out; }
.dot3 i:nth-child(2) { animation-delay: .2s; } .dot3 i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } }
.msg { font-size: 14px; border-radius: var(--r-ctl); padding: 10px 12px; background: var(--sunk); }
.msg.bad { color: var(--warn); }

/* chat */
.thread { display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 88%; padding: 10px 13px; border-radius: 16px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; }
.bubble.me { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 6px; }
.bubble.ai { align-self: flex-start; background: var(--surface); border-bottom-left-radius: 6px; }
.composer { display: flex; flex-direction: column; gap: 8px; }
.qchips .chip { font-size: 13px; }

/* recording */
.prompt-box { background: var(--sunk); border-radius: var(--r-ctl); padding: 10px 12px; font-size: 13px; line-height: 1.55; white-space: pre-wrap; max-height: 180px; overflow: auto; overflow-wrap: anywhere; }
ol.steps { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
ol.steps li::marker { color: var(--accent); font-weight: 700; }
.numgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.numgrid input { font-family: var(--f-num); font-size: 18px; }
.numgrid label { font-weight: 400; }
.rate-box { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; background: var(--accent-soft); border-radius: var(--r-ctl); padding: 10px 14px; }
.rate-box .n { font-family: var(--f-num); font-weight: 600; font-size: 32px; line-height: 1; font-variant-numeric: tabular-nums; }
.raw { font-size: 13px; }
.raw summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.raw pre, .raw .inner { white-space: pre-wrap; overflow-wrap: anywhere; font-family: inherit; background: var(--sunk); padding: 8px 10px; border-radius: 10px; max-height: 320px; overflow: auto; margin: 6px 0 0; }

/* charts */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; overflow: visible; }
.c-grid { stroke: var(--line); stroke-width: 1; }
.c-tick { fill: var(--muted); font-size: 10px; font-family: var(--f-num); }
.c-bar { fill: var(--accent); }
.c-none { fill: var(--line); }
.c-today { fill: var(--ink-2); font-size: 10px; }
.c-hit { fill: transparent; cursor: pointer; outline: none; }
.c-hit:hover + .c-hl, .c-hit:focus + .c-hl { opacity: 1; }
.c-hl { fill: var(--accent-soft); opacity: 0; pointer-events: none; }
.c-empty { fill: var(--ink-2); font-size: 13px; }
.c-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.c-dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.c-ref { stroke: var(--muted); stroke-width: 1; }
.c-reflabel { fill: var(--ink-2); font-size: 10px; }
.tip { position: absolute; top: 0; transform: translate(-50%, -100%); background: var(--ink); color: var(--bg); padding: 6px 10px; border-radius: 10px; font-size: 12px; pointer-events: none; white-space: nowrap; z-index: 2; max-width: 240px; }
.tip strong { font-family: var(--f-num); font-size: 18px; margin-right: 6px; }
.tip .tt { display: block; white-space: normal; opacity: .85; }
.freq { display: grid; grid-template-columns: max-content 1fr 2em; gap: 6px 10px; align-items: center; font-size: 14px; }
.freq .bar { height: 10px; border-radius: 0 4px 4px 0; background: var(--accent); min-width: 2px; }
.freq .c { font-family: var(--f-num); text-align: right; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.list { display: flex; flex-direction: column; }
.more-btn { display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; margin-top: 4px; padding: 11px 0 3px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--accent); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.more-btn .ic { width: 16px; height: 16px; transform: rotate(90deg); transition: transform .2s; }
.more-btn .ic.up { transform: rotate(-90deg); }
.item { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); }
.item:first-child { border-top: none; }
.item .score { font-family: var(--f-num); font-weight: 600; font-size: 20px; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; }
.item .body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.item .d { font-weight: 600; font-size: 14px; }
.item .t { font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
.del-zone { display: flex; gap: 4px; align-items: center; }
.empty-note { color: var(--ink-2); font-size: 14px; background: var(--sunk); border-radius: var(--r-ctl); padding: 12px; }
.store-note { font-size: 13px; color: var(--ink-2); }
.baseline dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 12px; font-size: 14px; }
.baseline dt { color: var(--muted); }
.baseline dd { margin: 0; min-width: 0; }

/* guide */
.guide details { background: var(--surface); border-radius: var(--r-card); padding: 0 16px; }
.guide summary { list-style: none; cursor: pointer; padding: 15px 0; font-weight: 650; font-size: 16px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.guide summary::-webkit-details-marker { display: none; }
.guide summary::after { content: "+"; font-family: var(--f-num); font-size: 22px; color: var(--accent); line-height: 1; }
.guide details[open] summary::after { content: "–"; }
.guide .gbody { padding-bottom: 16px; display: flex; flex-direction: column; gap: 10px; color: var(--ink); }
.guide ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
.guide li::marker { color: var(--accent); }
.swap { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: var(--r-ctl); overflow: hidden; font-size: 14px; }
.swap > div { background: var(--surface); padding: 8px 10px; min-width: 0; }
.swap .h { background: var(--sunk); font-size: 12px; font-weight: 600; color: var(--ink-2); }
.letter { background: var(--sunk); border-radius: var(--r-ctl); padding: 12px; font-size: 14px; white-space: pre-wrap; }

/* tabs */
.tabs { flex: none; background: var(--surface); border-top: 1px solid var(--line); }
.tabs .gut { display: grid; grid-template-columns: repeat(4, 1fr); padding-block: 4px max(4px, env(safe-area-inset-bottom, 0px)); }
.tab { background: none; border: none; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0 4px; font-size: 11px; color: var(--muted); min-height: 52px; }
.tab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tab[aria-current="page"] { color: var(--accent); font-weight: 600; }

.toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--bg); padding: 8px 16px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 20; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.view-stack { display: flex; flex-direction: column; gap: 14px; }
.view-stack:empty { display: none; }
.alerts { display: flex; flex-direction: column; gap: 8px; }
.alert { border-radius: var(--r-ctl); padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.alert b { font-size: 15px; }
.alert p { font-size: 14px; color: var(--ink); }
.alert.red { background: var(--warn-soft); } .alert.red b { color: var(--warn); }
.alert.amber { background: var(--sun-soft); }
.alert.green { background: var(--accent-soft); }
.alert.info { background: var(--sunk); }
.sess { display: flex; flex-direction: column; gap: 10px; }
.counters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.counter { border: none; border-radius: 16px; padding: 12px 8px; min-height: 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-weight: 650; font-size: 14px; text-align: center; }
.counter .n { font-family: var(--f-num); font-size: 32px; line-height: 1; font-variant-numeric: tabular-nums; }
.counter .s { font-size: 12px; font-weight: 400; opacity: .85; }
.counter.good { background: var(--accent); color: var(--accent-ink); }
.counter.bad { background: var(--warn-soft); color: var(--ink); }
.undo { display: flex; justify-content: space-between; }
.timer-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.digits-sm { font-family: var(--f-num); font-weight: 600; font-size: 36px; line-height: 1; font-variant-numeric: tabular-nums; min-width: 2.6em; }
.pbar { height: 6px; background: var(--sunk); border-radius: 3px; overflow: hidden; }
.pbar i { display: block; height: 100%; width: 0; background: var(--accent); }
.mhead { display: flex; flex-direction: column; gap: 2px; }
.mhead .nm { font-family: var(--f-brand); font-size: 28px; line-height: 1.15; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 12px; font-size: 14px; margin: 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; min-width: 0; }
.wiz-q { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.wiz-q.first { border-top: none; padding-top: 0; }
.auto { font-size: 13px; color: var(--ink-2); background: var(--sunk); border-radius: 10px; padding: 6px 10px; }
.card.reco { border: 2px solid var(--accent); }
.mopt { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.mopt .btn { white-space: nowrap; flex: none; }
.mopt .t { font-weight: 650; } .mopt .d { font-size: 13px; color: var(--ink-2); }
.howto ol, .howto ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
.howto li::marker { color: var(--accent); font-weight: 700; }
.fbgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 14px; }
.fbgrid div { background: var(--sunk); border-radius: 10px; padding: 8px 10px; }
.fbgrid .g b { color: var(--accent); } .fbgrid .w b { color: var(--warn); }
.tablewrap { overflow-x: auto; }
table.wk { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
table.wk th, table.wk td { padding: 7px 6px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
table.wk th { color: var(--ink-2); font-weight: 600; font-size: 12px; }
table.wk td.n { font-family: var(--f-num); font-weight: 600; font-size: 15px; }
table.wk .wk-l { display: block; font-weight: 600; }
table.wk .wk-r { display: block; font-size: 11.5px; color: var(--muted); }
table.wk tr:last-child td { border-bottom: 0; }
.c-start { stroke: var(--sun); stroke-width: 2; stroke-dasharray: 3 3; }
.c-startlabel { fill: var(--ink-2); font-size: 10px; }
.strat-detail { border-left: 3px solid var(--sun); padding: 2px 0 2px 12px; display: flex; flex-direction: column; gap: 4px; }
.strat-detail .eg { font-size: 14px; color: var(--ink-2); }
h1 { font-size: 28px; }
.glabel { font-size: 12px; letter-spacing: .12em; color: var(--muted); margin: 8px 0 -6px 4px; }
.tab svg { box-sizing: content-box; padding: 3px 14px; border-radius: 999px; transition: background .15s; }
.tab[aria-current="page"] svg { background: var(--accent-soft); }
.task-head { display: flex; align-items: center; gap: 10px; }
.task-head h2 { flex: 1; min-width: 0; }
.tick { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; flex: none; }
.tick.sm { width: 18px; height: 18px; border-width: 1.5px; }
.tick.done { background: var(--accent); border-color: var(--accent); }
.tick.done::after { content: ""; width: 9px; height: 5px; border-left: 2.5px solid var(--accent-ink); border-bottom: 2.5px solid var(--accent-ink); transform: translateY(-1px) rotate(-45deg); }
.tick.sm.done::after { width: 6px; height: 3.5px; border-width: 0 0 2px 2px; }
.done-sum { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--sunk); border-radius: var(--r-ctl); padding: 10px 12px; font-size: 14px; }
.done-sum .big-n { font-family: var(--f-num); font-weight: 600; font-size: 24px; margin-right: 4px; }
.todo-strip { display: flex; gap: 8px; flex-wrap: wrap; }
.todo { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 6px 13px 6px 9px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 600; min-height: 36px; }
.todo.done { background: var(--accent-soft); border-color: transparent; }
.datarow { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 14px; }
.datarow .n { font-family: var(--f-num); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.card.danger { border: 1.5px solid var(--warn); }
.card.danger h2 { color: var(--warn); }
.btn.warn { background: var(--warn); border-color: var(--warn); color: #fff; }
input[type="file"] { font-size: 14px; max-width: 100%; }
.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.xs { width: 15px; height: 15px; vertical-align: -2px; }
.btn .ic { width: 18px; height: 18px; }
h2 .h-ic { width: 20px; height: 20px; vertical-align: -3px; margin-right: 6px; color: var(--accent); }
.card.danger h2 .h-ic { color: var(--warn); }
.mode { display: inline-flex; align-items: center; gap: 4px; }
.mode[data-m="cloud"]::before { display: none; }
.mode[data-m="cloud"] .ic, .mode[data-m="server"] .ic { color: var(--accent); }
.tipline b { display: inline-flex; align-items: center; gap: 4px; }
.tipline b .ic { color: var(--sun); }
.alert { flex-direction: row; align-items: flex-start; gap: 10px; }
.alert .al-ic { width: 22px; height: 22px; margin-top: 1px; }
.alert.red .al-ic { color: var(--warn); } .alert.amber .al-ic { color: var(--sun); } .alert.green .al-ic { color: var(--accent); } .alert.info .al-ic { color: var(--muted); }
.al-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.mhead-row { display: flex; align-items: center; gap: 12px; }
.m-badge { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.m-badge .ic { width: 28px; height: 28px; }
.m-badge.sm { width: 38px; height: 38px; border-radius: 11px; }
.m-badge.sm .ic { width: 22px; height: 22px; }
.mopt > div { flex: 1; min-width: 0; }
.wkdots { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 10px; }
.dots { display: flex; gap: 5px; }
.wd2 { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; color: var(--muted); background: var(--sunk); }
.wd2.on { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.wd2.today { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--accent-2); }
.steps-ol { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 8px; }
.steps-ol li::marker { color: var(--accent); font-weight: 700; }
.card.onboard { background: linear-gradient(180deg, var(--accent-soft), var(--surface) 70%); }
.empty-note { display: flex; gap: 10px; align-items: flex-start; }
.empty-note .ic { color: var(--accent-2); width: 22px; height: 22px; margin-top: 1px; }
.pebble { transition: transform .12s ease, background .12s ease; }
.pebble:active { transform: scale(.94); }
.counter:active, .todo:active, .chip:active { transform: scale(.97); }
.card { transition: box-shadow .2s; }
