/* 파토금지 — 약속 편집부 스타일 */
:root {
  --paper: #FFF7E7;
  --paper-2: #FBEBCB;
  --card: #FFFDF7;
  --ink: #20211D;
  --ink-2: #55564E;
  --line: #20211D;
  --orange: #FF593B;
  --orange-soft: #FFD9CF;
  --lime: #DDF473;
  --on-accent: #20211D;
  --muted-cell: #EFE5CF;
  --shadow: 4px 4px 0 var(--ink);
  --shadow-sm: 2px 2px 0 var(--ink);
  --r: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
html[data-theme="dark"] {
  color-scheme: dark;
    --paper: #17170F;
    --paper-2: #22221A;
    --card: #1F2019;
    --ink: #F4ECD8;
    --ink-2: #BDB6A3;
    --line: #F4ECD8;
    --orange: #FF6B4F;
    --orange-soft: #4A2219;
    --muted-cell: #2A2A22;
    --shadow: 4px 4px 0 #000;
    --shadow-sm: 2px 2px 0 #000;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink);
  font: 16px/1.55 var(--font); letter-spacing: -0.01em;
  word-break: keep-all; overflow-wrap: anywhere;
}
main { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px 120px; outline: none; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 50; }
.skip:focus { top: 8px; }
[hidden] { display: none !important; }

/* ── 마스트헤드 ── */
.masthead { border-bottom: 2px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 20; }
.masthead-in { max-width: 1080px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; min-height: 60px; }
.brand { display: inline-flex; text-decoration: none; padding: 4px 0; }
.wordmark {
  display: block; width: 104px; height: 25px; background: var(--ink);
  -webkit-mask: url(/brand/wordmark.svg) center / contain no-repeat; mask: url(/brand/wordmark.svg) center / contain no-repeat;
}
.issue { margin: 0; flex: 1; display: flex; justify-content: center; gap: 14px; font: 700 11px/1 var(--mono); letter-spacing: .14em; color: var(--ink-2); }
.share-slot { display: flex; gap: 8px; margin-left: auto; }
@media (max-width: 560px) { .issue { display: none; } }
@media (max-width: 400px) { .masthead-in { gap: 8px; padding-inline: 12px; } .wordmark { width: 88px; height: 22px; } .share-slot { gap: 6px; } .share-slot .btn-sm { padding-inline: 10px; } .share-slot .icon { display: none; } }

/* ── 버튼 ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 18px; border: 2px solid var(--line); border-radius: 12px;
  background: var(--card); color: var(--ink); font-weight: 800; text-decoration: none;
  box-shadow: var(--shadow-sm); transition: transform .08s, box-shadow .08s; white-space: nowrap;
}
.btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--orange); color: var(--on-accent); border-color: #20211D; }
.btn-lime { background: var(--lime); color: var(--on-accent); border-color: #20211D; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ghost { background: transparent; box-shadow: none; border-color: transparent; text-decoration: underline; text-underline-offset: 3px; padding-inline: 8px; }
.btn-ghost:active { transform: none; }
.btn-sm { min-height: 40px; padding: 6px 12px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-lg { min-height: 56px; font-size: 18px; }
.icon { width: 18px; height: 18px; flex: none; }
@media (max-width: 420px) { .share-slot .btn-label-long { display: none; } }

/* ── 홈 ── */
.hero { display: grid; grid-template-columns: 1fr; gap: 20px; padding: 24px 0 8px; }
.kicker { font: 700 12px/1 var(--mono); letter-spacing: .14em; margin: 0 0 12px; display: flex; gap: 10px; align-items: center; }
.kicker::before { content: ""; width: 14px; height: 14px; background: var(--ink); display: inline-block; }
.display { font-size: clamp(34px, 9.4vw, 64px); line-height: 1.08; font-weight: 900; letter-spacing: -0.045em; margin: 0; }
.display em { font-style: normal; background: linear-gradient(transparent 58%, var(--lime) 58% 92%, transparent 92%); color: inherit; }
html[data-theme="dark"] .display em { background: none; color: var(--lime); }
.lede { font-size: 18px; color: var(--ink-2); margin: 14px 0 0; }
.hero-top { display: flex; gap: 12px; align-items: flex-start; }
.hero-top > div { flex: 1; min-width: 0; }
.fig-mini { width: 108px; flex: none; margin-top: 4px; }
.fig-mini img { width: 100%; height: auto; display: block; }
.figure { display: none; position: relative; background: var(--orange); border: 2px solid #20211D; padding: 22px 22px 40px; margin: 0; }
.figure img { width: 100%; height: auto; display: block; }
.figure figcaption { position: absolute; left: 22px; bottom: 14px; font: 700 12px/1 var(--mono); letter-spacing: .1em; color: #20211D; }
.figure::before, .figure::after { content: ""; position: absolute; width: 22px; height: 22px; border: 2px solid #20211D; }
.figure::before { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.figure::after { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }
@media (min-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; padding-top: 44px; align-items: start; }
  .fig-mini { display: none; }
  .figure { display: block; position: sticky; top: 88px; }
}

.card {
  background: var(--card); border: 2px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); padding: 20px;
}
.card + .card { margin-top: 20px; }
.form-card { margin-top: 22px; }
.form-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--line); padding-bottom: 10px; margin-bottom: 16px; }
.form-head h2 { margin: 0; font-size: 18px; font-weight: 900; }
.form-head span { font: 700 11px/1 var(--mono); letter-spacing: .12em; color: var(--ink-2); }

.field { margin-bottom: 18px; }
.field > label, .label { display: block; font-weight: 800; margin-bottom: 6px; }
.hint { font-size: 14px; color: var(--ink-2); margin: 6px 0 0; }
.opt { font-weight: 500; color: var(--ink-2); font-size: 14px; }
.input {
  width: 100%; min-height: 50px; padding: 10px 14px; border: 2px solid var(--line); border-radius: 12px;
  background: var(--paper); font-size: 17px;
}
.input:focus { outline: 3px solid var(--orange); outline-offset: 1px; }
.input[aria-invalid="true"] { border-color: var(--orange); background: var(--orange-soft); }
input[type="date"].input { appearance: none; -webkit-appearance: none; }
.row { display: flex; gap: 10px; align-items: stretch; }
.row > .grow { flex: 1; min-width: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 380px) { .grid2 { grid-template-columns: 1fr; } }
.counter { float: right; font: 600 12px/1.8 var(--mono); color: var(--ink-2); }
.err { color: var(--orange); font-weight: 700; font-size: 14px; margin: 6px 0 0; }
.err { color: #B3260C; }
html[data-theme="dark"] .err { color: var(--orange); }

.period-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 14px; background: var(--paper-2); border: 2px dashed var(--line); border-radius: 12px; font-weight: 700; }
.tag { display: inline-block; font: 700 12px/1 var(--mono); letter-spacing: .06em; padding: 5px 7px; border: 1.5px solid var(--line); border-radius: 6px; background: var(--card); }

.switch, .field > .switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; min-height: 48px; cursor: pointer; font-weight: 700; }
.switch input { appearance: none; -webkit-appearance: none; width: 52px; height: 30px; border: 2px solid var(--line); border-radius: 30px; background: var(--paper-2); position: relative; flex: none; cursor: pointer; margin: 0; transition: background .15s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); transition: transform .15s; }
.switch input:checked { background: var(--lime); }
.switch input:checked::after { transform: translateX(22px); background: #20211D; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; cursor: pointer; padding: 6px 0; }
.check input { width: 22px; height: 22px; accent-color: var(--orange); margin: 1px 0 0; flex: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 12px; border: 2px solid var(--line); border-radius: 40px; background: var(--lime); color: #20211D; font-weight: 700; }
.chip button { width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; color: #20211D; font-size: 18px; line-height: 1; }
.chip button:hover { background: rgba(0,0,0,.08); }

.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 0; border-top: 2px solid var(--line); }
.steps li { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.steps b { font: 900 28px/1 var(--mono); }
.steps h3 { margin: 0 0 2px; font-size: 17px; }
.steps p { margin: 0; color: var(--ink-2); font-size: 15px; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(3, 1fr); } .steps li { grid-template-columns: 1fr; border-right: 1px solid var(--line); padding: 16px; } .steps li:last-child { border-right: 0; } }

.errsum { border: 2px solid var(--orange); background: var(--orange-soft); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; }
.errsum h3 { margin: 0 0 4px; font-size: 15px; }
.errsum ul { margin: 0; padding-left: 18px; }
.errsum a { font-weight: 700; }

/* ── 방 ── */
.room-head { padding: 20px 0 6px; }
.stepper { list-style: none; display: flex; gap: 0; padding: 0; margin: 0 0 14px; border: 2px solid var(--line); border-radius: 40px; overflow: hidden; width: fit-content; max-width: 100%; }
.stepper li { padding: 6px 12px; font-size: 13px; font-weight: 800; border-right: 2px solid var(--line); white-space: nowrap; color: var(--ink-2); }
.stepper li:last-child { border-right: 0; }
.stepper li[aria-current="step"] { background: var(--ink); color: var(--paper); }
.stepper li.done { color: var(--ink); text-decoration: line-through; text-decoration-thickness: 2px; }
.room-title { font-size: clamp(26px, 7vw, 44px); line-height: 1.15; font-weight: 900; letter-spacing: -0.04em; margin: 0 0 10px; }
.period-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 12px; border: 2px solid var(--line); border-radius: 40px; background: var(--card); font-weight: 700; font-size: 15px; }
.period-btn[disabled] { cursor: default; }
.period-btn .pen { font-size: 13px; color: var(--ink-2); }

.say { display: flex; align-items: center; gap: 10px; margin: 18px 0 10px; min-height: 48px; }
.say h2 { margin: 0; font-size: clamp(22px, 5.6vw, 30px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.2; }
.mascot { width: 44px; height: 44px; flex: none; pointer-events: none; display: inline-block; }
.mascot svg { width: 100%; height: 100%; display: block; overflow: visible; }
.mascot-lg { width: 64px; height: 64px; }

.layout { display: grid; gap: 20px; }
@media (min-width: 945px) { .layout { grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr); align-items: start; } .side { position: sticky; top: 84px; } }

.who { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.who .field { margin: 0; flex: 1; min-width: 180px; }
.whoami { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border: 2px solid var(--line); border-radius: 12px; background: var(--paper-2); font-weight: 700; }
.whoami .lock { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.quick .btn { padding-inline: 6px; font-size: 14px; min-height: 44px; white-space: normal; line-height: 1.2; }

.cal-head { display: flex; align-items: center; gap: 8px; margin: 8px 0 8px; min-height: 48px; }
.cal-head h3 { margin: 0; font-size: 17px; font-weight: 900; }
.cal-head .cnt { margin-left: auto; font: 700 13px/1 var(--mono); padding: 6px 8px; border: 1.5px solid var(--line); border-radius: 6px; }
.cal { display: grid; gap: 6px; }
.cal.c5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cal.c7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal .wd { text-align: center; font: 700 12px/1 var(--mono); color: var(--ink-2); padding: 4px 0; }
.cal .wd.sun { color: var(--orange); }
.cal .month { grid-column: 1 / -1; font-weight: 900; font-size: 14px; padding: 8px 2px 2px; border-bottom: 1.5px solid var(--line); margin-bottom: 2px; }
.cal .void { min-height: 62px; }
.day {
  position: relative; min-height: 62px; padding: 6px 2px 6px; border: 2px solid var(--line); border-radius: 10px;
  background: var(--card); display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px; text-align: center;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; scroll-margin: 90px 0 110px;
}
.day .n { font-size: 19px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.day .s { font-size: 11px; font-weight: 700; line-height: 1.2; color: var(--ink-2); min-height: 13px; white-space: nowrap; }
.day.today .n::after { content: "오늘"; display: block; font-size: 9px; font-weight: 800; color: var(--orange); }
.day[aria-pressed="true"].mode-unav { background: var(--orange); color: #20211D; box-shadow: inset 0 0 0 2px #20211D; }
.day[aria-pressed="true"].mode-unav .s { color: #20211D; }
.day[aria-pressed="true"].mode-pref { background: var(--lime); color: #20211D; box-shadow: inset 0 0 0 2px #20211D; }
.day[aria-pressed="true"].mode-pref .s { color: #20211D; }
.day.blocked { background: repeating-linear-gradient(-45deg, var(--muted-cell) 0 6px, transparent 6px 12px); color: var(--ink-2); border-style: dashed; cursor: not-allowed; }
.day.blocked .n { text-decoration: line-through; }
.day.heat-0 { }
.day .bar { position: absolute; left: 4px; right: 4px; bottom: 3px; height: 4px; border-radius: 2px; background: var(--muted-cell); overflow: hidden; }
.day .bar i { display: block; height: 100%; background: var(--ink); }
.day.final { background: var(--ink); color: var(--paper); }
.day.final .s { color: var(--paper); }
.day.final::before { content: ""; position: absolute; top: -9px; right: -6px; width: 22px; height: 22px; background: url(/favicon.svg) center / contain no-repeat; }
.day.readonly { cursor: default; }
@media (hover: hover) { .day:not(.blocked):not(.readonly):hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); } }
@media (max-width: 380px) { .cal.c7 { gap: 4px; } .cal.c7 .day { min-height: 56px; border-radius: 8px; } .cal.c7 .day .n { font-size: 16px; } .cal.c7 .day .s { font-size: 10px; } }

.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--ink-2); margin: 12px 0 0; padding: 0; list-style: none; }
.legend i { display: inline-block; width: 14px; height: 14px; border: 1.5px solid var(--line); border-radius: 4px; vertical-align: -2px; margin-right: 5px; }

.savebar {
  position: sticky; bottom: 0; z-index: 10; margin: 16px -20px -20px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--card); border-top: 2px solid var(--line); border-radius: 0 0 var(--r) var(--r);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.savebar .sum { flex: 1; min-width: 120px; font-weight: 700; font-size: 15px; }
.savebar .btn { min-width: 132px; }
.status { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 48px; margin-top: 10px; font-weight: 700; }
.status:empty { display: none; }
.status.ok { color: inherit; }
.status.bad { color: var(--orange); }
.status .spin { width: 18px; height: 18px; border: 3px solid var(--line); border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .status .spin { animation: none; border-right-color: var(--line); opacity: .5; } }

.sec-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--line); }
.sec-title h3 { margin: 0; font-size: 17px; font-weight: 900; }
.sec-title small { font: 700 11px/1 var(--mono); letter-spacing: .1em; color: var(--ink-2); }

.roster { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.person {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 12px; border: 2px solid var(--line); border-radius: 40px;
  background: var(--card); font-weight: 700; text-align: left;
}
.person small { font-weight: 600; font-size: 12px; padding: 2px 7px; border-radius: 20px; background: var(--paper-2); border: 1px solid var(--line); }
.person.st-absent { border-style: dashed; color: var(--ink-2); }
.person.st-pending small { background: transparent; border-style: dashed; }
.person.voted small { background: var(--lime); color: #20211D; }
.person[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.person[aria-pressed="true"] small { color: #20211D; }
.person.me::after { content: "나"; font-size: 11px; font-weight: 900; background: var(--orange); color: #20211D; border-radius: 10px; padding: 1px 6px; }
.roster-sum { font-size: 14px; color: var(--ink-2); margin: 10px 0 0; }

.cands { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.cand { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: stretch; padding: 12px; border: 2px solid var(--line); border-radius: 12px; background: var(--card); }
.cand.top { background: var(--lime); color: #20211D; }
.cand .rk { display: flex; flex-direction: column; align-items: center; justify-content: center; border-right: 1.5px solid currentColor; padding-right: 10px; }
.cand .rk b { font: 900 22px/1 var(--font); white-space: nowrap; letter-spacing: -0.04em; }
.cand .rk span { font-size: 12px; font-weight: 700; }
.cand .info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cand .ln1 { display: flex; gap: 8px; flex-wrap: wrap; font-weight: 800; }
.cand .who-no { font-size: 13px; opacity: .85; }
.cand .act { margin-top: 6px; }
.meter { display: flex; gap: 3px; margin: 2px 0; }
.meter i { flex: 1; height: 8px; border: 1.5px solid currentColor; border-radius: 3px; max-width: 22px; }
.meter i.on { background: currentColor; }
.notice { padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; background: var(--paper-2); font-size: 15px; margin: 0 0 12px; }
.notice.warn { background: var(--orange-soft); border-color: var(--orange); }
.notice strong { display: block; }
.small { font-size: 14px; color: var(--ink-2); }

.stage-act { margin-top: 18px; display: grid; gap: 8px; }

.final {
  border: 2px solid #20211D; background: var(--orange); color: #20211D; border-radius: var(--r); box-shadow: var(--shadow);
  padding: 22px 20px; position: relative; overflow: hidden;
}
.final .kicker { color: #20211D; }
.final .kicker::before { background: #20211D; }
.final h2 { margin: 0 0 14px; font-size: clamp(24px, 6.5vw, 34px); font-weight: 900; letter-spacing: -0.04em; }
.final .big { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.final .date { font-size: clamp(40px, 13vw, 72px); font-weight: 900; line-height: 1; letter-spacing: -0.05em; }
.final .dow { font-size: clamp(20px, 5vw, 28px); font-weight: 900; }
.final .time { margin-top: 10px; font-size: 18px; font-weight: 800; }
.final .meta { margin-top: 12px; padding-top: 12px; border-top: 2px solid #20211D; font-weight: 700; display: flex; gap: 12px; flex-wrap: wrap; }

.mailbox { margin-top: 16px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 30px; border: 2px solid var(--line); font-weight: 800; font-size: 14px; }
.pill.accepted { background: var(--lime); color: #20211D; }
.pill.failed { background: var(--orange); color: #20211D; }

/* ── 다이얼로그 ── */
dialog {
  border: 2px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); background: var(--card); color: var(--ink);
  padding: 0; width: min(460px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
}
dialog::backdrop { background: rgba(20, 20, 15, .55); }
.dlg { padding: 20px; }
.dlg h2 { margin: 0 0 10px; font-size: 20px; font-weight: 900; }
.dlg p { margin: 0 0 12px; }
.dlg .acts { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.dlg .acts .btn { flex: 1; min-width: 120px; }
.summary { margin: 0 0 14px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; background: var(--paper-2); display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }
.summary dt { font-weight: 600; color: var(--ink-2); }
.summary dd { margin: 0; font-weight: 800; }
.copybox { display: flex; gap: 8px; }
.copybox input { flex: 1; min-width: 0; font: 14px var(--mono); }

/* ── 토스트 ── */
.toast {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translate(-50%, 140%);
  background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 12px; font-weight: 700; z-index: 60;
  max-width: calc(100vw - 32px); box-shadow: var(--shadow-sm); transition: transform .2s ease, visibility .2s; pointer-events: none; visibility: hidden;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

.foot { border-top: 2px solid var(--line); }
.foot-in { max-width: 1080px; margin: 0 auto; padding: 18px 16px 28px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); }
.foot p { margin: 0; }
.boot { height: 60vh; }
.noscript { padding: 40px 0; font-weight: 700; }
.empty { text-align: center; padding: 40px 10px; }
.empty img { width: 160px; height: auto; }

/* 다크모드 토글 */
.theme-btn { width: 40px; height: 40px; min-height: 40px; padding: 0; border-radius: 50%; flex: none; }
.theme-btn svg { width: 20px; height: 20px; }
.theme-btn .moon { display: block; } .theme-btn .sun { display: none; }
html[data-theme="dark"] .theme-btn .moon { display: none; }
html[data-theme="dark"] .theme-btn .sun { display: block; }
