:root {
  --bg: #0b0b0c;
  --bg2: #131315;
  --bg3: #1a1a1d;
  --line: #222225;
  --line2: #2e2e33;
  --paper: #ededee;
  --muted: #a1a1a8;
  --dim: #6c6c74;
  --accent: #5b84ff;
  --acc-rgb: 91, 132, 255;
  --ink: #060c22;
  --accent2: #5b84ff;
  --warn: #e8b04a;
  --bad: #ef6b6b;
  --ok: #3fbf7f;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Schibsted Grotesk', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --gut: clamp(16px, 4vw, 48px);
  --max: 1240px;
  color-scheme: dark;
}

:root[data-accent="green"] {
  --accent: #2fc77c;
  --acc-rgb: 47, 199, 124;
  --ink: #03140b;
  --accent2: #2fc77c;
}

:root[data-accent="purple"] {
  --accent: #9b7bff;
  --acc-rgb: 155, 123, 255;
  --ink: #110a26;
  --accent2: #9b7bff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body,
html {
  margin: 0;
  overflow-x: clip;
}

body {
  background: var(--bg);
  color: var(--paper);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: 0 0;
  border: 0;
  padding: 0;
  cursor: pointer;
}

img,
svg {
  max-width: 100%;
}

::selection {
  background: var(--accent);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

[hidden] {
  display: none !important;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
}

/* =========================
   Top Fixed Bar (1:1 Streyn)
   ========================= */
.bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  height: 64px;
  padding: 0 var(--gut);
  background: 0 0;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}

.bar:not(.solid) {
  background: linear-gradient(rgba(11, 11, 12, .95) 55%, rgba(11, 11, 12, .7));
}

.bar.solid {
  background: rgba(11, 11, 12, .92);
  border-color: var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.bar .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}

.word {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}

.disc {
  width: 30px;
  height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  color: var(--paper);
}

.disc svg {
  width: 30px;
  height: 30px;
  display: block;
}

.wm-text {
  font: 700 21px/1 var(--sans);
  letter-spacing: -.03em;
  color: var(--paper);
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.wm-tag {
  font: 500 11px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dim);
  padding-left: 10px;
  border-left: 1px solid var(--line2);
}

.links {
  display: flex;
  gap: 2px;
  margin-right: 10px;
}

.links a {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14.5px;
  color: var(--muted);
  transition: color .2s;
}

.links a.on,
.links a:hover {
  color: var(--paper);
}

.ib {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--line2);
  color: var(--paper);
  flex: none;
  transition: border-color .2s, background .2s, color .2s;
}

.ib:hover {
  border-color: var(--dim);
}

.ib svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.ib.wp {
  background: var(--paper);
  color: #0b0b0c;
  border-color: var(--paper);
}

.ib.wp:hover {
  background: #fff;
  border-color: #fff;
}

.ib.acc {
  border-color: rgba(var(--acc-rgb), .55);
  background: rgba(var(--acc-rgb), .12);
  color: var(--paper);
}

.ib.acc:hover {
  border-color: var(--accent);
  background: rgba(var(--acc-rgb), .2);
}

.ib.sq {
  width: 36px;
  padding: 0;
}

.ib.sq svg {
  width: 18px;
  height: 18px;
}

.role-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--line2);
  background: var(--bg2);
  font: 500 12.5px var(--mono);
  color: var(--muted);
}

.role-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
}

.role-pill.is-admin i {
  background: var(--accent);
}

#burger {
  display: none;
}

/* Mobile Sheet */
.sheet {
  position: fixed;
  z-index: 29;
  top: 64px;
  left: 0;
  right: 0;
  padding: 8px var(--gut) 18px;
  background: rgba(11, 11, 12, .97);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  visibility: hidden;
  transition: opacity .2s, transform .2s, visibility .2s;
}

.sheet.open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  visibility: visible;
}

.sheet a {
  display: block;
  padding: 13px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
}

.sheet a:last-child {
  border-bottom: 0;
}

@media (max-width: 1020px) {
  .links {
    display: none;
  }
  #burger {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .wm-tag {
    display: none;
  }
  .role-pill {
    display: none;
  }
}

@media (max-width: 560px) {
  .bar .wm-text {
    display: none;
  }
  .ib.wp span,
  .ib.acc span {
    display: none;
  }
  .ib.wp,
  .ib.acc {
    width: 36px;
    padding: 0;
  }
}

/* =========================
   Settings Drawer (1:1 Streyn)
   ========================= */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, .55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}

.panel {
  position: fixed;
  z-index: 61;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(360px, 100vw);
  padding: 24px var(--gut) 28px;
  background: var(--bg2);
  border-left: 1px solid var(--line2);
  transform: translateX(102%);
  transition: transform .4s cubic-bezier(.2, .8, .2, 1);
  display: flex;
  flex-direction: column;
  gap: 28px;
  overflow-y: auto;
}

body.set-open .scrim,
body.modal-open .scrim {
  opacity: 1;
  pointer-events: auto;
}

body.set-open .panel {
  transform: none;
}

.panel-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-h h3 {
  margin: 0;
  font: 600 22px var(--sans);
}

.x {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line2);
  color: var(--muted);
  transition: border-color .2s, color .2s;
}

.x:hover {
  border-color: var(--dim);
  color: var(--paper);
}

.opt .lbl {
  font-size: 13px;
  color: var(--dim);
  margin-bottom: 10px;
}

.choice {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.choice button {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  color: var(--muted);
  font-size: 16px;
  transition: color .2s;
}

.choice button::after {
  content: '';
  margin-left: auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--line2);
}

.choice button.on {
  color: var(--paper);
}

.choice button.on::after {
  background: var(--paper);
  border-color: var(--paper);
}

.choice i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.panel small {
  margin-top: auto;
  font-size: 12px;
  color: var(--dim);
}

.panel small .legal {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line2);
}

.panel small .legal:hover {
  color: var(--paper);
}

/* =========================
   Hero & Login Gate (1:1 Streyn)
   ========================= */
.hero {
  position: relative;
  min-height: min(100svh, 940px);
  display: flex;
  align-items: center;
  padding: 110px var(--gut) 90px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero.login-hero {
  min-height: 100svh;
  border-bottom: 0;
}

.hero .wrap {
  width: 100%;
  position: relative;
  z-index: 2;
}

.login-grid {
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(0, 420px);
  justify-content: space-between;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.htxt {
  max-width: 560px;
}

.hero h1 {
  margin: 0;
  font: 500 clamp(46px, 6.4vw, 88px)/1 var(--serif);
  font-variation-settings: 'opsz' 144;
  letter-spacing: -.03em;
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--muted);
}

.hero .lead {
  max-width: 500px;
  color: var(--muted);
  font-size: 18.5px;
  margin: 26px 0 34px;
}

.hero .lead b {
  color: var(--paper);
  font-weight: 600;
}

.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15.5px;
  border: 1px solid var(--line2);
  transition: background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}

.btn:hover {
  border-color: var(--dim);
}

.btn.solid {
  background: var(--paper);
  color: #0b0b0c;
  border-color: var(--paper);
}

.btn.solid:hover {
  background: #fff;
  border-color: #fff;
}

.btn.accent-btn {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}

.btn.accent-btn:hover {
  filter: brightness(1.08);
}

.btn.sm {
  height: 40px;
  padding: 0 16px;
  font-size: 14px;
  border-radius: 8px;
}

.btn.danger {
  border-color: rgba(239, 107, 107, .35);
  color: var(--bad);
}

.btn.danger:hover {
  background: rgba(239, 107, 107, .12);
  border-color: var(--bad);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.meta {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--dim);
  display: flex;
  gap: 6px 22px;
  flex-wrap: wrap;
  max-width: 500px;
}

.meta b {
  color: var(--muted);
  font-weight: 500;
}

/* Ambient Hero Canvas & Vignette */
.stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(11, 11, 12, .96) 0,
    rgba(11, 11, 12, .9) 44%,
    rgba(11, 11, 12, .42) 58%,
    rgba(11, 11, 12, .08) 76%
  );
}

.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 30%;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
  z-index: 1;
}

/* Login Card (1:1 .wpop card aesthetic) */
.login-card {
  width: 100%;
  padding: 28px;
  border-radius: 14px;
  background: rgba(19, 19, 21, .92);
  border: 1px solid var(--line2);
  box-shadow: 0 24px 60px -20px #000;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.login-card .eyebrow {
  font: 500 11.5px var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.login-card .eyebrow i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.login-card h2 {
  margin: 0 0 6px;
  font: 600 22px/1.2 var(--sans);
}

.login-card .sub {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 13px;
  color: var(--dim);
  margin-bottom: 7px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--line2);
  background: var(--bg);
  color: var(--paper);
  font: 14.5px var(--mono);
  outline: 0;
  transition: border-color .2s;
}

.field select {
  font-family: var(--sans);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
}

.pw-wrap {
  position: relative;
}

.pw-wrap input {
  padding-right: 44px;
}

.pw-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: var(--dim);
}

.pw-toggle:hover {
  color: var(--paper);
  background: var(--bg3);
}

.form-err {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  border-left: 3px solid var(--bad);
  background: rgba(239, 107, 107, .08);
  color: var(--paper);
  font-size: 13.5px;
}

.form-ok {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  border-left: 3px solid var(--ok);
  background: rgba(63, 191, 127, .08);
  color: var(--paper);
  font-size: 13.5px;
}

.login-card .go {
  width: 100%;
  height: 46px;
  margin-top: 8px;
  border-radius: 10px;
  background: var(--paper);
  color: #0b0b0c;
  font-weight: 600;
  font-size: 15px;
  transition: background .2s, opacity .2s;
}

.login-card .go:hover {
  background: #fff;
}

.login-card .go:disabled {
  opacity: .55;
  cursor: wait;
}

.login-foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font: 12px/1.5 var(--mono);
  color: var(--dim);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

/* Floating Session Status Card (.np 1:1 Streyn) */
.np {
  position: absolute;
  z-index: 3;
  right: var(--gut);
  bottom: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 10px;
  width: 310px;
  border-radius: 12px;
  background: rgba(19, 19, 21, .88);
  border: 1px solid var(--line2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.np-icon {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  flex: none;
  background: var(--bg3);
  border: 1px solid var(--line2);
  display: grid;
  place-items: center;
  color: var(--accent);
}

.np-icon svg {
  width: 22px;
  height: 22px;
}

.npx {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.npx small {
  font-size: 11.5px;
  color: var(--dim);
}

.npx b {
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.npx span {
  font-size: 13px;
  color: var(--muted);
}

.npbar {
  height: 2px;
  border-radius: 2px;
  background: var(--line2);
  margin-top: 7px;
  overflow: hidden;
}

.npbar i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--accent);
  transform-origin: 0 0;
  animation: pulseBar 6s ease-in-out infinite;
}

@keyframes pulseBar {
  0%, 100% { transform: scaleX(.35); }
  50% { transform: scaleX(1); }
}

/* =========================
   3-Column Stats Strip (.free)
   ========================= */
.free {
  padding: clamp(40px, 5vw, 64px) var(--gut);
  border-bottom: 1px solid var(--line);
}

.free .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.fr {
  padding: 0 32px;
}

.fr:first-child {
  padding-left: 0;
}

.fr + .fr {
  border-left: 1px solid var(--line);
}

.fr b {
  display: block;
  font: 500 clamp(38px, 4.2vw, 56px)/1 var(--serif);
  font-variation-settings: 'opsz' 144;
  letter-spacing: -.02em;
  color: var(--paper);
}

.fr span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 16px;
  max-width: 310px;
}

@media (max-width: 760px) {
  .free .wrap {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .fr,
  .fr:first-child {
    padding: 0;
  }
  .fr + .fr {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 26px;
  }
}

/* =========================
   Sections & Editorial Headers
   ========================= */
.sec {
  padding: clamp(80px, 9.5vw, 132px) var(--gut);
  border-bottom: 1px solid var(--line);
}

.sh {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 20px 56px;
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.lab {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  align-items: baseline;
  font: 500 12.5px var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dim);
}

.sh h2 {
  margin: 0;
  font: 500 clamp(34px, 4.4vw, 60px)/1.04 var(--serif);
  font-variation-settings: 'opsz' 144;
  letter-spacing: -.025em;
}

.sh h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--muted);
}

.sh p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  max-width: 560px;
}

/* =========================
   3-Column Chain (.chain)
   ========================= */
.chain {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line2);
}

.chain::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 2px;
  background: var(--accent);
  transform-origin: 0 0;
  transform: scaleX(var(--cp, 1));
}

.flow {
  position: absolute;
  left: 0;
  right: 0;
  top: -3px;
  height: 6px;
  pointer-events: none;
}

.flow i {
  position: absolute;
  inset: 0;
  animation: flow 4.2s linear infinite;
  will-change: transform;
}

.flow i::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--paper);
}

.flow i:nth-child(2) {
  animation-delay: -1.4s;
}

.flow i:nth-child(3) {
  animation-delay: -2.8s;
}

@keyframes flow {
  from { transform: translateX(0); opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  to { transform: translateX(calc(100% - 6px)); opacity: 0; }
}

.st {
  padding: 28px 32px 6px 0;
}

.st + .st {
  padding-left: 32px;
  border-left: 1px solid var(--line);
}

.st .t {
  font: 500 12px var(--mono);
  color: var(--accent);
}

.st h3 {
  margin: 10px 0 10px;
  font: 600 23px/1.2 var(--sans);
  transition: color .25s;
}

@media (hover: hover) {
  .st:hover h3 {
    color: var(--accent);
  }
}

.st p {
  color: var(--muted);
  margin: 0 0 20px;
  font-size: 16px;
}

.st dl {
  margin: 0;
  font-size: 15px;
}

.st dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.st dd {
  margin: 0;
  font: 12.5px var(--mono);
  color: var(--dim);
  align-self: center;
  white-space: nowrap;
}

/* =========================
   Script Vault & Download Rows (.dls)
   ========================= */
.vault-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.seg {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line2);
  border-radius: 10px;
  flex-wrap: wrap;
}

.seg button {
  height: 36px;
  padding: 0 15px;
  border-radius: 7px;
  font-size: 14px;
  color: var(--muted);
  transition: background .2s, color .2s;
}

.seg button.on {
  background: var(--bg3);
  color: var(--paper);
}

.search-box {
  position: relative;
  width: min(320px, 100%);
}

.search-box svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--dim);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  height: 42px;
  padding: 0 14px 0 38px;
  border-radius: 10px;
  border: 1px solid var(--line2);
  background: var(--bg2);
  color: var(--paper);
  font: 14.5px var(--sans);
  outline: 0;
}

.search-box input:focus {
  border-color: var(--accent);
}

.dls {
  border-top: 1px solid var(--line2);
}

.dl {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.35fr) auto;
  gap: 24px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line2);
}

.dl .n {
  font: 500 clamp(26px, 2.7vw, 38px)/1.08 var(--serif);
  letter-spacing: -.02em;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dl .n-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dl .d p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
  max-width: 500px;
}

.dl .d small {
  display: block;
  margin-top: 8px;
  font: 12.5px/1.6 var(--mono);
  color: var(--dim);
}

.dl .d .stop-note {
  color: var(--muted);
}

.dl-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dl .go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border-radius: 9px;
  border: 1px solid var(--line2);
  font-size: 14px;
  font-weight: 600;
  transition: background .2s, color .2s, border-color .2s;
}

.dl .go svg {
  width: 16px;
  height: 16px;
}

.dl:hover .go.primary-dl {
  background: var(--paper);
  color: #0b0b0c;
  border-color: var(--paper);
}

.dl .go.sec-btn:hover {
  border-color: var(--dim);
  background: var(--bg2);
}

.dl .go.del-btn:hover {
  border-color: var(--bad);
  color: var(--bad);
}

.yours {
  font: 500 11.5px/1 var(--mono);
  padding: 5px 9px;
  border-radius: 99px;
  border: 1px solid var(--line2);
  color: var(--muted);
  letter-spacing: 0;
}

.yours.acc {
  border-color: rgba(var(--acc-rgb), .5);
  color: var(--accent);
}

.yours.hidden-badge {
  border-color: rgba(232, 176, 74, .45);
  color: var(--warn);
}

.empty-state {
  padding: 48px 20px;
  text-align: center;
  border-bottom: 1px solid var(--line2);
  color: var(--muted);
}

/* =========================
   Interactive Stack Comparison (.mix & .demo)
   ========================= */
.mix {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.weights {
  border-top: 1px solid var(--line2);
}

.wt {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.wt .v {
  font: 500 22px/1 var(--mono);
  letter-spacing: -.02em;
}

.wt .v.p {
  color: var(--paper);
}

.wt .v.n {
  color: var(--dim);
}

.wt b {
  font-weight: 600;
  display: block;
}

.wt span {
  color: var(--muted);
  font-size: 15px;
}

.fine {
  color: var(--muted);
  font-size: 15px;
  margin: 22px 0 0;
  max-width: 540px;
}

.demo {
  border: 1px solid var(--line2);
  border-radius: 12px;
  padding: 22px 22px 18px;
  background: var(--bg2);
}

.demo .dh {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.demo .dh h3 {
  margin: 0;
  font: 600 19px var(--sans);
}

.demo .dh button {
  font-size: 13.5px;
  color: var(--muted);
}

.demo .dh button:hover {
  color: var(--paper);
}

.demo .hint {
  color: var(--dim);
  font-size: 14px;
  margin: 6px 0 12px;
}

.list {
  position: relative;
  border-top: 1px solid var(--line2);
}

.song {
  position: absolute;
  left: 0;
  right: 0;
  height: 68px;
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}

.song .i {
  font: 12.5px var(--mono);
  color: var(--dim);
}

.song .t {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song .t small {
  font-size: 13px;
  color: var(--dim);
  font-weight: 400;
  margin-left: 8px;
}

.song .why {
  font-size: 13px;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song .why.up {
  color: var(--accent);
}

.song .acts {
  display: flex;
  gap: 2px;
}

.song .acts button {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--dim);
  transition: color .15s, background .15s;
}

.song .acts button:hover {
  color: var(--paper);
  background: var(--bg3);
}

.song .acts svg {
  width: 16px;
  height: 16px;
}

.song .meter {
  position: absolute;
  left: 30px;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
  transition: width .5s cubic-bezier(.2, .8, .2, 1);
}

.keys {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 14px;
  font-size: 13px;
  color: var(--dim);
}

.keys span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

/* =========================
   Reference Tabs & Terminal (.tabs, .term, .steps)
   ========================= */
.tabs {
  display: flex;
  gap: 26px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--line2);
  margin-bottom: 32px;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tabs button {
  flex: none;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--dim);
  position: relative;
}

.tabs button:hover {
  color: var(--muted);
}

.tabs button.on {
  color: var(--paper);
}

.tabs button.on::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--paper);
}

.pane {
  display: none;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(28px, 5vw, 64px);
}

.pane.on {
  display: grid;
}

.term {
  background: #070708;
  border: 1px solid var(--line2);
  border-radius: 10px;
  overflow: hidden;
  align-self: start;
  min-width: 0;
}

.term-h {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font: 12px var(--mono);
  color: var(--dim);
}

.term-h button {
  margin-left: auto;
  font-size: 13px;
  color: var(--muted);
}

.term-h button:hover {
  color: var(--paper);
}

.term pre {
  margin: 0;
  padding: 18px;
  font: 13.5px/1.75 var(--mono);
  color: #d4d4d8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 460px;
  overflow-y: auto;
}

.term .p {
  color: var(--dim);
  user-select: none;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: s;
}

.steps li {
  counter-increment: s;
  position: relative;
  padding: 0 0 20px 40px;
  color: var(--muted);
  font-size: 16px;
}

.steps li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--line2);
  display: grid;
  place-items: center;
  font: 500 12px var(--mono);
  color: var(--paper);
}

.steps b {
  color: var(--paper);
}

.notes code,
.steps code,
.admin-card code {
  font: 13px var(--mono);
  color: var(--paper);
  background: var(--bg3);
  padding: 1px 6px;
  border-radius: 4px;
  overflow-wrap: anywhere;
}

/* =========================
   Admin Control Studio (Full Editor)
   ========================= */
.announcement-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  margin-bottom: 24px;
  border-radius: 10px;
  border: 1px solid rgba(var(--acc-rgb), .4);
  background: rgba(var(--acc-rgb), .08);
  color: var(--paper);
  font-size: 14.5px;
}

.announcement-bar b {
  font: 500 11.5px var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  flex: none;
}

.admin-tabs {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--line2);
  margin-bottom: 28px;
}

.admin-tabs::-webkit-scrollbar {
  display: none;
}

.admin-tabs button {
  flex: none;
  padding: 12px 0;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--dim);
  position: relative;
}

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

.admin-tabs button.on {
  color: var(--paper);
}

.admin-tabs button.on::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
}

.admin-pane {
  display: none;
}

.admin-pane.on {
  display: block;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 28px;
  align-items: start;
}

.admin-grid.even {
  grid-template-columns: 1fr 1fr;
}

.admin-card {
  border: 1px solid var(--line2);
  border-radius: 12px;
  background: var(--bg2);
  padding: 24px;
}

.admin-card.sticky-preview {
  position: sticky;
  top: 84px;
}

.admin-card h3 {
  margin: 0 0 6px;
  font: 600 20px/1.25 var(--sans);
}

.admin-card .card-sub {
  margin: 0 0 18px;
  font-size: 14.5px;
  color: var(--muted);
}

.code-editor-box {
  border: 1px solid var(--line2);
  border-radius: 10px;
  overflow: hidden;
  background: #070708;
}

.code-editor-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  font: 12px var(--mono);
  color: var(--dim);
  background: #0d0d0f;
}

.code-editor-bar .ce-tools {
  display: flex;
  gap: 12px;
  align-items: center;
}

.code-editor-bar button {
  font: 12px var(--mono);
  color: var(--muted);
}

.code-editor-bar button:hover {
  color: var(--paper);
}

.code-editor-box textarea {
  width: 100%;
  min-height: 240px;
  border: 0 !important;
  border-radius: 0 !important;
  background: #070708 !important;
  color: #e4e4e7;
  padding: 16px;
  font: 13.5px/1.7 var(--mono);
  tab-size: 2;
}

.live-preview-shell {
  border: 1px solid var(--line2);
  border-radius: 10px;
  background: var(--bg);
  padding: 20px;
}

.live-preview-shell .dl {
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 0;
  border: 0;
}

.check-row {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  margin-top: 6px;
}

.check-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.inline-input-btn {
  display: flex;
  gap: 8px;
}

.inline-input-btn input {
  flex: 1;
}

.dl .go.icon-only {
  width: 38px;
  height: 38px;
  padding: 0;
  justify-content: center;
}

.dl .go.pinned-on {
  border-color: rgba(var(--acc-rgb), .6);
  color: var(--accent);
}

.user-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

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

.user-table th {
  font: 500 12px var(--mono);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--dim);
}

.audit-log {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 240px;
  overflow-y: auto;
  border-top: 1px solid var(--line);
}

.audit-log li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font: 12.5px/1.5 var(--mono);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.audit-log span:last-child {
  color: var(--dim);
  white-space: nowrap;
}

.dropzone {
  border: 1px dashed var(--line2);
  border-radius: 10px;
  padding: 24px 18px;
  text-align: center;
  background: var(--bg);
  margin-bottom: 16px;
  transition: border-color .2s, background .2s;
  cursor: pointer;
}

.dropzone:hover,
.dropzone.drag {
  border-color: var(--accent);
  background: rgba(var(--acc-rgb), .06);
}

.dropzone b {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.dropzone span {
  font: 12.5px var(--mono);
  color: var(--dim);
}

.form-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.version-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.version-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.version-list small {
  display: block;
  font: 12px var(--mono);
  color: var(--dim);
}

.status-banner {
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--line2);
  background: var(--bg);
  font: 13px/1.5 var(--mono);
  color: var(--muted);
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.status-banner.unsynced {
  border-color: rgba(232, 176, 74, .45);
  color: var(--warn);
}

/* =========================
   FAQ / Notes (.notes)
   ========================= */
.notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 56px;
  border-top: 1px solid var(--line2);
}

.notes div {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.notes h4 {
  margin: 0 0 6px;
  font: 600 17.5px/1.35 var(--sans);
}

.notes p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}

/* =========================
   Footer (1:1 Streyn)
   ========================= */
footer {
  padding: 56px var(--gut) 44px;
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.fl {
  display: flex;
  gap: 8px 24px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--dim);
}

.fl a:hover {
  color: var(--paper);
}

footer .word .disc,
footer .word .wm-text {
  color: var(--dim);
}

footer .word .disc svg {
  width: 26px;
  height: 26px;
}

/* =========================
   Code Preview Modal
   ========================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: var(--gut);
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  width: min(860px, 100%);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  background: var(--bg2);
  border: 1px solid var(--line2);
  box-shadow: 0 30px 80px -20px #000;
  overflow: hidden;
}

.modal-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.modal-h h3 {
  margin: 0;
  font: 600 19px var(--sans);
}

.modal-h small {
  display: block;
  font: 12px var(--mono);
  color: var(--dim);
  margin-top: 2px;
}

.modal-body {
  padding: 20px 22px;
  overflow-y: auto;
}

.modal-foot {
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Reveal Animations */
.js .rv {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
}

.js .rv.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .rv {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
  .flow i {
    animation: none;
  }
}

/* =========================
   Responsive Breakpoints (1:1 Streyn)
   ========================= */
@media (max-width: 1000px) {
  .hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 88px var(--gut) 64px;
  }
  .hero.login-hero {
    min-height: 100svh;
    justify-content: center;
  }
  .login-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero::before,
  .hero::after {
    opacity: .65;
  }
  .np {
    position: relative;
    right: auto;
    bottom: auto;
    margin: 34px 0 0;
    width: min(100%, 340px);
  }
  .htxt {
    max-width: none;
  }
  .sh {
    grid-template-columns: 1fr;
  }
  .chain {
    grid-template-columns: 1fr;
  }
  .st,
  .st + .st {
    padding: 24px 0 4px;
    border-left: 0;
  }
  .st + .st {
    border-top: 1px solid var(--line);
  }
  .flow {
    display: none;
  }
  .mix,
  .pane,
  .notes,
  .admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  .dl {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 22px 0;
  }
  .wt {
    grid-template-columns: 64px 1fr;
  }
  .song {
    grid-template-columns: 24px 1fr auto;
    gap: 8px;
  }
  .song .meter {
    left: 24px;
  }
  .song .t small {
    display: none;
  }
  .song .acts button {
    width: 30px;
  }
  .demo {
    padding: 18px 14px 14px;
  }
  .tabs {
    gap: 18px;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
    mask-image: linear-gradient(90deg, #000 85%, transparent);
    padding-right: 28px;
  }
  .seg {
    width: 100%;
  }
  .seg button {
    flex: 1;
    padding: 0 8px;
    font-size: 13.5px;
  }
  .form-2col {
    grid-template-columns: 1fr;
  }
}
