/* SMCP Trainer — ใช้ชุดสีเดียวกับแอป Safety Campaign (กรมท่า #120A49 / แดง #AF2C18 / ทอง) และฟอนต์ที่ฝังไว้ใน /assets/fonts
 * สีทั้งหมดเป็นตัวแปรบน :root (มีชุดสำหรับโหมดมืด) */
@import url("../../assets/fonts/fonts.css");

:root {
  --ink: #0b0a2e; --navy: #14104b; --navy-2: #1d1a63; --navy-3: #2f2d80; --red: #af2c18;
  --gold: #c8a45a; --gold-2: #e6cf96; --gold-3: #7a5d22; --gold-grad: linear-gradient(135deg, #f1dfaa 0%, #d4b06a 45%, #b38a3e 100%);
  --bg: #f6f3ec; --card: #fffdf8; --card-2: #faf6ec; --text: #1c2333; --muted: #626774; --line: #e6dcc6;
  --ok: #2e7d5b; --ok-bg: #e6f2ec; --bad: #b4433a; --bad-bg: #fbeceb; --warn-bg: #fbf3dc;
  --port: #c0392b; --stbd: #23845a;
  --art-sky: #e9eef7; --art-sea: #9fbbe0; --art-wave: #ffffff; --art-hull: #1d1a63; --art-hull2: #6b7fb3; --art-deck: #f4efe2; --art-win: #2f2d80;
  --art-card: #ffffff; --art-tile: #fffaf0; --art-text: #1c2333; --art-line: #8a8fa0; --art-rock: #8b7d6b; --art-oil: #2b2b2b; --art-lifeboat: #e8742a;
  --radius: 18px; --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(10, 22, 40, .05), 0 10px 30px rgba(10, 22, 40, .08);
  --font: "IBM Plex Sans Thai", "Leelawadee UI", "Tahoma", system-ui, sans-serif;
  --serif: "Noto Serif Thai", "IBM Plex Sans Thai", "Leelawadee UI", serif;
  --tabbar-h: 0px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a111e; --card: #111b2c; --card-2: #0f1828; --text: #ece7dc; --muted: #a3a9b6; --line: #26324a; --gold-3: #d9bd7e;
    --ok-bg: #13301f; --bad-bg: #3a1d1b; --warn-bg: #2b2414; --port: #ef6a5b; --stbd: #4fc08d;
    --art-sky: #15213a; --art-sea: #23406b; --art-wave: #6f8fbf; --art-hull: #9fb2ea; --art-hull2: #5d6f9e; --art-deck: #2a3550; --art-win: #e6cf96;
    --art-card: #1a263c; --art-tile: #1c2a42; --art-text: #ece7dc; --art-line: #7d8699; --art-rock: #6b6050; --art-oil: #05070c;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
  }
}
:root[data-theme="dark"] {
  --bg: #0a111e; --card: #111b2c; --card-2: #0f1828; --text: #ece7dc; --muted: #a3a9b6; --line: #26324a; --gold-3: #d9bd7e;
  --ok-bg: #13301f; --bad-bg: #3a1d1b; --warn-bg: #2b2414; --port: #ef6a5b; --stbd: #4fc08d;
  --art-sky: #15213a; --art-sea: #23406b; --art-wave: #6f8fbf; --art-hull: #9fb2ea; --art-hull2: #5d6f9e; --art-deck: #2a3550; --art-win: #e6cf96;
  --art-card: #1a263c; --art-tile: #1c2a42; --art-text: #ece7dc; --art-line: #7d8699; --art-rock: #6b6050; --art-oil: #05070c;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; padding-bottom: var(--tabbar-h); overflow-x: hidden; }
a { color: var(--navy-3); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) a { color: var(--gold-2); } }
:root[data-theme="dark"] a { color: var(--gold-2); }
button, input, select, textarea { font-family: inherit; font-size: 16px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.ic { width: 20px; height: 20px; flex: none; }

/* ---------- Header ---------- */
.topbar { background: linear-gradient(180deg, var(--ink), var(--navy)); color: #fff; position: sticky; top: 0; z-index: 20; }
.topbar::after { content: ""; display: block; height: 2px; background: var(--gold-grad); }
.topbar .inner { max-width: 1080px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff !important; min-width: 0; }
.brand img { height: 40px; width: 40px; object-fit: contain; background: #fff; border-radius: 10px; padding: 3px; flex: none; }
.brand .t1 { font-family: var(--serif); font-weight: 700; font-size: 17px; letter-spacing: 1.5px; color: var(--gold-2); display: block; line-height: 1.2; }
.brand .t2 { font-size: 12px; opacity: .8; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { margin-left: auto; display: flex; gap: 2px; }
.nav a { color: #e9e3d3 !important; text-decoration: none; padding: 8px 11px; border-radius: 10px; font-size: 14.5px; white-space: nowrap; }
.nav a:hover { background: rgba(255, 255, 255, .07); }
.nav a.active { color: var(--gold-2) !important; box-shadow: inset 0 -2px 0 var(--gold); }
.me-link { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--gold-2) !important; border: 1px solid rgba(230, 207, 150, .45); flex: none; }
.me-link.active { background: var(--gold-grad); color: var(--ink) !important; }

.tabbar { display: none; }
@media (max-width: 820px) {
  :root { --tabbar-h: calc(62px + env(safe-area-inset-bottom)); }
  .nav { display: none; }
  .me-link { margin-left: auto; }
  .tabbar { display: grid; grid-template-columns: repeat(6, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: linear-gradient(180deg, var(--navy), var(--ink)); padding: 5px 2px calc(5px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(230, 207, 150, .35); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 1px; text-decoration: none; color: #c9c3b3 !important; font-size: 11px; padding: 4px 0; border-radius: 10px; min-height: 50px; justify-content: center; }
  .tabbar a .ic { width: 22px; height: 22px; }
  .tabbar a.active { color: var(--gold-2) !important; background: rgba(230, 207, 150, .1); }
}

main { max-width: 1080px; margin: 0 auto; padding: 20px 16px 56px; }
footer { text-align: center; color: var(--muted); font-size: 12.5px; padding: 8px 16px 24px; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--serif); letter-spacing: .2px; }
h1 { font-size: 26px; line-height: 1.35; margin: 0 0 6px; }
h2 { font-size: 20px; margin: 0 0 10px; }
h3 { font-size: 17px; margin: 0 0 6px; }
.muted { color: var(--muted); font-size: 14px; }
.small { font-size: 13px; }
.eyebrow { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-3); font-weight: 600; }
.en { font-family: var(--font); font-weight: 600; letter-spacing: .1px; }
.section-title { display: flex; align-items: center; gap: 12px; margin: 26px 0 12px; }
.section-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); opacity: .6; }
.section-title h2 { margin: 0; }

/* ---------- Generic ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 16px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.grid.tight { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 1px 10px; border-radius: 99px; background: var(--card-2); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.pill.off { background: var(--warn-bg); color: var(--gold-3); border-color: var(--gold); }
.pill.ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.pill.bad { background: var(--bad-bg); color: var(--bad); border-color: transparent; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; background: var(--navy-2); color: #fff !important;
  padding: 10px 18px; border-radius: 12px; font-size: 15.5px; font-weight: 600; cursor: pointer; text-decoration: none; min-height: 46px; box-shadow: 0 4px 14px rgba(15, 33, 64, .2); }
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.gold { background: var(--gold-grad); color: var(--ink) !important; }
.btn.red { background: var(--red); }
.btn.ghost { background: transparent; color: var(--text) !important; border-color: var(--line); box-shadow: none; }
.btn.sm { min-height: 38px; padding: 6px 12px; font-size: 14px; }
.btn.icon { padding: 0; width: 46px; }
.btn.sm.icon { width: 38px; }
.btn.live { background: var(--red); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(175, 44, 24, .18); } }
.back { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; font-size: 14px; margin-bottom: 8px; color: var(--muted) !important; }
.note { background: var(--warn-bg); border-left: 4px solid var(--gold); border-radius: 10px; padding: 10px 14px; font-size: 14px; margin: 12px 0; }
.note.red { background: var(--bad-bg); border-color: var(--red); }
.bar { height: 8px; background: var(--card-2); border: 1px solid var(--line); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--gold-grad); border-radius: 99px; }
input[type=text], select, textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--text); }
label.f { display: block; font-size: 14px; color: var(--muted); margin: 10px 0 4px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 13px; }

/* ---------- Hero / Menu ---------- */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: center; background: linear-gradient(135deg, var(--ink), var(--navy-2)); color: #fff; border-radius: 22px; padding: 22px; margin-bottom: 18px; }
.hero h1 { color: #fff; }
.hero p { color: #ddd8ca; margin: 6px 0 14px; }
.hero .art { border-radius: 14px; }
@media (max-width: 720px) { .hero { grid-template-columns: 1fr; padding: 18px; } }
.menu a { display: flex; gap: 14px; align-items: center; text-decoration: none; color: var(--text) !important; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; box-shadow: var(--shadow); }
.menu a:hover { border-color: var(--gold); }
.menu .mi { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--navy-2); color: var(--gold-2); flex: none; }
.menu .mi .ic { width: 26px; height: 26px; }
.menu b { display: block; font-size: 16px; }
.menu span.muted { display: block; font-size: 13px; line-height: 1.4; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 600px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; text-align: center; }
.stat b { display: block; font-size: 22px; font-family: var(--serif); color: var(--navy-3); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stat b { color: var(--gold-2); } }
:root[data-theme="dark"] .stat b { color: var(--gold-2); }

/* ---------- Lessons ---------- */
.lesson-card { display: flex; flex-direction: column; text-decoration: none; color: var(--text) !important; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.lesson-card:hover { border-color: var(--gold); }
.lesson-card .art { display: block; width: 100%; height: auto; }
.lesson-card .b { padding: 12px 14px 14px; }
.lesson-card .no { font-size: 12px; color: var(--gold-3); font-weight: 600; letter-spacing: 1px; }
.art { width: 100%; height: auto; display: block; border-radius: 12px; }
.lesson-art { max-width: 560px; margin: 0 auto 14px; }
ul.points { padding-left: 20px; margin: 6px 0; }
ul.points li { margin: 4px 0; }
.phrase { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 10px; align-items: start; padding: 12px 0; border-bottom: 1px dashed var(--line); }
@media (max-width: 560px) { .phrase { grid-template-columns: auto 1fr; } .phrase .ref { grid-column: 2; white-space: normal; } }
.phrase:last-child { border-bottom: 0; }
.phrase .tx { flex: 1; min-width: 0; }
.phrase .en { font-size: 16.5px; line-height: 1.45; }
.phrase .th { color: var(--muted); font-size: 14.5px; }
.phrase .src { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.phrase .src code { font-family: inherit; background: var(--card-2); border: 1px solid var(--line); border-radius: 6px; padding: 0 5px; }
.ref { font-size: 11.5px; color: var(--gold-3); white-space: nowrap; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.tile { background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px; text-align: center; cursor: pointer; color: var(--text); }
.tile:hover { border-color: var(--gold); }
.tile b { display: block; font-size: 22px; font-family: var(--serif); line-height: 1.2; }
.tile span { font-size: 13.5px; font-weight: 600; }
.tile small { display: block; color: var(--red); font-weight: 700; font-size: 12px; }
.marker-row { display: grid; grid-template-columns: 130px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.marker-row .m { font-weight: 700; color: var(--navy-3); font-size: 14px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .marker-row .m { color: var(--gold-2); } }
:root[data-theme="dark"] .marker-row .m { color: var(--gold-2); }
@media (max-width: 560px) { .marker-row { grid-template-columns: 1fr; gap: 2px; } }
.amb { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0; }
.amb div { border-radius: 10px; padding: 8px 12px; font-size: 14.5px; }
.amb .no { background: var(--bad-bg); }
.amb .yes { background: var(--ok-bg); }
@media (max-width: 560px) { .amb { grid-template-columns: 1fr; } }
.struct { counter-reset: s; list-style: none; padding: 0; margin: 8px 0; }
.struct li { counter-increment: s; display: flex; gap: 10px; align-items: baseline; padding: 6px 0; }
.struct li::before { content: counter(s); width: 24px; height: 24px; border-radius: 50%; background: var(--red); color: #fff; display: inline-grid; place-items: center; font-size: 13px; flex: none; }
.example { background: var(--ink); color: #f1ead7; border-radius: 12px; padding: 12px 14px; font-size: 14px; letter-spacing: .3px; line-height: 1.6; }

/* ---------- Speak ---------- */
.speak-card { text-align: center; }
.speak-card .big { font-size: 26px; font-weight: 700; line-height: 1.35; margin: 6px 0; word-break: break-word; }
.speak-card .big.long { font-size: 20px; }
.speak-card .th { color: var(--muted); }
.speak-card .controls { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 16px 0 6px; }
.words { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 10px 0; }
.words span { padding: 2px 9px; border-radius: 8px; font-weight: 600; font-size: 15px; }
.words .h { background: var(--ok-bg); color: var(--ok); }
.words .m { background: var(--bad-bg); color: var(--bad); }
.score-ring { width: 92px; height: 92px; margin: 6px auto; position: relative; }
.score-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 24px; font-family: var(--serif); }
.self-rate { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

/* ---------- Quiz ---------- */
.q-choices { display: grid; gap: 10px; margin-top: 12px; }
.choice { text-align: left; background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; cursor: pointer; color: var(--text); font-size: 15.5px; line-height: 1.45; min-height: 50px; }
.choice:hover:not(:disabled) { border-color: var(--gold); }
.choice.right { border-color: var(--ok); background: var(--ok-bg); }
.choice.wrong { border-color: var(--bad); background: var(--bad-bg); }
.choice:disabled { cursor: default; }
.why { margin-top: 12px; font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; min-height: 46px; padding: 8px; border: 1.5px dashed var(--line); border-radius: 12px; }
.chip { background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px; cursor: pointer; font-weight: 600; color: var(--text); font-size: 15px; }
.chip.used { opacity: .3; pointer-events: none; }
.qtop { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }

/* ---------- Games ---------- */
.game-card { text-align: center; }
.big-letter { font-family: var(--serif); font-size: 72px; line-height: 1; margin: 6px 0; color: var(--navy-3); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .big-letter { color: var(--gold-2); } }
:root[data-theme="dark"] .big-letter { color: var(--gold-2); }
.timer { font-family: var(--serif); font-size: 20px; }
.hud { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-weight: 600; }
.dial { max-width: 380px; margin: 0 auto; }
.order-btns { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); margin-top: 10px; }
.order-btns button { min-height: 44px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--card); color: var(--text); font-weight: 600; cursor: pointer; font-size: 13.5px; padding: 4px; }
.order-btns button.p { border-color: var(--port); color: var(--port); }
.order-btns button.s { border-color: var(--stbd); color: var(--stbd); }
.order-btns button.right { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); }
.order-btns button.wrong { background: var(--bad-bg); border-color: var(--bad); color: var(--bad); }
.memory { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 640px) { .memory { grid-template-columns: repeat(4, 1fr); } }
.mcard { min-height: 92px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--navy-2); color: transparent; cursor: pointer; padding: 6px; font-size: 13.5px; line-height: 1.3; font-weight: 600; }
.mcard.open { background: var(--card); color: var(--text); border-color: var(--gold); }
.mcard.done { background: var(--ok-bg); color: var(--ok); border-color: var(--ok); cursor: default; }
.mcard.th { font-weight: 500; }

/* ---------- Art colours ---------- */
.a-sky { fill: var(--art-sky); } .a-sea { fill: var(--art-sea); } .a-wave { stroke: var(--art-wave); stroke-width: 2; opacity: .8; }
.a-hull { fill: var(--art-hull); } .a-hull2 { fill: var(--art-hull2); } .a-deck { fill: var(--art-deck); } .a-win { fill: var(--art-win); } .a-win2 { fill: var(--art-sea); opacity: .55; }
.a-red { fill: var(--red); } .a-gold { fill: var(--gold); } .a-card { fill: var(--art-card); } .a-tile { fill: var(--art-tile); stroke: var(--gold); stroke-width: 1.2; }
.a-redbox { fill: var(--red); } .a-rock { fill: var(--art-rock); } .a-oil { fill: var(--art-oil); opacity: .78; } .a-lifeboat { fill: var(--art-lifeboat); } .a-pilotboat { fill: #e3a33a; }
.a-line { stroke: var(--art-line); stroke-width: 1.5; } .a-ring { stroke: var(--gold); stroke-width: 3; } .a-redline { stroke: var(--red); stroke-width: 4; stroke-linecap: round; }
.a-port { stroke: var(--port); stroke-width: 2; stroke-dasharray: 4 3; } .a-stbd { stroke: var(--stbd); stroke-width: 2; stroke-dasharray: 4 3; }
.a-rud { fill: var(--red); } .a-chain { stroke: var(--art-line); stroke-width: 3; stroke-dasharray: 5 3; } .a-boom { stroke: var(--gold); stroke-width: 2; }
.a-davit { stroke: var(--art-line); stroke-width: 5; } .a-ladder line { stroke: #b88a3e; stroke-width: 2.5; }
.a-fire { fill: #f08a24; } .a-smoke { stroke: #9aa0aa; stroke-width: 6; stroke-linecap: round; opacity: .6; }
.a-waves path { stroke: var(--gold); stroke-width: 2.5; stroke-linecap: round; }
.a-key rect { fill: var(--art-hull2); } .a-lcd { fill: var(--gold-2); font: 700 11px var(--font); }
.a-t { fill: var(--art-text); font: 700 15px var(--font); } .a-ts { fill: var(--art-text); font: 600 11px var(--font); } .a-tw { fill: #fff; font: 700 13px var(--font); }
.a-big { fill: var(--red); font: 700 32px var(--serif); }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 16px); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; z-index: 50; font-size: 14.5px; box-shadow: var(--shadow); max-width: calc(100% - 32px); }
.confetti { font-size: 40px; text-align: center; }

/* ---------- Daily homework ---------- */
.today-cta { display: flex; gap: 14px; align-items: center; text-decoration: none; color: var(--text) !important; border-left: 4px solid var(--red); }
.today-cta .mi { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--red); color: #fff; flex: none; }
.today-cta .mi .ic { width: 24px; height: 24px; }
.streak { font-weight: 700; white-space: nowrap; }
.days { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; margin: 12px 0 10px; }
.days span { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: var(--card-2); border: 1px solid var(--line); color: var(--muted); }
.days span.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.days span.today { box-shadow: 0 0 0 2px var(--gold); }

/* ---------- Utilities (แทน inline style) ---------- */
.center { text-align: center; }
.btn.on-dark { color: #fff !important; border-color: rgba(230, 207, 150, .5); }
.mi.sm { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--navy-2); color: var(--gold-2); flex: none; }
.mi.sm.red { background: var(--red); color: #fff; }
.chips.solid { border-style: solid; }
.order-btns.wide { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
input.ok { border-color: var(--ok); } input.bad { border-color: var(--bad); }
.daily-q { margin: 14px 0; padding-top: 10px; border-top: 1px dashed var(--line); }
.daily-q:first-of-type { border-top: 0; padding-top: 0; }
.daily-q h3 { font-size: 16px; margin: 4px 0; }
.toast[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
