:root {
  color-scheme: dark;
  --bg: #16171a; --text: #e8e6e1; --accent: #c9ad78; --success: #86c7a3; --error: #e58c99;
  --popup-bg: #1f2024; --popup-inset: #191a1e; --popup-text: #e8e2d4; --popup-title: #f3ead6; --popup-muted: #a39e94;
  --popup-line: rgb(255 255 255 / 9%); --popup-hover: rgb(255 255 255 / 5%);
  --popup-gold-line: rgb(201 173 120 / 38%); --popup-gold-bg: rgb(201 173 120 / 7%);
  --font-ui: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", sans-serif;
  --motion: 120ms ease;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: var(--bg); color: var(--popup-text); font: 14px/1.6 var(--font-ui); -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: anywhere; }
.card { width: min(420px, 100%); padding: 28px 28px 24px; background: var(--popup-bg); border: 1px solid var(--popup-line); border-radius: 14px; box-shadow: 0 24px 64px rgb(0 0 0 / 42%), 0 4px 16px rgb(0 0 0 / 24%), inset 0 1px 0 rgb(255 255 255 / 3%); }
.brand { margin: 0 0 18px; color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
h1 { margin: 0 0 14px; color: var(--popup-title); font-size: 20px; font-weight: 600; line-height: 1.4; }
h2 { margin: 24px 0 8px; color: var(--popup-title); font-size: 14px; font-weight: 600; }
p { margin: 8px 0; text-wrap: pretty; }
strong { color: var(--popup-title); font-weight: 600; }
a { color: var(--accent); }
.note, .terms { color: var(--popup-muted); font-size: 12.5px; }
.terms { margin-top: 16px; }
.terms a { color: inherit; text-underline-offset: 2px; }
.buttons { display: grid; gap: 8px; margin: 16px 0; }
/* 삭제 확인 — 왼쪽 [취소] · 오른쪽 [계정 삭제] 한 줄(2026-11-12 사용자) */
.buttons.row { grid-template-columns: 1fr 1fr; }
.button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; margin: 0; padding: 8px 14px; border: 1px solid var(--popup-line); border-radius: 8px; background: rgb(255 255 255 / 4%); color: var(--popup-text); font: 500 14px/1.4 var(--font-ui); text-decoration: none; cursor: pointer; transition: background-color var(--motion), border-color var(--motion); }
.button:hover { border-color: rgb(255 255 255 / 16%); background: var(--popup-hover); }
.button:focus-visible, .dev input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.button.primary { border-color: transparent; background: var(--accent); color: #191710; font-weight: 600; }
.button.primary:hover { background: #d8bc88; }
.button.apple:not(.disabled) { border-color: transparent; background: #f3ead6; color: #16171a; font-weight: 600; }
.button.apple:not(.disabled):hover { background: #ffffff; }
.button.disabled { border-style: dashed; background: transparent; color: var(--popup-muted); cursor: not-allowed; }
.button.disabled:hover { border-color: var(--popup-line); }
.button small { padding: 1px 7px; border: 1px solid var(--popup-line); border-radius: 999px; font-size: 11px; font-weight: 500; }
.dev { display: grid; gap: 6px; margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--popup-line); }
.dev label { color: var(--popup-title); font-size: 13px; font-weight: 600; }
.dev .note { margin: 0 0 4px; }
.dev input { width: 100%; min-height: 38px; padding: 7px 11px; border: 1px solid rgb(255 255 255 / 12%); border-radius: 8px; background: var(--popup-inset); color: var(--text); font: 14px/1.5 var(--font-ui); transition: border-color var(--motion), box-shadow var(--motion); }
.dev input::placeholder { color: #6f6b64; }
.dev input:focus { border-color: rgb(201 173 120 / 55%); outline: none; box-shadow: 0 0 0 3px rgb(201 173 120 / 12%); }
.dev input:user-invalid { border-color: rgb(229 140 153 / 55%); }
.dev .button { margin-top: 4px; }
.box { margin: 0 0 20px; padding: 12px 14px; border: 1px solid var(--popup-gold-line); border-radius: 8px; background: var(--popup-gold-bg); font-size: 13px; }
.box p { margin: 0; }
.box p + p { margin-top: 4px; }
.box .label { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; }
.box .label.gold { color: var(--accent); }
.box.ok { border-color: rgb(134 199 163 / 38%); background: rgb(134 199 163 / 7%); }
.box.ok .label { color: var(--success); }
.box.error { border-color: rgb(229 140 153 / 38%); background: rgb(229 140 153 / 7%); }
.box.error .label { color: var(--error); }
.chip { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 999px; font-size: 11px; font-weight: 600; line-height: 18px; vertical-align: 1px; }
.chip.on { background: rgb(134 199 163 / 14%); color: var(--success); }
.chip.off { background: rgb(255 255 255 / 6%); color: var(--popup-muted); }
.list { margin: 0; padding: 0; list-style: none; border: 1px solid var(--popup-line); border-radius: 8px; background: var(--popup-inset); }
.list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; }
.list li + li { border-top: 1px solid var(--popup-line); }
.list .note { margin: 0; }
/* 계정 삭제 구역 — 빨간색은 오류 상자에만 쓴다. 위험은 문구(되돌릴 수 없습니다)로 · 단추는 기본 테두리 단추(2026-11-12 사용자) */
.section { margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--popup-line); }
.section h2 { margin: 0 0 4px; }
.section .buttons { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .button, .dev input { transition: none; } }
