/* Ìdìbò: voice-first, picture-first. Built for low-literacy users on small, cheap phones in bright light. */
:root {
  --paper: #FBFAF5; --card: #FFFFFF; --ink: #0F1A14; --ink-2: #3E4B44; --line: #E3E1D6;
  --green: #0B6B43; --green-2: #0E8A57; --green-soft: #E3F2EA; --gold: #F2C14E; --gold-soft: #FDF3D7;
  --red: #B4372B; --red-soft: #FBE7E4; --blue: #1F5FA8; --shadow: 0 1px 2px rgb(15 26 20 / .06), 0 6px 18px rgb(15 26 20 / .07);
  --r: 18px; --tap: 60px; --font: "Atkinson Hyperlegible", "Noto Sans", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0E1512; --card: #16201B; --ink: #F1F0EA; --ink-2: #B9C2BC; --line: #26332C;
    --green: #2FBF7F; --green-2: #47D493; --green-soft: #173527; --gold: #F2C14E; --gold-soft: #3A3018;
    --red: #F07A6C; --red-soft: #3A1E1A; --blue: #6EA8F0; --shadow: 0 1px 2px rgb(0 0 0 / .4); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0E1512; --card: #16201B; --ink: #F1F0EA; --ink-2: #B9C2BC; --line: #26332C;
  --green: #2FBF7F; --green-2: #47D493; --green-soft: #173527; --gold: #F2C14E; --gold-soft: #3A3018;
  --red: #F07A6C; --red-soft: #3A1E1A; --blue: #6EA8F0; --shadow: 0 1px 2px rgb(0 0 0 / .4); color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.5 var(--font); min-height: 100dvh;
  display: flex; flex-direction: column; overflow-x: hidden; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 10px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 8px; z-index: 99; background: var(--card); padding: 8px 12px; }

/* ---------- icons (CSS masks, so they follow text colour) ---------- */
.i { display: inline-block; width: 1.25em; height: 1.25em; background: currentColor; flex: none;
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.i-mic { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Crect x='9' y='3' width='6' height='11' rx='3'/%3E%3Cpath d='M5 11a7 7 0 0 0 14 0M12 18v3'/%3E%3C/svg%3E"); }
.i-globe { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 3 2.5 15 0 18M12 3c-2.5 3-2.5 15 0 18'/%3E%3C/svg%3E"); }
.i-speaker { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M4 9h4l5-4v14l-5-4H4z'/%3E%3Cpath d='M16.5 8.5a5 5 0 0 1 0 7M19 6a8.5 8.5 0 0 1 0 12' stroke-linecap='round'/%3E%3C/svg%3E"); }
.i-muted { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M4 9h4l5-4v14l-5-4H4z'/%3E%3Cpath d='M17 9l5 6M22 9l-5 6' stroke-linecap='round'/%3E%3C/svg%3E"); }
.i-play { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4.5v15l13-7.5z'/%3E%3C/svg%3E"); }
.i-stop { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='6' y='6' width='12' height='12' rx='2'/%3E%3C/svg%3E"); }
.i-send { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6'/%3E%3C/svg%3E"); }
.i-arrow { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E"); }
.i-back { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5l-7 7 7 7'/%3E%3C/svg%3E"); }
.i-info { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v6M12 7.5v.5'/%3E%3C/svg%3E"); }
.i-shield { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 4.5-3.4 8.2-8 9-4.6-.8-8-4.5-8-9V6z'/%3E%3Cpath d='M8.5 12l2.5 2.5 4.5-5' stroke-linecap='round'/%3E%3C/svg%3E"); }
.i-hand { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 11V5a1.5 1.5 0 0 1 3 0v5M12 10V4a1.5 1.5 0 0 1 3 0v6M15 10V6a1.5 1.5 0 0 1 3 0v8a7 7 0 0 1-7 7h-1a6 6 0 0 1-5-2.7L3 14.5a1.6 1.6 0 0 1 2.6-1.8L9 15V9a1.5 1.5 0 0 0-3 0'/%3E%3C/svg%3E"); }
.i-doc { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M6 3h8l4 4v14H6z'/%3E%3Cpath d='M14 3v4h4M9 12h6M9 16h6' stroke-linecap='round'/%3E%3C/svg%3E"); }
.i-x { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); }
.i-link { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M14 4h6v6M20 4l-9 9M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E"); }
.i-paste { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='6' y='5' width='12' height='16' rx='2'/%3E%3Cpath d='M9 5V3h6v2'/%3E%3C/svg%3E"); }
/* picture icons for the question cards */
.i-calendar { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='2.5'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3Crect x='7' y='13' width='4' height='4' rx='1' fill='black'/%3E%3C/svg%3E"); }
.i-card { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Crect x='2.5' y='5' width='19' height='14' rx='2.5'/%3E%3Ccircle cx='8' cy='11' r='2.2'/%3E%3Cpath d='M4.8 16.5c.6-1.7 1.8-2.6 3.2-2.6s2.6.9 3.2 2.6M14 10h5M14 13.5h4'/%3E%3C/svg%3E"); }
.i-clock { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.5V12l3 2'/%3E%3C/svg%3E"); }
.i-finger { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'%3E%3Cpath d='M7 18.5c-1.3-1.8-2-4-2-6.5a7 7 0 0 1 12.3-4.6M19 12c0 3-.7 5.3-2 7.5M9.2 20.5C8.4 18.7 8 16.5 8 14v-2a4 4 0 0 1 8 0v2c0 2.2-.4 4.3-1.2 6M12 12v3c0 2-.3 3.8-1 5.5'/%3E%3C/svg%3E"); }
.i-money { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Crect x='2.5' y='6' width='19' height='12' rx='2'/%3E%3Ccircle cx='12' cy='12' r='2.6'/%3E%3Cpath d='M6 9.5v5M18 9.5v5'/%3E%3Cpath d='M3 3l18 18' stroke-width='2.2'/%3E%3C/svg%3E"); }
.i-help { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='5' r='2'/%3E%3Ccircle cx='16' cy='5' r='2'/%3E%3Cpath d='M8 8v6l-2 7M8 14l2 7M16 8v13M8 10.5l8 0M4 21l6-11'/%3E%3C/svg%3E"); }

/* ---------- layout ---------- */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top));
  background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 22px; letter-spacing: -.01em; }
.brand.big { font-size: 34px; justify-content: center; }
.logo { width: 34px; height: 34px; border-radius: 10px; background: var(--green); position: relative; flex: none; }
.brand.big .logo { width: 48px; height: 48px; border-radius: 14px; }
.logo::before { content: ""; position: absolute; left: 22%; right: 22%; bottom: 20%; height: 34%; background: #fff; border-radius: 3px; }
.logo::after { content: ""; position: absolute; left: 36%; width: 28%; top: 18%; height: 40%; background: var(--gold); border-radius: 2px; transform: rotate(-8deg); }
.top-actions { display: flex; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border-radius: 999px;
  background: var(--card); border: 1.5px solid var(--line); font-weight: 600; }
.chip.ghost { padding: 0 13px; }
.chip[aria-pressed="false"] { color: var(--ink-2); }
main { flex: 1; width: 100%; max-width: 640px; margin: 0 auto; padding: 16px; padding-bottom: 110px; }
.foot { text-align: center; color: var(--ink-2); font-size: 15px; padding: 16px 16px max(18px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 4px; }
.foot a { color: var(--ink-2); }

.unofficial { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 18px; padding: 12px 14px; border-radius: 14px;
  background: var(--gold-soft); color: var(--ink); font-size: 15px; line-height: 1.4; }
.unofficial .i { margin-top: 1px; color: #8A6400; }

/* ---------- hero mic ---------- */
.hero { display: grid; justify-items: center; gap: 10px; padding: 18px 0 26px; }
.mic { position: relative; width: 132px; height: 132px; border-radius: 50%; background: var(--green); color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 28px rgb(11 107 67 / .35); transition: transform .12s; }
.mic .i { width: 56px; height: 56px; }
.mic:active { transform: scale(.96); }
.mic-ring { position: absolute; inset: -10px; border-radius: 50%; border: 3px solid var(--green); opacity: 0; }
.mic.on { background: var(--red); box-shadow: 0 10px 28px rgb(180 55 43 / .35); }
.mic.on .mic-ring { border-color: var(--red); animation: ring 1.4s ease-out infinite; }
.mic.busy { opacity: .75; pointer-events: none; }
.mic.busy .i { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
@keyframes ring { from { transform: scale(.9); opacity: .8; } to { transform: scale(1.25); opacity: 0; } }
.mic.small { width: var(--tap); height: var(--tap); flex: none; box-shadow: none; }
.mic.small .i { width: 28px; height: 28px; }
.hero-label { margin: 0; font-size: 22px; font-weight: 700; text-align: center; }
.hero-sub { margin: 0; min-height: 1.5em; color: var(--ink-2); font-size: 16px; text-align: center; }

.section-label { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; color: var(--ink-2);
  text-transform: none; margin: 4px 0 12px; }

/* ---------- picture cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.qcard { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-height: 148px;
  padding: 14px; border-radius: var(--r); background: var(--card); border: 1.5px solid var(--line); box-shadow: var(--shadow);
  text-align: left; transition: transform .1s, border-color .15s; }
.qcard:active { transform: scale(.98); }
.qcard:hover { border-color: var(--green); }
.qcard .pic { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); }
.qcard .pic .i { width: 34px; height: 34px; }
.qcard[data-icon="money"] .pic { background: var(--red-soft); color: var(--red); }
.qcard[data-icon="finger"] .pic, .qcard[data-icon="help"] .pic { background: color-mix(in srgb, var(--blue) 14%, var(--card)); color: var(--blue); }
.qcard[data-icon="clock"] .pic { background: var(--gold-soft); color: #8A6400; }
.qcard .q { font-weight: 700; font-size: 17px; line-height: 1.3; padding-right: 30px; }
.qcard .say { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink-2); }
.qcard .say:hover { background: var(--green-soft); color: var(--green); }

.check-card { display: flex; align-items: center; gap: 14px; width: 100%; margin: 16px 0; padding: 16px; border-radius: var(--r);
  background: var(--card); border: 1.5px solid var(--line); box-shadow: var(--shadow); text-align: left; }
.check-text { display: flex; flex-direction: column; flex: 1; font-size: 15px; color: var(--ink-2); }
.check-text strong { color: var(--ink); font-size: 18px; }
.badge-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); flex: none; }
.badge-ic .i { width: 28px; height: 28px; }
.badge-ic.warn { background: var(--gold-soft); color: #8A6400; }

.typebox { display: flex; gap: 8px; margin-top: 8px; }
.typebox input { flex: 1; min-width: 0; min-height: var(--tap); padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); }
.typebox input:focus { border-color: var(--green); outline: none; }
.send { width: var(--tap); height: var(--tap); border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; flex: none; }
.send .i { width: 26px; height: 26px; }

/* ---------- chat ---------- */
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 12px 0 4px; font-weight: 700; color: var(--ink-2); }
.thread { display: flex; flex-direction: column; gap: 14px; margin: 8px 0 120px; }
.msg { max-width: 92%; padding: 14px 16px; border-radius: 20px; line-height: 1.55; }
.msg.user { align-self: flex-end; background: var(--ink); color: var(--paper); border-bottom-right-radius: 6px; font-weight: 600; }
.msg.bot { align-self: flex-start; background: var(--card); border: 1.5px solid var(--line); border-bottom-left-radius: 6px; box-shadow: var(--shadow); width: 92%; }
.msg.bot .text { white-space: pre-wrap; font-size: 19px; }
.msg.bot .text .cite { display: none; }
.thinking { display: flex; gap: 10px; align-items: center; color: var(--ink-2); font-size: 16px; }
.dots { display: inline-flex; gap: 4px; } .dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: bob 1s infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes bob { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-5px); opacity: 1; } }
.listen { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px 0 14px; margin-top: 12px;
  border-radius: 999px; background: var(--green); color: #fff; font-weight: 700; font-size: 18px; }
.listen .i { width: 26px; height: 26px; }
.listen.playing { background: var(--ink); }
.srcs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.src { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 10px;
  background: var(--green-soft); color: var(--green); font-size: 14px; font-weight: 700; }
.src.dim { background: transparent; border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; }
.backend-note { margin-top: 10px; font-size: 13px; color: var(--ink-2); }
.chat-dock { position: fixed; left: 0; right: 0; bottom: 0; display: flex; gap: 10px; align-items: center; padding: 12px 16px max(12px, env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.chat-dock .typebox { flex: 1; margin: 0; }
@media (min-width: 680px) { .chat-dock { left: 50%; transform: translateX(-50%); width: 640px; border: 1px solid var(--line); border-bottom: 0; border-radius: 20px 20px 0 0; } }

/* ---------- check view ---------- */
.h1 { display: flex; align-items: center; gap: 12px; font-size: 26px; line-height: 1.2; margin: 8px 0; }
.lead { color: var(--ink-2); margin: 0 0 16px; }
textarea { width: 100%; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--card); resize: vertical; font-size: 18px; }
textarea:focus { border-color: var(--green); outline: none; }
.row { display: flex; gap: 10px; margin-top: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 0 20px; border-radius: 999px; font-weight: 700; flex: 1; text-decoration: none; }
.btn.primary { background: var(--green); color: #fff; }
.btn.ghost { border: 1.5px solid var(--line); background: var(--card); color: var(--ink); }

/* ---------- language picker ---------- */
.picker { position: fixed; inset: 0; z-index: 50; background: var(--paper); overflow-y: auto; padding: max(24px, env(safe-area-inset-top)) 16px 24px; }
.picker-inner { max-width: 560px; margin: 0 auto; display: grid; gap: 20px; }
.picker-title { font-size: 17px; font-weight: 600; color: var(--ink-2); text-align: center; margin: 0; line-height: 1.6; }
.lang-grid { display: grid; gap: 12px; }
.lang { display: flex; align-items: center; gap: 14px; min-height: 84px; padding: 12px 12px 12px 14px; border-radius: 20px;
  background: var(--card); border: 2px solid var(--line); box-shadow: var(--shadow); text-align: left; }
.lang:hover, .lang:focus-visible { border-color: var(--lc); }
.lang .swatch { width: 56px; height: 56px; border-radius: 16px; background: var(--lc); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 20px; flex: none; }
.lang .names { flex: 1; display: flex; flex-direction: column; }
.lang .names b { font-size: 22px; } .lang .names span { color: var(--ink-2); font-size: 16px; }
.lang .say { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 1.5px solid var(--line); }
.fineprint { text-align: center; color: var(--ink-2); font-size: 15px; margin: 0; }

/* ---------- source sheet ---------- */
.sheet { width: min(640px, 100vw); max-height: 85dvh; margin: auto auto 0; border: 0; border-radius: 22px 22px 0 0; padding: 18px; background: var(--card); color: var(--ink); }
.sheet::backdrop { background: rgb(0 0 0 / .45); }
.sheet-head { display: flex; gap: 12px; align-items: center; }
.sheet-head h2 { font-size: 18px; margin: 0; } .sheet-head p { margin: 0; color: var(--ink-2); font-size: 14px; }
.sheet-head > div { flex: 1; }
.icon-btn { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; }
.src-text { white-space: pre-wrap; font: 15px/1.55 var(--font); background: var(--paper); border-radius: 14px; padding: 14px; max-height: 50dvh; overflow: auto; }

/* ---------- judge view ---------- */
.judge-summary { overflow-x: auto; margin: 8px 0 18px; }
.judge-summary table { border-collapse: collapse; width: 100%; font-size: 15px; }
.judge-summary th, .judge-summary td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.judge-summary th:first-child, .judge-summary td:first-child { text-align: left; }
.good { color: var(--green); font-weight: 700; } .bad { color: var(--red); font-weight: 700; }
.judge-examples { display: grid; gap: 16px; }
.jx { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r); padding: 14px; box-shadow: var(--shadow); }
.jx .jq { font-weight: 700; margin-bottom: 10px; }
.jx .cols { display: grid; gap: 10px; }
@media (min-width: 600px) { .jx .cols { grid-template-columns: 1fr 1fr; } }
.jx .col { border-radius: 12px; padding: 10px 12px; font-size: 15px; white-space: pre-wrap; }
.jx .col.base { background: var(--red-soft); } .jx .col.ours { background: var(--green-soft); }
.jx .col h4 { margin: 0 0 6px; font-size: 13px; letter-spacing: .02em; text-transform: uppercase; }

@media (max-width: 360px) { .cards { grid-template-columns: 1fr; } .mic { width: 112px; height: 112px; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

.loading { opacity: .6; animation: pulse 1s ease-in-out infinite; }
.failed { outline: 2px solid var(--danger, #c0392b); }
.beta { display: block; font-style: normal; font-size: 11px; letter-spacing: .02em; color: var(--ink-2, #9aa); margin-top: 2px; }

.foot-links { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
