@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=DM+Mono:wght@300;400&display=swap');

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

  :root {
    --ink: #0a0a0f;
    --fog: rgba(10,10,15,0.6);
    --mist: rgba(255,255,255,0.07);
    --glass: rgba(255,255,255,0.04);
    --edge: rgba(255,255,255,0.12);
    --warm: #c8a97e;
    --cool: #7eb8c8;
    --vital: #e8d5b0;
    --dim: rgba(255,255,255,0.35);
    --text: rgba(255,255,255,0.88);
    --fs-xs:    0.88rem;
    --fs-sm:    1rem;
    --fs-base:  1.1rem;
    --fs-md:    1.2rem;
    --fs-lg:    1.4rem;
    --mono-xs:  0.75rem;
    --mono-sm:  0.85rem;
    --mono-base:0.95rem;
    --realm-topbar-h: 44px;
  }

  html, body {
    width: 100%; height: 100%;
    background: var(--ink);
    color: var(--text);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 17px;
    line-height: 1.6;
    overflow: hidden;
    user-select: none;
  }

  /* ── SCREENS ── */
  .screen {
    position: fixed; inset: 0;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.8s ease;
  }
  .screen.hidden { opacity: 0; pointer-events: none; }

  /* ── INTRO SCREEN ── */
  #intro {
    flex-direction: column;
    gap: 0;
    background: var(--ink);
  }

  .realm-wordmark {
    font-size: clamp(4rem, 12vw, 9rem);
    font-weight: 300;
    letter-spacing: 0.35em;
    color: var(--vital);
    text-transform: uppercase;
    animation: fadeUp 1.4s ease forwards;
    opacity: 0;
  }

  .realm-sub {
    font-size: clamp(0.75rem, 1.5vw, 0.95rem);
    letter-spacing: 0.28em;
    color: var(--dim);
    text-transform: uppercase;
    font-family: 'DM Mono', monospace;
    font-weight: 300;
    animation: fadeUp 1.4s 0.4s ease forwards;
    opacity: 0;
    margin-top: 0.5rem;
  }

  .enter-btn {
    margin-top: 4rem;
    padding: 0.9rem 2.8rem;
    border: 1px solid var(--edge);
    background: transparent;
    color: var(--vital);
    font-family: 'DM Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    cursor: pointer;
    animation: fadeUp 1.4s 0.8s ease forwards;
    opacity: 0;
    transition: background 0.3s, border-color 0.3s;
  }
  .enter-btn:hover {
    background: var(--mist);
    border-color: var(--warm);
  }

  /* ── PRIVACY SCREEN ── */
  #privacy {
    flex-direction: column;
    align-items: flex-start;
    padding: 4rem;
    max-width: 640px;
    margin: 0 auto;
    gap: 2rem;
  }

  .privacy-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 300;
    color: var(--vital);
    line-height: 1.3;
  }

  .privacy-body {
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--dim);
    font-style: italic;
  }

  .privacy-covenant {
    border-left: 2px solid var(--warm);
    padding-left: 1.5rem;
    font-family: 'DM Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    line-height: 2;
    color: rgba(255,255,255,0.5);
  }
  .privacy-covenant strong {
    color: var(--warm);
    font-weight: 400;
  }

  .location-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }

  .loc-option {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border: 1px solid var(--edge);
    background: var(--glass);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
  }
  .loc-option:hover { border-color: var(--warm); background: var(--mist); }
  .loc-option.selected { border-color: var(--warm); background: rgba(200,169,126,0.08); }

  .loc-option-radio {
    width: 14px; height: 14px;
    border: 1px solid var(--edge);
    border-radius: 50%;
    margin-top: 3px;
    flex-shrink: 0;
    transition: border-color 0.2s;
    position: relative;
  }
  .loc-option.selected .loc-option-radio {
    border-color: var(--warm);
  }
  .loc-option.selected .loc-option-radio::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: var(--warm);
    border-radius: 50%;
  }

  .loc-option-text strong {
    display: block;
    font-family: 'DM Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--vital);
    font-weight: 400;
    margin-bottom: 0.25rem;
  }
  .loc-option-text span {
    font-size: 0.9rem;
    color: var(--dim);
    font-style: italic;
  }

  .privacy-actions {
    display: flex;
    gap: 1rem;
    width: 100%;
  }

  .btn-primary {
    flex: 1;
    padding: 0.9rem;
    background: var(--warm);
    color: var(--ink);
    border: none;
    font-family: 'DM Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.2s;
  }
  .btn-primary:hover { opacity: 0.88; }

  .btn-ghost {
    padding: 0.9rem 1.4rem;
    background: transparent;
    color: var(--dim);
    border: 1px solid var(--edge);
    font-family: 'DM Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.2s;
  }
  .btn-ghost:hover { border-color: var(--dim); }

  /* ── ARRIVAL SCREEN ── */
  #arrival {
    flex-direction: column;
    overflow: hidden;
  }

  .window-frame {
    position: absolute;
    inset: 0;
    overflow: hidden;
  }

  /* Generated sky / scene layers */
  .sky-layer {
    position: absolute;
    inset: 0;
    transition: opacity 2s ease;
  }

  /* Window mullions */
  .window-mullion-h {
    position: absolute;
    left: 0; right: 0;
    top: 50%;
    height: 18px;
    background: rgba(15,12,8,0.92);
    z-index: 10;
    transform: translateY(-50%);
  }
  .window-mullion-v {
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    width: 18px;
    background: rgba(15,12,8,0.92);
    z-index: 10;
    transform: translateX(-50%);
  }
  .window-frame-border {
    position: absolute;
    inset: 0;
    border: 28px solid rgba(15,12,8,0.95);
    z-index: 10;
    pointer-events: none;
  }

  /* Glass reflection */
  .glass-reflection {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 40%, rgba(255,255,255,0.02) 100%);
    z-index: 11;
    pointer-events: none;
  }

  /* HUD overlay */
  .arrival-hud {
    position: absolute;
    inset: 0;
    z-index: 20;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.5rem 3rem;
  }

  .hud-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }

  .hud-wordmark {
    font-size: 1.1rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    font-weight: 300;
  }

  .hud-location {
    text-align: right;
  }
  .hud-location-name {
    font-family: 'DM Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
  }
  .hud-location-time {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--vital);
    line-height: 1;
    margin-top: 0.2rem;
  }
  .hud-location-date {
    font-family: 'DM Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    margin-top: 0.15rem;
  }

  .hud-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
  }

  .hud-conditions {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
  }
  .hud-condition-row {
    font-family: 'DM Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
  }
  .hud-condition-row span {
    color: rgba(255,255,255,0.65);
  }

  .hud-enter-realm {
    pointer-events: all;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    cursor: pointer;
  }
  .hud-enter-text {
    font-family: 'DM Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
  }
  .hud-enter-arrow {
    font-size: 1.4rem;
    color: var(--warm);
    animation: pulse 2s infinite;
  }

  /* Weather description */
  .hud-scene-desc {
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    font-style: italic;
    font-weight: 300;
    color: rgba(255,255,255,0.45);
    line-height: 1.6;
    max-width: 500px;
    pointer-events: none;
  }

  /* Privacy indicator */
  .privacy-indicator {
    position: absolute;
    top: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'DM Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.25);
    z-index: 25;
  }
  .privacy-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #4caf7d;
    animation: pulse 3s infinite;
  }

  /* ── COMMUNITY PREVIEW ── */
  #community {
    flex-direction: column;
    background: var(--ink);
    overflow: hidden;
  }

  /* ── SIDEBAR AUTO-HIDE ── */
  /* Sidebar slides off-screen when inactive, revealed on left-edge proximity */

  .community-layout {
    display: grid;
    grid-template-columns: 1fr;   /* sidebar is overlaid, not in flow */
    grid-template-rows: 1fr;
    width: 100%;
    height: 100%;
    position: relative;
  }

  .main-area {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    grid-column: 1;
    grid-row: 1;
    height: 100%;       /* must explicitly claim full grid cell height */
    min-height: 0;
  }

  /* Sidebar */
  .sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 280px;
    z-index: 80;
    border-right: 1px solid var(--edge);
    display: flex;
    flex-direction: column;
    overflow: visible;          /* allow hover card to spill right */
    background: rgba(6,6,11,0.97);
    backdrop-filter: blur(12px);
    transform: translateX(-100%);
    transition: transform 0.22s cubic-bezier(0.4,0,0.2,1);
    will-change: transform;
  }
  .sidebar.revealed {
    transform: translateX(0);
    box-shadow: 4px 0 32px rgba(0,0,0,0.6);
  }

  /* Ghost trigger strip — invisible 12px zone at screen left that triggers reveal */
  .sidebar-trigger {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 12px;
    z-index: 79;
    cursor: default;
  }

  /* ── MEMBER HOVER CARD ── */
  .member-hover-card {
    position: absolute;
    left: calc(100% + 8px);
    top: 0;
    width: 240px;
    background: rgba(10,10,18,0.98);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(16px);
    padding: 1rem;
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    box-shadow: 8px 8px 32px rgba(0,0,0,0.5);
  }
  .member-item:hover .member-hover-card {
    opacity: 1;
    transform: translateX(0);
  }
  .hover-card-name {
    font-size: 0.88rem;
    font-weight: 300;
    color: var(--vital);
    margin-bottom: 0.15rem;
  }
  .hover-card-location {
    font-family: 'DM Mono', monospace;
    font-size: 0.56rem;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.35);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
  }
  .hover-card-activity {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.55;
    font-style: italic;
    margin-bottom: 0.65rem;
  }
  .hover-card-trust {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'DM Mono', monospace;
    font-size: 0.52rem;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.25);
    text-transform: uppercase;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 0.5rem;
    margin-top: 0.1rem;
  }
  .hover-card-trust-val {
    font-weight: 500;
    letter-spacing: 0.05em;
  }
  .hover-card-platform {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-family: 'DM Mono', monospace;
    font-size: 0.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.35);
    margin-bottom: 0.4rem;
    display: block;
    width: fit-content;
  }

  .sidebar-header {
    padding: 1.5rem 1.2rem 1rem;
    border-bottom: 1px solid var(--edge);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .sidebar-wordmark {
    font-size: 1rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--vital);
    font-weight: 300;
  }

  .presence-badge {
    font-family: 'DM Mono', monospace;
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    color: #4caf7d;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.4rem;
  }
  .presence-badge::before {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #4caf7d;
  }

  .sidebar-section {
    padding: 1rem 1.2rem 0.5rem;
  }
  /* ── DOCK PANEL ── */
  /* A personal content input dock — share what you're doing with the realm */

  .dock-panel {
    position: fixed;
    bottom: 0; right: 0;
    width: 340px;
    background: rgba(8,8,14,0.97);
    border: 1px solid rgba(255,255,255,0.1);
    border-bottom: none; border-right: none;
    backdrop-filter: blur(16px);
    z-index: 90;
    transform: translateY(100%);
    transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
    display: flex;
    flex-direction: column;
    box-shadow: -4px -4px 32px rgba(0,0,0,0.5);
  }
  .dock-panel.open { transform: translateY(0); }

  .dock-trigger {
    position: fixed;
    bottom: 0; right: 0;
    width: 340px;
    height: 3px;
    z-index: 89;
    cursor: pointer;
    background: linear-gradient(90deg, transparent, rgba(200,169,126,0.3));
  }

  .dock-handle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1rem 0.55rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
  }
  .dock-handle-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.56rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .dock-live-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
  }
  .dock-live-dot.active {
    background: #4caf7d;
    animation: pulse 1.6s infinite;
  }
  .dock-close {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.2);
    cursor: pointer;
    padding: 0.1rem 0.3rem;
    transition: color 0.15s;
  }
  .dock-close:hover { color: rgba(255,255,255,0.6); }

  .dock-body {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
    max-height: 380px;
    flex: 1;
  }

  .dock-source {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
    transition: background 0.15s;
  }
  .dock-source:hover { background: rgba(255,255,255,0.03); }
  .dock-source.active {
    background: rgba(200,169,126,0.06);
    border-left: 2px solid rgba(200,169,126,0.5);
  }
  .dock-source-icon {
    font-size: 1rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
    opacity: 0.6;
  }
  .dock-source.active .dock-source-icon { opacity: 1; }
  .dock-source-info { flex: 1; min-width: 0; }
  .dock-source-name {
    font-size: 0.8rem;
    font-weight: 300;
    color: rgba(255,255,255,0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .dock-source-desc {
    font-family: 'DM Mono', monospace;
    font-size: 0.52rem;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.25);
    margin-top: 0.1rem;
  }
  .dock-source-status {
    font-family: 'DM Mono', monospace;
    font-size: 0.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    flex-shrink: 0;
  }
  .dock-source-status.sharing { color: #4caf7d; }
  .dock-source-status.ready { color: rgba(255,255,255,0.2); }

  .dock-footer {
    padding: 0.65rem 1rem;
    border-top: 1px solid rgba(255,255,255,0.07);
    font-family: 'DM Mono', monospace;
    font-size: 0.5rem;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.18);
    text-transform: uppercase;
    flex-shrink: 0;
  }

  /* Dock tab — always visible in bottom-right corner when panel is closed */
  .dock-tab {
    position: fixed;
    bottom: 0;
    right: 0;
    padding: 0.35rem 0.9rem 0.3rem;
    background: rgba(8,8,14,0.9);
    border-top: 1px solid rgba(255,255,255,0.08);
    border-left: 1px solid rgba(255,255,255,0.08);
    font-family: 'DM Mono', monospace;
    font-size: 0.52rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.25);
    cursor: pointer;
    z-index: 88;
    transition: color 0.15s, background 0.15s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
  }
  .dock-tab:hover { color: var(--warm); background: rgba(200,169,126,0.06); }
  .dock-tab.hidden-tab { display: none; }

  .sidebar-section-label {
    font-family: 'DM Mono', monospace;
    font-size: var(--mono-xs);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.28);
    margin-bottom: 0.75rem;
  }

  .member-list {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    overflow-y: auto;
    flex: 1;
    padding: 0 0.5rem;
  }

  .member-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.7rem;
    cursor: pointer;
    border-radius: 2px;
    transition: background 0.15s, transform 0.18s cubic-bezier(0.34,1.56,0.64,1), padding 0.18s, opacity 0.18s;
    position: relative;
    transform-origin: left center;
    will-change: transform;
  }
  .member-item:hover { background: var(--mist); }

  /* Magnify states — set by JS as mouse moves through the list */
  .member-item.mag-focus {
    transform: scale(1.12) translateX(4px);
    background: rgba(255,255,255,0.06) !important;
    z-index: 2;
  }
  .member-item.mag-near {
    transform: scale(1.04) translateX(2px);
    opacity: 0.9;
  }
  .member-item.mag-far {
    transform: scale(0.96);
    opacity: 0.55;
  }

  /* Expanded info panel that grows in under focused member */
  .member-expand {
    display: none; flex-direction: column; gap: 0.25rem;
    overflow: hidden;
    padding: 0 0.7rem 0.4rem calc(0.7rem + 28px + 0.75rem);
    pointer-events: none;
    transition: opacity 0.18s ease;
    opacity: 0;
  }
  .member-expand.visible {
    display: flex; opacity: 1; pointer-events: all;
  }
  .member-expand-activity {
    font-size: 0.7rem; color: rgba(255,255,255,0.4);
    font-style: italic; line-height: 1.4;
  }
  .member-expand-bio {
    font-size: 0.65rem; color: rgba(255,255,255,0.22); line-height: 1.4;
  }

  .member-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 400;
    flex-shrink: 0;
    position: relative;
  }
  .member-avatar::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 7px; height: 7px;
    border-radius: 50%;
    border: 1.5px solid var(--ink);
  }
  .member-avatar.online::after { background: #4caf7d; }
  .member-avatar.away::after { background: #f0a500; }
  .member-avatar.offline::after { background: rgba(255,255,255,0.2); }

  .member-info { flex: 1; min-width: 0; }
  .member-name {
    font-size: var(--fs-sm);
    font-weight: 300;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .member-loc {
    font-family: 'DM Mono', monospace;
    font-size: var(--mono-xs);
    color: rgba(255,255,255,0.4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .permission-lock {
    width: 12px; height: 12px;
    opacity: 0.3;
    flex-shrink: 0;
  }

  .main-header {
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--edge);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
  }

  .stream-title {
    font-size: var(--mono-base);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    font-family: 'DM Mono', monospace;
  }

  .stream-tabs {
    display: flex;
    gap: 0;
  }
  .stream-tab {
    padding: 0.45rem 1.1rem;
    font-family: 'DM Mono', monospace;
    font-size: var(--mono-sm);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
  }
  .stream-tab.active {
    color: var(--vital);
    border-bottom-color: var(--warm);
  }
  .stream-tab:hover:not(.active) { color: rgba(255,255,255,0.6); }

  .common-stream {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .stream-card {
    border: 1px solid var(--edge);
    background: var(--glass);
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    animation: fadeUp 0.5s ease forwards;
    opacity: 0;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
  }
  .stream-card:hover {
    border-color: rgba(255,255,255,0.2);
    background: var(--mist);
  }

  .stream-card:nth-child(1) { animation-delay: 0.1s; }
  .stream-card:nth-child(2) { animation-delay: 0.2s; }
  .stream-card:nth-child(3) { animation-delay: 0.3s; }
  .stream-card:nth-child(4) { animation-delay: 0.4s; }
  .stream-card:nth-child(5) { animation-delay: 0.5s; }

  /* Feed pace indicator — thin line at top of stream, no labels */
  .feed-pace-bar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    z-index: 10;
    pointer-events: none;
    flex-shrink: 0;
    margin: -1.5rem -2rem 0.5rem;
    overflow: hidden;
  }
  .feed-pace-fill {
    height: 100%;
    transition: width 0.6s ease, background-color 0.6s ease;
    background: var(--warm);
    opacity: 0.35;
  }
  /* Queue badge — appears faintly when cards are banked */
  .feed-queue-badge {
    position: sticky;
    top: 0.25rem;
    margin: -0.5rem -2rem 0;
    display: flex;
    justify-content: flex-end;
    padding-right: 2rem;
    pointer-events: none;
    z-index: 11;
    flex-shrink: 0;
  }
  .feed-queue-count {
    font-family: 'DM Mono', monospace;
    font-size: 0.48rem;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.18);
    text-transform: uppercase;
    transition: opacity 0.4s;
  }
  /* Frozen state — subtle pulse on pace bar */
  .feed-pace-fill.frozen {
    animation: feedFreeze 0.8s ease forwards;
  }
  @keyframes feedFreeze {
    0%   { opacity: 0.35; }
    50%  { opacity: 0.55; }
    100% { opacity: 0.2; }
  }

  .card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
  .card-avatar {
    width: 22px; height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    flex-shrink: 0;
  }
  .card-who {
    font-family: 'DM Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.4);
    flex: 1;
  }
  .card-who strong { color: rgba(255,255,255,0.65); font-weight: 400; }
  .card-platform {
    font-family: 'DM Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.15rem 0.5rem;
    border: 1px solid var(--edge);
    color: rgba(255,255,255,0.25);
  }
  .card-content {
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.6;
    color: var(--text);
  }
  .card-content em { color: var(--warm); font-style: italic; }
  .card-convergence {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'DM Mono', monospace;
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.25);
  }
  .convergence-bar {
    height: 1px;
    background: var(--warm);
    opacity: 0.4;
    flex: 1;
  }

  /* Living map preview */
  .map-preview {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  .map-bg {
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse at 30% 40%, rgba(126,184,200,0.06) 0%, transparent 60%),
      radial-gradient(ellipse at 70% 60%, rgba(200,169,126,0.04) 0%, transparent 50%),
      var(--ink);
  }

  /* Subtle grid lines for map feel */
  .map-grid {
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
  }

  .map-presence {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    transform: translate(-50%, -50%);
  }

  .presence-pulse {
    position: relative;
    width: 10px; height: 10px;
  }
  .presence-pulse::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--warm);
  }
  .presence-pulse::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid var(--warm);
    opacity: 0.4;
    animation: ripple 2s infinite;
  }
  .presence-pulse.cool::before { background: var(--cool); }
  .presence-pulse.cool::after { border-color: var(--cool); }
  .presence-pulse.vital::before { background: #4caf7d; }
  .presence-pulse.vital::after { border-color: #4caf7d; }

  .presence-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.45);
    white-space: nowrap;
    text-align: center;
    background: rgba(10,10,15,0.7);
    padding: 0.1rem 0.4rem;
  }

  /* ── MEMBER PRESENCE PANEL ──
   * Floats fixed on screen, draggable, defaults to left-centre.
   * Shows either a live feed iframe (Vimeo when available) or
   * a rendered scene canvas of what it looks like where they are.
   */
  .presence-panel {
    position: fixed;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 360px;
    background: rgba(5,5,10,0.97);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(16px);
    z-index: 85;
    box-shadow: 0 12px 48px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.04);
    display: none;
    flex-direction: column;
    user-select: none;
  }
  .presence-panel.visible { display: flex; }

  .presence-panel-grip {
    padding: 0.55rem 0.9rem 0.45rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: grab;
    flex-shrink: 0;
  }
  .presence-panel-grip:active { cursor: grabbing; }

  .presence-panel-grip-dots {
    display: grid;
    grid-template-columns: repeat(2, 3px);
    gap: 2.5px;
    opacity: 0.25;
    flex-shrink: 0;
  }
  .presence-panel-grip-dots span {
    width: 3px; height: 3px;
    border-radius: 50%;
    background: rgba(255,255,255,0.8);
    display: block;
  }

  .presence-panel-title {
    font-family: 'DM Mono', monospace;
    font-size: 0.52rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.22);
    flex: 1;
  }

  .presence-panel-close {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.2);
    cursor: pointer;
    padding: 0.15rem 0.35rem;
    transition: color 0.15s;
    flex-shrink: 0;
    line-height: 1;
    pointer-events: all;
  }
  .presence-panel-close:hover { color: rgba(255,255,255,0.65); }

  /* The visual — either canvas or iframe */
  .presence-panel-visual {
    position: relative;
    width: 100%;
    height: 200px;
    flex-shrink: 0;
    overflow: hidden;
    background: #020205;
  }

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

  .presence-panel-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 180%;     /* standard Vimeo chrome crop */
    margin-top: -10%;
    border: none;
    display: block;
  }

  /* Live feed badge — shown when iframe is active */
  .presence-panel-live-badge {
    position: absolute;
    top: 8px; left: 8px;
    background: rgba(0,0,0,0.65);
    border: 1px solid rgba(255,255,255,0.12);
    font-family: 'DM Mono', monospace;
    font-size: 0.48rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    padding: 0.18rem 0.45rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    pointer-events: none;
  }
  .presence-panel-live-dot {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--warm);
    animation: pulse 1.6s infinite;
    flex-shrink: 0;
  }

  /* Scene badge — shown when canvas is active */
  .presence-panel-scene-badge {
    position: absolute;
    bottom: 8px; right: 8px;
    background: rgba(0,0,0,0.55);
    font-family: 'DM Mono', monospace;
    font-size: 0.44rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    padding: 0.15rem 0.4rem;
    pointer-events: none;
  }

  /* Member info section */
  .presence-panel-info {
    padding: 0.8rem 1rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }

  .presence-panel-identity {
    display: flex;
    align-items: center;
    gap: 0.65rem;
  }

  .presence-panel-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    color: #fff;
    flex-shrink: 0;
  }

  .presence-panel-name-block { flex: 1; min-width: 0; }

  .presence-panel-name {
    font-size: 0.95rem;
    font-weight: 300;
    color: rgba(255,255,255,0.85);
    line-height: 1.2;
  }

  .presence-panel-location {
    font-family: 'DM Mono', monospace;
    font-size: 0.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.28);
    margin-top: 0.1rem;
  }

  .presence-panel-status {
    font-family: 'DM Mono', monospace;
    font-size: 0.5rem;
    letter-spacing: 0.08em;
    flex-shrink: 0;
    text-transform: uppercase;
  }

  .presence-panel-sharing {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    font-style: italic;
    line-height: 1.5;
    padding-top: 0.15rem;
    border-top: 1px solid rgba(255,255,255,0.06);
  }

  .presence-panel-bio {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
    line-height: 1.55;
  }

  .presence-panel-time-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'DM Mono', monospace;
    font-size: 0.5rem;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.2);
    padding-top: 0.1rem;
  }

  .presence-panel-time-dot {
    width: 4px; height: 4px;
    border-radius: 50%;
    flex-shrink: 0;
  }

  /* Navigation arrows — cycle through located members */
  .presence-panel-nav {
    display: flex;
    border-top: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
  }

  .presence-panel-nav-btn {
    flex: 1;
    padding: 0.45rem;
    font-family: 'DM Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.22);
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    border: none;
    background: transparent;
  }
  .presence-panel-nav-btn:hover { background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.55); }
  .presence-panel-nav-btn:first-child { border-right: 1px solid rgba(255,255,255,0.06); }

  /* Lock state — no location granted */
  .map-presence.locked .presence-pulse::before { background: rgba(255,255,255,0.15); }
  .map-presence.locked .presence-pulse::after  { border-color: rgba(255,255,255,0.1); animation: none; }
  .map-presence.locked .presence-label { color: rgba(255,255,255,0.2); }

  /* Subtle ring on selected dot */
  .map-presence.panel-open .presence-pulse::after {
    border-color: var(--warm);
    opacity: 0.9;
    animation: ripple 1.2s infinite;
  }

  /* Permission modal */
  .modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10,10,15,0.85);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }
  .modal-overlay.visible {
    opacity: 1;
    pointer-events: all;
  }

  .modal {
    width: min(520px, 90vw);
    border: 1px solid var(--edge);
    background: #0f0f18;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: fadeUp 0.3s ease;
  }

  .modal-title {
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--vital);
    line-height: 1.3;
  }
  .modal-sub {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--dim);
    line-height: 1.7;
    margin-top: -0.75rem;
  }

  .permission-target {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1rem;
    background: var(--glass);
    border: 1px solid var(--edge);
  }
  .permission-target-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
  }
  .permission-target-info strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--text);
  }
  .permission-target-info span {
    font-family: 'DM Mono', monospace;
    font-size: 0.6rem;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.08em;
  }

  .permission-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .permission-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--edge);
    cursor: pointer;
    transition: border-color 0.2s;
  }
  .permission-item:hover { border-color: rgba(255,255,255,0.2); }
  .permission-item.granted { border-color: rgba(76,175,125,0.4); background: rgba(76,175,125,0.05); }

  .permission-toggle {
    width: 32px; height: 18px;
    border: 1px solid var(--edge);
    border-radius: 9px;
    position: relative;
    flex-shrink: 0;
    transition: border-color 0.2s, background 0.2s;
  }
  .permission-item.granted .permission-toggle {
    border-color: #4caf7d;
    background: rgba(76,175,125,0.2);
  }
  .permission-toggle::after {
    content: '';
    position: absolute;
    top: 2px; left: 2px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transition: transform 0.2s, background 0.2s;
  }
  .permission-item.granted .permission-toggle::after {
    transform: translateX(14px);
    background: #4caf7d;
  }

  .permission-item-text strong {
    display: block;
    font-size: 0.82rem;
    font-weight: 300;
    color: var(--text);
    margin-bottom: 0.1rem;
  }
  .permission-item-text span {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.35);
    font-style: italic;
  }

  .permission-covenant {
    font-family: 'DM Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    line-height: 1.8;
    color: rgba(255,255,255,0.25);
    border-top: 1px solid var(--edge);
    padding-top: 1rem;
  }

  .modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
  }

  .revoke-all-btn {
    margin-right: auto;
    background: transparent;
    border: 1px solid rgba(200,80,80,0.3);
    color: rgba(200,80,80,0.6);
    font-family: 'DM Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.5rem 0.9rem;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
  }
  .revoke-all-btn:hover {
    border-color: rgba(200,80,80,0.7);
    color: rgba(200,80,80,0.9);
  }

  /* ── JOIN EXPERIENCE ── */
  .join-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
    padding: 0.35rem 0.8rem;
    border: 1px solid rgba(200,169,126,0.35);
    background: rgba(200,169,126,0.06);
    color: var(--warm);
    font-family: 'DM Mono', monospace;
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
    user-select: none;
  }
  .join-btn:hover {
    border-color: rgba(200,169,126,0.7);
    background: rgba(200,169,126,0.12);
  }
  .join-btn .join-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--warm);
    animation: pulse 1.6s infinite;
    flex-shrink: 0;
  }

  /* Join experience overlay — slides up over the community screen */
  .join-overlay {
    position: fixed;
    inset: 0;
    z-index: 120;
    background: rgba(6,6,11,0.96);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
  }
  .join-overlay.visible {
    opacity: 1;
    pointer-events: all;
  }

  .join-overlay-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--edge);
  }

  .join-back-btn {
    background: transparent;
    border: 1px solid var(--edge);
    color: rgba(255,255,255,0.4);
    font-family: 'DM Mono', monospace;
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.3rem 0.7rem;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    flex-shrink: 0;
  }
  .join-back-btn:hover { border-color: var(--warm); color: var(--warm); }

  .join-context {
    flex: 1;
    min-width: 0;
  }
  .join-context-title {
    font-size: 0.78rem;
    font-weight: 300;
    color: var(--vital);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .join-context-sub {
    font-family: 'DM Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.3);
    margin-top: 0.15rem;
  }

  .join-with-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    font-family: 'DM Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.3);
  }

  .join-overlay-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
  }

  /* The embedded content iframe — full bleed */
  .join-embed-frame {
    flex: 1;
    width: 100%;
    border: none;
    display: block;
    background: #000;
  }

  /* Platform notice strip for platforms that block embedding (Reddit, Instagram, etc) */
  .join-platform-notice {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 3rem;
    text-align: center;
  }
  .join-platform-icon {
    font-size: 2.5rem;
    opacity: 0.4;
  }
  .join-platform-desc {
    font-size: 1rem;
    font-weight: 300;
    color: var(--text);
    line-height: 1.7;
    max-width: 480px;
  }
  .join-platform-desc em { color: var(--warm); font-style: italic; }
  .join-open-btn {
    padding: 0.7rem 2rem;
    border: 1px solid var(--warm);
    background: rgba(200,169,126,0.08);
    color: var(--warm);
    font-family: 'DM Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    display: inline-block;
  }
  .join-open-btn:hover { background: rgba(200,169,126,0.16); }

  /* Presence strip at bottom of join overlay — shows who else is here */
  .join-presence-strip {
    flex-shrink: 0;
    padding: 0.6rem 1.5rem;
    border-top: 1px solid var(--edge);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(6,6,11,0.9);
  }
  .join-presence-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.2);
    flex-shrink: 0;
  }
  .join-presence-avatars {
    display: flex;
    align-items: center;
    flex: 1;
    overflow: hidden;
  }
  .join-presence-count {
    font-family: 'DM Mono', monospace;
    font-size: 0.55rem;
    color: rgba(255,255,255,0.3);
    flex-shrink: 0;
  }

  /* Regression test panel */
  .test-panel {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 200;
    background: rgba(6,6,11,0.95);
    border: 1px solid rgba(76,175,125,0.3);
    padding: 0.75rem 1rem;
    width: 260px;
    font-family: 'DM Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.08em;
    display: none;
  }
  .test-panel.visible { display: block; }
  .test-panel-title {
    color: #4caf7d;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
    font-size: 0.6rem;
  }
  .test-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.2rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.5);
  }
  .test-pass { color: #4caf7d; }
  .test-fail { color: rgba(200,80,80,0.8); }
  .test-running { color: var(--warm); animation: pulse 1s infinite; }

  /* ══ FACT-CHECK & TRUST SCORE SYSTEM ══ */

  .factcheck-toggle {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.3rem 0.75rem;
    border: 1px solid var(--edge);
    cursor: pointer;
    font-family: 'DM Mono', monospace;
    font-size: 0.56rem; letter-spacing: 0.12em; text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    transition: all 0.2s; user-select: none; flex-shrink: 0;
  }
  .factcheck-toggle:hover { border-color: rgba(255,255,255,0.2); color: rgba(255,255,255,0.5); }
  .factcheck-toggle.active {
    border-color: rgba(200,169,126,0.5); color: var(--warm);
    background: rgba(200,169,126,0.06);
  }
  .factcheck-toggle-dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: currentColor; flex-shrink: 0;
  }
  .factcheck-toggle.active .factcheck-toggle-dot { animation: pulse 1.4s infinite; }

  .fc-scanning {
    display: flex; align-items: center; gap: 0.4rem; margin-top: 0.5rem;
    font-family: 'DM Mono', monospace; font-size: 0.52rem;
    letter-spacing: 0.1em; color: rgba(255,255,255,0.2); text-transform: uppercase;
  }
  .fc-scanning-dots { display: flex; gap: 2px; }
  .fc-scanning-dots span {
    width: 3px; height: 3px; border-radius: 50%;
    background: rgba(255,255,255,0.3); animation: fcDot 1.2s infinite;
  }
  .fc-scanning-dots span:nth-child(2) { animation-delay: 0.2s; }
  .fc-scanning-dots span:nth-child(3) { animation-delay: 0.4s; }
  @keyframes fcDot {
    0%,80%,100% { opacity:0.2; transform:scale(0.8); }
    40% { opacity:1; transform:scale(1); }
  }

  .stream-card.fc-verified   { border-left: 3px solid rgba(76,175,125,0.6); }
  .stream-card.fc-disputed   { border-left: 3px solid rgba(220,80,60,0.7); background: rgba(220,60,40,0.025) !important; }
  .stream-card.fc-caution    { border-left: 3px solid rgba(240,165,0,0.6); }
  .stream-card.fc-unverifiable { border-left: 3px solid rgba(120,120,180,0.4); }
  .stream-card.fc-opinion    { border-left: 3px solid rgba(255,255,255,0.1); }

  .fc-verdict {
    display: flex; align-items: flex-start; gap: 0.6rem;
    padding: 0.65rem 0.8rem; margin-top: 0.4rem;
    cursor: pointer; border: 1px solid var(--edge);
    transition: background 0.2s;
  }
  .fc-verdict:hover { background: rgba(255,255,255,0.03); }
  .fc-verdict-icon { font-size: 0.9rem; flex-shrink: 0; margin-top: 0.05rem; }
  .fc-verdict-body { flex: 1; min-width: 0; }
  .fc-verdict-label {
    font-family: 'DM Mono', monospace; font-size: 0.56rem;
    letter-spacing: 0.15em; text-transform: uppercase; font-weight: 600; margin-bottom: 0.2rem;
  }
  .fc-verdict-label.verified    { color: #4caf7d; }
  .fc-verdict-label.disputed    { color: rgba(220,100,80,0.9); }
  .fc-verdict-label.caution     { color: rgba(240,165,0,0.9); }
  .fc-verdict-label.unverifiable{ color: rgba(160,160,220,0.8); }
  .fc-verdict-label.opinion     { color: rgba(255,255,255,0.3); }
  .fc-verdict-summary { font-size: 0.78rem; color: rgba(255,255,255,0.55); line-height: 1.5; }
  .fc-verdict-confidence { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.35rem; }
  .fc-conf-bar {
    flex: 1; height: 2px; background: rgba(255,255,255,0.08);
    border-radius: 1px; overflow: hidden;
  }
  .fc-conf-fill { height: 100%; border-radius: 1px; transition: width 0.6s ease; }
  .fc-conf-label { font-family:'DM Mono',monospace; font-size:0.5rem; color:rgba(255,255,255,0.25); flex-shrink:0; }

  .fc-detail {
    display: none; flex-direction: column; gap: 0.5rem;
    padding: 0.75rem 0.8rem 0.8rem;
    border: 1px solid var(--edge); border-top: none;
    background: rgba(255,255,255,0.015);
  }
  .fc-detail.open { display: flex; }
  .fc-detail-source {
    font-family: 'DM Mono', monospace; font-size: 0.52rem;
    letter-spacing: 0.1em; color: rgba(255,255,255,0.2); text-transform: uppercase;
  }
  .fc-detail-source span {
    color: rgba(255,255,255,0.45); text-transform: none; letter-spacing: 0;
    font-size: 0.72rem; font-family: var(--serif); display: block;
    margin-top: 0.15rem; font-style: italic; line-height: 1.5;
  }
  .fc-detail-correction {
    padding: 0.5rem 0.7rem;
    border-left: 2px solid rgba(76,175,125,0.5);
    background: rgba(76,175,125,0.04);
  }
  .fc-detail-correction-label {
    font-family: 'DM Mono', monospace; font-size: 0.5rem;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: rgba(76,175,125,0.7); margin-bottom: 0.2rem;
  }
  .fc-detail-correction-text { font-size: 0.8rem; color: rgba(255,255,255,0.6); line-height: 1.5; }
  .fc-detail-penalty {
    display: flex; align-items: center; gap: 0.5rem;
    font-family: 'DM Mono', monospace; font-size: 0.52rem;
    letter-spacing: 0.08em; color: rgba(220,100,80,0.7);
  }

  /* Trust score in sidebar */
  .trust-score { display: flex; align-items: center; gap: 0.3rem; margin-left: auto; flex-shrink: 0; }
  .trust-shield { font-size: 0.7rem; opacity: 0.7; }
  .trust-value {
    font-family: 'DM Mono', monospace; font-size: 0.55rem;
    letter-spacing: 0.05em; min-width: 22px; text-align: right;
  }
  .trust-value.band-verified   { color: #4caf7d; }
  .trust-value.band-trusted    { color: rgba(130,200,130,0.8); }
  .trust-value.band-cautious   { color: rgba(240,165,0,0.85); }
  .trust-value.band-questioned { color: rgba(220,130,60,0.85); }
  .trust-value.band-lowtrust   { color: rgba(220,80,60,0.85); }

  @keyframes scoreFlashUp {
    0%  { opacity:0; transform:translateY(4px); }
    20% { opacity:1; transform:translateY(0); }
    80% { opacity:1; }
    100%{ opacity:0; transform:translateY(-8px); }
  }
  @keyframes scoreFlashDown {
    0%  { opacity:0; transform:translateY(-4px); }
    20% { opacity:1; transform:translateY(0); }
    80% { opacity:1; }
    100%{ opacity:0; transform:translateY(8px); }
  }
  .score-delta {
    position: absolute; right: 0.5rem;
    font-family: 'DM Mono', monospace; font-size: 0.58rem;
    pointer-events: none; animation-duration: 2s; animation-fill-mode: forwards;
  }
  .score-delta.up   { color: #4caf7d; animation-name: scoreFlashUp; }
  .score-delta.down { color: rgba(220,80,60,0.9); animation-name: scoreFlashDown; }

  .trust-tooltip {
    position: absolute; left: calc(100% + 8px); top: 50%; transform: translateY(-50%);
    background: #0f0f18; border: 1px solid var(--edge);
    padding: 0.65rem 0.9rem; width: 220px; z-index: 50;
    pointer-events: none; opacity: 0; transition: opacity 0.2s;
  }
  .member-item:hover .trust-tooltip { opacity: 1; }
  .trust-tooltip-title {
    font-family: 'DM Mono', monospace; font-size: 0.52rem;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: rgba(255,255,255,0.3); margin-bottom: 0.4rem;
  }
  .trust-history-item {
    display: flex; justify-content: space-between;
    padding: 0.2rem 0; border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.72rem; color: rgba(255,255,255,0.45); line-height: 1.4;
  }
  .trust-history-delta {
    font-family: 'DM Mono', monospace; font-size: 0.6rem; flex-shrink: 0; margin-left: 0.5rem;
  }

  .map-view {
    flex: 1;
    min-height: 0;
    position: relative;
    overflow: hidden;
  }

  /* ══ THREADS VIEW — REDDIT-STYLE INTERACTIVE ══ */

  .threads-view {
    flex: 1; min-height: 0; display: flex;
    flex-direction: column; overflow: hidden;
  }

  .threads-header {
    flex-shrink: 0; padding: 1rem 1.5rem 0.85rem;
    border-bottom: 1px solid var(--edge); background: var(--ink);
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  }
  .threads-header-left { display: flex; flex-direction: column; gap: 0.2rem; }
  .threads-title { font-size: 1.1rem; font-weight: 300; color: var(--vital); }
  .threads-subtitle { font-style: italic; color: var(--dim); font-size: 0.82rem; }
  .threads-fc-badge {
    font-family: 'DM Mono', monospace; font-size: 0.5rem;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: rgba(255,255,255,0.25); display: flex; align-items: center; gap: 0.4rem;
  }
  .threads-new-btn {
    flex-shrink: 0; padding: 0.4rem 0.9rem;
    border: 1px solid rgba(200,169,126,0.4); background: transparent;
    font-family: 'DM Mono', monospace; font-size: 0.56rem; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--warm); cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
  }
  .threads-new-btn:hover { background: rgba(200,169,126,0.08); border-color: var(--warm); }

  .threads-scroll {
    flex: 1; min-height: 0; overflow-y: auto;
    padding: 1.2rem 1.5rem 2rem;
    display: flex; flex-direction: column; gap: 1.2rem;
  }

  /* ── THREAD CARD ── */
  .thread-card { border: 1px solid var(--edge); background: var(--glass); }
  .thread-card:hover { border-color: rgba(255,255,255,0.13); }

  .thread-card-header {
    padding: 0.9rem 1rem 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex; flex-direction: column; gap: 0.45rem;
  }
  .thread-card-title-row {
    display: flex; align-items: flex-start;
    justify-content: space-between; gap: 0.8rem;
  }
  .thread-card-title { font-size: 0.95rem; font-weight: 300; color: var(--vital); line-height: 1.4; flex: 1; }
  .thread-trust-badge {
    display: flex; align-items: center; gap: 0.3rem; flex-shrink: 0;
    padding: 0.2rem 0.5rem; border: 1px solid rgba(255,255,255,0.08);
    font-family: 'DM Mono', monospace; font-size: 0.5rem;
    letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap;
  }
  .thread-trust-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
  .thread-card-summary { font-size: 0.8rem; color: rgba(255,255,255,0.4); line-height: 1.55; font-style: italic; }
  .thread-card-meta { display: flex; align-items: center; justify-content: space-between; }
  .thread-contributors { display: flex; align-items: center; }
  .thread-contributor-avatar {
    width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.48rem; color: #fff; margin-right: -4px;
    border: 1.5px solid var(--ink); flex-shrink: 0;
  }
  .thread-depth-info {
    font-family: 'DM Mono', monospace; font-size: 0.52rem;
    letter-spacing: 0.1em; color: rgba(255,255,255,0.18); text-transform: uppercase;
  }

  /* ── POSTS LIST ── */
  .thread-posts { display: flex; flex-direction: column; }

  .thread-post {
    padding: 0.75rem 1rem 0.7rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    display: flex; gap: 0.65rem;
  }
  .thread-post:last-child { border-bottom: none; }

  /* Vote column — vertical stack left of content */
  .thread-post-votes {
    display: flex; flex-direction: column; align-items: center;
    gap: 0.1rem; flex-shrink: 0; padding-top: 0.1rem; width: 22px;
  }
  .vote-btn {
    background: transparent; border: none; cursor: pointer;
    color: rgba(255,255,255,0.2); font-size: 0.7rem; line-height: 1;
    padding: 0.1rem; transition: color 0.12s, transform 0.1s;
  }
  .vote-btn:hover { color: rgba(255,255,255,0.7); transform: scale(1.2); }
  .vote-btn.voted-up   { color: var(--warm); }
  .vote-btn.voted-down { color: rgba(160,100,80,0.9); }
  .vote-count {
    font-family: 'DM Mono', monospace; font-size: 0.52rem;
    letter-spacing: 0; color: rgba(255,255,255,0.3); text-align: center;
    min-width: 20px;
  }
  .vote-count.positive { color: var(--warm); }
  .vote-count.negative { color: rgba(160,100,80,0.8); }

  /* Post body */
  .thread-post-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.4rem; }

  .thread-post-meta {
    display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
  }
  .thread-post-avatar {
    width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.48rem; color: #fff; flex-shrink: 0;
  }
  .thread-post-author { font-size: 0.72rem; font-weight: 300; color: rgba(255,255,255,0.65); }
  .thread-post-author.is-you { color: var(--warm); }
  .thread-post-timestamp {
    font-family: 'DM Mono', monospace; font-size: 0.48rem;
    letter-spacing: 0.06em; color: rgba(255,255,255,0.2);
  }
  .thread-post-trust { font-family: 'DM Mono', monospace; font-size: 0.48rem; letter-spacing: 0.06em; margin-left: auto; }

  .thread-post-text { font-size: 0.82rem; color: rgba(255,255,255,0.72); line-height: 1.65; }

  /* Post actions bar */
  .thread-post-actions {
    display: flex; align-items: center; gap: 0; margin-top: 0.1rem;
  }
  .post-action-btn {
    background: transparent; border: none; cursor: pointer;
    font-family: 'DM Mono', monospace; font-size: 0.5rem;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: rgba(255,255,255,0.2); padding: 0.2rem 0.55rem 0.2rem 0;
    transition: color 0.12s;
  }
  .post-action-btn:hover { color: rgba(255,255,255,0.6); }
  .post-action-btn.active { color: var(--warm); }

  /* Reply composer — appears inline below a post */
  .thread-reply-composer {
    display: none; flex-direction: column; gap: 0.5rem;
    margin-top: 0.4rem; padding: 0.65rem 0.75rem;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.02);
  }
  .thread-reply-composer.open { display: flex; }

  .reply-composer-meta {
    font-family: 'DM Mono', monospace; font-size: 0.48rem;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: rgba(255,255,255,0.2);
  }

  .reply-textarea {
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8); font-family: var(--serif); font-size: 0.83rem;
    line-height: 1.6; padding: 0.6rem 0.75rem; resize: vertical; min-height: 80px;
    outline: none; transition: border-color 0.15s;
  }
  .reply-textarea:focus { border-color: rgba(255,255,255,0.25); }
  .reply-textarea::placeholder { color: rgba(255,255,255,0.2); }

  /* Live FC scan bar below composer */
  .reply-fc-bar {
    display: none; align-items: center; gap: 0.5rem;
    padding: 0.4rem 0.6rem; border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.015); font-size: 0.75rem;
    color: rgba(255,255,255,0.5); line-height: 1.5;
  }
  .reply-fc-bar.visible { display: flex; }
  .reply-fc-icon { font-size: 0.8rem; flex-shrink: 0; }
  .reply-fc-label {
    font-family: 'DM Mono', monospace; font-size: 0.5rem;
    letter-spacing: 0.1em; text-transform: uppercase; flex-shrink: 0;
  }
  .reply-fc-label.verified    { color: #4caf7d; }
  .reply-fc-label.disputed    { color: rgba(220,100,80,0.9); }
  .reply-fc-label.caution     { color: rgba(240,165,0,0.9); }
  .reply-fc-label.unverifiable{ color: rgba(160,160,220,0.8); }
  .reply-fc-label.scanning    { color: rgba(255,255,255,0.25); }
  .reply-fc-text { flex: 1; font-size: 0.72rem; color: rgba(255,255,255,0.45); }

  .reply-composer-footer {
    display: flex; align-items: center; justify-content: flex-end; gap: 0.5rem;
  }
  .reply-cancel-btn {
    background: transparent; border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.3); font-family: 'DM Mono', monospace;
    font-size: 0.52rem; letter-spacing: 0.1em; text-transform: uppercase;
    padding: 0.3rem 0.7rem; cursor: pointer; transition: border-color 0.15s, color 0.15s;
  }
  .reply-cancel-btn:hover { border-color: rgba(255,255,255,0.3); color: rgba(255,255,255,0.6); }
  .reply-submit-btn {
    background: rgba(200,169,126,0.15); border: 1px solid rgba(200,169,126,0.4);
    color: var(--warm); font-family: 'DM Mono', monospace;
    font-size: 0.52rem; letter-spacing: 0.1em; text-transform: uppercase;
    padding: 0.3rem 0.8rem; cursor: pointer; transition: background 0.15s;
  }
  .reply-submit-btn:hover { background: rgba(200,169,126,0.25); }

  /* Nested replies */
  .thread-replies {
    display: flex; flex-direction: column; gap: 0;
    margin-top: 0.25rem; padding-left: 0.75rem;
    border-left: 1px solid rgba(255,255,255,0.07);
  }
  .thread-reply {
    padding: 0.55rem 0 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.04);
    display: flex; gap: 0.5rem;
  }
  .thread-reply:last-child { border-bottom: none; }

  /* Collapsed state */
  .thread-post.collapsed .thread-post-text,
  .thread-post.collapsed .fc-verdict,
  .thread-post.collapsed .fc-detail,
  .thread-post.collapsed .thread-post-actions,
  .thread-post.collapsed .thread-replies,
  .thread-post.collapsed .thread-reply-composer { display: none; }

  /* Fact-check in threads */
  .thread-post .fc-verdict { margin-top: 0.5rem; background: rgba(255,255,255,0.012); }
  .thread-post .fc-detail { border-top: 1px solid var(--edge); }
  .thread-reply .fc-verdict { margin-top: 0.4rem; }

  /* New thread composer (full-width, at top of scroll) */
  .new-thread-composer {
    display: none; flex-direction: column; gap: 0.6rem;
    padding: 1rem; border: 1px solid rgba(200,169,126,0.2);
    background: rgba(200,169,126,0.03);
    margin-bottom: 0.2rem;
  }
  .new-thread-composer.open { display: flex; }
  .new-thread-title-input {
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.85); font-family: var(--serif); font-size: 0.95rem;
    padding: 0.5rem 0.75rem; outline: none; transition: border-color 0.15s;
  }
  .new-thread-title-input:focus { border-color: rgba(255,255,255,0.28); }
  .new-thread-title-input::placeholder { color: rgba(255,255,255,0.18); }
  .new-thread-composer-label {
    font-family: 'DM Mono', monospace; font-size: 0.5rem; letter-spacing: 0.14em;
    text-transform: uppercase; color: rgba(255,255,255,0.22);
  }

  /* Fact-check verdict inside thread post — same mechanics, slightly tighter */
  .thread-post .fc-verdict { margin-top: 0.5rem; background: rgba(255,255,255,0.012); }
  .thread-post .fc-detail  { border-top: 1px solid var(--edge); }

  /* ── VIDEO CAROUSEL ── */
  .carousel-zone {
    flex-shrink: 0;
    height: 320px;
    border-top: 1px solid var(--edge);
    display: flex;
    flex-direction: column;
    background: #06060b;
    position: relative;
    overflow: hidden;
  }

  .carousel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1.2rem 0.5rem;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .carousel-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'DM Mono', monospace;
    font-size: var(--mono-sm);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.32);
  }

  .carousel-live-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--warm);
    animation: pulse 1.8s infinite;
    flex-shrink: 0;
  }

  .carousel-watchers {
    font-family: 'DM Mono', monospace;
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .carousel-pause-btn {
    background: transparent;
    border: 1px solid var(--edge);
    color: rgba(255,255,255,0.45);
    font-family: 'DM Mono', monospace;
    font-size: var(--mono-xs);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    margin-left: 0.75rem;
  }
  .carousel-pause-btn:hover {
    border-color: var(--warm);
    color: var(--warm);
  }

  .carousel-body {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
  }

  /* Main video stage */
  .carousel-stage {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: #000;
  }

  .carousel-video-wrap {
    position: absolute;
    inset: 0;
    transition: opacity 0.8s ease;
  }
  .carousel-video-wrap.fading { opacity: 0; }

  .carousel-stage iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    pointer-events: none;
  }

  /* Transparent click-blocker — sits over the iframe, blocks all user interaction */
  .carousel-interaction-block {
    position: absolute;
    inset: 0;
    z-index: 4;
    cursor: default;
  }

  /* CC / Language controls — the only permitted user controls */
  .carousel-cc-controls {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 8;
    display: flex;
    gap: 0.4rem;
    align-items: center;
  }

  .cc-btn {
    background: rgba(10,10,15,0.75);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.5);
    font-family: 'DM Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    backdrop-filter: blur(4px);
  }
  .cc-btn:hover { border-color: var(--warm); color: var(--warm); }
  .cc-btn.active { 
    border-color: var(--warm); 
    color: var(--warm);
    background: rgba(200,169,126,0.12);
  }

  .lang-select {
    background: rgba(10,10,15,0.75);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.5);
    font-family: 'DM Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.4rem;
    cursor: pointer;
    backdrop-filter: blur(4px);
    outline: none;
  }
  .lang-select option { background: #0f0f18; }

  /* Validation state */
  .carousel-validating {
    position: absolute;
    inset: 0;
    background: #000;
    z-index: 9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.75rem;
    transition: opacity 0.4s ease;
  }
  .carousel-validating.done { opacity: 0; pointer-events: none; }
  .validating-text {
    font-family: 'DM Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.25);
    animation: shimmer 1.2s infinite;
  }
  .validating-bar {
    width: 80px; height: 1px;
    background: rgba(255,255,255,0.08);
    position: relative; overflow: hidden;
  }
  .validating-bar::after {
    content: '';
    position: absolute;
    left: -100%; top: 0;
    width: 100%; height: 100%;
    background: var(--warm);
    animation: slide 1s ease infinite;
  }

  /* Overlay info on the video */
  .carousel-video-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 0.75rem 1rem 0.6rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.82));
    pointer-events: none;
    z-index: 5;
  }

  .carousel-video-title {
    font-size: 0.88rem;
    font-weight: 300;
    color: rgba(255,255,255,0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
  }

  .carousel-video-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.25rem;
  }

  .carousel-video-tag {
    font-family: 'DM Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--warm);
    border: 1px solid rgba(200,169,126,0.3);
    padding: 0.1rem 0.4rem;
  }

  .carousel-video-surfaced {
    font-family: 'DM Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.3);
  }

  /* Progress bar */
  .carousel-progress {
    position: absolute;
    bottom: 0; left: 0;
    height: 2px;
    background: var(--warm);
    transition: width 1s linear;
    z-index: 6;
    opacity: 0.7;
  }

  /* Carousel comment bar */
  .carousel-comment-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.8rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    background: rgba(5,5,12,0.6);
  }
  .carousel-comment-avatar {
    width: 22px; height: 22px; border-radius: 50%;
    background: linear-gradient(135deg,#c8a97e,#8a6f4e);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.5rem; font-weight: 600; color: rgba(255,255,255,0.9);
    flex-shrink: 0;
  }
  .carousel-comment-input {
    flex: 1;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.8);
    font-family: inherit;
    font-size: 0.78rem;
    padding: 0.35rem 0.6rem;
    outline: none;
    transition: border-color 0.15s;
  }
  .carousel-comment-input:focus { border-color: rgba(200,169,126,0.35); }
  .carousel-comment-input::placeholder { color: rgba(255,255,255,0.2); }
  .carousel-comment-charcount {
    font-family: 'DM Mono', monospace;
    font-size: 0.5rem;
    color: rgba(255,255,255,0.15);
    flex-shrink: 0;
    min-width: 1.5rem;
    text-align: right;
  }
  .carousel-comment-send {
    background: none; border: 1px solid rgba(200,169,126,0.25);
    color: rgba(200,169,126,0.6); cursor: pointer;
    font-size: 0.75rem; padding: 0.25rem 0.55rem;
    transition: all 0.15s;
  }
  .carousel-comment-send:hover { border-color: rgba(200,169,126,0.5); color: rgba(200,169,126,0.9); }
  .carousel-comments-feed {
    max-height: 120px;
    overflow-y: auto;
    border-top: 1px solid rgba(255,255,255,0.04);
  }
  .carousel-comment-item {
    display: flex; align-items: flex-start; gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    animation: fadeInUp 0.2s ease;
  }
  .carousel-comment-item .cc-name {
    color: rgba(200,169,126,0.7);
    font-family: 'DM Mono', monospace;
    font-size: 0.6rem;
    flex-shrink: 0;
  }
  .carousel-comment-item .cc-time {
    font-family: 'DM Mono', monospace;
    font-size: 0.5rem;
    color: rgba(255,255,255,0.15);
    margin-left: auto;
    flex-shrink: 0;
  }
  @keyframes fadeInUp {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* Queue panel */
  .carousel-queue {
    width: 200px;
    flex-shrink: 0;
    border-left: 1px solid rgba(255,255,255,0.06);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }

  .queue-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.18);
    padding: 0.6rem 0.8rem 0.4rem;
    flex-shrink: 0;
  }

  .queue-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.55rem 0.8rem;
    cursor: default;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.15s;
  }
  .queue-item.now-playing {
    background: rgba(200,169,126,0.07);
    border-left: 2px solid var(--warm);
  }

  .queue-thumb {
    width: 38px; height: 28px;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
    color: rgba(255,255,255,0.2);
    overflow: hidden;
    position: relative;
  }

  .queue-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.7;
  }

  .queue-item-info { flex: 1; min-width: 0; }
  .queue-item-title {
    font-size: 0.72rem;
    font-weight: 300;
    color: rgba(255,255,255,0.6);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .queue-item.now-playing .queue-item-title { color: var(--vital); }

  .queue-item-tag {
    font-family: 'DM Mono', monospace;
    font-size: 0.5rem;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.2);
    text-transform: uppercase;
    margin-top: 0.15rem;
  }

  .queue-now-badge {
    font-family: 'DM Mono', monospace;
    font-size: 0.48rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--warm);
    margin-top: 0.2rem;
  }

  /* Member watcher avatars */
  .watcher-avatars {
    display: flex;
    align-items: center;
  }
  .watcher-avatar {
    width: 16px; height: 16px;
    border-radius: 50%;
    border: 1px solid var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.42rem;
    color: #fff;
    margin-right: -5px;
    flex-shrink: 0;
  }

  /* Scrollbar */
  ::-webkit-scrollbar { width: 3px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: var(--edge); }

  /* ── ANIMATIONS ── */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
  }
  @keyframes ripple {
    0% { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(3.5); opacity: 0; }
  }
  @keyframes shimmer {
    0% { opacity: 0.3; }
    50% { opacity: 0.7; }
    100% { opacity: 0.3; }
  }

  /* Loading state */
  .loading-veil {
    position: fixed;
    inset: 0;
    background: var(--ink);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    transition: opacity 0.8s ease;
  }
  .loading-veil.done { opacity: 0; pointer-events: none; }

  .loading-text {
    font-family: 'DM Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    animation: shimmer 1.5s infinite;
  }
  .loading-bar {
    width: 120px;
    height: 1px;
    background: var(--edge);
    position: relative;
    overflow: hidden;
  }
  .loading-bar::after {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--warm);
    animation: slide 1.2s ease infinite;
  }
  @keyframes slide {
    0% { left: -100%; }
    100% { left: 100%; }
  }

  /* ══════════════════════════════════════════════════════════
   * ON AIR INDICATOR — top of community screen, always visible
   * when any feed source is active. Pulsing red. Unmissable.
   * ══════════════════════════════════════════════════════════ */
  .on-air-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 0;
    z-index: 200;
    pointer-events: none;
    transition: height 0.2s ease;
    overflow: hidden;
  }
  .on-air-bar.active {
    height: 36px;
    pointer-events: all;
  }
  .on-air-inner {
    height: 36px;
    background: rgba(8,4,4,0.97);
    border-bottom: 1px solid rgba(220,60,60,0.5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.2rem;
    gap: 1rem;
  }
  .on-air-feeds {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
  }
  .on-air-badge {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.15rem 0.6rem;
    border: 1px solid rgba(220,60,60,0.7);
    background: rgba(220,60,60,0.12);
    flex-shrink: 0;
  }
  .on-air-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #e03030;
    animation: onair-pulse 1s ease-in-out infinite;
    flex-shrink: 0;
  }
  @keyframes onair-pulse {
    0%,100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.4; transform: scale(0.7); }
  }
  .on-air-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.52rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #e03030;
    font-weight: 500;
  }
  .on-air-sources {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    overflow: hidden;
  }
  .on-air-source-chip {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.1rem 0.5rem;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    font-family: 'DM Mono', monospace;
    font-size: 0.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    white-space: nowrap;
  }
  .on-air-manage {
    font-family: 'DM Mono', monospace;
    font-size: 0.5rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.28);
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    border: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
    transition: color 0.15s, border-color 0.15s;
  }
  .on-air-manage:hover { color: rgba(255,255,255,0.6); border-color: rgba(255,255,255,0.3); }

  /* ══════════════════════════════════════════════════════════
   * FEED MONITOR PANEL — replaces dock, right-side panel
   * Shows live preview of all active feeds. Draggable.
   * ══════════════════════════════════════════════════════════ */
  .feed-monitor {
    position: fixed;
    right: 0; bottom: 0;
    width: 340px;
    max-height: 85vh;
    background: rgba(5,5,10,0.98);
    border: 1px solid rgba(255,255,255,0.1);
    border-right: none; border-bottom: none;
    z-index: 150;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
  }
  .feed-monitor.open { transform: translateX(0); }

  .feed-monitor-header {
    padding: 0.6rem 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
  }
  .feed-monitor-title {
    font-family: 'DM Mono', monospace;
    font-size: 0.52rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
  }
  .feed-monitor-close {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.2);
    cursor: pointer;
    padding: 0.1rem 0.3rem;
    transition: color 0.12s;
  }
  .feed-monitor-close:hover { color: rgba(255,255,255,0.6); }

  .feed-monitor-scroll {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
  }

  /* ── Source selector ── */
  .feed-source-list {
    display: flex;
    flex-direction: column;
  }

  .feed-source-item {
    padding: 0.7rem 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }
  .feed-source-item.active {
    background: rgba(255,255,255,0.03);
    border-left: 2px solid rgba(220,60,60,0.6);
  }

  .feed-source-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
  }
  .feed-source-icon {
    font-size: 1rem;
    width: 24px;
    flex-shrink: 0;
    text-align: center;
  }
  .feed-source-name {
    font-size: 0.82rem;
    font-weight: 300;
    color: rgba(255,255,255,0.7);
    flex: 1;
  }
  .feed-source-status-btn {
    font-family: 'DM Mono', monospace;
    font-size: 0.48rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    border: 1px solid;
    cursor: pointer;
    transition: background 0.12s;
    flex-shrink: 0;
  }
  .feed-source-status-btn.inactive {
    color: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.15);
    background: transparent;
  }
  .feed-source-status-btn.inactive:hover { background: rgba(255,255,255,0.04); }
  .feed-source-status-btn.sharing {
    color: #e03030;
    border-color: rgba(220,60,60,0.5);
    background: rgba(220,60,60,0.08);
  }
  .feed-source-status-btn.connected {
    color: #4caf7d;
    border-color: rgba(76,175,125,0.4);
    background: rgba(76,175,125,0.06);
  }

  .feed-source-desc {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.3);
    line-height: 1.4;
    padding-left: 30px;
  }

  /* ── Feed preview area ── */
  .feed-preview {
    background: rgba(0,0,0,0.4);
    border-top: 1px solid rgba(255,255,255,0.05);
    display: none;
  }
  .feed-source-item.active .feed-preview { display: block; }

  .feed-preview-canvas {
    width: 100%;
    display: block;
  }
  .feed-preview-info {
    padding: 0.5rem 0.7rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
  }
  .feed-preview-title {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.4;
  }
  .feed-preview-meta {
    font-family: 'DM Mono', monospace;
    font-size: 0.5rem;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.3);
  }

  /* ── Spotify now-playing card ── */
  .spotify-card {
    padding: 0.65rem 0.75rem;
    display: flex;
    gap: 0.65rem;
    align-items: center;
  }
  .spotify-art {
    width: 52px;
    height: 52px;
    background: rgba(30,215,96,0.12);
    border: 1px solid rgba(30,215,96,0.2);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    position: relative;
    overflow: hidden;
  }
  .spotify-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .spotify-track-info { flex: 1; min-width: 0; }
  .spotify-track-name {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.85);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .spotify-artist {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .spotify-badge {
    font-family: 'DM Mono', monospace;
    font-size: 0.44rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(30,215,96,0.7);
    margin-top: 0.2rem;
  }
  .spotify-progress-bar {
    height: 2px;
    background: rgba(255,255,255,0.1);
    margin: 0 0.75rem 0.5rem;
  }
  .spotify-progress-fill {
    height: 100%;
    background: rgba(30,215,96,0.7);
    transition: width 1s linear;
  }

  /* ── Auth connect section ── */
  .feed-connect-section {
    padding: 0.6rem 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
  }
  .feed-connect-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.48rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.2);
  }
  .feed-connect-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.65rem;
    border: 1px solid rgba(255,255,255,0.1);
    background: transparent;
    cursor: pointer;
    transition: background 0.12s;
    text-align: left;
    width: 100%;
  }
  .feed-connect-btn:hover { background: rgba(255,255,255,0.04); }
  .feed-connect-btn.connected { border-color: rgba(76,175,125,0.35); }
  .feed-connect-btn-icon { font-size: 0.9rem; flex-shrink: 0; }
  .feed-connect-btn-text { flex: 1; min-width: 0; }
  .feed-connect-btn-name { font-size: 0.78rem; color: rgba(255,255,255,0.65); }
  .feed-connect-btn-status { font-family: 'DM Mono', monospace; font-size: 0.46rem; letter-spacing: 0.08em; color: rgba(255,255,255,0.28); }
  .feed-connect-btn.connected .feed-connect-btn-status { color: rgba(76,175,125,0.7); }
  .feed-connect-btn-action {
    font-family: 'DM Mono', monospace; font-size: 0.46rem; letter-spacing: 0.1em;
    text-transform: uppercase; color: rgba(255,255,255,0.25); flex-shrink: 0;
  }

  /* Feed monitor trigger tab */
  .feed-monitor-tab {
    position: fixed;
    right: 0; bottom: 80px;
    writing-mode: vertical-rl;
    padding: 0.7rem 0.5rem;
    background: rgba(8,8,14,0.95);
    border: 1px solid rgba(255,255,255,0.1);
    border-right: none;
    font-family: 'DM Mono', monospace;
    font-size: 0.5rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    cursor: pointer;
    z-index: 149;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.15s;
  }
  .feed-monitor-tab:hover { color: rgba(255,255,255,0.65); }
  .feed-monitor-tab-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
  }
  .feed-monitor-tab-dot.live {
    background: #e03030;
    animation: onair-pulse 1s ease-in-out infinite;
  }

  /* ══════════════════════════════════════════════════════════
   * ACCOUNT MANAGEMENT OVERLAY
   * Full-screen overlay, three-panel: identity, trust, contributions
   * ══════════════════════════════════════════════════════════ */
  .account-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5,5,10,0.97);
    z-index: 9000;
    display: none;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.2s ease;
  }
  .account-overlay.open {
    display: flex;
    opacity: 1;
  }

  .account-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--edge);
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
  }
  .account-title {
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    flex: 1;
  }
  .account-close {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.25);
    cursor: pointer;
    padding: 0.25rem 0.55rem;
    border: 1px solid rgba(255,255,255,0.1);
    transition: color 0.12s;
  }
  .account-close:hover { color: rgba(255,255,255,0.65); }

  .account-layout {
    display: flex;
    flex: 1;
    min-height: 0;
  }

  /* ── Account nav ── */
  .account-nav {
    width: 200px;
    flex-shrink: 0;
    border-right: 1px solid var(--edge);
    padding: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
  }
  .account-nav-item {
    padding: 0.65rem 1.5rem;
    font-size: 0.82rem;
    font-weight: 300;
    color: rgba(255,255,255,0.35);
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
    border-left: 2px solid transparent;
  }
  .account-nav-item:hover { background: rgba(255,255,255,0.03); color: rgba(255,255,255,0.6); }
  .account-nav-item.active { color: var(--warm); border-left-color: var(--warm); background: rgba(200,169,126,0.05); }

  .account-nav-section {
    padding: 0.8rem 1.5rem 0.3rem;
    font-family: 'DM Mono', monospace;
    font-size: 0.48rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.15);
  }

  /* ── Account panels ── */
  .account-panel {
    flex: 1;
    overflow-y: auto;
    padding: 2rem 2.5rem;
    display: none;
  }
  .account-panel.active { display: block; }

  .account-section-title {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--vital);
    margin-bottom: 0.35rem;
  }
  .account-section-desc {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.35);
    line-height: 1.6;
    margin-bottom: 2rem;
  }

  /* ── Identity panel ── */
  .identity-avatar-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--edge);
  }
  .identity-avatar-large {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg,#c8a97e,#8a6f4e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: rgba(255,255,255,0.9);
    flex-shrink: 0;
  }
  .identity-fields { flex: 1; display: flex; flex-direction: column; gap: 0.8rem; }
  .identity-field-group { display: flex; flex-direction: column; gap: 0.3rem; }
  .identity-field-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.5rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.22);
  }
  .identity-field-value {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.75);
    padding: 0.4rem 0.65rem;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
  }
  .identity-field-input {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    padding: 0.4rem 0.65rem;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    outline: none;
    transition: border-color 0.15s;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
  }
  .identity-field-input:focus { border-color: rgba(255,255,255,0.28); }

  .connected-platforms {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 0.5rem;
  }
  .platform-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.9rem;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.02);
  }
  .platform-icon { font-size: 1.1rem; flex-shrink: 0; width: 24px; text-align: center; }
  .platform-info { flex: 1; min-width: 0; }
  .platform-name { font-size: 0.82rem; color: rgba(255,255,255,0.65); }
  .platform-handle { font-family: 'DM Mono', monospace; font-size: 0.5rem; letter-spacing: 0.06em; color: rgba(255,255,255,0.28); margin-top: 0.1rem; }
  .platform-connect-btn {
    font-family: 'DM Mono', monospace;
    font-size: 0.5rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    border: 1px solid;
    cursor: pointer;
    transition: background 0.12s;
    background: transparent;
    flex-shrink: 0;
  }
  .platform-connect-btn.disconnected { color: rgba(255,255,255,0.35); border-color: rgba(255,255,255,0.15); }
  .platform-connect-btn.disconnected:hover { background: rgba(255,255,255,0.04); }
  .platform-connect-btn.connected { color: rgba(220,80,60,0.8); border-color: rgba(220,80,60,0.3); }
  .platform-connect-btn.connected:hover { background: rgba(220,80,60,0.06); }

  /* ── Trust Ledger panel ── */
  .trust-score-hero {
    display: flex;
    align-items: flex-end;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--edge);
  }
  .trust-score-number {
    font-size: 4rem;
    font-weight: 200;
    line-height: 1;
    color: var(--vital);
  }
  .trust-score-meta { display: flex; flex-direction: column; gap: 0.3rem; padding-bottom: 0.4rem; }
  .trust-score-band {
    font-size: 1rem;
    font-weight: 300;
  }
  .trust-score-subtitle {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.3);
    line-height: 1.5;
    max-width: 320px;
  }

  .trust-factors { display: flex; flex-direction: column; gap: 0.8rem; margin-bottom: 2rem; }
  .trust-factor {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255,255,255,0.07);
    background: rgba(255,255,255,0.02);
  }
  .trust-factor-row { display: flex; align-items: center; justify-content: space-between; }
  .trust-factor-name { font-size: 0.82rem; color: rgba(255,255,255,0.65); }
  .trust-factor-value {
    font-family: 'DM Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
  }
  .trust-factor-bar {
    height: 2px;
    background: rgba(255,255,255,0.08);
    border-radius: 1px;
  }
  .trust-factor-fill {
    height: 100%;
    border-radius: 1px;
    transition: width 0.6s ease;
  }
  .trust-factor-desc {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.25);
    line-height: 1.5;
  }

  .trust-event-log { display: flex; flex-direction: column; gap: 0; }
  .trust-event {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
  }
  .trust-event:last-child { border-bottom: none; }
  .trust-event-delta {
    font-family: 'DM Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    min-width: 40px;
    flex-shrink: 0;
    padding-top: 0.1rem;
  }
  .trust-event-delta.pos { color: #4caf7d; }
  .trust-event-delta.neg { color: rgba(220,80,60,0.9); }
  .trust-event-body { flex: 1; min-width: 0; }
  .trust-event-reason { font-size: 0.8rem; color: rgba(255,255,255,0.65); line-height: 1.4; }
  .trust-event-time { font-family: 'DM Mono', monospace; font-size: 0.48rem; letter-spacing: 0.06em; color: rgba(255,255,255,0.2); margin-top: 0.1rem; }

  .trust-notice {
    padding: 1rem;
    border: 1px solid rgba(255,255,255,0.07);
    background: rgba(255,255,255,0.015);
    font-size: 0.78rem;
    color: rgba(255,255,255,0.3);
    line-height: 1.6;
    margin-top: 1.5rem;
  }

  /* ── Contributions panel ── */
  .contribution-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .contribution-item:last-child { border-bottom: none; }
  .contribution-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
  }
  .contribution-type {
    font-family: 'DM Mono', monospace;
    font-size: 0.48rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.1rem 0.4rem;
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.35);
  }
  .contribution-thread { font-size: 0.72rem; color: rgba(255,255,255,0.3); font-style: italic; }
  .contribution-time { font-family: 'DM Mono', monospace; font-size: 0.48rem; color: rgba(255,255,255,0.18); margin-left: auto; }
  .contribution-text { font-size: 0.82rem; color: rgba(255,255,255,0.65); line-height: 1.6; }
  .contribution-delete-btn {
    align-self: flex-start;
    background: transparent;
    border: 1px solid rgba(220,80,60,0.2);
    color: rgba(220,80,60,0.5);
    font-family: 'DM Mono', monospace;
    font-size: 0.46rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
    margin-top: 0.1rem;
  }
  .contribution-delete-btn:hover { background: rgba(220,80,60,0.08); color: rgba(220,80,60,0.8); }

  .data-section { margin-bottom: 2.5rem; }
  .data-section-title {
    font-family: 'DM Mono', monospace;
    font-size: 0.52rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.22);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .data-tracked-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.8rem;
  }
  .data-tracked-key { color: rgba(255,255,255,0.45); }
  .data-tracked-value {
    color: rgba(255,255,255,0.65);
    text-align: right;
    max-width: 60%;
    font-style: italic;
  }

  .danger-zone {
    margin-top: 2rem;
    padding: 1rem;
    border: 1px solid rgba(220,60,60,0.2);
    background: rgba(220,60,60,0.03);
  }
  .danger-zone-title {
    font-family: 'DM Mono', monospace;
    font-size: 0.5rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(220,60,60,0.5);
    margin-bottom: 0.75rem;
  }
  .danger-btn {
    padding: 0.45rem 1rem;
    border: 1px solid rgba(220,60,60,0.35);
    background: transparent;
    color: rgba(220,60,60,0.65);
    font-family: 'DM Mono', monospace;
    font-size: 0.5rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.12s;
  }
  .danger-btn:hover { background: rgba(220,60,60,0.08); }

  /* Account open button — in sidebar header */
  .account-open-btn {
    font-family: 'DM Mono', monospace;
    font-size: 0.48rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.25);
    cursor: pointer;
    padding: 0.2rem 0.45rem;
    border: 1px solid rgba(255,255,255,0.1);
    transition: color 0.12s;
  }
  .account-open-btn:hover { color: rgba(255,255,255,0.55); }

  /* ── Auth / signup flow on intro screen ── */
  .auth-panel {
    position: fixed;
    inset: 0;
    background: rgba(5,5,10,0.97);
    z-index: 500;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .auth-panel.open { display: flex; }
  .auth-box {
    width: min(440px, 92vw);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
  }
  .auth-title {
    font-size: 1.4rem;
    font-weight: 200;
    color: var(--vital);
    text-align: center;
  }
  .auth-subtitle {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.35);
    text-align: center;
    line-height: 1.6;
  }
  .auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'DM Mono', monospace;
    font-size: 0.48rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.15);
  }
  .auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.08);
  }
  .auth-platform-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.02);
    cursor: pointer;
    transition: background 0.12s, border-color 0.15s;
    width: 100%;
    text-align: left;
  }
  .auth-platform-btn:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.22); }
  .auth-platform-btn.connected { border-color: rgba(76,175,125,0.4); background: rgba(76,175,125,0.04); }
  .auth-platform-icon { font-size: 1.2rem; flex-shrink: 0; width: 28px; text-align: center; }
  .auth-platform-info { flex: 1; min-width: 0; }
  .auth-platform-name { font-size: 0.85rem; color: rgba(255,255,255,0.7); }
  .auth-platform-desc { font-size: 0.7rem; color: rgba(255,255,255,0.28); margin-top: 0.1rem; }
  .auth-platform-state { font-family: 'DM Mono', monospace; font-size: 0.48rem; letter-spacing: 0.1em; flex-shrink: 0; }

  .auth-field-group { display: flex; flex-direction: column; gap: 0.4rem; }
  .auth-field-label { font-family: 'DM Mono', monospace; font-size: 0.5rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.22); }
  .auth-input {
    padding: 0.55rem 0.75rem;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.85);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.15s;
    width: 100%;
    box-sizing: border-box;
  }
  .auth-input:focus { border-color: rgba(255,255,255,0.3); }
  .auth-action-row { display: flex; gap: 0.6rem; justify-content: flex-end; align-items: center; }
  .auth-switch-link { font-size: 0.75rem; color: rgba(255,255,255,0.28); cursor: pointer; text-decoration: underline; flex: 1; }
  .auth-switch-link:hover { color: rgba(255,255,255,0.5); }

  /* ══════════════════════════════════════════════════════════
   * REALTIME STATUS TICKER
   * Pinned bottom strip on the community screen.
   * Shows the user's live status as other members see it.
   * Slow horizontal scroll, loops seamlessly.
   * ══════════════════════════════════════════════════════════ */
  .status-ticker {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 28px;
    background: rgba(5,5,10,0.92);
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    overflow: hidden;
    z-index: 50;
    flex-shrink: 0;
  }
  .ticker-label {
    flex-shrink: 0;
    font-family: 'DM Mono', monospace;
    font-size: 0.46rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(200,169,126,0.5);
    padding: 0 0.75rem 0 0.85rem;
    border-right: 1px solid rgba(255,255,255,0.07);
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
  }
  .ticker-viewport {
    flex: 1;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
  }
  .ticker-track {
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    will-change: transform;
  }
  @keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }
  .ticker-segment {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.35);
    padding: 0 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
  }
  .ticker-segment.warm { color: rgba(200,169,126,0.7); }
  .ticker-icon {
    font-size: 0.6rem;
    opacity: 0.6;
  }
  .ticker-dot {
    color: rgba(255,255,255,0.1);
    font-size: 0.6rem;
    padding: 0 0.1rem;
  }

  /* Make community screen position:relative so ticker can position:absolute */
  #community { position: relative; }

  /* ══════════════════════════════════════════════════════════
   * IN-APP JOIN CONTEXT CARD
   * For platforms that block iframe embedding.
   * Shows context about the content + member, keeps user in Realm.
   * ══════════════════════════════════════════════════════════ */
  .join-context-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(6,6,12,0.98);
  }
  .join-context-card-realm-strip {
    padding: 0.5rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-family: 'DM Mono', monospace;
    font-size: 0.52rem;
    letter-spacing: 0.14em;
    background: rgba(200,169,126,0.04);
    display: flex;
    align-items: center;
  }
  .join-context-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    padding: 3rem 2.5rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }
  .join-context-card-icon { font-size: 2.2rem; opacity: 0.35; }
  .join-context-card-title {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--vital);
  }
  .join-context-card-desc {
    font-size: 0.92rem;
    font-weight: 300;
    color: rgba(255,255,255,0.55);
    line-height: 1.7;
  }
  .join-context-card-path {
    font-family: 'DM Mono', monospace;
    font-size: 0.58rem;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.2);
    padding: 0.3rem 0.7rem;
    border: 1px solid rgba(255,255,255,0.07);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .join-context-open-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.6rem;
    border: 1px solid rgba(200,169,126,0.4);
    background: rgba(200,169,126,0.06);
    color: var(--warm);
    font-family: 'DM Mono', monospace;
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
  }
  .join-context-open-btn:hover {
    background: rgba(200,169,126,0.12);
    border-color: rgba(200,169,126,0.7);
  }
  .join-context-card-note {
    font-size: var(--fs-xs);
    color: rgba(255,255,255,0.25);
    line-height: 1.6;
    max-width: 400px;
  }

  /* ══════════════════════════════════════════════════════════
   * GLOBAL REALM STATUS BAR
   * Fixed top of entire viewport — z-index 9999.
   * Always visible: over all screens, overlays, join views.
   * Contains: user presence, live status ticker, ON AIR chip.
   * ══════════════════════════════════════════════════════════ */
  #realmTopBar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--realm-topbar-h);
    background: rgba(4,4,9,0.98);
    border-bottom: 1px solid rgba(255,255,255,0.09);
    z-index: 9999;
    display: none;             /* hidden until community */
    align-items: center;
    gap: 0;
    backdrop-filter: blur(12px);
  }
  #realmTopBar.visible { display: flex; }

  .rtb-realm-chip {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0 1rem;
    border-right: 1px solid rgba(255,255,255,0.07);
    height: 100%;
    flex-shrink: 0;
  }
  .rtb-realm-word {
    font-family: 'DM Mono', monospace;
    font-size: var(--mono-sm);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--warm);
  }
  .rtb-presence-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #4caf7d;
    animation: pulse 2s infinite;
    flex-shrink: 0;
  }

  .rtb-onair-chip {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0 0.85rem;
    border-right: 1px solid rgba(255,255,255,0.07);
    height: 100%;
    flex-shrink: 0;
    cursor: pointer;
    transition: background 0.15s;
  }
  .rtb-onair-chip:hover { background: rgba(255,255,255,0.03); }
  .rtb-onair-chip.live { border-right-color: rgba(220,60,60,0.25); }
  .rtb-onair-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    flex-shrink: 0;
    transition: background 0.2s;
  }
  .rtb-onair-chip.live .rtb-onair-dot {
    background: #e03030;
    animation: onair-pulse 1s ease-in-out infinite;
  }
  .rtb-onair-label {
    font-family: 'DM Mono', monospace;
    font-size: var(--mono-xs);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.25);
    transition: color 0.2s;
  }
  .rtb-onair-chip.live .rtb-onair-label { color: #e03030; }

  /* The scrolling status ticker in the top bar */
  .rtb-ticker {
    flex: 1;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    min-width: 0;
  }
  .rtb-ticker-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    will-change: transform;
  }
  @keyframes rtb-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }
  .rtb-segment {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.62);
    padding: 0 1.4rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    font-family: system-ui, -apple-system, Arial, sans-serif;
    letter-spacing: 0.02em;
    font-weight: 400;
  }
  .rtb-segment.live { color: rgba(210,180,130,0.92); }
  .rtb-sep {
    color: rgba(255,255,255,0.22);
    font-size: 0.7rem;
    padding: 0 0.2rem;
    font-family: system-ui, -apple-system, Arial, sans-serif;
  }

  .rtb-account-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1rem;
    border-left: 1px solid rgba(255,255,255,0.07);
    height: 100%;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s;
    font-family: 'DM Mono', monospace;
    font-size: var(--mono-xs);
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
  }
  .rtb-account-btn:hover { background: rgba(255,255,255,0.03); color: rgba(255,255,255,0.6); }

  /* Push all screens below topbar when it's visible */
  body.topbar-active .screen { top: var(--realm-topbar-h); height: calc(100% - var(--realm-topbar-h)); }
  body.topbar-active .sidebar { top: var(--realm-topbar-h); }
  body.topbar-active .join-overlay { top: var(--realm-topbar-h); }
  body.topbar-active .account-overlay { top: var(--realm-topbar-h); }
  body.topbar-active .presence-panel { top: calc(var(--realm-topbar-h) + 15vh); }

  /* ══════════════════════════════════════════════════════════
   * STREAM + CAROUSEL SIDE-BY-SIDE (stream tab only)
   * Left: carousel (main) | Right: stream feed (sidebar column)
   * ══════════════════════════════════════════════════════════ */
  .stream-view-body {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
  }
  .stream-feed-col {
    width: 320px;
    flex-shrink: 0;
    border-left: 1px solid var(--edge);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: rgba(5,5,10,0.5);
  }
  .stream-feed-col-header {
    padding: 0.65rem 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-family: 'DM Mono', monospace;
    font-size: var(--mono-xs);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.25);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  /* carousel column expands to fill remaining width */
  .carousel-main-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  /* When carousel is minimized */
  .carousel-minimized-bar {
    display: none;
    align-items: center;
    gap: 0.85rem;
    padding: 0 1.2rem;
    height: 44px;
    flex-shrink: 0;
    border-top: 1px solid var(--edge);
    background: rgba(5,5,10,0.9);
    cursor: pointer;
  }
  .carousel-minimized-bar:hover { background: rgba(10,10,20,0.95); }
  .carousel-min-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--warm);
    animation: pulse 1.8s infinite;
  }
  .carousel-min-title {
    font-size: var(--fs-xs);
    color: rgba(255,255,255,0.5);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .carousel-min-restore {
    font-family: 'DM Mono', monospace;
    font-size: var(--mono-xs);
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.25);
    text-transform: uppercase;
  }
  #carouselZone.minimized .carousel-body { display: none; }
  #carouselZone.minimized .carousel-minimized-bar { display: flex; }
  #carouselZone.minimized .carousel-header { display: none; }
  #carouselZone.minimized { height: 44px; border-top: 1px solid var(--edge); }

  /* Minimize button on carousel header */
  .carousel-minimize-btn {
    background: transparent;
    border: 1px solid var(--edge);
    color: rgba(255,255,255,0.3);
    font-family: 'DM Mono', monospace;
    font-size: var(--mono-xs);
    letter-spacing: 0.1em;
    padding: 0.3rem 0.6rem;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    margin-left: 0.5rem;
  }
  .carousel-minimize-btn:hover { color: var(--warm); border-color: var(--warm); }

  /* ══════════════════════════════════════════════════════════
   * TRUST SCORE TOOLTIP — hover over any .trust-score element
   * ══════════════════════════════════════════════════════════ */
  .trust-tooltip {
    position: fixed;
    z-index: 11000;
    width: 280px;
    background: rgba(5,5,12,0.98);
    border: 1px solid rgba(200,169,126,0.3);
    box-shadow: 0 8px 40px rgba(0,0,0,0.7);
    padding: 1.1rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    backdrop-filter: blur(12px);
  }
  .trust-tooltip.visible { opacity: 1; }
  .tt-header {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    margin-bottom: 0.65rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    padding-bottom: 0.6rem;
  }
  .tt-score {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--warm);
    line-height: 1;
    font-family: 'Cormorant Garamond', Georgia, serif;
  }
  .tt-band {
    font-family: 'DM Mono', monospace;
    font-size: var(--mono-xs);
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
  .tt-name {
    font-size: var(--fs-sm);
    color: rgba(255,255,255,0.6);
    margin-bottom: 0.65rem;
  }
  .tt-factors {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.65rem;
  }
  .tt-factor-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .tt-factor-bar-bg {
    flex: 1;
    height: 3px;
    background: rgba(255,255,255,0.07);
    overflow: hidden;
  }
  .tt-factor-bar-fill {
    height: 100%;
    border-radius: 0;
  }
  .tt-factor-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.6rem;
    color: rgba(255,255,255,0.35);
    white-space: nowrap;
    width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .tt-factor-val {
    font-family: 'DM Mono', monospace;
    font-size: 0.6rem;
    width: 28px;
    text-align: right;
  }
  .tt-events {
    border-top: 1px solid rgba(255,255,255,0.07);
    padding-top: 0.5rem;
  }
  .tt-event-row {
    display: flex;
    gap: 0.5rem;
    align-items: baseline;
    font-size: 0.68rem;
    color: rgba(255,255,255,0.35);
    padding: 0.15rem 0;
  }
  .tt-event-delta {
    font-family: 'DM Mono', monospace;
    font-size: 0.62rem;
    font-weight: 400;
    flex-shrink: 0;
    width: 28px;
  }
  .tt-footer {
    margin-top: 0.5rem;
    font-family: 'DM Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.15);
    text-transform: uppercase;
  }

  /* Trust score font size upgrade */
  .trust-value { font-size: var(--mono-sm) !important; }

  /* Feeds panel (merged dock+feed monitor) */
  .feeds-panel-tab {
    position: fixed;
    bottom: 0; right: 0;
    padding: 0.45rem 1rem;
    background: rgba(8,8,14,0.95);
    border-top: 1px solid rgba(255,255,255,0.09);
    border-left: 1px solid rgba(255,255,255,0.09);
    font-family: 'DM Mono', monospace;
    font-size: var(--mono-xs);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    cursor: pointer;
    z-index: 88;
    display: none;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.15s;
  }
  .feeds-panel-tab:hover { color: var(--warm); }
  .feeds-panel-tab.visible { display: flex; }
  .feeds-panel-tab-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    transition: background 0.2s;
  }
  .feeds-panel-tab-dot.live {
    background: #4caf7d;
    animation: pulse 1.6s infinite;
  }

  /* ══════════════════════════════════════════════════════════
   * USER AGREEMENT SCREEN
   * ══════════════════════════════════════════════════════════ */
  .agreement-overlay {
    position: fixed; inset: 0;
    z-index: 9500;
    background: rgba(4,4,10,0.99);
    display: none;
    flex-direction: column;
    overflow: hidden;
  }
  .agreement-overlay.visible { display: flex; }
  .agreement-header {
    flex-shrink: 0;
    padding: 1.4rem 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  .agreement-title {
    font-size: var(--fs-lg);
    font-weight: 300;
    color: var(--vital);
    flex: 1;
  }
  .agreement-version {
    font-family: 'DM Mono', monospace;
    font-size: var(--mono-xs);
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.2);
    text-transform: uppercase;
  }
  .agreement-body {
    flex: 1;
    overflow-y: auto;
    padding: 2rem 2.5rem;
    max-width: 780px;
    margin: 0 auto;
    width: 100%;
  }
  .agreement-section-title {
    font-family: 'DM Mono', monospace;
    font-size: var(--mono-xs);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    margin: 1.8rem 0 0.7rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .agreement-body p {
    font-size: var(--fs-sm);
    color: rgba(255,255,255,0.55);
    line-height: 1.8;
    margin-bottom: 0.8rem;
  }
  .agreement-body strong { color: rgba(255,255,255,0.8); }
  .agreement-footer {
    flex-shrink: 0;
    padding: 1.2rem 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    background: rgba(5,5,12,0.98);
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
  }
  .agreement-checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
  }
  .agreement-checkbox {
    width: 18px; height: 18px;
    border: 1px solid rgba(255,255,255,0.25);
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
    appearance: none;
    display: flex; align-items: center; justify-content: center;
    position: relative;
  }
  .agreement-checkbox:checked { background: rgba(200,169,126,0.2); border-color: var(--warm); }
  .agreement-checkbox:checked::after {
    content: '✓';
    color: var(--warm);
    font-size: 0.7rem;
    position: absolute;
  }
  .agreement-checkbox-label {
    font-size: var(--fs-xs);
    color: rgba(255,255,255,0.5);
    line-height: 1.5;
  }
  .agreement-accept-btn {
    padding: 0.65rem 1.8rem;
    background: rgba(200,169,126,0.1);
    border: 1px solid rgba(200,169,126,0.4);
    color: var(--warm);
    font-family: 'DM Mono', monospace;
    font-size: var(--mono-xs);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    flex-shrink: 0;
    opacity: 0.35;
    pointer-events: none;
  }
  .agreement-accept-btn.ready {
    opacity: 1;
    pointer-events: auto;
  }
  .agreement-accept-btn.ready:hover { background: rgba(200,169,126,0.18); border-color: var(--warm); }

  /* ── Small link on intro screen ── */
  .intro-legal-link {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'DM Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.15);
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.15s;
    z-index: 10;
    white-space: nowrap;
  }
  .intro-legal-link:hover { color: rgba(255,255,255,0.4); }

  /* ══════════════════════════════════════════════════════════
   * AI FACT-CHECK SOURCE BADGE
   * Appears on every verdict card identifying which AI produced it
   * ══════════════════════════════════════════════════════════ */
  .fc-ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.18rem 0.5rem;
    border-radius: 2px;
    font-family: 'DM Mono', monospace;
    font-size: 0.58rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-left: 0.5rem;
    vertical-align: middle;
    flex-shrink: 0;
  }
  .fc-ai-badge.claude  { background: rgba(200,140,80,0.12); color: rgba(210,160,90,0.9); border: 1px solid rgba(200,140,80,0.25); }
  .fc-ai-badge.openai  { background: rgba(100,180,100,0.1); color: rgba(120,200,120,0.9); border: 1px solid rgba(100,180,100,0.2); }
  .fc-ai-badge.grok    { background: rgba(100,140,220,0.1); color: rgba(130,160,230,0.9); border: 1px solid rgba(100,140,220,0.2); }
  .fc-ai-badge.perplexity { background: rgba(80,180,200,0.1); color: rgba(100,200,220,0.9); border: 1px solid rgba(80,180,200,0.2); }
  .fc-ai-badge.gemini  { background: rgba(180,100,220,0.1); color: rgba(200,130,240,0.9); border: 1px solid rgba(180,100,220,0.2); }
  .fc-ai-badge.sim     { background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.22); border: 1px solid rgba(255,255,255,0.08); }

  /* Fact-check source selector dropdown in stream header */
  /* ══════════════════════════════════════════════════════════
   * FACT-CHECK KEY PANEL — inline strip below stream header
   * ══════════════════════════════════════════════════════════ */
  .fc-key-panel {
    display: none;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 1.2rem;
    background: rgba(5,5,12,0.98);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    flex-wrap: wrap;
  }
  .fc-key-panel.visible { display: flex; }
  .fc-key-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    flex-shrink: 0;
    white-space: nowrap;
  }
  .fc-key-input {
    flex: 1;
    min-width: 180px;
    max-width: 340px;
    padding: 0.3rem 0.65rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.75);
    font-family: 'DM Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    outline: none;
    transition: border-color 0.15s;
  }
  .fc-key-input:focus { border-color: rgba(255,255,255,0.28); }
  .fc-key-input::placeholder { color: rgba(255,255,255,0.18); letter-spacing: 0; }
  .fc-key-btn {
    padding: 0.28rem 0.75rem;
    border: 1px solid rgba(255,255,255,0.12);
    background: transparent;
    color: rgba(255,255,255,0.4);
    font-family: 'DM Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .fc-key-btn:hover { border-color: rgba(255,255,255,0.25); color: rgba(255,255,255,0.65); }
  .fc-key-btn.primary { border-color: rgba(200,169,126,0.35); color: rgba(200,169,126,0.8); }
  .fc-key-btn.primary:hover { border-color: rgba(200,169,126,0.6); color: var(--warm); background: rgba(200,169,126,0.06); }
  .fc-key-btn.danger { border-color: rgba(220,80,60,0.25); color: rgba(220,80,60,0.6); }
  .fc-key-btn.danger:hover { border-color: rgba(220,80,60,0.5); color: rgba(220,80,60,0.85); }
  .fc-key-status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'DM Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    flex-shrink: 0;
  }
  .fc-key-status-dot {
    width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
  }
  .fc-key-status.no-key    .fc-key-status-dot { background: rgba(255,255,255,0.15); }
  .fc-key-status.no-key    { color: rgba(255,255,255,0.2); }
  .fc-key-status.has-key   .fc-key-status-dot { background: rgba(240,165,0,0.8); }
  .fc-key-status.has-key   { color: rgba(240,165,0,0.7); }
  .fc-key-status.ok        .fc-key-status-dot { background: rgba(76,175,125,0.9); }
  .fc-key-status.ok        { color: rgba(76,175,125,0.8); }
  .fc-key-status.error     .fc-key-status-dot { background: rgba(220,80,60,0.9); }
  .fc-key-status.error     { color: rgba(220,80,60,0.75); }
  .fc-key-status.testing   .fc-key-status-dot { background: rgba(200,169,126,0.8); animation: pulse 0.8s infinite; }
  .fc-key-status.testing   { color: rgba(200,169,126,0.7); }

  .fc-source-select {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.45);
    font-family: 'DM Mono', monospace;
    font-size: var(--mono-xs);
    letter-spacing: 0.08em;
    padding: 0.2rem 0.5rem;
    cursor: pointer;
    outline: none;
    display: none;
  }
  .factcheck-toggle.active + .fc-source-select { display: inline-block; }

  /* ══════════════════════════════════════════════════════════
   * PLATFORM OAUTH — setup required badge
   * ══════════════════════════════════════════════════════════ */
  .platform-setup-badge {
    font-family: 'DM Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(240,165,0,0.7);
    border: 1px solid rgba(240,165,0,0.2);
    padding: 0.15rem 0.45rem;
    flex-shrink: 0;
  }
  .platform-setup-instructions {
    font-size: var(--fs-xs);
    color: rgba(255,255,255,0.35);
    line-height: 1.7;
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
  }
  .platform-setup-instructions code {
    font-family: 'DM Mono', monospace;
    font-size: 0.72rem;
    color: var(--warm);
    background: rgba(200,169,126,0.08);
    padding: 0.1rem 0.35rem;
  }

  /* Stream card content font size */
  .stream-card-content {
    font-size: var(--fs-base) !important;
    line-height: 1.6;
  }
  /* ══════════════════════════════════════════════════════════
   * v2.1 LAYOUT ADDITIONS
   * Styles for HTML classes added during module separation.
   * ══════════════════════════════════════════════════════════ */

  /* ── INTRO SCREEN ── */
  .intro-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 200;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--parchment);
    text-align: center;
  }
  .intro-sub {
    font-family: 'DM Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    text-align: center;
    margin-top: 0.5rem;
  }
  .intro-version {
    font-family: 'DM Mono', monospace;
    font-size: 0.45rem;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.12);
    margin-top: 0.5rem;
  }
  .intro-aura {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 60%, rgba(200,169,126,0.06), transparent 70%);
    pointer-events: none;
  }
  .intro-badge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.5rem;
  }
  .intro-badge-ring {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(200,169,126,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--warm);
  }
  .intro-badge-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.5rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.25);
  }
  .intro-strip {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
  }
  .intro-witness-check {
    display: flex;
    align-items: center;
    gap: 0.4rem;
  }
  .intro-witness-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
  }
  .intro-witness-dot.ok { background: #4caf7d; }
  .intro-witness-label { color: rgba(255,255,255,0.2); }

  /* ── ARRIVAL SCREEN ── */
  #arrival {
    position: relative;
    overflow: hidden;
  }
  .arrival-window {
    position: absolute;
    inset: 0;
    overflow: hidden;
  }
  .arrival-sky, .arrival-scene, .arrival-ground {
    position: absolute;
    inset: 0;
  }
  .arrival-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    text-align: center;
    gap: 0.5rem;
  }
  .arrival-location {
    font-size: 1.4rem;
    font-weight: 200;
    color: rgba(255,255,255,0.9);
    letter-spacing: 0.05em;
  }
  .arrival-time {
    font-family: 'DM Mono', monospace;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.1em;
  }
  .arrival-weather {
    font-family: 'DM Mono', monospace;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.35);
  }
  .arrival-message {
    font-size: 0.85rem;
    color: rgba(200,169,126,0.7);
    margin-top: 1rem;
    font-style: italic;
  }
  #arrivalEnterBtn {
    margin-top: 1.5rem;
  }
  #arrival canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  /* ── COMMUNITY LAYOUT ── */
  .realm-top-bar {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
  }
  .rtb-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 0.75rem;
    height: 100%;
    flex-shrink: 0;
    border-right: 1px solid rgba(255,255,255,0.07);
  }
  .rtb-realm-mark {
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--warm);
    padding: 0 0.25rem;
  }
  .rtb-on-air-chip {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0 0.85rem;
    height: 100%;
    flex-shrink: 0;
    cursor: pointer;
  }
  .rtb-on-air-chip.live .rtb-on-air-dot { background: #e03030; animation: onair-pulse 1s ease-in-out infinite; }
  .rtb-on-air-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
  }
  .rtb-on-air-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.48rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.25);
  }
  .rtb-on-air-chip.live .rtb-on-air-label { color: #e03030; }
  .rtb-center {
    flex: 1;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
    min-width: 0;
  }
  .rtb-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-right: 0.75rem;
    height: 100%;
    flex-shrink: 0;
    border-left: 1px solid rgba(255,255,255,0.07);
  }
  .rtb-user-name {
    font-family: 'DM Mono', monospace;
    font-size: 0.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    cursor: pointer;
  }
  .rtb-user-name:hover { color: rgba(255,255,255,0.6); }
  .health-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
  }
  .health-dot.ok { background: #4caf7d; }

  .main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
    width: 100%;
    min-height: 0;
  }
  .left-panel {
    width: 260px;
    border-right: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: rgba(4,4,9,0.6);
    flex-shrink: 0;
  }
  .left-panel-header {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .left-panel-title {
    font-family: 'DM Mono', monospace;
    font-size: 0.5rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
  }
  .left-panel-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.25);
    cursor: pointer;
    font-size: 0.8rem;
  }
  .left-panel-section {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
  }

  /* ── STREAM ── */
  .stream-header {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    gap: 0.5rem;
    flex-shrink: 0;
  }
  .stream-header-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
  }
  .stream-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
  }
  .watcher-count {
    font-family: 'DM Mono', monospace;
    font-size: 0.5rem;
    color: rgba(255,255,255,0.25);
  }

  /* ── DOCK ── */
  .dock-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: none;
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    font-family: 'DM Mono', monospace;
    font-size: 0.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
  .dock-btn:hover { border-color: rgba(255,255,255,0.2); color: rgba(255,255,255,0.6); }
  .dock-icon { font-size: 0.9rem; }
  .dock-label { }

  /* ── MEMBER PORTAL ── */
  .member-portal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5,5,10,0.97);
    z-index: 200;
    flex-direction: column;
  }
  .member-portal.open, .member-portal.visible { display: flex; }
  .member-portal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .member-portal-title {
    font-size: 1rem;
    font-weight: 200;
    color: var(--parchment);
  }
  .member-portal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
  }
  .portal-close-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.5);
    padding: 0.3rem 0.7rem;
    font-size: 0.7rem;
    cursor: pointer;
  }

  /* ── WORKSPACE OVERLAY ── */
  .workspace-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5,5,10,0.97);
    z-index: 200;
    flex-direction: column;
  }
  .workspace-overlay.visible { display: flex; }
  .workspace-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .workspace-title {
    font-family: 'DM Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
  }
  .workspace-close {
    background: none;
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.5);
    padding: 0.3rem 0.7rem;
    font-size: 0.7rem;
    cursor: pointer;
  }
  .workspace-body { flex: 1; overflow: auto; }

  /* ── JOIN OVERLAY ── */
  .join-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .join-title {
    font-family: 'DM Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
  }
  .join-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
  .join-external {
    font-family: 'DM Mono', monospace;
    font-size: 0.5rem;
    color: rgba(255,255,255,0.3);
    text-decoration: none;
  }
  .join-external:hover { color: rgba(255,255,255,0.6); }
  .join-close {
    background: none;
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.5);
    padding: 0.3rem 0.7rem;
    font-size: 0.7rem;
    cursor: pointer;
  }
  .join-frame { flex: 1; width: 100%; border: none; }

  /* ── ACCOUNT ── */
  .account-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
  }
  .account-panel-host {
    width: 100%;
  }

  /* ── COVENANT / AGREEMENT EXTRAS ── */
  .agreement-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
  }
  .agreement-check-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.55rem;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
  }
  .covenant-checkbox-wrap {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
  }
  .covenant-checkbox-input { display: none; }
  .covenant-checkbox-visual {
    width: 18px; height: 18px;
    border: 1px solid rgba(200,169,126,0.3);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.1rem;
  }
  .covenant-checkmark {
    color: var(--warm);
    font-size: 0.7rem;
    opacity: 0;
    transition: opacity 0.2s;
  }
  .covenant-checkbox-input:checked ~ .covenant-checkbox-visual .covenant-checkmark,
  .covenant-checkbox-wrap.checked .covenant-checkmark { opacity: 1; }
  .covenant-check-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.5;
  }
  .covenant-check-text { color: rgba(255,255,255,0.5); }
  .covenant-email-input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--parchment);
    font-size: 0.85rem;
  }
  .covenant-terms-link {
    font-family: 'DM Mono', monospace;
    font-size: 0.5rem;
    color: rgba(200,169,126,0.4);
    text-decoration: none;
  }
  .covenant-terms-link:hover { color: rgba(200,169,126,0.7); }

  /* ── FEED EXTRAS ── */
  .feed-monitor-section-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.45rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.2);
    padding: 0.5rem 0;
  }
  .feed-pulse {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #4caf7d;
    animation: pulse 2s infinite;
  }
  .fc-toggle {
    font-family: 'DM Mono', monospace;
    font-size: 0.48rem;
    color: rgba(255,255,255,0.3);
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    border: 1px solid rgba(255,255,255,0.08);
  }
  .fc-toggle:hover { border-color: rgba(255,255,255,0.2); }

  /* ── MAP FOOTER ── */
  .map-footer-note {
    font-family: 'DM Mono', monospace;
    font-size: 0.42rem;
    color: rgba(255,255,255,0.15);
    text-align: center;
    padding: 0.25rem;
  }
