/* 마음의 편지: 디자인 캔버스의 토큰을 옮긴 공용 스타일.
   외부 글꼴을 불러오지 않는다(제3자 요청 = 방문 흔적). 설치된 한글 글꼴을 쓴다. */
:root {
  --bg: #F5F6F8;
  --surface: #FFFFFF;
  --line: #E2E5EA;
  --line-strong: #D5DAE1;
  --ink: #18212B;
  --ink-2: #2E3742;
  --muted: #4A5462;
  --subtle: #5B6573;
  --accent: #2B5C8A;
  --accent-ink: #1E4466;
  --accent-soft: #EEF3F8;
  --danger: #B3261E;
  --st0-fg: #1E4E7C; --st0-bg: #E3ECF6;
  --st1-fg: #7A4307; --st1-bg: #FFF1DC; --st1: #A65A0B;
  --st2-fg: #245437; --st2-bg: #E4EEE7; --st2: #2F6B45;
  --warn-bg: #FFF6E8; --warn-fg: #6B3B06;
  --nav: #18212B;
  --sans: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --serif: "Noto Serif KR", "Nanum Myeongjo", "AppleMyungjo", "Batang", serif;
  --radius: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
a:hover { color: var(--accent-ink); }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 공통 조각 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: none; color: var(--ink); white-space: nowrap; }
.btn:hover { background: #F7F8FA; color: var(--ink); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.btn-primary:hover { background: var(--accent-ink); color: #fff; }
.btn-ghost { border-color: transparent; background: none; }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 16px; font-weight: 700; border-radius: 12px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: none; border-radius: 8px; cursor: pointer; color: var(--muted); }
.icon-btn:hover { background: #F0F2F5; }
.icon-btn.danger { color: var(--danger); }
svg.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > .label { font-size: 17px; font-weight: 700; }
.field .help { font-size: 13px; color: var(--subtle); font-weight: 400; }
.req { color: var(--danger); margin-left: 2px; }
.input, .textarea, .select { width: 100%; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); font-size: 15px; }
.input, .select { height: 48px; padding: 0 14px; }
.textarea { padding: 14px; line-height: 1.7; resize: vertical; min-height: 120px; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(43, 92, 138, .15); }
.counter { align-self: flex-end; font-size: 12px; color: var(--subtle); }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-0 { color: var(--st0-fg); background: var(--st0-bg); }
.st-1 { color: var(--st1-fg); background: var(--st1-bg); }
.st-2 { color: var(--st2-fg); background: var(--st2-bg); }
.tag { font-size: 12px; color: var(--muted); background: #F0F2F5; border-radius: 6px; padding: 2px 8px; white-space: nowrap; }

.alert { padding: 12px 16px; border-radius: 10px; font-size: 14px; line-height: 1.6; }
.alert-error { background: #FDECEA; color: #8C1D18; }
.alert-warn { background: var(--warn-bg); color: var(--warn-fg); }
.alert-ok { background: var(--st2-bg); color: var(--st2-fg); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 14px; z-index: 50; box-shadow: 0 8px 24px rgba(0,0,0,.2); }

/* ---------- 작성자 화면 ---------- */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar-in { max-width: 1120px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-height: 44px; }
.brand:hover { color: var(--ink); }
.brand svg { width: 28px; height: 28px; stroke: var(--accent); stroke-width: 1.8; }
.brand b { font-size: 18px; }
.brand .org { font-size: 13px; color: var(--subtle); padding-left: 10px; border-left: 1px solid var(--line); }

.page { max-width: 760px; margin: 0 auto; padding: 56px 24px 96px; display: flex; flex-direction: column; gap: 28px; }
.page.narrow { max-width: 680px; }
.hero { display: flex; flex-direction: column; gap: 14px; }
.hero h1 { margin: 0; font-family: var(--serif); font-size: 34px; line-height: 1.4; font-weight: 700; letter-spacing: -.5px; white-space: pre-line; }
.hero p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--muted); white-space: pre-line; }

.trust { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.trust li { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.trust svg { width: 20px; height: 20px; stroke: var(--accent); margin-top: 1px; }
.trust b { display: block; font-size: 14px; }
.trust span { font-size: 13px; color: var(--subtle); }

form.letter { display: flex; flex-direction: column; gap: 20px; }
fieldset.card { margin: 0; min-width: 0; }
fieldset.card legend { float: left; width: 100%; padding: 0; margin-bottom: 14px; font-size: 17px; font-weight: 700; }
fieldset.card legend + * { clear: both; }

.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.mode { text-align: left; padding: 18px; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 12px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; }
.mode .t { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; }
.mode .radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #9AA3AF; flex: none; }
.mode .d { font-size: 13px; color: var(--muted); padding-left: 26px; }
.mode[aria-pressed="true"] { border: 2px solid var(--accent); background: var(--accent-soft); padding: 17px; }
.mode[aria-pressed="true"] .t { font-weight: 700; }
.mode[aria-pressed="true"] .radio { border: 5px solid var(--accent); background: #fff; }
.named { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 16px; }
.named label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.named .input { height: 44px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 14px; font-weight: 500; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }

.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }

.drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px; border: 1.5px dashed #C3CAD4; border-radius: 12px; background: #FAFBFC; cursor: pointer; text-align: center; }
.drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop svg { width: 28px; height: 28px; stroke: var(--subtle); stroke-width: 1.8; }
.drop b { font-size: 15px; font-weight: 500; }
.drop span { font-size: 13px; color: var(--subtle); }
.filelist { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.filelist li { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
.filelist li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filelist small { color: var(--subtle); }

.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); flex: none; }
.submit-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.submit-row small { font-size: 13px; color: var(--subtle); }
.preview-bar { position: sticky; top: 0; z-index: 10; background: var(--st1-bg); color: var(--st1-fg); text-align: center; padding: 10px; font-size: 14px; font-weight: 600; }

.done { max-width: 560px; margin: 0 auto; padding: 96px 24px; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.done .ok { width: 72px; height: 72px; border-radius: 50%; background: var(--st2-bg); display: flex; align-items: center; justify-content: center; }
.done .ok svg { width: 34px; height: 34px; stroke: var(--st2); stroke-width: 2.2; }
.done h1 { margin: 0; font-family: var(--serif); font-size: 30px; }
.done p { margin: 0; color: var(--muted); }
.receipt { width: 100%; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.receipt .no { font-size: 28px; font-weight: 700; letter-spacing: 2px; font-variant-numeric: tabular-nums; }
.receipt .alert { width: 100%; }

/* 조회 */
.lookup { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.lookup label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.timeline li { display: flex; flex-direction: column; gap: 6px; }
.timeline .rail { display: flex; align-items: center; }
.timeline .node { width: 24px; height: 24px; border-radius: 50%; background: #D5DAE1; display: flex; align-items: center; justify-content: center; flex: none; }
.timeline .node svg { width: 14px; height: 14px; stroke: #fff; stroke-width: 3; }
.timeline .bar { flex: 1; height: 2px; background: #D5DAE1; }
.timeline li.on .node, .timeline li.on .bar { background: var(--st2); }
.timeline b { font-size: 14px; }
.timeline small { font-size: 12px; color: var(--subtle); min-height: 18px; }
.thread { display: flex; flex-direction: column; gap: 12px; }
.msg { padding: 16px 18px; border-radius: 12px; background: #F7F8FA; }
.msg.admin { background: var(--accent-soft); }
.msg header { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--subtle); margin-bottom: 6px; }
.msg header b { color: var(--ink); }
.msg p { margin: 0; white-space: pre-wrap; word-break: break-word; line-height: 1.75; }

/* ---------- 관리자 ---------- */
.shell { min-height: 100vh; display: flex; flex-wrap: wrap; align-items: stretch; }
.side { flex: 1 1 220px; max-width: 100%; background: var(--nav); color: #E6EAF0; padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; }
.side .logo { display: flex; align-items: center; gap: 10px; padding: 4px 10px 20px; }
.side .logo svg { width: 24px; height: 24px; stroke: #9CC0E4; stroke-width: 1.8; }
.side .logo b { color: #fff; font-size: 16px; }
.side .logo small { font-size: 11px; color: #AEB8C5; border: 1px solid #3A4656; border-radius: 6px; padding: 1px 6px; }
.side a, .side button.nav { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 8px; color: #C9D1DC; text-decoration: none; font-size: 14px; border: 0; background: none; cursor: pointer; text-align: left; width: 100%; }
.side a:hover, .side button.nav:hover { background: #222D3A; color: #fff; }
.side a[aria-current="page"] { color: #fff; background: #2A3544; font-weight: 600; }
.side .count { margin-left: auto; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 1px 8px; }
.side .foot { margin-top: auto; padding-top: 14px; border-top: 1px solid #2E3A4A; }
.main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; }
.head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 16px 28px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.head h1 { margin: 0; font-size: 20px; font-weight: 700; }
.head .grow { margin-right: auto; display: flex; flex-direction: column; gap: 2px; }
.head .sub { font-size: 13px; color: var(--subtle); }
.body { padding: 24px 28px 40px; display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }

.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login form { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 16px; }
.login h1 { margin: 0; font-size: 22px; }

.search { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); min-width: 220px; }
.search input { border: 0; outline: none; flex: 1; min-width: 0; font-size: 14px; background: none; }
.tabs { padding: 20px 28px 0; display: flex; gap: 6px; flex-wrap: wrap; }
.tab { min-height: 40px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); font-size: 14px; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.tab .n { color: var(--subtle); margin-left: 4px; }
.tab[aria-selected="true"] .n { color: #C9D1DC; }

.list { flex: 1 1 340px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.row { width: 100%; text-align: left; border: 0; border-bottom: 1px solid #EEF0F3; background: var(--surface); padding: 14px 18px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; }
.row:hover { background: #FAFBFC; }
.row[aria-current="true"] { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.row .meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--subtle); }
.row .meta .no { font-weight: 600; font-variant-numeric: tabular-nums; }
.row .meta .d { margin-left: auto; }
.row .new { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.row .ttl { font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.empty { padding: 48px 20px; text-align: center; color: var(--subtle); font-size: 14px; }

.detail { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.detail .card { padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.detail h2 { margin: 0; font-size: 22px; }
.detail h3 { margin: 0; font-size: 15px; }
.kv { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.kv div { padding: 12px 14px; background: #F7F8FA; border-radius: 10px; }
.kv dt { font-size: 12px; color: var(--subtle); }
.kv dd { margin: 4px 0 0; font-size: 14px; font-weight: 500; word-break: break-word; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.step { min-height: 44px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--muted); font-size: 14px; cursor: pointer; }
.step[aria-pressed="true"] { border: 0; color: #fff; font-weight: 700; }
.step.s0[aria-pressed="true"] { background: var(--accent); }
.step.s1[aria-pressed="true"] { background: var(--st1); }
.step.s2[aria-pressed="true"] { background: var(--st2); }
.answer { display: flex; flex-direction: column; gap: 6px; }
.answer .q { font-size: 12px; font-weight: 600; color: var(--subtle); }
.answer .a { margin: 0; font-size: 15px; line-height: 1.8; white-space: pre-wrap; word-break: break-word; }
.answer .a.none { color: #9AA3AF; }
.file-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); font-size: 14px; }
.split { display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; }
.split > .card { flex: 1 1 260px; padding: 20px; gap: 12px; }
.split > .card.wide { flex: 2 1 360px; }
.mini { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; }
.mini .input, .mini .select { height: 42px; font-size: 14px; }
.mini .textarea { min-height: 84px; font-size: 14px; padding: 10px 12px; }
.mini small { font-weight: 400; color: var(--subtle); }
.actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.actions .hint { font-size: 12px; color: var(--subtle); margin-right: auto; }

/* 폼 편집기 */
.qs { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.aside { flex: 1 1 300px; max-width: 100%; display: flex; flex-direction: column; gap: 16px; }
.aside .card { padding: 20px; }
.aside h2 { margin: 0 0 8px; font-size: 15px; }
.fixed { padding: 14px 20px; background: #F0F2F5; border: 1px dashed #C9CFD8; border-radius: 14px; display: flex; align-items: center; gap: 12px; }
.fixed b { display: block; font-size: 15px; }
.fixed small { font-size: 12px; color: var(--subtle); }
.fixed svg { stroke: var(--subtle); }
.header-card { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.header-card .lbl { font-size: 12px; font-weight: 600; color: var(--subtle); }
.header-card .input { font-weight: 700; font-size: 17px; height: 46px; }
.header-card .textarea { min-height: 80px; font-size: 14px; }

.q { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.q-sum { width: 100%; text-align: left; background: none; border: 0; padding: 16px 20px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.q-sum .top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.q-sum .num { font-size: 13px; font-weight: 700; color: var(--subtle); font-variant-numeric: tabular-nums; }
.q-sum .ttl { font-size: 15px; font-weight: 600; }
.q-sum .must { font-size: 12px; font-weight: 600; color: var(--danger); }
.q-sum .tag { margin-left: auto; }
.q-sum .pv { font-size: 13px; color: var(--subtle); padding-left: 26px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q.open { border: 2px solid var(--accent); box-shadow: 0 6px 24px rgba(24, 33, 43, .08); }
.q-edit { padding: 20px 22px 18px; display: flex; flex-direction: column; gap: 14px; }
.q-edit .row2 { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.q-edit label.sm { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; color: var(--subtle); }
.q-edit label.sm small { font-weight: 400; }
.q-edit .grow { flex: 999 1 260px; }
.q-edit .typ { flex: 1 1 180px; }
.q-edit .input.title { font-size: 16px; font-weight: 600; background: #FAFBFC; height: 46px; }
.q-edit .input.help, .q-edit .select { height: 42px; font-size: 14px; }
.opts { display: flex; flex-direction: column; gap: 8px; }
.opt { display: flex; align-items: center; gap: 8px; }
.opt .mark { width: 16px; height: 16px; border: 2px solid #9AA3AF; border-radius: 50%; flex: none; }
.opt .mark.sq { border-radius: 4px; }
.opt .input { height: 40px; font-size: 14px; }
.link-btn { min-height: 40px; padding: 0 10px; border: 0; background: none; color: var(--accent); font-size: 14px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.q-foot { border-top: 1px solid #E8EBEF; padding: 6px 12px 6px 20px; display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.q-foot .sp { flex: 1; }
.switch { min-height: 44px; display: inline-flex; align-items: center; gap: 10px; border: 0; background: none; cursor: pointer; font-size: 14px; font-weight: 500; padding: 0 8px 0 0; }
.switch .track { width: 38px; height: 22px; border-radius: 999px; background: #C3CAD4; position: relative; flex: none; transition: background .15s; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; }
.switch[aria-checked="true"] .track { background: var(--accent); }
.switch[aria-checked="true"] .track::after { left: 19px; }
.add-q { min-height: 56px; border: 1.5px dashed #9CB3CB; border-radius: 14px; background: #F7FAFD; color: var(--accent); font-size: 15px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
.palette { padding: 18px; border: 1px solid #C9D6E3; border-radius: 14px; background: var(--surface); display: flex; flex-direction: column; gap: 12px; }
.palette .hd { display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 700; }
.palette .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.palette .grid button { min-height: 64px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #FAFBFC; cursor: pointer; text-align: left; display: flex; flex-direction: column; gap: 2px; }
.palette .grid button:hover { border-color: var(--accent); }
.palette .grid b { font-size: 14px; }
.palette .grid small { font-size: 12px; color: var(--subtle); }
.setting { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid #F0F2F5; }
.setting .txt { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.setting .txt b { font-size: 14px; font-weight: 500; }
.setting .txt small { font-size: 12px; color: var(--subtle); }
.setting .switch { padding: 0; }
.versions { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.versions li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; }
.note { padding: 14px 18px; background: var(--warn-bg); border-radius: 14px; font-size: 13px; color: var(--warn-fg); }

@media (max-width: 640px) {
  .page { padding-top: 32px; }
  .hero h1 { font-size: 27px; }
  .card { padding: 20px; }
  .head, .body, .tabs { padding-left: 16px; padding-right: 16px; }
}
