:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  color: #edf2fc;
  background: #0c1525;
  font-synthesis: none;
  --muted: #a9b6cd;
  --line: #293952;
  --card: #142138;
  --blue: #8db9ff;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; line-height: 1.65; }
.shell { max-width: 720px; margin: 0 auto; padding: 42px 20px calc(28px + env(safe-area-inset-bottom)); }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.eyebrow { color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: .2em; margin: 0 0 6px; }
h1 { font-size: 29px; letter-spacing: -.05em; margin: 0; line-height: 1.35; }
h2 { font-size: 16px; margin: 0; font-weight: 650; }
h3 { font-size: 14px; margin: 0; font-weight: 650; }
p { margin: 12px 0; }
.subtitle { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 25px; }
.dashboard { display: grid; gap: 16px; }
.card-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.badge { display: inline-block; flex-shrink: 0; font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 7px; line-height: 1.6; }
.neutral { background: #26354b; color: #c6d1e3; }
.positive { background: #203d48; color: #9de8d2; }
.caution { background: #413827; color: #f1d197; }
.elapsed { font-size: clamp(41px, 11vw, 64px); line-height: 1.2; letter-spacing: -.055em; font-weight: 600; font-variant-numeric: tabular-nums; margin: 28px 0 8px; overflow-wrap: anywhere; }
.parking-detail { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.metadata { border-top: 1px solid var(--line); padding-top: 16px; margin: 0; font-size: 13px; }
.metadata > div { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin: 6px 0; }
dt { color: var(--muted); flex-shrink: 0; }
dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.hint { font-size: 12px; color: var(--muted); line-height: 1.7; }
.feature-notes { font-size: 13px; color: var(--muted); padding-left: 19px; margin-bottom: 0; }
.feature-notes li + li { margin-top: 5px; }
#afterblow-reason { font-size: 14px; }
.notice { margin: 16px 0; padding: 16px 19px; border: 1px solid #64502f; background: #2b271f; border-radius: 12px; font-size: 13px; color: #f1d197; }
.dashboard .notice { margin: 0; }
.notice h2 { font-size: 13px; }
.notice ul { padding-left: 19px; margin: 8px 0 0; }
.actions { display: flex; gap: 10px; }
button { min-height: 44px; padding: 10px 18px; border: 0; border-radius: 10px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; color: #0d203d; background: #9cc1ff; }
button:hover { background: #b2cfff; }
button:disabled { opacity: .55; cursor: wait; }
button.secondary { background: #26354b; color: #dae4f4; }
button.secondary:hover { background: #30435f; }
button:focus-visible, input:focus-visible { outline: 3px solid #b6d3ff; outline-offset: 3px; }
.center { text-align: center; margin: 0; }
.auth-card > p { font-size: 14px; color: var(--muted); }
.auth-card + .auth-card { margin-top: 16px; }
.auth-card label { display: block; font-size: 13px; }
input[type="password"] { background: #0c172b; border: 1px solid #435776; color: #edf2fc; border-radius: 8px; padding: 12px; width: 100%; min-height: 44px; margin: 7px 0 12px; font-size: 16px; }
.auth-card .checkbox-label { display: flex; align-items: center; gap: 8px; min-height: 30px; }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: #9cc1ff; }
.auth-card button { margin-top: 6px; width: 100%; }
.automation-setting { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 20px 0 8px; }
.automation-setting .hint { margin: 4px 0 0; }
.switch { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; min-width: 88px; justify-content: center; background: #344158; color: #e0e8f7; border: 1px solid #516078; }
.switch:hover { background: #445571; }
.switch[aria-checked="true"] { background: #9cc1ff; color: #0d203d; border-color: #9cc1ff; }
.switch-knob { height: 16px; width: 16px; border-radius: 50%; background: currentColor; opacity: .8; }
.switch[aria-checked="true"] .switch-knob { order: 2; }
.switch:disabled { cursor: not-allowed; }
.afterblow-metadata { margin-top: 18px; }
.control-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.control-message { font-size: 13px; border-left: 3px solid #9cc1ff; padding: 4px 0 4px 12px; color: #c3d9ff; }
.control-message.error { border-color: #f1d197; color: #f1d197; }
.actions { flex-wrap: wrap; }
footer { margin: 26px 0 0; font-size: 11px; color: var(--muted); text-align: center; }
@media (max-width: 380px) {
  .shell { padding-left: 14px; padding-right: 14px; }
  .card { padding: 19px; }
  .page-header { flex-direction: column; }
}
@media (prefers-reduced-motion: no-preference) {
  button { transition: background-color .15s; }
}
