:root {
  --ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ko: "Pretendard", "Noto Sans KR", "Noto Sans CJK KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ko-min: 18px;
  --ko-text: 20px;
  --ko-large: 44px;
  --ko-leading: 1.7;
}
:root {
  color-scheme: light;
  --cheong: #20508f;
  --jeok: #b23a25;
  --hwang: #f0bb3f;
  --baek: #fbf7ee;
  --heuk: #1e1b18;
  --eave: #1d6b68;
  --noerok: #6f9f80;
  --yuksaek: #e7a898;
  --navy: #1c2c52;
  --hanji: #f7f2e6;
  --hanji-raised: #fffdf8;
  --meok-soft: #645b50;
  --seam: #d8ccb6;
  --edge: #8c8068;
  --jeok-text: #b23a25;
  --jeok-on: #fbf7ee;
  --right-ink: #2a6a47;
  --wrong-ink: #8f1d2c;
  --eave-soft: #cfe3df;
  --bg: var(--hanji);
  --surface: var(--hanji-raised);
  --ink: var(--heuk);
  --muted: var(--meok-soft);
  --line: var(--seam);
  --border: var(--edge);
  --nav: var(--eave);
  --on-nav: var(--baek);
  --on-nav-muted: var(--eave-soft);
  --nav-mark: var(--hwang);
  --action: var(--jeok);
  --on-action: var(--jeok-on);
  --link: var(--jeok-text);
  --highlight: var(--hwang);
  --on-highlight: #1e1b18;
  --right: var(--right-ink);
  --wrong: var(--wrong-ink);
  --focus: var(--cheong);
  --r: 6px;
  --tap: 44px;
  --column: 720px;
  --band-edge: var(--heuk);
  --band-line: var(--baek);
  --band-1: var(--jeok);
  --band-2: var(--hwang);
  --band-3: var(--cheong);
  --band-h: 11px;
  --band: linear-gradient(to bottom, var(--band-edge) 0 1px, var(--band-1) 1px 4px, var(--band-line) 4px 5px, var(--band-2) 5px 7px, var(--band-line) 7px 8px, var(--band-3) 8px 10px, var(--band-edge) 10px 11px);
  --orn-size: 30px;
  --orn-line: var(--heuk);
  --orn-outer: var(--navy);
  --orn-leaf: var(--noerok);
  --orn-petal: var(--yuksaek);
  --orn-inner: var(--jeok);
  --orn-seed: var(--hwang);
  --orn-gap: var(--baek);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --cheong: #8fb4f0;
    --jeok: #e8694c;
    --hwang: #e9b94a;
    --eave: #154643;
    --noerok: #7fb593;
    --yuksaek: #e7a898;
    --navy: #2a3f73;
    --hanji: #171512;
    --hanji-raised: #221f1a;
    --meok-soft: #a79e90;
    --seam: #3a352d;
    --edge: #7d7566;
    --jeok-text: #f08a70;
    --jeok-on: #171512;
    --right-ink: #7fc79b;
    --wrong-ink: #f39aa0;
    --eave-soft: #bcd6d1;
    --ink: #ede7da;
    --orn-line: #0d0c0a;
    --band-edge: #0d0c0a;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --cheong: #8fb4f0;
  --jeok: #e8694c;
  --hwang: #e9b94a;
  --eave: #154643;
  --noerok: #7fb593;
  --yuksaek: #e7a898;
  --navy: #2a3f73;
  --hanji: #171512;
  --hanji-raised: #221f1a;
  --meok-soft: #a79e90;
  --seam: #3a352d;
  --edge: #7d7566;
  --jeok-text: #f08a70;
  --jeok-on: #171512;
  --right-ink: #7fc79b;
  --wrong-ink: #f39aa0;
  --eave-soft: #bcd6d1;
  --ink: #ede7da;
  --orn-line: #0d0c0a;
  --band-edge: #0d0c0a;
}
* { box-sizing: border-box; }
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
html { scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--ui); font-size: 16px; line-height: 1.5; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; font-weight: 650; line-height: 1.2; text-wrap: balance; }
h1 { font-size: 28px; }
h2 { font-size: 21px; }
h3 { font-size: 17px; }
p { margin: 0; }
a { color: var(--link); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sub { color: var(--muted); font-size: 15px; }
.ko, [lang="ko"] { font-family: var(--ko); font-size: var(--ko-text); line-height: var(--ko-leading); word-break: keep-all; }
.ko.large { font-size: var(--ko-large); line-height: 1.25; font-weight: 600; }
.ko.small { font-size: var(--ko-min); }
main { max-width: var(--column); margin: 0 auto; padding: 24px 16px 40px; display: flex; flex-direction: column; gap: 24px; }
main > section { display: flex; flex-direction: column; gap: 20px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 10px 18px; font: inherit; font-weight: 600; color: var(--ink); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); cursor: pointer; text-decoration: none; }
.btn.primary { color: var(--on-action); background: var(--action); border-color: var(--action); }
.btn:active { transform: translateY(1px); }
.btn[aria-disabled="true"], .btn:disabled { opacity: .55; cursor: default; }
.btnrow { display: flex; flex-wrap: wrap; gap: 10px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-size: 14px; font-weight: 600; color: var(--muted); }
.input { font: inherit; font-size: 16px; min-height: var(--tap); width: 100%; color: var(--ink); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 10px 12px; }
.input[lang="ko"] { font-family: var(--ko); font-size: var(--ko-text); }
.input[aria-invalid="true"] { border: 2px solid var(--wrong); }
.card { display: flex; flex-direction: column; gap: 12px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.band { height: var(--band-h); background: var(--band); }
.bandrule { display: flex; align-items: center; }
.bandrule .band { flex: 1; min-width: 0; }
.orn { flex: none; display: block; width: var(--orn-size); height: var(--orn-size); margin: 0 -2px; position: relative; }
.orn .o-line { stroke: var(--orn-line); stroke-width: 1; }
.orn .o-outer { fill: var(--orn-outer); }
.orn .o-gap { fill: var(--orn-gap); }
.orn .o-leaf { fill: var(--orn-leaf); }
.orn .o-petal { fill: var(--orn-petal); }
.orn .o-inner { fill: var(--orn-inner); }
.orn .o-seed { fill: var(--orn-seed); }
.progress { height: 10px; background: var(--line); border: 1px solid var(--border); border-radius: 5px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--highlight); }
mark { color: var(--on-highlight); background: var(--highlight); padding: 0 3px; border-radius: 2px; }
.verdict { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.verdict svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.verdict.right { color: var(--right); }
.verdict.wrong { color: var(--wrong); }
.pagehead { display: flex; flex-direction: column; gap: 2px; }
.pagehead h1 { display: flex; flex-direction: column; gap: 2px; }
.pagehead .en { font-size: 17px; font-weight: 600; color: var(--muted); }
.empty { align-items: center; text-align: center; padding: 28px 20px; gap: 16px; }
.empty .bandrule { width: min(280px, 100%); }
.empty p { max-width: 34em; }
.pagelinks { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.status { padding: 10px 14px; border: 1px solid var(--border); border-left: 6px solid var(--action); border-radius: var(--r); background: var(--surface); }
.moresec { display: flex; flex-direction: column; gap: 10px; padding: 18px 0 0; border: 0; border-top: 1px solid var(--line); margin: 0; min-width: 0; }
.moresec > legend { float: left; width: 100%; padding: 0; font-size: 17px; font-weight: 650; }
.moresec > legend + * { clear: both; }
.syncline { font-weight: 600; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; align-self: flex-start; }
.seg button { min-height: var(--tap); min-width: 76px; padding: 8px 14px; font: inherit; font-weight: 600; color: var(--ink); background: var(--surface); border: 0; border-left: 1px solid var(--border); cursor: pointer; }
.seg button:first-child { border-left: 0; }
.seg button[aria-pressed="true"] { color: var(--on-nav); background: var(--nav); }
.seg button:focus-visible { outline-offset: -4px; }
.appfoot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footname { font-weight: 600; }
.footupdate { margin-left: auto; min-height: var(--tap); padding: 8px 14px; font: inherit; font-weight: 600; color: var(--on-action); background: var(--action); border: 0; border-radius: var(--r); cursor: pointer; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.swatch { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.swatch i { display: block; height: 52px; border: 1px solid var(--border); border-radius: var(--r); }
.swatch b { font-weight: 600; }
.swatch code, .pairs code { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.pairs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.pairs li { display: flex; flex-direction: column; gap: 4px; }
.pairs span { display: block; padding: 12px; border: 1px solid var(--border); border-radius: var(--r); font-weight: 600; }
.samplenav { display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 12px 16px; background: var(--nav); color: var(--on-nav-muted); border-radius: var(--r); font-weight: 600; }
.samplenav b { color: var(--on-nav); box-shadow: 0 3px 0 var(--nav-mark); }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
.hw { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hw-chars { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.hw-char { min-width: var(--tap); min-height: var(--tap); padding: 4px 8px; color: var(--ink); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); cursor: pointer; }
.hw-char[aria-current="true"] { color: var(--on-nav); background: var(--nav); border-color: var(--nav); }
.hw-char:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.hw-stage { width: min(100%, 320px); aspect-ratio: 1; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: inset 0 3px 0 var(--band-1), inset 0 4px 0 var(--band-line), inset 0 6px 0 var(--band-2); overflow: hidden; }
.hw-svg { display: block; width: 100%; height: 100%; }
.hw:not([data-mode="watch"]) .hw-svg { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; cursor: crosshair; }
.hw-grid line { stroke: var(--line); stroke-width: .6; stroke-dasharray: 2 2; }
.hw-stroke, .hw-ink polyline { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.hw-stroke { stroke-width: 6.5; }
.hw-dense .hw-stroke { stroke-width: 5; }
.hw-guide .hw-stroke { stroke: var(--border); opacity: .4; }
.hw-done .hw-stroke { stroke: var(--ink); }
.hw-cue .hw-stroke { stroke: var(--cheong); opacity: .45; }
.hw-cue .hw-demo { opacity: 1; }
.hw-arrow { fill: var(--cheong); }
.hw-start { fill: var(--action); stroke: var(--surface); stroke-width: 1.2; }
.hw-ink { pointer-events: none; }
.hw-wet { stroke: var(--ink); stroke-width: 7.5; opacity: .16; }
.hw-core { stroke: var(--ink); stroke-width: 4.5; opacity: .85; }
.hw-ink.hw-miss polyline { stroke: var(--wrong); }
.hw-ink.hw-miss .hw-core { stroke-dasharray: 1.5 6; }
.hw-ink.hw-miss { animation: hw-fade .7s ease-in forwards; }
@keyframes hw-fade { 60% { opacity: 1; } 100% { opacity: 0; } }
.hw-settle { transform-box: fill-box; transform-origin: center; animation: hw-settle .22s cubic-bezier(.2, .8, .3, 1); }
@keyframes hw-settle { from { opacity: .35; transform: scale(1.07); } to { opacity: 1; transform: scale(1); } }
.hw-seal { transform-box: fill-box; transform-origin: center; transform: rotate(-6deg); animation: hw-seal .26s ease-in; }
.hw-seal rect { fill: var(--action); }
.hw-seal text { fill: var(--on-action); font-family: var(--ko); font-size: 15px; font-weight: 700; }
@keyframes hw-seal { from { opacity: 0; transform: scale(1.7) rotate(-14deg); } 70% { opacity: 1; transform: scale(.94) rotate(-6deg); } to { transform: scale(1) rotate(-6deg); } }
.hw-pad .hw-stage { width: min(100%, 320px); }
.hw-pad.hw-wide .hw-stage { width: min(100%, 560px); aspect-ratio: 212 / 112; }
.hw-model-text { fill: var(--cheong); opacity: .32; font-family: var(--ko); font-weight: 600; }
:root[data-motion="less"] .hw * { animation: none !important; transition: none !important; }
.hw-num circle { fill: var(--surface); stroke: var(--border); stroke-width: .6; }
.hw-num text { fill: var(--ink); font-family: var(--ui); font-size: 5.6px; font-weight: 700; }
.hw-finished .hw-stage { border-color: var(--right); }
.hw-status { min-height: 3em; max-width: 320px; text-align: center; font-weight: 600; }
.hw-controls { justify-content: center; align-items: center; }
.hw-speed { align-self: center; }
.hw-speed button { min-width: 64px; }
.hw-words { width: min(100%, 320px); color: var(--muted); font-size: 15px; }
.hw-words summary { padding: 10px 0; cursor: pointer; font-weight: 600; }
.hw-words ol { margin: 4px 0 0; padding-left: 1.6em; }
.ex-trace { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ex-trace-head { margin: 0; text-align: center; }
.ex-trace-target { font-size: var(--ko-large); line-height: 1.2; font-weight: 600; }
.ex-trace-cue { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.ex-trace-model { text-align: center; }
.ex-trace-model [lang="ko"] { font-size: 34px; line-height: 1.4; font-weight: 600; }
.ex-trace .xr { align-self: stretch; }
.ex-trace-marks { margin: 0; padding: 0; list-style: none; text-align: center; color: var(--muted); font-size: 15px; }
.top { background: var(--nav); color: var(--on-nav); }
.topin { max-width: 1120px; margin: 0 auto; padding: 0 16px; min-height: 52px; display: flex; align-items: center; gap: 12px 24px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; color: var(--on-nav); text-decoration: none; font-weight: 650; font-size: 18px; min-height: var(--tap); }
.mark { display: block; flex: none; width: 30px; height: 30px; border-radius: 22%; box-shadow: 0 0 0 1px color-mix(in srgb, var(--on-nav) 45%, transparent); overflow: hidden; }
.mark svg { display: block; width: 100%; height: 100%; }
.top a:focus-visible { outline-color: var(--on-nav); }
.mainnav { margin-left: auto; min-width: 0; }
.navlist { display: flex; margin: 0; padding: 0; list-style: none; }
.navlist li { position: relative; }
.navlink { position: relative; display: flex; align-items: center; gap: 6px; min-height: 52px; padding: 0 12px; color: var(--on-nav-muted); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
.navlink:hover { color: var(--on-nav); }
.navlink[aria-current="page"] { color: var(--on-nav); }
.navlink[aria-current="page"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 4px; background: var(--nav-mark); border-radius: 2px 2px 0 0; }
.navicon { display: none; width: 24px; height: 24px; }
.navicon svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.navcount { min-width: 20px; padding: 0 6px; font-size: 12px; line-height: 20px; text-align: center; font-variant-numeric: tabular-nums; color: var(--on-highlight); background: var(--highlight); border-radius: 10px; }
.sync { position: absolute; top: 12px; right: 2px; pointer-events: none; }
.syncdot { display: block; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--on-nav); background: var(--on-nav); }
.sync[data-status="offline"] .syncdot, .sync[data-status="saving"] .syncdot, .sync[data-status="loading"] .syncdot { background: transparent; }
.sync[data-status="error"] .syncdot, .sync[data-status="loggedout"] .syncdot { background: var(--nav-mark); border-color: var(--nav-mark); }
@media (max-width: 899px) {
  .navlink { padding: 0 8px; font-size: 14px; }
  .brandname { display: none; }
}
@media (max-width: 719px) {
  .brandname { display: inline; }
  .topin { min-height: 48px; }
  .mainnav { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; margin: 0; background: var(--nav); border-top: 1px solid var(--band-edge); padding-bottom: env(safe-area-inset-bottom); }
  .navlist { justify-content: space-around; }
  .navlist li { flex: 1; min-width: 0; }
  .navlist li[data-phone="0"] { display: none; }
  .navlink { flex-direction: column; justify-content: center; gap: 2px; min-height: 58px; padding: 6px 2px; font-size: 12px; }
  .navlink[aria-current="page"]::after { top: 0; bottom: auto; left: 22%; right: 22%; border-radius: 0 0 2px 2px; }
  .navicon { display: block; }
  .navcount { position: absolute; top: 5px; left: calc(50% + 6px); }
  .sync { top: 8px; right: calc(50% - 20px); }
  main { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media print {
  .mainnav { display: none; }
}
.ai-panel { display: flex; flex-direction: column; gap: 14px; padding: 0 16px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.ai-panel::before { content: ""; display: block; height: var(--band-h); margin: 0 -16px; background: var(--band); }
.ai-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.ai-mark { font-size: 13px; color: var(--muted); }
.ai-log { display: flex; flex-direction: column; gap: 16px; }
.ai-log:empty { display: none; }
.ai-turn { display: flex; flex-direction: column; gap: 8px; }
.ai-q { align-self: flex-end; max-width: 88%; padding: 8px 12px; border: 1px solid var(--line); border-right: 4px solid var(--nav); border-radius: var(--r); background: var(--bg); font-weight: 600; }
.ai-a { padding: 2px 0 2px 12px; border-left: 4px solid var(--noerok); white-space: pre-wrap; overflow-wrap: anywhere; min-height: 1.5em; }
.ai-panel.is-busy .ai-turn:last-child .ai-a::after { content: ""; display: inline-block; width: 8px; height: 1em; margin-left: 3px; vertical-align: text-bottom; background: var(--highlight); animation: ai-wait 1s steps(2) infinite; }
@keyframes ai-wait { 50% { opacity: 0; } }
.ai-status { padding: 8px 12px; border: 1px solid var(--border); border-left: 6px solid var(--action); border-radius: var(--r); background: var(--bg); font-size: 15px; }
.ai-explain { align-self: flex-start; }
.ai-form { display: flex; flex-direction: column; gap: 10px; }
.ai-box { resize: vertical; min-height: calc(var(--tap) * 1.5); line-height: 1.5; }
.ai-box:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.ai-made { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border: 1px solid var(--border); border-radius: var(--r); font-size: 13px; font-weight: 600; color: var(--muted); background: var(--bg); }
.sx { display: flex; flex-direction: column; gap: 16px; max-width: 640px; width: 100%; margin: 0 auto; }
.sx-head { display: flex; align-items: center; gap: 10px; }
.sx-track { position: relative; flex: 1; min-width: 0; margin-right: 6px; }
.sx-bar > i { width: 100%; transform: scaleX(0); transform-origin: left center; transition: transform .28s cubic-bezier(.2, .8, .3, 1); background: linear-gradient(to bottom, var(--band-1) 0 34%, var(--band-2) 34% 67%, var(--band-3) 67% 100%); }
.sx-q { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; pointer-events: none; }
.sx-q .orn { width: 16px; height: 16px; margin: 0; opacity: .28; transform: scale(.7); transition: opacity .2s, transform .2s; }
.sx-q.on .orn { opacity: 1; transform: scale(1); }
.sx-streak { padding: 2px 8px; font-size: 13px; font-weight: 700; color: var(--on-highlight); background: var(--highlight); border-radius: 10px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sx-count { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sx-close, .sx-skip { min-width: var(--tap); min-height: var(--tap); padding: 0 10px; font: inherit; font-weight: 600; color: var(--muted); background: none; border: 0; border-radius: var(--r); cursor: pointer; }
.sx-close { font-size: 26px; line-height: 1; padding: 0; }
.sx-skip { text-decoration: underline; text-underline-offset: 3px; }
.sx-note { padding: 8px 12px; border: 1px solid var(--line); border-left: 4px solid var(--highlight); border-radius: var(--r); background: var(--surface); }
.sx-stage { display: flex; flex-direction: column; gap: 16px; }
.sx-prompt { font-size: 18px; font-weight: 600; text-wrap: balance; }
.sx-prompt [lang="ko"], .xq [lang="ko"], .sx-missed [lang="ko"], .xc-meaning [lang="ko"] { font-size: 1.1em; line-height: inherit; }
.sx-body { display: flex; flex-direction: column; gap: 16px; min-height: 180px; }
.sx-feedback { scroll-margin-bottom: 96px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--border); border-radius: var(--r); }
.sx-feedback[data-verdict="right"] { border-left-color: var(--right); }
.sx-feedback[data-verdict="wrong"] { border-left-color: var(--wrong); border-left-style: double; }
.sx-feedback .verdict { font-size: 18px; }
.sx-feedback .verdict svg { width: 22px; height: 22px; }
.sx-answer, .sx-answer [lang="ko"] { font-weight: 600; }
.sx-expected [lang="ko"], .sx-fnote [lang="ko"] { font-size: var(--ko-text); line-height: 1.4; }
.sx-typo { font-weight: 600; }
.sx-flag[aria-pressed="true"] { border-color: var(--nav); box-shadow: inset 0 0 0 1px var(--nav); }
.sx-flag[aria-pressed="true"]::before { content: "\2713"; }
.sx-rate button { min-width: 64px; }
.sx-foot { position: sticky; bottom: var(--sx-bottom, 0px); z-index: 5; display: flex; padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); background: var(--bg); }
.sx-main { flex: 1; min-height: 52px; font-size: 17px; }
.sx-summary { display: flex; flex-direction: column; gap: 12px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.sx-summary h2:focus { outline: none; }
.sx-summary ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.sx-figures li:first-child { font-size: 18px; font-weight: 600; }
@media (max-width: 719px) {
  body:not(.sx-full) .sx { --sx-bottom: calc(59px + env(safe-area-inset-bottom)); }
  body:not(.sx-full) .sx-foot { padding-bottom: 10px; }
}
body.sx-full .top, body.sx-full .mainnav { display: none; }
body.sx-full main { padding-bottom: 16px; }
.xk { display: none; font: 600 12px/1 var(--mono); padding: 3px 5px; border: 1px solid currentColor; border-radius: 4px; opacity: .75; }
@media (hover: hover) and (pointer: fine) {
  .xk { display: inline-block; }
}
.xmark { display: inline-flex; flex: none; }
.xmark svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.xmark.right { color: var(--right); }
.xmark.wrong { color: var(--wrong); }
.xbig { text-align: center; }
.xbig [lang="ko"] { font-size: clamp(56px, 18vw, 96px); line-height: 1.2; font-weight: 600; }
.xq { font-size: 19px; text-wrap: pretty; }
.xa { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.xa-play { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; padding: 0; color: var(--on-nav); background: var(--nav); border: 0; border-radius: 50%; cursor: pointer; }
.xa-big .xa-play { width: 84px; height: 84px; }
.xa-play svg { width: 55%; height: 55%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.xa-play:disabled, .xa-slow:disabled { opacity: .5; cursor: default; }
.xa-play:active { transform: scale(.96); }
.xr { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.xr-b { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 56px; padding: 8px 4px; font: inherit; font-weight: 600; color: var(--ink); background: var(--surface); border: 1px solid var(--border); border-top-width: 5px; border-radius: var(--r); cursor: pointer; }
.xr-1 { border-top-color: var(--wrong); }
.xr-2 { border-top-color: var(--highlight); }
.xr-3 { border-top-color: var(--right); }
.xr-4 { border-top-color: var(--focus); }
.xr-b[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ink); }
.xr-b:disabled { opacity: .6; cursor: default; }
.xp, .xb, .xt, .xc, .xs, .xk-drill { display: flex; flex-direction: column; gap: 16px; }
.xo-list { display: grid; grid-template-columns: 1fr; gap: 10px; }
.xo-grid { grid-template-columns: 1fr 1fr; }
.xo { position: relative; display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 10px 14px; font: inherit; font-size: 17px; text-align: left; color: var(--ink); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); cursor: pointer; }
.xo-t { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.xo-grid .xo { justify-content: center; min-height: 72px; }
.xo-grid .xo-t { justify-content: center; text-align: center; }
.xo-grid .xk { position: absolute; top: 6px; left: 6px; }
.xo-ko [lang="ko"] { font-size: 30px; line-height: 1.3; font-weight: 600; }
.xo-sound svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.xo-reveal { flex-basis: 100%; text-align: center; }
.xo-reveal [lang="ko"] { font-size: 24px; line-height: 1.3; font-weight: 600; }
.xo[aria-pressed="true"], .xm-item[aria-pressed="true"] { border-color: var(--nav); box-shadow: inset 0 0 0 2px var(--nav); background: color-mix(in srgb, var(--nav) 10%, var(--surface)); }
.xo.right, .xm-item.right, .xb-block.right { border-color: var(--right); box-shadow: inset 0 0 0 2px var(--right); }
.xo.wrong, .xm-item.wrong, .xb-block.wrong { border-color: var(--wrong); border-style: dashed; box-shadow: inset 0 0 0 1px var(--wrong); }
.xo-grid .xmark, .xb-block .xmark { position: absolute; top: 6px; right: 6px; }
.xdone .xo:not(.xo-sound), .xdone .xm-item { cursor: default; }
.xb-block { position: relative; display: flex; align-items: center; justify-content: center; align-self: center; min-width: 132px; min-height: 132px; padding: 8px 20px; background: var(--surface); border: 2px solid var(--border); border-radius: var(--r); }
.xb-block [lang="ko"] { font-size: 80px; line-height: 1.2; font-weight: 600; }
.xb-block.empty { border-style: dashed; }
.xb-tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.xb-tile { position: relative; width: 68px; height: 68px; padding: 0; color: var(--ink); background: var(--surface); border: 1px solid var(--border); border-bottom-width: 3px; border-radius: var(--r); cursor: pointer; }
.xb-tile [lang="ko"] { font-size: 34px; line-height: 1; font-weight: 600; }
.xb-tile .xk { position: absolute; top: 4px; left: 4px; font-size: 10px; }
.xb-tile.used { opacity: .35; border-style: dashed; cursor: default; }
.xb-slots { display: flex; justify-content: center; gap: 8px; }
.xb-slot { display: flex; flex-direction: column; align-items: center; justify-content: space-between; width: 84px; min-height: 76px; padding: 6px 4px; font: inherit; color: var(--ink); background: none; border: 2px dashed var(--border); border-radius: var(--r); cursor: pointer; }
.xb-slot.filled { background: var(--surface); border-style: solid; }
.xb-slot:disabled { cursor: default; color: var(--ink); }
.xb-slot-name { font-size: 12px; font-weight: 600; color: var(--muted); }
.xb-slot-letter { font-size: 32px; line-height: 1.1; font-weight: 600; min-height: 36px; }
.xm { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.xm-col { display: flex; flex-direction: column; gap: 8px; }
.xm-item { display: flex; align-items: center; gap: 8px; min-height: 54px; padding: 8px 10px; font: inherit; text-align: left; color: var(--ink); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); cursor: pointer; }
.xm-t { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.xm-t [lang="ko"] { font-size: 22px; line-height: 1.3; font-weight: 600; }
.xm-item.right { opacity: .75; }
.xt .field label { font-size: 14px; }
.xt-in.input { min-height: 56px; font-size: 24px; }
.xt-in.right { border: 2px solid var(--right); }
.xt-tools { display: flex; justify-content: flex-end; }
.xt-model { text-align: center; }
.xt-model [lang="ko"] { font-size: 34px; line-height: 1.4; font-weight: 600; }
.xt-show { align-self: flex-start; }
.xd { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: baseline; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.xd-row { display: contents; }
.xd-label { font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.xd-line { font-size: 26px; line-height: 1.4; }
.xd-bad { color: var(--wrong); background: none; padding: 0; text-decoration: underline wavy; text-underline-offset: 5px; }
.xd-fix { color: var(--on-highlight); background: var(--highlight); padding: 0 1px; border-radius: 2px; }
.xd-slips { font-size: var(--ko-min); line-height: 1.5; }
.xk-drill { align-items: center; gap: 8px; }
.xk-drill:focus { outline: none; }
.xkd-target [lang="ko"] { font-size: clamp(40px, 12vw, 64px); line-height: 1.2; font-weight: 600; }
.xkd-target, .xkd-typed { text-align: center; }
.xkd-typed { display: flex; align-items: center; justify-content: center; min-width: 200px; min-height: 60px; padding: 4px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); }
.xkd-typed [lang="ko"] { font-size: 32px; line-height: 1.3; }
.xkd-typed.miss { border-color: var(--wrong); border-style: dashed; box-shadow: inset 0 0 0 1px var(--wrong); }
.xkd-caret { width: 2px; height: 32px; margin-left: 2px; background: var(--ink); animation: xblink 1s steps(1) infinite; }
@keyframes xblink { 50% { opacity: 0; } }
.xkd-next { min-height: 31px; }
.xkd-stats { font-variant-numeric: tabular-nums; }
.xkd-keys { align-self: stretch; }
.xkd-result { font-size: 17px; }
.xkd-result [lang="ko"] { font-weight: 600; }
.xc { align-items: stretch; min-height: 300px; }
.xc-front { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 150px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.xc-back { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding-top: 12px; border-top: 1px solid var(--line); }
.xc-word [lang="ko"] { font-size: 44px; line-height: 1.25; font-weight: 600; }
.xc-meaning { font-size: 22px; font-weight: 600; text-wrap: balance; }
.xc-example { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border-left: 3px solid var(--line); text-align: left; align-self: stretch; }
.xc-show { align-self: stretch; min-height: 52px; }
.xc-missing { padding: 16px; border: 1px dashed var(--border); border-radius: var(--r); }
.xs { align-items: center; text-align: center; }
.xs-text [lang="ko"] { font-size: 30px; line-height: 1.5; font-weight: 600; }
.xs-rec { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.xs-record[aria-pressed="true"] { color: var(--on-action); background: var(--action); border-color: var(--action); }
.xs-ask { font-weight: 600; }
.xs .xr { align-self: stretch; }
.xdemo { display: flex; flex-direction: column; gap: 16px; }
.xdemo-pick { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.xdemo-pick select { min-height: var(--tap); font: inherit; max-width: 100%; color: var(--ink); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 6px 8px; }
.xdemo-pick label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; color: var(--muted); min-width: 0; }
.xdemo-pick label.check { flex-direction: row; align-items: center; min-height: var(--tap); gap: 6px; }
.xdemo-log { font: 12px/1.5 var(--mono); color: var(--muted); max-height: 160px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
body.xdemo-on #main > section:not(#devExercises) { display: none !important; }
.xo, .xm-item, .xb-tile, .xr-b, .xa-play { transition: transform .08s; }
.xo:active, .xm-item:active, .xb-tile:active, .xr-b:active { transform: scale(.97); }
.xo, .xm-item, .xb-block { overflow: hidden; }
.xo.right::before, .xm-item.right::before, .xb-block.right::before { content: ""; position: absolute; inset: 0; background: var(--right); opacity: .12; transform-origin: left center; animation: xbrush .32s cubic-bezier(.2, .8, .3, 1); pointer-events: none; }
.xm-item { position: relative; }
@keyframes xbrush { from { transform: scaleX(0); opacity: .3; } to { transform: scaleX(1); opacity: .12; } }
.xnote { text-align: center; }
.jc { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; cursor: pointer; }
.jc:focus { outline: none; }
.jl { width: 132px; height: 132px; }
.jl-petal { stroke: var(--orn-line); stroke-width: 1; transform-box: fill-box; transform-origin: 50% 100%; animation: jl-open .42s cubic-bezier(.2, .8, .3, 1) backwards; animation-delay: calc(var(--i) * 45ms); }
.jl-outer.jl-c0 { fill: var(--jeok); }
.jl-outer.jl-c1 { fill: var(--cheong); }
.jl-inner.jl-c0 { fill: var(--hwang); }
.jl-inner.jl-c1 { fill: var(--baek); }
.jl-heart { fill: var(--heuk); transform-origin: center; }
.jl-seed { fill: var(--hwang); transform-origin: center; }
.jl-dot { fill: var(--noerok); transform-origin: center; }
.jl[data-kind="narrow"] .jl-outer.jl-c1 { fill: var(--surface); }
@keyframes jl-open { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: scale(1); } }
.jc-band { width: min(260px, 100%); }
.jc-band .band { display: block; transform-origin: center; animation: jc-unroll .5s .15s cubic-bezier(.2, .8, .3, 1) backwards; }
@keyframes jc-unroll { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.jc-title { font-size: 24px; }
.jc-score { font-size: 18px; }
.jc-figure { display: inline-block; min-width: 1.2em; font-size: 30px; font-variant-numeric: tabular-nums; color: var(--right); }
.jc[data-kind="narrow"] .jc-figure { color: var(--ink); }
.jc-new { font-weight: 600; }
.jc-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.jc-card { display: flex; flex-direction: column; align-items: center; padding: 6px 12px; background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--band-2); border-radius: var(--r); }
.jc-card [lang="ko"] { font-size: 22px; line-height: 1.3; font-weight: 600; }
:root[data-motion="less"] *, :root[data-motion="less"] *::before, :root[data-motion="less"] *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  *::before, *::after { animation: none !important; transition: none !important; }
}
.xfx { display: flex; flex-direction: column; gap: 12px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.xfx-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.xfx-row label { display: flex; align-items: center; gap: 6px; min-height: var(--tap); font-weight: 600; }
.xfx-stage { min-height: 120px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; padding: 12px; border: 1px dashed var(--border); border-radius: var(--r); }
.xfx-chip { display: inline-flex; align-items: center; justify-content: center; min-width: 96px; min-height: 60px; padding: 8px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); position: relative; overflow: hidden; }
.xfx-chip.right::before { content: ""; position: absolute; inset: 0; background: var(--right); opacity: .12; transform-origin: left center; animation: xbrush .32s cubic-bezier(.2, .8, .3, 1); }
.xg { display: block; font-family: var(--ui); font-size: 13px; line-height: 1.3; font-weight: 400; color: var(--muted); }
.xo-t .xg { flex-basis: 100%; text-align: inherit; }
.xo-grid .xo-t .xg, .xbig .xg, .ex-trace-head .xg { text-align: center; }
.xkd-gloss { min-height: 17px; text-align: center; }
.xtap { cursor: pointer; }
.sx-means { display: flex; flex-direction: column; gap: 2px; align-self: stretch; }
.xg-row { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.xg-play { display: inline-flex; align-items: center; justify-content: center; flex: none; width: var(--tap); height: var(--tap); padding: 0; color: var(--nav); background: none; border: 0; border-radius: 50%; cursor: pointer; }
.xg-play svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.xg-play:disabled { opacity: .4; cursor: default; }
.xg-word { font-size: var(--ko-text); line-height: 1.3; font-weight: 600; }
.xg-en, .xg-lead { color: var(--muted); }
.xc-words { display: flex; flex-direction: column; align-self: stretch; }
.kb { display: flex; flex-direction: column; gap: 6px; width: 100%; max-width: 560px; margin: 0 auto; padding: 8px 4px; background: color-mix(in srgb, var(--line) 55%, var(--bg)); border-radius: var(--r); user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.kb-row { display: flex; justify-content: center; gap: 4px; }
.kb-row2 { padding: 0 5%; }
.kb-key { position: relative; flex: 1 1 0; min-width: 0; height: 50px; padding: 0; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 5px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.kb-jamo { display: block; font-family: var(--ko); font-size: 22px; line-height: 1; font-weight: 600; }
.kb-latin { position: absolute; top: 2px; right: 4px; font: 10px/1 var(--mono); color: var(--muted); text-transform: uppercase; }
.kb-wide { flex: 1.5 1 0; font-size: 13px; font-weight: 600; }
.kb-back { font-size: 20px; }
.kb-space { flex: 0 1 60%; font-size: 13px; color: var(--muted); }
.kb-enter { flex: 0 1 20%; font-size: 18px; }
.kb-shift[aria-pressed="true"] { color: var(--on-nav); background: var(--nav); border-color: var(--nav); }
.kb-quiet .kb-jamo { opacity: .45; }
.kb-next { color: var(--on-highlight); background: var(--highlight); border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); z-index: 1; }
.kb-next .kb-latin { color: var(--on-highlight); }
.kb-next::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--on-highlight); }
.kb-down { background: color-mix(in srgb, var(--nav) 25%, var(--surface)); transform: translateY(1px); }
.kb-wrong { color: var(--surface); background: var(--wrong); border-color: var(--wrong); border-style: dashed; }
.kb-wrong .kb-latin { color: var(--surface); }
@media (min-width: 720px) {
  .kb-key { height: 54px; }
  .kb-jamo { font-size: 24px; }
}
.ki-toggle { display: inline-flex; align-items: center; justify-content: center; flex: none; min-width: var(--tap); min-height: var(--tap); padding: 0 10px; font: inherit; font-weight: 700; color: var(--ink); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); cursor: pointer; vertical-align: middle; }
.ki-toggle[aria-pressed="true"] { color: var(--on-nav); background: var(--nav); border-color: var(--nav); }
.ki-toggle:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.ki-face { font-family: var(--ko); font-size: 18px; line-height: 1; }
.ki-dock { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--border); }
.ki-dock .kb { border-radius: 0; padding: 6px 0; }
.ki-dockbar { display: flex; justify-content: space-between; gap: 8px; padding: 0 4px 4px; }
.ki-dockbar .btn { min-height: 40px; padding: 6px 12px; font-size: 14px; }
body.ki-open { padding-bottom: var(--ki-room, 0px); }
.xgp, .xl, .xrw, .xn, .xf { display: flex; flex-direction: column; gap: 16px; }
.xgp-line { font-size: 28px; line-height: 1.7; font-weight: 600; text-align: center; text-wrap: balance; }
.xgp-line [lang="ko"] { font-size: inherit; line-height: inherit; }
.xgp-blank { display: inline-block; min-width: 2.4em; min-height: 1.5em; margin: 0 4px; padding: 0 8px; vertical-align: baseline; text-align: center; border-bottom: 3px solid var(--nav); border-radius: 4px 4px 0 0; background: color-mix(in srgb, var(--nav) 8%, var(--surface)); }
.xgp-blank.filled { color: var(--nav); }
.xgp-blank.right { color: var(--right); border-bottom-color: var(--right); }
.xgp-blank.wrong { color: var(--ink); border-bottom-color: var(--wrong); border-bottom-style: double; }
.xgp-hint { text-align: center; }
.xgp-hint [lang="ko"] { font-size: var(--ko-text); font-weight: 600; color: var(--ink); }
.xgp-after { text-align: center; }
.xl-answer { position: relative; display: flex; flex-wrap: wrap; align-content: flex-start; align-items: center; gap: 8px; min-height: 76px; padding: 10px; background: var(--surface); border: 2px dashed var(--border); border-radius: var(--r); }
.xl-answer.right { border-style: solid; border-color: var(--right); }
.xl-answer.wrong { border-color: var(--wrong); }
.xl-answer > .xmark { margin-left: auto; }
.xl-empty { padding: 0 6px; }
.xl-pool { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.xl-tile { position: relative; display: inline-flex; align-items: center; gap: 8px; min-width: 52px; min-height: 52px; padding: 6px 14px; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--border); border-bottom-width: 3px; border-radius: var(--r); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; transition: transform .08s; }
.xl-tile .xl-t { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.xl-tile [lang="ko"] { font-size: 24px; line-height: 1.3; font-weight: 600; }
.xl-tile .xk { position: absolute; top: 3px; left: 3px; font-size: 10px; }
.xl-tile.placed { border-color: var(--nav); }
.xl-tile.used { opacity: .3; border-style: dashed; cursor: default; }
.xl-tile:disabled, .xl-tile[aria-disabled="true"] { cursor: default; color: var(--ink); }
.xl-tile.drag { z-index: 6; cursor: grabbing; transition: none; box-shadow: 0 6px 16px color-mix(in srgb, var(--ink) 30%, transparent); }
.xl-tile.right { border-color: var(--right); }
.xl-tile.wrong { border-color: var(--wrong); border-style: dashed; }
.xl-drop { flex: none; align-self: stretch; width: 4px; min-height: 44px; border-radius: 2px; background: var(--nav); }
.xl-lines .xl-answer, .xl-lines .xl-pool { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
.xl-lines .xl-tile { justify-content: flex-start; text-align: left; padding: 8px 12px 8px 4px; touch-action: auto; }
.xl-lines .xl-tile [lang="ko"] { font-size: var(--ko-text); }
.xl-lines .xl-tile .xl-who { font-size: 14px; font-weight: 600; color: var(--muted); }
.xl-lines .xl-tile .xk { position: static; }
.xl-lines .xl-tile .xmark { margin-left: auto; }
.xl-grip { display: inline-flex; align-items: center; justify-content: center; flex: none; align-self: stretch; width: 36px; color: var(--muted); letter-spacing: -2px; touch-action: none; cursor: grab; }
.xl-lines .xl-drop { width: auto; min-height: 0; height: 4px; }
.xl-status { text-align: center; min-height: 1.4em; }
.xl-order { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 6px; }
.xl-order .xl-t { display: flex; flex-direction: column; }
.xl-order .xl-who { font-size: 14px; font-weight: 600; color: var(--muted); }
.xl-order [lang="ko"] { font-size: var(--ko-text); }
.xl-order-title { font-weight: 600; }
.xrw-src { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--highlight); border-radius: var(--r); }
.xrw-src [lang="ko"] { font-size: 26px; line-height: 1.4; font-weight: 600; }
.xrw-after { display: flex; flex-direction: column; gap: 10px; }
.xrw-why [lang="ko"] { font-weight: 600; }
.xw-s { font-size: 24px; line-height: 1.3; }
.xw { display: inline-flex; align-items: center; justify-content: center; min-width: var(--tap); min-height: var(--tap); margin: 2px 0; padding: 0 5px; font: inherit; color: inherit; background: none; border: 0; border-bottom: 1px dotted var(--border); border-radius: 4px; cursor: pointer; }
.xw[aria-pressed="true"] { color: var(--on-highlight); background: var(--highlight); border-bottom-color: transparent; }
.xw-gloss { min-height: 48px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.xw-gloss .xw-word { font-size: var(--ko-text); font-weight: 600; }
.xn-passage { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.xn-title { margin: 0; font-size: 18px; }
.xn-title [lang="ko"] { font-size: 22px; }
.xn-para { margin: 0; }
.xn-q { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.xn-n { font-weight: 600; color: var(--muted); }
.xdp { display: flex; flex-direction: column; gap: 12px; }
.xdp-bar { justify-content: flex-start; }
.xdp-speed { align-self: center; }
.xdp-lines { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.xdp-line { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 10px; padding: 4px 8px 4px 4px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.xdp-line.on { border-color: var(--nav); box-shadow: inset 0 0 0 1px var(--nav); }
.xdp-one.xa-play { width: var(--tap); height: var(--tap); }
.xdp-who { font-size: 14px; font-weight: 600; color: var(--muted); min-width: 2.5em; }
.xdp-text { min-width: 0; }
.xdp-ko { margin: 0; }
.xv { align-items: stretch; }
.xv-text { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.xv-para { margin: 0; }
.xv-rec { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.xv-show, .xv-reveal, .xv-listen { align-self: center; }
.xv-listen[aria-pressed="true"] { color: var(--on-action); background: var(--action); border-color: var(--action); }
.xv-heard:empty, .xv-model:empty { display: none; }
.xv-heard [lang="ko"] { font-weight: 600; }
.xf-in.input { min-height: 150px; font-size: 22px; line-height: 1.5; resize: vertical; }
.xf-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: var(--tap); }
.xf-count { font-variant-numeric: tabular-nums; }
.xf-reveal { align-self: stretch; min-height: 52px; }
.xf-after { display: flex; flex-direction: column; gap: 14px; }
.xf-checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.xf-checks li { display: flex; align-items: flex-start; gap: 8px; }
.xf-checks [lang="ko"] { font-weight: 600; }
.xf-model { padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--right); border-radius: var(--r); }
.xf-answer [lang="ko"] { font-size: 22px; line-height: 1.6; }
.xf-ai { padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.xf-correct { align-self: flex-start; }
.xl-lines .xl-tile.used, .xl.xdone .xl-pool { display: none; }
body.sx-full .appfoot { display: none; }
body.sx-full main { padding-top: 12px; }
.vspeak { flex: none; }
.td { display: flex; flex-direction: column; gap: 16px; }
.td-glance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; }
.td-glance > div { display: flex; flex-direction: column; gap: 2px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--nav); border-radius: var(--r); min-width: 0; }
.td-glance dt { font-size: 13px; font-weight: 600; color: var(--muted); }
.td-glance dd { margin: 0; font-size: 18px; font-weight: 650; overflow-wrap: anywhere; }
.td-glance dd.sub { font-size: 13px; font-weight: 400; }
.td-card { gap: 10px; }
.td-card h2 { font-size: 15px; font-weight: 650; color: var(--muted); text-transform: none; }
.td-big { font-size: 22px; font-weight: 650; line-height: 1.3; }
.td-big [lang="ko"] { font-size: 1.1em; line-height: inherit; }
.td-card .btn { align-self: flex-start; }
#tdStart { border-top: var(--band-h) solid transparent; border-image: var(--band) 11 0 0 0 / var(--band-h) 0 0 0; }
@media (max-width: 419px) {
  .td-glance { grid-template-columns: 1fr 1fr; }
  .td-glance > div:first-child { grid-column: span 2; }
}
main:has(#pageView[data-view="learn"]:not([hidden])) { max-width: 1120px; }
.mp { display: flex; flex-direction: column; gap: 20px; }
.lm-gate { display: flex; flex-direction: column; gap: 10px; }
.mp-tally { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.mp-tally > div { display: flex; align-items: baseline; gap: 6px; }
.mp-tally dt { font-size: 13px; font-weight: 600; color: var(--muted); }
.mp-tally dd { margin: 0; font-weight: 650; }
.mp-seals { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.td-seals { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.seal { display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding: 0 3px; color: var(--on-action); background: var(--action); border-radius: 4px; box-shadow: inset 0 0 0 2px var(--action), inset 0 0 0 3px var(--on-action); transform: rotate(-5deg); font: 650 11px/1 var(--mono); }
.art { display: block; width: 100%; height: 100%; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.art .a-roof { fill: var(--nav); stroke: var(--band-edge); stroke-width: 1.2; }
.art .a-band { stroke: var(--hwang); stroke-width: 2; }
.art .a-post { stroke: var(--jeok); stroke-width: 2.8; }
.art .a-beam { stroke: var(--cheong); stroke-width: 2.6; }
.art .a-ground { stroke: var(--border); }
.art .a-light { fill: var(--hwang); }
.art .a-seed { fill: var(--jeok); stroke: none; }
.art .a-leaf { fill: var(--noerok); }
.art .a-water { stroke: var(--cheong); }
.art .a-door { fill: var(--jeok); stroke-width: 1.2; }
.art .a-door.open { fill: var(--yuksaek); }
.art .a-lock { fill: var(--hwang); stroke-width: 1.2; }
.art .a-lockbow { stroke-width: 1.4; }
.art .t-coat { fill: var(--baek); stroke: var(--ink); }
.art .t-face { fill: var(--yuksaek); stroke: var(--ink); stroke-width: 1.2; }
.art .t-hat { fill: var(--ink); stroke: var(--ink); stroke-width: 2; }
.art .t-staff { stroke: var(--ink); stroke-width: 1.8; }
.art .b-hill { stroke: var(--border); stroke-width: 1.2; fill: color-mix(in srgb, var(--noerok) 14%, transparent); }
.art .b-hill.far { fill: color-mix(in srgb, var(--cheong) 9%, transparent); }
.rd { position: relative; margin: 0; padding: 0; list-style: none; }
.rd-line { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; }
.rd-road { fill: none; stroke: color-mix(in srgb, var(--nav) 76%, var(--ink)); stroke-width: 7; stroke-linecap: round; }
.rd-road.walked { stroke: var(--highlight); }
.rd-road.far { stroke: var(--border); stroke-width: 4; stroke-dasharray: 3 10; opacity: .7; }
.rd-stop { position: absolute; left: 0; right: 0; }
.rd-stop > button { position: absolute; top: 50%; translate: 0 -50%; }
.rd-label { position: absolute; right: 0; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; gap: 1px; min-width: 0; }
.rd-gate { width: 84px; height: 76px; padding: 0; background: var(--bg); border: 0; border-radius: var(--r); cursor: pointer; }
.rd-region[data-open="0"] .rd-gate .art { opacity: .8; }
.rd-regionname { font-size: 21px; }
.rd-region::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: var(--band-h); background: var(--band); opacity: .9; }
.rd-region .rd-label { padding-top: 22px; }
.rd-region > button { top: calc(50% + 10px); }
.rd-scene { position: absolute; left: 0; top: 28px; width: 250px; height: 172px; opacity: .6; pointer-events: none; }
.rd-mark { width: 60px; height: 60px; padding: 4px; background: var(--bg); border: 0; border-radius: 50%; cursor: pointer; }
.rd-landmark[data-state="coming"] .rd-mark .art { opacity: .4; }
.rd-landmark[data-state="coming"] .rd-unit { color: var(--muted); font-weight: 400; }
.rd-sealed { position: absolute; right: -8px; bottom: -4px; }
.rd-unit { font-weight: 650; line-height: 1.3; cursor: pointer; }
.rd-unit [lang="ko"], .mp-title [lang="ko"] { line-height: 1.3; }
.rd-num { font: 650 13px/1 var(--mono); color: var(--on-nav); background: var(--nav); padding: 3px 6px; border-radius: 4px; vertical-align: 2px; }
.rd-landmark[data-state="coming"] .rd-num { color: var(--muted); background: none; box-shadow: inset 0 0 0 1px var(--border); }
.rd-gate:focus-visible, .rd-mark:focus-visible, .mp-node:focus-visible, .mp-x:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.mp-node { display: grid; place-items: center; width: 52px; height: 52px; padding: 0; color: var(--muted); background: var(--surface); border: 2px solid var(--border); border-radius: 50%; cursor: pointer; }
.mp-icon { display: block; width: 26px; height: 26px; }
.mp-icon svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mp-gate { border-radius: 9px; rotate: 45deg; scale: .88; }
.mp-gate .mp-icon { rotate: -45deg; }
.mp-node[data-state="next"] { color: var(--on-action); background: var(--action); border-color: var(--action); box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--action); }
.mp-node[data-state="next"] .mp-icon svg { fill: currentColor; }
.mp-node[data-state="started"] { color: var(--ink); border-color: var(--action); border-width: 3px; }
.mp-node[data-state="done"] { color: var(--right); border-color: var(--right); border-width: 3px; }
.mp-node.perfect { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--highlight); }
.mp-node[data-state="tested"] { color: var(--focus); background: var(--bg); border-color: var(--focus); border-style: double; border-width: 5px; }
.mp-node[data-state="locked"], .mp-node[data-state="held"] { background: var(--bg); }
.mp-node[data-state="coming"] { background: var(--bg); border-style: dashed; }
.mp-node.far { background: none; border: 0; }
.mp-node.far::after { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px dashed var(--border); }
.mp-petals { position: absolute; left: 50%; bottom: -11px; translate: -50% 0; display: flex; gap: 3px; padding: 2px 4px; background: var(--bg); border-radius: 8px; }
.mp-petals i { width: 9px; height: 9px; border-radius: 50% 50% 50% 0; rotate: -45deg; border: 1.5px solid var(--border); }
.mp-petals i.lit { background: var(--jeok); border-color: var(--heuk); }
.mp-title { font-weight: 600; line-height: 1.3; cursor: pointer; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mp-state { font-size: 14px; color: var(--muted); }
.mp-node[data-state="locked"] + .rd-label .mp-title, .mp-node[data-state="coming"] + .rd-label .mp-title { color: var(--muted); font-weight: 400; }
.mp-node[data-state="next"] + .rd-label .mp-state { color: var(--link); font-weight: 600; }
.mp-go { align-self: flex-start; margin-top: 4px; }
.rd-traveller { position: absolute; left: 0; top: 0; width: 34px; height: 42px; pointer-events: none; z-index: 2; filter: drop-shadow(0 2px 0 color-mix(in srgb, var(--heuk) 25%, transparent)); }
.rd-traveller.walking { transition: transform .9s ease-in-out; }
.mp-reset { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.rd[data-wide="1"] .rd-label { max-width: 380px; right: auto; }
.mp-sheet { position: fixed; z-index: 30; left: 0; right: 0; bottom: calc(59px + env(safe-area-inset-bottom)); max-height: 70vh; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 0 16px 18px; background: var(--surface); border-top: 1px solid var(--band-edge); box-shadow: 0 -8px 24px color-mix(in srgb, var(--heuk) 22%, transparent); }
.mp-sheet::before { content: ""; flex: none; display: block; height: var(--band-h); margin: 0 -16px; background: var(--band); }
.mp-sheethead { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.mp-sheethead h2:focus { outline: none; }
.mp-x { flex: none; width: var(--tap); height: var(--tap); padding: 10px; color: var(--muted); background: none; border: 0; border-radius: var(--r); cursor: pointer; }
.mp-x svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.mp-says { font-weight: 600; }
.mp-facts { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
@media (min-width: 720px) {
  .mp-sheet { left: auto; right: 24px; bottom: 24px; width: 380px; border: 1px solid var(--band-edge); border-radius: var(--r); overflow: hidden auto; }
}
.hg { display: flex; flex-direction: column; gap: 20px; }
.hg-group { display: flex; flex-direction: column; gap: 10px; }
.hg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 8px; }
.hg-tile { min-height: 64px; padding: 4px; color: var(--ink); background: var(--surface); border: 1px solid var(--border); border-bottom: 4px solid var(--line); border-radius: var(--r); cursor: pointer; }
.hg-tile [lang="ko"] { font-size: 30px; line-height: 1.2; font-weight: 600; }
.hg-tile[data-met] { border-bottom-color: var(--highlight); }
.hg-tile[aria-pressed="true"] { color: var(--on-nav); background: var(--nav); border-color: var(--nav); }
.hg-detail { scroll-margin: 12px; }
.hg-top { display: flex; align-items: center; gap: 20px; }
.hg-big { flex: none; min-width: 96px; text-align: center; }
.hg-big [lang="ko"] { font-size: clamp(64px, 20vw, 96px); line-height: 1.15; font-weight: 600; }
.hg-words { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.hg-name [lang="ko"] { font-weight: 600; }
.hg-writer { display: flex; justify-content: center; padding-top: 4px; }
.md { display: flex; flex-direction: column; gap: 14px; font-size: 17px; line-height: 1.6; }
.md [lang="ko"] { font-size: 1.2em; line-height: 1.5; }
.md strong [lang="ko"], .md strong { font-weight: 650; }
.md ul, .md ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.md-table { overflow-x: auto; }
.md table { border-collapse: collapse; min-width: 60%; }
.md th, .md td { padding: 8px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.md th { background: var(--surface); font-size: 14px; color: var(--muted); }
.ls, .rv { display: flex; flex-direction: column; gap: 16px; max-width: 640px; width: 100%; margin: 0 auto; }
.ls-head { display: flex; align-items: center; gap: 10px; min-height: var(--tap); }
.ls-head .sx-close { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.ls-bar { flex: 1; min-width: 0; }
.ls-title { font-size: 16px; font-weight: 600; color: var(--muted); }
.ls-title [lang="ko"] { font-size: 1.15em; line-height: 1.3; }
.ls-stage { display: flex; flex-direction: column; gap: 16px; }
.ls-read { display: flex; flex-direction: column; gap: 16px; min-height: 40vh; }
.ls-foot { bottom: 0; }
.ls-session .sx-bar, .ls-session .sx-count { display: none; }
.ls .sx-head { justify-content: flex-end; min-height: 0; margin-top: -8px; }
.ls .sx-prompt, .rv .sx-prompt { font-size: 20px; }
.ls-show { display: grid; gap: 12px; }
.ls-item { gap: 10px; padding: 16px; }
.ls-word { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ls-ko [lang="ko"] { font-size: var(--ko-large); line-height: 1.3; font-weight: 600; }
.ls-en { font-size: 18px; }
.ls-watch summary { min-height: var(--tap); display: flex; align-items: center; cursor: pointer; color: var(--link); font-weight: 600; }
.ls-watch[open] summary { margin-bottom: 8px; }
.ls-dialogue { display: flex; flex-direction: column; gap: 4px; }
.ls-line { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.ls-who { font-weight: 600; color: var(--muted); }
.ls-end { border-top: 0; padding-top: 0; overflow: hidden; }
.ls-end::before, .rv-end::before { content: ""; display: block; height: var(--band-h); margin: 0 -20px 8px; background: var(--band); }
.rv-end { padding-top: 0; overflow: hidden; }
.ls-figures { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.ls-figures li:first-child { font-size: 18px; font-weight: 600; }
.ls-unlocked { color: var(--right); font-weight: 600; }
.ls-aside:empty { display: none; }
.vnote { font-size: 15px; }
.rv-title { flex: 1; font-size: 17px; }
.rv-undo { min-height: 36px; padding: 4px 12px; font-size: 14px; }
.rv-info:empty { display: none; }
.rv-stage { display: flex; flex-direction: column; gap: 16px; }
.xr-due { font-size: 12px; font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
.sx-rate .xr-due { margin-left: 6px; }
.setform { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; align-items: end; }
.setform .btnrow, .setform > p { grid-column: 1 / -1; }
.ownwords { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.cl { display: flex; flex-direction: column; gap: 20px; }
.cl-tabs { align-self: flex-start; }
.cl-pane { display: flex; flex-direction: column; gap: 12px; }
.cl-log { display: flex; flex-direction: column; gap: 12px; }
.cl-drill { gap: 10px; }
.rv-clinic { gap: 10px; }
.rv-leech, .parkedrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding-top: 8px; border-top: 1px solid var(--line); }
.pl { display: flex; flex-direction: column; gap: 16px; }
.pl-run { display: flex; flex-direction: column; gap: 12px; max-width: 640px; width: 100%; margin: 0 auto; }
.pl-parts { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.pl-parts li[data-passed="1"] { list-style-type: "\2713  "; }
.pl-parts li[data-passed="0"] { list-style-type: "\2715  "; }
.pl-says { font-weight: 600; }
.pl-result h3 { font-size: 16px; }
body.sx-full #pageView > .pagehead { display: none; }
.setrows { display: flex; flex-direction: column; gap: 4px; }
.setrow { display: flex; align-items: center; gap: 10px; min-height: var(--tap); cursor: pointer; }
.setrow input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--nav); }
.setrow input[type="range"] { flex: 1; max-width: 260px; accent-color: var(--nav); }
.ktap { cursor: pointer; border-radius: 3px; }
.ktap:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.kgloss { margin-left: 5px; font-size: .78em; color: var(--muted); font-style: normal; font-weight: 400; }
.kgloss::before { content: "("; }
.kgloss::after { content: ")"; }
.ls-sentence { display: flex; flex-direction: column; gap: 0; }
.ls-means { margin-top: -4px; }
.ls-passage { display: flex; flex-direction: column; gap: 18px; }
.ls-para { display: flex; flex-direction: column; gap: 8px; }
.ls-eg { display: flex; flex-direction: column; gap: 4px; padding-top: 8px; border-top: 1px solid var(--line); }
.rv-know { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rv-know .btn { min-height: var(--tap); }
.rv-knowone { border-color: var(--nav); box-shadow: inset 0 0 0 1px var(--nav); }
.cw { display: flex; flex-direction: column; gap: 16px; }
.cw-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.cw-fields select { min-width: 0; }
.cw-week h2 [lang="ko"], .td-card .td-big [lang="ko"] { line-height: 1.35; }
.cw-patterns { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.cw-pattern { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 0 12px 12px; border-top: 1px solid var(--line); border-left: 4px solid var(--border); }
.cw-pattern[data-state="done"] { border-left-color: var(--right); }
.cw-pattern[data-state="available"] { border-left-color: var(--action); }
.cw-pattern[data-state="none"], .cw-pattern[data-state="stage2"] { border-left-style: dashed; }
.cw-ptop { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.cw-pname [lang="ko"] { font-size: 24px; line-height: 1.3; font-weight: 600; }
.cw-bridge { padding: 8px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); }
.cw-bridge .md { font-size: 16px; gap: 6px; }
.cw-study { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.cw-study li .btn { min-height: 36px; padding: 4px 12px; font-size: 14px; }
.cw-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; align-items: end; }
.cw-form .cw-msg { grid-column: 1 / -1; min-height: 1.5em; }
.cw-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.rd-shelf, .pr { display: flex; flex-direction: column; gap: 16px; }
.pr .card .btn { align-self: flex-start; }
.rd-texts { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.rd-text { text-decoration: none; color: var(--ink); gap: 4px; padding: 16px; border-left: 6px solid var(--nav); height: 100%; }
.rd-texttitle { font-weight: 650; font-size: 18px; }
.rd-texttitle [lang="ko"] { font-size: 22px; line-height: 1.35; }
.rr { display: flex; flex-direction: column; gap: 16px; max-width: 680px; width: 100%; margin: 0 auto; }
.rr-back { align-self: flex-start; min-height: var(--tap); display: inline-flex; align-items: center; }
.rr-title [lang="ko"] { font-size: 28px; line-height: 1.3; font-weight: 650; }
.rr-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; position: sticky; top: 0; z-index: 4; padding: 8px 0; background: var(--bg); }
.rr-listen[aria-pressed="true"] { color: var(--on-nav); background: var(--nav); border-color: var(--nav); }
.rr-text { display: flex; flex-direction: column; gap: 22px; }
.rr-line { display: flex; flex-direction: column; gap: 10px; }
.rr-who { font-size: 14px; font-weight: 650; color: var(--muted); }
.rr-s { display: flex; flex-direction: column; gap: 6px; padding-left: 10px; border-left: 3px solid transparent; }
.rr-s[data-now] { border-left-color: var(--highlight); }
.rr-ko { font-size: 26px; line-height: 1.75; }
.rr-w { font: inherit; color: inherit; background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 3px; padding: 0 1px; cursor: pointer; }
.rr-w:hover, .rr-w[aria-pressed="true"] { border-bottom-color: var(--highlight); }
.rr-w:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.rr-text[data-hidden="1"] .rr-ko, .rr-text[data-hidden="1"] .rr-en, .rr-text[data-hidden="1"] .rr-note, .rr-text[data-hidden="1"] .rr-mean { visibility: hidden; }
.rr-tools { display: flex; align-items: center; gap: 10px; }
.rr-tools .xa-play { width: 44px; height: 44px; }
.rr-mean { min-height: 36px; padding: 4px 12px; font-size: 14px; }
.rr-note { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--highlight); border-radius: var(--r); }
.rr-gk { font-weight: 650; }
.rr-new { display: flex; flex-direction: column; gap: 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.rr-new h2 { font-size: 17px; }
.rr-chip { display: inline-block; padding: 2px 10px; margin: 0 4px 6px 0; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.rr-end { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.rr-questions { align-self: stretch; }
.td-strands { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.td-strand { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: baseline; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--nav); border-radius: var(--r); min-width: 0; }
.td-strand[data-strand="input"] { border-top-color: var(--action); }
.td-strand[data-strand="output"] { border-top-color: var(--focus); }
.td-strand[data-strand="fluency"] { border-top-color: var(--highlight); }
.td-sname { font-weight: 650; display: flex; flex-direction: column; min-width: 0; }
.td-sname .sub { font-size: 13px; font-weight: 400; }
.td-sfig { font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.td-strand .progress { grid-column: 1 / -1; margin-top: 4px; }
@media (min-width: 720px) { .td-strands { grid-template-columns: repeat(4, 1fr); } }
.cw-talkform { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; align-items: end; }
.cw-talk .btn.primary { align-self: flex-start; }
.ls-skippass { align-self: flex-start; }
.rd-landmark[data-revisit] .rd-mark { box-shadow: 0 0 0 2px var(--highlight); }
.rd-stories { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.rd-stories .rd-texts { align-self: stretch; }
.rd-story { border-left-color: var(--noerok); }
.rd-story .ai-made { align-self: flex-start; margin-top: 4px; }
.rr-fresh { border-bottom: 2px dotted var(--border); }
.rr-freshlist { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.rr-qs { display: flex; flex-direction: column; gap: 14px; align-self: stretch; }
.rr-q { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.rr-q legend { font-weight: 600; padding: 0; margin-bottom: 4px; }
.rr-opt { justify-content: flex-start; text-align: left; }
.rr-opt[aria-pressed="true"] { border-color: var(--nav); box-shadow: inset 0 0 0 1px var(--nav); }
.rr-summary summary { min-height: var(--tap); display: flex; align-items: center; cursor: pointer; color: var(--link); font-weight: 600; }
@media (max-width: 719px) {
  .td-strand { grid-template-columns: 1fr; }
  .td-sname { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0 6px; }
}
.rv-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rv-tools:not(:has(> :not([hidden]))) { display: none; }
.rv-ear { min-height: 36px; padding: 4px 12px; font-size: 14px; }
.rv-ear[aria-pressed="true"] { color: var(--on-nav); background: var(--nav); border-color: var(--nav); }
.td-ceiling { font-weight: 600; }
.rr-offer { display: flex; flex-direction: column; gap: 8px; align-self: stretch; }
.rr-offer h2 { font-size: 17px; }
.rr-offerrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-top: 8px; border-top: 1px solid var(--line); }
.rr-offerrow .btn { min-height: 36px; padding: 4px 12px; font-size: 14px; }
