:root {
  --ink: #08060c;
  --ink-soft: #0e0b14;
  --panel: #121018;
  --panel-strong: #191520;
  --line: #32283d;
  --line-bright: #66477d;
  --paper: #f8f4fb;
  --muted: #aaa0b2;
  --purple: #aa4cff;
  --purple-light: #d19aff;
  --purple-dark: #6e25d9;
  --green: #51e5ad;
  --amber: #ffc766;
  --red: #ff6b87;
  --blue: #6db8ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, .46);
  --radius: 18px;
  --radius-small: 10px;
  --content: 1180px;
  --header-height: 78px;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 8%, rgba(151, 56, 226, .16), transparent 31rem),
    radial-gradient(circle at 94% 37%, rgba(92, 34, 160, .12), transparent 27rem),
    var(--ink);
  color: var(--paper);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--purple-light);
  text-decoration-thickness: 1px;
  text-underline-offset: .24em;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
.display,
.timer,
.stat-value {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", "Segoe UI", sans-serif;
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: .94;
  text-transform: uppercase;
}

h1 {
  max-width: 16ch;
  margin-bottom: 1.25rem;
  font-size: clamp(3.25rem, 10vw, 7.7rem);
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.15rem, 6vw, 4.6rem);
}

h3 {
  margin-bottom: .65rem;
  font-size: clamp(1.25rem, 3.2vw, 1.85rem);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--purple-light);
  outline-offset: 4px;
}

::selection {
  background: var(--purple);
  color: #09060c;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: .75rem;
  left: .75rem;
  transform: translateY(-170%);
  padding: .75rem 1rem;
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 800;
}

.skip-link:focus {
  transform: none;
}

.ambient-grid {
  position: fixed;
  z-index: -2;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(184, 92, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 92, 255, .035) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 80%);
}

.scanline {
  position: fixed;
  z-index: 50;
  top: -12vh;
  left: 0;
  width: 100%;
  height: 8vh;
  pointer-events: none;
  opacity: .25;
  background: linear-gradient(to bottom, transparent, rgba(187, 91, 255, .08), transparent);
  animation: global-scan 10s linear infinite;
}

@keyframes global-scan {
  to { transform: translateY(124vh); }
}

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: var(--header-height);
  padding: .8rem max(1.05rem, env(safe-area-inset-left));
  border-bottom: 1px solid rgba(161, 109, 199, .22);
  background: rgba(8, 6, 12, .91);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: var(--paper);
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid var(--purple);
  background: rgba(170, 76, 255, .08);
  box-shadow: inset 0 0 16px rgba(170, 76, 255, .14);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span::before,
.brand-mark span::after {
  position: absolute;
  width: 7px;
  height: 7px;
  border-color: var(--paper);
  content: "";
}

.brand-mark::before { top: 7px; left: 7px; border-top: 3px solid; border-left: 3px solid; }
.brand-mark::after { top: 7px; right: 7px; border-top: 3px solid; border-right: 3px solid; }
.brand-mark span::before { right: 7px; bottom: 7px; border-right: 3px solid; border-bottom: 3px solid; }
.brand-mark span::after { bottom: 7px; left: 7px; border-bottom: 3px solid; border-left: 3px solid; }
.brand-mark.large { width: 74px; height: 74px; }

.brand-copy {
  display: grid;
  line-height: 1;
}

.brand-copy strong {
  font-size: 1rem;
  letter-spacing: .08em;
}

.brand-copy small {
  margin-top: .32rem;
  color: var(--muted);
  font-size: .54rem;
  font-weight: 800;
  letter-spacing: .18em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.site-nav a {
  padding: .75rem .9rem;
  border-radius: 8px;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(170, 76, 255, .1);
  color: var(--paper);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--paper);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform .2s ease;
}

.network-banner {
  position: sticky;
  z-index: 35;
  top: var(--header-height);
  padding: .55rem 1rem;
  border-bottom: 1px solid #805c1e;
  background: #2a200e;
  color: #ffe0a2;
  text-align: center;
  font-size: .8rem;
  font-weight: 800;
}

#app {
  min-height: calc(100vh - var(--header-height));
}

.route,
.section {
  width: min(calc(100% - 2rem), var(--content));
  margin-inline: auto;
}

.route {
  padding-block: clamp(2.8rem, 7vw, 6.5rem);
}

.section {
  padding-block: clamp(3.5rem, 9vw, 8rem);
}

.route-loading,
.empty-state,
.error-state {
  display: grid;
  min-height: 48vh;
  place-content: center;
  justify-items: center;
  padding: 2rem;
  text-align: center;
}

.route-loading p,
.empty-state p,
.error-state p {
  max-width: 42rem;
  color: var(--muted);
}

.loader-mark {
  width: 52px;
  height: 52px;
  margin-bottom: 1rem;
  border: 2px solid var(--line);
  border-top-color: var(--purple);
  animation: spin .9s linear infinite;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: .95rem;
  color: var(--purple-light);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 22px;
  height: 2px;
  background: currentColor;
  content: "";
}

.lede {
  max-width: 660px;
  color: #d3cad8;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
}

.muted { color: var(--muted); }
.success { color: var(--green); }
.warning { color: var(--amber); }
.danger { color: var(--red); }
.accent { color: var(--purple-light); }

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
}

.button,
.text-button,
.icon-button {
  cursor: pointer;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .82rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .1em;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: .48;
}

.button-primary {
  border-color: var(--purple);
  background: linear-gradient(135deg, #bb62ff, #7728dc);
  color: white;
  box-shadow: 0 9px 32px rgba(151, 57, 226, .28);
}

.button-primary:hover:not(:disabled) {
  box-shadow: 0 12px 38px rgba(170, 76, 255, .4);
}

.button-secondary {
  border-color: var(--line-bright);
  background: rgba(170, 76, 255, .08);
  color: var(--paper);
}

.button-ghost {
  border-color: var(--line);
  background: var(--panel);
  color: var(--paper);
}

.button-danger {
  border-color: rgba(255, 107, 135, .58);
  background: rgba(255, 107, 135, .1);
  color: #ffb2c1;
}

.button-small {
  min-height: 38px;
  padding: .55rem .75rem;
  font-size: .68rem;
}

.button-wide { width: 100%; }

.text-button {
  padding: .25rem;
  border: 0;
  background: none;
  color: var(--purple-light);
  font-size: .8rem;
  font-weight: 800;
}

.icon-button {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--paper);
  font-size: 1.5rem;
}

.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(22, 18, 29, .96), rgba(12, 10, 16, .96));
  box-shadow: var(--shadow);
}

.panel::before {
  position: absolute;
  top: -1px;
  left: 28px;
  width: 72px;
  height: 2px;
  background: var(--purple);
  box-shadow: 0 0 18px var(--purple);
  content: "";
}

.panel-body {
  padding: clamp(1.1rem, 3vw, 2rem);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.chip,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 28px;
  padding: .3rem .55rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(255, 255, 255, .025);
  color: var(--muted);
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.status-pill::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
  content: "";
}

.status-active { color: var(--green); }
.status-paused { color: var(--amber); }
.status-retired,
.status-suspended,
.status-quarantined { color: var(--red); }
.status-draft,
.status-pending { color: var(--blue); }

.notice {
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--purple);
  border-radius: 8px;
  background: rgba(170, 76, 255, .06);
  color: #d9cfde;
  font-size: .87rem;
}

.notice-warning { border-left-color: var(--amber); background: rgba(255, 199, 102, .06); }
.notice-danger { border-left-color: var(--red); background: rgba(255, 107, 135, .06); }
.notice-success { border-left-color: var(--green); background: rgba(81, 229, 173, .06); }

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto auto;
  gap: 1.5rem;
  align-items: center;
  width: min(calc(100% - 2rem), var(--content));
  margin: 3rem auto 0;
  padding: 2rem 0 max(2rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .76rem;
}

.site-footer > div {
  display: grid;
  gap: .3rem;
}

.footer-wordmark {
  color: var(--paper);
  font-weight: 900;
  letter-spacing: .12em;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer a { color: var(--muted); }

.pinnacle-link {
  font-weight: 800;
  text-decoration: none;
}

.toast-region {
  position: fixed;
  z-index: 100;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  display: grid;
  width: min(360px, calc(100% - 2rem));
  gap: .65rem;
}

.toast {
  padding: .85rem 1rem;
  border: 1px solid var(--line-bright);
  border-radius: 10px;
  background: #17121e;
  box-shadow: var(--shadow);
  color: var(--paper);
  font-size: .86rem;
  animation: toast-in .2s ease both;
}

@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

.modal {
  width: min(560px, calc(100% - 1.4rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line-bright);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--paper);
  box-shadow: var(--shadow);
}

.modal::backdrop {
  background: rgba(3, 2, 5, .82);
  backdrop-filter: blur(5px);
}

.modal form { padding: clamp(1.1rem, 4vw, 1.8rem); }

.modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.modal-head h2 {
  margin-bottom: 0;
  font-size: 2.2rem;
}

.offline-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 1rem;
}

.offline-card {
  width: min(100%, 600px);
  padding: clamp(1.5rem, 6vw, 3.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.offline-card .brand-mark { margin-bottom: 2rem; }
.offline-card h1 { font-size: clamp(3rem, 12vw, 6rem); }
.offline-card p:not(.eyebrow) { color: var(--muted); }

/* Home */
.hero {
  position: relative;
  display: grid;
  min-height: min(850px, calc(100vh - var(--header-height)));
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .65fr);
  gap: clamp(2rem, 8vw, 8rem);
  align-items: center;
  width: min(calc(100% - 2rem), var(--content));
  margin-inline: auto;
  padding-block: clamp(4rem, 9vw, 8rem);
}

.hero h1 {
  margin-bottom: 1.4rem;
  font-size: clamp(4rem, 10.5vw, 9.5rem);
}

.hero h1 span {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--purple-light);
  text-shadow: 0 0 40px rgba(170, 76, 255, .18);
}

.hero-copy .lede { max-width: 590px; }
.hero-actions { margin-top: 2rem; }

.hero-signal {
  position: relative;
  aspect-ratio: 1;
  width: min(100%, 420px);
  justify-self: center;
}

.hero-signal::before,
.hero-signal::after,
.signal-core,
.signal-ring {
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
}

.hero-signal::before {
  width: 90%;
  height: 90%;
  border: 1px solid var(--line-bright);
  border-radius: 50%;
  content: "";
  animation: pulse-ring 4s ease-out infinite;
}

.hero-signal::after {
  width: 66%;
  height: 66%;
  border: 1px dashed rgba(190, 112, 255, .55);
  border-radius: 50%;
  content: "";
  animation: spin 18s linear infinite;
}

.signal-ring {
  width: 38%;
  height: 38%;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  box-shadow: 0 0 70px rgba(170, 76, 255, .2);
}

.signal-core {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border: 2px solid var(--purple);
  background: var(--ink-soft);
  box-shadow: 0 0 45px rgba(170, 76, 255, .42);
}

.signal-core::before,
.signal-core::after {
  position: absolute;
  background: var(--purple-light);
  content: "";
}

.signal-core::before { width: 34px; height: 4px; }
.signal-core::after { width: 4px; height: 34px; }

@keyframes pulse-ring {
  0% { opacity: .8; transform: translate(-50%, -50%) scale(.72); }
  70%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.12); }
}

.live-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.live-stat {
  display: grid;
  min-width: 180px;
  flex: 1 1 180px;
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
  background: var(--ink-soft);
}

.live-stat strong {
  color: var(--paper);
  font-size: 1.5rem;
  line-height: 1;
}

.live-stat span {
  margin-top: .45rem;
  color: var(--muted);
  font-size: .67rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.2rem;
}

.step-card {
  min-height: 250px;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 13, 21, .78);
}

.step-number {
  display: block;
  margin-bottom: 3rem;
  color: var(--purple-light);
  font-family: monospace;
  font-size: .75rem;
  letter-spacing: .12em;
}

.step-card p { color: var(--muted); }

.demo-callout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.5rem, 5vw, 3.2rem);
  border: 1px solid var(--line-bright);
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(170, 76, 255, .15), transparent 45%),
    var(--panel);
  box-shadow: var(--shadow);
}

.demo-callout h2 { max-width: 12ch; margin-bottom: .7rem; }
.demo-callout p { max-width: 620px; margin-bottom: 0; color: var(--muted); }

/* Forms and authentication */
.form-shell,
.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: start;
}

.auth-shell { max-width: 990px; margin-inline: auto; }
.form-intro { position: sticky; top: calc(var(--header-height) + 2rem); }
.form-intro p { max-width: 460px; color: var(--muted); }

.form-card {
  padding: clamp(1.15rem, 4vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field {
  display: grid;
  gap: .48rem;
  margin-bottom: 1rem;
}

.field > span,
.fieldset-title {
  color: #d9d1de;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.field small { color: var(--muted); font-weight: 600; text-transform: none; }

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 48px;
  padding: .78rem .85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  background: #0b0910;
  color: var(--paper);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.field textarea { resize: vertical; }

.field input:hover,
.field textarea:hover,
.field select:hover { border-color: var(--line-bright); }

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(170, 76, 255, .13);
}

.field input[type="file"] {
  padding: .55rem;
}

.field input[type="file"]::file-selector-button {
  margin-right: .7rem;
  padding: .55rem .7rem;
  border: 1px solid var(--line-bright);
  border-radius: 6px;
  background: var(--panel-strong);
  color: var(--paper);
}

.checkbox {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: .7rem;
  align-items: start;
  margin-bottom: .8rem;
  color: #cec5d3;
  font-size: .86rem;
}

.checkbox input {
  width: 18px;
  height: 18px;
  margin: .2rem 0 0;
  accent-color: var(--purple);
}

.form-hint {
  margin: -.4rem 0 1rem;
  color: var(--muted);
  font-size: .76rem;
}

.form-status {
  min-height: 1.4em;
  margin: .7rem 0;
  color: var(--muted);
  font-size: .84rem;
}

.verification-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: .35em;
  text-align: center;
}

.auth-aside {
  min-height: 440px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(170, 76, 255, .12), transparent),
    repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 8px),
    var(--panel);
}

.auth-aside ol {
  display: grid;
  gap: 1rem;
  padding-left: 1.25rem;
  color: var(--muted);
}

/* Spot experience */
.spot-route {
  width: min(calc(100% - 1rem), 1040px);
  padding-top: clamp(1.3rem, 4vw, 3rem);
}

.spot-topbar {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-inline: .5rem;
}

.spot-topbar h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(2.2rem, 7vw, 4.5rem);
}

.spot-location {
  margin: .5rem 0 0;
  color: var(--muted);
  font-size: .85rem;
}

.owner-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: .85rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: .9rem 1rem;
  border: 1px solid rgba(255, 199, 102, .48);
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(255, 199, 102, .14), rgba(170, 76, 255, .08));
}

.owner-banner-label { color: var(--amber); font-size: .64rem; font-weight: 900; letter-spacing: .14em; }
.owner-banner strong { overflow-wrap: anywhere; }
.owner-banner a { white-space: nowrap; }

.spot-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--line);
}

.spot-meta-item {
  min-width: 0;
  padding: .75rem;
  background: var(--ink-soft);
}

.spot-meta-item strong,
.spot-meta-item span { display: block; }
.spot-meta-item strong { overflow: hidden; color: var(--paper); font-size: .96rem; text-overflow: ellipsis; white-space: nowrap; }
.spot-meta-item span { margin-top: .25rem; color: var(--muted); font-size: .61rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }

.holder-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-bright);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 90% 8%, rgba(180, 79, 255, .18), transparent 20rem),
    linear-gradient(145deg, #17111f, #0c0a10 67%);
  box-shadow: var(--shadow);
}

.holder-card::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0 5px, rgba(255,255,255,.018) 5px 6px);
  content: "";
}

.holder-card-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(210px, .65fr);
  gap: clamp(1.3rem, 4vw, 3rem);
  min-height: 450px;
  padding: clamp(1.1rem, 4vw, 2.6rem);
}

.holder-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.holder-user {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--paper);
  font-weight: 900;
  text-decoration: none;
}

.avatar {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--line-bright);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-dark), #281338);
  color: white;
  font-weight: 900;
  text-transform: uppercase;
}

.avatar img { width: 100%; height: 100%; object-fit: cover; }

.holder-message {
  max-width: 20ch;
  margin: auto 0;
  padding-block: 2rem;
  font-size: clamp(1.65rem, 5vw, 3.8rem);
  font-weight: 750;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.holder-image {
  width: 100%;
  max-height: 480px;
  margin: 1rem 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  object-fit: cover;
}

.holder-video { background: #000; }
.holder-content > .holder-image:first-child { order: -1; margin-top: 0; }

.external-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0a0810;
  color: var(--paper);
  text-decoration: none;
}

.external-card span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.external-card small { color: var(--purple-light); font-weight: 900; }

.holder-clock {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(5, 4, 8, .62);
}

.timer-label {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.timer {
  display: block;
  margin-block: 1rem;
  color: var(--paper);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(2rem, 6vw, 4.1rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.08em;
  line-height: 1;
}

.clock-since { color: var(--muted); font-size: .72rem; }

.spot-action {
  display: grid;
  gap: .75rem;
  margin-block: 1rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.takeover-button {
  min-height: 64px;
  font-size: clamp(.85rem, 2.4vw, 1.05rem);
}

.protection-meter {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .45rem;
  color: var(--muted);
  font-size: .72rem;
}

.protection-track {
  grid-column: 1 / -1;
  height: 5px;
  overflow: hidden;
  border-radius: 100px;
  background: #28202f;
}

.protection-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--purple);
  box-shadow: 0 0 10px var(--purple);
  transition: width 1s linear;
}

.composer {
  display: none;
  margin-block: 1rem;
  padding: clamp(1rem, 4vw, 2rem);
  border: 1px solid var(--purple-dark);
  border-radius: var(--radius);
  background: #100c16;
  box-shadow: var(--shadow);
}

.composer.is-open { display: block; animation: reveal .22s ease both; }
@keyframes reveal { from { opacity: 0; transform: translateY(12px); } }

.composer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, .72fr);
  gap: 1.2rem;
}

.composer-preview {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
  min-height: 300px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #08060c;
}

.preview-label {
  display: block;
  margin-bottom: 1.2rem;
  color: var(--muted);
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .14em;
}

.preview-text {
  font-size: 1.35rem;
  font-weight: 750;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.preview-image {
  width: 100%;
  max-height: 300px;
  margin-top: .8rem;
  border-radius: 8px;
  object-fit: cover;
}

.upload-button {
  position: relative;
  display: grid;
  gap: .35rem;
  min-height: 124px;
  margin-bottom: 1rem;
  padding: 1.25rem;
  place-items: center;
  border: 2px dashed var(--purple);
  border-radius: 12px;
  background: rgba(170, 76, 255, .08);
  cursor: pointer;
  text-align: center;
}

.upload-button:hover { background: rgba(170, 76, 255, .14); }
.upload-button strong { font-size: 1.05rem; text-transform: uppercase; }
.upload-button span { color: var(--muted); font-size: .75rem; }
.upload-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.upload-button:focus-within { outline: 3px solid var(--purple-light); outline-offset: 4px; }

.location-drop {
  width: 100%;
  min-height: 160px;
  margin-bottom: 1.25rem;
  border: 2px dashed var(--purple);
  border-radius: 12px;
  background: radial-gradient(circle, rgba(170, 76, 255, .18), rgba(170, 76, 255, .04));
  color: var(--paper);
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.location-drop.is-ready { border-color: var(--green); color: var(--green); }
.simple-spot-form .step-number { margin: .2rem 0 .8rem; }

.placement-route { max-width: 920px; }
.placement-head { align-items: end; }
.placement-form,
.placement-gate { max-width: 680px; margin: 0 auto; }
.placement-gate h2 { margin-top: .65rem; }

.char-count { justify-self: end; color: var(--muted); font-size: .72rem; }

.proximity-box {
  margin-bottom: 1rem;
  padding: .9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(109, 184, 255, .05);
}

.proximity-box p { margin-bottom: .7rem; color: var(--muted); font-size: .8rem; }

.capture-overlay {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(5, 3, 8, .95);
}

.capture-stage {
  display: grid;
  width: min(100%, 620px);
  justify-items: center;
  text-align: center;
}

.capture-target {
  position: relative;
  width: 150px;
  height: 150px;
  margin-bottom: 2.2rem;
  border: 2px solid var(--purple);
  box-shadow: 0 0 70px rgba(170, 76, 255, .36);
}

.capture-target::after {
  position: absolute;
  top: 10px;
  right: 10px;
  left: 10px;
  height: 2px;
  background: var(--purple-light);
  box-shadow: 0 0 18px var(--purple);
  content: "";
  animation: capture-scan 1.2s ease-in-out infinite alternate;
}

@keyframes capture-scan { to { transform: translateY(126px); } }

.capture-stage h2 { max-width: 14ch; }

.history-preview {
  margin-top: 2.5rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-head h2,
.section-head h3 { margin-bottom: 0; }

.history-list {
  display: grid;
  gap: .75rem;
}

.history-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--ink-soft);
}

.history-content { min-width: 0; }
.history-content strong { display: block; color: var(--paper); }
.history-content p { margin: .35rem 0 0; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.history-duration { color: var(--purple-light); font-family: monospace; font-size: .82rem; text-align: right; }
.history-duration small { display: block; color: var(--muted); font-family: inherit; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-signal { position: absolute; z-index: -1; right: -22%; bottom: -10%; width: 55vw; opacity: .55; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-card { min-height: 0; }
  .step-number { margin-bottom: 1.5rem; }
  .holder-card-inner { grid-template-columns: 1fr; min-height: 0; }
  .holder-clock { min-height: 190px; }
  .timer { font-size: clamp(2.4rem, 11vw, 5rem); }
  .form-shell,
  .auth-shell { grid-template-columns: 1fr; }
  .form-intro { position: static; }
}

@media (max-width: 640px) {
  .hero { min-height: calc(100svh - var(--header-height)); }
  .hero-inner { width: min(calc(100% - 1.25rem), var(--content)); padding-block: 3rem 4rem; }
  .hero-copy { min-width: 0; }
  .hero h1 { max-width: 100%; font-size: clamp(3.45rem, 18vw, 5.5rem); overflow-wrap: break-word; }
  .hero h1 span { -webkit-text-stroke-width: 1px; }
  .demo-callout { grid-template-columns: 1fr; }
  .demo-callout .button { width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .spot-topbar { align-items: center; }
  .spot-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .holder-card-inner { padding: 1rem; }
  .holder-message { max-width: 100%; font-size: clamp(1.6rem, 8vw, 2.7rem); }
  .composer-grid { grid-template-columns: 1fr; }
  .composer-preview { position: static; min-height: 210px; }
  .history-item { grid-template-columns: auto minmax(0, 1fr); }
  .history-duration { grid-column: 2; text-align: left; }
  .section-head { align-items: start; flex-direction: column; }
}

/* Profiles, history, leaderboards, legal */
.page-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: end;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.page-head h1 { max-width: 14ch; margin-bottom: .6rem; }
.page-head > * { min-width: 0; }
.page-head h1 { overflow-wrap: anywhere; }
.page-head p { max-width: 650px; margin-bottom: 0; color: var(--muted); }

.profile-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.3rem;
  align-items: center;
  margin-bottom: 2rem;
}

.profile-head .avatar { width: 88px; height: 88px; font-size: 1.65rem; }
.profile-head h1 { max-width: none; margin: 0; font-size: clamp(2.8rem, 8vw, 6rem); text-transform: none; }
.profile-head p { margin: .35rem 0 0; color: var(--muted); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.stat-card {
  min-height: 130px;
  padding: 1rem;
  background: var(--panel);
}

.stat-value {
  display: block;
  color: var(--paper);
  font-size: clamp(1.65rem, 4vw, 2.8rem);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  display: block;
  margin-top: .6rem;
  color: var(--muted);
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: .75rem;
}

.badge-card {
  min-height: 150px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(170, 76, 255, .09), var(--ink-soft));
}

.badge-symbol {
  display: grid;
  width: 36px;
  height: 36px;
  margin-bottom: 1.3rem;
  place-items: center;
  border: 1px solid var(--purple);
  color: var(--purple-light);
  font-family: monospace;
  font-weight: 900;
}

.badge-card strong { display: block; font-size: .83rem; letter-spacing: .08em; }
.badge-card p { margin: .4rem 0 0; color: var(--muted); font-size: .76rem; }

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(270px, .65fr);
  gap: 1.3rem;
  align-items: start;
  margin-top: 2rem;
}

.feed-card {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--ink-soft);
}

.feed-card + .feed-card { margin-top: .75rem; }
.feed-card-head { display: flex; justify-content: space-between; gap: .8rem; color: var(--muted); font-size: .72rem; }
.feed-card p { margin: .85rem 0 0; overflow-wrap: anywhere; }

/* Private account center */
.account-route { max-width: 1120px; }
.account-head h1 { margin-bottom: .5rem; }
.account-head p { overflow-wrap: anywhere; }
.account-stats { margin-bottom: 3rem; }
.account-section { margin-top: clamp(2.5rem, 7vw, 5rem); }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.pending-orders { margin-top: 1rem; }

.account-card {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.account-card-head { display: flex; justify-content: space-between; gap: 1rem; align-items: start; margin-bottom: 1rem; }
.account-card-head > div { display: grid; gap: .25rem; min-width: 0; }
.account-card-head > div a,
.account-card-head > a { color: var(--paper); font-weight: 900; overflow-wrap: anywhere; }
.account-card-head small { color: var(--muted); }
.account-card .holder-message { max-width: none; margin: 0; padding-block: .5rem; font-size: 1rem; font-weight: 650; text-transform: none; }
.account-card .holder-image { max-height: 260px; margin: .65rem 0; }
.account-timer { color: var(--green); font-family: ui-monospace, monospace; font-size: .9rem; white-space: nowrap; }
.owner-banner-form { margin-top: .5rem; }
.owner-banner-form .field { margin-bottom: .6rem; }
.settings-stack { display: grid; gap: 1rem; }

.timeline {
  position: relative;
  display: grid;
  gap: 1rem;
  padding-left: 1.5rem;
}

.timeline::before {
  position: absolute;
  top: .5rem;
  bottom: .5rem;
  left: 4px;
  width: 1px;
  background: var(--line);
  content: "";
}

.timeline-entry {
  position: relative;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.timeline-entry::before {
  position: absolute;
  top: 1.25rem;
  left: -1.72rem;
  width: 9px;
  height: 9px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 10px var(--purple);
  content: "";
}

.timeline-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  margin-bottom: .75rem;
}

.timeline-meta { color: var(--muted); font-size: .72rem; }
.tombstone { color: var(--muted); font-style: italic; }

.tab-list {
  display: flex;
  max-width: 100%;
  gap: .5rem;
  margin-bottom: 1.2rem;
  padding-bottom: .5rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.tab-button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: .65rem .85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font-size: .69rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}

.tab-button[aria-selected="true"],
.tab-button:hover {
  border-color: var(--purple);
  background: rgba(170, 76, 255, .1);
  color: var(--paper);
}

.leaderboard-list {
  display: grid;
  gap: .55rem;
}

.rank-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  min-height: 78px;
  padding: .8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.rank-number {
  color: var(--purple-light);
  font-family: monospace;
  font-size: 1rem;
  font-weight: 900;
}

.rank-user { display: flex; min-width: 0; align-items: center; gap: .75rem; }
.rank-user div { min-width: 0; }
.rank-user strong,
.rank-user span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-user span { color: var(--muted); font-size: .72rem; }
.rank-score { color: var(--paper); font-family: monospace; font-size: .94rem; text-align: right; }
.rank-score small { display: block; margin-top: .2rem; color: var(--muted); font-family: inherit; font-size: .6rem; text-transform: uppercase; }

.legal-shell {
  display: grid;
  grid-template-columns: minmax(0, .45fr) minmax(0, 1fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: start;
}

.legal-nav {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  display: grid;
  gap: .45rem;
}

.legal-nav a {
  padding: .75rem .9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
}

.legal-nav a[aria-current="page"] { border-color: var(--purple); color: var(--paper); }

.legal-copy {
  max-width: 760px;
  padding: clamp(1.2rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.legal-copy h1 { max-width: 12ch; font-size: clamp(2.7rem, 7vw, 5.5rem); }
.legal-copy h2 { margin-top: 2.5rem; font-family: inherit; font-size: 1.35rem; line-height: 1.2; text-transform: none; }
.legal-copy h3 { margin-top: 1.7rem; font-family: inherit; font-size: 1.05rem; line-height: 1.2; text-transform: none; }
.legal-copy p,
.legal-copy li { color: #c8bfce; }
.legal-copy li + li { margin-top: .45rem; }

/* Admin */
.admin-route {
  width: min(calc(100% - 1rem), 1380px);
  padding-top: 1.5rem;
}

.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.admin-head h1 { max-width: none; margin: 0; font-size: clamp(2rem, 5vw, 3.5rem); }

.admin-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.admin-nav {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
  display: grid;
  gap: .35rem;
  padding: .6rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.admin-nav button {
  min-height: 42px;
  padding: .65rem .75rem;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
}

.admin-nav button[aria-selected="true"],
.admin-nav button:hover { border-color: var(--line); background: var(--ink-soft); color: var(--paper); }

.admin-content { min-width: 0; }
.admin-section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.admin-section-head h2 { margin: 0; font-size: clamp(2rem, 5vw, 3.3rem); }

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
}

.admin-metric {
  min-height: 120px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.admin-metric strong { display: block; font-size: clamp(1.7rem, 4vw, 2.7rem); }
.admin-metric span { color: var(--muted); font-size: .66rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }

.data-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.data-scroll { max-width: 100%; overflow-x: auto; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .78rem;
}

.data-table th,
.data-table td {
  padding: .8rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: #0d0a12;
  color: var(--muted);
  font-size: .61rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.data-table tr:last-child td { border-bottom: 0; }
.data-table td { max-width: 320px; overflow-wrap: anywhere; }
.row-actions { display: flex; flex-wrap: wrap; gap: .35rem; }

.admin-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.admin-form .field { margin: 0; }
.admin-form .span-2 { grid-column: span 2; }
.admin-form .span-all { grid-column: 1 / -1; }

.batch-create-form { margin-bottom: 1rem; }
.batch-print-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--ink-soft);
}
.batch-print-panel p { margin: .3rem 0 0; }
.batch-code { font-family: var(--mono); letter-spacing: .05em; }

.print-workflow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.print-workflow li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: .75rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.print-workflow li > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  font-weight: 950;
}

.print-workflow strong { display: block; font-size: .76rem; letter-spacing: .06em; }
.print-workflow p { margin: .35rem 0 0; color: var(--muted); font-size: .82rem; }
.print-batch-list { display: grid; gap: .75rem; }

.print-batch-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 250px);
  gap: 1rem;
  align-items: center;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.print-batch-card.is-latest { border-color: var(--purple); box-shadow: inset 3px 0 0 var(--purple); }
.print-batch-card h3 { margin: .65rem 0 .25rem; }
.print-batch-card .chip-row { margin-top: .8rem; }
.print-batch-actions { display: grid; gap: .5rem; }

.print-pack-hero {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  margin-bottom: 1rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid var(--purple-dark);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(170, 76, 255, .14), var(--panel));
}

.print-pack-hero h3 { margin: .3rem 0 .5rem; font-size: clamp(1.5rem, 4vw, 2.5rem); }
.four-up-example {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  aspect-ratio: 8.5 / 11;
  padding: 10px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
}

.four-up-example span {
  display: grid;
  place-items: center;
  border: 2px solid #111;
  border-radius: 5px;
  background: repeating-linear-gradient(45deg, #fff, #fff 6px, #f1e9f7 6px, #f1e9f7 12px);
  color: #111;
  font-family: monospace;
  font-size: clamp(.75rem, 2vw, 1rem);
  font-weight: 950;
}

.print-checklist {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .5rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.print-checklist li { padding: .8rem; border-left: 3px solid var(--green); background: var(--ink-soft); }
.print-checklist strong,
.print-checklist span { display: block; }
.print-checklist strong { color: var(--green); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.print-checklist span { margin-top: .25rem; color: var(--muted); font-size: .8rem; }
.print-download-head { margin-top: 1rem; }
.print-sheet-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }

.print-sheet-card {
  display: grid;
  grid-template-columns: minmax(115px, 34%) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: .8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.print-sheet-preview { overflow: hidden; border-radius: 5px; background: #fff; }
.print-sheet-preview img { width: 100%; aspect-ratio: 8.5 / 11; object-fit: contain; }
.print-sheet-copy strong { display: block; margin: .35rem 0; font-size: .82rem; }
.print-sheet-copy p { margin-bottom: .65rem; font-size: .76rem; }

.qr-art-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  margin-top: .75rem;
}

.qr-art-card {
  min-width: 0;
  padding: .8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: #0a0710;
}

.qr-art-card img { width: 100%; max-height: 440px; object-fit: contain; }
.qr-art-card a { display: block; margin-top: .5rem; color: #572098; font-weight: 800; text-align: center; }

@media (max-width: 980px) {
  .stat-grid,
  .admin-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-grid { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-nav { position: static; display: flex; max-width: 100%; overflow-x: auto; }
  .admin-nav button { flex: 0 0 auto; }
  .admin-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .print-workflow { grid-template-columns: 1fr; }
  .print-sheet-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .page-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .page-head h1 { font-size: clamp(2.6rem, 12vw, 4rem); }
  .profile-head { grid-template-columns: 1fr; }
  .stat-grid,
  .admin-metrics { grid-template-columns: 1fr 1fr; }
  .stat-card,
  .admin-metric { min-height: 105px; }
  .legal-shell { grid-template-columns: 1fr; }
  .legal-nav { position: static; grid-template-columns: 1fr; }
  .rank-row { grid-template-columns: 38px minmax(0, 1fr); }
  .rank-score { grid-column: 2; text-align: left; }
  .admin-head,
  .admin-section-head { align-items: start; flex-direction: column; }
  .batch-print-panel { align-items: flex-start; flex-direction: column; }
  .print-batch-card,
  .print-pack-hero { grid-template-columns: 1fr; }
  .four-up-example { width: min(100%, 250px); margin: 0 auto; }
  .print-checklist { grid-template-columns: 1fr; }
  .admin-form { grid-template-columns: 1fr; }
  .admin-form .span-2,
  .admin-form .span-all { grid-column: auto; }
  .qr-art-grid { grid-template-columns: 1fr; }
  .owner-banner { grid-template-columns: 1fr; gap: .3rem; }
  .account-grid { grid-template-columns: 1fr; }
  .account-head { display: block; }
  .account-head .button-row { margin-top: 1rem; }
}

@media (max-width: 760px) {
  :root { --header-height: 68px; }

  .site-header { padding-block: .65rem; }
  .brand-mark { width: 34px; height: 34px; }
  .nav-toggle { display: block; }

  .site-nav {
    position: fixed;
    z-index: 39;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    display: grid;
    width: min(86vw, 360px);
    align-content: start;
    gap: .5rem;
    padding: 1.2rem;
    border-left: 1px solid var(--line);
    background: rgba(10, 7, 14, .98);
    box-shadow: -20px 0 60px rgba(0, 0, 0, .45);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateX(0);
    transition: opacity .2s ease, visibility .2s ease;
  }

  .nav-open .site-nav { visibility: visible; opacity: 1; pointer-events: auto; }
  .site-nav a { padding: 1rem; border: 1px solid transparent; font-size: .9rem; }
  .nav-open .nav-toggle span:not(.sr-only):first-of-type { transform: translateY(3.5px) rotate(45deg); }
  .nav-open .nav-toggle span:not(.sr-only):last-of-type { transform: translateY(-3.5px) rotate(-45deg); }

  .site-footer {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .button-row .button { flex: 1 1 150px; }
}

@media (max-width: 430px) {
  .brand-copy small { display: none; }
  .route,
  .section { width: min(calc(100% - 1.25rem), var(--content)); }
  .panel-body { padding: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .scanline { display: none; }
}

@media (forced-colors: active) {
  .panel,
  .button,
  .field input,
  .field textarea,
  .field select { border: 1px solid CanvasText; }
}
