:root {
  color-scheme: light;
  --bg: #f3eee4;
  --ink: #1b1714;
  --muted: #5e584f;
  --line: #e0d6c8;
  --card: #fffdf9;
  --accent: #b4331f;
  --accent-dark: #8d2616;
  --good: #1d6b45;
  --shadow: 0 20px 50px rgba(28, 25, 21, 0.08);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Outfit", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.5;
}

::selection { background: #f0c7be; }

img { max-width: 100%; }

a { color: inherit; }

h1, h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0;
}

h1 { font-size: clamp(2.6rem, 7vw, 5rem); }

h2 { font-size: 1.55rem; }

p { margin: 0; }

button, input, textarea { font: inherit; color: inherit; }

.top, .wrap {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0 0;
}

.mark {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 640;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.quiet {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.quiet:hover { color: var(--ink); }

.hero {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 14vh 0 80px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(180, 51, 31, 0.12);
  flex: none;
}

.lede {
  max-width: 38rem;
  margin-top: 22px;
  color: var(--muted);
  font-size: 1.15rem;
}

.status {
  min-height: 1.5em;
  margin-top: 22px;
  font-weight: 600;
}

.text-btn {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ask {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(28, 25, 21, 0.48);
}

.ask-card, .card {
  background: var(--card);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.ask-card {
  width: min(480px, 100%);
  padding: 28px;
}

.ask-card h2 { font-size: clamp(2rem, 4vw, 2.6rem); }

.ask-card p { margin-top: 12px; color: var(--muted); }

.ask-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.ask-actions .btn { flex: 1; }

.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fffaf6;
  font-weight: 600;
  padding: 12px 18px;
  cursor: pointer;
}

.btn:hover { background: var(--accent-dark); }

.btn:disabled { opacity: 0.65; cursor: wait; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}

.btn-ghost:hover { background: #efe8dc; }

.form-error, .form-note {
  min-height: 1.4em;
  margin-top: 12px;
  font-weight: 600;
}

.form-error { color: var(--accent); }

.form-note { color: var(--good); }

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-wrap .card {
  width: min(440px, 100%);
  display: grid;
  gap: 16px;
  padding: 32px;
}

.login-wrap h1 { font-size: 3rem; }

.wrap { padding: 28px 0 72px; }

.admin-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.sub-count {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 600;
}

.tracker { margin-bottom: 22px; }

.tracker h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }

.tracker-sub { margin-top: 28px; font-size: 1.45rem; }

.table-wrap { overflow-x: auto; }

.rows {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
}

.rows th,
.rows td {
  padding: 12px 8px;
  border-top: 1px solid var(--line);
  text-align: left;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.rows thead th {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rows td:nth-child(n + 2),
.rows thead th:nth-child(n + 2) { text-align: right; }

.rows tr.is-total th,
.rows tr.is-total td { font-weight: 700; }

.admin-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 22px;
  align-items: start;
}

.stack { display: grid; gap: 16px; }

.card { padding: 22px; }

.card h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); }

.muted { color: var(--muted); }

.field {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 0.92rem;
}

input[type="text"],
input[type="password"],
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffdf9;
  padding: 12px 14px;
  font-weight: 400;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus, textarea:focus, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hint {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.85rem;
}

.drop {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 110px;
  padding: 18px;
  border: 1.5px dashed #cfc3b2;
  border-radius: 16px;
  background: #faf6ef;
  text-align: center;
  color: var(--muted);
  font-weight: 500;
}

.drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.drop.is-drag { border-color: var(--accent); background: #f8ebe6; }

.toast {
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(28, 25, 21, 0.12);
}

.toast-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}

.toast-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  background: #f3eee4;
}

.toast-top p, .toast-link {
  color: var(--muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.toast-link { margin-top: 10px; font-size: 0.85rem; }

.plain {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.log { display: grid; gap: 14px; margin-top: 12px; }

.log-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: start;
}

.log-item img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  background: #f3eee4;
}

.log-item p { color: var(--muted); }

.log-item a {
  display: block;
  margin-top: 4px;
  color: var(--accent);
  overflow-wrap: anywhere;
  font-size: 0.88rem;
}

@media (max-width: 860px) {
  .admin-shell { grid-template-columns: 1fr; }
  .hero { padding-top: 10vh; }
  .admin-top { align-items: flex-start; }
}

.verify-page {
  background: #f2f2f2;
  color: #202124;
  font-family: Roboto, "Segoe UI", sans-serif;
}

.check-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.verify-card {
  width: min(720px, 100%);
  padding: 72px 64px 68px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.12), 0 12px 36px rgba(60, 64, 67, 0.14);
  text-align: center;
}

.verify-title {
  margin: 0;
  font-family: Roboto, "Segoe UI", sans-serif;
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.15;
  color: #4285f4;
}

.verify-subtitle {
  margin: 18px 0 0;
  color: #5f6368;
  font-size: 1.2rem;
  line-height: 1.5;
}

.windows-note {
  margin: 28px auto 0;
  max-width: 28rem;
  color: #202124;
  font-size: 1.15rem;
  line-height: 1.5;
}

.check-stack {
  position: relative;
  width: 360px;
  margin: 40px auto 0;
  text-align: left;
}

.check-box {
  position: relative;
  width: 360px;
  height: 88px;
  border: 1px solid #d3d3d3;
  border-radius: 4px;
  background: #f9f9f9;
  cursor: pointer;
}

.check-tick {
  position: absolute;
  top: 26px;
  left: 16px;
  width: 34px;
  height: 34px;
  border: 2px solid #c1c1c1;
  border-radius: 2px;
  background: #fff;
  cursor: pointer;
}

.check-tick:hover { border-color: #b2b2b2; }

.check-tick:disabled { cursor: default; }

.check-tick.is-spinning {
  opacity: 0;
  pointer-events: none;
}

.check-tick.is-checked {
  border-color: #1a73e8;
  background: #1a73e8;
}

.check-tick.is-checked::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 4px;
  width: 8px;
  height: 15px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.check-spin {
  position: absolute;
  top: 29px;
  left: 19px;
  width: 26px;
  height: 26px;
  border: 2px solid rgba(0, 0, 0, 0.12);
  border-top-color: #333;
  border-radius: 50%;
  animation: check-spin 0.8s linear infinite;
}

@keyframes check-spin { to { transform: rotate(360deg); } }

.check-label {
  position: absolute;
  left: 64px;
  top: 31px;
  margin: 0;
  font-size: 18px;
  color: #282727;
}

.check-brand {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 68px;
  text-align: center;
}

.check-mark {
  display: block;
  width: 42px;
  height: 42px;
  margin: 0 auto;
  object-fit: contain;
}

.check-brand-name {
  margin: 3px 0 0;
  font-size: 10px;
  color: #555;
  letter-spacing: 0.01em;
}

.check-note {
  margin: 2px 0 0;
  font-size: 9px;
  color: #555;
  line-height: 1.2;
}

.check-note a {
  color: #555;
  text-decoration: none;
}

.check-note a:hover { text-decoration: underline; }

.steps {
  position: absolute;
  top: -48px;
  left: calc(100% + 10px);
  z-index: 20;
  width: 310px;
  border: 1px solid #cecece;
  background: #fff;
  box-shadow: 5px 6px 18px -3px rgba(0, 0, 0, 0.18);
  text-align: left;
}

.steps-head {
  padding: 16px 16px 20px;
  background: #1a73e8;
  color: #fff;
}

.steps-head p {
  margin: 0;
  font-size: 14px;
}

.steps-head h2 {
  margin: 2px 0 0;
  font-family: Roboto, "Segoe UI", sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  color: #fff;
}

.steps-body {
  padding: 14px 16px 6px;
  color: #111;
  font-size: 14px;
}

.steps-body p { margin: 0 0 10px; }

.steps ol {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  margin: 0 0 10px;
  padding-left: 28px;
  position: relative;
  line-height: 1.4;
}

.steps li::before {
  content: counter(step) ".";
  position: absolute;
  left: 0;
  color: #1a73e8;
  font-weight: 700;
}

.steps-error,
.steps-status {
  min-height: 0;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 500;
}

.steps-error { color: #c5221f; }

.verify-card.is-unsupported-card {
  width: min(640px, 100%);
  padding: 64px 48px 56px;
  border: 1px solid #ededed;
  border-radius: 8px;
  box-shadow: none;
}

.verify-card.is-unsupported-card .verify-title,
.verify-card.is-unsupported-card .verify-subtitle,
.verify-card.is-unsupported-card .check-stack {
  display: none;
}

.unsupported-title {
  margin: 0;
  color: #1f1f1f;
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.unsupported-lead {
  margin: 28px 0 0;
  color: #1f1f1f;
  font-size: 1.15rem;
  line-height: 1.4;
}

.unsupported-lead a {
  color: #1a73e8;
  font-weight: 500;
  text-decoration: none;
}

.unsupported-lead a:hover { text-decoration: underline; }

.unsupported-browsers {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px 36px;
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
}

.unsupported-browsers li { width: 96px; }

.unsupported-browsers img {
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto;
}

.unsupported-browsers span {
  display: block;
  margin-top: 12px;
  color: #1a73e8;
  font-size: 1rem;
}

.unsupported-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 36px;
  padding: 12px 22px;
  border-radius: 4px;
  background: #1a73e8;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.unsupported-open:hover { background: #1765cc; }

.steps-status { color: #137333; }

.steps-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid #cecece;
  color: #737373;
  font-size: 13px;
}

.steps-foot p { margin: 0; }

.guide-tip {
  position: fixed;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 12px 10px;
  border-radius: 8px;
  background: #fff;
  color: #202124;
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.2), 0 8px 20px rgba(60, 64, 67, 0.18);
  max-width: min(280px, calc(100vw - 24px));
  right: auto;
  bottom: auto;
}

.guide-tip p { margin: 0; }

.guide-tip strong { color: #1a73e8; font-weight: 500; }

.guide-tip-arrow {
  color: #1a73e8;
  font-size: 28px;
  line-height: 1;
  display: inline-block;
  animation: allow-nudge 0.8s ease-in-out infinite;
}

.guide-tip-blocked {
  align-items: flex-start;
  text-align: left;
  z-index: 50;
  border: 1px solid #1a73e8;
}

.guide-tip-blocked.is-edge {
  align-items: flex-end;
  text-align: right;
}

@media (max-width: 900px) {
  .guide-tip {
    font-size: 13px;
    padding: 7px 10px 9px;
  }

  .guide-tip-arrow {
    font-size: 20px;
  }
}

@keyframes allow-nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.steps-again {
  flex: none;
  border: 0;
  border-radius: 3px;
  background: #1a73e8;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 12px 14px;
  cursor: pointer;
}

.steps-again:hover { background: #1765cc; }

@media (max-width: 820px) {
  .verify-card { padding: 44px 24px 40px; }
  .check-stack,
  .check-box { width: min(360px, 100%); }
  .steps {
    top: calc(100% + 12px);
    left: 0;
  }
}

.verify-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 48px 24px 24px;
}

.verify-grid {
  flex: 1;
  width: min(980px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.9fr);
  gap: 32px;
  align-items: center;
}

.verify-copy h1 {
  font-family: Roboto, "Segoe UI", sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0;
}

.verify-copy h1 strong { font-weight: 700; }

.verify-lead {
  margin-top: 18px;
  max-width: 34rem;
  color: #5f6368;
  font-size: 1.05rem;
}

.hcaptcha-mount { margin-top: 28px; min-height: 78px; }

.verify-error {
  min-height: 1.4em;
  margin-top: 12px;
  color: #c5221f;
  font-weight: 500;
}

.verify-status {
  min-height: 1.4em;
  margin-top: 12px;
  color: #137333;
  font-weight: 500;
}

.verify-link {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: #1a73e8;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.verify-art svg { width: min(100%, 320px); margin: 0 auto; display: block; }

.verify-foot {
  width: min(980px, 100%);
  margin: 40px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: #80868b;
  font-size: 0.82rem;
}

.verify-foot-mark,
.verify-foot-quiet {
  color: inherit;
  text-decoration: none;
}

.verify-foot-mark:hover,
.verify-foot-quiet:hover { color: #202124; }

.allow-hint {
  position: fixed;
  top: 168px;
  left: 16px;
  z-index: 40;
  width: min(280px, calc(100vw - 32px));
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.12), 0 8px 24px rgba(60, 64, 67, 0.16);
}

.allow-hint p {
  margin: 0;
  color: #3c4043;
  font-size: 14px;
  line-height: 1.4;
}

.allow-hint strong {
  color: #1a73e8;
  font-weight: 500;
}

.allow-hint .verify-error {
  min-height: 0;
  margin-top: 6px;
  font-size: 13px;
}

.allow-again,
.allow-skip {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: #1a73e8;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.allow-skip {
  margin-left: 12px;
  color: #5f6368;
}

.verify-btn {
  margin-top: 18px;
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: #1a73e8;
  color: #fff;
  font-weight: 500;
  padding: 12px 18px;
  cursor: pointer;
}

.verify-btn:hover { background: #1765cc; }

.verify-btn:disabled { opacity: 0.7; cursor: wait; }

.verify-btn-ghost {
  margin-top: 10px;
  background: transparent;
  color: #202124;
  box-shadow: inset 0 0 0 1px #dadce0;
}

.verify-btn-ghost:hover { background: #f8f9fa; }

@media (max-width: 820px) {
  .verify-grid { grid-template-columns: 1fr; }
  .verify-art { order: -1; }
}

.admin-page {
  --admin-bg: #000;
  --admin-surface: rgba(10, 10, 10, 0.72);
  --admin-ink: #f5f5f5;
  --admin-muted: #a3a3a3;
  --admin-line: #2a2a2a;
  --admin-accent: #fff;
  --admin-shadow: none;
  color-scheme: dark;
  height: 100dvh;
  overflow: hidden;
  background: #000;
  color: var(--admin-ink);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

.admin-page * { box-sizing: border-box; }

.admin-topo {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: block;
}

.admin-login,
.admin-dash {
  position: relative;
  z-index: 1;
}

.admin-page h1,
.admin-page h2,
.admin-page h3 {
  font-family: inherit;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}

.admin-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.admin-login-card {
  width: min(420px, 100%);
  display: grid;
  gap: 16px;
  padding: 36px 32px 32px;
  border-radius: 22px;
  background: var(--admin-surface);
  box-shadow: var(--admin-shadow);
  border: 1px solid var(--admin-line);
}

.admin-login-card h1 {
  font-size: 1.85rem;
  letter-spacing: -0.04em;
}

.admin-dash {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.admin-bar {
  flex: none;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--admin-line);
}

.admin-bar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-mark {
  color: inherit;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.admin-greeting {
  margin: 0;
  color: #f5f5f5;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.admin-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex: 1;
  justify-content: center;
}

.admin-metric {
  min-width: 108px;
  padding: 6px 12px;
  border-radius: 12px;
  background: #111;
  border: 1px solid var(--admin-line);
  box-shadow: none;
}

.admin-metric-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--admin-muted);
}

.admin-metric-value {
  display: block;
  margin-top: 2px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.admin-layout {
  flex: 1;
  min-height: 0;
  width: 100%;
  margin: 0;
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.15fr) minmax(260px, 0.85fr);
  grid-template-rows: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 12px;
  overflow: hidden;
}

.admin-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  min-width: 0;
  padding: 14px 14px 12px;
  border-radius: 16px;
  background: var(--admin-surface);
  border: 1px solid var(--admin-line);
  box-shadow: var(--admin-shadow);
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.admin-card-send { grid-column: 1; grid-row: 1 / -1; overflow: auto; }
.admin-card-tasks { grid-column: 2; grid-row: 1 / -1; }
.admin-card-analytics { grid-column: 3; grid-row: 1; overflow: auto; }
.admin-card-subs { grid-column: 3; grid-row: 2; overflow: auto; }

.admin-alert-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.admin-sub-meta {
  display: block;
  margin-top: 2px;
  color: #a3a3a3;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.admin-card-head h2 { font-size: 1.05rem; }

.admin-card-head p {
  margin-top: 2px;
  font-size: 0.8rem;
}

.admin-subhead {
  margin: 4px 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--admin-muted);
}

.admin-leaderboard {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  overflow: hidden;
}

.admin-leaderboard li {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 5px 12px;
  border-top: 1px solid var(--admin-line);
  font-size: 0.85rem;
  background: #111;
}

.admin-leaderboard li:first-child { border-top: 0; }

.admin-leaderboard li:nth-child(even) { background: #161616; }

.admin-leaderboard li.is-empty { color: var(--admin-muted); }

.admin-leaderboard-rank {
  font-weight: 600;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  color: var(--admin-ink);
}

.admin-leaderboard-flag {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.admin-leaderboard-flag.is-empty {
  width: auto;
  height: auto;
  box-shadow: none;
  color: var(--admin-muted);
}

.admin-leaderboard-meta {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--admin-muted);
  font-variant-numeric: tabular-nums;
}

.admin-muted { color: var(--admin-muted); }

.admin-field {
  display: grid;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--admin-ink);
}

.admin-field input,
.admin-field textarea,
.admin-login-card input {
  width: 100%;
  border: 1px solid var(--admin-line);
  border-radius: 10px;
  background: #0a0a0a;
  color: var(--admin-ink);
  padding: 8px 10px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 400;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.admin-field textarea {
  min-height: 52px;
  max-height: 72px;
  resize: none;
}

.admin-field input:hover,
.admin-field textarea:hover,
.admin-login-card input:hover {
  border-color: #3a3a3a;
  background: #111;
}

.admin-field input:focus,
.admin-field textarea:focus,
.admin-login-card input:focus,
.admin-btn:focus-visible {
  outline: none;
  border-color: #fff;
  background: #111;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}

.send-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.send-grid .span-2 { grid-column: 1 / -1; }

.admin-audience {
  margin: 0;
  padding: 0;
  border: 0;
}

.admin-audience legend {
  padding: 0;
  margin-bottom: 6px;
  font-size: 0.82rem;
  font-weight: 600;
}

.admin-browsers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.admin-browsers label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--admin-ink);
}

.admin-browsers input {
  accent-color: #fff;
}

.send-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.admin-drop {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px;
  border: 1.5px dashed #3a3a3a;
  border-radius: 10px;
  background: #0a0a0a;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--admin-muted);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.admin-drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.admin-drop.is-drag,
.admin-drop:hover {
  border-color: var(--admin-ink);
  background: #161616;
  color: var(--admin-ink);
}

.admin-btn {
  border: none;
  border-radius: 10px;
  background: #fff;
  color: #000;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 9px 14px;
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.12s ease, background 0.15s ease, opacity 0.15s ease;
}

.admin-btn:hover { background: #e5e5e5; }

.admin-redirects {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-btn-toggle.is-off {
  background: transparent;
  color: #d4d4d4;
  box-shadow: inset 0 0 0 1px #3a3a3a;
}

.admin-btn-toggle.is-off:hover { background: #161616; }

.admin-btn:active { transform: scale(0.98); }

.admin-btn:disabled { opacity: 0.55; cursor: wait; }

.admin-btn-wide { width: 100%; }

.admin-btn-ghost {
  background: #111;
  color: #f5f5f5;
  border: 1px solid #3a3a3a;
  box-shadow: none;
}

.admin-btn-ghost:hover { background: #1a1a1a; }

.admin-error,
.admin-note {
  margin: 0;
  min-height: 0;
  font-size: 0.8rem;
  font-weight: 500;
}

.admin-error { color: var(--admin-ink); }

.admin-note { color: var(--admin-muted); }

.admin-preview {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--admin-line);
}

.admin-preview-label {
  margin: 0 0 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--admin-muted);
}

.admin-toast {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border-radius: 12px;
  background: #000;
  color: #fff;
  border: 1px solid #2a2a2a;
  box-shadow: none;
}

.admin-toast .admin-muted { color: #b5b5b5; }

.admin-toast-icon {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #222;
}

.admin-toast-copy strong {
  display: block;
  font-size: 1rem;
}

.admin-toast-copy p {
  margin: 6px 0 0;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.admin-table-wrap {
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  overflow: hidden;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 6px 10px;
  border-top: 1px solid var(--admin-line);
  text-align: left;
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-table tbody tr:first-child td,
.admin-table tbody tr:first-child th { border-top: 0; }

.admin-table tbody tr:nth-child(even) { background: #161616; }

.admin-table thead th {
  background: #0a0a0a;
  color: var(--admin-muted);
  border-top: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.admin-table td:nth-child(n + 2),
.admin-table thead th:nth-child(n + 2) { text-align: right; }

.admin-table tr.is-total th,
.admin-table tr.is-total td {
  font-weight: 700;
  background: #1a1a1a;
}

.admin-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  overflow: hidden;
}

.admin-list li {
  padding: 8px 10px;
  border-top: 1px solid var(--admin-line);
  font-size: 0.8rem;
  line-height: 1.35;
  background: #111;
}

.admin-list li:first-child { border-top: 0; }

.admin-list li:nth-child(even) { background: #161616; }

.admin-card-subs {
  overflow: hidden;
}

.admin-card-subs .admin-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.admin-card-tasks form { flex: none; }

.admin-tasks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.admin-task {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--admin-line);
  border-radius: 16px;
  background: #0a0a0a;
}

.admin-task-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  background: #1a1a1a;
  border: 1px solid var(--admin-line);
}

.admin-task h3 {
  margin: 0;
  font-size: 1rem;
}

.admin-task p {
  margin: 4px 0 0;
  color: var(--admin-muted);
  font-size: 0.86rem;
}

.admin-task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.admin-task-chip {
  padding: 3px 8px;
  border-radius: 999px;
  background: #1a1a1a;
  color: #f5f5f5;
  font-size: 0.75rem;
  font-weight: 600;
}

.admin-task-chip.is-on {
  background: #fff;
  color: #000;
}

.admin-task-chip.is-off {
  background: #1a1a1a;
  color: #a3a3a3;
}

.admin-task-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.admin-task-actions .admin-btn {
  padding: 9px 14px;
  box-shadow: none;
}

.admin-task.is-empty {
  display: block;
  color: var(--admin-muted);
}

@media (max-width: 980px) {
  .admin-page { height: auto; overflow: auto; }
  .admin-dash { height: auto; overflow: visible; }
  .admin-layout {
    height: auto;
    overflow: visible;
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .admin-card-send,
  .admin-card-tasks,
  .admin-card-analytics,
  .admin-card-subs {
    grid-column: auto;
    grid-row: auto;
    overflow: visible;
  }
  .admin-tasks,
  .admin-card-subs .admin-list { max-height: 240px; }
}

@media (max-width: 720px) {
  .admin-bar { flex-direction: column; align-items: stretch; }
  .admin-redirects { width: 100%; }
  .admin-btn-toggle { flex: 1; }
  .admin-metrics { justify-content: stretch; }
  .admin-metric { flex: 1; min-width: 0; }
  .send-grid { grid-template-columns: 1fr; }
  .admin-task { grid-template-columns: auto minmax(0, 1fr); }
  .admin-task-actions { grid-column: 1 / -1; justify-content: flex-start; }
}
