/* OpenCloud — white coder / retro-terminal, single mono font */

:root {
  --bg: #ffffff;
  --ink: #111111;
  --mute: #6b6b6b;
  --line: #e6e6e6;
  --panel: #fafafa;
  --accent: #111111;
  --invert: #111111;       /* CRT / cookie / inverted surfaces */
  --on-invert: #f5f5f5;
  --btn-fill: #111111;
  --btn-fg: #ffffff;
  --btn-hover: #000000;
  --ok: #0a7a3e;
  --err: #b42318;
  --lime: #b8ff3c;
  --font: "IBM Plex Mono", ui-monospace, "Cascadia Mono", monospace;
  --max: 980px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --scan: transparent;
}

/* Dark = CRT phosphor red text · light blacks · lime accents stay */
html[data-theme="dark"] {
  --bg: #141414;
  --ink: #ff3b3b;
  --mute: #c45c5c;
  --line: #2a2a2a;
  --panel: #1c1c1c;
  --accent: #ff3b3b;
  --invert: #0a0a0a;
  --on-invert: #f0e8e8;
  --btn-fill: #ff3b3b;
  --btn-fg: #0a0a0a;
  --btn-hover: #ff5a5a;
  --ok: #0a7a3e;
  --err: #ff6b6b;
  --lime: #b8ff3c;
  --scan: rgba(255, 59, 59, 0.03);
}

html[data-theme="dark"] body.oc-body {
  background-image:
    linear-gradient(var(--scan) 1px, transparent 1px);
  background-size: 100% 3px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.oc-body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  overflow-x: clip;
}

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

/* ── header (sticky on scroll) ──────────────────────────── */
.top {
  position: sticky;
  top: 0;
  z-index: 200;
  width: 100%;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.top__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
  width: min(100% - 2rem, 1100px);
  margin: 0 auto;
  padding: 0.85rem 0;
}
.logo {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--ink);
}
.logo__brace {
  color: var(--lime);
  font-weight: 600;
}
.logo__dot {
  animation: blink 1.05s steps(1) infinite;
  color: var(--ink);
}
.top nav,
.top__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.95rem;
  align-items: center;
}
.top nav a,
.top__nav > a {
  text-decoration: none;
  font-size: 0.78rem;
  color: var(--mute);
  transition: color 0.15s ease;
}
.top nav a:hover,
.top__nav > a:hover { color: var(--ink); }
.nav-cart__n {
  display: inline-block;
  margin-left: 0.25rem;
  min-width: 1.1rem;
  padding: 0 0.28rem;
  border: 1px solid var(--ink);
  font-size: 0.68rem;
  text-align: center;
}
.nav-account { text-transform: lowercase; }

/* ── mode.exe — nano DIP C|D (navbar-friendly) ──────────── */
.mode-select {
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  margin-left: 0.2rem;
  border: 1px solid var(--ink);
  background: var(--bg);
  user-select: none;
  line-height: 1;
}
.mode-select__opt {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  margin: 0;
  min-width: 1.35rem;
  padding: 0.2rem 0.28rem 0.18rem;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--mute);
  cursor: pointer;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.12s ease, background 0.12s ease;
}
.mode-select__opt:last-child { border-right: 0; }
.mode-select__opt:hover { color: var(--ink); background: var(--panel); }
.mode-select__opt.is-on {
  color: var(--ink);
  background: var(--panel);
}
.mode-select__led {
  width: 0.32rem;
  height: 0.32rem;
  border: 1px solid var(--mute);
  background: transparent;
  flex-shrink: 0;
}
.mode-select__opt[data-theme-set="clean"].is-on .mode-select__led {
  border-color: var(--lime);
  background: var(--lime);
  box-shadow: 0 0 5px color-mix(in srgb, var(--lime) 60%, transparent);
}
.mode-select__opt[data-theme-set="dark"].is-on .mode-select__led {
  border-color: #ff3b3b;
  background: #ff3b3b;
  box-shadow: 0 0 5px rgba(255, 59, 59, 0.55);
}
.mode-select__lbl { line-height: 1; }

html[data-theme="dark"] .mode-select__opt.is-on {
  background: #1a1a1a;
}
/* display:flex on .cookie overrides HTML [hidden] — force hide */
.cookie[hidden],
.oc-toast[hidden],
.nav-cart[hidden],
[hidden] {
  display: none !important;
}

/* ── layout bits ────────────────────────────────────────── */
.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.narrow { max-width: 520px; }
.section { padding: 4.25rem 0; }
.section--tight { padding-top: 1.5rem; }
.kicker {
  margin: 0 0 0.65rem;
  color: var(--mute);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}
.display {
  margin: 0 0 1.25rem;
  font-weight: 600;
  font-size: clamp(1.55rem, 4vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.display-sm {
  margin: 0 0 0.75rem;
  font-weight: 600;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.lede {
  margin: 0 0 2rem;
  max-width: 42ch;
  color: var(--mute);
}
.muted { color: var(--mute); font-size: 0.82rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--ink);
  background: var(--bg);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  font-size: 0.8rem;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--btn-fill); color: var(--btn-fg); }
.btn-primary:hover { background: var(--btn-hover); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--panel); }
.btn-sm { padding: 0.45rem 0.7rem; font-size: 0.72rem; }
.btn-block { width: 100%; }
/* pack SCORE — open shop uses lime > (checkout keeps ()) */
.btn__caret {
  color: var(--lime);
  font-weight: 600;
  margin-left: 0.2rem;
  letter-spacing: 0;
  transition: transform 0.15s var(--ease);
}
.btn-shop-go:hover .btn__caret {
  transform: translateX(2px);
}

/* ── hero ───────────────────────────────────────────────── */
.hero {
  width: min(100% - 2rem, 1100px);
  margin: 0 auto;
  min-height: calc(100vh - 4.5rem);
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 2rem;
  padding: 2.5rem 0 3rem;
}
@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
    gap: 3rem;
    padding: 3.5rem 0 4rem;
  }
}
.hero__main {
  animation: fadeUp 0.7s var(--ease) both;
  min-width: 0;
}
.hero__brand {
  margin: 0 0 1.75rem;
  font-size: clamp(2.4rem, 8vw, 4.6rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 0.95;
  color: var(--ink);
}
.hero__brand-brace {
  color: var(--lime);
  font-weight: 600;
}
.hero__brand-us {
  color: var(--ink);
  font-weight: 600;
}
.hero__prompt {
  margin: 0;
  font-size: clamp(1.05rem, 2.6vw, 1.45rem);
  font-weight: 500;
  min-height: 1.6em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero__ps { color: var(--mute); }
.hero__word {
  display: inline-block;
  min-width: 2ch;
  border-bottom: 1px solid transparent;
}
.hero__word.is-live {
  border-bottom-color: var(--lime);
}
.hero__cursor {
  display: inline-block;
  margin-left: 1px;
  color: var(--ink);
  animation: blink 1.05s steps(1) infinite;
  font-weight: 400;
}
.hero__sub {
  margin: 1.35rem 0 0;
  max-width: 36ch;
  color: var(--mute);
  font-size: 0.9rem;
  animation: fadeUp 0.7s 0.15s var(--ease) both;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 2rem;
  animation: fadeUp 0.7s 0.28s var(--ease) both;
}

/* boot.exe — classic light terminal; dark site theme → CRT red borders */
.hero__boot {
  --term-bg: #fff;
  --term-fg: #111;
  --term-mute: #666;
  --term-dim: #aaa;
  --term-line: #d8d8d8;
  --term-dash: #ececec;
  --term-bar: #111;
  --term-bar-fg: #fff;
  --term-panel: #fff;
  --term-scan: rgba(17, 17, 17, 0.025);
  --term-live: #111;
  display: block;
  border: 1px solid #111;
  background: var(--term-bg);
  color: var(--term-fg);
  align-self: stretch;
  max-width: 100%;
  overflow: hidden;
  animation: fadeUp 0.7s 0.35s var(--ease) both;
}
.hero__boot-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.32rem 0.5rem 0.32rem 0.6rem;
  background: var(--term-bar);
  color: var(--term-bar-fg);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}
.hero__boot-app { font-weight: 600; }
.hero__boot-win {
  display: inline-flex;
  gap: 0.35rem;
  opacity: 0.75;
}
.hero__boot-win i {
  font-style: normal;
  font-size: 0.66rem;
  line-height: 1;
}
.hero__boot-body {
  position: relative;
  padding: 0.65rem 0.7rem 0.6rem;
  background: var(--term-bg);
}
.hero__boot-body::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    var(--term-scan) 2px,
    var(--term-scan) 3px
  );
  z-index: 0;
}
.hero__boot-body > * { position: relative; z-index: 1; }
.hero__boot-line {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  color: var(--term-mute);
}
.hero__boot-ps {
  color: var(--lime);
  font-weight: 700;
  margin-right: 0.28rem;
}
.hero__boot-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--term-line);
  background: var(--term-panel);
}
.hero__boot-list li {
  display: grid;
  grid-template-columns: 0.85rem 1fr auto auto;
  gap: 0.35rem 0.5rem;
  align-items: baseline;
  margin: 0;
  padding: 0.38rem 0.45rem;
  border-bottom: 1px dashed var(--term-dash);
  font-size: 0.84rem;
  color: #777;
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 0.35s var(--ease),
    transform 0.35s var(--ease),
    background 0.12s ease,
    color 0.12s ease;
  cursor: default;
}
.hero__boot-list li:last-child { border-bottom: 0; }
.hero__boot-list li.is-in {
  opacity: 1;
  transform: translateY(0);
}
.hero__boot-list li[data-href] { cursor: pointer; }
.hero__boot-list li[data-href]:hover {
  color: var(--term-live);
  background: color-mix(in srgb, var(--lime) 10%, transparent);
}
.hero__boot-list li.is-live {
  color: var(--term-live);
  font-weight: 600;
  background: color-mix(in srgb, var(--lime) 18%, transparent);
}
.hero__boot-list li.is-live[data-href]:hover {
  background: color-mix(in srgb, var(--lime) 26%, transparent);
  color: var(--term-live);
}
.hero__boot-gt {
  display: inline-block;
  width: 0.7rem;
  text-align: center;
  font-weight: 700;
  color: transparent;
}
.hero__boot-list li.is-live .hero__boot-gt {
  color: var(--lime);
}
.hero__boot-list li.is-live .hero__boot-gt::before { content: '>'; }
.hero__boot-list li.is-live .hero__boot-st { color: var(--lime); }
.hero__boot-name { font-weight: 500; letter-spacing: -0.01em; }
.hero__boot-list li.is-live .hero__boot-name { font-weight: 700; }
.hero__boot-tag {
  font-size: 0.66rem;
  color: var(--term-dim);
  letter-spacing: 0.04em;
  border: 0;
  padding: 0;
}
.hero__boot-list li.is-live .hero__boot-tag { color: var(--term-mute); }
.hero__boot-st {
  font-size: 0.72rem;
  color: var(--term-dim);
  min-width: 1.8rem;
  text-align: right;
}
.hero__boot-more .hero__boot-st { color: var(--term-dim); }
.hero__boot-foot {
  margin: 0.45rem 0 0;
  font-size: 0.66rem;
  color: var(--term-dim);
  letter-spacing: 0.03em;
}
@media (min-width: 900px) {
  .hero__boot { align-self: center; }
  .hero__boot-bar {
    gap: 0.5rem;
    padding: 0.34rem 0.55rem 0.34rem 0.65rem;
    font-size: 0.76rem;
  }
  .hero__boot-win { gap: 0.35rem; }
  .hero__boot-win i { font-size: 0.68rem; }
  .hero__boot-body { padding: 0.7rem 0.8rem 0.65rem; }
  .hero__boot-line {
    margin: 0 0 0.4rem;
    font-size: 0.76rem;
  }
  .hero__boot-list li {
    grid-template-columns: 0.9rem 1fr auto auto;
    gap: 0.4rem 0.55rem;
    padding: 0.36rem 0.48rem;
    font-size: 0.88rem;
  }
  .hero__boot-gt { width: 0.78rem; }
  .hero__boot-tag { font-size: 0.7rem; }
  .hero__boot-st {
    font-size: 0.76rem;
    min-width: 1.9rem;
  }
  .hero__boot-foot {
    margin: 0.5rem 0 0;
    font-size: 0.7rem;
  }
}
/* site dark mode → CRT dark terminal, red borders */
html[data-theme="dark"] .hero__boot {
  --term-bg: #141414;
  --term-fg: var(--ink);
  --term-mute: var(--mute);
  --term-dim: #7a3a3a;
  --term-line: #3a1a1a;
  --term-dash: #2a1515;
  --term-bar: #0a0a0a;
  --term-bar-fg: #f0e8e8;
  --term-panel: #101010;
  --term-scan: rgba(255, 59, 59, 0.04);
  --term-live: #ff6b6b;
  border-color: var(--ink);
  color: var(--term-fg);
}
html[data-theme="dark"] .hero__boot-bar {
  border-bottom: 1px solid var(--ink);
}
html[data-theme="dark"] .hero__boot-list li { color: var(--mute); }
html[data-theme="dark"] .hero__boot-list li[data-href]:hover,
html[data-theme="dark"] .hero__boot-list li.is-live,
html[data-theme="dark"] .hero__boot-list li.is-live[data-href]:hover {
  color: var(--term-live);
}
html[data-theme="dark"] .hero__boot-list li.is-live .hero__boot-st,
html[data-theme="dark"] .hero__boot-list li.is-live .hero__boot-gt {
  color: var(--lime);
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── culture ────────────────────────────────────────────── */
.culture-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .culture-grid { grid-template-columns: 1fr 1fr; gap: 1.1rem 2rem; }
}
.culture-grid p {
  margin: 0;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-size: 0.9rem;
}
/* Notepad++ chrome — culture manifesto as a coder window */
.npp {
  margin: 1.75rem 0 0;
  max-width: 34rem;
  border: 1px solid var(--ink);
  background: var(--bg);
  font-family: var(--font);
  box-shadow: 4px 4px 0 color-mix(in srgb, var(--ink) 8%, transparent);
}
.npp__titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 0.45rem 0.35rem 0.65rem;
  background: var(--ink);
  color: var(--btn-fg);
  font-size: 0.68rem;
  letter-spacing: 0.01em;
}
html[data-theme="dark"] .npp__titlebar {
  background: #2a1010;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.npp__app {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.npp__win {
  display: flex;
  flex: 0 0 auto;
  gap: 1px;
}
.npp__win i {
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.15rem;
  font-style: normal;
  font-size: 0.7rem;
  line-height: 1;
  border: 1px solid color-mix(in srgb, var(--btn-fg) 35%, transparent);
}
.npp__win i:last-child {
  background: color-mix(in srgb, var(--lime) 85%, #111);
  color: #111;
  border-color: transparent;
  font-weight: 700;
}
.npp__menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.85rem;
  padding: 0.28rem 0.65rem;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  color: var(--mute);
  font-size: 0.65rem;
}
.npp__tabs {
  display: flex;
  gap: 0;
  padding: 0.3rem 0.35rem 0;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--ink) 4%, var(--panel));
}
.npp__tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.7rem 0.4rem;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 0;
  background: transparent;
  color: var(--mute);
  font: inherit;
  font-size: 0.7rem;
  cursor: pointer;
}
.npp__tab:hover { color: var(--ink); }
.npp__tab.is-on {
  position: relative;
  top: 1px;
  background: var(--bg);
  border-color: var(--line);
  color: var(--ink);
}
.npp__tab b {
  font-weight: 500;
  color: var(--mute);
}
.npp__editor[hidden] { display: none !important; }
.npp__editor {
  display: grid;
  grid-template-columns: auto 1fr;
  min-height: 8.5rem;
  background: var(--bg);
}
.npp__gutter {
  list-style: none;
  margin: 0;
  padding: 0.7rem 0.55rem 0.7rem 0.65rem;
  border-right: 1px solid var(--line);
  background: var(--panel);
  color: var(--mute);
  font-size: 0.72rem;
  line-height: 1.7;
  text-align: right;
  user-select: none;
}
.npp__gutter li { margin: 0; }
.npp__code {
  margin: 0;
  padding: 0.7rem 0.9rem;
  font: inherit;
  font-size: 0.8rem;
  line-height: 1.7;
  white-space: pre;
  overflow-x: auto;
  color: var(--ink);
}
.npp-c { color: var(--ok); }
.npp-k { color: var(--ink); font-weight: 600; }
.npp-op { color: var(--mute); }
.npp-v { color: var(--lime); }
html[data-theme="dark"] .npp-c { color: #7dcea0; }
html[data-theme="dark"] .npp-v { color: var(--lime); }
.npp__status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.9rem;
  padding: 0.28rem 0.65rem;
  border-top: 1px solid var(--line);
  background: var(--panel);
  color: var(--mute);
  font-size: 0.62rem;
  letter-spacing: 0.02em;
}

.roadmap {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.roadmap li {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}
.rm-tag {
  flex: 0 0 3.5rem;
  font-size: 0.68rem;
  color: var(--mute);
  text-transform: lowercase;
}

/* ── pack builder ───────────────────────────────────────── */
.pack-layout {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 860px) {
  .pack-layout {
    grid-template-columns: 1fr 260px;
    align-items: start;
    gap: 2rem;
  }
}
.svc-stack { min-width: 0; }
.svc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 0;
}
.svc-list:not(.is-expanded) .svc-row--more { display: none; }
.svc-list.is-expanded .svc-row--more {
  animation: fadeUp 0.4s var(--ease) both;
}
.svc-list.is-expanded .svc-row--more:nth-child(n + 1) { animation-delay: 0.02s; }
.svc-list.is-expanded .svc-row--more:nth-child(n + 2) { animation-delay: 0.06s; }
.svc-list.is-expanded .svc-row--more:nth-child(n + 3) { animation-delay: 0.1s; }

.svc-expand {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.55rem 0 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--mute);
  transition:
    background 0.16s var(--ease),
    color 0.16s var(--ease),
    border-color 0.16s var(--ease);
}
.svc-expand:hover {
  background: var(--lime);
  color: #111;
  border-color: var(--ink);
}
.svc-expand:hover .svc-expand__gt {
  color: #111;
}
.svc-expand:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 2px;
}
.svc-expand__gt {
  color: var(--lime);
  font-weight: 600;
  transition: transform 0.2s var(--ease), color 0.16s var(--ease);
}
.svc-expand[aria-expanded="true"] .svc-expand__gt {
  transform: rotate(90deg);
  color: var(--ink);
}
.svc-expand__label {
  flex: 1;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}
.svc-expand__tag {
  font-size: 0.65rem;
  color: var(--mute);
  border: 1px solid var(--line);
  padding: 0.05rem 0.35rem;
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease), color 0.16s var(--ease);
}
.svc-expand:hover .svc-expand__tag {
  border-color: #111;
  background: #111;
  color: var(--lime);
}
.svc-expand[aria-expanded="true"] {
  border-color: var(--ink);
  color: var(--ink);
}
.svc-expand[aria-expanded="true"] .svc-expand__tag {
  background: var(--lime);
  border-color: var(--ink);
  color: #111;
}

.svc-row {
  position: relative;
  border: 1px solid var(--line);
  border-left: 3px solid transparent;
  margin-bottom: 0.55rem;
  background: var(--bg);
  cursor: pointer;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.svc-row:last-child { margin-bottom: 0; }
.svc-row:hover {
  background: color-mix(in srgb, var(--ink) 3%, var(--bg));
}
.svc-row.is-on {
  border-color: var(--ink);
  border-left-color: var(--lime);
  background: var(--bg);
  box-shadow: none;
}
.svc-row.is-on:hover {
  background: color-mix(in srgb, var(--ink) 3%, var(--bg));
}
.svc-row.is-flash { animation: packFlash 0.48s var(--ease); }
.svc-row__form { margin: 0; }
.svc-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.15rem 0.75rem;
  align-items: start;
  text-align: left;
  padding: 1rem 1rem 0.45rem 0.85rem;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.svc-toggle:disabled { opacity: 0.55; cursor: wait; }
.svc-row:has(.svc-toggle:disabled) { cursor: wait; }
.svc-check {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--mute);
  letter-spacing: 0;
  white-space: nowrap;
  font-variant-ligatures: none;
  transition: transform 0.15s ease, color 0.12s ease;
}
.svc-row.is-on .svc-check {
  color: #111;
  background: var(--lime);
  box-shadow: 0 0 0 2px var(--lime);
}
.svc-check__x {
  color: var(--ink);
  font-weight: 700;
  text-shadow: none;
}
.svc-row.is-on .svc-check__x { color: #111; }
.svc-row.is-flash .svc-check { transform: scale(1.14); }
.svc-main {
  min-width: 0;
  display: grid;
  gap: 0.35rem;
}
.svc-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
}
.svc-id {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.65rem;
  min-width: 0;
}
.svc-name {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.svc-tag {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
  border: 1px solid var(--line);
  padding: 0.12rem 0.4rem;
  line-height: 1.2;
}
.svc-row.is-on .svc-tag {
  border-color: var(--line);
  color: var(--mute);
  background: transparent;
}
.svc-blurb {
  display: block;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--mute);
  max-width: none;
  white-space: normal;
}
.svc-price {
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.svc-row.is-on .svc-price { font-weight: 700; }
.svc-row__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  margin: 0 1rem 0.85rem 3.15rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--line);
}
.svc-act {
  position: relative;
  z-index: 2;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--mute);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.svc-act:hover {
  color: var(--ink);
  border-bottom-color: var(--lime);
}
.svc-act--edit {
  font-weight: 600;
  color: var(--ink);
  border-bottom-color: color-mix(in srgb, var(--lime) 45%, transparent);
}
.svc-act--edit:hover {
  color: #111;
  background: var(--lime);
  border-bottom-color: var(--lime);
  box-shadow: 0 0 0 3px var(--lime);
}
.svc-act--more {
  margin-left: auto;
}
.svc-host {
  font-size: 0.68rem;
  color: var(--mute);
  letter-spacing: 0.01em;
}
.svc-more { position: relative; z-index: 2; }

/* pack SCORE — same CRT HUD as module loadout__hud */
.pack-panel.loadout__hud {
  position: sticky;
  top: 1rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.pack-panel.loadout__hud.is-pulse {
  box-shadow: 0 0 0 1px var(--lime);
  animation: packPulse 0.42s var(--ease);
}
.pack-panel .loadout__score { margin-bottom: 1rem; }
/* checkout (light) pack summary — keep list style */
.pack-panel:not(.loadout__hud) {
  position: sticky;
  top: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--bg);
}
.pack-items {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
}
.pack-items li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.8rem;
}
.pack-total {
  margin: 0 0 0.9rem;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
}
.pack-panel .btn + .btn { margin-top: 0.45rem; }

/* open shop > — lime chevron */
.btn-shop__gt {
  color: var(--lime);
  font-weight: 700;
  margin-left: 0.15rem;
}
.pack-panel.loadout__hud .btn-shop:hover .btn-shop__gt,
.loadout__hud .btn-shop:hover .btn-shop__gt {
  color: var(--lime);
}
.oc-prefill {
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  border-left: 2px solid var(--lime);
  padding-left: 0.55rem;
  margin: 0.15rem 0 0.35rem;
}

/* ── forms ──────────────────────────────────────────────── */
.checkout-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 800px) {
  .checkout-grid { grid-template-columns: 1fr 260px; }
}
.form {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.25rem;
}
.form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--mute);
}
.form input,
.form textarea {
  width: 100%;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--line);
  background: var(--bg);
  outline: none;
}
.form input:focus,
.form textarea:focus { border-color: var(--ink); }
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.35rem;
}
.form-actions--solo {
  margin-top: 0.55rem;
}
/* pedir proposta — same lime CTA as /web/login submit */
.form-actions--solo .btn-primary {
  border: 1px solid var(--lime);
  background: var(--lime);
  color: #111;
  box-shadow: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.7rem 1rem;
  transition: transform 0.12s var(--ease), box-shadow 0.12s var(--ease);
}
.form-actions--solo .btn-primary:hover {
  background: var(--lime);
  color: #111;
  border-color: var(--lime);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 rgba(17, 17, 17, 0.18);
  filter: none;
}
.flash {
  margin: 0.75rem 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  font-size: 0.82rem;
}
.flash-ok { border-color: var(--ok); color: var(--ok); }
.flash-err { border-color: var(--err); color: var(--err); }

/* ── thanks / proposta ──────────────────────────────────── */
.thanks-order {
  margin: 1.5rem 0 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--ink);
  background: var(--panel);
}
.thanks-order__label {
  margin: 0 0 0.35rem;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--mute);
}
.thanks-order__name {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.thanks-order__hint {
  margin: 0.55rem 0 0;
  font-size: 0.8rem;
  max-width: 42ch;
}

/* ── footer ─────────────────────────────────────────────── */
.site-footer {
  width: min(100% - 2rem, 1100px);
  margin: 2rem auto 0;
  padding: 1.25rem 0 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.5rem;
  color: var(--mute);
  font-size: 0.7rem;
}
.site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
}

/* lang.exe — BBS / DIP channel selector (70s–90s coder) */
.lang-select {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
  user-select: none;
}
.lang-select__k {
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--mute);
  text-transform: lowercase;
}
.lang-select__bank {
  display: inline-flex;
  border: 1px solid var(--ink);
  background: var(--bg);
}
.lang-select__opt {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.14rem;
  min-width: 1.85rem;
  padding: 0.28rem 0.42rem 0.22rem;
  border-right: 1px solid var(--line);
  text-decoration: none;
  color: var(--mute);
  transition: color 0.12s ease, background 0.12s ease;
}
.lang-select__opt:last-child { border-right: 0; }
.lang-select__opt:hover {
  color: var(--ink);
  background: var(--panel);
}
.lang-select__opt.is-on {
  color: #111;
  background: var(--lime);
}
.lang-select__led {
  width: 0.32rem;
  height: 0.32rem;
  border: 1px solid currentColor;
  background: transparent;
}
.lang-select__opt.is-on .lang-select__led {
  background: #111;
  border-color: #111;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--lime) 40%, transparent);
}
.lang-select__code {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
}
html[data-theme="dark"] .lang-select__opt.is-on {
  color: #111;
  background: var(--lime);
}
html[data-theme="dark"] .lang-select__opt.is-on .lang-select__led {
  background: #111;
  border-color: #111;
}

/* ── cookie bar ─────────────────────────────────────────── */
.cookie {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: var(--invert);
  color: var(--on-invert);
  border: 1px solid var(--ink);
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  animation: fadeUp 0.45s var(--ease) both;
}
.cookie__msg {
  margin: 0;
  flex: 1 1 220px;
  font-size: 0.78rem;
  line-height: 1.4;
}
.cookie__msg::before {
  content: "> ";
  color: var(--lime);
}
.cookie__actions {
  display: flex;
  gap: 0.4rem;
}
.cookie .btn-ghost {
  border-color: #444;
  color: #ddd;
}
.cookie .btn-ghost:hover { background: #222222; }
.cookie .btn-primary {
  background: var(--lime);
  border-color: var(--lime);
  color: #111;
}
.cookie .btn-primary:hover { filter: brightness(1.05); }

/* ── toast (coder minimal) ──────────────────────────────── */
.oc-toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  z-index: 60;
  transform: translateX(-50%) translateY(8px);
  max-width: min(92vw, 420px);
  padding: 0.55rem 0.85rem;
  background: var(--invert);
  color: var(--on-invert);
  border: 1px solid var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 28px rgba(0,0,0,0.16);
  pointer-events: none;
  opacity: 0;
}
.oc-toast::before {
  content: "> ";
  color: var(--lime);
}
.oc-toast.is-in {
  animation: toastIn 0.22s var(--ease) both;
}
.oc-toast.is-out {
  animation: toastOut 0.2s var(--ease) both;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateX(-50%) translateY(0); }
  to { opacity: 0; transform: translateX(-50%) translateY(6px); }
}
@keyframes packFlash {
  0% { background: transparent; }
  35% { background: #ececec; }
  100% { background: var(--panel); }
}
@keyframes packPulse {
  0% { transform: translateY(0); }
  40% { transform: translateY(-2px); }
  100% { transform: translateY(0); }
}

@media (max-width: 560px) {
  .svc-toggle {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "check meta"
      "check blurb"
      "check price";
  }
  .svc-price { justify-self: start; }
  .hero__prompt { white-space: normal; }
  .hero {
    min-height: 0;
    gap: 1.75rem;
    padding: 2rem 0 2.75rem;
  }
  .hero__brand { margin-bottom: 1.25rem; }
  .hero__cta { margin-top: 1.5rem; }
  .hero__boot-list li {
    font-size: 0.82rem;
    padding: 0.4rem 0.45rem;
    gap: 0.4rem 0.5rem;
  }
  /* logo left · links + mode right (same DNA as desktop) */
  .top__inner {
    flex-wrap: wrap;
    align-items: center;
    padding: 0.65rem 0;
    gap: 0.4rem 0.65rem;
  }
  .logo {
    flex: 0 0 auto;
    font-size: 0.88rem;
  }
  .top__nav {
    flex: 1 1 auto;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.5rem 0.65rem;
    margin-left: auto;
    min-width: 0;
  }
  .top nav a,
  .top__nav > a {
    font-size: 0.7rem;
  }
  .mode-select {
    margin-left: 0.05rem;
    flex: 0 0 auto;
  }
  .mode-select__opt {
    min-width: 1.15rem;
    padding: 0.16rem 0.22rem;
  }
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .site-footer .lang-select {
    margin-left: 0;
  }
}

/* ── module detail ──────────────────────────────────────── */
.mod { padding-bottom: 3.5rem; }
.mod__head { margin-bottom: 1.5rem; animation: fadeUp 0.55s var(--ease) both; }
.mod__brand {
  margin: 0;
  font-size: clamp(2.6rem, 9vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.92;
  text-transform: lowercase;
}
.mod__lede {
  margin: 1rem 0 0;
  max-width: 38ch;
  color: var(--mute);
  font-size: 0.95rem;
}
.mod__lede--one {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  max-width: 52ch;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mod__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
  align-items: baseline;
  margin-top: 1.1rem;
}
.mod__price {
  font-size: 0.82rem;
  font-weight: 600;
}

/* Configurator pages — loadout; story pages (odoo/ai) present first */
.mod--cfg { padding-top: 0.25rem; }
.mod--cfg .mod__head {
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}
.mod--story .mod__head {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
}
.mod--story .mod__lede {
  max-width: 48ch;
  margin: 0.55rem 0 0;
  color: var(--mute);
  font-size: 0.92rem;
  line-height: 1.45;
}
.mod-story {
  padding: 1.75rem 0 2.25rem;
  border-bottom: 1px solid var(--line);
  animation: fadeUp 0.55s var(--ease) both;
}
.mod-story .mod-landing__pitch {
  margin: 0 0 1.15rem;
  max-width: 58ch;
  font-size: 1.02rem;
  line-height: 1.55;
}
.mod-story .mod-landing__hl {
  margin: 0 0 1.35rem;
}
.mod-story__feats {
  list-style: none;
  margin: 0 0 1.35rem;
  padding: 0;
  display: grid;
  gap: 0.45rem 1.25rem;
}
@media (min-width: 720px) {
  .mod-story__feats { grid-template-columns: 1fr 1fr; }
}
.mod-story__feats li {
  display: flex;
  gap: 0.45rem;
  align-items: baseline;
  font-size: 0.84rem;
  line-height: 1.4;
}
.mod-story__stats {
  list-style: none;
  margin: 0 0 1.35rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.mod-story__stats li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 5.5rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--ink);
  background: var(--panel);
}
.mod-story__stat-k {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--mute);
  text-transform: uppercase;
}
.mod-story__stat-v {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}
.mod-story__jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

/* ── track_record / experience (odoo module) ────────────── */
.mod-xp {
  padding: 2.25rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
  animation: fadeUp 0.55s var(--ease) both;
  scroll-margin-top: 1.25rem;
}
.mod-xp__head { margin-bottom: 1.25rem; }
.mod-xp__lede {
  margin: 0.45rem 0 0;
  max-width: 58ch;
}
.mod-xp__stats {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}
@media (min-width: 720px) {
  .mod-xp__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.mod-xp__stats li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--ink);
  background: var(--panel);
}
.mod-xp__stat-k {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--mute);
  text-transform: uppercase;
}
.mod-xp__stat-v {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.mod-xp__grid {
  display: grid;
  gap: 1.75rem;
  margin-bottom: 1.75rem;
}
@media (min-width: 800px) {
  .mod-xp__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
.mod-xp__label {
  margin: 0 0 0.65rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--mute);
}
.mod-xp__areas,
.mod-xp__projects,
.mod-xp__ops-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mod-xp__areas li {
  display: grid;
  grid-template-columns: 4.2rem 1fr;
  gap: 0.15rem 0.75rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  line-height: 1.4;
}
.mod-xp__areas li:last-child { border-bottom: 1px solid var(--line); }
.mod-xp__code {
  grid-row: span 2;
  align-self: start;
  margin-top: 0.12rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #111;
  background: var(--lime);
  padding: 0.12rem 0.3rem;
  width: fit-content;
}
html[data-theme="dark"] .mod-xp__code {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
}
.mod-xp__name { font-weight: 600; }
.mod-xp__blurb { grid-column: 2; color: var(--mute); font-size: 0.78rem; }
.mod-xp__projects li {
  padding: 0.65rem 0;
  border-top: 1px dashed var(--line);
}
.mod-xp__projects li:last-child { border-bottom: 1px dashed var(--line); }
.mod-xp__sector {
  display: block;
  font-weight: 600;
  font-size: 0.84rem;
}
.mod-xp__work {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: var(--mute);
}
.mod-xp__ops { margin-bottom: 1.5rem; }
.mod-xp__ops-list li {
  display: flex;
  gap: 0.55rem;
  align-items: baseline;
  padding: 0.4rem 0;
  font-size: 0.84rem;
  line-height: 1.45;
  border-top: 1px solid var(--line);
}
.mod-xp__ops-list li:last-child { border-bottom: 1px solid var(--line); }
.mod-xp__gt {
  flex: 0 0 auto;
  color: var(--lime);
  font-weight: 600;
}
.mod-xp__jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

#loadout {
  scroll-margin-top: 1.25rem;
}
#loadout.is-focus {
  outline: 1px solid var(--lime);
  outline-offset: 6px;
}
.mod--cfg .kicker--trail { margin-bottom: 0.45rem; }
.mod--cfg .mod__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}
.mod--cfg .mod__brand {
  font-size: clamp(1.55rem, 4.2vw, 2.15rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.mod--cfg .mod__chips {
  margin-top: 0;
  gap: 0.4rem 0.65rem;
  font-size: 0.78rem;
}
.mod--cfg .mod-access { margin-top: 0.55rem; }
.mod--cfg .mod-access__row { gap: 0.35rem; }
.mod--cfg .mod-access .btn-sm {
  padding: 0.28rem 0.55rem;
  font-size: 0.72rem;
}
.mod--cfg .loadout {
  padding-top: 0.85rem;
  margin-top: 0;
  animation: fadeUp 0.4s var(--ease) both;
}
.mod--story .loadout {
  padding-top: 2rem;
  margin-top: 0;
  border-top: 0;
}
.mod--cfg .loadout__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1rem;
  margin-bottom: 0.85rem;
}
.mod--cfg .loadout__head .kicker { margin: 0; }
.mod--cfg .loadout__hint {
  margin: 0;
  font-size: 0.72rem;
  color: var(--mute);
  letter-spacing: 0.02em;
}
.mod--cfg .loadout__grid { gap: 0.85rem; }
.mod--cfg .loadout__slot,
.mod--cfg .loadout__inv,
.mod--cfg .loadout__hud {
  padding: 0.85rem 0.9rem;
}
.mod--cfg .loadout__item,
.mod--cfg .loadout__plan {
  padding: 0.55rem 0.65rem;
  min-height: 0;
}
.mod--cfg .loadout__blurb {
  font-size: 0.68rem;
  line-height: 1.3;
}
.mod--cfg .loadout__name { font-size: 0.88rem; }
.mod--cfg .loadout__score {
  font-size: 0.72rem;
  line-height: 1.35;
  margin-bottom: 0.65rem;
}
.mod--cfg .loadout__hud {
  position: sticky;
  top: 0.75rem;
  align-self: start;
}
.mod--cfg .mod__body { margin-top: 1.75rem; }
.mod--cfg .mod-docs {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.mod-docs__panel {
  border: 1px solid var(--line);
  background: #fafafa;
}
.mod-docs__sum {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.9rem;
  user-select: none;
}
.mod-docs__sum::-webkit-details-marker { display: none; }
.mod-docs__sum .kicker { margin: 0; }
.mod-docs__more {
  font-size: 0.68rem;
  color: var(--mute);
  letter-spacing: 0.06em;
}
.mod-docs__panel[open] .mod-docs__more::after { content: "collapse"; }
.mod-docs__panel:not([open]) .mod-docs__more::after { content: "expand"; }
.mod-docs__body { padding: 0 0.9rem 1rem; }
.mod-hero--inline {
  margin: 0 0 1rem;
  max-width: 420px;
}
.mod-hero--inline .mod-hero__media {
  aspect-ratio: 16 / 9;
  max-height: 200px;
}
@media (max-width: 720px) {
  .mod--cfg .mod__lede--one { white-space: normal; }
  .mod--cfg .loadout__hud { position: static; }
}
.svc-host--link {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.svc-host--link:hover {
  color: var(--ink);
  border-bottom-color: var(--lime);
}
.mod-status--live { border-color: var(--ok); color: var(--ok); }
.mod-status--beta { border-color: var(--ink); color: var(--ink); }
.mod-status--soon { border-color: var(--mute); color: var(--mute); }

.mod-access { margin-top: 1.35rem; }
.mod-access .kicker { margin-bottom: 0.55rem; }
.mod-access__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.mod-access__row .btn-primary {
  background: var(--btn-fill);
  color: #fff;
}
.mod-access__row .btn-primary:hover {
  background: var(--lime);
  border-color: var(--lime);
  color: #111;
}

.mod-landing {
  padding: 2rem 0 0.5rem;
  animation: fadeUp 0.5s 0.08s var(--ease) both;
}
.mod-landing__pitch {
  margin: 0 0 1.1rem;
  max-width: 58ch;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink);
}
.mod-landing__hl {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  border-top: 1px solid var(--line);
  max-width: 62ch;
}
.mod-landing__hl li {
  display: flex;
  gap: 0.65rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--mute);
}
.mod-landing__gt {
  color: var(--lime);
  flex: 0 0 auto;
  font-weight: 600;
}
.mod-landing__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
}
.mod-landing__link {
  font-size: 0.8rem;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.mod-landing__link:hover {
  border-bottom-color: var(--lime);
  color: var(--ink);
}

.mod-hero {
  width: 100%;
  margin: 0 0 2.25rem;
  animation: fadeUp 0.65s 0.08s var(--ease) both;
}
.mod-hero__media {
  position: relative;
  width: min(100%, 1100px);
  margin: 0 auto;
  aspect-ratio: 16 / 7.2;
  overflow: hidden;
  background: var(--invert);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.mod-hero--void .mod-hero__media,
.mod-hero--night .mod-hero__media {
  width: 100%;
  max-width: none;
  aspect-ratio: 21 / 8;
}
.mod-hero--split .mod-hero__media {
  width: min(100% - 2rem, var(--max));
  aspect-ratio: 16 / 8;
}
.mod-hero--manual .mod-hero__media,
.mod-hero--trace .mod-hero__media {
  width: min(100% - 2rem, var(--max));
  aspect-ratio: 16 / 9;
  border: 1px solid var(--ink);
}

/* CRT / retro overlay — always on module images */
.crt { isolation: isolate; }
.crt__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.92);
  transform: scale(1.02);
}
.crt__scan,
.crt__vignette,
.crt__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.crt__scan {
  z-index: 2;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.14) 0,
    rgba(0, 0, 0, 0.14) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: multiply;
  opacity: 0.55;
  animation: crtFlicker 3.8s steps(2) infinite;
}
.crt__vignette {
  z-index: 3;
  background:
    radial-gradient(ellipse at center, transparent 42%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(180deg, rgba(17, 17, 17, 0.15), rgba(17, 17, 17, 0.55));
}
.crt__grid {
  z-index: 2;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(184, 255, 60, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 255, 60, 0.25) 1px, transparent 1px);
  background-size: 28px 28px;
  mix-blend-mode: screen;
}
.crt__prompt {
  position: absolute;
  left: 1rem;
  bottom: 0.85rem;
  z-index: 4;
  margin: 0;
  padding: 0.35rem 0.55rem;
  background: var(--invert);
  color: var(--on-invert);
  font-size: 0.72rem;
  border: 1px solid var(--ink);
}
/* cookie-bar DNA: lime accent on boot line */
.mod-hero .crt__prompt {
  color: var(--lime);
}
.kicker--trail a {
  color: inherit;
  text-decoration: none;
}
.kicker--trail a:hover { color: var(--ink); }

@keyframes crtFlicker {
  0%, 97%, 100% { opacity: 0.55; }
  98% { opacity: 0.42; }
  99% { opacity: 0.62; }
}

.mod__body { animation: fadeUp 0.6s 0.12s var(--ease) both; }
.mod__grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 860px) {
  .mod__grid {
    grid-template-columns: 1fr 260px;
    align-items: start;
    gap: 2.5rem;
  }
}

.mod-panel--ink {
  background: var(--invert);
  color: var(--on-invert);
  padding: 1.15rem 1.2rem;
  margin-bottom: 1.75rem;
  border: 1px solid var(--ink);
}
.mod-panel--ink .kicker { color: #8a8a8a; }
.mod-lore {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #d8d8d8;
}
.mod-lore--light { color: var(--mute); max-width: 48ch; }

.mod-features {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  border-top: 1px solid var(--line);
}
.mod-features li {
  display: flex;
  gap: 0.65rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}
.mod-features__x { color: var(--ink); flex: 0 0 auto; }
.oc-module--night .mod-features__x,
.oc-module--void .mod-features__x { color: #3a3a3a; }

.mod-stats {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.mod-stats li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.78rem;
  padding: 0.35rem 0;
  border-bottom: 1px dashed #333;
}
.mod-stats--light li { border-bottom-color: var(--line); }
.mod-stats__k {
  color: var(--lime);
  letter-spacing: 0.06em;
  font-size: 0.68rem;
}
.mod-stats--light .mod-stats__k { color: var(--ink); }
.mod-stats__v { color: #eee; }
.mod-stats--light .mod-stats__v { color: var(--mute); }

.mod-replaces {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}
.mod-replaces li {
  padding: 0.35rem 0;
  font-size: 0.82rem;
  color: var(--mute);
}
.mod-replaces__dash { color: var(--lime); }

/* sticky pack card — cookie bar DNA */
.mod-pack {
  position: sticky;
  top: 1rem;
  padding: 1.05rem 1.1rem;
  background: var(--invert);
  color: var(--on-invert);
  border: 1px solid var(--ink);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16);
}
.mod-pack .kicker { color: #8a8a8a; }
.mod-pack__name {
  margin: 0;
  font-weight: 600;
  font-size: 1rem;
}
.mod-pack__host {
  margin: 0.25rem 0 0;
  font-size: 0.72rem;
  color: #9a9a9a;
}
.mod-pack__price {
  margin: 0.85rem 0 1rem;
  font-size: 0.9rem;
}
.mod-pack .btn-primary {
  background: var(--lime);
  border-color: var(--lime);
  color: #111;
}
.mod-pack .btn-primary:hover { filter: brightness(1.05); }
.mod-pack .btn-ghost {
  border-color: #444;
  color: #ddd;
  margin-top: 0.45rem;
}
.mod-pack .btn-ghost:hover { background: #222222; }
/* update/add loadout — muted outline; checkout() keeps lime fill */
.mod-pack .mod-pack__btn {
  background: transparent;
  border-color: #555;
  color: #ddd;
  box-shadow: none;
  margin-top: 0;
}
.mod-pack .mod-pack__btn:hover {
  background: transparent;
  border-color: var(--lime);
  color: var(--lime);
  filter: none;
}

.mod-others {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.mod-others__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.mod-others__list a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.15s ease;
}
.mod-others__list a:hover { color: var(--ink); }
.mod-others__list a:hover .muted { color: var(--lime); }

/* skin tweaks */
.oc-module--trace .crt__grid { opacity: 0.2; background-size: 14px 14px; }
.oc-module--night .crt__scan { opacity: 0.7; }
.oc-module--manual .crt__prompt {
  background: var(--lime);
  color: #111;
  border: 1px solid var(--lime);
  border-left-width: 2px;
}
.oc-module--void .mod__brand { letter-spacing: 0.02em; }

@media (max-width: 560px) {
  .svc-toggle { padding: 0.9rem 0.75rem 0.35rem 0.7rem; gap: 0.1rem 0.65rem; }
  .svc-row__foot { margin: 0 0.75rem 0.75rem 2.9rem; }
  .svc-name { font-size: 0.98rem; }
  .mod-hero__media { aspect-ratio: 16 / 10; }
  .crt__prompt { font-size: 0.65rem; }
}

/* ── LOADOUT.CFG (retro inventory) ──────────────────────── */
.loadout {
  padding: 2.5rem 0 1rem;
  animation: fadeUp 0.55s var(--ease) both;
}
.loadout__grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.loadout__grid > * {
  min-width: 0; /* prevent track overflow covering the SCORE hud */
}
@media (min-width: 900px) {
  .loadout__grid {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 260px);
    align-items: start;
  }
  .loadout__grid--ai,
  .loadout__grid--cloud,
  .loadout__grid--quote {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 280px);
  }
  /* Odoo: controls+addons left, SCORE sticky right (no overlap) */
  .loadout__grid--odoo {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 260px);
  }
  .loadout--odoo .loadout__slot {
    grid-column: 1;
    grid-row: 1;
  }
  .loadout--odoo .loadout__inv {
    grid-column: 1;
    grid-row: 2;
  }
  .loadout--odoo .loadout__hud {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}
.loadout__label {
  margin: 0 0 0.75rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--mute);
}
.loadout__slot .loadout__label { margin-top: 1rem; }
.loadout__slot .loadout__label:first-child { margin-top: 0; }
.loadout__plans-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}
.loadout__seg-label {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--mute);
}
.loadout__seg-row {
  display: inline-flex;
  border: 1px solid var(--ink);
  background: var(--bg);
}
.loadout__seg {
  display: inline-flex;
  border: 1px solid var(--ink);
  margin-bottom: 0.45rem;
  background: var(--bg);
}
.loadout__seg-btn {
  margin: 0;
  padding: 0.35rem 0.65rem;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--mute);
  cursor: pointer;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}
.loadout__seg-btn:last-child { border-right: 0; }
.loadout__seg-btn:hover { color: var(--ink); background: var(--panel); }
.loadout__seg-btn.is-on {
  color: var(--btn-fg);
  background: var(--btn-fill);
}
.loadout__ee-note {
  margin: 0 0 0.65rem;
  font-size: 0.68rem;
  line-height: 1.35;
  color: #8a8a8a;
}
.loadout__brief {
  border: 1px solid var(--ink);
  padding: 1rem;
  background: var(--bg);
}
.loadout__notes-label {
  display: block;
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  color: var(--mute);
}
.loadout__notes {
  display: block;
  width: 100%;
  min-height: 10rem;
  margin: 0 0 0.65rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--ink);
  background: var(--panel);
  color: var(--ink);
  resize: vertical;
  line-height: 1.45;
}
.loadout__notes:focus {
  outline: 1px solid var(--lime);
  outline-offset: 2px;
}
.loadout__slot,
.loadout__inv,
.loadout__hud {
  border: 1px solid var(--ink);
  padding: 1rem;
  background: var(--bg);
}
.loadout__hud {
  background: var(--invert);
  color: var(--on-invert);
  position: sticky;
  top: 1rem;
  align-self: start;
  z-index: 2;
  max-width: 100%;
  box-sizing: border-box;
}
.loadout__hud .loadout__label { color: #8a8a8a; }
.loadout__hud .btn-ghost {
  border-color: #444;
  color: #ddd;
}
.loadout__hud .btn-ghost:hover { background: #222222; }
.loadout__hud .btn-primary {
  background: var(--lime);
  border-color: var(--lime);
  color: #111;
}
/* update loadout — outline muted; checkout() keeps lime fill */
.loadout__hud .mod-pack__btn {
  background: transparent;
  border-color: #555;
  color: #ddd;
  box-shadow: none;
}
.loadout__hud .mod-pack__btn:hover {
  background: transparent;
  border-color: var(--lime);
  color: var(--lime);
  filter: none;
}
.loadout__hud .btn + .btn,
.loadout__hud form + form,
.loadout__hud form + a,
.loadout__hud a + a,
.loadout__hud a + form { margin-top: 0.45rem; }
.loadout__hud .loadout__checkout {
  box-shadow: 0 0 0 1px var(--lime);
}
.mod-pack .loadout__checkout {
  margin-top: 0.45rem;
  box-shadow: 0 0 0 1px var(--lime);
}

.loadout__stepper {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}
.loadout__btn {
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--ink);
  background: var(--bg);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  transition: background 0.12s ease, transform 0.12s var(--ease);
}
.loadout__btn:hover { background: var(--lime); }
.loadout__btn:active { transform: translate(1px, 1px); }
.loadout__users {
  min-width: 2.5rem;
  text-align: center;
  font-size: 1.6rem;
  font-weight: 600;
}
.loadout__xp {
  margin-top: 0.85rem;
  height: 6px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.loadout__xp-fill {
  display: block;
  height: 100%;
  width: 12%;
  background: var(--lime);
  transition: width 0.2s var(--ease);
}

.loadout__items,
.loadout__plans {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
@media (min-width: 640px) {
  .loadout__items { grid-template-columns: 1fr 1fr; }
}
.loadout__item,
.loadout__plan {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "check code cost"
    "check name cost"
    "check blurb cost";
  gap: 0.1rem 0.65rem;
  text-align: left;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--line);
  border-left: 3px solid transparent;
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}
.loadout__plan {
  grid-template-areas:
    "code code cost"
    "name name cost"
    "blurb blurb cost";
  grid-template-columns: 1fr auto;
}
.loadout__item:hover,
.loadout__plan:hover { border-color: var(--ink); }
.loadout__item.is-on,
.loadout__plan.is-on {
  border-color: var(--ink);
  border-left-color: var(--lime);
  background: color-mix(in srgb, var(--lime) 10%, var(--bg));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lime) 35%, transparent);
}
.loadout__item.is-on:hover,
.loadout__plan.is-on:hover {
  border-left-color: var(--lime);
}
.loadout__plan.is-on .loadout__name,
.loadout__plan.is-on .loadout__cost {
  color: var(--ink);
  font-weight: 600;
}
.loadout__hud.is-pulse {
  box-shadow: 0 0 0 1px var(--lime);
  animation: packPulse 0.42s var(--ease);
}
.loadout__hud.is-pulse .loadout__score {
  color: var(--lime);
}
.loadout__check { grid-area: check; font-size: 0.8rem; padding-top: 0.1rem; color: var(--mute); }
.loadout__code {
  grid-area: code;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--mute);
}
.loadout__name {
  grid-area: name;
  font-weight: 600;
  font-size: 0.88rem;
}
.loadout__blurb {
  grid-area: blurb;
  font-size: 0.72rem;
  color: var(--mute);
}
.loadout__cost {
  grid-area: cost;
  align-self: center;
  font-size: 0.78rem;
  white-space: nowrap;
}
.loadout__item.is-on .loadout__code,
.loadout__plan.is-on .loadout__code { color: var(--mute); }
.loadout__item.is-on .loadout__check,
.loadout__plan.is-on .loadout__check { color: var(--ink); }

.loadout__score {
  margin: 0 0 1rem;
  font-size: 0.68rem;
  line-height: 1.5;
  color: var(--lime);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

.loadout--ai .loadout__plans { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .loadout--ai .loadout__plans { grid-template-columns: 1fr 1fr; }
}

/* ── terms.md — legal, clean coder (light) ───────────────── */
.page-terms .section.terms { position: relative; }
.terms__wrap { max-width: 720px; }
.terms__hero {
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  animation: fadeUp 0.5s var(--ease) both;
}
.terms__lede { max-width: 48ch; }
.terms__boot {
  margin: 1.1rem 0 0;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--ink);
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.03) 2px,
      rgba(0, 0, 0, 0.03) 3px
    ),
    var(--panel);
  font-size: 0.7rem;
  line-height: 1.55;
  color: var(--mute);
  white-space: pre-wrap;
  animation: fadeUp 0.55s var(--ease) 0.08s both;
}
.terms__meta {
  margin: 1rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}
.terms__meta a { border-bottom: 1px solid var(--line); text-decoration: none; }
.terms__meta a:hover { border-bottom-color: var(--ink); }

.terms__toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  align-items: center;
  margin: 0 0 2.25rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--ink);
  background: var(--panel);
  font-size: 0.72rem;
  animation: fadeUp 0.55s var(--ease) 0.12s both;
}
.terms__toc-k {
  color: var(--mute);
  letter-spacing: 0.06em;
  margin-right: 0.25rem;
}
.terms__toc a {
  text-decoration: none;
  color: var(--mute);
  border-bottom: 1px solid transparent;
}
.terms__toc a:hover {
  color: var(--ink);
  border-bottom-color: var(--lime);
}

.terms__body { animation: fadeUp 0.6s var(--ease) 0.16s both; }
.terms__block {
  margin: 0 0 2.25rem;
  padding-top: 0.25rem;
  scroll-margin-top: 1.25rem;
}
.terms__h {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: lowercase;
}
.terms__n {
  display: inline-block;
  min-width: 1.6rem;
  padding: 0.12rem 0.35rem;
  border: 1px solid var(--ink);
  background: var(--lime);
  color: #111;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.terms__h3 {
  margin: 1.1rem 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--mute);
  letter-spacing: 0.04em;
}
.terms__ol {
  margin: 0;
  padding: 0 0 0 1.15rem;
  display: grid;
  gap: 0.55rem;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--ink);
}
.terms__ol code {
  font-family: inherit;
  font-size: 0.8rem;
  padding: 0.05rem 0.28rem;
  border: 1px solid var(--line);
  background: var(--panel);
}
.terms__foot {
  margin: 2.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
}
.terms__foot a { text-decoration: none; border-bottom: 1px solid var(--line); }
.terms__foot a:hover { border-bottom-color: var(--ink); }

.site-footer a {
  color: var(--mute);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.site-footer a:hover {
  color: var(--ink);
  border-bottom-color: var(--lime);
}

/* ── CONTACT.SYS / ping page (80s BBS) ──────────────────── */
.ping { animation: fadeUp 0.55s var(--ease) both; }
.ping__grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}
@media (min-width: 860px) {
  .ping__grid {
    grid-template-columns: 1fr 300px;
    align-items: start;
    gap: 2rem;
  }
}
.ping__form .form { margin-top: 0; }
.ping__form input::placeholder,
.ping__form textarea::placeholder {
  color: #b0b0b0;
  opacity: 1;
}
.ping__ok { animation: fadeUp 0.45s var(--ease) both; }

/* ping.exe — classic light terminal; dark site theme → CRT red borders */
.form--pong { margin: 0; }
.pong-term {
  --term-bg: #fff;
  --term-fg: #111;
  --term-mute: #666;
  --term-dim: #aaa;
  --term-line: #d8d8d8;
  --term-bar: #111;
  --term-bar-fg: #fff;
  --term-field: #fff;
  --term-scan: rgba(17, 17, 17, 0.025);
  --term-live: #111;
  --term-send-bg: #111;
  --term-send-fg: #fff;
  --term-send-bd: #111;
  --term-focus: #111;
  margin: 0 0 0.25rem;
  border: 1px solid #111;
  background: var(--term-bg);
  color: var(--term-fg);
  overflow: hidden;
}
.pong-term__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.28rem 0.45rem 0.28rem 0.55rem;
  background: var(--term-bar);
  color: var(--term-bar-fg);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}
.pong-term__app { font-weight: 600; }
.pong-term__win {
  display: inline-flex;
  gap: 0.35rem;
  opacity: 0.75;
  font-style: normal;
}
.pong-term__win i {
  font-style: normal;
  font-size: 0.62rem;
  line-height: 1;
}
.pong-term__screen {
  position: relative;
  background: var(--term-bg);
  color: var(--term-fg);
}
.pong-term__scan {
  display: block;
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 1;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    var(--term-scan) 2px,
    var(--term-scan) 3px
  );
}
.pong-term__body {
  position: relative;
  z-index: 2;
  padding: 0.55rem 0.7rem 0.5rem;
  background: transparent;
  color: var(--term-fg);
}
.pong-term__line {
  margin: 0 0 0.3rem;
  font-size: 0.72rem;
  color: var(--term-mute);
}
.pong-term__ps {
  color: var(--lime);
  font-weight: 700;
  margin-right: 0.3rem;
}
.pong-term__ch { margin-top: 0.45rem; }
.pong-term__ch-toggle {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: baseline;
  gap: 0.35rem 0.45rem;
  width: 100%;
  margin: 0;
  padding: 0.22rem 0.25rem;
  border: none;
  background: transparent;
  font: inherit;
  color: var(--term-fg);
  text-align: left;
  cursor: pointer;
}
.pong-term__ch-toggle:hover {
  background: color-mix(in srgb, var(--lime) 10%, transparent);
}
.pong-term__ch-k {
  font-size: 0.72rem;
  color: var(--term-mute);
}
.pong-term__ch-sel {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  min-width: 0;
}
.pong-term__ch-sel .pong-term__cur {
  color: var(--lime);
}
.pong-term__ch-sel .pong-term__cur::before { content: '>'; }
.pong-term__ch-sel .pong-term__cmd {
  font-weight: 700;
  color: var(--term-live);
}
.pong-term__ch-caret {
  font-size: 0.7rem;
  color: var(--term-dim);
  transition: transform 0.15s ease;
}
.pong-term__ch:not(.is-closed) .pong-term__ch-caret {
  transform: rotate(-180deg);
  color: var(--term-fg);
}
.pong-term__ch.is-closed .pong-term__menu--ch { display: none; }
.pong-term__menu {
  margin: 0;
  padding: 0;
  border: none;
  min-inline-size: 0;
}
.pong-term__menu--ch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.05rem 0.75rem;
  margin-top: 0.25rem;
  padding-top: 0.25rem;
  border-top: 1px dashed var(--term-line);
  animation: pongTermOpen 0.18s var(--ease, ease) both;
}
@keyframes pongTermOpen {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.pong-term__menu--ch[hidden] { display: none !important; }
.pong-term__row {
  display: grid;
  grid-template-columns: 0.85rem 1fr auto;
  align-items: baseline;
  gap: 0.35rem;
  margin: 0;
  padding: 0.18rem 0.2rem;
  cursor: pointer;
  font-size: 0.8rem;
  color: #777;
}
.pong-term__menu--ch .pong-term__row {
  grid-template-columns: 0.85rem 1fr;
}
.pong-term__row input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.pong-term__cur {
  display: inline-block;
  width: 0.7rem;
  text-align: center;
  font-weight: 700;
  color: transparent;
}
.pong-term__row:has(input:checked) .pong-term__cur { color: var(--lime); }
.pong-term__row:has(input:checked) .pong-term__cur::before { content: '>'; }
.pong-term__cmd { font-weight: 500; }
.pong-term__hint {
  font-size: 0.68rem;
  color: var(--term-dim);
  justify-self: end;
}
.pong-term__row:hover {
  color: var(--term-live);
  background: color-mix(in srgb, var(--lime) 10%, transparent);
}
.pong-term__row:has(input:checked) {
  color: var(--term-live);
  font-weight: 600;
  background: color-mix(in srgb, var(--lime) 18%, transparent);
}
.pong-term__row:has(input:checked) .pong-term__cmd { font-weight: 700; }
.pong-term__row:has(input:checked) .pong-term__hint { color: var(--term-mute); }

.pong-term__fields {
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--term-line);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.pong-term__field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin: 0;
}
.pong-term__fline {
  font-size: 0.72rem;
  color: var(--term-mute);
}
.pong-term__field input,
.pong-term__field textarea,
.pong-term__attach input[type="file"] {
  width: 100%;
  margin: 0;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--term-line);
  background: var(--term-field);
  color: var(--term-fg);
  font: inherit;
  font-size: 0.85rem;
  outline: none;
  border-radius: 0;
}
.pong-term__field input:focus,
.pong-term__field textarea:focus {
  border-color: var(--term-focus);
  box-shadow: none;
}
.pong-term__field textarea { resize: vertical; min-height: 5rem; }
.pong-term__field input::placeholder,
.pong-term__field textarea::placeholder { color: #b0b0b0; opacity: 1; }
.pong-term__attach {
  margin: 0;
  padding: 0.85rem;
  border: 1px dashed var(--term-line);
  background: var(--term-field);
}
.pong-term__attach .ping-attach__hint {
  margin: 0.35rem 0 0;
  color: var(--term-mute);
  font-size: 0.68rem;
}
.pong-term__attach input[type="file"] {
  padding: 0.35rem 0;
  border: none;
  background: transparent;
  color: var(--term-mute);
  font-size: 0.72rem;
}
.pong-term__prefill {
  margin: 0;
  font-size: 0.72rem;
  color: var(--term-mute);
}
.pong-term__send {
  align-self: flex-start;
  margin-top: 0.15rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--term-send-bd);
  background: var(--term-send-bg);
  color: var(--term-send-fg);
  font: inherit;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
}
.pong-term__send:hover {
  filter: brightness(1.08);
}
.pong-term__foot {
  margin: 0.55rem 0 0;
  font-size: 0.62rem;
  color: var(--term-dim);
  letter-spacing: 0.04em;
  opacity: 1;
}
.u-sr {
  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;
}

/* site dark mode → CRT dark terminal, red borders */
html[data-theme="dark"] .pong-term {
  --term-bg: #141414;
  --term-fg: var(--ink);
  --term-mute: var(--mute);
  --term-dim: #7a3a3a;
  --term-line: #3a1a1a;
  --term-bar: #0a0a0a;
  --term-bar-fg: #f0e8e8;
  --term-field: #101010;
  --term-scan: rgba(255, 59, 59, 0.04);
  --term-live: #ff6b6b;
  --term-send-bg: var(--lime);
  --term-send-fg: #111;
  --term-send-bd: var(--lime);
  --term-focus: var(--ink);
  border-color: var(--ink);
  color: var(--term-fg);
}
html[data-theme="dark"] .pong-term__bar {
  border-bottom: 1px solid var(--ink);
}
html[data-theme="dark"] .pong-term__row { color: var(--mute); }
html[data-theme="dark"] .pong-term__row:hover,
html[data-theme="dark"] .pong-term__row:has(input:checked) {
  color: var(--term-live);
}
html[data-theme="dark"] .pong-term__field input::placeholder,
html[data-theme="dark"] .pong-term__field textarea::placeholder {
  color: var(--term-dim);
}

.flash-warn {
  margin-top: 0.75rem;
  color: var(--mute);
  font-size: 0.8rem;
}

@media (max-width: 520px) {
  .pong-term__menu--ch { grid-template-columns: 1fr; }
}

/* ticket-only attachments */
.ping-attach {
  margin: 0 0 1rem;
  padding: 0.85rem;
  border: 1px dashed var(--line);
}
.ping-attach[hidden] { display: none !important; }
.ping-attach__label {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
}
.ping-attach__label input[type="file"] {
  font-size: 0.72rem;
  font-weight: 400;
}
.ping-attach__hint {
  margin: 0.45rem 0 0;
  font-size: 0.68rem;
  color: var(--mute);
}

.ping__sys {
  border: 1px solid var(--ink);
  background: var(--invert);
  color: var(--on-invert);
  padding: 1.1rem 1.15rem 1.25rem;
  position: sticky;
  top: 1rem;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(184, 255, 60, 0.03) 2px,
    rgba(184, 255, 60, 0.03) 3px
  );
}
.ping__sys-head {
  margin: 0 0 0.85rem;
  padding: 0.35rem 0.5rem;
  background: var(--lime);
  color: #111;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  display: inline-block;
}
.ping__sys-boot {
  margin: 0 0 1.1rem;
  font-size: 0.68rem;
  line-height: 1.5;
  color: var(--lime);
  white-space: pre;
}
.ping__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #333;
}
.ping__list li {
  display: grid;
  grid-template-columns: 4.8rem 1fr;
  gap: 0.65rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid #333;
  font-size: 0.8rem;
  line-height: 1.45;
}
.ping__k {
  color: #8a8a8a;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  padding-top: 0.12rem;
}
.ping__list a {
  color: var(--on-invert);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.ping__list a:hover {
  color: var(--lime);
  border-bottom-color: var(--lime);
}
.ping__sys-foot {
  margin: 1.1rem 0 0;
  font-size: 0.68rem;
  color: #8a8a8a;
  line-height: 1.5;
}

/* ── screenshots.gallery — masonry + arcade viewer ──────── */
.shot-gallery {
  margin: 3rem 0 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  animation: fadeUp 0.55s var(--ease) both;
}
.shot-gallery__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.25rem;
}
.shot-gallery__lede { margin: 0.35rem 0 0; max-width: 42ch; }
.shot-gallery__hud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
}
.shot-gallery__xp {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--mute);
  border: 1px solid var(--ink);
  padding: 0.28rem 0.5rem;
  background: var(--panel);
}
.shot-gallery__xp strong { color: var(--ink); font-weight: 600; }
.shot-gallery__filters {
  display: inline-flex;
  border: 1px solid var(--ink);
}
.shot-gallery__f {
  margin: 0;
  padding: 0.28rem 0.55rem;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--mute);
  cursor: pointer;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.shot-gallery__f:last-child { border-right: 0; }
.shot-gallery__f:hover { color: var(--ink); background: var(--panel); }
.shot-gallery__f.is-on {
  background: var(--lime);
  color: #111;
}
.shot-masonry {
  column-count: 2;
  column-gap: 0.65rem;
}
@media (min-width: 720px) {
  .shot-masonry { column-count: 3; }
}
@media (min-width: 980px) {
  .shot-masonry { column-count: 4; }
}
.shot-tile {
  break-inside: avoid;
  display: block;
  width: 100%;
  margin: 0 0 0.65rem;
  padding: 0;
  border: 1px solid var(--ink);
  background: var(--bg);
  cursor: pointer;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.12s ease;
}
.shot-tile:hover {
  transform: translate(-1px, -2px);
  box-shadow: 2px 2px 0 var(--ink);
}
.shot-tile.is-seen { border-left: 3px solid var(--lime); }
.shot-tile img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
  filter: contrast(1.02);
}
.shot-tile__tag,
.shot-tile__n {
  position: absolute;
  z-index: 1;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.12rem 0.3rem;
  border: 1px solid var(--ink);
  background: var(--lime);
  color: #111;
  line-height: 1.2;
}
.shot-tile__tag { top: 0.4rem; left: 0.4rem; text-transform: uppercase; }
.shot-tile__n { top: 0.4rem; right: 0.4rem; background: var(--invert); color: var(--on-invert); border-color: var(--ink); }
.shot-tile__cap {
  display: block;
  padding: 0.4rem 0.5rem;
  font-size: 0.68rem;
  color: var(--mute);
  border-top: 1px solid var(--line);
  text-transform: lowercase;
}
.shot-tile.is-hidden { display: none; }
.shot-gallery__hint {
  margin: 0.85rem 0 0;
  font-size: 0.68rem;
}

/* maximize stage — CRT viewfinder */
.shot-stage {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.shot-stage[hidden] { display: none !important; }
.shot-stage__scrim {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.78);
  cursor: pointer;
}
.shot-stage__frame {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: min(92vh, 900px);
  display: flex;
  flex-direction: column;
  border: 1px solid #111;
  background: #111;
  color: #f5f5f5;
  box-shadow: 0 0 0 1px var(--lime);
  animation: fadeUp 0.28s var(--ease) both;
}
.shot-stage__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid #333;
  font-size: 0.68rem;
  letter-spacing: 0.03em;
}
.shot-stage__boot { color: var(--lime); }
.shot-stage__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #aaa;
}
.shot-stage__x {
  margin: 0;
  padding: 0.15rem 0.4rem;
  border: 1px solid #555;
  background: transparent;
  color: #ddd;
  cursor: pointer;
  font: inherit;
  font-size: 0.65rem;
}
.shot-stage__x:hover { border-color: var(--lime); color: var(--lime); }
.shot-stage__view {
  overflow: auto;
  max-height: calc(92vh - 6.5rem);
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(184, 255, 60, 0.03) 2px,
      rgba(184, 255, 60, 0.03) 3px
    ),
    #0a0a0a;
  cursor: grab;
}
.shot-stage__view.is-drag { cursor: grabbing; }
.shot-stage__view img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  transform-origin: center center;
  transition: transform 0.2s var(--ease);
}
.shot-stage__view.is-zoom img { transform: scale(1.45); cursor: zoom-out; }
.shot-stage__controls {
  display: flex;
  gap: 0.45rem;
  padding: 0.55rem 0.75rem;
  border-top: 1px solid #333;
}
.shot-stage__controls button {
  flex: 1;
  margin: 0;
  padding: 0.45rem 0.65rem;
  border: 1px solid #555;
  background: transparent;
  color: #ddd;
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}
.shot-stage__controls button:hover {
  border-color: var(--lime);
  color: var(--lime);
}
body.shot-lock { overflow: hidden; }
