:root {
  --bg: #fffdf6; --fg: #17151f; --muted: #5e5a6b; --line: #e6e1d3;
  --accent: #ff3d2e; --accent-fg: #fff; --warn-bg: #fff2c7; --card: #fff;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #15131b; --fg: #f4f1ea; --muted: #a9a4b6; --line: #2f2b3a; --warn-bg: #3a3215; --card: #1e1b26; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Malgun Gothic", sans-serif;
  word-break: keep-all;
}
main { max-width: 520px; margin: 0 auto; padding: 48px 16px 32px; }
h1 { font-size: clamp(30px, 8vw, 40px); line-height: 1.25; margin: 0 0 16px; letter-spacing: -0.02em; }
.lead { font-size: 18px; margin: 0 0 28px; }
.sub, .small { color: var(--muted); font-size: 14px; }
.small { font-size: 13px; }
button { font: inherit; cursor: pointer; width: 100%; border-radius: 14px; padding: 16px; margin: 0 0 10px; }
.primary { background: var(--accent); color: var(--accent-fg); border: 0; font-weight: 700; font-size: 18px; }
.primary:disabled { opacity: .45; cursor: not-allowed; }
.secondary { background: transparent; color: var(--fg); border: 1.5px solid var(--fg); font-weight: 600; }
.link { background: none; border: 0; color: var(--muted); text-decoration: underline; padding: 8px; font-size: 14px; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.steps { display: flex; gap: 8px; padding: 0; list-style: none; margin: 28px 0; flex-wrap: wrap; }
.steps li { flex: 1 1 0; min-width: 90px; text-align: center; padding: 10px 6px; border: 1px dashed var(--line); border-radius: 10px; font-size: 14px; }
.steps.small { display: block; list-style: decimal; padding-left: 20px; }
.steps.small li { border: 0; text-align: left; padding: 2px 0; }
details { border-top: 1px solid var(--line); padding: 12px 0; margin-bottom: 8px; }
summary { cursor: pointer; font-weight: 600; font-size: 15px; }
details ul { padding-left: 18px; }
.note { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.note.warn { background: var(--warn-bg); border-color: transparent; }
.status { font-size: 20px; font-weight: 700; margin: 16px 0 8px; }
.spinner { width: 36px; height: 36px; border: 4px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; margin-top: 40px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
.channel { display: flex; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin: 20px 0; }
.channel img { width: 44px; height: 44px; border-radius: 50%; flex: none; }
.channel b { display: block; overflow-wrap: anywhere; }
.channel button { width: auto; margin: 0; padding: 4px 0; }
footer { margin-top: 48px; border-top: 1px solid var(--line); padding-top: 16px; }
a { color: inherit; }
