/* ============================================================
   sV-Portal — app shell.
   Professional, Nextcloud-inspired layout with the secondVerse-3
   palette: midnight navy surfaces, teal/sky accents, warm amber
   highlights. Character lives in the per-service accent colors and
   the Beam radar — not in ornament.
   ============================================================ */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #060c14;
  --bg-soft: #0b1524;
  --panel: #0c1626;
  --panel-raised: #101c2f;
  --panel-hover: #13223a;

  --line: rgba(144, 200, 255, 0.14);
  --line-strong: rgba(144, 200, 255, 0.3);

  --text: #edf5ff;
  --text-soft: #a9bfd8;
  --text-dim: #7c92ab;

  --teal: #3de8d6;
  --sky: #6ec8ff;
  --amber: #ffc06a;
  --coral: #ff8f7a;
  --mint: #6cf0b6;

  --primary: var(--sky);
  --primary-text: #06121f;

  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 8px;

  --shadow-1: 0 1px 3px rgba(2, 6, 12, 0.4);
  --shadow-2: 0 6px 24px rgba(2, 6, 12, 0.45);

  --font-display: "Outfit", "Segoe UI", sans-serif;
  --font-body: "DM Sans", "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
}

::selection {
  background: rgba(110, 200, 255, 0.28);
  color: var(--text);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  min-height: 100svh;
  background:
    radial-gradient(ellipse 60% 34% at 82% -4%, rgba(62, 197, 255, 0.09), transparent 62%),
    radial-gradient(ellipse 46% 30% at 4% 12%, rgba(61, 232, 214, 0.05), transparent 66%),
    var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.content-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

main {
  flex: 1;
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 92px 28px 48px;
}

main.narrow {
  width: min(720px, 100%);
}

main.centered {
  display: grid;
  place-items: center;
}

a {
  color: var(--sky);
}

/* ---------- Typography helpers ---------- */

.mono {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ---------- Topbar ---------- */

.topbar {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 26px);
  padding: 10px clamp(18px, 4vw, 36px);
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-1);
}

.brand {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.brand span {
  background: linear-gradient(120deg, var(--teal) 0%, var(--sky) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand .sub {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  -webkit-background-clip: initial;
  background: none;
  margin-left: 10px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

/* ---------- Main navigation ---------- */

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  display: inline-block;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-soft);
  text-decoration: none;
  transition: color 140ms ease, background 140ms ease, border-color 140ms ease;
}

.main-nav a:hover {
  color: var(--text);
  background: var(--panel-hover);
}

.main-nav a.active {
  color: var(--sky);
  border-color: rgba(110, 200, 255, 0.35);
  background: rgba(110, 200, 255, 0.08);
}

/* ---------- Search (SearXNG, request-scoped) ---------- */

.search-form {
  flex: 1;
  max-width: 440px;
  position: relative;
  margin-left: auto;
}

.search-form input {
  width: 100%;
  padding: 8px 16px 8px 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(6, 12, 20, 0.6);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.88rem;
  transition: border-color 160ms ease, background 160ms ease;
}

.search-form input::placeholder {
  color: var(--text-dim);
}

.search-form input:focus {
  outline: none;
  border-color: var(--line-strong);
  background: rgba(6, 12, 20, 0.9);
}

.search-form .lens {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  display: grid;
  place-items: center;
}

.search-form .lens svg {
  width: 15px;
  height: 15px;
}

/* ---------- User menu ---------- */

.user-menu {
  position: relative;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.user-chip:hover,
.user-chip[aria-expanded="true"] {
  border-color: var(--line-strong);
  background: var(--panel-hover);
}

.user-chip .avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  color: var(--primary-text);
  background: linear-gradient(135deg, var(--teal), var(--sky));
}

.user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 240px;
  padding: 6px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--panel-raised);
  box-shadow: var(--shadow-2);
  display: none;
}

.user-dropdown.open {
  display: block;
  animation: menuIn 180ms var(--ease-out);
}

@keyframes menuIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.user-dropdown .who {
  padding: 10px 12px 11px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}

.user-dropdown .who .name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}

.user-dropdown .who .id {
  font-size: 0.76rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.user-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.88rem;
  transition: background 140ms ease, color 140ms ease;
}

.user-dropdown a:hover {
  background: var(--panel-hover);
  color: var(--text);
}

.user-dropdown a svg {
  width: 15px;
  height: 15px;
  color: var(--text-dim);
}

.user-dropdown a:hover svg {
  color: var(--sky);
}

.user-dropdown .sep {
  height: 1px;
  background: var(--line);
  margin: 6px 4px;
}

/* ---------- Buttons ---------- */

.btn-primary,
.btn-secondary {
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 9px 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.btn-primary {
  color: var(--primary-text);
  background: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #8ad4ff;
  box-shadow: 0 4px 16px rgba(110, 200, 255, 0.25);
}

.btn-secondary {
  color: var(--text);
  background: transparent;
  border-color: var(--line-strong);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--panel-hover);
  border-color: rgba(144, 200, 255, 0.5);
}

.btn-primary svg,
.btn-secondary svg {
  width: 14px;
  height: 14px;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.82rem;
}

.btn-danger {
  color: var(--coral);
  border-color: rgba(255, 143, 122, 0.35);
}

.btn-danger:hover,
.btn-danger:focus-visible {
  background: rgba(255, 143, 122, 0.1);
  border-color: rgba(255, 143, 122, 0.6);
}

:focus-visible {
  outline: 2px solid var(--line-strong);
  outline-offset: 2px;
}

/* ---------- Page headers ---------- */

.page-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  margin-bottom: 32px;
}

.eyebrow {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sky);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.page-head h1,
.page-title {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.page-head .aside {
  font-size: 0.76rem;
  color: var(--text-dim);
  text-align: right;
  line-height: 1.8;
  padding-bottom: 4px;
}

.page-head .lede,
.lede {
  margin-top: 10px;
  color: var(--text-soft);
  line-height: 1.65;
  font-size: 0.95rem;
  max-width: 640px;
}

/* ---------- Service catalog ---------- */

.svc-group {
  margin-top: 36px;
}

.svc-group:first-of-type {
  margin-top: 0;
}

.svc-group-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.svc-group-label .name {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
}

.svc-group-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.svc-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.svc-card {
  --accent: var(--sky);
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 18px 18px 16px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 200ms ease, transform 200ms var(--ease-out);
}

.svc-card:hover,
.svc-card:focus-visible {
  background: var(--panel-raised);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}

.svc-card .idx {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.svc-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  color: color-mix(in srgb, var(--accent) 85%, white);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}

.svc-icon svg {
  width: 19px;
  height: 19px;
}

.svc-card h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

.svc-card p {
  margin-top: 6px;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-soft);
  flex: 1;
}

.svc-card .meta {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.svc-card .powered {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.powered--app {
  color: color-mix(in srgb, var(--accent) 80%, white);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
}

.svc-card .arrow {
  color: color-mix(in srgb, var(--accent) 80%, white);
  font-size: 1rem;
  transition: transform 200ms var(--ease-out);
}

.svc-card:hover .arrow {
  transform: translateX(4px);
}

/* Locked cards — visible but not available. */

.svc-card--locked {
  opacity: 0.5;
  filter: saturate(0.4);
}

.svc-card--locked:hover,
.svc-card--locked:focus-visible {
  transform: none;
  opacity: 0.7;
  background: var(--panel);
  border-color: var(--line);
  box-shadow: none;
}

.svc-card--locked .lock-hint {
  font-size: 0.72rem;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.svc-card--locked .lock-hint svg {
  width: 12px;
  height: 12px;
}

/* Card wrapper with a hover detail button. */

.svc-wrap {
  position: relative;
  display: flex;
}

.svc-wrap .svc-card {
  flex: 1;
}

.svc-info {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-dim);
  border: 1px solid var(--line);
  background: var(--panel-raised);
  opacity: 0;
  transition: opacity 160ms ease, color 160ms ease, border-color 160ms ease;
}

.svc-wrap:hover .svc-info,
.svc-info:focus-visible {
  opacity: 1;
}

.svc-info:hover,
.svc-info:focus-visible {
  color: var(--sky);
  border-color: var(--line-strong);
}

.svc-info svg {
  width: 13px;
  height: 13px;
}

/* ---------- Panels (settings pages) ---------- */

.panel {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 24px;
}

.panel + .panel {
  margin-top: 16px;
}

.panel h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel > p {
  margin-top: 6px;
  color: var(--text-soft);
  line-height: 1.6;
  font-size: 0.9rem;
}

.panel-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
}

.panel-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 2px;
  border-top: 1px solid var(--line);
}

.panel-row:first-child {
  border-top: 0;
}

.panel-row .grow {
  flex: 1;
  min-width: 0;
}

.panel-row .label {
  font-size: 0.92rem;
  color: var(--text);
}

.panel-row .hint {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.panel-row .tag,
.tag {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}

.tag--accent {
  color: var(--sky);
  border-color: rgba(110, 200, 255, 0.35);
}

.tag--green {
  color: var(--mint);
  border-color: rgba(108, 240, 182, 0.35);
}

.tag--amber {
  color: var(--amber);
  border-color: rgba(255, 192, 106, 0.35);
}

/* ---------- Forms ---------- */

.field {
  margin-top: 16px;
}

.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.field input[type="text"],
.field input[type="email"],
.field textarea,
.field select {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: rgba(6, 12, 20, 0.6);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: border-color 160ms ease, background 160ms ease;
}

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

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--sky);
  background: rgba(6, 12, 20, 0.9);
}

.form-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.form-note {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* Toggle switch */

.toggle {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}

.toggle input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.toggle .track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(6, 12, 20, 0.8);
  transition: background 180ms ease, border-color 180ms ease;
  pointer-events: none;
}

.toggle .track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text-dim);
  transition: transform 180ms var(--ease-out), background 180ms ease;
}

.toggle input:checked + .track {
  border-color: var(--teal);
  background: rgba(61, 232, 214, 0.2);
}

.toggle input:checked + .track::after {
  transform: translateX(18px);
  background: var(--teal);
}

.toggle input:focus-visible + .track {
  outline: 2px solid var(--line-strong);
  outline-offset: 2px;
}

/* Avatar glyph picker */

.glyph-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.glyph-picker label {
  cursor: pointer;
}

.glyph-picker input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.glyph-picker .glyph-option {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  color: var(--text-soft);
  border: 1px solid var(--line-strong);
  background: rgba(6, 12, 20, 0.6);
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.glyph-picker label:hover .glyph-option {
  color: var(--text);
  border-color: rgba(144, 200, 255, 0.5);
}

.glyph-picker input:checked + .glyph-option {
  color: var(--primary-text);
  border-color: transparent;
  background: linear-gradient(135deg, var(--teal), var(--sky));
}

.glyph-picker input:focus-visible + .glyph-option {
  outline: 2px solid var(--line-strong);
  outline-offset: 2px;
}

/* ---------- Checklist / onboarding ---------- */

.checklist-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(110, 200, 255, 0.3);
  background: linear-gradient(120deg, rgba(61, 232, 214, 0.07), rgba(110, 200, 255, 0.05)), var(--panel);
  padding: 20px 24px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.checklist-card .copy {
  flex: 1;
  min-width: 240px;
}

.checklist-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
}

.checklist-card p {
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.progress-dots {
  display: flex;
  align-items: center;
}

.progress-dots .p-step {
  display: flex;
  align-items: center;
}

.progress-dots .p-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
}

.progress-dots .p-step.done .p-dot {
  border-color: var(--teal);
  background: var(--teal);
}

.progress-dots .p-link {
  width: 26px;
  height: 1px;
  background: var(--line-strong);
}

.progress-dots .p-step.done .p-link {
  background: var(--teal);
}

/* Wizard */

.wizard-rail {
  display: flex;
  flex-direction: column;
}

.wizard-step-row {
  display: flex;
  gap: 18px;
}

.wizard-step-row .rail {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wizard-step-row .rail .node {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  border: 1px solid var(--line-strong);
  background: var(--panel);
  flex-shrink: 0;
}

.wizard-step-row.done .rail .node {
  color: var(--primary-text);
  border-color: transparent;
  background: var(--teal);
}

.wizard-step-row.active .rail .node {
  color: var(--sky);
  border-color: var(--sky);
}

.wizard-step-row .rail .thread {
  flex: 1;
  width: 1px;
  background: var(--line-strong);
  min-height: 18px;
}

.wizard-step-row.done .rail .thread {
  background: var(--teal);
}

.wizard-step-row .step-body {
  flex: 1;
  padding-bottom: 24px;
  min-width: 0;
}

.wizard-step-row .step-body h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  padding-top: 5px;
}

.wizard-step-row .step-body p {
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.6;
}

.wizard-step-row .step-body .step-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wizard-step-row:not(.active):not(.done) .step-body {
  opacity: 0.55;
}

/* ---------- Auth card (login / invite) ---------- */

.frame {
  width: min(440px, 100%);
  padding: clamp(28px, 4vw, 40px);
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-2);
}

.frame h1 {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1.4rem, 3vw, 1.7rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.frame .lede {
  margin-inline: auto;
  font-size: 0.9rem;
}

/* Login user picker */

.user-picker {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.user-picker label {
  cursor: pointer;
  display: block;
  position: relative;
}

.user-picker input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.user-picker .pick {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-strong);
  background: rgba(6, 12, 20, 0.4);
  transition: border-color 160ms ease, background 160ms ease;
}

.user-picker label:hover .pick {
  border-color: rgba(144, 200, 255, 0.5);
  background: var(--panel-hover);
}

.user-picker input:checked + .pick {
  border-color: var(--sky);
  background: rgba(110, 200, 255, 0.08);
}

.user-picker input:focus-visible + .pick {
  outline: 2px solid var(--line-strong);
  outline-offset: 2px;
}

.user-picker .pick .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--primary-text);
  background: linear-gradient(135deg, var(--teal), var(--sky));
  flex-shrink: 0;
}

.user-picker .pick .who {
  display: flex;
  flex-direction: column;
}

.user-picker .pick .who .name {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

.user-picker .pick .who .role {
  font-size: 0.76rem;
  color: var(--text-dim);
  margin-top: 1px;
}

/* ---------- Flash messages ---------- */

.flash {
  margin-bottom: 24px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(61, 232, 214, 0.35);
  background: rgba(61, 232, 214, 0.08);
  color: var(--text);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.flash::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

.flash--error {
  border-color: rgba(255, 143, 122, 0.4);
  background: rgba(255, 143, 122, 0.08);
}

.flash--error::before {
  background: var(--coral);
}

/* ---------- V2 stubs ---------- */

.stub-row {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.stub-row .stub-label {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.stub-cards {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.stub-card {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  opacity: 0.65;
}

.stub-card .t {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
}

.stub-card .d {
  margin-top: 3px;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.stub-card .v2 {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--amber);
  border: 1px solid rgba(255, 192, 106, 0.35);
  border-radius: 999px;
  padding: 2px 8px;
  float: right;
}

/* ---------- Data table ---------- */

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.data-table th {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: left;
  padding: 0 12px 8px 2px;
  border-bottom: 1px solid var(--line-strong);
}

.data-table td {
  padding: 10px 12px 10px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--text-soft);
}

.data-table td:first-child {
  color: var(--text);
}

.data-table tr:last-child td {
  border-bottom: 0;
}

/* ---------- Prototype badge ---------- */

.badge-prototype {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid rgba(255, 192, 106, 0.4);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 18px clamp(18px, 4vw, 36px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

footer p {
  color: var(--text-dim);
  font-size: 0.8rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
}

.lang-switch a {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  text-decoration: none;
  transition: background 140ms ease, color 140ms ease;
}

.lang-switch a:hover {
  color: var(--text);
}

.lang-switch a.active {
  background: var(--panel-hover);
  color: var(--sky);
}

/* ---------- Landing page ---------- */

.landing-hero {
  max-width: 720px;
  padding: clamp(24px, 6vw, 64px) 0 clamp(20px, 4vw, 40px);
}

.landing-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.landing-hero .lede {
  font-size: 1.02rem;
  max-width: 600px;
}

.landing-actions {
  margin-top: 28px;
}

.landing-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 24px;
}

.landing-grid .panel + .panel {
  margin-top: 0;
}

.landing-grid .panel h3 {
  font-size: 1.05rem;
}

.landing-grid .panel p {
  margin-top: 6px;
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.6;
}

.landing-grid .svc-icon {
  margin-bottom: 14px;
}

/* ---------- Feedback & Bugs ---------- */

.fb-note {
  border-color: rgba(255, 143, 122, 0.35);
  background: rgba(255, 143, 122, 0.06);
}

.fb-note p {
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.65;
}

.fb-note strong {
  color: var(--text);
}

.fb-filters input[type="search"] {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: rgba(6, 12, 20, 0.6);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.92rem;
}

.fb-filters input[type="search"]:focus {
  outline: none;
  border-color: var(--sky);
}

.fb-filter-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: end;
}

.fb-filter-row .field {
  min-width: 170px;
}

.fb-filter-row .fb-sort {
  margin-left: auto;
}

.fb-new {
  margin-top: 20px;
}

.fb-new summary {
  list-style: none;
  user-select: none;
  width: 100%;
  justify-content: center;
}

.fb-new summary::-webkit-details-marker {
  display: none;
}

.fb-new[open] summary {
  display: none;
}

.fb-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fb-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 18px 20px;
}

.vote-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text-soft);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 140ms ease, background 140ms ease, border-color 140ms ease;
}

.vote-btn svg {
  width: 13px;
  height: 13px;
}

button.vote-btn:hover {
  color: var(--text);
  background: var(--panel-hover);
}

.vote-btn.voted {
  color: var(--primary-text);
  border-color: transparent;
  background: var(--teal);
}

.vote-btn.voted-down {
  color: var(--primary-text);
  border-color: transparent;
  background: var(--coral);
}

.vote-score {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.fb-body {
  flex: 1;
  min-width: 0;
}

.fb-author {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.fb-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  color: var(--primary-text);
  background: linear-gradient(135deg, var(--teal), var(--sky));
  flex-shrink: 0;
}

.fb-name {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-soft);
}

.fb-body h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}

.fb-body > p {
  margin-top: 5px;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--text-soft);
}

.fb-meta {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.fb-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex-shrink: 0;
}

.fb-tags .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fb-tags .tag svg {
  width: 12px;
  height: 12px;
}

.tag--coral {
  color: var(--coral);
  border-color: rgba(255, 143, 122, 0.35);
}

@media (max-width: 700px) {
  .fb-card {
    flex-wrap: wrap;
  }

  .fb-tags {
    order: -1;
    width: 100%;
    justify-content: flex-start;
  }
}

/* ---------- Animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: transform 440ms var(--ease-out), opacity 400ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.rise {
  opacity: 0;
  transform: translateY(12px);
  animation: riseIn 480ms var(--ease-out) forwards;
  animation-delay: var(--rise-delay, 0ms);
}

@keyframes riseIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .main-nav {
    order: 9;
  }

  .search-form {
    order: 10;
    flex-basis: 100%;
    max-width: none;
  }

  .topbar {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  main {
    padding-top: 128px;
  }

  .brand .sub {
    display: none;
  }
}

@media (max-width: 640px) {
  .page-head {
    grid-template-columns: 1fr;
  }

  .page-head .aside {
    text-align: left;
    order: -1;
    padding-bottom: 0;
  }

  .panel {
    padding: 20px 16px;
  }

  .checklist-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* ---------- Portal sub-apps (app shell) ---------- */

.appbar {
  --accent: var(--sky);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 14px 20px;
  margin-bottom: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--panel);
}

.app-id {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.app-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: color-mix(in srgb, var(--accent) 85%, white);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}

.app-icon svg {
  width: 20px;
  height: 20px;
}

.app-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.app-sub {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.app-tabs {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.app-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-soft);
  text-decoration: none;
  transition: color 140ms ease, background 140ms ease, border-color 140ms ease;
}

.app-tab svg {
  width: 14px;
  height: 14px;
}

.app-tab:hover {
  color: var(--text);
  background: var(--panel-hover);
}

.app-tab.active {
  color: var(--sky);
  border-color: rgba(110, 200, 255, 0.35);
  background: rgba(110, 200, 255, 0.08);
}

.tab-badge {
  min-width: 17px;
  height: 17px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--primary-text);
  background: var(--teal);
}

.app-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
}

.app-back:hover {
  color: var(--sky);
}

.app-back svg {
  width: 14px;
  height: 14px;
}

/* ---------- Drive: file browser ---------- */

.file-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  min-width: 0;
}

.crumb {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-soft);
  text-decoration: none;
}

.crumb:hover {
  color: var(--sky);
}

.crumb.current {
  color: var(--text);
  font-weight: 500;
}

.crumb svg {
  width: 14px;
  height: 14px;
  color: var(--sky);
}

.crumb-sep {
  color: var(--text-dim);
}

.file-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.folder-pop {
  position: relative;
}

.folder-pop summary {
  list-style: none;
  user-select: none;
}

.folder-pop summary::-webkit-details-marker {
  display: none;
}

.folder-pop-form {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  display: flex;
  gap: 8px;
  padding: 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--panel-raised);
  box-shadow: var(--shadow-2);
}

.folder-pop-form input[type="text"] {
  width: 190px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: rgba(6, 12, 20, 0.6);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.88rem;
}

.folder-pop-form input[type="text"]:focus {
  outline: none;
  border-color: var(--sky);
}

.file-table td.dim {
  color: var(--text-dim);
  font-size: 0.82rem;
  white-space: nowrap;
}

.file-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.file-name svg {
  width: 15px;
  height: 15px;
  color: var(--text-dim);
  flex-shrink: 0;
}

.file-name.folder svg {
  color: var(--sky);
}

.file-name.folder:hover {
  color: var(--sky);
}

.empty-hint {
  margin-top: 16px;
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ---------- Drive: Beam radar ---------- */

.beam-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 16px;
  align-items: start;
}

.beam-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.beam-side .panel + .panel {
  margin-top: 0;
}

.radar {
  position: relative;
  width: min(380px, 100%);
  aspect-ratio: 1;
  margin: 28px auto 10px;
}

.radar-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(110, 200, 255, 0.22);
}

.radar-ring.r1 {
  inset: 26%;
}

.radar-ring.r2 {
  inset: 4%;
}

.radar-sweep {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(61, 232, 214, 0.1), transparent 22%);
  animation: radarSweep 8s linear infinite;
  pointer-events: none;
}

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

.radar-you {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 2;
}

.radar-you .avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  color: var(--primary-text);
  background: linear-gradient(135deg, var(--teal), var(--sky));
  box-shadow: 0 0 20px rgba(110, 200, 255, 0.3);
}

.radar-you .you-label {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.radar-node {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 74px;
  margin: -37px 0 0 -37px;
  transform: rotate(var(--angle)) translateY(-132px) rotate(calc(var(--angle) * -1));
}

.radar-node.device {
  transform: rotate(var(--angle)) translateY(-86px) rotate(calc(var(--angle) * -1));
}

.radar-node input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radar-node .node {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-soft);
  border: 1px solid var(--line-strong);
  background: var(--panel-raised);
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.radar-node .node svg {
  width: 17px;
  height: 17px;
}

.radar-node .member-glyph {
  font-size: 1.05rem;
}

.radar-node:hover .node {
  color: var(--sky);
  border-color: rgba(144, 200, 255, 0.5);
}

.radar-node input:checked ~ .node {
  color: var(--primary-text);
  border-color: transparent;
  background: linear-gradient(135deg, var(--teal), var(--sky));
  box-shadow: 0 0 18px rgba(110, 200, 255, 0.45);
}

.radar-node input:focus-visible ~ .node {
  outline: 2px solid var(--line-strong);
  outline-offset: 2px;
}

.radar-node .node-label {
  max-width: 74px;
  text-align: center;
  font-size: 0.68rem;
  color: var(--text-dim);
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radar-node input:checked ~ .node-label {
  color: var(--sky);
}

.beam-source {
  margin-top: 18px;
  display: flex;
  align-items: end;
  gap: 14px;
  flex-wrap: wrap;
}

.beam-source .field {
  margin-top: 0;
  flex: 1;
  min-width: 180px;
}

.beam-or {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding-bottom: 12px;
}

.upload-inline {
  width: 100%;
  justify-content: flex-start;
}

.beam-row form {
  display: inline;
}

.beam-row.settled .label,
.beam-row.settled .hint {
  opacity: 0.55;
}

.beam-note p {
  font-size: 0.84rem;
  color: var(--text-soft);
  line-height: 1.65;
}

.beam-note .mono {
  margin-right: 6px;
  color: var(--amber);
}

@media (max-width: 980px) {
  .beam-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .app-tabs {
    order: 10;
    margin-left: 0;
    flex-basis: 100%;
  }
}

/* ---------- Status board ---------- */

.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 8px rgba(108, 240, 182, 0.5);
  flex-shrink: 0;
}

.status-dot--maintenance {
  background: var(--amber);
  box-shadow: 0 0 8px rgba(255, 192, 106, 0.5);
}

.status-dot--degraded,
.status-dot--down {
  background: var(--coral);
  box-shadow: 0 0 8px rgba(255, 143, 122, 0.5);
}

.status-dot--unknown {
  background: var(--text-dim);
  box-shadow: none;
}

.status-state--unknown {
  color: var(--text-dim);
}

.news-link {
  color: inherit;
  text-decoration: none;
}

.news-link:hover {
  color: var(--sky);
}

.status-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 2px;
  border-top: 1px solid var(--line);
}

.status-row:first-child {
  border-top: 0;
}

.status-row .grow {
  flex: 1;
  min-width: 0;
}

.status-row .label {
  font-size: 0.92rem;
  color: var(--text);
}

.status-row .hint {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.svc-icon--sm {
  width: 32px;
  height: 32px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.svc-icon--sm svg {
  width: 15px;
  height: 15px;
}

.status-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  min-width: 118px;
  justify-content: flex-end;
  color: var(--mint);
}

.status-state--maintenance {
  color: var(--amber);
}

.status-state--degraded,
.status-state--down {
  color: var(--coral);
}

.status-uptime {
  min-width: 72px;
  text-align: center;
}

@media (max-width: 640px) {
  .status-uptime {
    display: none;
  }
}

/* ---------- Announcements ---------- */

.news-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-list .panel + .panel {
  margin-top: 0;
}

.news-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.news-date {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.news-card h3 {
  font-size: 1.2rem;
}

.news-card > p {
  margin-top: 8px;
}

.news-foot {
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* ---------- Member directory ---------- */

.member-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.member-grid .panel + .panel {
  margin-top: 0;
}

.member-card--hidden {
  border-style: dashed;
  opacity: 0.7;
}

.member-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.member-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  color: var(--primary-text);
  background: linear-gradient(135deg, var(--teal), var(--sky));
  flex-shrink: 0;
}

.member-top h3 {
  font-size: 1.05rem;
}

.member-role {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.member-you {
  margin-left: auto;
}

.member-card > p {
  margin-top: 12px;
}

.member-hidden-hint {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--amber);
}

.member-hidden-hint svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

/* ---------- scnd.link ---------- */

.link-code strong {
  color: var(--teal);
}

.link-target {
  word-break: break-all;
}

.link-row form {
  display: inline;
}

[data-copy].copied {
  color: var(--mint);
  border-color: rgba(108, 240, 182, 0.5);
}

/* ---------- Launcher: "Around the verse" cards ---------- */

.verse-cards {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.verse-card {
  --accent: var(--sky);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 200ms ease, transform 200ms var(--ease-out);
}

.verse-card:hover,
.verse-card:focus-visible {
  background: var(--panel-raised);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}

.verse-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
}

.verse-head svg {
  width: 16px;
  height: 16px;
  color: color-mix(in srgb, var(--accent) 85%, white);
}

.verse-head .t {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
}

.verse-head .arrow {
  margin-left: auto;
  color: color-mix(in srgb, var(--accent) 80%, white);
  transition: transform 200ms var(--ease-out);
}

.verse-card:hover .verse-head .arrow {
  transform: translateX(4px);
}

.verse-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.verse-line .vl-main {
  font-size: 0.84rem;
  color: var(--text-soft);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.verse-line .vl-dim {
  font-size: 0.76rem;
  color: var(--text-dim);
  flex-shrink: 0;
}

.verse-avatars {
  display: inline-flex;
}

.verse-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  color: var(--primary-text);
  background: linear-gradient(135deg, var(--teal), var(--sky));
  border: 2px solid var(--panel);
}

.verse-avatar + .verse-avatar {
  margin-left: -8px;
}

/* ---------- Landing: hero split with service orbit ---------- */

.landing-split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(16px, 4vw, 48px) 0 clamp(16px, 3vw, 32px);
}

.landing-status {
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-soft);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  transition: border-color 160ms ease, background 160ms ease;
}

.landing-status:hover {
  border-color: var(--line-strong);
  background: var(--panel-hover);
}

.landing-status .dim {
  color: var(--text-dim);
}

.orbit {
  position: relative;
  width: min(400px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
}

.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(110, 200, 255, 0.2);
}

.orbit-ring.o1 {
  inset: 27%;
}

.orbit-ring.o2 {
  inset: 5%;
}

.orbit-sweep {
  position: absolute;
  inset: 5%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(61, 232, 214, 0.08), transparent 24%);
  animation: radarSweep 14s linear infinite;
  pointer-events: none;
}

.orbit-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  color: var(--primary-text);
  background: linear-gradient(135deg, var(--teal), var(--sky));
  box-shadow: 0 0 26px rgba(110, 200, 255, 0.35);
}

.orbit-node {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: color-mix(in srgb, var(--accent) 85%, white);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, var(--panel-raised));
  transform: rotate(var(--angle)) translateY(-190px) rotate(calc(var(--angle) * -1));
  animation: orbitFloat 5s ease-in-out infinite;
  animation-delay: var(--float-delay, 0ms);
  transition: box-shadow 160ms ease, border-color 160ms ease;
}

.orbit-node.inner {
  transform: rotate(var(--angle)) translateY(-92px) rotate(calc(var(--angle) * -1));
}

.orbit-node:hover {
  border-color: color-mix(in srgb, var(--accent) 70%, transparent);
  box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 40%, transparent);
}

.orbit-node svg {
  width: 16px;
  height: 16px;
}

@keyframes orbitFloat {
  0%, 100% { margin-top: -20px; }
  50% { margin-top: -25px; }
}

@media (max-width: 900px) {
  .landing-split {
    grid-template-columns: 1fr;
  }

  .orbit {
    width: min(320px, 86vw);
  }

  .orbit-node {
    transform: rotate(var(--angle)) translateY(-146px) rotate(calc(var(--angle) * -1));
  }

  .orbit-node.inner {
    transform: rotate(var(--angle)) translateY(-74px) rotate(calc(var(--angle) * -1));
  }
}

/* ---------- Landing: stats & news ---------- */

.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 8px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  text-align: center;
}

.stat .n {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--teal) 0%, var(--sky) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat .l {
  margin-top: 2px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.landing-news {
  margin-top: 24px;
}

.landing-news .panel h3 svg {
  width: 17px;
  height: 17px;
  color: var(--sky);
}

/* ---------- Footer nav ---------- */

.footer-nav {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.footer-nav a {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--sky);
}

/* ---------- Reduced motion ---------- */

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

  .reveal,
  .reveal.visible,
  .rise {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   secondWorlds — standalone game-server showcase (secondworlds.win)
   Self-contained page; reuses the secondVerse palette, own chrome.
   ========================================================================== */

body.sw {
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(110, 200, 255, 0.12), transparent 60%),
    radial-gradient(900px 520px at 8% 4%, rgba(61, 232, 214, 0.08), transparent 55%),
    var(--bg);
}

.sw-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: rgba(6, 12, 20, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.sw-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.sw-brand span {
  background: linear-gradient(120deg, var(--teal) 0%, var(--sky) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sw-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.75rem);
}
.sw-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s var(--ease-out);
}
.sw-nav a:hover { color: var(--text); }
.sw-nav a i { width: 15px; height: 15px; }
.sw-nav-verse { color: var(--sky) !important; }

/* ---------- Hero ---------- */
.sw-hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(3.5rem, 9vw, 7rem) clamp(1rem, 4vw, 3rem) clamp(2rem, 5vw, 3.5rem);
}
.sw-hero-copy { max-width: 44rem; }
.sw-eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
}
.sw-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  color: var(--text);
}
.sw-lede {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.6;
  color: var(--text-soft);
  margin: 0 0 1.75rem;
}

.sw-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}
.sw-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 500;
}
.sw-pill i { width: 16px; height: 16px; color: var(--teal); }

.sw-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: var(--primary-text);
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-2);
  transition: transform 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out);
}
.sw-cta:hover { transform: translateY(-2px); }
.sw-cta i { width: 18px; height: 18px; }
.sw-cta--ghost {
  background: transparent;
  color: var(--sky);
  border: 1px solid var(--line-strong);
  box-shadow: none;
}
.sw-cta--ghost:hover { background: var(--panel-hover); }

/* ---------- Sections ---------- */
.sw-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 3rem);
}
.sw-section-head { margin-bottom: 2rem; }
.sw-section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  color: var(--text);
}
.sw-section-head p {
  color: var(--text-soft);
  font-size: 1.02rem;
  margin: 0;
  max-width: 42rem;
}

/* ---------- Game cards ---------- */
.sw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.sw-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform 0.18s var(--ease-out), border-color 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out);
}
.sw-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--game-accent) 55%, var(--line));
  box-shadow: 0 12px 34px rgba(2, 6, 12, 0.55);
}

.sw-card-art {
  position: relative;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: var(--bg-soft);
  /* Own stacking context so the gradient below stays above the image layer. */
  isolation: isolate;
}
.sw-card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  /* Promote up front: without this the layer is created only once the hover
     transition starts, and during that frame the gradient below is not yet
     composited on top — the undimmed bottom edge flashes through. */
  will-change: transform;
  backface-visibility: hidden;
  transition: transform 0.4s var(--ease-out);
}
.sw-card:hover .sw-card-art img { transform: scale(1.04); }
.sw-card-art::after {
  content: "";
  position: absolute;
  /* 1px past the bottom kills the subpixel seam when the image is scaled. */
  inset: 0 0 -1px 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(6, 12, 20, 0.85) 0%, transparent 45%);
  pointer-events: none;
  transform: translateZ(0);
}

.sw-card-genre {
  position: absolute;
  left: 0.85rem;
  bottom: 0.75rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(6, 12, 20, 0.82);
  border: 1px solid color-mix(in srgb, var(--game-accent) 45%, transparent);
  color: var(--game-accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.sw-card-genre i { width: 14px; height: 14px; }

.sw-card-flag {
  position: absolute;
  z-index: 2;
  right: 0.85rem;
  top: 0.75rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: rgba(6, 12, 20, 0.72);
  border: 1px solid var(--line-strong);
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sw-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.15rem 1.25rem 1.35rem;
}
.sw-card-body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--text);
}
.sw-card-body p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.96rem;
  line-height: 1.55;
}
.sw-card-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.35rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 0.85rem;
  line-height: 1.45;
}
.sw-card-note i {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 0.1rem;
  color: color-mix(in srgb, var(--game-accent) 70%, var(--text-dim));
}
.sw-card-note--soft i { color: var(--amber); }

.sw-card--watch { opacity: 0.92; }
.sw-card--watch .sw-card-art img { filter: saturate(0.85) brightness(0.9); }
.sw-section--watch { border-top: 1px solid var(--line); }

/* ---------- Outro ---------- */
.sw-outro {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem);
}
.sw-outro-inner {
  padding: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(110, 200, 255, 0.1), transparent 60%),
    var(--panel);
  text-align: center;
}
.sw-outro-inner h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  color: var(--text);
}
.sw-outro-inner p {
  max-width: 40rem;
  margin: 0 auto 1.5rem;
  color: var(--text-soft);
  line-height: 1.6;
}

/* ---------- Footer (shares base badge/lang-switch) ---------- */
.sw-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem clamp(1rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 0.88rem;
}
.sw-footer p { margin: 0; }

@media (max-width: 560px) {
  .sw-nav a:not(.sw-nav-verse) { display: none; }
  .sw-grid { grid-template-columns: 1fr; }
}

/* ---------- secondWorlds — card link + game detail page ---------- */
.sw-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.sw-card-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.85rem;
  color: var(--game-accent);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
}
.sw-card-more i { width: 15px; height: 15px; transition: transform 0.18s var(--ease-out); }
.sw-card:hover .sw-card-more i { transform: translateX(3px); }

.sw-detail { padding-bottom: clamp(2rem, 5vw, 4rem); }

.sw-detail-hero {
  position: relative;
  isolation: isolate;
  max-height: 380px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.sw-detail-hero img {
  width: 100%;
  height: 100%;
  max-height: 380px;
  object-fit: cover;
  display: block;
}
.sw-detail-hero::after {
  content: "";
  position: absolute;
  inset: 0 0 -1px 0;
  z-index: 1;
  background: linear-gradient(to top, var(--bg) 4%, rgba(6, 12, 20, 0.55) 45%, rgba(6, 12, 20, 0.25) 100%);
  pointer-events: none;
}
.sw-detail-hero-inner {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem) clamp(1.25rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}
.sw-detail-hero-inner h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--text);
}
.sw-detail-genre { position: static; }

.sw-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
}
.sw-back:hover { color: var(--text); }
.sw-back i { width: 16px; height: 16px; }

.sw-detail-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 4vw, 3rem) 0;
}
.sw-detail-body > .sw-lede { max-width: 46rem; }
.sw-detail-outro { color: var(--text-soft); max-width: 46rem; }

.sw-notice {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin: 1.5rem 0 2rem;
  padding: 1rem 1.15rem;
  border: 1px solid color-mix(in srgb, var(--amber) 35%, var(--line));
  border-left: 3px solid var(--amber);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--amber) 7%, var(--panel));
}
.sw-notice i { width: 19px; height: 19px; flex: none; margin-top: 0.15rem; color: var(--amber); }
.sw-notice strong {
  display: block;
  font-family: var(--font-display);
  color: var(--text);
  margin-bottom: 0.15rem;
}
.sw-notice p { margin: 0; color: var(--text-soft); font-size: 0.94rem; line-height: 1.5; }
.sw-notice--soft {
  border-color: var(--line);
  border-left-color: var(--sky);
  background: var(--panel);
}
.sw-notice--soft i { color: var(--sky); }

.sw-detail-cols {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
  margin-bottom: 2.5rem;
}
.sw-connect h2,
.sw-access h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
  color: var(--text);
}

.sw-steps {
  counter-reset: sw-step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.sw-steps li {
  counter-increment: sw-step;
  position: relative;
  padding-left: 2.6rem;
  color: var(--text-soft);
  line-height: 1.55;
}
.sw-steps li::before {
  content: counter(sw-step);
  position: absolute;
  left: 0;
  top: -0.1rem;
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--game-accent) 45%, transparent);
  background: color-mix(in srgb, var(--game-accent) 12%, var(--panel));
  color: var(--game-accent);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
}

.sw-help {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.sw-help i { width: 17px; height: 17px; flex: none; margin-top: 0.15rem; color: var(--teal); }
.sw-help p { margin: 0; color: var(--text-dim); font-size: 0.9rem; line-height: 1.5; }

.sw-access {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
}
.sw-access-list { margin: 0; display: flex; flex-direction: column; }
.sw-access-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
.sw-access-row:last-child { border-bottom: 0; padding-bottom: 0; }
.sw-access-row dt {
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 500;
  flex: none;
}
.sw-access-row dd {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}
.sw-access-row code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.86rem;
  color: var(--text);
  word-break: break-all;
  text-align: right;
}
.sw-copy {
  flex: none;
  padding: 0.22rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel-raised);
  color: var(--text-soft);
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s var(--ease-out), border-color 0.15s var(--ease-out);
}
.sw-copy:hover { color: var(--text); border-color: var(--line-strong); }
.sw-copy.copied { color: var(--mint); border-color: color-mix(in srgb, var(--mint) 45%, transparent); }

.sw-access-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 0.85rem;
  line-height: 1.45;
}
.sw-access-note i { width: 15px; height: 15px; flex: none; margin-top: 0.1rem; color: var(--game-accent); }

@media (max-width: 800px) {
  .sw-detail-cols { grid-template-columns: 1fr; }
}
