/* 설정 page (designed by Fable 5.2, 2026-11-14; views/settings.mjs, public/settings.js): one sticker card per group,
   stacked on a phone (소리, 화면, 알림, 언어, 계정) and in two columns from 900px. Rows are at least 56px tall. */
.settings { max-width: 1040px; margin: 0 auto; padding: 8px 0 32px; }
.set-top h1 { margin: 12px 0 4px; font-size: 1.7rem; font-weight: 900; letter-spacing: -.02em; }
.set-note { margin: 0 0 4px; font-size: .88rem; }
.set-live { min-height: 1.4em; margin: 2px 0 8px; color: var(--muted); font-size: .85rem; font-weight: 700; }
.set-cols { display: flex; flex-direction: column; gap: 18px; }
.set-col { display: contents; }
.set-sound { order: 1; } .set-screen { order: 2; } .set-alerts { order: 3; } .set-lang { order: 4; } .set-account { order: 5; }
@media (min-width: 900px) {
  .set-cols { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 22px; }
  .set-col { display: grid; gap: 22px; }
}

.set-card { border: var(--bw) solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 3px 3px 0 var(--shadow); overflow: hidden; }
.set-h { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 14px 8px; border-bottom: 2px solid var(--line); background: var(--surface-2); font-size: 1rem; font-weight: 900; }
.set-gico { width: 28px; height: 28px; flex: none; }

.set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; margin: 0; padding: 10px 14px; border-top: 2px dashed color-mix(in srgb, var(--line) 22%, transparent); color: var(--text); text-decoration: none; scroll-margin-top: 120px; }
.set-h + .set-row, .set-h + .set-subs > .set-row:first-child { border-top: 0; }
form.set-row[data-key] { cursor: pointer; }
.set-text { display: grid; gap: 2px; min-width: 0; }
.set-label { font-weight: 800; }
.set-hint { color: var(--muted); font-size: .8rem; line-height: 1.35; }
.set-hint a { font-weight: 800; }
.set-row.is-off { cursor: default; }
.set-row.is-off .set-label { color: var(--muted); }
.switch[disabled] { opacity: .45; cursor: not-allowed; }

/* the sounds under 전체 소리: indented on a rail, dimmed while it is off (still changeable) */
.set-subs { margin: 0 0 0 14px; border-left: 3px solid var(--surface-2); }
.set-sub { padding-left: 12px; }
.set-subs.is-dim .set-sub .set-text, .set-subs.is-dim .set-sub .switch { opacity: .45; }

/* segmented choice (테마, 움직임, 데이터, 언어) */
.set-choice { flex-wrap: wrap; }
.seg { display: inline-flex; flex: none; padding: 2px; border: 2px solid var(--line); border-radius: 999px; background: var(--surface-2); }
.seg-btn { display: inline-grid; place-items: center; min-width: 52px; min-height: 36px; padding: 0 12px; border: 0; border-radius: 999px; background: none; color: var(--text); font: inherit; font-size: .84rem; font-weight: 800; text-decoration: none; cursor: pointer; }
.seg-btn.on { background: var(--mustard); color: var(--on-color); box-shadow: inset 0 0 0 2px var(--line); }
.seg-btn:focus-visible, .set-link:focus-visible, .set-link-btn:focus-visible { outline: 3px dashed var(--orange); outline-offset: 2px; }
@media (max-width: 420px) { .set-choice .seg { margin-left: auto; } }

/* link rows (알림, 계정) */
.set-link:hover { background: var(--surface-2); }
.set-chev { flex: none; color: var(--muted); font-size: 1.4rem; font-weight: 900; line-height: 1; }
.set-logout { padding: 0; }
.set-link-btn { flex: 1; min-height: 56px; padding: 10px 14px; border: 0; background: none; color: var(--text); font: inherit; font-weight: 800; text-align: left; cursor: pointer; }
.set-link-btn:hover { background: var(--surface-2); }
.set-danger .set-label { color: var(--danger); }
