:root {
  --bg: #FAF7F2; --paper: #FFFEFA; --desk: #E9E4DA; --surface: #FFFFFF;
  --ink: #1F1F2A; --muted: #5E5A66; --faint: #8A8592;
  --line: #E7E1D8; --line2: #D9D2C6; --soft: #EFEAE1; --soft2: #F3EFE7;
  --indigo: #1E3A6E; --indigo-d: #142A52; --indigo-soft: #E6ECF5; --indigo-mid: #8FA3C4;
  --sakura: #A63A4F; --sakura-soft: #FBE9EE;
  --shu: #C2412D; --green: #2F6B55; --green-soft: #E3F0EA;
  --mincho: 'Shippori Mincho B1', 'Noto Serif JP', serif;
  --sans: 'Noto Sans KR', 'Noto Sans JP', system-ui, sans-serif;
  --serif-kr: 'Noto Serif KR', serif;
  --pen: 'Nanum Pen Script', cursive;
  --r-card: 4px 20px 4px 20px;
  --nav-h: 72px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-text-size-adjust: 100%; }
body { min-height: 100dvh; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--indigo); }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }
[lang="ja"], .jp { font-family: var(--mincho); }
.jp-sans { font-family: 'Noto Sans JP', var(--sans); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.hide { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
rt { font-size: 0.5em; color: var(--muted); font-family: 'Noto Sans JP', sans-serif; font-weight: 400; }
ruby.hide-rt rt { visibility: hidden; }

.wave {
  background-color: var(--indigo); color: #fff;
  background-image: radial-gradient(circle at 50% 100%, transparent 30%, rgba(255,255,255,.10) 31%, rgba(255,255,255,.10) 37%, transparent 38%, transparent 52%, rgba(255,255,255,.10) 53%, rgba(255,255,255,.10) 59%, transparent 60%);
  background-size: 40px 20px;
}

/* ---------- 레이아웃 ---------- */
.shell { min-height: 100dvh; display: flex; }
.nav { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: var(--surface); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); }
.nav .brand, .nav .extra { display: none; }
.nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; color: var(--muted); font-size: 11px; }
.nav a .k { font-family: var(--mincho); font-size: 20px; line-height: 1.1; }
.nav a.on { color: var(--indigo); font-weight: 700; }
.nav a.on .k { font-weight: 800; }
.main { flex: 1; min-width: 0; padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 16px); }
.page { max-width: 560px; margin: 0 auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.page-title { display: flex; align-items: baseline; gap: 10px; margin: 4px 0; }
.page-title h1 { margin: 0; font-size: 22px; }
.page-title .jp { color: var(--muted); font-size: 14px; letter-spacing: 2px; }

@media (min-width: 960px) {
  .nav { position: sticky; top: 0; height: 100dvh; width: 232px; flex-shrink: 0; display: flex; flex-direction: column; gap: 4px; padding: 28px 16px; border: none; color: #fff;
    background-color: var(--indigo);
    background-image: radial-gradient(circle at 50% 100%, transparent 30%, rgba(255,255,255,.10) 31%, rgba(255,255,255,.10) 37%, transparent 38%, transparent 52%, rgba(255,255,255,.10) 53%, rgba(255,255,255,.10) 59%, transparent 60%);
    background-size: 40px 20px; }
  .nav .brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 24px; font-weight: 700; color: #fff; text-decoration: none; }
  .nav .extra { display: flex; }
  .nav a { flex-direction: row; justify-content: flex-start; gap: 12px; height: 46px; padding: 0 12px; border-radius: 10px; color: #fff; font-size: 14px; }
  .nav a .k { font-size: 18px; width: 20px; font-weight: 800; }
  .nav a.on { background: rgba(255,255,255,.16); color: #fff; }
  .nav .spacer { flex: 1; }
  .main { padding-bottom: 32px; }
  .page { max-width: 1100px; padding: 32px 40px; gap: 18px; }
  .page.narrow { max-width: 720px; }
  .grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
}
.logo { width: 36px; height: 36px; border-radius: 9px; background: var(--bg); color: var(--indigo); display: inline-flex; align-items: center; justify-content: center; font-family: var(--mincho); font-weight: 800; font-size: 20px; }

/* ---------- 카드·버튼 ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.card.fan { border-radius: var(--r-card); }
.card.shadow { box-shadow: 0 6px 20px rgba(30,58,110,.08); }
.card.pink { background: var(--sakura-soft); border: none; }
.card.blue { background: var(--indigo-soft); border: none; }
.card h2 { margin: 0 0 8px; font-size: 15px; }
.row { display: flex; align-items: center; gap: 12px; }
.col { display: flex; flex-direction: column; gap: 8px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.btn { height: 52px; border-radius: 12px; border: none; background: var(--indigo); color: #fff; font-weight: 700; font-size: 15px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn:hover { background: var(--indigo-d); color: #fff; }
.btn:disabled { background: var(--soft); color: var(--faint); cursor: default; }
.btn.ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line2); font-weight: 500; }
.btn.ghost:hover { background: var(--soft2); }
.btn.danger { background: var(--sakura); }
.btn.small { height: 38px; font-size: 13px; border-radius: 9px; padding: 0 12px; }
.btn.block { width: 100%; }
.iconbtn { width: 44px; height: 44px; border: none; background: transparent; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; color: inherit; text-decoration: none; }
.iconbtn:hover { background: rgba(0,0,0,.05); }
.chip { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 12px; background: var(--soft); color: var(--muted); white-space: nowrap; }
.chip.blue { background: var(--indigo-soft); color: var(--indigo); }
.chip.pink { background: var(--sakura-soft); color: var(--sakura); }
.chip.green { background: var(--green-soft); color: var(--green); }
.chip.solid { background: var(--indigo); color: #fff; font-weight: 700; }
.bar { height: 8px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--indigo); border-radius: 999px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.opt { min-height: 44px; border-radius: 10px; border: 1px solid var(--line2); background: var(--surface); font-size: 13px; font-weight: 500; padding: 6px 10px; }
.opt[aria-pressed="true"] { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.stamp { border-radius: 50%; border: 2px solid var(--shu); color: var(--shu); display: inline-flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--mincho); font-weight: 800; transform: rotate(-8deg); line-height: 1.05; flex-shrink: 0; }
.bubble { position: relative; flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; font-size: 13px; line-height: 1.5; }
.bubble::before { content: ''; position: absolute; left: -7px; top: 18px; width: 12px; height: 12px; background: var(--surface); border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: rotate(45deg); }
.mascot { image-rendering: pixelated; flex-shrink: 0; display: block; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; }
.field input, .field select { height: 46px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 10px; background: var(--surface); font-size: 15px; font-weight: 400; }
.field .hint { font-size: 11.5px; font-weight: 400; color: var(--muted); }
.field .hint.ok { color: var(--green); }
.field .hint.err { color: var(--sakura); }
.err-box { padding: 10px 12px; border-radius: 10px; background: var(--sakura-soft); color: var(--sakura); font-size: 13px; }
.note { padding: 10px 12px; border-radius: 10px; background: var(--sakura-soft); font-size: 12px; line-height: 1.5; }
table.simple { width: 100%; border-collapse: collapse; font-size: 14px; }
table.simple th { text-align: left; color: var(--muted); font-size: 12px; font-weight: 500; padding: 10px 8px; border-bottom: 1px solid var(--line); }
table.simple td { padding: 10px 8px; border-bottom: 1px solid var(--soft); }
.scroll-x { overflow-x: auto; }
#toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 24px); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 50; max-width: 90vw; }
#toast.on { opacity: 1; }
.center-msg { padding: 60px 16px; text-align: center; color: var(--muted); }

/* ---------- 홈 ---------- */
.home-head { padding: 18px 20px 72px; display: flex; justify-content: space-between; }
.home-head .date { font-family: var(--mincho); font-size: 14px; letter-spacing: 2px; opacity: .85; }
.home-head h1 { margin: 4px 0; font-size: 24px; }
.home-body { margin-top: -58px; }
.set-row { display: flex; align-items: center; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--soft); }
.set-row:last-of-type { border-bottom: none; }
.set-row .vlabel { writing-mode: vertical-rl; font-family: var(--mincho); font-size: 15px; font-weight: 800; letter-spacing: 3px; height: 54px; display: flex; align-items: center; justify-content: center; }
.set-row .kl { font-family: var(--mincho); font-size: 17px; letter-spacing: 3px; }
@media (min-width: 960px) {
  .home-head { border-radius: 20px; }
}

/* ---------- 세트 진행 ---------- */
.flow { max-width: 560px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; padding: 6px 16px 16px; gap: 12px; }
.flow-head { display: flex; align-items: center; gap: 6px; }
.steps { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; font-family: var(--mincho); font-size: 13px; text-align: center; }
.steps div { display: flex; flex-direction: column; gap: 4px; color: var(--faint); }
.steps div i { height: 4px; border-radius: 2px; background: var(--line); }
.steps div.done { color: var(--muted); }
.steps div.done i { background: var(--indigo-mid); }
.steps div.cur { color: var(--indigo); font-weight: 800; }
.steps div.cur i { background: var(--indigo); }
.queue { display: grid; grid-template-columns: repeat(auto-fill, minmax(26px, 1fr)); gap: 3px; }
.queue span { height: 26px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-family: var(--mincho); font-size: 15px; background: var(--bg); border: 1px solid var(--line); position: relative; }
.queue span.cur { background: var(--indigo); color: #fff; border-color: var(--indigo); }
.queue span.done { opacity: .45; }
.queue span::after { content: ''; position: absolute; bottom: -6px; width: 5px; height: 5px; border-radius: 50%; background: var(--faint); }
.queue span.w-yesterday::after { background: var(--indigo); }
.queue span.w-wrong::after { background: var(--sakura); }
.qcard { background: var(--surface); border: 1px solid var(--line); border-radius: 4px 24px 4px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px 16px; min-height: 180px; gap: 6px; position: relative; }
.qcard .big { font-family: var(--mincho); font-size: 112px; font-weight: 800; line-height: 1; }
.qcard .word { font-family: var(--mincho); font-size: 54px; font-weight: 800; line-height: 1.1; }
.qcard .hun { font-size: 28px; font-weight: 700; }
.qcard .sentence { font-size: 24px; line-height: 2.1; }
.blank { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin: 0 4px; vertical-align: middle; border-radius: 10px; border: 2px dashed var(--sakura); background: #FBF1EE; font-family: var(--mincho); }
.blank.filled { border-color: var(--green); background: var(--green-soft); }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.choice { min-height: 60px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); font-size: 17px; font-weight: 500; padding: 8px; }
.choice.kanji { font-family: var(--mincho); font-size: 36px; min-height: 76px; }
.choice.kana { font-family: 'Noto Sans JP', sans-serif; }
.choice:hover:not(:disabled) { border-color: var(--indigo-mid); }
.choice.right { background: var(--green-soft); border-color: var(--green); }
.choice.wrong { background: var(--sakura-soft); border-color: var(--sakura); }
.choice.dim { color: var(--faint); }
.feedback { position: sticky; bottom: 0; margin: auto -16px -16px; padding: 16px 16px calc(20px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; }
.feedback.ok { background: var(--green-soft); }
.feedback.ng { background: var(--sakura-soft); }
.feedback .t { font-size: 16px; font-weight: 700; }
.feedback.ok .t { color: var(--green); }
.feedback.ng .t { color: var(--sakura); }

/* 한자 카드 */
.kcard { background: var(--surface); border: 1px solid var(--line); border-radius: 4px 24px 4px 24px; padding: 16px; display: flex; gap: 14px; flex-wrap: wrap; }
.kbox { width: 124px; height: 124px; flex-shrink: 0; border-radius: 10px; background-color: var(--bg); border: 1px solid var(--soft);
  background-image: linear-gradient(var(--soft) 1px, transparent 1px), linear-gradient(90deg, var(--soft) 1px, transparent 1px); background-size: 50% 50%; background-position: center;
  display: flex; align-items: center; justify-content: center; font-family: var(--mincho); font-size: 92px; font-weight: 800; line-height: 1; position: relative; }
.kbox svg { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); color: var(--ink); }
.kbox.anim { color: transparent; }
.kinfo { flex: 1; min-width: 160px; display: flex; flex-direction: column; gap: 6px; }
.kinfo .hun { font-size: 24px; font-weight: 700; }
.reads { display: flex; gap: 6px; flex-wrap: wrap; font-size: 14px; }
.reads span { padding: 3px 8px; border-radius: 6px; }
.reads .on { background: var(--indigo-soft); color: var(--indigo); }
.reads .kun { background: var(--sakura-soft); color: var(--sakura); }
.reads b { font-size: 11px; }
.allreads { font-size: 13px; line-height: 1.7; color: var(--muted); }
.parts { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--soft2); }
.parts .p { font-family: var(--mincho); font-size: 18px; font-weight: 800; white-space: nowrap; }
.word-row { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px; display: flex; align-items: center; gap: 10px; min-height: 50px; flex-wrap: wrap; }
.word-row ruby { font-family: var(--mincho); font-size: 20px; font-weight: 800; min-width: 70px; }
.sec-h { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 500; }
.sec-h .jp { color: var(--indigo); font-weight: 800; }
.sentence-box p.ja { margin: 0; font-size: 19px; line-height: 2.1; }
.tgt { color: var(--sakura); font-weight: 700; }

/* ---------- 학습 경로 ---------- */
.kgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 6px; }
.kgrid a { height: 40px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); display: flex; align-items: center; justify-content: center; font-family: var(--mincho); font-size: 19px; text-decoration: none; }
.kgrid a.learned { background: var(--ink); color: #fff; border-color: var(--ink); }
.kgrid a.learning { background: var(--sakura-soft); color: #8E2C1C; border-color: #E39A88; }
.stage-col { display: flex; gap: 12px; }
.stage-col .vl { writing-mode: vertical-rl; font-family: var(--mincho); font-size: 18px; font-weight: 800; letter-spacing: 4px; color: var(--indigo); }
.theme-tile { min-height: 52px; border-radius: 10px; border: 1px solid var(--line); background: #fff; padding: 6px 10px; display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 12px; }
.theme-tile .jp { font-size: 20px; font-weight: 800; color: var(--indigo); font-family: var(--mincho); }
.theme-tile .small { font-size: 11px; }

/* ---------- 시험지 ---------- */
.desk { background: var(--desk); min-height: 100dvh; font-family: var(--serif-kr); }
.exam-bar { position: sticky; top: 0; z-index: 10; height: 56px; background: var(--ink); color: #fff; padding: 0 10px 0 4px; display: flex; align-items: center; gap: 10px; font-family: var(--sans); }
.exam-bar .timer { font-weight: 700; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 6px; }
.exam-bar .timer.low { color: #F7B2A6; }
.exam-bar .btn { height: 38px; background: var(--shu); font-size: 13px; }
.paper-wrap { padding: 12px 10px 40px; display: flex; justify-content: center; }
.paper { width: 100%; max-width: 900px; background: var(--paper); box-shadow: 0 1px 3px rgba(0,0,0,.12); display: flex; position: relative; }
.paper-body { flex: 1; min-width: 0; padding: 18px 16px 28px; display: flex; flex-direction: column; gap: 16px; }
.paper-side { display: none; }
.paper h1 { margin: 0; font-family: var(--mincho); font-size: 24px; font-weight: 800; letter-spacing: 6px; text-align: center; }
.paper .sub { text-align: center; font-size: 12px; color: var(--muted); }
.info { width: 100%; border-collapse: collapse; font-size: 12px; text-align: center; }
.info th, .info td { border: 1px solid var(--ink); padding: 6px; }
.info th { background: #F4F1EA; font-weight: 600; width: 15%; }
.info td { text-align: left; }
.sec-title { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 6px 0; display: flex; flex-direction: column; gap: 2px; }
.sec-title .jp { font-size: 14px; font-weight: 800; }
.sec-title .ko { font-size: 12px; color: #3B3842; }
.qs { display: grid; grid-template-columns: 1fr; gap: 0 36px; }
.q { display: flex; flex-direction: column; gap: 8px; padding: 10px 0 12px; border-bottom: 1px dashed var(--line2); }
.q .stem { display: flex; align-items: baseline; gap: 10px; }
.q .no { font-size: 15px; font-weight: 700; min-width: 26px; }
.q .s-big { font-family: var(--mincho); font-size: 30px; font-weight: 800; line-height: 1.25; }
.q .s-sent { font-family: var(--mincho); font-size: 19px; line-height: 1.8; }
.q .s-ko { font-size: 13px; color: var(--muted); padding-left: 36px; }
.bubbles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 8px; padding-left: 36px; }
.bub { min-height: 42px; border: none; background: transparent; padding: 0; display: flex; align-items: center; gap: 8px; font-family: var(--serif-kr); font-size: 15px; text-align: left; }
.bub .o { width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; border: 1.5px solid var(--ink); font-family: var(--sans); font-size: 11px; display: flex; align-items: center; justify-content: center; }
.bub[aria-pressed="true"] .o { background: var(--ink); color: var(--paper); }
.bub .ja { font-family: var(--mincho); font-size: 20px; }
.bub > span:last-child { word-break: keep-all; }
.bub .kana { font-family: 'Noto Sans JP', sans-serif; }
@media (min-width: 960px) {
  .paper-wrap { padding: 32px 24px 48px; }
  .paper-body { padding: 36px 40px 40px; }
  .paper-side { display: flex; flex: 0 0 92px; border-left: 1.5px solid var(--ink); flex-direction: column; align-items: center; gap: 18px; padding: 36px 0; }
  .paper-side .t { writing-mode: vertical-rl; font-family: var(--mincho); font-size: 30px; font-weight: 800; letter-spacing: 10px; }
  .paper-side .w { writing-mode: vertical-rl; font-family: var(--mincho); font-size: 14px; letter-spacing: 6px; color: var(--muted); }
  .qs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bubbles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.pen { font-family: var(--pen); color: var(--shu); }
.marks { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 2px; }
.marks div { position: relative; height: 28px; display: flex; align-items: center; justify-content: center; font-family: var(--sans); font-size: 11px; color: #3B3842; }
.marks .ok::after { content: ''; position: absolute; left: 50%; top: 50%; width: 24px; height: 22px; margin: -11px 0 0 -12px; border: 1.6px solid var(--shu); border-radius: 50%; transform: rotate(-12deg); opacity: .85; }
.marks .ng svg { position: absolute; left: 50%; top: 50%; margin: -13px 0 0 -13px; }
.grade-stamp { position: absolute; right: 10px; top: 10px; width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--shu); color: var(--shu); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; transform: rotate(-14deg); font-family: var(--mincho); background: rgba(255,254,250,.6); }
.grade-stamp b { font-size: 34px; font-weight: 800; }
.grade-stamp span { font-size: 10px; margin-top: 2px; }
.area { width: 100%; border-collapse: collapse; font-size: 12px; }
.area th, .area td { border: 1px solid #BDB5A8; padding: 5px; }
.area th { background: #F4F1EA; font-weight: 600; }
.modal-bg { position: fixed; inset: 0; z-index: 40; background: rgba(31,31,42,.45); display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal { width: 100%; max-width: 420px; background: var(--surface); border-radius: var(--r-card); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.modal h2 { margin: 0; font-size: 18px; }
.mono { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; }

/* 기록 */
.heat { display: grid; grid-template-rows: repeat(7, 12px); grid-auto-flow: column; grid-auto-columns: 12px; gap: 4px; }
.heat i { border-radius: 3px; background: var(--soft); }
.heat i.l1 { background: #C9D4E6; } .heat i.l2 { background: #7F97BF; } .heat i.l3 { background: var(--indigo); }
.heat i.fz { background: #BFDDF2; outline: 1px dashed #6FA3D8; }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.badge { border-radius: 12px; border: 1px solid var(--line); background: var(--surface); padding: 10px 8px; text-align: center; font-size: 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.badge.off { opacity: .45; filter: grayscale(1); }
.grid-2 { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 960px) { .grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; } }
