:root { 
  color-scheme: light;
  --bg: #f3f7f8;
  --bg-2: #e7f3f5;
  --surface: #ffffff;
  --ink: #102028;
  --muted: #3c5260;
  --line: #c9d7de;
  --accent: #0a6270;
  --accent-ink: #ffffff;
  --accent-soft: #e5f6f8;
  --link: #0a5562;
  --success-bg: #e7f6ee;
  --success-ink: #0d5c38;
  --success-line: #8fc9ad;
  --warning-bg: #fff6e4;
  --warning-ink: #6b4100;
  --warning-line: #e2c48a;
  --error-bg: #fdecec;
  --error-ink: #8b1d1d;
  --error-line: #e4b0b0;
  --shadow: 0 14px 36px rgba(16, 32, 40, 0.08);
  --focus: #0a6270;
  --input: #ffffff;
 }
:root[data-theme="light"] { 
  color-scheme: light;
  --bg: #f3f7f8;
  --bg-2: #e7f3f5;
  --surface: #ffffff;
  --ink: #102028;
  --muted: #3c5260;
  --line: #c9d7de;
  --accent: #0a6270;
  --accent-ink: #ffffff;
  --accent-soft: #e5f6f8;
  --link: #0a5562;
  --success-bg: #e7f6ee;
  --success-ink: #0d5c38;
  --success-line: #8fc9ad;
  --warning-bg: #fff6e4;
  --warning-ink: #6b4100;
  --warning-line: #e2c48a;
  --error-bg: #fdecec;
  --error-ink: #8b1d1d;
  --error-line: #e4b0b0;
  --shadow: 0 14px 36px rgba(16, 32, 40, 0.08);
  --focus: #0a6270;
  --input: #ffffff;
 }
:root[data-theme="dark"] { 
  color-scheme: dark;
  --bg: #0c1418;
  --bg-2: #102228;
  --surface: #162229;
  --ink: #e8f4f6;
  --muted: #b7cdd4;
  --line: #314852;
  --accent: #7af0f8;
  --accent-ink: #042226;
  --accent-soft: #12343c;
  --link: #9af6fc;
  --success-bg: #123228;
  --success-ink: #b7f0d3;
  --success-line: #1f6b4e;
  --warning-bg: #3a2c12;
  --warning-ink: #ffe1a8;
  --warning-line: #8a6420;
  --error-bg: #3a1818;
  --error-ink: #ffd0d0;
  --error-line: #8d3434;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.38);
  --focus: #7af0f8;
  --input: #0f1c22;
 }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) { 
  color-scheme: dark;
  --bg: #0c1418;
  --bg-2: #102228;
  --surface: #162229;
  --ink: #e8f4f6;
  --muted: #b7cdd4;
  --line: #314852;
  --accent: #7af0f8;
  --accent-ink: #042226;
  --accent-soft: #12343c;
  --link: #9af6fc;
  --success-bg: #123228;
  --success-ink: #b7f0d3;
  --success-line: #1f6b4e;
  --warning-bg: #3a2c12;
  --warning-ink: #ffe1a8;
  --warning-line: #8a6420;
  --error-bg: #3a1818;
  --error-ink: #ffd0d0;
  --error-line: #8d3434;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.38);
  --focus: #7af0f8;
  --input: #0f1c22;
 }
}
:root { --sans: "Segoe UI", "Avenir Next", "Helvetica Neue", sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at top right, var(--bg-2), transparent 36%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  min-height: 100vh;
}
a { color: var(--link); }
a:hover { text-decoration-thickness: 2px; }
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: white;
  padding: 8px 12px;
}
.skip:focus { top: 12px; }
.wrap { width: min(880px, calc(100% - 32px)); margin: 0 auto; }
header.site {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 22px 0 8px;
}
.brand { text-decoration: none; color: inherit; }
.brand small { display: block; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; color: var(--link); font-weight: 700; }
.brand strong { font-family: var(--sans); font-size: 28px; font-weight: 720; letter-spacing: -0.03em; }
.header-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.theme-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
}
.theme-switch button {
  background: transparent;
  color: var(--muted);
  border: 0;
  border-radius: 0;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 650;
  width: auto;
}
.theme-switch button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
}
.who { color: var(--muted); font-size: 14px; text-align: right; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.who form { display: inline; margin: 0; }
main { padding: 12px 0 64px; }
h1, h2, h3 { font-family: var(--sans); font-weight: 720; letter-spacing: -0.03em; line-height: 1.12; }
h1 { font-size: clamp(36px, 6vw, 58px); margin: 8px 0 12px; }
h2 { font-size: 28px; margin: 0 0 8px; }
p { margin: 0 0 12px; }
.lede { font-size: 20px; max-width: 38rem; }
.muted { color: var(--muted); }
.banner, .error, .notice {
  border: 1px solid var(--warning-line);
  padding: 12px 14px;
  margin: 0 0 16px;
  background: var(--warning-bg);
  color: var(--warning-ink);
  border-radius: 12px;
}
.error { border-color: var(--error-line); background: var(--error-bg); color: var(--error-ink); }
.notice { border-color: var(--success-line); background: var(--success-bg); color: var(--success-ink); }
.ticket, .panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 6px solid var(--accent);
  box-shadow: var(--shadow);
  border-radius: 16px;
  padding: 18px 18px 18px 16px;
  margin: 0 0 16px;
}
.stub {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { display: block; font-weight: 600; margin-bottom: 6px; }
.field { margin: 0 0 14px; }
input[type="text"], input[type="url"], input[type="number"], input[type="datetime-local"], textarea, select {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}
textarea { min-height: 220px; resize: vertical; }
button, .button {
  appearance: none;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 700;
  padding: 11px 16px;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}
button.secondary, .button.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
button.danger { background: var(--error-ink); color: var(--error-bg); }
button:hover, .button:hover { filter: brightness(1.06); }
.actions { display: grid; gap: 10px; }
.action {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: var(--bg);
}
.action .hint { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; }
.check input { margin-top: 4px; width: auto; accent-color: var(--accent); }
.free {
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0; }
.step { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 14px; padding: 12px; }
.step b { display: block; font-size: 22px; margin-bottom: 4px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--surface); border-radius: 12px; overflow: hidden; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
code, .hash { font-family: "Source Code Pro", ui-monospace, monospace; font-size: 13px; word-break: break-all; }
footer { color: var(--muted); font-size: 14px; padding-bottom: 28px; }
.rules h2 { font-size: 22px; margin-top: 18px; }
@media (max-width: 720px) {
  .grid, .steps { grid-template-columns: 1fr; }
  header.site { align-items: stretch; flex-direction: column; }
  .header-tools, .who { text-align: left; width: 100%; justify-content: flex-start; }
  button, .button, .row button, .row .button { width: 100%; text-align: center; }
  .theme-switch { width: 100%; }
  .theme-switch button { flex: 1; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }