:root {
  color-scheme: light;
  --ink: #202124;
  --muted: #5f6368;
  --brand: #6f42c1;
  --surface: #ffffff;
  --page: #f7f4fb;
  --line: #ded7e8;
  --danger: #b3261e;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans TC", sans-serif;
  line-height: 1.7;
}
main {
  width: min(920px, calc(100% - 32px));
  margin: 32px auto;
  padding: clamp(24px, 5vw, 52px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 12px 36px rgba(52, 34, 82, .08);
}
h1, h2 { line-height: 1.3; }
h1 { margin-top: 0; font-size: clamp(30px, 5vw, 46px); }
h2 { margin-top: 2rem; font-size: 1.35rem; }
p, li { max-width: 78ch; }
.meta, .muted { color: var(--muted); }
.notice {
  padding: 16px 18px;
  border-left: 4px solid var(--brand);
  background: #f4effc;
  border-radius: 10px;
}
.danger { border-left-color: var(--danger); background: #fff2f0; }
a { color: #5b2ca0; }
label { display: block; margin: 14px 0 5px; font-weight: 650; }
input, button {
  width: 100%;
  min-height: 48px;
  border-radius: 10px;
  font: inherit;
}
input { border: 1px solid #948ba2; padding: 10px 12px; }
button {
  margin-top: 16px;
  border: 0;
  padding: 10px 16px;
  color: #fff;
  background: var(--brand);
  font-weight: 700;
  cursor: pointer;
}
button.danger-button { background: var(--danger); }
button:disabled { opacity: .55; cursor: wait; }
.tabs { display: flex; gap: 10px; margin: 24px 0; }
.tabs button { width: auto; margin: 0; color: var(--ink); background: #eee8f5; }
.tabs button[aria-selected="true"] { color: #fff; background: var(--brand); }
[hidden] { display: none !important; }
.result { min-height: 30px; margin-top: 14px; font-weight: 650; }
.success { color: #137333; }
.error { color: var(--danger); }
footer { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); }
