:root {
  --purple: #7c3aed;
  --gold: #facc15;
  --cyan: #55f7ff;
  --pink: #ff44ca;
  --text: #f8f2ff;
  --muted: #cfc4e8;
  --line: rgba(255, 255, 255, .16);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: #050208; color: var(--text); }
body {
  font-family: ui-sans-serif, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
}
a { color: var(--cyan); }
.page { width: min(760px, calc(100% - 28px)); margin: 0 auto; padding: 28px 0 64px; }
.top { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 22px; }
.brand { color: var(--text); font-weight: 800; letter-spacing: .08em; text-decoration: none; }
.card {
  background: rgba(18, 10, 28, .88);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  margin-top: 16px;
}
h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.05; margin: 0 0 8px; }
h2 { font-size: 20px; margin: 0 0 12px; }
p, li { color: var(--muted); line-height: 1.5; }
label { display: block; font-size: 14px; margin: 14px 0 6px; }
input, select, textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #100816;
  color: var(--text);
  padding: 12px 13px;
  font: inherit;
  font-size: 16px;
}
textarea { min-height: 140px; resize: vertical; }
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 16px;
  padding: 12px 16px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--cyan), var(--pink) 55%, var(--gold));
  color: #140814;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}
button.quiet, a.quiet {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; color: var(--muted); }
.check input { width: auto; margin-top: 3px; }
.notice { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(85, 247, 255, .08); }
.notice.error { background: rgba(255, 68, 100, .14); }
.hint { font-size: 14px; margin: 8px 0 0; }
.row, .actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.actions button { margin-top: 8px; }
.label-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.label-row label { margin-bottom: 0; }
button.texty {
  min-height: 36px;
  margin: 0;
  padding: 4px 8px;
  background: transparent;
  color: var(--cyan);
  border: 0;
  font-weight: 700;
}
button.danger { background: #8f1d3a; color: #fff; }
.danger-zone { border-color: rgba(255, 68, 100, .45); margin-top: 28px; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; padding: 8px 6px; }
.progress { height: 8px; border-radius: 99px; background: #24182e; overflow: hidden; margin-top: 10px; }
.progress span { display: block; height: 100%; width: 0; background: var(--cyan); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
@media (max-width: 640px) {
  .top { align-items: flex-start; flex-direction: column; }
  table { display: block; overflow-x: auto; }
  .row, .actions { flex-direction: column; align-items: stretch; }
  .row button, .actions button { width: 100%; }
}
