/* =====================================================================
   환경설정(톱니바퀴 + 팝업)과 테마 전환 아이콘
   static/js/settings-modal.js, static/js/theme.js
   ===================================================================== */
.guest-row{position:relative}
.st-gear,.theme-toggle{position:relative;flex:none;width:36px;height:36px;display:grid;place-items:center;padding:0;border:1px solid var(--line);border-radius:10px;background:#fff;color:#55536c;cursor:pointer;transition:background .15s,color .15s}
.st-gear{margin-left:auto}
.st-gear svg,.theme-toggle svg{width:20px;height:20px}
.st-gear:hover,.st-gear:focus-visible,.theme-toggle:hover,.theme-toggle:focus-visible{background:var(--lavender);color:var(--purple);border-color:#d9d2ff}
.st-gear:hover svg{transform:rotate(45deg);transition:transform .3s}
.st-gear:focus-visible,.theme-toggle:focus-visible{outline:3px solid #a99bf3;outline-offset:2px}
.st-dot{position:absolute;top:-3px;right:-3px;width:10px;height:10px;border-radius:50%;background:#d92d3a;box-shadow:0 0 0 2px #fff}

/* 테마 아이콘: 라이트일 때 달(다크로 전환), 다크일 때 해(라이트로 전환) */
.theme-toggle .ic-sun{display:none}
html[data-theme=dark] .theme-toggle .ic-sun{display:block}
html[data-theme=dark] .theme-toggle .ic-moon{display:none}
.theme-toast{position:fixed;left:50%;bottom:26px;z-index:230;transform:translateX(-50%);max-width:min(520px,calc(100vw - 32px));background:#c9445b;color:#fff;border-radius:12px;padding:12px 16px;font-size:13px;line-height:1.5;box-shadow:0 14px 34px #25243a40}

.st-dialog{max-width:480px}
.st-section{padding:16px 0;border-top:1px solid var(--line)}
.st-section:first-of-type{border-top:0;padding-top:0}
.st-section h3,.st-theme legend{margin:0 0 10px;padding:0;font-size:15px;font-weight:700;letter-spacing:-.3px;color:var(--ink)}
.st-theme{margin:0;padding:0;border:0;min-width:0}
.st-theme-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.st-theme-options label{position:relative;display:flex;align-items:center;justify-content:center;min-height:44px;padding:0 10px;border:1px solid #dedbea;border-radius:12px;background:#fff;color:#4c4a63;font-size:14px;font-weight:700;cursor:pointer;transition:.15s}
.st-theme-options input{position:absolute;opacity:0;width:1px;height:1px;margin:0}
.st-theme-options label:hover{border-color:#a99bf3;color:#5544c4}
.st-theme-options label:has(input:checked){background:#efecff;border-color:#7b61f0;color:#4a35c9;box-shadow:inset 0 0 0 1px #7b61f0}
.st-theme-options label:has(input:focus-visible){outline:3px solid #a99bf3;outline-offset:2px}
.st-desc{margin:8px 0 0;font-size:13px;line-height:1.6;color:var(--muted)}
.st-section .sm-message{margin-top:10px}
.st-sync-text{margin:0 0 12px;font-size:13px;line-height:1.6;color:#4c4a63}
.st-sync-text b{color:var(--purple-dark)}
.st-actions{display:flex;flex-wrap:wrap;gap:8px}
.st-actions .button{padding:10px 14px}
.st-actions .button:disabled{opacity:.55;cursor:wait}
.st-status{margin:10px 0 0;font-size:13px;line-height:1.6;color:#4c4a63;min-height:1em}
.st-status.is-error{color:#b9283f}
@media(max-width:400px){.st-theme-options{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.st-gear,.st-gear svg,.theme-toggle,.st-theme-options label{transition:none}}
