/* Mainichi — washi paper, sumi ink, shu (vermilion) seal. */
:root {
  --paper: #f4efe4;
  --paper-2: #ebe4d5;
  --card: #fbf8f1;
  --ink: #1b1915;
  --ink-2: #4a453c;
  --muted: #8a8173;
  --line: #ddd4c2;
  --shu: #d2412c;
  --shu-deep: #a92f1e;
  --shu-ink: #fff8f0;
  --matcha: #3d6b45;
  --matcha-bg: #e3ecdc;
  --bad: #b1372a;
  --bad-bg: #f5e1da;
  --canvas: #fffdf7;
  --guide: #e7dfcf;
  --shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 1px 2px rgba(60,40,10,.05), 0 12px 32px -12px rgba(60,40,10,.18);
  --serif: "Instrument Serif", "Shippori Mincho B1", Georgia, serif;
  --mincho: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --jp: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .28 0 0 0 0 .18 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141210;
    --paper-2: #1d1a17;
    --card: #1f1c19;
    --ink: #f0e9dc;
    --ink-2: #cbc2b2;
    --muted: #958b7c;
    --line: #34302a;
    --shu: #e8573f;
    --shu-deep: #ff7a62;
    --matcha: #8cc596;
    --matcha-bg: #1e2e21;
    --bad: #f08d7d;
    --bad-bg: #3a221e;
    --canvas: #1a1815;
    --guide: #2d2924;
    --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 12px 32px -16px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; color: var(--ink); font-family: var(--ui); font-size: 16px; }
body {
  min-height: 100dvh;
  background: var(--paper) var(--grain);
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Faint enso brushed into the corner of the page. */
body::before {
  content: ""; position: fixed; z-index: -1; pointer-events: none;
  width: 520px; height: 520px; right: -220px; top: -200px; border-radius: 50%;
  border: 38px solid var(--shu); opacity: .05; filter: blur(1px);
  transform: rotate(-18deg); border-right-color: transparent;
}
.jp { font-family: var(--jp); }
button { font: inherit; color: inherit; }
a { color: inherit; }
::selection { background: color-mix(in srgb, var(--shu) 25%, transparent); }

.app { max-width: 560px; margin: 0 auto; padding: 0 16px calc(96px + env(safe-area-inset-bottom)); }

/* ---------- header */
header.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(18px + env(safe-area-inset-top)) 0 14px;
}
header.top h1 {
  margin: 0; display: flex; align-items: baseline; gap: 10px;
  font-family: var(--serif); font-weight: 400; font-size: 26px; letter-spacing: -.01em;
}
header.top h1 span {
  font-family: var(--mincho); font-weight: 700; font-size: 15px; color: var(--shu-ink);
  background: var(--shu); width: 30px; height: 30px; display: inline-grid; place-items: center;
  border-radius: 7px; writing-mode: vertical-rl; letter-spacing: -.12em; line-height: 1;
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px color-mix(in srgb, var(--shu) 40%, transparent);
  align-self: center; transform: rotate(-4deg);
}
.streak { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.streak b { color: var(--shu); font-family: var(--serif); font-size: 22px; font-weight: 400; margin-right: 2px; }

/* ---------- bottom nav */
nav.tabs {
  position: fixed; z-index: 10; left: 50%; transform: translateX(-50%);
  bottom: calc(12px + env(safe-area-inset-bottom));
  width: min(440px, calc(100% - 24px));
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; padding: 6px;
  background: color-mix(in srgb, var(--card) 78%, transparent);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 22px; box-shadow: 0 18px 40px -18px rgba(40, 25, 5, .35);
}
nav.tabs a {
  text-align: center; text-decoration: none; color: var(--muted);
  font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; font-weight: 500;
  padding: 7px 0 6px; border-radius: 16px; transition: color .25s var(--ease), background .25s var(--ease);
}
nav.tabs a .ic { display: block; font-family: var(--mincho); font-weight: 700; font-size: 18px; line-height: 1.25; letter-spacing: 0; text-transform: none; }
nav.tabs a.on { color: var(--shu-ink); background: var(--ink); }
@media (prefers-color-scheme: dark) { nav.tabs a.on { color: var(--paper); background: var(--ink); } }

/* ---------- type */
.eyebrow {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  font-weight: 600; margin: 0 0 8px;
}
.display { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 11vw, 54px); line-height: .98; letter-spacing: -.02em; margin: 6px 0 10px; }
.display-sm { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.05; letter-spacing: -.01em; margin: 2px 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.link { text-decoration: none; }
.back { display: inline-block; margin: 4px 0 8px; color: var(--muted); text-decoration: none; font-size: 14px; }

/* ---------- cards & buttons */
.card {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: 22px; padding: 22px 20px; box-shadow: var(--shadow); margin-bottom: 14px;
}
.btn {
  appearance: none; border: 1px solid var(--line); background: var(--card); border-radius: 14px;
  padding: 13px 18px; font-size: 16px; font-weight: 500; cursor: pointer; min-height: 50px;
  transition: transform .15s var(--ease), background .2s, border-color .2s, box-shadow .2s;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn:active { transform: scale(.97); }
.btn.primary {
  background: var(--ink); color: var(--paper); border-color: var(--ink); font-weight: 600; letter-spacing: .01em;
  box-shadow: 0 10px 24px -12px rgba(27, 25, 21, .55);
}
.btn.primary.big { min-height: 58px; font-size: 17px; border-radius: 18px; background: var(--shu); border-color: var(--shu); color: var(--shu-ink); box-shadow: 0 14px 30px -14px var(--shu); }
.btn.good { background: var(--matcha-bg); color: var(--matcha); border-color: transparent; font-weight: 600; }
.btn.bad { background: var(--bad-bg); color: var(--bad); border-color: transparent; font-weight: 600; }
.btn.block { width: 100%; display: flex; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn:disabled { opacity: .45; cursor: default; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }

/* ---------- home hero */
.hero { text-align: center; padding: 26px 4px 8px; position: relative; }
.hero.compact { padding-top: 10px; }
.seal {
  width: 74px; height: 74px; margin: 6px auto 18px; display: grid; place-items: center;
  font-family: var(--mincho); font-weight: 800; font-size: 26px; letter-spacing: -.08em; writing-mode: vertical-rl;
  color: var(--shu); border: 3px solid var(--shu); border-radius: 12px; transform: rotate(-6deg);
  background: color-mix(in srgb, var(--shu) 6%, transparent);
  box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 4px color-mix(in srgb, var(--shu) 55%, transparent);
  animation: stamp .7s var(--ease) both .15s;
}
.big-seal { width: 104px; height: 104px; font-size: 54px; writing-mode: horizontal-tb; letter-spacing: 0; }
@keyframes stamp { 0% { opacity: 0; transform: scale(1.8) rotate(-14deg); } 60% { opacity: 1; transform: scale(.94) rotate(-5deg); } 100% { transform: scale(1) rotate(-6deg); } }
.plan { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 24px 0 18px; }
.plan div { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px 6px 12px; box-shadow: var(--shadow); }
.plan b { display: block; font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1; }
.plan span { display: block; font-family: var(--mincho); font-weight: 700; font-size: 15px; margin-top: 6px; color: var(--shu); }
.plan small { display: block; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.focus { font-size: 14px; line-height: 1.5; text-align: left; margin: 0 0 18px; padding: 12px 14px; border-radius: 14px; border-left: 3px solid var(--shu); background: color-mix(in srgb, var(--shu) 7%, var(--card)); }
.score { font-family: var(--serif); font-size: 26px; margin: 0; color: var(--muted); }
.score b { font-size: 76px; font-weight: 400; color: var(--ink); line-height: 1; }
.left { text-align: left; margin-top: 20px; }

/* ---------- task flow */
.section-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; display: flex; justify-content: space-between; margin-top: 4px; }
.progress { height: 3px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 10px 0 16px; }
.progress > i { display: block; height: 100%; background: var(--shu); border-radius: 99px; transition: width .5s var(--ease); }
.task { padding-top: 26px; }
.q-big { font-family: var(--jp); font-weight: 500; font-size: clamp(38px, 12vw, 60px); text-align: center; margin: 4px 0 4px; line-height: 1.2; overflow-wrap: anywhere; }
.q-big.q-sentence { font-size: clamp(24px, 7vw, 32px); line-height: 1.5; }
.q-mid { font-family: var(--serif); font-size: 34px; line-height: 1.1; text-align: center; margin: 4px 0 8px; }
.q-en { font-family: var(--serif); font-size: 24px; line-height: 1.2; margin: 4px 0 6px; }
.q-sub { text-align: center; color: var(--muted); min-height: 1.3em; margin: 6px 0 0; font-size: 15px; letter-spacing: .02em; }
.romaji-toggle { display: block; margin: 2px auto 0; border: 0; background: none; color: var(--muted); font-size: 13px; text-decoration: underline dotted; text-underline-offset: 3px; cursor: pointer; min-height: 28px; }
.speak {
  border: 1px solid var(--line); background: var(--card); color: var(--shu); width: 34px; height: 34px; border-radius: 50%;
  font-size: 15px; cursor: pointer; vertical-align: middle; margin-left: 8px; display: inline-grid; place-items: center; padding: 0;
}
.options { display: grid; gap: 10px; margin-top: 22px; }
.options.cols-4 { grid-template-columns: repeat(4, 1fr); }
.opt { justify-content: flex-start; text-align: left; font-size: 17px; padding: 14px 18px; border-radius: 16px; animation: rise .45s var(--ease) both; animation-delay: calc(var(--d, 0) * 50ms + 80ms); }
.opt.jp { font-family: var(--jp); font-size: 21px; }
.opt.center { justify-content: center; font-size: 24px; }
.opt.right { background: var(--matcha-bg); border-color: var(--matcha); color: var(--matcha); }
.opt.wrong { background: var(--bad-bg); border-color: var(--bad); color: var(--bad); animation: shake .35s; }
.feedback { margin-top: 14px; padding: 14px 16px; border-radius: 16px; font-size: 15px; line-height: 1.5; animation: rise .35s var(--ease) both; }
.feedback.ok { background: var(--matcha-bg); color: var(--matcha); }
.feedback.no { background: var(--bad-bg); color: var(--bad); }

/* ---------- writing pad */
.pad-wrap { position: relative; width: 100%; max-width: 340px; margin: 16px auto 0; aspect-ratio: 1; }
.pad-wrap.word { aspect-ratio: 2.2 / 1; max-width: 100%; }
.pad-wrap canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair;
  border-radius: 20px; background: transparent; border: 1px solid var(--line);
  box-shadow: inset 0 2px 10px rgba(60, 40, 10, .06);
}
.pad-guide {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: 20px;
  background:
    repeating-linear-gradient(90deg, var(--guide) 0 6px, transparent 6px 12px) center / 100% 1px no-repeat,
    repeating-linear-gradient(0deg, var(--guide) 0 6px, transparent 6px 12px) center / 1px 100% no-repeat;
}
.pad-wrap canvas { z-index: 2; }
.pad-wrap::before { content: ""; position: absolute; inset: 0; border-radius: 20px; background: var(--canvas) var(--grain); }
.pad-ghost { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; pointer-events: none; font-family: var(--mincho); color: var(--guide); line-height: 1; transition: opacity .3s; max-height: 100%; }
.pad-tools { display: flex; justify-content: space-between; margin-top: 6px; }
.pad-tools .btn { min-height: 40px; padding: 8px 12px; font-size: 14px; color: var(--muted); }
.reveal { display: flex; gap: 14px; align-items: center; justify-content: center; margin-top: 14px; padding-top: 16px; border-top: 1px dashed var(--line); animation: rise .4s var(--ease) both; }
.reveal .glyph { font-family: var(--mincho); font-weight: 600; font-size: 92px; line-height: 1; }
.reveal.word .glyph { font-size: 50px; }
.strokes { width: 96px; height: 96px; background: var(--paper-2); border-radius: 14px; }
.strokes path { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.strokes.play path { animation: draw .55s var(--ease) forwards; animation-delay: calc(var(--i) * .55s + .2s); }
.strokes text { fill: var(--shu); font-size: 9px; font-family: var(--ui); font-weight: 600; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- grammar */
.learn .pattern { font-family: var(--jp); font-size: 21px; padding: 14px 16px; border-radius: 14px; margin: 12px 0; background: var(--paper-2); border: 1px solid var(--line); }
.learn p { line-height: 1.6; color: var(--ink-2); }
.ex { border-left: 2px solid var(--shu); padding: 4px 0 4px 14px; margin: 14px 0; }
.ex .jp { font-size: 19px; display: flex; align-items: center; flex-wrap: wrap; }
.cloze { font-family: var(--jp); font-size: 24px; text-align: center; line-height: 1.9; margin: 18px 0 4px; }
.cloze .blank { display: inline-block; min-width: 2em; border-bottom: 2px solid var(--shu); color: var(--shu); text-align: center; transition: color .2s; }
.cloze .blank.is-right { color: var(--matcha); border-color: var(--matcha); }
.cloze .blank.is-wrong { color: var(--bad); border-color: var(--bad); }
.answer-line { min-height: 64px; border-bottom: 1.5px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 0; margin-top: 18px; align-content: flex-start; }
.tiles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; justify-content: center; }
.tile {
  font-family: var(--jp); font-size: 19px; padding: 10px 14px; border-radius: 12px; min-height: 46px;
  border: 1px solid var(--line); border-bottom-width: 3px; background: var(--card); cursor: pointer;
  animation: rise .4s var(--ease) both; animation-delay: calc(var(--d, 0) * 40ms);
  transition: transform .15s var(--ease);
}
.tile:active { transform: translateY(2px); }
.tile.used { visibility: hidden; }
.tile.placed { background: var(--paper-2); animation: pop .25s var(--ease); }

/* ---------- lists / library / stats */
.list { list-style: none; padding: 0; margin: 0; }
.list li { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .jp { font-size: 18px; }
.list input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--shu); flex: none; }
.lessons li.locked { opacity: .55; }
.lesson-num { font-family: var(--serif); font-size: 34px; width: 44px; text-align: center; color: var(--shu); line-height: 1; }
.pill { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; padding: 4px 9px; border-radius: 99px; background: var(--paper-2); color: var(--muted); white-space: nowrap; }
.pill.box3 { background: var(--matcha-bg); color: var(--matcha); }
.streak-num { font-family: var(--serif); font-size: 120px; line-height: .9; letter-spacing: -.04em; }
.streak-num span { font-family: var(--mincho); font-size: 28px; color: var(--shu); margin-left: 6px; letter-spacing: 0; }
.cal { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; margin: 22px 0 18px; }
.cal i { aspect-ratio: 1; border-radius: 4px; background: var(--paper-2); border: 1px solid var(--line); }
.cal i.d1 { background: color-mix(in srgb, var(--shu) 35%, var(--paper-2)); border-color: transparent; }
.cal i.d2 { background: var(--shu); border-color: transparent; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.stat-grid .card { margin: 0; padding: 18px 16px; }
.stat b { display: block; font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1; margin: 4px 0 4px; }
.stat b small { font-size: 18px; color: var(--muted); }
.bar { height: 4px; background: var(--paper-2); border-radius: 99px; overflow: hidden; margin-top: 10px; }
.bar i { display: block; height: 100%; background: var(--matcha); border-radius: 99px; }
.bar.soft { margin-top: 4px; }
.bar.soft i { background: color-mix(in srgb, var(--shu) 55%, transparent); }

details { border-top: 1px solid var(--line); padding: 4px 0; }
details summary { cursor: pointer; padding: 12px 0; font-weight: 600; list-style: none; }
details summary::after { content: "＋"; float: right; color: var(--muted); }
details[open] summary::after { content: "－"; }
label.field, div.field { display: block; margin: 14px 0; font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: .01em; }
label.field input, label.field select, label.field textarea {
  display: block; width: 100%; margin-top: 7px; font: inherit; font-size: 16px; color: var(--ink); font-weight: 400;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
label.field input:focus, label.field select:focus, label.field textarea:focus { border-color: var(--shu); box-shadow: 0 0 0 3px color-mix(in srgb, var(--shu) 18%, transparent); }
label.field input[type=file] { padding: 10px; }
textarea { min-height: 96px; resize: vertical; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-size: 14px; cursor: pointer; }
.chip input { accent-color: var(--shu); margin: 0; }
.review-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.review-item input[type=checkbox] { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--shu); flex: none; }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--shu); border-radius: 50%; animation: spin .9s linear infinite; vertical-align: -3px; }

/* ---------- login */
.login { max-width: 380px; margin: 16vh auto 0; padding: 32px 24px; text-align: center; }
.login .seal { margin-bottom: 22px; }
.login h1 { font-family: var(--serif); font-weight: 400; font-size: 48px; margin: 0; letter-spacing: -.02em; }
.login label.field { text-align: left; }

/* ---------- motion */
.reveal-up { animation: rise .6s var(--ease) both; }
.task.reveal-up { animation-duration: .45s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { transform: scale(.85); } to { transform: scale(1); } }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- in-session: hide tab bar, show quit */
nav.tabs { transition: transform .35s var(--ease), opacity .35s; }
body.in-task nav.tabs { transform: translate(-50%, 140%); opacity: 0; pointer-events: none; }
body.in-task .app { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
.quit { margin-left: 14px; text-decoration: none; color: var(--muted); font-size: 14px; padding: 4px; }

/* ---------- paper worksheet */
.sheet-list { list-style: none; padding: 0; margin: 18px 0 0; counter-reset: none; }
.sheet-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line); animation: rise .45s var(--ease) both; animation-delay: calc(var(--d, 0) * 45ms); }
.sheet-n { font-family: var(--serif); font-size: 30px; line-height: 1; width: 28px; color: var(--shu); text-align: right; flex: none; }
.sheet-prompt { font-family: var(--serif); font-size: 24px; line-height: 1.15; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.sheet-script { font-family: var(--ui); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.sheet-ans { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sheet-ans:not(:empty) { margin-top: 10px; animation: rise .4s var(--ease) both; }
.sheet-ans .glyph { font-family: var(--mincho); font-weight: 600; font-size: 40px; line-height: 1; }
.sheet-ans .speak { margin-left: 0; }
.sheet-ans .strokes { width: 64px; height: 64px; border-radius: 10px; }
.sheet-fb:not(:empty) { margin-top: 8px; padding: 8px 10px; border-radius: 10px; }
.sheet-fb.ok { background: var(--matcha-bg); color: var(--matcha); }
.sheet-fb.no { background: var(--bad-bg); color: var(--bad); }
.marks { display: none; gap: 6px; flex: none; }
.sheet.revealed .marks { display: flex; }
.mark { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); font-size: 17px; cursor: pointer; color: var(--muted); transition: all .2s var(--ease); }
.mark.ok.on { background: var(--matcha); border-color: var(--matcha); color: var(--paper); }
.mark.no.on { background: var(--bad); border-color: var(--bad); color: var(--paper); }
.sheet-tools { margin-top: 4px; }
