:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #1f2330;
  --muted: #5d6475;
  --line: #e2e5ee;
  --accent: #6b4dff;
  --accent-text: #ffffff;
  --ok-bg: #e8f7ee;
  --ok-text: #17633a;
  --warn-bg: #fff4e5;
  --warn-text: #8a4b00;
  --danger: #c62f3b;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161d;
    --card: #1d2029;
    --text: #e8eaf1;
    --muted: #a3a9b8;
    --line: #2e3240;
    --accent: #9a85ff;
    --accent-text: #14161d;
    --ok-bg: #173324;
    --ok-text: #8fe0b0;
    --warn-bg: #3a2a12;
    --warn-text: #ffcf8a;
    --danger: #ff7a84;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.7 system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Yu Gothic UI", sans-serif; }
.top { display: flex; align-items: baseline; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--card); }
.brand { font-weight: 700; color: var(--text); text-decoration: none; }
.sub { color: var(--muted); font-size: 14px; }
main { max-width: 680px; margin: 0 auto; padding: 16px; }
h1 { font-size: 22px; margin: 16px 0; }
h2 { font-size: 17px; margin: 0 0 10px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 14px 0; }
label { display: block; margin: 0 0 12px; font-weight: 600; }
label.check { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; }
input[type=email], input[type=text] { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; font-size: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); }
button, .button { display: inline-block; padding: 10px 16px; border: 0; border-radius: 8px; background: var(--accent); color: var(--accent-text); font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; }
button.secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
button.danger { background: var(--danger); color: #fff; }
button.link { background: none; color: var(--muted); text-decoration: underline; padding: 0; }
.right { text-align: right; }
dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 14px; }
dt { color: var(--muted); }
dd { margin: 0; }
.key { font: 600 18px/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .04em; word-break: break-all; margin: 0 0 10px; }
.note { padding: 10px 14px; border-radius: 8px; }
.note.ok, .note.info { background: var(--ok-bg); color: var(--ok-text); }
.note.warn { background: var(--warn-bg); color: var(--warn-text); }
.small { font-size: 14px; color: var(--muted); }
.devices { list-style: none; padding: 0; margin: 0 0 8px; }
.devices li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.devices .small { display: block; }
details { margin-top: 14px; }
summary { cursor: pointer; color: var(--muted); }
.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 24px 16px; }
a { color: var(--accent); }
@media (max-width: 480px) {
  dl { grid-template-columns: 1fr; gap: 2px; }
  dd { margin-bottom: 8px; }
  .devices li { flex-direction: column; align-items: flex-start; }
  .key { font-size: 15px; letter-spacing: 0; }
}
