:root {
  --bg: #f6f5f1;
  --panel: #ffffff;
  --panel-2: #efede7;
  --line: #dcd8cf;
  --text: #1d1c1a;
  --muted: #6c6860;
  --accent: #2f5d8a;
  --accent-ink: #ffffff;
  --blank-bg: #fff3c9;
  --blank-line: #c9a227;
  --cue: #7a5b00;
  --ok: #2e7d4f;
  --mid: #b07a12;
  --bad: #b33a3a;
  --done: #8b877d;
  --focus: #2f5d8a;
  --mark-bg: #dfeaf5;
  --font: "Pretendard", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17181a; --panel: #1f2123; --panel-2: #26292b; --line: #383b3f;
    --text: #e9e7e2; --muted: #9b978f; --accent: #7fb0e0; --accent-ink: #10161c;
    --blank-bg: #3a3214; --blank-line: #c9a227; --cue: #f0d27a;
    --ok: #6fc28f; --mid: #e0ad4a; --bad: #ec7a7a; --done: #7c7870; --focus: #7fb0e0;
    --mark-bg: #24384c;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #17181a; --panel: #1f2123; --panel-2: #26292b; --line: #383b3f;
  --text: #e9e7e2; --muted: #9b978f; --accent: #7fb0e0; --accent-ink: #10161c;
  --blank-bg: #3a3214; --blank-line: #c9a227; --cue: #f0d27a;
  --ok: #6fc28f; --mid: #e0ad4a; --bad: #ec7a7a; --done: #7c7870; --focus: #7fb0e0;
  --mark-bg: #24384c;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.5; }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 1px solid var(--line); background: var(--panel); border-radius: 6px; padding: 6px 12px; }
button:hover { border-color: var(--muted); }
button.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
button.primary kbd { background: transparent; color: inherit; border-color: currentColor; opacity: .8; }
button.ghost { background: transparent; border-color: transparent; }
button.danger { color: var(--bad); }
button:disabled { opacity: .45; cursor: default; }
input[type=text], input[type=search], input[type=number], select, textarea {
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px;
}
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
kbd { font-family: ui-monospace, Consolas, monospace; font-size: .8em; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; background: var(--panel); }
.muted { color: var(--muted); }
.small { font-size: .85em; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

/* 상단바 */
.topbar { display: flex; align-items: center; gap: 12px; padding: 8px 16px; border-bottom: 1px solid var(--line); background: var(--panel); position: sticky; top: 0; z-index: 5; }
.brand { font-weight: 700; text-decoration: none; color: var(--text); }
.topnav { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.menu { position: relative; }
.menu-pop { position: absolute; right: 0; top: 110%; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 6px; min-width: 200px; display: flex; flex-direction: column; box-shadow: 0 6px 20px rgba(0,0,0,.15); }
.menu-pop a, .menu-item { display: block; padding: 8px 10px; text-align: left; border: 0; background: none; text-decoration: none; color: var(--text); border-radius: 6px; cursor: pointer; }
.menu-pop a:hover, .menu-item:hover { background: var(--panel-2); }

main { padding: 16px; max-width: 1400px; margin: 0 auto; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 8px 16px; border-radius: 8px; z-index: 20; max-width: 90vw; }

dialog { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); max-width: 560px; width: calc(100vw - 32px); }
dialog::backdrop { background: rgba(0,0,0,.35); }
.keys { border-collapse: collapse; width: 100%; margin-bottom: 12px; }
.keys td, .keys th { padding: 4px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.keys th { padding-top: 12px; color: var(--muted); font-weight: 600; }

/* 자료 관리 */
.manage { display: grid; grid-template-columns: 240px 1fr; gap: 16px; }
@media (max-width: 760px) { .manage { grid-template-columns: 1fr; } }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.panel h2 { font-size: 1rem; margin: 0 0 8px; }
.units ul { list-style: none; margin: 0; padding: 0; }
.units li > .u { display: flex; align-items: center; gap: 4px; padding: 4px 6px; border-radius: 6px; cursor: pointer; }
.units li > .u:hover { background: var(--panel-2); }
.units li > .u.sel { background: var(--mark-bg); font-weight: 600; }
.units li > .u .acts { margin-left: auto; display: none; }
.units li > .u:hover .acts { display: flex; }
.units .acts button { padding: 0 6px; font-size: .8em; }
.units ul ul { padding-left: 14px; }
.toolbar { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.toolbar input[type=search] { flex: 1; min-width: 180px; }
.mlist { width: 100%; border-collapse: collapse; }
.mlist td, .mlist th { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.mlist th { font-size: .85em; color: var(--muted); font-weight: 600; }
.mlist tr:hover td { background: var(--panel-2); }
.mlist .t { font-weight: 600; cursor: pointer; }
.bar { height: 6px; background: var(--panel-2); border-radius: 3px; overflow: hidden; min-width: 80px; }
.bar > span { display: block; height: 100%; background: var(--ok); }
.badge { display: inline-block; font-size: .75em; padding: 0 6px; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); }
.badge.warn { color: var(--mid); border-color: var(--mid); }
.sessions li { display: flex; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.sessions ul { list-style: none; padding: 0; margin: 0; }
.empty { padding: 24px; text-align: center; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 140px 1fr; gap: 10px 12px; align-items: center; }
.form-grid .hint { grid-column: 2; font-size: .85em; color: var(--muted); margin-top: -6px; }

/* 편집기 */
.editor-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.editor-head .title-in { font-size: 1.2rem; font-weight: 600; flex: 1; min-width: 200px; }
.save-state { font-size: .85em; color: var(--muted); min-width: 70px; }
.grid-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
table.grid { border-collapse: collapse; min-width: 100%; }
table.grid th, table.grid td { border: 1px solid var(--line); padding: 0; vertical-align: top; }
table.grid thead th { background: var(--panel-2); padding: 6px; min-width: 160px; }
table.grid thead th .colhead { display: flex; flex-direction: column; gap: 4px; }
table.grid thead th input { width: 100%; font-weight: 600; }
table.grid thead th .roleline { display: flex; gap: 4px; }
table.grid thead th select { flex: 1; font-size: .85em; padding: 3px; }
table.grid td.rowtool { width: 54px; background: var(--panel-2); text-align: center; padding: 2px; }
table.grid td.rowtool button { padding: 0 4px; font-size: .75em; border: 0; background: none; color: var(--muted); }
table.grid td.rowtool button:hover { color: var(--text); }
table.grid textarea { display: block; width: 100%; min-height: 40px; border: 0; border-radius: 0; resize: none; background: transparent; padding: 8px; line-height: 1.45; overflow: hidden; }
table.grid textarea:focus { outline: 2px solid var(--focus); outline-offset: -2px; background: var(--panel); }
table.grid td.role-key textarea { font-weight: 600; }
table.grid td.role-answer { background: color-mix(in srgb, var(--blank-bg) 35%, transparent); }
.role-tag { font-size: .7em; padding: 0 5px; border-radius: 3px; }
.preview { margin-top: 16px; }
.preview table { border-collapse: collapse; }
.preview td, .preview th { border: 1px solid var(--line); padding: 6px 10px; text-align: left; vertical-align: top; white-space: pre-wrap; }
.preview th { background: var(--panel-2); }
.pv-item { background: var(--blank-bg); border-bottom: 2px solid var(--blank-line); padding: 0 2px; border-radius: 2px; }
.pv-hint { font-size: .75em; color: var(--muted); }
.tips { font-size: .85em; color: var(--muted); margin: 8px 0 0; }
.tips code { background: var(--panel-2); padding: 0 4px; border-radius: 3px; }

/* 암기 화면 */
.study { max-width: 1100px; margin: 0 auto; }
.study-top { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.study-top .bar { flex: 1; min-width: 120px; height: 8px; }
.board { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.board h3 { margin: 0 0 12px; font-size: .95rem; color: var(--muted); font-weight: 600; }
.board table { border-collapse: collapse; width: 100%; font-size: 1.15rem; }
.board th, .board td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; white-space: pre-wrap; }
.board th { background: var(--panel-2); font-size: .9rem; color: var(--muted); }
.board td.role-key { font-weight: 700; }
.board td.role-hint { color: var(--muted); font-size: .95em; }
.board.single table { font-size: 1.3rem; }
.board.single td { padding: 14px 16px; }
.it { display: inline-block; min-width: 2.5em; padding: 1px 6px; border-radius: 4px; cursor: pointer; border-bottom: 2px solid var(--blank-line); background: var(--blank-bg); color: var(--cue); letter-spacing: .04em; }
.it.study { background: var(--mark-bg); color: var(--text); border-bottom-color: var(--accent); letter-spacing: 0; }
.it.revealed { color: var(--text); letter-spacing: 0; }
.it.focus { outline: 3px solid var(--focus); outline-offset: 2px; }
.it.r1 { background: color-mix(in srgb, var(--bad) 18%, transparent); border-bottom-color: var(--bad); color: var(--text); letter-spacing: 0; }
.it.r2 { background: color-mix(in srgb, var(--mid) 18%, transparent); border-bottom-color: var(--mid); color: var(--text); letter-spacing: 0; }
.it.r3 { background: color-mix(in srgb, var(--ok) 18%, transparent); border-bottom-color: var(--ok); color: var(--text); letter-spacing: 0; }
.it.rs { background: transparent; border-bottom-color: var(--line); color: var(--text); letter-spacing: 0; }
.it .tag { font-size: .65em; margin-left: 4px; vertical-align: middle; color: var(--muted); letter-spacing: 0; }
.it-done { color: var(--done); }
.it-exposed { border-bottom: 1px dashed var(--muted); }
.masked { color: var(--muted); }
.actionbar { position: sticky; bottom: 0; margin-top: 14px; padding: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.actionbar .info { flex: 1; min-width: 160px; font-size: .9em; color: var(--muted); }
.actionbar button { padding: 10px 14px; }
.actionbar .b1 { border-color: var(--bad); color: var(--bad); }
.actionbar .b2 { border-color: var(--mid); color: var(--mid); }
.actionbar .b3 { border-color: var(--ok); color: var(--ok); }
.stage-pill { display: inline-block; font-size: .75em; padding: 0 7px; border-radius: 10px; background: var(--panel-2); color: var(--muted); margin-left: 4px; }

/* 결과 */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 12px 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.card .n { font-size: 1.8rem; font-weight: 700; }
.card .l { font-size: .85em; color: var(--muted); }
.weak li { padding: 4px 0; border-bottom: 1px solid var(--line); }

/* 로그인 */
.login { max-width: 320px; margin: 15vh auto; display: flex; flex-direction: column; gap: 10px; }

/* ── 2차 추가 ── */
.navlink { text-decoration: none; color: var(--text); padding: 6px 10px; border-radius: 6px; }
.navlink:hover { background: var(--panel-2); }
.nowrap { white-space: nowrap; }
.c-due { color: var(--accent); font-weight: 600; }
.c-learn { color: var(--mid); font-weight: 600; }
.c-new { color: var(--ok); font-weight: 600; }
.c-ok { color: var(--ok); } .c-bad { color: var(--bad); }
.today { margin-bottom: 16px; }
.tstat { display: flex; flex-direction: column; min-width: 90px; }
.tstat b { font-size: 1.6rem; line-height: 1.1; }
.tstat span { font-size: .8em; color: var(--muted); }
.btnlink { display: inline-block; padding: 6px 12px; border-radius: 6px; text-decoration: none; }
.btnlink.primary { background: var(--accent); color: var(--accent-ink); font-weight: 600; }

/* 편집기: 글 블록, 미리보기 선택 */
.blocks { display: flex; flex-direction: column; gap: 8px; }
.block { display: flex; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.btool { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 34px; }
.btool button { padding: 0 4px; font-size: .75em; border: 0; background: none; color: var(--muted); }
.bmain { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.bmain textarea { width: 100%; resize: none; overflow: hidden; line-height: 1.6; }
.bmain textarea.note-in { font-size: .9em; color: var(--muted); }
table.grid td.bad, span.bad { background: color-mix(in srgb, var(--bad) 15%, transparent); color: var(--bad); }
table.grid td.role-options textarea, table.grid td.role-explain textarea { color: var(--muted); }
table.grid td.role-ox, table.grid td.role-choice { background: color-mix(in srgb, var(--blank-bg) 35%, transparent); }
.pv-t { cursor: text; }
.pv-mark { cursor: pointer; }
.pv-explain { color: var(--muted); font-style: italic; }
.pv-text p { margin: 0 0 12px; line-height: 1.8; white-space: pre-wrap; }
.pop { position: absolute; z-index: 30; }
.pop button { box-shadow: 0 4px 14px rgba(0,0,0,.2); }

/* 암기 화면: 단원 경로, 글, 보기, 해설 */
.crumb { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; font-size: .95rem; }
.crumb .unitpath { color: var(--muted); }
.crumb .sep { color: var(--line); }
.board.text .para { font-size: 1.25rem; line-height: 2; white-space: pre-wrap; margin-bottom: 8px; }
.board.text .para-note { margin: -4px 0 14px; }
.opts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; white-space: normal; }
.opt { font-size: 1rem; padding: 8px 12px; text-align: left; }
.opt.picked { border-color: var(--focus); }
.opt.right { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 15%, transparent); }
.opt.wrong { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 15%, transparent); }
.opt:disabled { opacity: 1; cursor: default; }
.explain { font-size: .95em; color: var(--text); background: var(--panel-2); border-radius: 6px; padding: 6px 8px; }
.explain-wait { font-size: .8em; color: var(--muted); }
.actionbar .b4 { border-color: var(--accent); color: var(--accent); }
.actionbar .suggest { box-shadow: 0 0 0 2px var(--bad); }

/* 통계 */
.stats { max-width: 1200px; margin: 0 auto; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 860px) { .grid2 { grid-template-columns: 1fr; } }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 150px; padding-top: 16px; }
.bcol { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.bfill { width: 100%; border-radius: 3px 3px 0 0; min-height: 1px; opacity: .85; }
.bv { font-size: .65em; color: var(--muted); height: 14px; }
.bl { font-size: .6em; color: var(--muted); white-space: nowrap; overflow: hidden; max-width: 100%; margin-top: 3px; }
.card .bar { margin-top: 6px; }

/* ── 3차 추가 ── */
.subject-sel { margin-left: 4px; font-weight: 600; max-width: 180px; }
.btnlike { display: inline-block; cursor: pointer; border: 1px solid var(--line); background: var(--panel); border-radius: 6px; padding: 6px 12px; }
.btnlike:hover { border-color: var(--muted); }
.units .u { gap: 4px; }
.units .caret { width: 14px; display: inline-block; text-align: center; color: var(--muted); cursor: pointer; flex: none; }
.units .uname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.units .ucount { font-size: .75em; color: var(--muted); }
.units ul ul { padding-left: 0; }
.uacts { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.uacts button { padding: 3px 8px; }
.formats { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.formats.first { flex-direction: column; align-items: stretch; background: var(--panel); border: 2px solid var(--accent); border-radius: 12px; padding: 12px; }
.seg { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; width: fit-content; }
.seg button { border: 0; border-right: 1px solid var(--line); border-radius: 0; background: var(--panel); padding: 6px 14px; display: flex; flex-direction: column; align-items: flex-start; }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.seg button.on .muted { color: inherit; opacity: .8; }
.formats.first .seg { width: auto; }
.formats.first .seg button { flex: 1; min-width: 120px; padding: 10px 14px; }
.subjects { list-style: none; padding: 0; margin: 0 0 10px; }
.subjects li { display: flex; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.hist { display: grid; grid-template-columns: 240px 1fr; gap: 16px; align-items: start; }
@media (max-width: 760px) { .hist { grid-template-columns: 1fr; } .daylist { max-height: 220px; overflow: auto; } }
.daylist { display: flex; flex-direction: column; gap: 2px; padding: 6px; max-height: 75vh; overflow: auto; }
.day { display: flex; flex-direction: column; padding: 8px; border-radius: 8px; text-decoration: none; color: var(--text); }
.day:hover { background: var(--panel-2); }
.day.sel { background: var(--mark-bg); }
.chips { margin: 8px 0; }
.chip { border-radius: 16px; padding: 3px 12px; font-size: .9em; }
.chip.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.hlist td { vertical-align: top; }
.hr { display: inline-block; min-width: 20px; text-align: center; border-radius: 4px; margin-right: 2px; font-weight: 700; }
.hr.r1 { color: var(--bad); } .hr.r2 { color: var(--mid); } .hr.r3 { color: var(--ok); } .hr.rs { color: var(--muted); }
.hr.prac { outline: 1px dashed var(--muted); }

/* ── 모바일(안드로이드 등) ── */
body { word-break: keep-all; overflow-wrap: anywhere; }
.brand, .navlink { white-space: nowrap; }
#mlist, .stats .panel, .grid-wrap, .preview { overflow-x: auto; }
@media (hover: none) {
  kbd, .kbd-hint { display: none; }            /* 터치 기기에서는 단축키 표시 숨김 */
  #btn-help { display: none; }
}
@media (max-width: 600px) {
  main { padding: 10px; }
  .topbar { padding: 6px 8px; gap: 6px; }
  .brand { font-size: .95rem; }
  .subject-sel { max-width: 110px; padding: 4px; }
  .topnav { gap: 0; }
  .navlink { padding: 6px 6px; font-size: .9rem; }
  .topnav button.ghost { padding: 6px 6px; }
  .today .row { gap: 10px; }
  .tstat { min-width: 64px; }
  .tstat b { font-size: 1.3rem; }
  .toolbar input[type=search] { min-width: 100%; }
  .board { padding: 10px; }
  .board table, .board.single table { font-size: 1.05rem; }
  .board th, .board td, .board.single td { padding: 8px; }
  .actionbar { gap: 6px; }
  .actionbar .info { flex-basis: 100%; }
  .actionbar button { flex: 1 1 auto; padding: 12px 8px; }
  .study-top a .small { display: none; }
  .mlist th, .mlist td { padding: 6px 4px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card .n { font-size: 1.4rem; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .hint { grid-column: 1; }
  .seg button { padding: 6px 10px; }
  .editor-head .title-in { min-width: 0; }
}
.hist > * { min-width: 0; }
.manage > *, .grid2 > * { min-width: 0; }
@media (max-width: 600px) {
  .brand { display: none; }                       /* 좁은 화면: 과목 선택이 제목 역할 */
  .subject-sel { max-width: 140px; }
  .hlist td.nowrap { white-space: normal; }
}
.board td.role-key { min-width: 3.6em; }

/* ── 메모장 · 선택 삭제 ── */
.memo { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; height: calc(100vh - 90px); height: calc(100dvh - 90px); }
.memo-tabs { display: flex; gap: 2px; overflow-x: auto; border-bottom: 1px solid var(--line); flex: none; }
.mtab { border: 1px solid var(--line); border-bottom: 0; border-radius: 8px 8px 0 0; background: var(--panel-2); padding: 8px 14px; white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; flex: none; }
.mtab.on { background: var(--panel); font-weight: 600; position: relative; top: 1px; }
.mtab.add { background: transparent; border-color: transparent; font-weight: 700; }
.memo-bar { display: flex; gap: 6px; align-items: center; padding: 8px 0; flex: none; flex-wrap: wrap; }
#m-body { flex: 1; width: 100%; resize: none; font-size: 1.05rem; line-height: 1.7; padding: 14px; border-radius: 0 0 10px 10px; tab-size: 4; min-height: 200px; }
tr.rsel td, .block.rsel { background: color-mix(in srgb, var(--bad) 8%, transparent); }
table.grid td.rowtool .rchk, .btool .rchk { margin: 2px auto; }
@media (max-width: 600px) { .memo { height: calc(100dvh - 70px); } }
@media (max-width: 600px) {
  #btn-theme, #btn-help { display: none; }      /* 좁은 화면: ⋯ 메뉴 안에 있음 */
  .navlink { padding: 6px 5px; }
}
/* 해설·메모 칸의 줄바꿈을 그대로 보여줌 */
.explain, .pv-explain { white-space: pre-wrap; }
.units .u.usel { background: color-mix(in srgb, var(--bad) 12%, transparent); }
.units .uchk { margin: 0 2px; }
label.radio { display: block; margin: 8px 0; }
