:root {
  --bg: #f4f3ef;
  --surface: #ffffff;
  --text: #1c1c1e;
  --muted: #6b6b70;
  --line: #e2e0da;
  --accent: #a87b12;
  --accent-soft: #fbf3dc;
  --warn: #8a3b12;
  --warn-soft: #fbe9df;
  --chrome: #141416;
  --chrome-text: #f2f2f2;
  --btn: #26272b;
  --btn-active: #3a3b40;

  /* Camera LCD: always dark, like the real screen. */
  --cam-bg: #050505;
  --cam-text: #f0f0f0;
  --cam-dim: #5d5d5d;
  --cam-hl: #e8c547;
  --cam-hl-text: #111;
  --cam-line: #2a2a2a;
  --cam-panel: #121212;

  /* What-a-setting-affects tags */
  --t-jpeg: #c98f0b;
  --t-both: #2f7fd8;
  --t-raw: #8a5cd6;
  --t-movie: #d0453f;
  --t-camera: #8a8a8f;
  --gl-line: rgba(168, 123, 18, .55);
  --tier-easy: #2e9e6a;
  --tier-intermediate: #2f7fd8;
  --tier-advanced: #8a5cd6;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --cam-font: "DIN Condensed", "Arial Narrow", "Roboto Condensed", -apple-system, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f0f11;
    --surface: #18181b;
    --text: #ececee;
    --muted: #9a9aa2;
    --line: #2b2b30;
    --accent: #e8c547;
    --accent-soft: #2a2414;
    --warn: #f0a37a;
    --warn-soft: #2c1a12;
    --gl-line: rgba(232, 197, 71, .5);
  }
}
:root[data-theme="dark"] {
  --bg: #0f0f11; --surface: #18181b; --text: #ececee; --muted: #9a9aa2; --line: #2b2b30;
  --accent: #e8c547; --accent-soft: #2a2414; --warn: #f0a37a; --warn-soft: #2c1a12; --gl-line: rgba(232, 197, 71, .5);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  max-width: 560px;
  margin: 0 auto;
  overflow: hidden;
}
button { font: inherit; color: inherit; cursor: pointer; }

/* ---------- Top bar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(env(safe-area-inset-top) + 8px) 16px 8px;
  background: var(--chrome); color: var(--chrome-text);
}
.brand { display: flex; align-items: baseline; gap: 8px; }
.brand-name { font-weight: 700; letter-spacing: .01em; }
.model-chip {
  font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 99px;
  background: #2c2d31; color: var(--cam-hl);
}
.icon-btn { background: none; border: 0; padding: 8px; margin-right: -8px; color: inherit; border-radius: 8px; }
.icon-btn:active { background: #2c2d31; }

/* ---------- Camera screen ---------- */
.screen-wrap { background: var(--chrome); padding: 4px 16px 10px; }
.cam {
  position: relative;
  aspect-ratio: 3 / 2;
  width: 100%;
  background: var(--cam-bg);
  color: var(--cam-text);
  border: 6px solid #1f2023;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px #000, 0 0 0 1px #333;
  display: flex;
  overflow: hidden;
  font-family: var(--cam-font);
  font-size: clamp(11px, 3.4vw, 15px);
  letter-spacing: .02em;
  user-select: none;
}
.cam-tabs {
  width: 15%; min-width: 40px;
  display: flex; flex-direction: column;
  border-right: 1px solid var(--cam-line);
  background: #0b0b0b;
}
.cam-tab {
  flex: 1; border: 0; background: none; color: var(--cam-dim);
  font-family: var(--cam-font); font-size: .68em; font-weight: 700; line-height: 1;
  padding: 0 2px; border-bottom: 1px solid #161616;
}
.cam-tab.on { color: var(--cam-text); background: #1e1e1e; box-shadow: inset 3px 0 0 var(--cam-hl); }
.cam-tab.focus { background: var(--cam-hl); color: var(--cam-hl-text); box-shadow: none; }
.cam-tab.planned:not(.on) { opacity: .55; }

.cam-main { position: relative; flex: 1; display: flex; flex-direction: column; min-width: 0; }
.cam-title {
  height: 13%; display: flex; align-items: center;
  padding: 0 10px; font-weight: 700; font-size: .95em;
  border-bottom: 1px solid var(--cam-line); white-space: nowrap; overflow: hidden;
}
.cam-list { list-style: none; margin: 0; padding: 0 14px 0 0; flex: 1; display: flex; flex-direction: column; }
.cam-row {
  flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 0 8px 0 10px; border-bottom: 1px solid #141414; min-height: 0; cursor: pointer;
}
.cam-row.empty { cursor: default; }
.cam-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cam-value { white-space: nowrap; color: #bdbdbd; font-size: .9em; }
.cam-row.off .cam-label, .cam-row.off .cam-value { color: var(--cam-dim); }
.cam-row.sel { background: var(--cam-hl); color: var(--cam-hl-text); }
.cam-row.sel .cam-value, .cam-row.sel.off .cam-label, .cam-row.sel.off .cam-value { color: #3a3000; }
.cam-row.sel.off { background: #8a7a3a; }
.cam-scroll { position: absolute; right: 4px; top: 16%; bottom: 13%; width: 3px; background: #222; border-radius: 2px; }
.cam-thumb { position: absolute; left: 0; right: 0; background: #9a9a9a; border-radius: 2px; }
.cam-foot {
  height: 11%; display: flex; align-items: center; justify-content: space-between;
  padding: 0 10px; font-size: .72em; color: #9a9a9a; border-top: 1px solid var(--cam-line);
}
.cam-planned {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: var(--cam-dim); text-align: center; padding: 12px;
}
.cam-planned small { font-size: .8em; }

/* Sub-menu panel (entered item) */
.cam-edit {
  position: absolute; inset: 0; background: var(--cam-panel);
  display: flex; flex-direction: column; animation: slideIn .14s ease-out;
}
@keyframes slideIn { from { transform: translateX(12%); opacity: 0; } to { transform: none; opacity: 1; } }
.edit-title { color: var(--cam-hl); }
.opt-cols { flex: 1; display: flex; min-height: 0; }
.opt-col { position: relative; flex: 1; display: flex; flex-direction: column; min-width: 0; border-right: 1px solid var(--cam-line); }
.opt-col:last-child { border-right: 0; }
.opt-head {
  text-align: center; font-size: .72em; padding: 3px 0; color: var(--cam-dim);
  border-bottom: 1px solid var(--cam-line); cursor: pointer;
}
.opt-col.active .opt-head { color: var(--cam-hl); }
.opt-list { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; flex-direction: column; }
.opt {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between;
  padding: 0 10px; cursor: pointer; white-space: nowrap; overflow: hidden;
}
.n2 .opt, .n3 .opt, .n4 .opt { justify-content: center; padding: 0 4px; }
.opt.sel { background: #4a4a4a; }
.opt-col.active .opt.sel { background: var(--cam-hl); color: var(--cam-hl-text); }
.opt.dim { color: #8a8a8a; }
.tick { font-style: normal; font-size: .6em; margin-left: 6px; color: var(--cam-hl); }
.opt.sel .tick { color: inherit; }
.more { position: absolute; right: 4px; font-size: .6em; color: #888; }
.more.up { top: 2px; }
.more.down { bottom: 2px; }

/* ---------- Controls ---------- */
.controls {
  display: grid; grid-template-columns: repeat(4, 1fr) 1.6fr 1.3fr; gap: 6px;
  padding: 0 16px 10px; background: var(--chrome);
}
.controls button {
  height: 40px; border: 0; border-radius: 9px; background: var(--btn); color: var(--chrome-text);
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
}
.controls button:active { background: var(--btn-active); transform: scale(.97); }
.controls .wide { font-size: 12px; }

/* ---------- Help panel ---------- */
.help {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 16px 16px calc(env(safe-area-inset-bottom) + 24px);
  line-height: 1.5; font-size: 15px;
}
.help h2 { margin: 2px 0 6px; font-size: 21px; letter-spacing: .01em; }
.help h3 { margin: 0 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.help p { margin: 0 0 10px; }
.crumb { font-size: 12px; color: var(--muted); letter-spacing: .04em; margin-bottom: 2px !important; }
.current { color: var(--muted); font-size: 14px; }
.current strong { color: var(--text); }
.lead { font-size: 16.5px; font-weight: 500; }
.banner { background: var(--warn-soft); color: var(--warn); padding: 8px 12px; border-radius: 10px; font-size: 14px; }
.note { color: var(--muted); font-size: 14px; border-left: 3px solid var(--line); padding-left: 10px; }
.block { margin: 16px 0; }
.block ul { margin: 0; padding-left: 20px; }
.block li { margin-bottom: 5px; }
.block.start p { background: var(--accent-soft); padding: 8px 12px; border-radius: 10px; font-weight: 600; }
.option-card {
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: 12px; padding: 12px 14px; margin: 10px 0 14px;
}
.option-card h3 { color: var(--text); font-size: 16px; text-transform: none; letter-spacing: 0; margin-bottom: 4px; }
.option-card p { margin-bottom: 6px; }
.eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: 2px !important; font-weight: 700; }
.hint { font-size: 12px; color: var(--muted); margin: 0 !important; }
.help-foot { margin-top: 28px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.help-foot a { color: var(--accent); }
.text-btn { background: none; border: 0; color: var(--accent); font-weight: 600; padding: 6px 0; }

/* ---------- Search sheet ---------- */
.sheet {
  position: fixed; inset: 0; z-index: 10; background: var(--bg);
  display: flex; flex-direction: column; max-width: 560px; margin: 0 auto;
}
.sheet[hidden] { display: none; }
.sheet-head { display: flex; gap: 10px; align-items: center; padding: calc(env(safe-area-inset-top) + 10px) 16px 10px; border-bottom: 1px solid var(--line); }
.sheet-head input {
  flex: 1; font: inherit; font-size: 16px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
}
.results { list-style: none; margin: 0; padding: 0 0 40px; overflow-y: auto; flex: 1; }
.results li { border-bottom: 1px solid var(--line); }
.results button {
  width: 100%; text-align: left; background: none; border: 0; padding: 12px 16px;
  display: flex; flex-direction: column; gap: 2px;
}
.results button:active { background: var(--surface); }
.results span { font-size: 12.5px; color: var(--muted); }
.results .empty { padding: 20px 16px; color: var(--muted); border: 0; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 20px); transform: translateX(-50%);
  max-width: calc(100% - 32px); background: #222; color: #fff; padding: 10px 14px; border-radius: 12px;
  font-size: 14px; box-shadow: 0 6px 24px rgba(0,0,0,.3); z-index: 20;
}
.toast[hidden] { display: none; }

@media (min-width: 600px) {
  body { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
}

/* ---------- Milestone 2 additions ---------- */
.top-actions { display: flex; gap: 2px; margin-right: -8px; }
.top-actions .icon-btn { margin: 0; }

.modes { display: flex; gap: 6px; margin: 0 0 8px; }
.modes button {
  border: 0; border-radius: 99px; padding: 4px 12px; font-size: 12px; font-weight: 700; letter-spacing: .04em;
  background: #26272b; color: #a9a9ae;
}
.modes button.on { background: var(--cam-hl); color: var(--cam-hl-text); }

.cam-parent { color: var(--cam-dim); font-weight: 400; margin-right: 2px; }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 6px; vertical-align: middle; flex: none; }
.cam-label .dot { width: 5px; height: 5px; margin-right: 5px; transform: translateY(-1px); }
.dot-jpeg { background: var(--t-jpeg); }
.dot-both { background: var(--t-both); }
.dot-raw { background: var(--t-raw); }
.dot-movie { background: var(--t-movie); }
.dot-camera { background: var(--t-camera); }
.cam-row.sel .dot { box-shadow: 0 0 0 1px rgba(0,0,0,.45); }

/* Glossary links: subtle dotted underline, same text color. */
.gl {
  all: unset; cursor: pointer; color: inherit;
  text-decoration: underline dotted var(--gl-line); text-decoration-thickness: 1.5px; text-underline-offset: 3px;
}
.gl:hover, .gl:focus-visible { text-decoration-style: solid; color: var(--accent); }

.meta-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 2px 0 10px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface);
  border-radius: 99px; padding: 3px 10px 3px 8px; font-size: 12px; font-weight: 600; color: var(--text);
}
.tag i { width: 8px; height: 8px; border-radius: 50%; display: block; }
.tag-jpeg i { background: var(--t-jpeg); }
.tag-both i { background: var(--t-both); }
.tag-raw i { background: var(--t-raw); }
.tag-movie i { background: var(--t-movie); }
.tag-camera i { background: var(--t-camera); }
.mymenu-btn {
  border: 1px dashed var(--line); background: none; border-radius: 99px; padding: 3px 10px;
  font-size: 12px; font-weight: 600; color: var(--muted);
}
.mymenu-btn.on { border-style: solid; color: var(--accent); border-color: var(--accent); }

/* Three-level explanations */
.tier { border-left: 3px solid var(--line); margin: 10px 0; padding: 0 0 0 12px; }
.tier summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); padding: 4px 0;
}
.tier summary::-webkit-details-marker { display: none; }
.tier summary::after { content: '＋'; margin-left: auto; font-weight: 400; color: var(--muted); }
.tier[open] summary::after { content: '−'; }
.tier-body { padding-top: 2px; }
.tier-body p:last-child { margin-bottom: 4px; }
.tier-easy { border-color: var(--tier-easy); }
.tier-intermediate { border-color: var(--tier-intermediate); }
.tier-advanced { border-color: var(--tier-advanced); }
.tier-easy summary { color: var(--tier-easy); }
.tier-intermediate summary { color: var(--tier-intermediate); }
.tier-advanced summary { color: var(--tier-advanced); }
.bars { display: inline-flex; gap: 2px; align-items: flex-end; height: 11px; }
.bars i { width: 3px; background: currentColor; opacity: .25; border-radius: 1px; }
.bars i:nth-child(1) { height: 5px; } .bars i:nth-child(2) { height: 8px; } .bars i:nth-child(3) { height: 11px; }
.bars.b1 i:nth-child(-n+1), .bars.b2 i:nth-child(-n+2), .bars.b3 i { opacity: 1; }

/* Tables */
.tbl-wrap { margin: 16px 0; }
.tbl-scroll { overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
.tbl-wrap table { border-collapse: collapse; width: 100%; font-size: 13.5px; line-height: 1.4; }
.tbl-wrap th, .tbl-wrap td { text-align: left; vertical-align: top; padding: 7px 10px 7px 0; border-bottom: 1px solid var(--line); }
.tbl-wrap thead th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom-width: 2px; white-space: nowrap; }
.tbl-wrap tbody th { font-weight: 700; white-space: nowrap; }
.tbl-note { font-size: 12.5px; color: var(--muted); margin-top: 6px !important; }

/* Visuals: full-bleed strip, side by side */
.vis-strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 16px -16px; padding: 0 16px; scrollbar-width: none; }
.vis-strip::-webkit-scrollbar { display: none; }
.vis-strip .vis { flex: 0 0 100%; scroll-snap-align: center; }
.vis-strip.multi .vis { flex-basis: 86%; }
.vis { margin: 0; }
.vis-frame { position: relative; overflow: hidden; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.vis-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vis figcaption { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.4; }
.vis figcaption em { font-style: normal; opacity: .7; }
.vis-expand {
  position: absolute; right: 8px; top: 8px; width: 30px; height: 30px; border-radius: 8px; border: 0;
  background: rgba(0,0,0,.45); color: #fff; font-size: 15px; z-index: 3;
}
.ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 16px; text-align: center; font-size: 12.5px; line-height: 1.35; color: var(--muted);
  background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(127,127,127,.07) 10px 20px);
}
.ph.tone-a { background-color: rgba(47,127,216,.08); }
.ph.tone-b { background-color: rgba(201,143,11,.10); }
.cmp { position: absolute; inset: 0; touch-action: pan-y; cursor: ew-resize; user-select: none; }
.cmp-layer { position: absolute; inset: 0; background: var(--surface); }
.lightbox .cmp-layer { background: #111; }
.cmp-layer img { width: 100%; height: 100%; object-fit: cover; }
.cmp-top { clip-path: inset(0 0 0 var(--pos)); }
.cmp .ph { padding: 12px 18%; }
.cmp-layer:not(.cmp-top) .ph { padding-right: 52%; }
.cmp-top .ph { padding-left: 52%; }
.cmp-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 6px rgba(0,0,0,.5); z-index: 2; }
.cmp-handle span {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #fff; color: #222;
  font-size: 9px; letter-spacing: -1px; padding: 6px 7px; border-radius: 99px; box-shadow: 0 1px 6px rgba(0,0,0,.4);
}
.cmp-label {
  position: absolute; bottom: 8px; z-index: 2; font-size: 11px; font-weight: 700; letter-spacing: .04em;
  background: rgba(0,0,0,.55); color: #fff; padding: 2px 8px; border-radius: 99px;
}
.cmp-label.l { left: 8px; } .cmp-label.r { right: 8px; }

.lightbox { position: fixed; inset: 0; z-index: 40; background: #000; color: #fff; display: flex; flex-direction: column; }
.lightbox[hidden] { display: none; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: calc(env(safe-area-inset-top) + 10px) 16px 10px; font-size: 14px; }
.lb-top .text-btn { color: #fff; }
.lb-stage { flex: 1; display: flex; align-items: center; padding: 0 0 12px; touch-action: pan-y; }
.lb-stage .vis { width: 100%; }
.lb-stage .vis-frame { border-radius: 0; border: 0; background: #111; max-height: 72vh; }
.lb-stage figcaption { color: #bbb; padding: 0 16px; font-size: 14px; }
.lb-stage .ph { color: #999; }
.lb-nav { display: flex; justify-content: space-between; padding: 0 16px calc(env(safe-area-inset-bottom) + 16px); }
.lb-nav button { width: 52px; height: 44px; border-radius: 12px; border: 0; background: #222; color: #fff; font-size: 26px; }
.lb-nav button:disabled { opacity: .3; }

/* Term popover (bottom sheet) */
.pop { position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,.35); display: flex; align-items: flex-end; justify-content: center; }
.pop[hidden] { display: none; }
.pop-card {
  width: 100%; max-width: 560px; max-height: 78dvh; overflow-y: auto; background: var(--bg); color: var(--text);
  border-radius: 18px 18px 0 0; padding: 14px 16px calc(env(safe-area-inset-bottom) + 20px); line-height: 1.5; font-size: 15px;
  box-shadow: 0 -8px 30px rgba(0,0,0,.25); animation: popUp .18s ease-out;
}
@keyframes popUp { from { transform: translateY(30px); opacity: .6; } to { transform: none; opacity: 1; } }
.pop-card h2 { margin: 4px 0 6px; font-size: 21px; }
.pop-card p { margin: 0 0 10px; }
.pop-head { display: flex; justify-content: space-between; align-items: center; }
.cat { font-style: normal; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); }
.cat-general { background: rgba(46,158,106,.12); color: var(--tier-easy); }

.related { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 14px 0 8px; }
.related > span { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-right: 4px; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 4px 10px; font-size: 13px; color: var(--text); }
.contents { columns: 2; column-gap: 16px; font-size: 13px; color: var(--muted); padding-left: 16px !important; }

/* Sheets: glossary + settings */
.sheet-title { flex: 1; margin: 0; font-size: 18px; }
.sheet-tools { padding: 10px 16px; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--line); }
.sheet-tools input { font: inherit; font-size: 16px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.seg { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg button { flex: 1; border: 0; background: none; padding: 7px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.seg button.on { background: var(--bg); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.glossary { list-style: none; margin: 0; padding: 0 0 40px; overflow-y: auto; flex: 1; }
.glossary .letter { padding: 14px 16px 4px; font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: .08em; }
.glossary .term { border-bottom: 1px solid var(--line); }
.term-head { width: 100%; text-align: left; background: none; border: 0; padding: 10px 16px; display: flex; flex-direction: column; gap: 2px; }
.term-head span { font-size: 13px; color: var(--muted); }
.term.open .term-head span { display: none; }
.term-body { padding: 0 16px 14px; font-size: 15px; line-height: 1.5; }
.term-body p { margin: 0 0 10px; }
.glossary .empty { padding: 20px 16px; color: var(--muted); }

.settings { overflow-y: auto; flex: 1; padding: 8px 16px 40px; }
.set-group { margin: 16px 0 22px; }
.set-group h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 6px; }
.set-hint { font-size: 13px; color: var(--muted); margin: 0 0 10px; line-height: 1.45; }
.radio-card { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; background: var(--surface); cursor: pointer; }
.radio-card.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.radio-card input { margin-top: 4px; accent-color: var(--accent); }
.radio-card span { display: flex; flex-direction: column; }
.radio-card small { color: var(--muted); font-size: 12.5px; }
.switch-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; }
.switch-row input { width: 20px; height: 20px; accent-color: var(--accent); }
.legend { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.text-btn.danger { color: var(--warn); display: block; }
.results .cat { margin-right: 4px; }
