    :root {
      --bg: #060a16;
      --surface: rgba(8, 15, 35, 0.88);
      --surface-strong: #0a1022;
      --surface-muted: #0c1428;
      --line: rgba(0, 245, 255, 0.08);
      --line-strong: rgba(0, 245, 255, 0.15);
      --text: #dde5f5;
      --muted: #7a8fbb;
      --muted-strong: #9fb5d5;
      --brand: #00d4ff;
      --brand-2: #a855f7;
      --accent: #22d3a1;
      --good: #22d3a1;
      --warn: #fbbf24;
      --bad: #f87171;
      --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
      --shadow-soft: 0 14px 42px rgba(0, 0, 0, 0.32);
      --radius-xl: 28px;
      --radius-lg: 22px;
      --radius-md: 16px;
      --radius-sm: 12px;
      --sans: "Aptos", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
      --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
      --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
      --page-max: 1280px;
      --ease: 180ms ease;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      font-family: var(--sans);
      color: var(--text);
      background:
        repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0, 245, 255, 0.007) 3px, rgba(0, 245, 255, 0.007) 4px),
        radial-gradient(circle at top left, rgba(0, 245, 255, 0.06), transparent 32%),
        radial-gradient(circle at top right, rgba(168, 85, 247, 0.07), transparent 26%),
        linear-gradient(180deg, #060a16 0%, #080d1e 46%, #060a16 100%);
      min-height: 100vh;
    }

    body::before,
    body::after {
      content: "";
      position: fixed;
      inset: auto;
      pointer-events: none;
      z-index: 0;
    }

    body::before {
      top: -160px;
      right: -80px;
      width: 420px;
      height: 420px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(0, 245, 255, 0.10) 0%, rgba(0, 245, 255, 0.02) 58%, transparent 72%);
      filter: blur(4px);
    }

    body::after {
      left: -160px;
      bottom: -220px;
      width: 480px;
      height: 480px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(168, 85, 247, 0.10) 0%, rgba(168, 85, 247, 0.02) 60%, transparent 74%);
    }

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

    .page {
      position: relative;
      z-index: 1;
      max-width: var(--page-max);
      margin: 0 auto;
      padding: 32px 20px 72px;
    }

    .topbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      margin-bottom: 28px;
      padding: 14px 18px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.70);
      backdrop-filter: blur(14px);
      box-shadow: 0 10px 30px rgba(15, 32, 58, 0.05);
    }

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

    .brand-mark {
      width: 42px;
      height: 42px;
      border-radius: 14px;
      display: grid;
      place-items: center;
      color: #fff;
      font-weight: 700;
      font-size: 14px;
      letter-spacing: 0.12em;
      background: linear-gradient(145deg, var(--brand), var(--brand-2));
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 8px 20px rgba(20, 52, 95, 0.18);
    }

    .brand-copy {
      min-width: 0;
      display: flex;
      flex-direction: column;
      gap: 3px;
    }

    .eyebrow,
    .metric-label,
    .chip small,
    .keycap,
    .panel-kicker,
    .footer {
      font-family: var(--mono);
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .eyebrow {
      color: var(--brand-2);
      font-size: 11px;
    }

    .brand-copy strong {
      font-size: 14px;
      line-height: 1.2;
    }

    .brand-copy span:last-child {
      color: var(--muted);
      font-size: 12px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .top-actions {
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-end;
      gap: 10px;
    }

    .action,
    .secondary-button,
    .ghost-button {
      border: 1px solid var(--line);
      border-radius: 999px;
      background: rgba(255,255,255,0.84);
      color: var(--text);
      cursor: pointer;
      transition: transform var(--ease), border-color var(--ease), background var(--ease), box-shadow var(--ease), color var(--ease);
    }

    .action,
    .secondary-button,
    .ghost-button,
    .icon-button,
    .tile-link {
      min-height: 44px;
    }

    .action {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 0 14px;
      font-size: 13px;
      font-weight: 600;
      box-shadow: 0 8px 22px rgba(15, 32, 58, 0.04);
    }

    .action:hover,
    .secondary-button:hover,
    .ghost-button:hover,
    .icon-button:hover,
    .tile-link:hover,
    .chip:hover {
      transform: translateY(-1px);
      border-color: var(--line-strong);
      box-shadow: var(--shadow-soft);
    }

    .hero {
      display: grid;
      grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
      gap: 22px;
      margin-bottom: 22px;
    }

    .hero-card,
    .hero-side,
    .toolbar,
    .card,
    .modal-panel,
    .palette-panel {
      background: var(--surface);
      border: 1px solid var(--line);
      box-shadow: var(--shadow);
      backdrop-filter: blur(16px);
    }

    .hero-card {
      position: relative;
      overflow: hidden;
      border-radius: var(--radius-xl);
      padding: 34px;
    }

    .hero-card::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(115deg, rgba(36, 90, 149, 0.10), transparent 35%),
        linear-gradient(180deg, rgba(255,255,255,0.55), transparent 60%);
      pointer-events: none;
    }

    .hero-grid {
      position: absolute;
      inset: auto 0 0 auto;
      width: 54%;
      height: 62%;
      background-image:
        linear-gradient(rgba(20, 52, 95, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 52, 95, 0.06) 1px, transparent 1px);
      background-size: 32px 32px;
      opacity: 0.55;
      mask-image: linear-gradient(180deg, transparent, rgba(0,0,0,0.75));
      pointer-events: none;
    }

    .hero-content {
      position: relative;
      z-index: 1;
      max-width: 760px;
    }

    h1 {
      margin: 14px 0 14px;
      font-family: var(--serif);
      font-size: clamp(36px, 5vw, 60px);
      line-height: 0.98;
      letter-spacing: -0.04em;
      font-weight: 700;
    }

    .accent-line {
      display: block;
      color: var(--brand-2);
    }

    .hero-sub {
      max-width: 66ch;
      margin: 0;
      color: var(--muted-strong);
      font-size: 17px;
      line-height: 1.65;
    }

    .hero-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-top: 22px;
    }

    .meta-pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 14px;
      border-radius: 999px;
      border: 1px solid rgba(20, 52, 95, 0.10);
      background: rgba(255,255,255,0.72);
      color: var(--muted-strong);
      font-size: 13px;
      font-weight: 600;
    }

    .meta-pill .signal {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--good);
      box-shadow: 0 0 0 6px rgba(20, 125, 86, 0.10);
      flex-shrink: 0;
    }

    .hero-side {
      border-radius: var(--radius-xl);
      padding: 26px;
      display: grid;
      gap: 18px;
      align-content: start;
    }

    .side-title {
      margin: 0;
      font-size: 14px;
      font-weight: 700;
      letter-spacing: 0.01em;
    }

    .side-copy {
      margin: 0;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.55;
    }

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

    .metric {
      padding: 16px;
      border-radius: 18px;
      background: rgba(255,255,255,0.74);
      border: 1px solid rgba(20, 52, 95, 0.08);
    }

    .metric-value {
      display: block;
      margin-top: 8px;
      font-size: 28px;
      font-weight: 700;
      letter-spacing: -0.03em;
    }

    .metric-label {
      color: var(--muted);
      font-size: 10px;
    }

    .shortcut-list {
      display: grid;
      gap: 10px;
    }

    .shortcut {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 12px 14px;
      border-radius: 16px;
      background: rgba(244, 247, 251, 0.96);
      border: 1px solid rgba(20, 52, 95, 0.08);
    }

    .shortcut span:last-child,
    .small-note,
    .footer {
      color: var(--muted);
    }

    .keycap {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 30px;
      padding: 0 10px;
      border-radius: 999px;
      border: 1px solid rgba(20, 52, 95, 0.10);
      background: rgba(255,255,255,0.96);
      color: var(--brand);
      font-size: 10px;
      height: 30px;
    }

    .toolbar {
      position: sticky;
      top: 18px;
      z-index: 20;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 12px;
      padding: 16px;
      margin-bottom: 18px;
      border-radius: var(--radius-lg);
    }

    .toolbar-group,
    .toolbar-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items: center;
    }

    .toolbar-group { flex: 1 1 420px; }
    .toolbar-meta { justify-content: flex-end; }

    .chip {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 14px;
      border-radius: 999px;
      border: 1px solid var(--line);
      background: rgba(255,255,255,0.88);
      color: var(--muted-strong);
      cursor: pointer;
      transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease), background var(--ease), color var(--ease);
      font-size: 13px;
      font-weight: 600;
    }

    .chip.active {
      background: linear-gradient(135deg, rgba(20, 52, 95, 0.95), rgba(36, 90, 149, 0.92));
      border-color: transparent;
      color: #ffffff;
      box-shadow: 0 14px 28px rgba(20, 52, 95, 0.18);
    }

    .chip-count {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 22px;
      height: 22px;
      padding: 0 7px;
      border-radius: 999px;
      background: rgba(20, 52, 95, 0.08);
      font-size: 11px;
      font-family: var(--mono);
    }

    .chip.active .chip-count {
      background: rgba(255,255,255,0.16);
    }

    .chip small {
      font-size: 10px;
      color: inherit;
      opacity: 0.78;
    }

    .status-board {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-left: auto;
    }

    .status-pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 12px;
      border-radius: 999px;
      border: 1px solid var(--line);
      background: rgba(255,255,255,0.76);
      font-family: var(--mono);
      font-size: 11px;
      color: var(--muted-strong);
    }

    .status-dot,
    .health-dot {
      width: 9px;
      height: 9px;
      border-radius: 50%;
      flex-shrink: 0;
    }

    .status-dot.up,
    .health-dot.up { background: var(--good); }
    .status-dot.locked,
    .health-dot.locked { background: var(--warn); }
    .status-dot.down,
    .health-dot.down { background: var(--bad); }
    .status-dot.unk,
    .health-dot.unk { background: var(--accent); }

    .board {
      display: grid;
      grid-template-columns: repeat(12, minmax(0, 1fr));
      gap: 18px;
    }

    .card {
      grid-column: span 4;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      border-radius: var(--radius-lg);
      transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
    }

    .card:hover {
      transform: translateY(-3px);
      box-shadow: 0 26px 60px rgba(15, 32, 58, 0.12);
      border-color: rgba(20, 52, 95, 0.14);
    }

    body.compact .card { grid-column: span 6; }

    .media {
      position: relative;
      aspect-ratio: 16 / 9;
      background: linear-gradient(135deg, rgba(20, 52, 95, 0.12), rgba(36, 90, 149, 0.04));
      overflow: hidden;
    }

    .media img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transform: scale(1.01);
      transition: transform 320ms ease;
    }

    .card:hover .media img { transform: scale(1.04); }

    .media::after {
      content: "";
      position: absolute;
      inset: auto 0 0 0;
      height: 45%;
      background: linear-gradient(180deg, transparent, rgba(16, 32, 58, 0.42));
      pointer-events: none;
    }

    .card-body {
      padding: 18px 18px 20px;
      display: flex;
      flex-direction: column;
      gap: 14px;
      flex: 1;
    }

    .card-top {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 14px;
    }

    .title-stack {
      display: flex;
      gap: 12px;
      align-items: flex-start;
      min-width: 0;
      flex: 1;
    }

    .card-title {
      margin: 0;
      font-size: 19px;
      line-height: 1.2;
      letter-spacing: -0.02em;
    }

    .card-title-wrap {
      min-width: 0;
      display: flex;
      flex-direction: column;
      gap: 5px;
    }

    .origin {
      color: var(--brand-2);
      font-family: var(--mono);
      font-size: 11px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .badge-row,
    .meta-row {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
    }

    .badge,
    .tone {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      min-height: 28px;
      padding: 0 10px;
      border-radius: 999px;
      border: 1px solid rgba(20, 52, 95, 0.10);
      background: rgba(244, 247, 251, 0.96);
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      color: var(--muted-strong);
    }

    .badge.public { color: var(--brand-2); }
    .badge.internal { color: #325275; }
    .badge.restricted { color: var(--warn); }
    .badge.admin { color: var(--bad); }
    .badge.handmade { color: var(--good); }

    .card-copy {
      margin: 0;
      color: var(--muted-strong);
      line-height: 1.65;
      font-size: 14px;
      min-height: 68px;
    }

    .card-note {
      margin: 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.55;
    }

    .meta-row {
      justify-content: space-between;
    }

    .url-label {
      min-width: 0;
      font-family: var(--mono);
      font-size: 12px;
      color: var(--muted);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      flex: 1;
    }

    .tile-actions {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-top: auto;
    }

    .tile-link {
      flex: 1;
      display: inline-flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 0 16px;
      border-radius: 14px;
      border: 1px solid rgba(20, 52, 95, 0.10);
      background: linear-gradient(135deg, rgba(20, 52, 95, 0.96), rgba(36, 90, 149, 0.92));
      color: #ffffff;
      text-decoration: none;
      font-weight: 700;
      transition: transform var(--ease), box-shadow var(--ease), opacity var(--ease);
      box-shadow: 0 12px 26px rgba(20, 52, 95, 0.18);
      cursor: pointer;
    }

    .tile-link:hover {
      opacity: 0.96;
      box-shadow: 0 16px 34px rgba(20, 52, 95, 0.22);
    }

    .icon-button {
      width: 44px;
      border-radius: 14px;
      border: 1px solid rgba(20, 52, 95, 0.10);
      background: rgba(244, 247, 251, 0.96);
      color: var(--brand);
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      position: relative;
      transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease), background var(--ease), color var(--ease);
    }

    .icon-button .tooltip {
      position: absolute;
      left: 50%;
      bottom: calc(100% + 8px);
      transform: translateX(-50%);
      padding: 6px 8px;
      border-radius: 10px;
      background: rgba(16, 32, 58, 0.92);
      color: #fff;
      font-size: 10px;
      letter-spacing: 0.04em;
      white-space: nowrap;
      opacity: 0;
      pointer-events: none;
      transition: opacity var(--ease);
    }

    .icon-button:hover .tooltip { opacity: 1; }

    .footer {
      margin-top: 26px;
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      gap: 12px;
      font-size: 11px;
    }

    .modal {
      position: fixed;
      inset: 0;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 20px;
      background: rgba(12, 24, 42, 0.30);
      backdrop-filter: blur(10px);
      z-index: 40;
    }

    .modal.show { display: flex; }

    .modal-panel,
    .palette-panel {
      width: min(900px, 100%);
      border-radius: var(--radius-lg);
      padding: 22px;
    }

    .panel-head {
      display: flex;
      justify-content: space-between;
      gap: 18px;
      align-items: flex-start;
      margin-bottom: 18px;
    }

    .panel-title {
      margin: 6px 0 8px;
      font-size: 24px;
      letter-spacing: -0.02em;
    }

    .panel-copy {
      margin: 0;
      color: var(--muted);
      line-height: 1.6;
      font-size: 14px;
    }

    .panel-kicker {
      color: var(--brand-2);
      font-size: 11px;
    }

    .stack-list,
    .help-grid {
      display: grid;
      gap: 12px;
    }

    .help-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stack-row,
    .help-box {
      padding: 16px;
      border-radius: 18px;
      border: 1px solid rgba(20, 52, 95, 0.08);
      background: rgba(244, 247, 251, 0.96);
    }

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

    .stack-actions {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }

    .secondary-button,
    .ghost-button {
      padding: 0 16px;
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
    }

    .secondary-button {
      background: linear-gradient(135deg, rgba(20, 52, 95, 0.94), rgba(36, 90, 149, 0.90));
      color: #fff;
      border-color: transparent;
    }

    .palette-panel {
      padding: 0;
      overflow: hidden;
    }

    .palette-head {
      display: flex;
      gap: 14px;
      align-items: center;
      padding: 18px;
      border-bottom: 1px solid rgba(20, 52, 95, 0.08);
      background: rgba(255,255,255,0.82);
    }

    .palette-input {
      flex: 1;
      min-height: 48px;
      border-radius: 14px;
      border: 1px solid rgba(20, 52, 95, 0.12);
      background: rgba(244, 247, 251, 0.96);
      padding: 0 16px;
      color: var(--text);
      outline: none;
    }

    .palette-input:focus,
    .action:focus-visible,
    .secondary-button:focus-visible,
    .ghost-button:focus-visible,
    .icon-button:focus-visible,
    .tile-link:focus-visible,
    .chip:focus-visible,
    .view-chip:focus-visible,
    .palette-row:focus-visible,
    .card:focus-visible {
      outline: none;
      border-color: rgba(36, 90, 149, 0.40);
      box-shadow: 0 0 0 4px rgba(36, 90, 149, 0.12);
    }

    .palette-body {
      max-height: min(60vh, 520px);
      overflow: auto;
      padding: 10px;
      display: grid;
      gap: 8px;
    }

    .palette-row {
      border: 1px solid transparent;
      border-radius: 16px;
      display: grid;
      grid-template-columns: auto minmax(0, 1fr) auto;
      gap: 12px;
      align-items: center;
      padding: 12px 14px;
      cursor: pointer;
      background: rgba(244, 247, 251, 0.74);
      transition: background var(--ease), border-color var(--ease), transform var(--ease);
    }

    .palette-row:hover,
    .palette-row.active {
      background: rgba(255,255,255,0.98);
      border-color: rgba(20, 52, 95, 0.08);
      transform: translateY(-1px);
    }

    .palette-name {
      font-weight: 700;
      font-size: 14px;
    }

    .palette-url {
      margin-top: 4px;
      font-size: 12px;
      color: var(--muted);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .palette-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      justify-content: flex-end;
    }

    .mini-tag {
      display: inline-flex;
      align-items: center;
      min-height: 24px;
      padding: 0 8px;
      border-radius: 999px;
      background: rgba(20, 52, 95, 0.06);
      font-family: var(--mono);
      font-size: 10px;
      color: var(--muted-strong);
    }

    .toast {
      position: fixed;
      left: 50%;
      bottom: 22px;
      transform: translateX(-50%) translateY(8px);
      opacity: 0;
      pointer-events: none;
      min-height: 44px;
      padding: 0 16px;
      border-radius: 999px;
      display: inline-flex;
      align-items: center;
      border: 1px solid rgba(20, 52, 95, 0.10);
      background: rgba(16, 32, 58, 0.94);
      color: #ffffff;
      font-size: 13px;
      box-shadow: 0 16px 36px rgba(16, 32, 58, 0.20);
      transition: opacity var(--ease), transform var(--ease);
      z-index: 60;
    }

    .toast.show {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }

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

    @media (max-width: 1100px) {
      .hero,
      .help-grid {
        grid-template-columns: 1fr;
      }

      .card { grid-column: span 6; }
      body.compact .card { grid-column: span 6; }
      .toolbar { position: static; }
    }

    @media (max-width: 720px) {
      .page { padding: 20px 14px 60px; }
      .topbar,
      .toolbar,
      .hero-card,
      .hero-side,
      .modal-panel,
      .palette-head {
        border-radius: 20px;
      }
      .topbar,
      .toolbar,
      .panel-head,
      .stack-row,
      .top-actions,
      .toolbar-meta,
      .toolbar-group,
      .tile-actions,
      .meta-row,
      .card-top {
        flex-direction: column;
        align-items: stretch;
      }
      .status-board { margin-left: 0; }
      .board { grid-template-columns: repeat(1, minmax(0, 1fr)); }
      .card,
      body.compact .card { grid-column: span 1; }
      .metrics { grid-template-columns: 1fr 1fr; }
      .hero-card { padding: 26px 22px; }
      .hero-side { padding: 22px; }
      .tile-link,
      .secondary-button,
      .ghost-button,
      .action,
      .chip { justify-content: center; }
    }

    .view-switch {
      display: inline-flex;
      gap: 4px;
      padding: 4px;
      border-radius: 999px;
      background: rgba(0, 245, 255, 0.04);
      border: 1px solid rgba(0, 245, 255, 0.08);
    }

    .view-chip {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 6px 14px;
      border-radius: 999px;
      border: 1px solid transparent;
      background: transparent;
      color: var(--muted-strong);
      cursor: pointer;
      font-size: 12px;
      font-weight: 600;
      transition: all var(--ease);
    }

    .view-chip:hover {
      color: var(--text);
      background: rgba(0, 245, 255, 0.04);
    }

    .view-chip.active {
      background: linear-gradient(135deg, rgba(0, 180, 215, 0.92), rgba(109, 40, 217, 0.88));
      border-color: rgba(0, 245, 255, 0.22);
      color: #ffffff;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    }

    .view-chip .keycap {
      height: 20px;
      min-width: 20px;
      padding: 0 6px;
      font-size: 9px;
      background: rgba(255, 255, 255, 0.12);
      border-color: rgba(255, 255, 255, 0.15);
      color: #fff;
    }

    /* ── Atlas View ────────────────────────────────────────────── */

    body.atlas .board {
      grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
      gap: 14px;
    }

    body.atlas .card {
      grid-column: auto;
      border-radius: var(--radius-md);
      background: rgba(8, 15, 35, 0.65);
      position: relative;
    }

    body.atlas .media {
      aspect-ratio: 21 / 9;
    }

    body.atlas .card-body {
      padding: 12px;
      gap: 8px;
    }

    body.atlas .card-title {
      font-size: 16px;
    }

    body.atlas .origin {
      font-size: 9px;
    }

    body.atlas .card-copy,
    body.atlas .card-note,
    body.atlas .meta-row,
    body.atlas .badge-row,
    body.atlas .tile-link {
      display: none;
    }

    body.atlas .atlas-reveal {
      opacity: 0;
      pointer-events: none;
      position: absolute;
      inset: 0;
      z-index: 10;
      background: rgba(6, 10, 22, 0.96);
      backdrop-filter: blur(8px);
      padding: 16px;
      display: flex;
      flex-direction: column;
      gap: 12px;
      border-radius: var(--radius-md);
      border: 1px solid rgba(0, 245, 255, 0.25);
      box-shadow: 0 0 30px rgba(0, 245, 255, 0.15);
      transition: opacity 180ms ease, transform 180ms ease;
      transform: scale(0.98);
    }

    body.atlas .card:hover .atlas-reveal,
    body.atlas .card:focus-within .atlas-reveal {
      opacity: 1;
      pointer-events: auto;
      transform: scale(1);
    }

    body.atlas .atlas-reveal .card-copy {
      display: block;
      min-height: 0;
      font-size: 13px;
      line-height: 1.5;
    }

    body.atlas .atlas-reveal .badge-row {
      display: flex;
    }

    body.atlas .atlas-reveal .tile-actions {
      margin-top: auto;
    }

    body.atlas .atlas-reveal .tile-link {
      display: inline-flex;
      min-height: 38px;
      font-size: 13px;
    }

    body.atlas .atlas-reveal .icon-button {
      min-height: 38px;
      width: 38px;
    }

    @media (max-width: 720px) {
      body.atlas .board {
        grid-template-columns: 1fr;
      }
    }

    /* ── Hero Toggle ───────────────────────────────────────────── */

    .hero-container {
      overflow: hidden;
      transition:
        max-height 420ms cubic-bezier(0.4, 0, 0.2, 1),
        opacity 300ms ease,
        margin-bottom 420ms cubic-bezier(0.4, 0, 0.2, 1);
      max-height: 900px;
      opacity: 1;
      margin-bottom: 0;
    }

    body.hero-collapsed .hero-container {
      max-height: 0;
      opacity: 0;
      pointer-events: none;
    }

    .hero { margin-bottom: 0; }

    .hero-chevron {
      display: inline-block;
      transition: transform 300ms ease;
      font-style: normal;
    }

    body.hero-collapsed .hero-chevron {
      transform: rotate(-90deg);
    }

    /* ── QuantiX Cyberpunk Layer ───────────────────────────────── */

    @keyframes emerald-pulse {
      0%, 100% { box-shadow: 0 0 0 0 rgba(34, 211, 161, 0.50); }
      50%       { box-shadow: 0 0 0 5px rgba(34, 211, 161, 0);  }
    }

    .signal                        { animation: emerald-pulse 2.2s ease-in-out infinite; }
    .status-dot.up, .health-dot.up { animation: emerald-pulse 2.2s ease-in-out infinite; }

    .topbar {
      border-color: rgba(0, 245, 255, 0.10);
      background: rgba(6, 10, 22, 0.86);
    }

    .brand-mark {
      background: linear-gradient(145deg, #00b4d8, #6d28d9);
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.12),
        0 0 22px rgba(0, 245, 255, 0.28),
        0 8px 20px rgba(0, 0, 0, 0.40);
    }

    .action, .ghost-button {
      background: rgba(8, 15, 35, 0.84);
      border-color: rgba(0, 245, 255, 0.10);
      color: var(--text);
    }

    .action:hover, .ghost-button:hover, .chip:hover, .icon-button:hover {
      border-color: rgba(0, 245, 255, 0.22);
      box-shadow: 0 0 18px rgba(0, 245, 255, 0.10), var(--shadow-soft);
    }

    .eyebrow, .panel-kicker { color: #00c8e8; }
    .origin                  { color: #00d4ff; }

    .accent-line {
      color: #00eeff;
      text-shadow: 0 0 28px rgba(0, 238, 255, 0.22);
    }

    .hero-card::before {
      background:
        linear-gradient(115deg, rgba(0, 245, 255, 0.05), transparent 35%),
        linear-gradient(180deg, rgba(6, 10, 22, 0.18), transparent 60%);
    }

    .hero-grid {
      background-image:
        linear-gradient(rgba(0, 245, 255, 0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 245, 255, 0.09) 1px, transparent 1px);
      opacity: 0.70;
    }

    .meta-pill {
      background: rgba(6, 10, 22, 0.80);
      border-color: rgba(0, 245, 255, 0.08);
      color: #9fb5d5;
    }

    .hero-side, .toolbar, .card, .modal-panel, .palette-panel {
      border-color: rgba(0, 245, 255, 0.08);
    }

    .metric {
      background: rgba(6, 10, 22, 0.82);
      border-color: rgba(0, 245, 255, 0.07);
    }
    .metric-value { color: #00e8ff; }

    .shortcut {
      background: rgba(6, 10, 22, 0.86);
      border-color: rgba(0, 245, 255, 0.07);
    }

    .keycap {
      background: rgba(0, 245, 255, 0.06);
      border-color: rgba(0, 245, 255, 0.14);
      color: #00d4ff;
    }

    .toolbar {
      background: rgba(6, 10, 22, 0.86);
      backdrop-filter: blur(20px);
    }

    .chip {
      background: rgba(8, 15, 35, 0.84);
      border-color: rgba(0, 245, 255, 0.10);
      color: #9fb5d5;
    }

    .chip.active {
      background: linear-gradient(135deg, rgba(0, 180, 215, 0.92), rgba(109, 40, 217, 0.88));
      border-color: rgba(0, 245, 255, 0.22);
      box-shadow: 0 0 20px rgba(0, 245, 255, 0.14), 0 14px 28px rgba(0, 0, 0, 0.30);
    }

    .status-pill {
      background: rgba(6, 10, 22, 0.82);
      border-color: rgba(0, 245, 255, 0.08);
      color: #9fb5d5;
    }

    .badge, .tone {
      background: rgba(6, 10, 22, 0.82);
      border-color: rgba(0, 245, 255, 0.08);
      color: #9fb5d5;
    }
    .badge.public    { color: #00d4ff; }
    .badge.internal  { color: #7ab5d5; }
    .badge.handmade  { color: #22d3a1; }
    .badge.restricted { color: var(--warn); }
    .badge.admin     { color: var(--bad); }

    .card:hover {
      box-shadow:
        0 26px 60px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(0, 245, 255, 0.13),
        0 0 28px rgba(0, 245, 255, 0.05);
      border-color: rgba(0, 245, 255, 0.13);
    }

    .media { background: linear-gradient(135deg, rgba(0, 245, 255, 0.06), rgba(109, 40, 217, 0.04)); }
    .media::after { background: linear-gradient(180deg, transparent, rgba(6, 10, 22, 0.65)); }

    .tile-link {
      background: linear-gradient(135deg, rgba(0, 155, 195, 0.96), rgba(90, 24, 175, 0.92));
      box-shadow: 0 0 18px rgba(0, 245, 255, 0.12), 0 12px 26px rgba(0, 0, 0, 0.35);
      border-color: rgba(0, 245, 255, 0.12);
    }
    .tile-link:hover {
      box-shadow: 0 0 28px rgba(0, 245, 255, 0.22), 0 16px 34px rgba(0, 0, 0, 0.40);
      opacity: 1;
    }

    .icon-button {
      background: rgba(6, 10, 22, 0.90);
      border-color: rgba(0, 245, 255, 0.08);
      color: #00d4ff;
    }

    .palette-head {
      background: rgba(4, 8, 20, 0.97);
      border-color: rgba(0, 245, 255, 0.10);
    }
    .palette-input {
      background: rgba(8, 15, 35, 0.90);
      color: var(--text);
      border-color: rgba(0, 245, 255, 0.10);
    }
    .palette-input:focus {
      border-color: rgba(0, 245, 255, 0.32);
      box-shadow: 0 0 0 4px rgba(0, 245, 255, 0.07);
    }
    .palette-row { background: rgba(8, 15, 35, 0.60); }
    .palette-row:hover, .palette-row.active {
      background: rgba(0, 245, 255, 0.04);
      border-color: rgba(0, 245, 255, 0.10);
    }

    .mini-tag {
      background: rgba(0, 212, 255, 0.07);
      color: #5ba3c8;
    }

    .secondary-button {
      background: linear-gradient(135deg, rgba(0, 155, 195, 0.94), rgba(90, 24, 175, 0.90));
      border-color: rgba(0, 245, 255, 0.18);
    }

    .stack-row, .help-box {
      background: rgba(6, 10, 22, 0.88);
      border-color: rgba(0, 245, 255, 0.07);
    }

    .modal { background: rgba(4, 8, 20, 0.55); }

    .toast {
      background: rgba(4, 8, 20, 0.96);
      border-color: rgba(0, 245, 255, 0.22);
      color: #00e8ff;
    }

    .card:focus-visible, .tile-link:focus-visible,
    .chip:focus-visible, .view-chip:focus-visible, .palette-row:focus-visible {
      border-color: rgba(0, 245, 255, 0.40);
      box-shadow: 0 0 0 4px rgba(0, 245, 255, 0.10);
    }
