/* ══════════════════════════════════════════════════════════════
       EIDICA BW TOKENS (DUAL STATE: PASTE DARK & SILICA LIGHT)
       ══════════════════════════════════════════════════════════════ */
    :root {
      --paste-floor: #50555c;
      --paste-shadow: #50585f;
      --paste-slate: #2d343e;
      --paste-graphite: #535a60;
      --paste-pleat: #86827d;
      --paste-wall: #f0f2f1;
      --paste-chalk: #f4f4f4;
      --paste-carbon: #0e1014;
      --paste-carbon-card: #14171d;
      --paste-elevated: #1a1e26;
      --border-subtle: rgba(80, 85, 92, 0.28);
      --border-strong: rgba(80, 85, 92, 0.65);
      --ink-primary: #f0f2f1;
      --ink-secondary: #86827d;

      --font-display: 'Cormorant Garamond', Georgia, serif;
      --font-body: 'Manrope', -apple-system, sans-serif;
      --font-ui: 'IBM Plex Mono', monospace;
      --font-mono: 'IBM Plex Mono', monospace;

      --ease-paste: cubic-bezier(0.16, 1, 0.3, 1);
    }

    body.theme-silica {
      --paste-carbon: #f8f9fa;
      --paste-carbon-card: #ffffff;
      --paste-elevated: #f0f2f5;
      --paste-wall: #0f1216;
      --paste-chalk: #181c22;
      --paste-pleat: #50555c;
      --border-subtle: rgba(15, 18, 22, 0.10);
      --border-strong: rgba(15, 18, 22, 0.26);
      --ink-primary: #0f1216;
      --ink-secondary: #50555c;
    }

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

    body {
      background-color: var(--paste-carbon);
      color: var(--paste-wall);
      font-family: var(--font-body);
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
      position: relative;
      min-height: 100vh;
      overflow-x: hidden;
      transition: background-color 0.15s ease, color 0.15s ease;
    }

    /* Subtle architectural relief grid */
    body::before {
      content: '';
      position: fixed;
      inset: 0;
      background-image: 
        radial-gradient(rgba(81, 86, 92, 0.10) 1px, transparent 1px),
        repeating-linear-gradient(90deg, transparent, transparent 4px, rgba(81, 86, 92, 0.012) 4px, rgba(81, 86, 92, 0.012) 8px);
      background-size: 28px 28px, 8px 8px;
      pointer-events: none;
      z-index: 0;
    }

    body.theme-silica::before {
      background-image: 
        radial-gradient(circle, rgba(20, 24, 30, 0.04) 1px, transparent 1px),
        radial-gradient(circle, rgba(20, 24, 30, 0.024) 0.6px, transparent 0.6px);
      background-size: 14px 14px;
      background-position: 0 0, 7px 7px;
    }

    .wrap {
      max-width: 1240px;
      margin: 0 auto;
      padding: 0 32px 100px;
      position: relative;
      z-index: 1;
    }

    /* ══════════════════════════════════════════════════════════════
       HEADER
       ══════════════════════════════════════════════════════════════ */
    .header {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      width: 100%;
      height: 52px;
      z-index: 100;
      background: rgba(14, 16, 20, 0.82);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border-subtle);
      padding: 0 32px;
      margin: 0;
    }

    body.theme-silica .header {
      background: rgba(248, 249, 250, 0.86);
    }

    .header-inner {
      max-width: 1240px;
      height: 100%;
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .header-brand {
      display: flex;
      align-items: center;
      gap: 12px;
      text-decoration: none;
      color: var(--paste-wall);
    }

    .brand-mark {
      font-family: var(--font-mono);
      font-size: 11px;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      font-weight: 600;
      padding: 4px 8px;
      background: transparent;
      border: 1px solid var(--border-subtle);
      border-radius: 1px;
    }

    .brand-path {
      font-family: var(--font-mono);
      font-size: 11px;
      color: var(--paste-pleat);
      letter-spacing: 0.06em;
    }

    .header-actions {
      display: flex;
      align-items: center;
      gap: 14px;
    }

    .badge-devnet {
      display: flex;
      align-items: center;
      gap: 7px;
      font-family: var(--font-mono);
      font-size: 10px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      padding: 0;
      background: transparent;
      border: none;
      color: var(--paste-wall);
    }

    #headerDevnetSlot {
      display: inline-flex;
      align-items: baseline;
      font-family: var(--font-mono);
      font-variant-numeric: tabular-nums;
      letter-spacing: 0.02em;
    }

    .slot-digit {
      display: inline-block;
      width: 1ch;
      text-align: center;
      font-family: var(--font-mono);
      font-variant-numeric: tabular-nums;
      transition: color 0.4s ease;
      vertical-align: baseline;
    }

    .slot-digit.slot-changed {
      animation: digitGradientFlow 0.85s cubic-bezier(0.16, 1, 0.3, 1);
    }

    @keyframes digitGradientFlow {
      0% {
        color: #38bdf8;
        text-shadow: 0 0 8px rgba(56, 189, 248, 0.7);
      }
      35% {
        color: #818cf8;
        text-shadow: 0 0 6px rgba(129, 140, 248, 0.5);
      }
      70% {
        color: #a78bfa;
        text-shadow: 0 0 4px rgba(167, 139, 250, 0.3);
      }
      100% {
        color: inherit;
        text-shadow: none;
      }
    }

    .pulse-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--paste-wall);
      animation: pulseAnim 2s infinite ease-in-out;
    }

    @keyframes pulseAnim {
      0% { opacity: 0.3; transform: scale(0.8); }
      50% { opacity: 1; transform: scale(1.2); }
      100% { opacity: 0.3; transform: scale(0.8); }
    }

    .aperture-toggle-btn {
      background: transparent;
      border: none;
      padding: 6px;
      cursor: pointer;
      color: var(--paste-wall);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      opacity: 0.8;
      transition: opacity 0.08s ease;
      user-select: none;
    }

    .aperture-toggle-btn:hover {
      opacity: 1;
    }

    .aperture-icon {
      width: 19px;
      height: 19px;
      display: block;
    }

    /* ══════════════════════════════════════════════════════════════
       HERO INTRO
       ══════════════════════════════════════════════════════════════ */
    .hero-intro {
      padding-top: 84px;
      margin-bottom: 32px;
    }

    .wrap-post-stage {
      padding-top: 56px;
    }

    .hero-tag {
      font-family: var(--font-mono);
      font-size: 11px;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--paste-pleat);
      margin-bottom: 12px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .hero-tag::before {
      content: '';
      display: inline-block;
      width: 6px;
      height: 6px;
      background: var(--paste-pleat);
      border-radius: 1px;
    }

    .hero-title {
      font-family: var(--font-display);
      font-size: 54px;
      line-height: 1.06;
      font-weight: 400;
      color: var(--paste-wall);
      margin-bottom: 14px;
      letter-spacing: -0.02em;
    }

    .hero-subtitle {
      font-family: var(--font-mono);
      font-size: 14px;
      color: var(--paste-pleat);
      margin-bottom: 18px;
      letter-spacing: 0.04em;
    }

    .hero-desc {
      font-size: 16px;
      color: var(--paste-wall);
      line-height: 1.65;
      max-width: 920px;
      opacity: 0.90;
    }

    /* ══════════════════════════════════════════════════════════════
       CINEMATIC FULLSCREEN STAGE: 3D MANIFOLD, LOGS HUD, WALLET DOCK
       ══════════════════════════════════════════════════════════════ */
    .cinema-stage-wrapper {
      position: relative;
      width: 100%;
      height: 240vh;
      margin: 0;
      padding: 0;
    }

    .cinema-stage-sticky {
      position: sticky;
      top: 0;
      width: 100%;
      height: 100vh;
      overflow: hidden;
      background: var(--paste-carbon);
    }

    .cinema-bg-canvas {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      z-index: 1;
      cursor: grab;
    }

    .cinema-bg-canvas:active {
      cursor: grabbing;
    }

    .cinema-canvas-vignette {
      position: absolute;
      inset: 0;
      background: radial-gradient(circle at center, transparent 35%, rgba(14, 16, 20, 0.72) 100%);
      pointer-events: none;
      z-index: 2;
    }

    body.theme-silica .cinema-canvas-vignette {
      background: radial-gradient(circle at center, transparent 35%, rgba(248, 249, 250, 0.75) 100%);
    }

    /* Left Narrative Column: Presentation Slide Deck ("нормальный слайд шагов") */
    .cinema-left-narrative {
      position: absolute;
      left: clamp(24px, 3.5vw, 60px);
      top: 64px;
      bottom: 24px;
      width: clamp(420px, 38vw, 540px);
      z-index: 10;
      display: flex;
      flex-direction: column;
      justify-content: center;
      pointer-events: none;
    }

    .cinema-card-container {
      background: rgba(14, 16, 20, 0.88);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border: 1px solid var(--border-subtle);
      border-radius: 2px;
      padding: 24px 28px;
      box-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.7);
      pointer-events: auto;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    body.theme-silica .cinema-card-container {
      background: rgba(255, 255, 255, 0.92);
      box-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.08);
    }

    .cinema-card-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-bottom: 12px;
      border-bottom: 1px solid var(--border-subtle);
    }

    .cinema-step-tabs {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
    }

    .cinema-step-tab {
      background: transparent;
      border: 1px solid var(--border-subtle);
      color: var(--paste-pleat);
      font-family: var(--font-mono);
      font-size: 11px;
      padding: 4px 10px;
      cursor: pointer;
      border-radius: 1px;
      transition: all 0.15s ease;
      user-select: none;
    }

    .cinema-step-tab:hover {
      border-color: var(--border-strong);
      color: var(--paste-wall);
    }

    .cinema-step-tab.active {
      background: var(--paste-floor);
      border-color: var(--paste-floor);
      color: #ffffff;
      font-weight: 600;
    }

    .cinema-step-badge {
      font-family: var(--font-mono);
      font-size: 10.5px;
      color: var(--paste-pleat);
      letter-spacing: 0.08em;
    }

    .cinema-slides-viewport {
      position: relative;
      min-height: 270px;
    }

    .cinema-slide {
      position: absolute;
      inset: 0;
      opacity: 0;
      transform: translateY(10px);
      pointer-events: none;
      transition: opacity 0.28s ease, transform 0.28s ease;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .cinema-slide.active {
      opacity: 1;
      transform: translateY(0);
      pointer-events: auto;
    }

    .cinema-slide-meta {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 10px;
    }

    .cinema-slide-phase {
      font-family: var(--font-mono);
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--paste-wall);
    }

    .cinema-slide-status {
      font-family: var(--font-mono);
      font-size: 10px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--paste-pleat);
    }

    .cinema-slide-title {
      font-family: var(--font-display);
      font-size: 26px;
      font-weight: 600;
      color: var(--paste-wall);
      margin-bottom: 12px;
      line-height: 1.22;
    }

    .cinema-slide-subtitle {
      display: block;
      font-family: var(--font-mono);
      font-size: 13px;
      font-weight: 400;
      color: var(--paste-pleat);
      letter-spacing: 0.04em;
      margin-top: 6px;
    }

    .mono-num {
      font-family: var(--font-mono);
      font-size: 0.9em;
      font-weight: 600;
      letter-spacing: -0.01em;
      color: var(--paste-wall);
      vertical-align: baseline;
    }

    .cinema-slide-desc {
      font-size: 14px;
      line-height: 1.65;
      color: var(--paste-wall);
      opacity: 0.88;
      margin-bottom: 14px;
    }

    .cinema-slide-cue {
      font-family: var(--font-mono);
      font-size: 11px;
      line-height: 1.6;
      color: var(--paste-wall);
      border-left: 2px solid var(--border-strong);
      padding-left: 12px;
      background: rgba(80, 85, 92, 0.08);
      padding-top: 6px;
      padding-bottom: 6px;
    }

    .cinema-slide-cue strong {
      color: var(--paste-pleat);
      text-transform: uppercase;
      letter-spacing: 0.06em;
      font-weight: 500;
    }

    .cinema-card-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-top: 12px;
      border-top: 1px solid var(--border-subtle);
    }

    .cinema-card-nav-btns {
      display: flex;
      gap: 8px;
    }

    .btn-slide-nav {
      background: transparent;
      border: 1px solid var(--border-subtle);
      color: var(--paste-wall);
      font-family: var(--font-mono);
      font-size: 11px;
      padding: 4px 12px;
      border-radius: 1px;
      cursor: pointer;
      transition: all 0.15s ease;
      user-select: none;
    }

    .btn-slide-nav:hover:not(:disabled) {
      border-color: var(--border-strong);
      background: rgba(255, 255, 255, 0.05);
    }

    .btn-slide-nav:disabled {
      opacity: 0.35;
      cursor: not-allowed;
    }

    .cinema-card-hint {
      font-family: var(--font-mono);
      font-size: 10px;
      color: var(--paste-pleat);
      letter-spacing: 0.04em;
    }

    /* Right Stack Container: Wallet Dock (Top) & Telemetry Logs (Below) */
    .cinema-right-stack {
      position: absolute;
      top: 64px;
      right: clamp(20px, 3vw, 44px);
      width: clamp(340px, 28vw, 420px);
      z-index: 10;
      display: flex;
      flex-direction: column;
      gap: 12px;
      max-height: calc(100vh - 80px);
      pointer-events: none;
    }

    /* Wallet & Mutation Dock (At Top) */
    .cinema-wallet-dock {
      background: rgba(14, 16, 20, 0.88);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border: 1px solid var(--border-subtle);
      border-radius: 2px;
      padding: 16px 18px;
      box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.6);
      pointer-events: auto;
      flex-shrink: 0;
    }

    body.theme-silica .cinema-wallet-dock {
      background: rgba(255, 255, 255, 0.92);
      box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.08);
    }

    .cinema-dock-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 12px;
      padding-bottom: 10px;
      border-bottom: 1px solid var(--border-subtle);
    }

    .cinema-dock-title {
      font-family: var(--font-mono);
      font-size: 11px;
      letter-spacing: 0.12em;
      color: var(--paste-wall);
      font-weight: 600;
    }

    .cinema-dock-sub {
      font-family: var(--font-mono);
      font-size: 10.5px;
      color: var(--paste-pleat);
      margin-top: 2px;
    }

    .cinema-dock-stat {
      font-family: var(--font-mono);
      font-size: 11px;
      font-weight: 600;
      color: var(--paste-wall);
      padding: 2px 8px;
      background: rgba(80, 85, 92, 0.2);
      border: 1px solid var(--border-subtle);
      border-radius: 1px;
    }

    .cinema-dock-actions {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      margin-bottom: 10px;
    }

    .btn-cinema {
      font-family: var(--font-mono);
      font-size: 11px;
      letter-spacing: 0.04em;
      padding: 7px 14px;
      border-radius: 1px;
      cursor: pointer;
      user-select: none;
      transition: all 0.2s ease;
      background: transparent;
      border: 1px solid var(--border-subtle);
      color: var(--paste-wall);
    }

    .btn-cinema:hover {
      border-color: var(--border-strong);
      background: rgba(255, 255, 255, 0.05);
    }

    .btn-cinema-primary {
      background: var(--paste-floor);
      border-color: var(--paste-floor);
      color: #ffffff;
      font-weight: 600;
    }

    .btn-cinema-primary:hover {
      background: #606770;
      border-color: #606770;
    }

    #btnExecuteLiveTx {
      display: none;
    }

    #btnExecuteLiveTx.visible {
      display: inline-flex;
    }

    .btn-cinema-ghost {
      opacity: 0.85;
    }

    .cinema-dock-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-family: var(--font-mono);
      font-size: 10.5px;
      color: var(--paste-pleat);
    }

    .cinema-link-sub {
      color: var(--paste-pleat);
      text-decoration: none;
      transition: color 0.15s ease;
    }

    .cinema-link-sub:hover {
      color: var(--paste-wall);
    }

    .cinema-dock-invariant {
      letter-spacing: 0.08em;
      text-transform: uppercase;
      font-size: 9.5px;
    }

    /* Telemetry & Terminal Logs HUD (Below Wallet Dock, hidden until wallet connection) */
    .cinema-telemetry-logs {
      background: rgba(14, 16, 20, 0.86);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border: 1px solid var(--border-subtle);
      border-radius: 2px;
      box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.6);
      overflow: hidden;
      pointer-events: auto;
      display: none; /* revealed upon wallet connection or simulation */
      flex-direction: column;
      animation: fadeInLogs 0.35s ease forwards;
    }

    .cinema-telemetry-logs.visible {
      display: flex;
    }

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

    body.theme-silica .cinema-telemetry-logs {
      background: rgba(255, 255, 255, 0.90);
      box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.08);
    }

    .cinema-hud-header {
      padding: 9px 14px;
      border-bottom: 1px solid var(--border-subtle);
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-family: var(--font-mono);
      font-size: 11px;
      background: rgba(0, 0, 0, 0.25);
    }

    .cinema-hud-title {
      display: flex;
      align-items: center;
      gap: 8px;
      color: var(--paste-wall);
      font-weight: 500;
    }

    .cinema-hud-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--paste-pleat);
    }

    .cinema-hud-dot.live {
      background: #a8a8a8;
      box-shadow: 0 0 6px #ffffff;
    }

    .cinema-hud-tag {
      font-size: 10px;
      letter-spacing: 0.1em;
      color: var(--paste-pleat);
    }

    /* ══════════════════════════════════════════════════════════════
       SPATIAL 3D LOG TELEMETRY & PIPELINE OVERLAY (DIRECTLY ON 3D)
       ══════════════════════════════════════════════════════════════ */
    .cinema-center-telemetry {
      position: absolute;
      top: 68px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 20;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 12px;
      pointer-events: none;
      max-width: 500px;
      width: calc(100% - 48px);
    }

    /* Minimal Lowercase Nodes: wire -> clamp -> alu -> return -> settled */
    .spatial-pipeline-strip {
      display: flex;
      align-items: center;
      gap: 8px;
      background: rgba(14, 16, 20, 0.82);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 2px;
      padding: 5px 12px;
      pointer-events: auto;
      box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.5);
    }

    body.theme-silica .spatial-pipeline-strip {
      background: rgba(255, 255, 255, 0.90);
      border-color: rgba(0, 0, 0, 0.08);
      box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.08);
    }

    .spatial-step-node {
      display: flex;
      align-items: center;
      gap: 5px;
      font-family: var(--font-mono);
      font-size: 11px;
      color: var(--paste-pleat);
      cursor: pointer;
      padding: 3px 6px;
      border-radius: 1px;
      transition: all 0.18s ease;
      text-transform: lowercase;
      user-select: none;
    }

    .spatial-step-node:hover,
    .spatial-step-node.active {
      color: var(--paste-wall);
      background: rgba(255, 255, 255, 0.06);
    }

    body.theme-silica .spatial-step-node:hover,
    body.theme-silica .spatial-step-node.active {
      background: rgba(0, 0, 0, 0.05);
    }

    .spatial-step-node .node-dot {
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: var(--paste-pleat);
      transition: all 0.2s ease;
    }

    .spatial-step-node.active .node-dot,
    .spatial-step-node:hover .node-dot {
      background: #38bdf8;
      box-shadow: 0 0 8px #38bdf8;
      transform: scale(1.3);
    }

    .spatial-arrow {
      color: rgba(80, 85, 92, 0.4);
      font-size: 8px;
      user-select: none;
    }

    .btn-run-slow {
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.09);
      color: var(--paste-pleat);
      font-family: var(--font-mono);
      font-size: 10px;
      padding: 3px 8px;
      border-radius: 2px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      transition: all 0.18s ease;
      letter-spacing: 0.04em;
      user-select: none;
    }

    .btn-run-slow:hover {
      color: var(--paste-wall);
      background: rgba(56, 189, 248, 0.08);
      border-color: rgba(56, 189, 248, 0.28);
    }

    .btn-run-slow.active {
      color: #38bdf8;
      border-color: rgba(56, 189, 248, 0.35);
      background: rgba(56, 189, 248, 0.12);
    }

    body.theme-silica .btn-run-slow {
      background: rgba(0, 0, 0, 0.03);
      border-color: rgba(0, 0, 0, 0.08);
    }

    body.theme-silica .btn-run-slow:hover {
      background: rgba(0, 0, 0, 0.06);
      border-color: rgba(0, 0, 0, 0.15);
    }

    /* Real-Time Floating Terminal Callout on the 3D Manifold */
    .spatial-log-callout {
      background: rgba(14, 16, 20, 0.88);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 2px;
      padding: 13px 16px;
      pointer-events: auto;
      box-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.7);
      display: flex;
      flex-direction: column;
      gap: 8px;
      width: 100%;
      transition: border-color 0.3s ease, box-shadow 0.3s ease;
      user-select: none;
    }

    body.theme-silica .spatial-log-callout {
      background: rgba(255, 255, 255, 0.94);
      border-color: rgba(0, 0, 0, 0.08);
      box-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.10);
    }

    .spatial-log-callout.pulse {
      border-color: rgba(56, 189, 248, 0.35);
      box-shadow: 0 20px 48px -12px rgba(56, 189, 248, 0.12);
    }

    .spatial-callout-top {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-family: var(--font-mono);
      font-size: 10px;
      letter-spacing: 0.06em;
      border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
      padding-bottom: 6px;
    }

    body.theme-silica .spatial-callout-top {
      border-bottom-color: rgba(0, 0, 0, 0.08);
    }

    .spatial-callout-header-left {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .spatial-scroll-hint {
      font-family: var(--font-mono);
      font-size: 9px;
      color: var(--paste-pleat);
      opacity: 0.6;
      letter-spacing: 0.04em;
    }

    .spatial-callout-tag {
      font-weight: 600;
      color: #38bdf8;
      text-transform: lowercase;
    }

    .spatial-callout-metric {
      color: var(--paste-pleat);
    }

    .spatial-callout-msg {
      font-family: var(--font-mono);
      font-size: 11.5px;
      line-height: 1.5;
      color: var(--paste-wall);
      word-break: break-word;
      user-select: text;
    }

    .spatial-callout-sub {
      font-family: var(--font-body);
      font-size: 11px;
      line-height: 1.45;
      color: var(--paste-pleat);
      border-top: 1px dashed rgba(255, 255, 255, 0.08);
      padding-top: 6px;
      user-select: text;
    }

    body.theme-silica .spatial-callout-sub {
      border-top-color: rgba(0, 0, 0, 0.08);
    }

    .cinema-terminal-body {
      padding: 12px 14px;
      font-family: var(--font-mono);
      font-size: 11px;
      line-height: 1.6;
      color: var(--paste-wall);
      max-height: 800px;
      overflow-y: auto;
      background: transparent;
      scrollbar-width: thin;
      scrollbar-color: rgba(80, 88, 98, 0.45) transparent;
    }

    .cinema-terminal-body::-webkit-scrollbar,
    .terminal-window::-webkit-scrollbar {
      width: 5px;
      height: 5px;
    }

    .cinema-terminal-body::-webkit-scrollbar-track,
    .terminal-window::-webkit-scrollbar-track {
      background: transparent;
    }

    .cinema-terminal-body::-webkit-scrollbar-thumb,
    .terminal-window::-webkit-scrollbar-thumb {
      background: rgba(80, 88, 98, 0.45);
      border-radius: 4px;
    }

    .cinema-terminal-body::-webkit-scrollbar-thumb:hover,
    .terminal-window::-webkit-scrollbar-thumb:hover {
      background: rgba(140, 150, 165, 0.7);
    }

    body.theme-silica .cinema-terminal-body,
    body.theme-silica .terminal-window {
      scrollbar-color: rgba(15, 18, 22, 0.25) transparent;
    }

    body.theme-silica .cinema-terminal-body::-webkit-scrollbar-thumb,
    body.theme-silica .terminal-window::-webkit-scrollbar-thumb {
      background: rgba(15, 18, 22, 0.25);
    }

    @media (max-width: 900px) {
      .header {
        position: relative;
        height: auto;
        padding: 12px 16px;
      }
      .cinema-stage-wrapper {
        height: auto;
      }
      .cinema-stage-sticky {
        position: relative;
        height: auto;
        min-height: auto;
        display: flex;
        flex-direction: column;
      }
      .cinema-bg-canvas {
        position: relative;
        height: 380px;
      }
      .cinema-left-narrative,
      .cinema-right-stack {
        position: relative;
        width: 100%;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        padding: 16px;
      }
      .cinema-slides-viewport {
        min-height: auto;
      }
      .cinema-slide {
        position: relative;
        opacity: 1;
        transform: none;
        margin-bottom: 12px;
      }
    }

    /* ══════════════════════════════════════════════════════════════
       KEYNOTE METRICS BAR (EIDICA STAT BAYS)
       ══════════════════════════════════════════════════════════════ */
    .keynote-bar {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 20px;
      margin-bottom: 56px;
    }

    @media (max-width: 840px) {
      .keynote-bar {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 520px) {
      .keynote-bar {
        grid-template-columns: 1fr;
      }
    }

    .keynote-card {
      background: transparent;
      border-top: 1px solid var(--border-subtle);
      border-left: none;
      border-right: none;
      border-bottom: none;
      padding-top: 18px;
      padding-bottom: 6px;
      transition: border-color 0.3s ease;
    }

    .keynote-card:hover {
      border-color: var(--border-strong);
    }

    .keynote-val {
      font-family: var(--font-mono);
      font-size: 26px;
      font-weight: 600;
      color: var(--paste-wall);
      margin-bottom: 4px;
      line-height: 1;
    }

    .keynote-label {
      font-family: var(--font-mono);
      font-size: 10.5px;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--paste-pleat);
      margin-bottom: 6px;
    }

    .keynote-sub {
      font-size: 12px;
      color: var(--paste-wall);
      opacity: 0.75;
      line-height: 1.45;
    }

    /* ══════════════════════════════════════════════════════════════
       LIVE SOLANA DEVNET TRANSACTION CONSOLE
       ══════════════════════════════════════════════════════════════ */
    .devnet-console {
      background: transparent;
      border-top: 1px solid var(--border-subtle);
      padding-top: 28px;
      margin-bottom: 56px;
    }

    .console-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 20px;
      padding-bottom: 14px;
      border-bottom: 1px solid var(--border-subtle);
    }

    .console-title {
      font-family: var(--font-display);
      font-size: 22px;
      font-weight: 600;
      color: var(--paste-wall);
    }

    .console-actions {
      display: flex;
      gap: 12px;
      align-items: center;
    }

    .btn-action {
      background: var(--paste-floor);
      color: #ffffff;
      border: 1px solid transparent;
      padding: 7px 14px;
      font-family: var(--font-mono);
      font-size: 11px;
      letter-spacing: 0.06em;
      cursor: pointer;
      user-select: none;
      transition: background 0.1s ease;
    }

    .btn-action:hover {
      background: #606770;
    }

    .terminal-window {
      background: var(--paste-carbon);
      border: 1px solid var(--border-subtle);
      padding: 18px 20px;
      font-family: var(--font-mono);
      font-size: 11px;
      line-height: 1.7;
      color: var(--paste-wall);
      max-height: 280px;
      overflow-y: auto;
    }

    .term-line {
      display: flex;
      gap: 10px;
      padding: 2px 0;
    }

    .term-tag {
      color: #cbd5e1;
      font-weight: 600;
      min-width: 58px;
      font-size: 10px;
      letter-spacing: 0.02em;
      flex-shrink: 0;
    }

    body.theme-silica .term-tag {
      color: #334155;
    }

    .term-msg {
      flex: 1;
      word-break: break-word;
    }

    .term-num {
      color: #38bdf8;
      font-weight: 600;
    }

    body.theme-silica .term-num {
      color: #0284c7;
      font-weight: 600;
    }

    .term-link,
    .cinema-terminal-body a,
    .terminal-window a {
      color: #60a5fa;
      text-decoration: none;
      border-bottom: 1px solid rgba(96, 165, 250, 0.6);
      font-weight: 500;
      transition: color 0.15s ease, border-bottom-color 0.15s ease;
    }

    .term-link:hover,
    .cinema-terminal-body a:hover,
    .terminal-window a:hover {
      color: #93c5fd;
      border-bottom-color: #93c5fd;
    }

    body.theme-silica .term-link,
    body.theme-silica .cinema-terminal-body a,
    body.theme-silica .terminal-window a {
      color: #2563eb;
      border-bottom: 1px solid rgba(37, 99, 235, 0.6);
    }

    body.theme-silica .term-link:hover,
    body.theme-silica .cinema-terminal-body a:hover,
    body.theme-silica .terminal-window a:hover {
      color: #1d4ed8;
      border-bottom-color: #1d4ed8;
    }

    .term-success {
      color: #86efac;
      font-weight: 500;
    }

    /* ══════════════════════════════════════════════════════════════
       SECTION TITLES
       ══════════════════════════════════════════════════════════════ */
    .section-title {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      border-bottom: 1px solid var(--border-subtle);
      padding-bottom: 12px;
      margin: 56px 0 24px;
      font-family: var(--font-display);
      font-size: 26px;
      color: var(--paste-wall);
    }

    .section-note {
      font-family: var(--font-mono);
      font-size: 11px;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--paste-pleat);
    }

    /* ══════════════════════════════════════════════════════════════
       COMPARATIVE SURFACES (DUAL-CARD)
       ══════════════════════════════════════════════════════════════ */
    .component-row {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 24px;
      margin-bottom: 48px;
    }

    @media (max-width: 840px) {
      .component-row {
        grid-template-columns: 1fr;
      }
    }

    .dual-card {
      background: var(--paste-carbon-card);
      border: 1px solid var(--border-subtle);
      border-radius: 1px;
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }

    .dual-top {
      background: #a8a8a8;
      color: #0e1014;
      padding: 26px;
      flex: 1;
    }

    body.theme-silica .dual-top {
      background: #e8e8e8;
    }

    .dual-title {
      font-family: var(--font-display);
      font-size: 24px;
      line-height: 1.15;
      font-weight: 600;
      margin-bottom: 8px;
      letter-spacing: -0.01em;
    }

    .dual-desc {
      font-size: 13px;
      color: #262a30;
      line-height: 1.6;
    }

    .dual-bottom {
      background: var(--paste-floor);
      color: #ffffff;
      padding: 16px 24px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .dual-metric {
      font-family: var(--font-mono);
      font-size: 11px;
      letter-spacing: 0.1em;
      text-transform: uppercase;
    }

    .dual-value {
      font-family: var(--font-mono);
      font-size: 16px;
      font-weight: 600;
    }

    /* ══════════════════════════════════════════════════════════════
       ARCHITECTURAL SLABS (PLEAT GRID PATTERNS FROM COMPONENTS.HTML)
       ══════════════════════════════════════════════════════════════ */
    .pleat-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 24px;
      margin-bottom: 48px;
    }

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

    .pleat-card {
      background: var(--paste-carbon-card);
      border: 1px solid var(--border-subtle);
      border-radius: 1px;
      padding: 28px;
      position: relative;
      overflow: hidden;
      transition: background 0.12s ease;
    }

    .pleat-card.pattern-twill-48::before {
      content: '';
      position: absolute;
      top: 0;
      right: 0;
      width: 110px;
      height: 100%;
      background-image: 
        repeating-linear-gradient(48deg, transparent, transparent 3px, rgba(80, 85, 92, 0.25) 3px, rgba(80, 85, 92, 0.25) 6px),
        linear-gradient(to right, rgba(80, 85, 92, 0.14) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(80, 85, 92, 0.14) 1px, transparent 1px);
      background-size: auto, 16px 16px, 16px 16px;
      pointer-events: none;
    }

    .pleat-card.pattern-twill-84::before {
      content: '';
      position: absolute;
      top: 0;
      right: 0;
      width: 110px;
      height: 100%;
      background-image: 
        repeating-linear-gradient(84deg, transparent, transparent 3px, rgba(80, 85, 92, 0.25) 3px, rgba(80, 85, 92, 0.25) 6px),
        linear-gradient(to right, rgba(80, 85, 92, 0.14) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(80, 85, 92, 0.14) 1px, transparent 1px);
      background-size: auto, 24px 24px, 24px 24px;
      pointer-events: none;
    }

    .pleat-card.pattern-flutes::before {
      content: '';
      position: absolute;
      top: 0;
      right: 0;
      width: 95px;
      height: 100%;
      background-image: repeating-linear-gradient(90deg, transparent, transparent 3px, rgba(80, 85, 92, 0.25) 3px, rgba(80, 85, 92, 0.25) 6px);
      pointer-events: none;
    }

    .pleat-card.pattern-mesh::before {
      content: '';
      position: absolute;
      top: 0;
      right: 0;
      width: 100px;
      height: 100%;
      background-image: radial-gradient(rgba(80, 85, 92, 0.28) 0.8px, transparent 0.8px);
      background-size: 6px 6px;
      pointer-events: none;
    }

    .pleat-code {
      font-family: var(--font-mono);
      font-size: 10px;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--paste-pleat);
      margin-bottom: 8px;
    }

    .pleat-title {
      font-family: var(--font-display);
      font-size: 24px;
      font-weight: 600;
      color: var(--paste-wall);
      margin-bottom: 12px;
      line-height: 1.2;
      font-variant-numeric: lining-nums;
    }

    .pleat-title .pleat-num,
    .pleat-title .num-light {
      font-weight: 400;
      font-variant-numeric: lining-nums proportional-nums;
    }

    .pleat-text {
      font-size: 13px;
      color: var(--paste-wall);
      opacity: 0.85;
      line-height: 1.65;
      max-width: 440px;
    }

    .pleat-tags {
      margin-top: 24px;
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .pleat-tag {
      font-family: var(--font-mono);
      font-size: 11px;
      padding: 3px 8px;
      background: var(--paste-carbon);
      border: 1px solid var(--border-subtle);
      border-radius: 1px;
      color: var(--paste-pleat);
    }

    /* ══════════════════════════════════════════════════════════════
       ARCHITECTURAL BAYS (EIDICA TULLE COLUMNS)
       Pure vertical bays, zero arbitrary grey slabs
       ══════════════════════════════════════════════════════════════ */
    .tulle-bays {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
      margin-bottom: 56px;
    }

    @media (max-width: 880px) {
      .tulle-bays {
        grid-template-columns: 1fr;
      }
    }

    .tulle-bay {
      border-top: 1px solid var(--border-subtle);
      padding-top: 20px;
      transition: border-color 0.3s ease;
    }

    .tulle-bay:hover, .tulle-bay.active {
      border-color: var(--border-strong);
    }

    .tulle-bay-num {
      font-family: var(--font-mono);
      font-size: 10.5px;
      letter-spacing: 0.16em;
      color: var(--paste-pleat);
      text-transform: uppercase;
      margin-bottom: 8px;
    }

    .tulle-bay-title {
      font-family: var(--font-display);
      font-size: 22px;
      font-weight: 600;
      color: var(--paste-wall);
      margin-bottom: 6px;
      line-height: 1.25;
    }

    .tulle-bay-fact {
      font-family: var(--font-mono);
      font-size: 12px;
      color: var(--paste-wall);
      margin-bottom: 10px;
      font-weight: 500;
      letter-spacing: 0.04em;
    }

    .tulle-bay-note {
      font-size: 13px;
      line-height: 1.65;
      color: var(--paste-wall);
      opacity: 0.82;
    }

    /* ══════════════════════════════════════════════════════════════
       RUST KERNEL SOURCE BOX
       ══════════════════════════════════════════════════════════════ */
    .code-box {
      background: var(--paste-carbon);
      border: 1px solid var(--border-subtle);
      border-radius: 1px;
      padding: 24px;
      font-family: var(--font-mono);
      font-size: 12px;
      line-height: 1.7;
      color: var(--paste-wall);
      overflow-x: auto;
      margin-bottom: 48px;
    }

    .code-box .keyword { color: #a8a8a8; font-weight: 600; }
    .code-box .comment { color: var(--paste-pleat); font-style: italic; }
    .code-box .fn { color: #f0f2f1; font-weight: 600; }
    .code-box .number { color: #d6dae4; }

    .formula-callout {
      background: rgba(0, 0, 0, 0.25);
      border-left: 2px solid var(--paste-pleat);
      padding: 14px 18px;
      font-family: var(--font-mono);
      font-size: 11px;
      line-height: 1.65;
      margin: 16px 0 12px;
      border-radius: 1px;
      overflow-x: auto;
    }

    body.theme-silica .formula-callout {
      background: rgba(15, 18, 22, 0.04);
      border-left-color: var(--paste-pleat);
    }

    .formula-callout .formula-inner,
    .formula-callout div {
      max-width: 480px;
      box-sizing: border-box;
    }
    .formula-callout .keyword { color: #a8a8a8; font-weight: 600; }
    .formula-callout .comment { color: var(--paste-pleat); font-style: italic; }
    .formula-callout .fn { color: #f0f2f1; font-weight: 600; }
    .formula-callout .number { color: #d6dae4; }

    /* ══════════════════════════════════════════════════════════════
       GREEK STOICHEDON FORMULA GRID (STRICT COLUMNAR AXIS)
       ══════════════════════════════════════════════════════════════ */
    .stoichedon-block {
      display: flex;
      flex-direction: column;
      gap: 7px;
      font-family: var(--font-mono);
      font-size: 11px;
      line-height: 1.5;
      font-style: normal;
    }

    .st-row {
      display: flex;
      align-items: center;
      white-space: nowrap;
      font-style: normal;
    }

    .st-lbl {
      width: 58px;
      text-align: right;
      color: var(--paste-wall);
      font-weight: 600;
      flex-shrink: 0;
      font-style: normal;
    }

    .st-op {
      width: 26px;
      text-align: center;
      color: var(--paste-pleat);
      flex-shrink: 0;
      position: relative;
      font-weight: 500;
      font-style: normal;
    }

    /* Continuous vertical stoichedon coordinate ray passing through the operator column */
    .st-op::before {
      content: '';
      position: absolute;
      top: -4px;
      bottom: -4px;
      left: 50%;
      width: 1px;
      background: rgba(80, 85, 92, 0.32);
      pointer-events: none;
    }

    body.theme-silica .st-op::before {
      background: rgba(15, 18, 22, 0.16);
    }

    .st-exp {
      color: var(--paste-pleat);
      font-size: 11px;
      font-style: normal;
      padding-left: 4px;
      padding-right: 16px;
    }

    .st-val {
      color: var(--paste-wall);
      font-weight: 600;
      text-align: right;
      white-space: nowrap;
      margin-left: auto;
      font-style: normal;
    }

    .st-val.accent {
      color: #38bdf8;
    }

    body.theme-silica .st-val.accent {
      color: #0284c7;
    }

    /* Metadata slab (Eidica Datum Row) */
    .meta-slab {
      background: transparent;
      border-top: 1px solid var(--border-subtle);
      border-bottom: 1px solid var(--border-subtle);
      border-left: none;
      border-right: none;
      border-radius: 0;
      padding: 24px 0;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 24px;
      margin-bottom: 56px;
    }

    .meta-item-label {
      font-family: var(--font-mono);
      font-size: 10px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--paste-pleat);
      margin-bottom: 6px;
    }

    .meta-item-val {
      font-family: var(--font-mono);
      font-size: 13px;
      color: var(--paste-wall);
      font-weight: 500;
    }

    .footer {
      border-top: 1px solid var(--border-subtle);
      padding: 32px 0 24px;
      margin-top: 56px;
      display: flex;
      flex-direction: column;
      gap: 16px;
      font-family: var(--font-mono);
      font-size: 11px;
      color: var(--paste-pleat);
    }

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

    .footer-links {
      display: flex;
      gap: 18px;
      flex-wrap: wrap;
    }

    .footer a {
      color: var(--paste-wall);
      text-decoration: none;
      transition: opacity 0.12s ease;
    }

    .footer a:hover {
      opacity: 0.75;
    }

    .footer-telemetry {
      font-family: var(--font-mono);
      font-size: 10px;
      letter-spacing: 0.08em;
      color: var(--paste-pleat);
      padding-top: 12px;
      border-top: 1px dashed var(--border-subtle);
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 8px;
    }

    /* ══════════════════════════════════════════════════════════════
       DEVELOPER COMMAND DOCK (FAST GATES & ARTIFACTS)
       ══════════════════════════════════════════════════════════════ */
    .dev-dock-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
      gap: 16px;
      margin-bottom: 20px;
    }

    .dev-dock-card {
      background: var(--paste-carbon-card);
      border: 1px solid var(--border-subtle);
      border-radius: 1px;
      padding: 20px;
      display: flex;
      flex-direction: column;
      text-decoration: none;
      transition: all 0.15s ease;
    }

    .dev-dock-card:hover {
      border-color: var(--border-strong);
      background: var(--paste-carbon);
      transform: translateY(-1px);
    }

    .dev-dock-meta {
      font-family: var(--font-mono);
      font-size: 10px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--paste-pleat);
      margin-bottom: 8px;
    }

    .dev-dock-title {
      font-family: var(--font-display);
      font-size: 18px;
      font-weight: 600;
      color: var(--paste-wall);
      margin-bottom: 8px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .dev-dock-desc {
      font-size: 12px;
      line-height: 1.55;
      color: var(--paste-wall);
      opacity: 0.82;
      margin-bottom: 14px;
    }

    .dev-dock-action {
      font-family: var(--font-mono);
      font-size: 11px;
      color: var(--paste-pleat);
      display: flex;
      align-items: center;
      gap: 6px;
      border-top: 1px dashed var(--border-subtle);
      padding-top: 10px;
      margin-top: auto;
    }

    .dev-dock-card:hover .dev-dock-action {
      color: var(--paste-wall);
    }

    /* Artifact One-Liner Console */
    .artifact-console {
      background: var(--paste-carbon);
      border: 1px solid var(--border-subtle);
      border-radius: 1px;
      padding: 14px 18px;
      margin-bottom: 48px;
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: center;
      gap: 16px;
      font-family: var(--font-mono);
      font-size: 11px;
    }

    .artifact-item {
      display: flex;
      align-items: center;
      gap: 8px;
      color: var(--paste-wall);
      flex-wrap: wrap;
    }

    .artifact-label {
      color: var(--paste-pleat);
      text-transform: uppercase;
      font-size: 10px;
      letter-spacing: 0.08em;
    }

    .artifact-val {
      background: rgba(0, 0, 0, 0.35);
      padding: 4px 8px;
      border: 1px solid var(--border-subtle);
      border-radius: 1px;
      color: var(--paste-wall);
      font-size: 11px;
    }

    .btn-copy-mini {
      background: transparent;
      border: 1px solid var(--border-subtle);
      color: var(--paste-pleat);
      padding: 3px 8px;
      font-family: var(--font-mono);
      font-size: 10px;
      cursor: pointer;
      border-radius: 1px;
      transition: all 0.12s ease;
    }

    .btn-copy-mini:hover {
      border-color: var(--paste-wall);
      color: var(--paste-wall);
    }



    /* Wallet Modal */
    .wallet-modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.75);
      backdrop-filter: blur(4px);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 1000;
    }
    .wallet-modal {
      background: var(--paste-carbon-card);
      border: 1px solid var(--border-subtle);
      border-radius: 2px;
      max-width: 440px;
      width: 90%;
      padding: 24px;
      position: relative;
    }
    .wallet-modal-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 16px;
      border-bottom: 1px solid var(--border-subtle);
      padding-bottom: 12px;
    }
    .wallet-modal-close {
      background: transparent;
      border: none;
      color: var(--paste-wall);
      font-size: 20px;
      cursor: pointer;
    }

    .btn-wallet-header {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 5px 12px;
      background: transparent;
      border: 1px solid var(--border-subtle);
      border-radius: 1px;
      font-family: var(--font-mono);
      font-size: 11px;
      color: var(--paste-wall);
      cursor: pointer;
      user-select: none;
      transition: border-color 0.15s ease, background 0.15s ease;
    }
    .btn-wallet-header:hover {
      border-color: var(--border-strong);
      background: rgba(80, 85, 92, 0.14);
    }
    .wallet-indicator {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--paste-pleat);
      transition: background 0.2s ease, box-shadow 0.2s ease;
    }
    .wallet-indicator.connected {
      background: #a8a8a8;
      box-shadow: 0 0 6px #ffffff;
    }
    .btn-highlight {
      background: var(--paste-wall) !important;
      color: #0e1014 !important;
      font-weight: 600;
    }

    .footer a:hover {
      text-decoration: underline;
    }
