@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/cyrillic-500-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/static/fonts/cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/static/fonts/cyrillic-700-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/static/fonts/cyrillic-800-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/static/fonts/latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/static/fonts/latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/static/fonts/latin-800-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #12151a;
  --card: #1a1e24;
  --inset: #101416;
  --text: #ffffff;
  --muted: #a8b0b8;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #7ad4ff;
  --btn: #e8f7ff;
  --btn-text: #062031;
  --revoked: #e08a8a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Manrope, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.45;
}

a { color: inherit; }

.wash {
  background:
    radial-gradient(ellipse 70% 45% at 78% 0%, rgba(122, 212, 255, 0.09), transparent 58%),
    var(--bg);
}

.wordmark,
.brand {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.public-mark {
  position: absolute;
  top: 28px;
  left: 36px;
}

.hero {
  max-width: 640px;
  margin-left: max(8vw, 48px);
  padding: 22vh 24px 12vh;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.lead {
  max-width: 34em;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.hint {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  padding: 12px 22px;
  border: 0;
  border-radius: 16px;
  background: var(--btn);
  color: var(--btn-text);
  font: 600 16px/1 Manrope, "Segoe UI", sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.btn:hover {
  background: #7ad4ff;
  color: #062031;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(122, 212, 255, 0.28);
}

.btn-ghost {
  margin-top: 0;
  background: transparent;
  color: #e08a8a;
  box-shadow: inset 0 0 0 1px rgba(224, 138, 138, 0.55);
}

.btn-ghost:hover {
  background: #e08a8a;
  color: #2a1010;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(224, 138, 138, 0.28);
}

.btn:active,
.btn.is-pressed {
  animation: btn-press 420ms ease;
}

@keyframes btn-press {
  0% { transform: scale(1); }
  40% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

.btn.wide { width: 100%; margin-top: 18px; }

.btn:focus-visible,
.text-btn:focus-visible,
input:focus-visible,
.back:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.login-wrap { width: min(420px, 100%); }

.login-kicker {
  margin: 0 0 14px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
}

.card h1 { font-size: 28px; }

.card .eyebrow { margin-bottom: 8px; }

label {
  display: block;
  margin: 18px 0 8px;
  color: var(--muted);
  font-size: 14px;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--inset);
  color: var(--text);
  font: 500 16px/1.3 Manrope, "Segoe UI", sans-serif;
  padding: 12px 14px;
}

.note {
  min-height: 1.2em;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 48px;
  border-bottom: 1px solid var(--line);
}

.bar form { margin: 0; }

.bar-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.confirm {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  color: var(--muted);
}

.bar .btn { margin-top: 0; }

.text-btn {
  border: 0;
  background: none;
  color: var(--muted);
  font: 500 15px/1 Manrope, "Segoe UI", sans-serif;
  cursor: pointer;
  padding: 8px 2px;
  text-decoration: none;
  transition: color 160ms ease;
}

.text-btn:hover { color: #7ad4ff; }

.text-btn.danger { color: var(--revoked); }

.text-btn.danger:hover { color: #ffb4ab; }

.sheet {
  width: min(880px, calc(100% - 64px));
  margin: 36px auto 80px;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.toolbar p { margin: 0; color: var(--muted); }

.toolbar .btn { margin-top: 0; }

.row {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.7fr 1fr auto;
  gap: 12px;
  background: var(--card);
  border-radius: 16px;
  padding: 18px 22px;
  margin-bottom: 12px;
  align-items: end;
  transition: transform 180ms ease, background 180ms ease;
}

.row:hover {
  background: #222831;
  transform: translateY(-2px);
}

.cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.attr {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.name { font-weight: 700; }

.status { font-weight: 600; }
.status.ok { color: var(--accent); }
.status.dead { color: var(--revoked); }

.count, .when { color: var(--text); }

.action {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  align-items: center;
}

.action form { display: flex; gap: 14px; align-items: center; margin: 0; }

.action a {
  color: var(--muted);
  text-decoration: none;
  transition: color 160ms ease;
}

.action a:hover { color: #7ad4ff; }

.empty { color: var(--muted); }

.stage {
  min-height: calc(100vh - 70px);
  display: grid;
  place-items: center;
  padding: 32px 16px 64px;
}

.stage-card { width: min(560px, 100%); }

.key {
  margin: 22px 0 0;
  padding: 18px 16px;
  border-radius: 12px;
  background: var(--inset);
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
  overflow-wrap: anywhere;
}

.back {
  display: inline-block;
  margin-top: 16px;
  color: var(--accent);
  text-decoration: none;
}

.center-hint { text-align: center; }

@media (max-width: 760px) {
  .public-mark { left: 20px; }
  .hero { margin-left: 0; padding: 18vh 20px 64px; }
  .bar { padding: 18px 20px; }
  .sheet { width: min(100% - 32px, 880px); }
  .toolbar { align-items: flex-start; flex-direction: column; }
  .row { grid-template-columns: 1fr 1fr; }
  .action { grid-column: 1 / -1; justify-content: flex-start; }
}
