/* TOEIC トレーニング：見た目はできるだけ静かに。色は「青＝操作」「緑＝正解」「赤＝不正解」の3つだけ */
:root {
  --bg: #f5f5f2;
  --surface: #ffffff;
  --surface-2: #eeeeea;
  --text: #19191c;
  --muted: #6c6c73;
  --line: #e3e3de;
  --accent: #2456f0;
  --accent-text: #ffffff;
  --accent-weak: #e9eeff;
  --good: #137a3a;
  --good-weak: #e5f5ea;
  --bad: #c9311f;
  --bad-weak: #fcebe8;
  --warn: #a35c00;
  --warn-weak: #fdf1df;
  --mark: #fff0b3;
  --shadow: 0 1px 2px rgba(20, 20, 30, 0.05), 0 4px 16px rgba(20, 20, 30, 0.04);
  --radius: 18px;
  --tab-h: 62px;
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
  --font-en: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111214;
    --surface: #1b1c1f;
    --surface-2: #26272b;
    --text: #ececef;
    --muted: #9a9aa3;
    --line: #2e2f34;
    --accent: #6f8fff;
    --accent-text: #0d1020;
    --accent-weak: #1f2747;
    --good: #4cc27a;
    --good-weak: #15301f;
    --bad: #ff7b6b;
    --bad-weak: #3a1b17;
    --warn: #f0b155;
    --warn-weak: #36280f;
    --mark: #4a3f10;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
.en { font-family: var(--font-en); }

.page {
  max-width: 560px;
  margin: 0 auto;
  padding: calc(16px + env(safe-area-inset-top)) 16px calc(var(--tab-h) + 24px + env(safe-area-inset-bottom));
}
body.focus .page { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }

/* ---- 下のタブ */
#tabs {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: calc(var(--tab-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: flex;
  justify-content: center;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  z-index: 10;
}
body.focus #tabs { display: none; }
#tabs a {
  flex: 1;
  max-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 11px;
  color: var(--muted);
}
#tabs a svg { width: 24px; height: 24px; }
#tabs a.on { color: var(--accent); font-weight: 600; }

/* ---- 見出し */
.title { font-size: 24px; font-weight: 700; margin: 4px 0 16px; letter-spacing: 0.01em; }
.section-label { font-size: 13px; color: var(--muted); font-weight: 600; margin: 24px 4px 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---- カード */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.card + .card { margin-top: 12px; }

/* ---- ボタン */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 16px;
  background: var(--surface-2);
  transition: transform 0.08s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--accent); color: var(--accent-text); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn:disabled { opacity: 0.4; pointer-events: none; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }
.icon-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted);
  flex: none;
}
.icon-btn:active { background: var(--surface-2); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn.accent { color: var(--accent); background: var(--accent-weak); }

/* ---- ホーム：予想スコア */
.score-big { display: flex; align-items: baseline; gap: 8px; margin: 2px 0 6px; }
.score-big b { font-size: 52px; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; font-family: var(--font-en); }
.score-split { display: flex; gap: 10px; margin-top: 14px; }
.score-split > div { flex: 1; background: var(--surface-2); border-radius: 12px; padding: 10px 14px; }
.score-split b { font-size: 22px; font-family: var(--font-en); }

.today-count { display: flex; gap: 22px; margin: 8px 0 18px; }
.today-count div { display: flex; flex-direction: column; }
.today-count b { font-size: 28px; font-family: var(--font-en); line-height: 1.2; }

/* ---- 一覧 */
.list { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.list-item {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.list-item:last-child { border-bottom: 0; }
.list-item:active { background: var(--surface-2); }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .sub { font-size: 13px; color: var(--muted); }
.chev { color: var(--muted); width: 18px; height: 18px; flex: none; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); flex: none; }
.dot.learning { background: var(--warn); }
.dot.known { background: var(--good); }

.chip {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.chip.accent { background: var(--accent-weak); color: var(--accent); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips .chip { flex: none; padding: 7px 14px; font-size: 13px; background: var(--surface); box-shadow: var(--shadow); }
.chips .chip.accent { background: var(--accent); color: var(--accent-text); }
.icon-btn.star.on { color: var(--warn); }
.list-item.card { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); border: 0; background: var(--surface); }
.list-item:disabled { opacity: 1; cursor: default; }

/* ---- 進み具合の細い線 */
.progress { height: 4px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--accent); border-radius: 4px; transition: width 0.3s ease; }

.topbar { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.topbar .grow { flex: 1; }
.topbar .count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 52px; text-align: right; }

/* ---- 単語カード */
.word-card { padding: 26px 22px 22px; min-height: 340px; display: flex; flex-direction: column; }
.word-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.word { font-family: var(--font-en); font-size: 36px; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; margin: 14px 0 2px; word-break: break-word; }
.pos { color: var(--muted); font-size: 14px; }
.example { font-family: var(--font-en); font-size: 19px; line-height: 1.55; margin: 22px 0 0; display: flex; gap: 6px; align-items: flex-start; }
.example p { margin: 0; flex: 1; }
mark { background: linear-gradient(transparent 55%, var(--mark) 55%); color: inherit; font-weight: 700; padding: 0 1px; }
.answer { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line); animation: rise 0.18s ease; }
.meaning { font-size: 24px; font-weight: 700; line-height: 1.4; }
.example-ja { color: var(--muted); margin-top: 6px; }
.hint { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--accent-weak); font-size: 14px; }
.hint b { color: var(--accent); margin-right: 6px; font-size: 12px; }
.extra { margin-top: 10px; font-size: 14px; color: var(--muted); }
.extra div + div { margin-top: 4px; }
.tap-note { margin-top: auto; padding-top: 18px; text-align: center; color: var(--muted); font-size: 13px; }

.grade { display: flex; gap: 10px; margin-top: 14px; }
.grade button {
  flex: 1;
  min-height: 60px;
  border-radius: 14px;
  font-weight: 700;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  line-height: 1.25;
}
.grade button small { font-weight: 500; font-size: 11px; opacity: 0.75; }
.grade .g0 { background: var(--bad-weak); color: var(--bad); }
.grade .g1 { background: var(--warn-weak); color: var(--warn); }
.grade .g2 { background: var(--good-weak); color: var(--good); }
.keys { text-align: center; color: var(--muted); font-size: 12px; margin-top: 10px; }
@media (hover: none), (max-width: 600px) { .keys { display: none; } }

/* ---- 選択肢 */
.choices { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.choice {
  display: flex; align-items: flex-start; gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  text-align: left;
  min-height: 54px;
}
.choice .letter {
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  color: var(--muted);
  font-family: var(--font-en);
}
.choice .text { flex: 1; padding-top: 2px; }
.choice.picked { border-color: var(--accent); background: var(--accent-weak); }
.choice.picked .letter { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.choice.correct { border-color: var(--good); background: var(--good-weak); }
.choice.correct .letter { background: var(--good); border-color: var(--good); color: #fff; }
.choice.wrong { border-color: var(--bad); background: var(--bad-weak); }
.choice.wrong .letter { background: var(--bad); border-color: var(--bad); color: #fff; }
.choice:disabled { cursor: default; }
.choices.abc { flex-direction: row; }
.choices.abc .choice { justify-content: center; min-height: 64px; }
.choices.abc .choice .letter { width: 36px; height: 36px; font-size: 16px; }

/* ---- 試験 */
.exam-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.exam-head .grow { flex: 1; min-width: 0; }
.exam-head .part { font-weight: 700; }
.timer { font-variant-numeric: tabular-nums; font-weight: 700; font-family: var(--font-en); padding: 4px 12px; border-radius: 999px; background: var(--surface-2); }
.timer.low { background: var(--bad-weak); color: var(--bad); }
.qnum { font-weight: 700; color: var(--accent); font-family: var(--font-en); margin-right: 8px; }
.question { font-size: 17px; margin: 18px 0 0; }
.question.en, .doc.en { font-family: var(--font-en); }
.listen-state { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.listen-state .progress { flex: 1; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: pulse 1.2s ease-in-out infinite; flex: none; }
.doc { background: var(--surface); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); font-size: 15px; line-height: 1.65; white-space: pre-wrap; }
.doc + .doc { margin-top: 10px; }
.doc .doc-title { font-family: var(--font); font-weight: 700; font-size: 13px; color: var(--muted); margin-bottom: 8px; white-space: normal; }
.photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--surface-2); }
.photo img { display: block; width: 100%; height: auto; }
.gfx { white-space: normal; padding: 14px; }
.gfx table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.4; }
.gfx th, .gfx td { border: 1px solid var(--line); padding: 7px 8px; text-align: left; vertical-align: top; }
.gfx th { background: var(--surface-2); font-weight: 700; }
.blank { display: inline-block; min-width: 3.2em; border-bottom: 2px solid var(--accent); text-align: center; color: var(--accent); font-weight: 700; font-size: 13px; }
.palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 8px; }
.palette button { height: 44px; border-radius: 10px; background: var(--surface-2); font-weight: 600; font-family: var(--font-en); }
.palette button.done { background: var(--accent-weak); color: var(--accent); }
.palette button.now { outline: 2px solid var(--accent); }
.palette button.ok { background: var(--good-weak); color: var(--good); }
.palette button.ng { background: var(--bad-weak); color: var(--bad); }

.sheet-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.35); z-index: 20; animation: fade 0.15s ease; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0;
  max-width: 560px; margin: 0 auto;
  max-height: 86vh; overflow: auto;
  background: var(--surface);
  border-radius: 22px 22px 0 0;
  padding: 10px 20px calc(24px + env(safe-area-inset-bottom));
  z-index: 21;
  animation: up 0.2s ease;
}
.sheet .grabber { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 14px; }

/* ---- 結果 */
.bar-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.bar-row .name { width: 112px; font-size: 14px; flex: none; }
.bar-row .bar { flex: 1; height: 8px; background: var(--surface-2); border-radius: 8px; overflow: hidden; }
.bar-row .bar i { display: block; height: 100%; background: var(--accent); border-radius: 8px; }
.bar-row .val { width: 54px; text-align: right; font-size: 14px; font-variant-numeric: tabular-nums; flex: none; }
.mark-ok { color: var(--good); font-weight: 700; }
.mark-ng { color: var(--bad); font-weight: 700; }

/* ---- 聞き返し用のプレーヤー */
.player {
  position: sticky; top: calc(8px + env(safe-area-inset-top)); z-index: 5;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 2px 14px rgba(20, 20, 30, 0.08);
  padding: 12px 14px;
}
.player .controls { display: flex; align-items: center; gap: 4px; }
.player .play { width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: var(--accent-text); display: flex; align-items: center; justify-content: center; flex: none; }
.player .play svg { width: 22px; height: 22px; }
.player .time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 84px; text-align: center; }
.player .speed { font-size: 13px; font-weight: 700; padding: 6px 10px; border-radius: 999px; background: var(--surface-2); min-width: 56px; font-family: var(--font-en); }
.seek { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 6px 0 0; }
.seek::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(to right, var(--accent) var(--p, 0%), var(--surface-2) var(--p, 0%)); }
.seek::-moz-range-track { height: 6px; border-radius: 6px; background: var(--surface-2); }
.seek::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--accent); }
.seek::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); margin-top: -7px; border: 3px solid var(--surface); box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.seek::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--accent); border: 3px solid var(--surface); }
.script { margin-top: 14px; }
.line { display: flex; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 12px; }
.line + .line { margin-top: 2px; }
.line .who { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.line .body { flex: 1; }
.line .en { font-size: 15px; line-height: 1.55; }
.line .ja { font-size: 13px; color: var(--muted); margin-top: 2px; }
.line.now { background: var(--accent-weak); }
.line.narr .who { background: transparent; border: 1.5px solid var(--line); color: var(--muted); font-size: 11px; }
.line.narr .en { color: var(--muted); font-size: 14px; }
.line.now .who { background: var(--accent); color: var(--accent-text); }
/* ---- 文法 */
.gmark { color: var(--accent); font-weight: 700; background: var(--accent-weak); border-radius: 4px; padding: 0 2px; }
.gex { display: flex; gap: 6px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.gex:first-child { border-top: 0; padding-top: 0; }
.gex .en { font-size: 16px; line-height: 1.55; }
.gtable { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.grow-row { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; }
.gkey { font-weight: 700; font-size: 14px; }
.gval { font-size: 14px; color: var(--text); margin-top: 2px; }
.gmiss { position: relative; padding-left: 22px; font-size: 14px; }
.gmiss + .gmiss { margin-top: 8px; }
.gmiss::before { content: "!"; position: absolute; left: 0; top: 1px; width: 16px; height: 16px; border-radius: 50%; background: var(--warn-weak); color: var(--warn); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.lookup-block { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
.lookup-sheet .btn { min-height: 46px; font-size: 15px; }
[data-lookup] .en, [data-lookup] .doc, [data-lookup] .example p { -webkit-touch-callout: none; }
.cj { display: block; font-family: var(--font); font-size: 13px; color: var(--muted); margin-top: 2px; }
.explain { margin-top: 12px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); font-size: 14px; }

.seg { display: flex; background: var(--surface-2); border-radius: 12px; padding: 3px; gap: 3px; overflow-x: auto; }
.seg button { flex: 1; padding: 8px 10px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.search { width: 100%; height: 46px; border-radius: 12px; border: 0; background: var(--surface); box-shadow: var(--shadow); padding: 0 16px; outline: none; }
.search:focus { box-shadow: 0 0 0 2px var(--accent); }

.center { text-align: center; }
.stack > * + * { margin-top: 12px; }
.spacer { height: 16px; }

#toast {
  position: fixed; left: 50%; bottom: calc(var(--tab-h) + 20px + env(safe-area-inset-bottom));
  transform: translate(-50%, 20px);
  background: var(--text); color: var(--bg);
  padding: 10px 18px; border-radius: 999px; font-size: 14px;
  opacity: 0; pointer-events: none; transition: all 0.2s ease; z-index: 30;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
body.focus #toast { bottom: auto; top: calc(14px + env(safe-area-inset-top)); }

@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes up { from { transform: translateY(40px); opacity: 0.6; } to { transform: none; opacity: 1; } }
@keyframes pulse { 0%, 100% { transform: scale(0.8); opacity: 0.6; } 50% { transform: scale(1.15); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---- 学び方のタイル */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 14px 14px 16px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow);
  text-align: left; min-height: 104px;
}
.tile:active { transform: scale(0.98); }
.tile:disabled { opacity: 0.45; }
.tile .tile-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-weak); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.tile .tile-icon svg { width: 20px; height: 20px; }
.tile b { font-size: 15px; }
.tile span:last-child { font-size: 12px; color: var(--muted); line-height: 1.45; }

/* ---- ユニット一覧 */
.unit-no { width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--font-en); flex: none; }
.mini { display: flex; height: 5px; border-radius: 5px; background: var(--surface-2); overflow: hidden; margin: 6px 0 4px; max-width: 220px; }
.mini i { background: var(--good); }
.mini b { background: var(--warn); opacity: 0.55; }

/* ---- 単語帳 */
.cover { margin-top: 14px; padding: 14px; border-radius: 12px; background: var(--surface-2); color: var(--muted); text-align: center; font-size: 14px; }
.blank-word { display: inline-block; padding: 0 4px; border-bottom: 2px solid var(--accent); color: var(--accent); font-weight: 700; letter-spacing: 0.05em; }
.flip-controls { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.icon-btn.big { width: 52px; height: 52px; background: var(--surface); box-shadow: var(--shadow); color: var(--text); }
.icon-btn.big:disabled { opacity: 0.35; }
.icon-btn.big svg { width: 24px; height: 24px; }

/* ---- 問題：さっと解く */
.option-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.option-row > span { flex: none; width: 56px; font-size: 13px; color: var(--muted); }
.option-row > .seg, .option-row > .chips { flex: 1; min-width: 0; }
.feedback { margin-top: 14px; padding: 14px 16px; border-radius: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; animation: rise 0.18s ease; }
.feedback.ok { background: var(--good-weak); color: var(--good); }
.feedback.ng { background: var(--bad-weak); color: var(--bad); }
.tag { display: inline-block; font-size: 11px; font-weight: 700; color: var(--muted); background: var(--surface-2); border-radius: 6px; padding: 1px 8px; margin-left: 6px; vertical-align: middle; }

/* ---- 記録 */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat-grid > div { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); padding: 12px 14px; }
.stat-grid b { display: block; font-size: 22px; font-family: var(--font-en); }
.switch { width: 50px; height: 30px; border-radius: 15px; background: var(--line); position: relative; flex: none; transition: background 0.15s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform 0.15s; }
.switch.on { background: var(--good); }
.switch.on::after { transform: translateX(20px); }