  :root{
    /* Browser Native Control Theme Support */
    color-scheme: light;

    /* Primitive Palette: Navy Primitives */
    --palette-navy-900: #0e0c20;
    --palette-navy-800: #16132f;
    --palette-navy-700: #1e1a3d;
    --palette-navy-600: #241f63;
    --palette-navy-500: #342e7c;
    --palette-navy-400: #4a4560;
    --palette-navy-300: #726f94;
    --palette-navy-200: #a39fb8;
    --palette-navy-100: #eae7f2;
    --palette-navy-deep: #171340;

    /* Primitive Palette: Gold Primitives */
    --palette-gold-500: #febf0f;
    --palette-gold-600: #c99400;
    --palette-gold-700: #9c7300;
    --palette-gold-800: #7a5100;
    --palette-gold-100: #fff8e1;

    /* Primitive Palette: Paper & Neutral Primitives */
    --palette-paper-white: #ffffff;
    --palette-paper-soft: #fbf7ec;
    --palette-paper-soft2: #f5f0df;
    --palette-text-ink: #201c3d;
    --palette-text-muted: #726f8c;
    --palette-heading-light: #f8f7fb;

    /* Primitive Palette: Feedback Primitives */
    --palette-green-700: #16551e;
    --palette-green-600: #1e6e28;
    --palette-green-400: #4ade80;
    --palette-green-100: #eaf5ea;

    --palette-red-700: #90001a;
    --palette-red-600: #b00020;
    --palette-red-400: #f87171;
    --palette-red-100: #fdf0f0;

    --palette-blue-700: #1f375c;
    --palette-blue-600: #2b4c7e;
    --palette-blue-400: #93c5fd;
    --palette-blue-100: #eef2fa;

    /* Semantic Tokens: Surfaces & Backgrounds */
    --color-bg-canvas: var(--palette-paper-white);
    --color-bg-surface: var(--palette-paper-white);
    --color-bg-surface-subtle: var(--palette-paper-soft);
    --color-bg-surface-elevated: var(--palette-paper-white);
    --color-bg-surface-interactive: var(--palette-paper-soft2);
    --color-bg-overlay: rgba(15, 12, 45, 0.6);

    /* Semantic Tokens: Typography */
    --color-text-primary: var(--palette-text-ink);
    --color-text-secondary: var(--palette-text-muted);
    --color-text-heading: var(--palette-navy-600);
    --color-text-inverse: var(--palette-paper-white);

    /* Semantic Tokens: Borders & Dividers */
    --color-border-subtle: rgba(36, 31, 99, 0.08);
    --color-border-default: rgba(36, 31, 99, 0.13);
    --color-border-strong: rgba(36, 31, 99, 0.25);

    /* Semantic Tokens: Actions & Interactive */
    --color-action-primary: var(--palette-navy-600);
    --color-action-primary-text: var(--palette-paper-white);
    --color-accent: var(--palette-gold-500);
    --color-accent-text: var(--palette-gold-700);
    --color-focus-ring: var(--palette-gold-700);

    /* Semantic Tokens: Feedback & Status */
    --color-status-success-bg: var(--palette-green-100);
    --color-status-success-text: var(--palette-green-600);
    --color-status-warning-bg: var(--palette-gold-100);
    --color-status-warning-text: var(--palette-gold-700);
    --color-status-danger-bg: var(--palette-red-100);
    --color-status-danger-text: var(--palette-red-600);
    --color-status-info-bg: var(--palette-blue-100);
    --color-status-info-text: var(--palette-blue-600);

    /* Semantic Tokens: Elevation & Shadows */
    --shadow-card: 0 8px 20px rgba(36, 31, 99, 0.06);
    --shadow-modal: 0 24px 60px rgba(36, 31, 99, 0.25);

    /* Legacy Compatibility Aliases (Preserved for existing code) */
    --paper: var(--color-bg-canvas);
    --paper-soft: var(--color-bg-surface-subtle);
    --paper-soft2: var(--color-bg-surface-interactive);
    --line: var(--color-border-default);
    --line-soft: var(--color-border-subtle);
    --navy: #241f63;
    --navy-deep: #171340;
    --navy-muted: #726f94;
    --gold: #febf0f;
    --gold-deep: #c99400;
    --gold-text: var(--color-accent-text);
    --text: var(--color-text-primary);
    --muted: var(--color-text-secondary);

    /* Phantom Compatibility Aliases (Audited and bound to semantic roles) */
    --paper-warm: var(--color-bg-surface);
    --accent-warm: var(--color-status-warning-text);
    --shadow-soft: var(--shadow-card);

    --radius: 3px;
    --maxw: 1180px;
  }

  /* Dark Theme Semantic Values */
  html[data-theme="dark"] {
    color-scheme: dark;

    /* Semantic Tokens: Surfaces & Backgrounds */
    --color-bg-canvas: var(--palette-navy-900);
    --color-bg-surface: var(--palette-navy-800);
    --color-bg-surface-subtle: #1b1739;
    --color-bg-surface-elevated: #231f48;
    --color-bg-surface-interactive: #292452;
    --color-bg-overlay: rgba(5, 4, 12, 0.78);

    /* Semantic Tokens: Typography */
    --color-text-primary: var(--palette-navy-100);
    --color-text-secondary: var(--palette-navy-200);
    --color-text-heading: var(--palette-heading-light);
    --color-text-inverse: var(--palette-navy-900);

    /* Semantic Tokens: Borders & Dividers */
    --color-border-subtle: rgba(255, 255, 255, 0.08);
    --color-border-default: rgba(255, 255, 255, 0.14);
    --color-border-strong: rgba(255, 255, 255, 0.28);

    /* Semantic Tokens: Actions & Interactive */
    --color-action-primary: var(--palette-gold-500);
    --color-action-primary-text: var(--palette-navy-900);
    --color-accent: var(--palette-gold-500);
    --color-accent-text: var(--palette-gold-500);
    --color-focus-ring: var(--palette-gold-500);

    /* Semantic Tokens: Feedback & Status */
    --color-status-success-bg: rgba(46, 184, 92, 0.14);
    --color-status-success-text: var(--palette-green-400);
    --color-status-warning-bg: rgba(254, 191, 15, 0.14);
    --color-status-warning-text: var(--palette-gold-500);
    --color-status-danger-bg: rgba(239, 68, 68, 0.15);
    --color-status-danger-text: var(--palette-red-400);
    --color-status-info-bg: rgba(59, 130, 246, 0.14);
    --color-status-info-text: var(--palette-blue-400);

    /* Semantic Tokens: Elevation & Shadows */
    --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.45);
    --shadow-modal: 0 24px 60px rgba(0, 0, 0, 0.70);

    /* Legacy Compatibility Aliases in Dark Mode */
    --paper: var(--color-bg-canvas);
    --paper-soft: var(--color-bg-surface-subtle);
    --paper-soft2: var(--color-bg-surface-interactive);
    --line: var(--color-border-default);
    --line-soft: var(--color-border-subtle);
    --navy-muted: var(--palette-navy-200);
    --gold-text: var(--color-accent-text);
    --text: var(--color-text-primary);
    --muted: var(--color-text-secondary);

    /* Phantom Compatibility Aliases in Dark Mode */
    --paper-warm: var(--color-bg-surface);
    --accent-warm: var(--color-status-warning-text);
    --shadow-soft: var(--shadow-card);
  }

  /* ---------- Chunk 7D.2 Core Surfaces Dark Overrides ---------- */
  html[data-theme="dark"] h1,
  html[data-theme="dark"] h2,
  html[data-theme="dark"] h3,
  html[data-theme="dark"] h4 {
    color: var(--color-text-heading);
  }

  html[data-theme="dark"] a {
    color: var(--color-text-primary);
  }

  html[data-theme="dark"] .timer-digits {
    color: var(--color-text-heading);
  }

  html[data-theme="dark"] .candle-plate {
    background: var(--palette-navy-700);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.6);
  }

  html[data-theme="dark"] .wick {
    background: var(--palette-navy-200);
  }

  html[data-theme="dark"] .topic-card .refs,
  html[data-theme="dark"] .pt-item .pt-ref,
  html[data-theme="dark"] .lookup-result .lr-ref {
    color: var(--color-accent-text);
  }

  html[data-theme="dark"] .expand-passage-btn {
    background: var(--color-bg-surface-interactive);
    color: var(--color-text-heading);
    border-color: var(--color-border-default);
  }

  html[data-theme="dark"] .expand-passage-btn:hover {
    background: var(--color-bg-surface-elevated);
    color: var(--color-accent-text);
    border-color: var(--gold-deep);
  }

  html[data-theme="dark"] .submit-btn,
  html[data-theme="dark"] .lookup-row button,
  html[data-theme="dark"] .reveal-submit,
  html[data-theme="dark"] .challenge-box .submit-btn {
    background: var(--palette-navy-500);
    color: #ffffff;
    border: 1px solid var(--color-border-strong);
  }

  html[data-theme="dark"] .submit-btn:hover:not(:disabled),
  html[data-theme="dark"] .lookup-row button:hover,
  html[data-theme="dark"] .reveal-submit:hover,
  html[data-theme="dark"] .challenge-box .submit-btn:hover {
    background: var(--palette-navy-600);
  }

  html[data-theme="dark"] .vote-score {
    color: var(--color-text-heading);
  }

  html[data-theme="dark"] .vote-score.positive {
    color: var(--color-text-heading);
  }

  html[data-theme="dark"] .vote-score.negative {
    color: var(--color-status-danger-text);
  }

  html[data-theme="dark"] .link-btn {
    color: var(--color-accent-text);
  }

  html[data-theme="dark"] .gloss .g-item .g-meta {
    color: var(--color-accent-text);
  }

  html[data-theme="dark"] .m-block h3,
  html[data-theme="dark"] .streak-num {
    color: var(--color-text-heading);
  }

  html[data-theme="dark"] details.how summary {
    color: var(--color-text-heading);
  }

  html[data-theme="dark"] .footer-heading {
    color: var(--color-text-heading);
  }

  html[data-theme="dark"] .footer-links a {
    color: var(--color-text-secondary);
  }

  html[data-theme="dark"] .footer-links a:hover,
  html[data-theme="dark"] .footer-links a:focus-visible {
    color: var(--gold);
  }

  html[data-theme="dark"] .about-header h1,
  html[data-theme="dark"] .about-section h2,
  html[data-theme="dark"] .about-feature-card h3 {
    color: var(--color-text-heading);
  }

  html[data-theme="dark"] .about-section p,
  html[data-theme="dark"] .scripture-quote {
    color: var(--color-text-primary);
  }

  html[data-theme="dark"] .about-feature-link {
    color: var(--color-accent-text);
  }

  html[data-theme="dark"] .about-cta-box {
    background: var(--color-bg-surface-elevated);
    border: 1px solid var(--color-border-default);
  }

  html[data-theme="dark"] .about-cta-box h3 {
    color: var(--color-text-heading);
  }

  html[data-theme="dark"] .about-cta-box p {
    color: var(--color-text-primary);
    opacity: 1;
  }

  html[data-theme="dark"] .theme-toggle-btn {
    background: var(--color-bg-surface-interactive);
    border-color: var(--color-border-default);
    color: var(--color-text-secondary);
  }

  html[data-theme="dark"] .theme-toggle-btn:hover,
  html[data-theme="dark"] .theme-toggle-btn:focus-visible {
    background: var(--color-bg-surface-elevated);
    border-color: var(--gold);
    color: var(--color-text-heading);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  }

  html[data-theme="dark"] nav.site a {
    color: var(--color-text-secondary);
  }

  html[data-theme="dark"] nav.site a:hover,
  html[data-theme="dark"] nav.site a:focus-visible {
    background: var(--color-bg-surface-elevated);
    border-color: var(--color-border-strong);
    color: var(--color-text-heading);
  }

  html[data-theme="dark"] #guidelinesDeclinedNotice {
    color: var(--color-text-heading) !important;
  }

  html[data-theme="dark"] .auth-chip {
    background: var(--color-bg-surface-interactive);
    border-color: var(--color-border-default);
    color: var(--color-text-primary);
  }

  html[data-theme="dark"] .auth-chip:hover,
  html[data-theme="dark"] .auth-chip:focus-visible {
    background: var(--color-bg-surface-elevated);
    border-color: var(--gold);
    color: var(--color-text-heading);
  }

  html[data-theme="dark"] .auth-chip.guest .dot {
    background: var(--color-text-muted);
  }

  html[data-theme="dark"] .auth-chip:not(.guest) .dot {
    background: var(--color-status-success);
    box-shadow: 0 0 0 2px rgba(102, 187, 106, 0.25);
  }

  html[data-theme="dark"] .toggle-read {
    color: var(--color-accent-text);
  }

  html[data-theme="dark"] .toggle-read:hover,
  html[data-theme="dark"] .toggle-read:focus-visible {
    color: var(--gold);
  }

  html[data-theme="dark"] .link-btn:hover,
  html[data-theme="dark"] .link-btn:focus-visible {
    color: var(--gold);
  }

  html[data-theme="dark"] select option {
    background: var(--color-bg-surface);
    color: var(--color-text-primary);
  }

  html[data-theme="dark"] .achievement-card-title,
  html[data-theme="dark"] .achievement-toast-title {
    color: var(--color-text-heading);
  }

  html[data-theme="dark"] .dashboard-panel {
    background: var(--color-bg-canvas);
    border-color: var(--color-border-default);
  }

  html[data-theme="dark"] .dashboard-col-card {
    background: var(--color-bg-surface-elevated);
    border-color: var(--color-border-default);
  }

  html[data-theme="dark"] .dashboard-col-card h4 {
    color: var(--color-text-heading);
    border-bottom-color: var(--color-border-subtle);
  }

  html[data-theme="dark"] .dashboard-journey-action {
    background: var(--color-bg-surface);
    border-color: var(--color-border-default);
    color: var(--color-text-heading);
  }

  html[data-theme="dark"] .dashboard-journey-action:hover {
    background: var(--color-bg-surface-interactive);
    border-color: var(--gold-deep);
    color: var(--gold);
  }

  html[data-theme="dark"] .achievements-summary-header {
    background: var(--color-bg-surface-elevated);
    border-color: var(--color-border-default);
  }

  html[data-theme="dark"] .achievement-pill {
    background: var(--color-bg-surface-interactive);
    border-color: var(--color-border-default);
    color: var(--color-text-secondary);
  }

  html[data-theme="dark"] #dashAchUnlockedCount {
    color: var(--color-accent-text);
  }

  html[data-theme="dark"] #dashAchPercentVal {
    color: var(--color-text-heading);
  }

  html[data-theme="dark"] .provider-card {
    background: var(--color-bg-surface-elevated);
    border-color: var(--color-border-default);
  }

  html[data-theme="dark"] .provider-card-title {
    color: var(--color-text-heading);
  }

  html[data-theme="dark"] .provider-card-desc {
    color: var(--color-text-secondary);
  }

  html[data-theme="dark"] .status-badge {
    background: var(--color-bg-surface-interactive);
    color: var(--color-text-secondary);
    border-color: var(--color-border-default);
  }

  html[data-theme="dark"] .status-badge.pending {
    background: var(--color-status-warning-bg);
    color: var(--color-status-warning-text);
    border-color: rgba(254, 191, 15, 0.3);
  }

  html[data-theme="dark"] .status-badge.accepted,
  html[data-theme="dark"] .status-badge.approved {
    background: var(--color-status-success-bg);
    color: var(--color-status-success-text);
    border-color: rgba(74, 222, 128, 0.3);
  }

  html[data-theme="dark"] .status-badge.declined {
    background: var(--color-status-danger-bg);
    color: var(--color-status-danger-text);
    border-color: rgba(248, 113, 113, 0.3);
  }

  html[data-theme="dark"] #dashGoogleLinkGISContainer {
    background: var(--color-bg-surface-interactive) !important;
    border-color: var(--color-accent) !important;
  }

  html[data-theme="dark"] #dashGoogleLinkGISContainer p {
    color: var(--color-text-primary) !important;
  }

  html[data-theme="dark"] #profileUsernameTitle,
  html[data-theme="dark"] #guidelinesModalTitle {
    color: var(--color-text-heading);
  }

  html[data-theme="dark"] #profileLatestContribution {
    background: var(--color-bg-surface-interactive);
    border-color: var(--color-border-default);
  }

  html[data-theme="dark"] .danger-zone-card {
    background: var(--color-status-danger-bg);
    border-color: rgba(239, 68, 68, 0.32);
  }

  html[data-theme="dark"] .danger-zone-card h4 {
    color: var(--color-status-danger-text);
    border-bottom-color: var(--color-border-subtle);
  }

  html[data-theme="dark"] .danger-btn-outline {
    border-color: var(--color-status-danger-text);
    color: var(--color-status-danger-text);
  }

  html[data-theme="dark"] .danger-btn-outline:hover:not(:disabled) {
    background: var(--color-status-danger-text);
    color: var(--color-text-inverse);
  }

  /* --- Dark Mode Readability Fixes --- */
  html[data-theme="dark"] .admin-workspace-tab-btn:hover,
  html[data-theme="dark"] .admin-workspace-tab-btn.active,
  html[data-theme="dark"] .profile-tab-btn:hover,
  html[data-theme="dark"] .profile-tab-btn.active,
  html[data-theme="dark"] .stat-val,
  html[data-theme="dark"] .admin-metric-card .num,
  html[data-theme="dark"] .admin-stat-pill .num,
  html[data-theme="dark"] .profile-section-title,
  html[data-theme="dark"] .admin-card-title {
    color: var(--color-text-heading);
  }

  html[data-theme="dark"] .admin-workspace-tab-btn:hover,
  html[data-theme="dark"] .admin-workspace-tab-btn.active,
  html[data-theme="dark"] .profile-tab-btn:hover,
  html[data-theme="dark"] .profile-tab-btn.active {
    border-bottom-color: var(--gold);
  }

  html[data-theme="dark"] .admin-metric-card.approved .num,
  html[data-theme="dark"] .admin-stat-pill.approved .num {
    color: var(--color-status-success-text);
  }

  html[data-theme="dark"] .admin-metric-card.declined .num,
  html[data-theme="dark"] .admin-stat-pill.declined .num {
    color: var(--color-status-danger-text);
  }

  html[data-theme="dark"] .admin-submitter-info strong,
  html[data-theme="dark"] .admin-reviewed-info strong,
  html[data-theme="dark"] .admin-mod-checkbox-row {
    color: var(--color-text-primary);
  }

  html[data-theme="dark"] .admin-card-angle,
  html[data-theme="dark"] .admin-topic-angle {
    color: var(--color-text-secondary);
  }

  html[data-theme="dark"] .ref-tag {
    background: var(--color-bg-surface-interactive);
    border-color: var(--color-border-default);
    color: var(--color-accent-text);
  }

  html[data-theme="dark"] .review-note-box {
    background: var(--color-bg-surface-interactive);
    border-color: var(--color-border-default);
    border-left-color: var(--gold-deep);
    color: var(--color-text-primary);
  }

  html[data-theme="dark"] .review-note-box strong {
    color: var(--color-accent-text);
  }

  html[data-theme="dark"] .admin-select-input {
    background: var(--color-bg-surface-interactive);
    border-color: var(--color-border-default);
    color: var(--color-text-primary);
  }

  html[data-theme="dark"] .admin-enforce-toggle-btn {
    color: var(--color-accent-text);
  }

  html[data-theme="dark"] .admin-enforce-toggle-btn:hover {
    background: var(--color-bg-surface-interactive);
    border-color: var(--gold);
    color: var(--gold);
  }

  html[data-theme="dark"] .admin-mod-enforcement-drawer,
  html[data-theme="dark"] .admin-evidence-box,
  html[data-theme="dark"] .admin-chronology-box,
  html[data-theme="dark"] .admin-reviewed-info {
    background: var(--color-bg-surface-interactive);
    border-color: var(--color-border-default);
  }

  html[data-theme="dark"] .logout-btn {
    background: var(--color-bg-surface-interactive);
    border-color: var(--color-border-default);
    color: var(--color-text-primary);
  }

  html[data-theme="dark"] .logout-btn:hover {
    background: var(--color-bg-surface-elevated);
    border-color: var(--color-border-strong);
    color: var(--color-text-heading);
  }

  html[data-theme="dark"] .status-badge.upcoming,
  html[data-theme="dark"] .status-badge.reviewing {
    background: var(--color-status-info-bg);
    color: var(--color-status-info-text);
    border-color: rgba(147, 197, 253, 0.3);
  }

  html[data-theme="dark"] .status-badge.due {
    background: var(--color-status-warning-bg);
    color: var(--color-status-warning-text);
    border-color: rgba(254, 191, 15, 0.3);
  }

  html[data-theme="dark"] .status-badge.overdue,
  html[data-theme="dark"] .status-badge.suspended {
    background: var(--color-status-danger-bg);
    color: var(--color-status-danger-text);
    border-color: rgba(248, 113, 113, 0.3);
  }

  html[data-theme="dark"] .status-badge.resolved,
  html[data-theme="dark"] .admin-topic-status.active,
  html[data-theme="dark"] .admin-hidden-badge.visible {
    background: var(--color-status-success-bg);
    color: var(--color-status-success-text);
    border-color: rgba(74, 222, 128, 0.3);
  }

  html[data-theme="dark"] .admin-topic-status.inactive,
  html[data-theme="dark"] .admin-hidden-badge.hidden {
    background: var(--color-status-danger-bg);
    color: var(--color-status-danger-text);
    border-color: rgba(248, 113, 113, 0.3);
  }

  html[data-theme="dark"] .status-badge.terminated,
  html[data-theme="dark"] .status-badge.dismissed,
  html[data-theme="dark"] .admin-deleted-badge {
    background: var(--color-bg-surface-interactive);
    color: var(--color-text-secondary);
    border-color: var(--color-border-default);
  }

  html[data-theme="dark"] .admin-chronology-action.warning { color: var(--color-status-warning-text); }
  html[data-theme="dark"] .admin-chronology-action.suspension,
  html[data-theme="dark"] .admin-chronology-action.suspension_continued { color: var(--color-status-danger-text); }
  html[data-theme="dark"] .admin-chronology-action.restoration { color: var(--color-status-success-text); }
  html[data-theme="dark"] .admin-chronology-action.content_hidden { color: var(--color-status-info-text); }
  html[data-theme="dark"] .admin-chronology-action.termination { color: var(--color-text-secondary); }

  html[data-theme="dark"] .admin-action-btn.decline {
    background: var(--color-status-danger-bg);
    color: var(--color-status-danger-text);
    border-color: rgba(248, 113, 113, 0.3);
  }
  html[data-theme="dark"] .admin-action-btn.decline:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.25);
  }

  html[data-theme="dark"] .admin-subnav-btn:hover,
  html[data-theme="dark"] .admin-filter-btn:hover,
  html[data-theme="dark"] .admin-refresh-btn:hover {
    color: var(--color-text-heading);
    border-color: var(--color-border-strong);
  }

  html[data-theme="dark"] .add-ref-btn:hover {
    color: var(--gold);
    border-color: var(--gold);
  }

  html[data-theme="dark"] .admin-alert.success,
  html[data-theme="dark"] .success-msg {
    background: var(--color-status-success-bg);
    color: var(--color-status-success-text);
    border-color: rgba(74, 222, 128, 0.3);
  }

  html[data-theme="dark"] .admin-alert.error {
    background: var(--color-status-danger-bg);
    color: var(--color-status-danger-text);
    border-color: rgba(248, 113, 113, 0.3);
  }

  html[data-theme="dark"] #dashSelectedFileName {
    color: var(--color-text-secondary) !important;
  }

  *{box-sizing:border-box;}
  html{scroll-behavior:smooth;}
  body{
    margin:0;
    background:var(--paper);
    color:var(--text);
    font-family:'Source Serif 4', Georgia, serif;
    line-height:1.55;
    -webkit-font-smoothing:antialiased;
  }
  ::selection{ background:var(--gold); color:var(--navy-deep);}
  a{color:var(--navy);}
  h1,h2,h3{
    font-family:'Fraunces', serif;
    font-weight:700;
    margin:0;
    color:var(--navy);
    letter-spacing:0.01em;
  }
  .eyebrow{
    font-family:'IBM Plex Mono', monospace;
    font-size:0.72rem;
    letter-spacing:0.16em;
    text-transform:uppercase;
    color:var(--gold-text);
  }
  button{font-family:inherit;}
  :focus-visible{ outline:2px solid var(--color-focus-ring); outline-offset:3px; }

  @media (forced-colors: active) {
    :focus-visible {
      outline: 2px solid Highlight;
      outline-offset: 3px;
    }
  }

  input::placeholder,
  textarea::placeholder {
    color: var(--color-text-muted);
    opacity: 0.8;
  }


  .wrap{ max-width:var(--maxw); margin:0 auto; padding:0 28px; }
  header.site{ border-bottom:1px solid var(--line); padding:16px 0; background:var(--paper); }
  header.site .header-wrap{ display:flex; align-items:center; justify-content:space-between; gap:20px; }
  .brand{ display:flex; align-items:center; gap:14px; order:1; }
  .brand img{ height:34px; width:auto; display:block; }
  .brand .tag{ font-family:'IBM Plex Mono', monospace; font-size:0.66rem; color:var(--muted); letter-spacing:0.08em; border-left:1px solid var(--line); padding-left:14px; }
  .header-nav-container{ display:flex; align-items:center; gap:20px; order:2; margin-left:auto; }
  nav.site{ display:flex; align-items:center; gap:6px; }
  nav.site a{
    color:var(--navy-muted); text-decoration:none; margin-left:14px;
    font-family:'IBM Plex Mono', monospace; font-size:0.78rem; letter-spacing:0.04em;
    border-bottom:1px solid transparent; padding-bottom:3px;
  }
  nav.site a:hover{ color:var(--gold-deep); border-color:var(--gold-deep); }

  /* ---------- theme toggle button ---------- */
  .theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--paper-soft);
    border: 1px solid var(--line);
    color: var(--navy-muted);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.74rem;
    letter-spacing: 0.03em;
    padding: 6px 12px;
    border-radius: 16px;
    min-height: 36px;
    min-width: 44px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    text-decoration: none;
    box-sizing: border-box;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .theme-toggle-btn:hover,
  .theme-toggle-btn:focus-visible {
    background: var(--color-bg-surface);
    border-color: var(--gold-deep);
    color: var(--navy-deep);
    box-shadow: 0 1px 2px rgba(36, 31, 99, 0.04);
  }
  .theme-toggle-icon {
    font-size: 0.85rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .theme-toggle-label {
    font-weight: 500;
  }

  /* ---------- auth ---------- */
  .auth-area{ position:relative; order:3; margin-left:20px; display:inline-flex; align-items:center; gap:10px; }
  .auth-chip{
    display:flex; align-items:center; gap:10px; font-family:'IBM Plex Mono', monospace; font-size:0.76rem;
    background:var(--paper-soft); border:1px solid var(--line); padding:8px 12px; border-radius:20px; cursor:pointer;
    color:var(--navy); min-height:34px; box-sizing:border-box;
  }
  .auth-chip .dot{ width:7px; height:7px; border-radius:50%; background:var(--gold-deep); }
  .auth-chip.guest .dot{ background:var(--navy-muted); }
  .auth-panel{
    display:none; position:relative; width:100%; max-width:340px;
    background:var(--paper); color:var(--text); border-radius:var(--radius); padding:28px 24px 24px;
    box-shadow:0 20px 40px rgba(36,31,99,0.25); border:1px solid var(--line); box-sizing:border-box;
    margin:auto;
  }
  @keyframes panelFadeIn {
    from { opacity: 0; transform: scale(0.96) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
  }
  .auth-panel.show{
    display:block;
    animation: panelFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  #authClose{
    position:absolute; top:8px; right:8px; width:40px; height:40px;
    display:flex; align-items:center; justify-content:center;
    background:none; border:none; cursor:pointer; font-size:1.5rem;
    color:var(--muted); transition:color 0.15s ease;
  }
  #authClose:hover{ color:var(--navy); }
  /* Overlay for mobile modal effect */
  .auth-overlay{
    display:none; position:fixed; top:0; left:0; width:100%; height:100%;
    background:rgba(15,12,45,0.6); z-index:999;
    overflow-y:auto; padding:20px 12px; box-sizing:border-box;
  }
  .auth-overlay.show{ display:flex; align-items:center; justify-content:center; }
  .auth-panel h4{ font-family:'Fraunces', serif; font-size:1rem; margin:0 0 10px; color:var(--navy); }
  .auth-panel label{ display:block; font-family:'IBM Plex Mono', monospace; font-size:0.68rem; color:var(--muted); margin-top:10px; letter-spacing:0.04em; text-transform:uppercase; }
  .auth-panel input{
    width:100%; margin-top:4px; padding:8px 9px; border:1px solid var(--line); border-radius:3px;
    font-family:'Source Serif 4', serif; font-size:0.92rem; background:var(--paper-soft); color:var(--text);
  }
  .auth-panel .auth-submit{
    margin-top:14px; width:100%; background:var(--navy); color:#fff; border:none;
    padding:10px; border-radius:3px; cursor:pointer; font-family:'IBM Plex Mono', monospace; font-size:0.78rem; font-weight:600;
  }
  .auth-panel .auth-submit:hover{ background:var(--navy-deep); }
  .auth-panel .switch{ margin-top:10px; font-size:0.75rem; text-align:center; color:var(--muted); }
  .auth-panel .switch button{ background:none; border:none; color:var(--gold-text); text-decoration:underline; cursor:pointer; font-size:inherit; padding:0; }
  .auth-panel .err{ margin-top:10px; font-size:0.75rem; color:#a33; display:none; }
  .auth-panel .err.show{ display:block; }
  .auth-panel .logout-btn{ margin-top:6px; width:100%; background:var(--paper-soft); color:var(--navy); border:1px solid var(--line); padding:9px; border-radius:3px; cursor:pointer; font-family:'IBM Plex Mono', monospace; font-size:0.76rem; }
  .auth-note{ font-size:0.68rem; color:var(--muted); margin-top:12px; line-height:1.4; }

  /* ---------- user profile & submissions ---------- */
  .auth-panel.wide{
    max-width:620px;
    padding:30px 28px 24px;
    max-height:88vh;
    overflow-y:auto;
  }
  .profile-header{
    display:flex;
    align-items:center;
    gap:14px;
    padding-bottom:16px;
    border-bottom:1px solid var(--line);
    margin-bottom:18px;
  }
  .profile-avatar{
    width:46px;
    height:46px;
    border-radius:50%;
    background:var(--navy);
    color:var(--gold);
    display:flex;
    align-items:center;
    justify-content:center;
    font-family:'Fraunces', serif;
    font-size:1.35rem;
    font-weight:700;
    flex-shrink:0;
    border:2px solid var(--gold);
  }
  .profile-info{ flex:1; min-width:0; }
  .profile-username{
    font-family:'Fraunces', serif;
    font-size:1.3rem;
    font-weight:700;
    color:var(--navy);
    line-height:1.2;
    margin:0;
    word-break:break-word;
  }
  .profile-meta-row{
    display:flex;
    align-items:center;
    gap:8px;
    margin-top:4px;
    flex-wrap:wrap;
  }
  .profile-email{
    font-family:'IBM Plex Mono', monospace;
    font-size:0.72rem;
    color:var(--muted);
  }
  .verified-badge{
    font-family:'IBM Plex Mono', monospace;
    font-size:0.64rem;
    background:#eaf5ea;
    color:#1e6e28;
    border:1px solid rgba(30,110,40,0.25);
    padding:2px 7px;
    border-radius:12px;
    letter-spacing:0.04em;
    font-weight:600;
  }
  .profile-tabs{
    display:flex;
    gap:6px;
    border-bottom:1px solid var(--line);
    margin-bottom:18px;
    padding-bottom:0;
  }
  .profile-tab-btn{
    background:none;
    border:none;
    border-bottom:2px solid transparent;
    padding:8px 12px;
    font-family:'IBM Plex Mono', monospace;
    font-size:0.74rem;
    color:var(--navy-muted);
    cursor:pointer;
    letter-spacing:0.03em;
    transition:all 0.15s ease;
    margin-bottom:-1px;
  }
  .profile-tab-btn:hover{ color:var(--navy); }
  .profile-tab-btn.active{
    color:var(--navy);
    border-bottom-color:var(--gold-deep);
    font-weight:600;
  }
  .stats-grid{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:10px;
    margin-bottom:20px;
  }
  .stat-card{
    background:var(--paper-soft);
    border:1px solid var(--line);
    border-radius:var(--radius);
    padding:12px 10px;
    text-align:center;
  }
  .stat-val{
    font-family:'Fraunces', serif;
    font-size:1.5rem;
    font-weight:700;
    color:var(--navy);
    line-height:1.1;
  }
  .stat-lbl{
    font-family:'IBM Plex Mono', monospace;
    font-size:0.64rem;
    color:var(--muted);
    text-transform:uppercase;
    letter-spacing:0.06em;
    margin-top:4px;
  }
  .profile-section-title{
    font-family:'Fraunces', serif;
    font-size:0.95rem;
    color:var(--navy);
    margin:0 0 10px;
    display:flex;
    justify-content:space-between;
    align-items:center;
  }
  .profile-badges-list{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    margin-bottom:20px;
  }
  .submissions-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:14px;
    flex-wrap:wrap;
    gap:10px;
  }
  .submissions-head span{
    font-family:'Fraunces', serif;
    color:var(--color-text-heading);
  }
  .propose-btn{
    background:var(--gold);
    color:var(--navy-deep);
    border:none;
    padding:7px 13px;
    border-radius:var(--radius);
    font-family:'IBM Plex Mono', monospace;
    font-size:0.72rem;
    font-weight:600;
    cursor:pointer;
    transition:background 0.15s ease;
  }
  .propose-btn:hover{ background:var(--gold-deep); color:#fff; }
  .submission-item{
    background:var(--paper-soft);
    border:1px solid var(--line);
    border-radius:var(--radius);
    padding:14px 16px;
    margin-bottom:12px;
    box-shadow:0 4px 10px rgba(36,31,99,0.03);
  }
  .sub-item-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    margin-bottom:6px;
    flex-wrap:wrap;
  }
  .status-badge{
    font-family:'IBM Plex Mono', monospace;
    font-size:0.64rem;
    letter-spacing:0.04em;
    padding:2px 8px;
    border-radius:12px;
    font-weight:600;
    text-transform:uppercase;
    background:var(--color-bg-surface-interactive);
    color:var(--color-text-secondary);
    border:1px solid var(--color-border-default);
    display:inline-flex;
    align-items:center;
  }
  .status-badge.pending{
    background:var(--color-status-warning-bg);
    color:var(--color-status-warning-text);
    border:1px solid rgba(201,148,0,0.35);
  }
  .status-badge.accepted,
  .status-badge.approved{
    background:var(--color-status-success-bg);
    color:var(--color-status-success-text);
    border:1px solid rgba(30,110,40,0.25);
  }
  .status-badge.declined{
    background:var(--color-status-danger-bg);
    color:var(--color-status-danger-text);
    border:1px solid rgba(170,51,51,0.2);
  }
  .sub-item-title{
    font-family:'Fraunces', serif;
    font-size:1rem;
    color:var(--navy);
    margin:4px 0 6px;
    line-height:1.3;
  }
  .sub-item-angle{
    font-size:0.86rem;
    color:#4a4560;
    margin-bottom:8px;
    line-height:1.45;
  }
  .sub-item-refs{
    display:flex;
    flex-wrap:wrap;
    gap:5px;
    margin-bottom:8px;
  }
  .ref-tag{
    font-family:'IBM Plex Mono', monospace;
    font-size:0.66rem;
    background:#ffffff;
    border:1px solid var(--line);
    padding:2px 6px;
    border-radius:3px;
    color:var(--navy);
  }
  .sub-item-date{
    font-family:'IBM Plex Mono', monospace;
    font-size:0.66rem;
    color:var(--muted);
  }
  .review-note-box{
    margin-top:10px;
    background:#fffdf5;
    border-left:3px solid var(--gold-deep);
    padding:8px 12px;
    font-size:0.82rem;
    color:#4a4560;
    border-radius:0 3px 3px 0;
  }
  .review-note-box strong{
    font-family:'IBM Plex Mono', monospace;
    font-size:0.66rem;
    text-transform:uppercase;
    color:var(--navy);
    display:block;
    margin-bottom:2px;
  }
  .subs-empty{
    text-align:center;
    padding:26px 14px;
    border:1px dashed var(--line);
    border-radius:var(--radius);
    color:var(--muted);
    font-style:italic;
    font-size:0.88rem;
  }
  .topic-form-desc{
    font-size:0.84rem;
    color:var(--muted);
    margin-bottom:14px;
    line-height:1.45;
  }
  .form-group{
    margin-bottom:12px;
  }
  .form-group label{
    display:block;
    font-family:'IBM Plex Mono', monospace;
    font-size:0.66rem;
    color:var(--muted);
    letter-spacing:0.04em;
    text-transform:uppercase;
    margin-bottom:4px;
  }
  .form-group input, .form-group select, .form-group textarea{
    width:100%;
    padding:8px 10px;
    border:1px solid var(--line);
    border-radius:3px;
    font-family:'Source Serif 4', serif;
    font-size:0.9rem;
    background:var(--paper-soft);
    color:var(--text);
    box-sizing:border-box;
  }
  .form-group select{
    font-family:'IBM Plex Mono', monospace;
    font-size:0.78rem;
    padding:8px 8px;
  }
  .form-group textarea{
    min-height:85px;
    resize:vertical;
    font-size:0.88rem;
  }
  .refs-container{
    display:flex;
    flex-direction:column;
    gap:6px;
    margin-top:4px;
  }
  .ref-input-row{
    display:flex;
    gap:6px;
    align-items:center;
  }
  .ref-input-row input{
    flex:1;
    margin-top:0;
  }
  .remove-ref-btn{
    background:none;
    border:1px solid var(--line);
    color:var(--muted);
    width:32px;
    height:34px;
    border-radius:3px;
    cursor:pointer;
    font-size:0.9rem;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0;
  }
  .remove-ref-btn:hover{ color:#a33; border-color:#a33; }
  .add-ref-btn{
    background:none;
    border:1px dashed var(--line);
    color:var(--navy-muted);
    padding:5px 10px;
    border-radius:3px;
    cursor:pointer;
    font-family:'IBM Plex Mono', monospace;
    font-size:0.7rem;
    margin-top:4px;
    width:fit-content;
  }
  .add-ref-btn:hover{ color:var(--navy); border-color:var(--navy-muted); }
  .form-actions{
    display:flex;
    gap:10px;
    align-items:center;
    margin-top:16px;
  }
  .success-msg{
    margin-top:10px;
    padding:9px 12px;
    background:#eaf5ea;
    color:#1e6e28;
    border:1px solid rgba(30,110,40,0.25);
    border-radius:3px;
    font-size:0.8rem;
    display:none;
  }
  .success-msg.show{ display:block; }
  @media (max-width: 600px){
    .stats-grid{ grid-template-columns:1fr; gap:8px; }
    .profile-tabs{ flex-wrap:wrap; }
    .auth-panel.wide{ padding:24px 16px; }
  }

  /* ---------- admin review queue ---------- */
  .admin-panel{
    max-width:760px;
    width:100%;
    background:var(--paper);
    border-radius:var(--radius);
    padding:30px 28px 26px;
    position:relative;
    box-shadow:0 24px 60px rgba(36,31,99,0.22);
    border:1px solid var(--line);
    max-height:88vh;
    overflow-y:auto;
  }
  .admin-header{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    padding-bottom:16px;
    border-bottom:1px solid var(--line);
    margin-bottom:18px;
    gap:16px;
  }
  .admin-header h3{
    font-family:'Fraunces', serif;
    font-size:1.35rem;
    color:var(--navy);
    margin:0 0 4px;
    line-height:1.2;
  }
  .admin-header p{
    font-size:0.84rem;
    color:var(--muted);
    margin:0;
    line-height:1.4;
  }
  .admin-workspace-tabs{
    display:flex;
    gap:6px;
    border-bottom:1px solid var(--line);
    margin-bottom:18px;
    padding-bottom:0;
    flex-wrap:wrap;
  }
  .admin-workspace-tab-btn{
    background:none;
    border:none;
    border-bottom:2px solid transparent;
    padding:8px 14px;
    font-family:'IBM Plex Mono', monospace;
    font-size:0.75rem;
    color:var(--navy-muted);
    cursor:pointer;
    letter-spacing:0.03em;
    transition:all 0.15s ease;
    margin-bottom:-1px;
  }
  .admin-workspace-tab-btn:hover{ color:var(--navy); }
  .admin-workspace-tab-btn.active{
    color:var(--navy);
    border-bottom-color:var(--gold-deep);
    font-weight:600;
  }
  .admin-metrics-grid{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:12px;
    margin-bottom:24px;
  }
  .admin-metric-card{
    background:var(--paper-soft);
    border:1px solid var(--line);
    border-radius:var(--radius);
    padding:16px 14px;
    text-align:center;
  }
  .admin-metric-card .num{
    font-family:'Fraunces', serif;
    font-size:1.6rem;
    font-weight:700;
    color:var(--navy);
    line-height:1.1;
  }
  .admin-metric-card.pending .num{ color:var(--gold-text); }
  .admin-metric-card.approved .num{ color:#1e6e28; }
  .admin-metric-card.declined .num{ color:#a33; }
  .admin-metric-card .lbl{
    font-family:'IBM Plex Mono', monospace;
    font-size:0.64rem;
    color:var(--muted);
    text-transform:uppercase;
    letter-spacing:0.06em;
    margin-top:4px;
  }
  .admin-quick-actions{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));
    gap:12px;
    margin-bottom:20px;
  }
  .admin-action-card{
    background:var(--paper);
    border:1px solid var(--line);
    border-radius:var(--radius);
    padding:16px;
    cursor:pointer;
    transition:all 0.15s ease;
    text-align:left;
  }
  .admin-action-card:hover{
    border-color:var(--gold-deep);
    box-shadow:0 4px 14px rgba(36,31,99,0.06);
  }
  .admin-action-card h4{
    font-family:'Fraunces', serif;
    font-size:0.95rem;
    color:var(--navy);
    margin:0 0 6px;
  }
  .admin-action-card p{
    font-size:0.82rem;
    color:var(--muted);
    margin:0;
    line-height:1.4;
  }
  .admin-topic-card{
    background:var(--paper-soft);
    border:1px solid var(--line);
    border-radius:var(--radius);
    padding:16px 18px;
    margin-bottom:12px;
    box-shadow:0 4px 10px rgba(36,31,99,0.03);
  }
  .admin-topic-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
    margin-bottom:6px;
    flex-wrap:wrap;
  }
  .admin-topic-status{
    font-family:'IBM Plex Mono', monospace;
    font-size:0.64rem;
    padding:2px 8px;
    border-radius:12px;
    letter-spacing:0.04em;
    font-weight:600;
  }
  .admin-topic-status.active{
    background:#eaf5ea;
    color:#1e6e28;
    border:1px solid rgba(30,110,40,0.25);
  }
  .admin-topic-status.inactive{
    background:#fdf0f0;
    color:#a33;
    border:1px solid rgba(170,51,51,0.2);
  }
  .admin-topic-title{
    font-family:'Fraunces', serif;
    font-size:1.05rem;
    color:var(--navy);
    margin:4px 0 6px;
    line-height:1.3;
  }
  .admin-topic-angle{
    font-size:0.86rem;
    color:#4a4560;
    margin-bottom:8px;
    line-height:1.45;
  }
  .admin-topic-actions{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-top:10px;
    border-top:1px dashed var(--line);
    padding-top:10px;
  }
  .admin-stats-row{
    display:flex;
    gap:10px;
    margin-bottom:18px;
    flex-wrap:wrap;
  }
  .admin-stat-pill{
    flex:1;
    min-width:110px;
    background:var(--paper-soft);
    border:1px solid var(--line);
    border-radius:var(--radius);
    padding:10px 12px;
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
  }
  .admin-stat-pill .num{
    font-family:'Fraunces', serif;
    font-size:1.4rem;
    font-weight:700;
    line-height:1.1;
    color:var(--navy);
  }
  .admin-stat-pill.pending .num{ color:var(--gold-text); }
  .admin-stat-pill.approved .num{ color:#1e6e28; }
  .admin-stat-pill.declined .num{ color:#a33; }
  .admin-stat-pill .lbl{
    font-family:'IBM Plex Mono', monospace;
    font-size:0.62rem;
    color:var(--muted);
    text-transform:uppercase;
    letter-spacing:0.06em;
    margin-top:2px;
  }
  .admin-controls{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
    margin-bottom:18px;
    flex-wrap:wrap;
    border-bottom:1px solid var(--line);
    padding-bottom:14px;
  }
  .admin-filter-group{
    display:flex;
    gap:6px;
    flex-wrap:wrap;
  }
  .admin-filter-btn{
    background:var(--paper-soft);
    border:1px solid var(--line);
    border-radius:20px;
    padding:5px 12px;
    font-family:'IBM Plex Mono', monospace;
    font-size:0.72rem;
    color:var(--navy-muted);
    cursor:pointer;
    transition:all 0.15s ease;
  }
  .admin-filter-btn:hover{ color:var(--navy); border-color:var(--navy-muted); }
  .admin-filter-btn.active{
    background:var(--navy);
    color:#ffffff;
    border-color:var(--navy);
    font-weight:600;
  }
  .admin-refresh-btn{
    background:none;
    border:1px solid var(--line);
    border-radius:3px;
    padding:5px 10px;
    font-family:'IBM Plex Mono', monospace;
    font-size:0.7rem;
    color:var(--navy-muted);
    cursor:pointer;
  }
  .admin-refresh-btn:hover{ color:var(--navy); border-color:var(--navy-muted); }
  .admin-sub-card{
    background:var(--paper-soft);
    border:1px solid var(--line);
    border-radius:var(--radius);
    padding:18px 20px;
    margin-bottom:14px;
    box-shadow:0 4px 12px rgba(36,31,99,0.03);
  }
  .admin-card-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
    margin-bottom:8px;
    flex-wrap:wrap;
  }
  .admin-submitter-info{
    font-family:'IBM Plex Mono', monospace;
    font-size:0.68rem;
    color:var(--muted);
  }
  .admin-submitter-info strong{
    color:var(--navy);
  }
  .admin-card-title{
    font-family:'Fraunces', serif;
    font-size:1.15rem;
    font-weight:700;
    color:var(--navy);
    margin:4px 0 8px;
    line-height:1.28;
  }
  .admin-card-angle{
    font-size:0.88rem;
    color:#4a4560;
    margin-bottom:10px;
    line-height:1.45;
  }
  .admin-actions-block{
    margin-top:14px;
    border-top:1px dashed var(--line);
    padding-top:12px;
    display:flex;
    flex-direction:column;
    gap:8px;
  }
  .admin-note-input{
    width:100%;
    padding:8px 10px;
    border:1px solid var(--line);
    border-radius:3px;
    font-family:'Source Serif 4', serif;
    font-size:0.86rem;
    background:#ffffff;
    color:var(--text);
    box-sizing:border-box;
  }
  .admin-buttons-row{
    display:flex;
    gap:8px;
    align-items:center;
    flex-wrap:wrap;
  }
  .admin-action-btn{
    padding:7px 16px;
    border-radius:var(--radius);
    font-family:'IBM Plex Mono', monospace;
    font-size:0.74rem;
    font-weight:600;
    cursor:pointer;
    border:none;
    transition:background 0.15s ease, opacity 0.15s ease;
  }
  .admin-action-btn:disabled{
    opacity:0.6;
    cursor:default;
  }
  .admin-action-btn.approve{
    background:#1e6e28;
    color:#ffffff;
  }
  .admin-action-btn.approve:hover:not(:disabled){
    background:#16551e;
  }
  .admin-action-btn.decline{
    background:#fdf0f0;
    color:#a33;
    border:1px solid rgba(170,51,51,0.25);
  }
  .admin-action-btn.decline:hover:not(:disabled){
    background:#fbe4e4;
  }
  .admin-reviewed-info{
    margin-top:10px;
    background:#ffffff;
    border:1px solid var(--line);
    border-radius:3px;
    padding:8px 12px;
    font-size:0.78rem;
    color:var(--muted);
    font-family:'IBM Plex Mono', monospace;
  }
  .admin-reviewed-info strong{
    color:var(--navy);
  }
  .admin-alert{
    padding:10px 14px;
    border-radius:3px;
    font-size:0.82rem;
    margin-bottom:14px;
    display:none;
  }
  .admin-alert.success{
    background:#eaf5ea;
    color:#1e6e28;
    border:1px solid rgba(30,110,40,0.25);
    display:block;
  }
  .admin-alert.error{
    background:#fdf0f0;
    color:#a33;
    border:1px solid rgba(170,51,51,0.25);
    display:block;
  }
  /* Admin Moderation Dashboard (Chunk 5B) */
  .status-badge.reviewing{
    background:#eef2fa;
    color:#2b4c7e;
    border:1px solid rgba(43,76,126,0.25);
  }
  .status-badge.resolved{
    background:#eaf5ea;
    color:#1e6e28;
    border:1px solid rgba(30,110,40,0.25);
  }
  .status-badge.dismissed{
    background:#f4f3f0;
    color:var(--muted);
    border:1px solid rgba(0,0,0,0.12);
  }
  .admin-evidence-box{
    background:#ffffff;
    border:1px solid var(--line);
    border-radius:var(--radius);
    padding:12px 14px;
    margin:10px 0;
    font-size:0.84rem;
  }
  .admin-evidence-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:8px;
    padding-bottom:6px;
    border-bottom:1px dashed var(--line);
    font-family:'IBM Plex Mono', monospace;
    font-size:0.68rem;
    color:var(--muted);
    flex-wrap:wrap;
    gap:6px;
  }
  .admin-evidence-type{
    text-transform:uppercase;
    font-weight:600;
    letter-spacing:0.04em;
    color:var(--gold-text);
  }
  .admin-evidence-content{
    font-family:'Source Serif 4', serif;
    color:var(--text);
    line-height:1.5;
    word-break:break-word;
    max-height:220px;
    overflow-y:auto;
  }
  .admin-evidence-meta{
    margin-top:8px;
    padding-top:6px;
    border-top:1px dashed var(--line);
    font-family:'IBM Plex Mono', monospace;
    font-size:0.66rem;
    color:var(--muted);
  }
  .admin-hidden-badge{
    display:inline-flex;
    align-items:center;
    gap:4px;
    padding:2px 8px;
    border-radius:12px;
    font-family:'IBM Plex Mono', monospace;
    font-size:0.64rem;
    font-weight:600;
    letter-spacing:0.03em;
  }
  .admin-hidden-badge.hidden{
    background:#fdf0f0;
    color:#a33;
    border:1px solid rgba(170,51,51,0.25);
  }
  .admin-hidden-badge.visible{
    background:#eaf5ea;
    color:#1e6e28;
    border:1px solid rgba(30,110,40,0.25);
  }
  .admin-deleted-badge{
    display:inline-block;
    padding:1px 6px;
    border-radius:10px;
    background:#f4f3f0;
    color:var(--muted);
    border:1px solid rgba(0,0,0,0.1);
    font-family:'IBM Plex Mono', monospace;
    font-size:0.62rem;
    font-weight:600;
    margin-left:4px;
  }
  .admin-mod-checkbox-row{
    display:flex;
    align-items:center;
    gap:8px;
    font-family:'IBM Plex Mono', monospace;
    font-size:0.74rem;
    color:var(--navy);
    cursor:pointer;
    user-select:none;
    margin-top:4px;
  }
  .admin-mod-checkbox-row input[type="checkbox"]{
    cursor:pointer;
    width:15px;
    height:15px;
    accent-color:var(--navy);
  }
  .admin-action-btn.reviewing{
    background:#2b4c7e;
    color:#ffffff;
  }
  .admin-action-btn.reviewing:hover:not(:disabled){
    background:#1f375c;
  }
  .admin-action-btn.resolve{
    background:#1e6e28;
    color:#ffffff;
  }
  .admin-action-btn.resolve:hover:not(:disabled){
    background:#16551e;
  }

  /* Admin Enforcement & Suspended Accounts Workspace (Chunk 6B) */
  .admin-subnav-group{
    display:flex;
    gap:8px;
    margin-bottom:18px;
    border-bottom:1px solid var(--line);
    padding-bottom:10px;
    flex-wrap:wrap;
  }
  .admin-subnav-btn{
    background:var(--paper-soft);
    border:1px solid var(--line);
    border-radius:20px;
    padding:6px 14px;
    font-family:'IBM Plex Mono', monospace;
    font-size:0.75rem;
    color:var(--navy-muted);
    cursor:pointer;
    transition:all 0.15s ease;
  }
  .admin-subnav-btn:hover{
    color:var(--navy);
    border-color:var(--navy-muted);
  }
  .admin-subnav-btn.active{
    background:var(--navy);
    color:#ffffff;
    border-color:var(--navy);
    font-weight:600;
  }

  /* Enforcement Review Status Badges */
  .status-badge.upcoming{
    background:#eef2fa;
    color:#2b4c7e;
    border:1px solid rgba(43,76,126,0.25);
  }
  .status-badge.due{
    background:#fff8e7;
    color:#996500;
    border:1px solid rgba(153,101,0,0.3);
  }
  .status-badge.overdue{
    background:#fdf0f0;
    color:#a33;
    border:1px solid rgba(170,51,51,0.25);
  }
  .status-badge.suspended{
    background:#fdf0f0;
    color:#a33;
    border:1px solid rgba(170,51,51,0.25);
  }
  .status-badge.terminated{
    background:#f4f3f0;
    color:var(--muted);
    border:1px solid rgba(0,0,0,0.15);
  }

  /* Enforcement Chronology Timeline */
  .admin-chronology-box{
    background:#ffffff;
    border:1px solid var(--line);
    border-radius:var(--radius);
    padding:12px 14px;
    margin:12px 0;
  }
  .admin-chronology-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:8px;
    padding-bottom:6px;
    border-bottom:1px dashed var(--line);
    font-family:'IBM Plex Mono', monospace;
    font-size:0.68rem;
    color:var(--muted);
  }
  .admin-chronology-title{
    text-transform:uppercase;
    font-weight:600;
    letter-spacing:0.04em;
    color:var(--gold-text);
  }
  .admin-chronology-list{
    display:flex;
    flex-direction:column;
    gap:8px;
  }
  .admin-chronology-item{
    display:flex;
    flex-direction:column;
    gap:3px;
    padding:8px 10px;
    background:var(--paper-soft);
    border:1px solid var(--line);
    border-radius:3px;
    font-size:0.8rem;
  }
  .admin-chronology-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
    gap:6px;
  }
  .admin-chronology-action{
    font-family:'IBM Plex Mono', monospace;
    font-weight:600;
    font-size:0.72rem;
    text-transform:uppercase;
  }
  .admin-chronology-action.warning{ color:#996500; }
  .admin-chronology-action.suspension{ color:#a33; }
  .admin-chronology-action.suspension_continued{ color:#a33; }
  .admin-chronology-action.restoration{ color:#1e6e28; }
  .admin-chronology-action.termination{ color:#555; }
  .admin-chronology-action.content_hidden{ color:#2b4c7e; }
  .admin-chronology-date{
    font-family:'IBM Plex Mono', monospace;
    font-size:0.65rem;
    color:var(--muted);
  }
  .admin-chronology-reason{
    font-family:'Source Serif 4', serif;
    color:var(--text);
    line-height:1.4;
  }
  .admin-chronology-meta{
    font-family:'IBM Plex Mono', monospace;
    font-size:0.64rem;
    color:var(--muted);
  }

  /* Enforcement Action Controls */
  .admin-enforcement-panel{
    margin-top:14px;
    border-top:1px dashed var(--line);
    padding-top:12px;
    display:flex;
    flex-direction:column;
    gap:10px;
  }
  .admin-enforce-form-row{
    display:flex;
    gap:8px;
    align-items:center;
    flex-wrap:wrap;
  }
  .admin-select-input{
    padding:7px 10px;
    border:1px solid var(--line);
    border-radius:3px;
    font-family:'IBM Plex Mono', monospace;
    font-size:0.76rem;
    background:#ffffff;
    color:var(--navy);
    cursor:pointer;
  }
  .admin-action-btn.restore{
    background:#1e6e28;
    color:#ffffff;
  }
  .admin-action-btn.restore:hover:not(:disabled){
    background:#16551e;
  }
  .admin-action-btn.continue-susp{
    background:#996500;
    color:#ffffff;
  }
  .admin-action-btn.continue-susp:hover:not(:disabled){
    background:#7a5100;
  }
  .admin-action-btn.terminate{
    background:#444444;
    color:#ffffff;
  }
  .admin-action-btn.terminate:hover:not(:disabled){
    background:#222222;
  }
  .admin-mod-enforcement-drawer{
    margin-top:10px;
    background:#ffffff;
    border:1px solid var(--line);
    border-radius:3px;
    padding:10px 12px;
    display:none;
  }
  .admin-enforce-toggle-btn{
    background:none;
    border:1px dashed var(--gold-deep);
    border-radius:3px;
    padding:5px 10px;
    font-family:'IBM Plex Mono', monospace;
    font-size:0.7rem;
    color:var(--navy);
    cursor:pointer;
    font-weight:600;
    transition:all 0.15s ease;
  }
  .admin-enforce-toggle-btn:hover{
    background:var(--paper-soft);
    border-color:var(--navy);
  }
  @media (max-width: 600px){
    .admin-stats-row{ grid-template-columns:1fr 1fr; }
    .admin-panel{ padding:24px 16px; }
  }


  /* ---------- hero ---------- */
  .hero{ padding:56px 0 40px; border-bottom:1px solid var(--line); }
  .hero-grid{ display:grid; grid-template-columns:1.15fr 0.85fr; gap:56px; align-items:start; }
  .hero h1{ font-size:2.6rem; line-height:1.08; max-width:16ch; color:var(--navy); }
  .hero h1 em{ font-style:italic; color:var(--gold-text); }
  .hero p.lede{ margin-top:16px; color:var(--muted); max-width:46ch; font-size:1.05rem; }


  .gate-note{ margin-top:20px; font-family:'IBM Plex Mono', monospace; font-size:0.78rem; color:var(--gold-text); display:none; }
  .gate-note.show{ display:block; }


  .generate-btn{
    margin-top:26px;
    background:var(--gold); color:var(--navy-deep); border:none;
    font-family:'Fraunces', serif; font-weight:700; font-size:1.05rem;
    padding:15px 30px; border-radius:var(--radius); cursor:pointer;
    transition:transform .15s ease, background .15s ease;
  }
  .generate-btn:hover:not(:disabled){ background:var(--gold-deep); color:#fff; transform:translateY(-1px); }
  .generate-btn:disabled{ background:var(--paper-soft2); color:var(--muted); cursor:default; border:1px solid var(--line); }
  .generate-hint{ font-size:0.75rem; color:var(--muted); margin-top:10px; font-family:'IBM Plex Mono', monospace; }


  .topic-card{
    margin-top:28px; background:var(--paper-soft); color:var(--text);
    border-radius:var(--radius); padding:24px 26px; position:relative;
    border:1px solid var(--line); box-shadow:0 14px 30px rgba(36,31,99,0.08);
    display:none;
  }
  .topic-card.show{ display:block; }
  .topic-card .cat{
    font-family:'IBM Plex Mono', monospace; font-size:0.68rem; letter-spacing:0.12em;
    text-transform:uppercase; color:var(--gold-text); font-weight:600;
  }
  .topic-card h2{ color:var(--navy); font-size:1.5rem; margin-top:8px; line-height:1.2; }
  .topic-card .angle{ margin-top:10px; font-size:0.95rem; color:var(--color-text-secondary); }
  .topic-card .refs{ margin-top:14px; font-family:'IBM Plex Mono', monospace; font-size:0.75rem; color:var(--navy); }
  .topic-card .refs span{ display:inline-block; margin-right:12px; }


  .primary-texts{ margin-top:16px; border-top:1px dashed var(--line); padding-top:14px; }
  .primary-texts .pt-label{ font-family:'IBM Plex Mono', monospace; font-size:0.66rem; letter-spacing:0.08em; text-transform:uppercase; color:var(--muted); }
  .pt-item{ margin-top:10px; font-size:0.92rem; }
  .pt-item .pt-ref{ font-family:'IBM Plex Mono', monospace; font-size:0.72rem; color:var(--navy); font-weight:600; }
  .pt-item .pt-body{ margin-top:2px; color:var(--color-text-primary); font-style:italic; }
  .pt-item .pt-loading{ color:var(--muted); font-family:'IBM Plex Mono', monospace; font-size:0.78rem; }


  /* candle */
  .candle-zone{ display:flex; flex-direction:column; align-items:center; padding-top:8px; }
  .candle-stage{ height:260px; display:flex; align-items:flex-end; justify-content:center; position:relative; width:120px; }
  .candle-body{
    width:52px; height:220px; background:linear-gradient(180deg, #fff3d0, #fbd766 92%);
    border:1px solid var(--line); border-radius:4px 4px 2px 2px; position:relative;
    box-shadow:inset -6px 0 10px rgba(36,31,99,0.08), inset 6px 0 10px rgba(255,255,255,0.6);
    transition:height 1s linear;
  }
  .candle-body:after{
    content:""; position:absolute; left:-9px; right:-9px; bottom:-6px; height:14px;
    background:radial-gradient(ellipse at center, #f3dfa0 0%, transparent 70%);
  }
  .wick{
    position:absolute; top:-8px; left:50%; transform:translateX(-50%);
    width:2px; height:10px; background:var(--navy); border-radius:1px;
    z-index:2;
  }
  .flame{
    position:absolute; bottom:6px; left:50%; transform:translateX(-50%);
    width:16px; height:26px;
    background:radial-gradient(circle at 50% 30%, #fff6d8 0%, var(--gold) 40%, #d9720f 80%, transparent 85%);
    border-radius:50% 50% 50% 50% / 60% 60% 40% 40%;
    filter:drop-shadow(0 2px 5px rgba(36,31,99,0.25));
    animation:flicker 2.6s ease-in-out infinite;
    transform-origin:bottom center;
    pointer-events:none;
    z-index:3;
    transition:opacity 0.4s ease;
  }
  .flame.out{ animation:none; opacity:0; }
  @keyframes flicker{
    0%,100%{ transform:translateX(-50%) rotate(0deg) scaleY(1); opacity:1;}
    20%{ transform:translateX(-52%) rotate(-3deg) scaleY(1.05); }
    40%{ transform:translateX(-48%) rotate(2deg) scaleY(0.96); opacity:0.92;}
    60%{ transform:translateX(-51%) rotate(-2deg) scaleY(1.03);}
    80%{ transform:translateX(-49%) rotate(3deg) scaleY(0.98);}
  }
  .candle-plate{ width:80px; height:8px; background:var(--navy); border-radius:50%; margin-top:-2px; box-shadow:0 3px 8px rgba(36,31,99,0.25); z-index:1; }
  .timer-digits{ margin-top:18px; font-family:'IBM Plex Mono', monospace; font-size:1.9rem; letter-spacing:0.05em; color:var(--navy); }
  .timer-label{ font-family:'IBM Plex Mono', monospace; font-size:0.68rem; color:var(--muted); letter-spacing:0.1em; text-transform:uppercase; margin-top:2px; }
  @media (prefers-reduced-motion: reduce){ 
    .flame{ animation:none; } 
    .candle-body{ transition:none; }
  }


  /* ---------- writing panel ---------- */
  .write-panel{ display:none; margin-top:20px; background:var(--paper-soft); border:1px solid var(--line); border-radius:var(--radius); padding:22px 24px; }
  .write-panel.show{ display:block; }
  .write-panel h3{ font-size:1.1rem; color:var(--navy); }
  .write-panel p.sub{ color:var(--muted); font-size:0.88rem; margin-top:6px;}
  textarea{
    width:100%; margin-top:14px; min-height:220px; resize:vertical;
    background:var(--color-bg-surface); color:var(--text); border:1px solid var(--line); border-radius:var(--radius);
    padding:16px; font-family:'Source Serif 4', serif; font-size:1rem; line-height:1.6;
  }
  .write-foot{ display:flex; align-items:center; justify-content:space-between; margin-top:12px; flex-wrap:wrap; gap:10px; }
  .wordcount{ font-family:'IBM Plex Mono', monospace; font-size:0.78rem; color:var(--muted); }
  .submit-btn{
    background:var(--navy); color:#fff; border:none; font-weight:600;
    font-family:'IBM Plex Mono', monospace; font-size:0.82rem; letter-spacing:0.03em;
    padding:11px 20px; border-radius:var(--radius); cursor:pointer;
  }
  .submit-btn:hover:not(:disabled){ background:var(--navy-deep); }
  .submit-btn:disabled{ background:var(--line); color:var(--muted); cursor:default; }


  /* ---------- verse lookup tool & passage reader ---------- */
  .lookup-box{
    background:var(--paper-soft);
    color:var(--text);
    border-radius:var(--radius);
    padding:18px 20px;
    margin-top:0;
    border:1px solid var(--line);
    width:100%;
    box-sizing:border-box;
  }
  .lookup-box h3{
    color:var(--navy);
    font-size:0.95rem;
    margin:0 0 10px;
  }
  .lookup-row{
    display:flex;
    gap:8px;
    margin-top:8px;
    flex-wrap:wrap;
  }
  .lookup-row input{
    flex:1;
    min-width:120px;
    background:var(--color-bg-surface);
    border:1px solid var(--line);
    border-radius:3px;
    padding:8px 10px;
    font-family:'Source Serif 4', serif;
    font-size:0.88rem;
    color:var(--text);
    box-sizing:border-box;
  }
  .lookup-row select{
    background:var(--color-bg-surface);
    border:1px solid var(--line);
    border-radius:3px;
    padding:8px 8px;
    font-family:'IBM Plex Mono', monospace;
    font-size:0.72rem;
    color:var(--text);
    box-sizing:border-box;
    max-width:100%;
  }
  .lookup-row button{
    background:var(--navy);
    color:#fff;
    border:none;
    border-radius:3px;
    padding:8px 14px;
    cursor:pointer;
    font-family:'IBM Plex Mono', monospace;
    font-size:0.75rem;
    font-weight:600;
  }
  .lookup-row button:hover{ background:var(--navy-deep); }
  .lookup-result-wrap{
    margin-top:12px;
  }
  .lookup-result{
    font-size:0.9rem;
    color:var(--color-text-primary);
    line-height:1.6;
    max-height:220px;
    overflow-y:auto;
    padding:12px 14px;
    background:var(--color-bg-surface);
    border:1px solid var(--line);
    border-radius:var(--radius);
    box-shadow:inset 0 2px 6px rgba(36,31,99,0.03);
    scrollbar-width:thin;
    scrollbar-color:var(--navy-muted) var(--paper-soft);
    display:none;
    overflow-wrap:break-word;
    word-break:break-word;
  }
  .lookup-result.has-content{
    display:block;
  }
  .lookup-result.expanded{
    max-height:55vh;
    box-shadow:0 8px 24px rgba(36,31,99,0.08);
  }
  .lookup-result .lr-ref{
    display:block;
    font-style:normal;
    font-family:'IBM Plex Mono', monospace;
    font-size:0.68rem;
    color:var(--navy);
    margin-bottom:6px;
    text-transform:uppercase;
    letter-spacing:0.04em;
    font-weight:600;
  }
  .lookup-result .lr-text{
    font-style:italic;
    color:var(--color-text-primary);
  }
  .expand-passage-btn{
    margin-top:8px;
    background:var(--paper-soft2);
    border:1px solid var(--line);
    border-radius:var(--radius);
    color:var(--navy);
    font-family:'IBM Plex Mono', monospace;
    font-size:0.72rem;
    padding:6px 12px;
    cursor:pointer;
    display:inline-flex;
    align-items:center;
    gap:6px;
    transition:all 0.15s ease;
  }
  .expand-passage-btn:hover{
    background:var(--paper-soft);
    color:var(--navy-deep);
    border-color:var(--navy-muted);
  }


  /* ---------- main layout ---------- */
  main{ padding:48px 0 80px; }
  .layout{ display:grid; grid-template-columns:1fr 300px; gap:48px; align-items:start; }


  .section-head{ display:flex; align-items:baseline; justify-content:space-between; margin-bottom:18px; flex-wrap:wrap; gap:10px; }
  .section-head h2{ font-size:1.5rem; }
  .controls{ display:flex; gap:10px; font-family:'IBM Plex Mono', monospace; font-size:0.75rem; }
  .controls select{
    background:var(--paper-soft); color:var(--text); border:1px solid var(--line);
    padding:6px 8px; border-radius:var(--radius); font-family:inherit; font-size:inherit;
  }


  .wall-empty{ border:1px dashed var(--line); border-radius:var(--radius); padding:40px 24px; text-align:center; color:var(--muted); font-style:italic; }

  /* ---------- wall pagination ---------- */
  .wall-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
  }
  .pagination-pages {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
  }
  .pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    min-width: 38px;
    padding: 6px 12px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.78rem;
    color: var(--navy);
    background: var(--paper-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    box-sizing: border-box;
    user-select: none;
  }
  .pagination-btn:hover:not(:disabled) {
    background: var(--paper-soft2);
    border-color: var(--gold-deep);
    color: var(--navy-deep);
  }
  .pagination-btn.active {
    background: var(--navy);
    color: var(--gold);
    border-color: var(--navy);
    font-weight: 600;
  }
  .pagination-btn:disabled,
  .pagination-btn[aria-disabled="true"] {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: var(--line-soft);
  }
  .pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    color: var(--muted);
    user-select: none;
  }
  .pagination-text-short {
    display: none;
  }
  .pagination-text-full {
    display: inline;
  }

  @media (max-width: 600px) {
    .wall-pagination {
      gap: 4px;
      margin-top: 18px;
      margin-bottom: 24px;
    }
    .pagination-pages {
      gap: 4px;
    }
    .pagination-btn {
      min-height: 36px;
      min-width: 34px;
      padding: 6px 8px;
      font-size: 0.74rem;
    }
    .pagination-text-full {
      display: none;
    }
    .pagination-text-short {
      display: inline;
    }
  }

  html[data-theme="dark"] .pagination-btn {
    background: var(--color-bg-surface-interactive);
    border-color: var(--color-border-default);
    color: var(--color-text-primary);
  }
  html[data-theme="dark"] .pagination-btn:hover:not(:disabled) {
    background: var(--color-bg-surface-elevated);
    border-color: var(--gold);
    color: var(--color-text-heading);
  }
  html[data-theme="dark"] .pagination-btn.active {
    background: var(--color-action-primary);
    color: var(--color-action-primary-text);
    border-color: var(--color-focus-ring);
  }
  html[data-theme="dark"] .pagination-btn:disabled,
  html[data-theme="dark"] .pagination-btn[aria-disabled="true"] {
    opacity: 0.35;
    border-color: var(--color-border-subtle);
    color: var(--color-text-secondary);
  }
  html[data-theme="dark"] .pagination-ellipsis {
    color: var(--color-text-secondary);
  }


  .card{
    background:var(--paper-soft); color:var(--text); border-radius:var(--radius); border:1px solid var(--line);
    padding:22px 24px; margin-bottom:18px; box-shadow:0 8px 20px rgba(36,31,99,0.06);
    overflow-wrap:break-word; word-break:break-word; max-width:100%;
  }
  .card-top{ display:flex; justify-content:space-between; gap:12px; align-items:flex-start; }
  .card .cat{ font-family:'IBM Plex Mono', monospace; font-size:0.65rem; letter-spacing:0.1em; text-transform:uppercase; color:var(--gold-text); font-weight:600; }
  .card h3{ color:var(--navy); font-size:1.15rem; margin-top:6px; }
  .card .meta{ font-family:'IBM Plex Mono', monospace; font-size:0.72rem; color:var(--muted); margin-top:6px; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
  .wall-avatar-btn{
    background:none; border:none; padding:0; margin:0; cursor:pointer;
    display:inline-flex; align-items:center; justify-content:center;
    vertical-align:middle; border-radius:50%; outline:none; text-decoration:none; flex-shrink:0;
  }
  .wall-avatar-btn:focus-visible{ outline:2px solid var(--gold-deep); outline-offset:2px; }
  .wall-avatar-circle{
    width:32px; height:32px; border-radius:50%; border:1px solid var(--gold);
    overflow:hidden; display:inline-flex; align-items:center; justify-content:center;
    background:var(--navy); flex-shrink:0; box-sizing:border-box;
  }
  .wall-avatar-img{ width:100%; height:100%; object-fit:cover; display:block; }
  .wall-avatar-fallback{
    font-family:'Fraunces', serif; font-size:0.92rem; font-weight:700; color:var(--gold);
    display:flex; align-items:center; justify-content:center; width:100%; height:100%; line-height:1;
  }

  .vote-block{
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    flex-shrink:0; background:var(--color-bg-surface); border:1px solid var(--line);
    border-radius:var(--radius); padding:4px 2px; min-width:44px; box-sizing:border-box; gap:2px;
  }
  .vote-btn{
    background:none; border:1px solid transparent; color:var(--navy-muted);
    border-radius:var(--radius); width:34px; height:24px; cursor:pointer;
    font-family:'IBM Plex Mono', monospace; display:flex; align-items:center;
    justify-content:center; padding:0; transition:all 0.15s ease;
  }
  .vote-btn svg{ width:13px; height:13px; fill:currentColor; display:block; }
  .vote-btn:hover:not(:disabled){ background:var(--paper-soft2); color:var(--navy); border-color:var(--line); }
  .vote-btn.upvoted{ background:var(--gold); color:var(--navy-deep); border-color:var(--gold-deep); }
  .vote-btn.downvoted{ background:var(--navy-muted); color:#ffffff; border-color:var(--navy); }
  .vote-btn:disabled{ cursor:not-allowed; opacity:0.4; }
  .vote-score{
    font-family:'IBM Plex Mono', monospace; font-size:0.86rem; font-weight:600;
    color:var(--navy); line-height:1.2; padding:1px 0; user-select:none;
  }
  .vote-score.positive{ color:var(--navy); }
  .vote-score.negative{ color:var(--color-status-danger-text); }


  .card-actions{ margin-top:14px; display:flex; gap:14px; }
  .link-btn{ background:none; border:none; cursor:pointer; font-family:'IBM Plex Mono', monospace; font-size:0.75rem; color:var(--navy); padding:0; text-decoration:underline;}
  .link-btn:hover, .link-btn:focus-visible{ color:var(--gold-deep); }
  .toggle-read{
    background:none; border:none; cursor:pointer; font-family:'IBM Plex Mono', monospace;
    font-size:0.75rem; color:var(--navy); padding:0; margin-top:8px; text-decoration:underline;
    display:inline-block;
  }
  .toggle-read:hover, .toggle-read:focus-visible{ color:var(--gold-deep); }


  .challenge-box{ display:none; margin-top:14px; border-top:1px dashed var(--line); padding-top:14px; }
  .challenge-box.show{ display:block; }
  .challenge-box textarea{ min-height:80px; font-size:0.9rem; padding:10px; }
  .challenge-box .submit-btn{ margin-top:8px; background:var(--navy); color:#fff; }


  .gloss{ margin-top:12px; padding-left:16px; border-left:2px solid var(--gold-deep); }
  .gloss .g-item{ margin-top:10px; font-size:0.88rem; }
  .gloss .g-item .g-meta{ font-family:'IBM Plex Mono', monospace; font-size:0.66rem; color:var(--navy); letter-spacing:0.04em; text-transform:uppercase; }
  .gloss .g-item p{ margin:3px 0 0; color:var(--color-text-secondary); }


  /* ---------- marginalia sidebar ---------- */
  .marginalia{ position:sticky; top:24px; }
  .m-block{ border-left:1px dashed var(--line); padding-left:18px; margin-bottom:32px; }
  .m-block h3{ font-size:0.95rem; color:var(--navy); }
  .m-block .desc{ font-size:0.82rem; color:var(--muted); margin-top:6px; }
  .streak-row{ display:flex; align-items:center; gap:8px; margin-top:12px; font-family:'IBM Plex Mono', monospace; }
  .streak-num{ font-family:'Fraunces', serif; font-size:2rem; color:var(--navy); }
  .streak-sub{ font-size:0.7rem; color:var(--muted); }
  .badges{ display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; justify-content:center; }
  .badge{ font-family:'IBM Plex Mono', monospace; font-size:0.72rem; border:1px solid var(--gold-deep); color:var(--gold-text); padding:5px 10px; border-radius:20px; letter-spacing:0.02em; display:inline-flex; align-items:center; gap:8px; height:32px; box-sizing:border-box; }
  .badge.locked{ border-color:var(--line); color:var(--muted); opacity:0.7; }
  .badge-icon-wrap{ width:24px; height:24px; display:inline-flex; align-items:center; justify-content:center; vertical-align:middle; flex-shrink:0; }
  .badge-icon-wrap picture{ display: contents; }
  .badge-icon-wrap img, .badge-icon-wrap video{ width:100%; height:100%; object-fit:contain; }
  .badge.locked .badge-icon-wrap img{ filter:grayscale(100%) opacity(0.5); }
  /* Achievement Toast Notification */
  .achievement-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
  }
  .achievement-toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--paper-warm, #ffffff);
    border: 1px solid var(--gold-deep);
    border-left: 4px solid var(--gold-deep);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    padding: 10px 16px 10px 12px;
    border-radius: 6px;
    min-width: 260px;
    max-width: 360px;
    animation: toastSlideIn 0.35s ease-out;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  .achievement-toast.dismissing {
    opacity: 0;
    transform: translateY(10px);
  }
  .achievement-toast-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .achievement-toast-icon picture { display: contents; }
  .achievement-toast-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .achievement-toast-body {
    flex: 1;
  }
  .achievement-toast-kicker {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    color: var(--gold-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
  }
  .achievement-toast-title {
    font-family: 'Fraunces', serif;
    font-size: 0.95rem;
    color: var(--navy);
    margin-top: 1px;
  }
  .achievement-toast-close {
    background: transparent;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    padding: 0;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border-radius: var(--radius);
    touch-action: manipulation;
  }
  .achievement-toast-close:hover,
  .achievement-toast-close:focus-visible {
    color: var(--color-text-heading);
    outline: none;
  }
  @keyframes toastSlideIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @media (prefers-reduced-motion: reduce) {
    .achievement-toast { animation: none; }
  }

  /* Achievement Progress Card UI */
  .achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    margin-top: 12px;
    margin-bottom: 24px;
  }
  .achievement-card {
    background: var(--paper-warm, #ffffff);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }
  .achievement-card.earned {
    border-color: rgba(201, 148, 0, 0.4);
    background: rgba(255, 248, 230, 0.35);
  }
  .achievement-card.locked {
    opacity: 0.85;
  }
  .achievement-card-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: var(--paper-warm, #ffffff);
    padding: 2px;
  }
  .achievement-card-icon .badge-icon-wrap {
    width: 40px;
    height: 40px;
  }
  .achievement-card-icon img,
  .achievement-card-icon video {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .achievement-card.locked .achievement-card-icon img {
    filter: grayscale(100%) opacity(0.5);
  }
  .achievement-card-info {
    flex: 1;
    min-width: 0;
  }
  .achievement-card-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 6px;
  }
  .achievement-card-title {
    font-family: 'Fraunces', serif;
    font-size: 0.95rem;
    color: var(--navy);
  }
  .achievement-card-badge-status {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 12px;
    white-space: nowrap;
  }
  .achievement-card-badge-status.earned {
    background: #eaf5ea;
    color: #1e6e28;
    border: 1px solid rgba(30, 110, 40, 0.25);
  }
  .achievement-card-badge-status.locked {
    background: var(--paper, #f4eee2);
    color: var(--muted);
    border: 1px solid var(--line);
  }
  .achievement-card-desc {
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.35;
    margin-top: 3px;
  }
  .achievement-progress-wrap {
    margin-top: 8px;
  }
  .achievement-progress-bar-bg {
    height: 5px;
    background: var(--line-soft, #ebe4d8);
    border-radius: 3px;
    overflow: hidden;
  }
  .achievement-progress-bar-fill {
    height: 100%;
    background: var(--gold-deep);
    border-radius: 3px;
    transition: width 0.3s ease;
  }
  .achievement-progress-meta {
    display: flex;
    justify-content: space-between;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    color: var(--muted);
    margin-top: 4px;
  }

  /* Premium Achievement Reveal Overlay */
  .reveal-panel {
    display: block;
    position: relative;
    width: 100%;
    max-width: 400px;
    background: var(--paper-soft, #fbf7ec);
    color: var(--text);
    border-radius: var(--radius);
    padding: 32px 28px 28px;
    box-shadow: 0 20px 48px rgba(15, 12, 45, 0.35);
    border: 1px solid var(--gold-deep);
    box-sizing: border-box;
    margin: auto;
    text-align: center;
    animation: revealSlideUp 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  }
  @keyframes revealSlideUp {
    from { opacity: 0; transform: translateY(32px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .reveal-badge-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .reveal-badge-icon img, .reveal-badge-icon video {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .reveal-kicker {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    color: var(--gold-text);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-bottom: 6px;
  }
  .reveal-title {
    font-family: 'Fraunces', serif;
    font-size: 1.45rem;
    color: var(--navy);
    margin: 0 0 10px;
  }
  .reveal-desc {
    font-family: 'Source Serif 4', serif;
    font-size: 0.92rem;
    color: var(--text);
    line-height: 1.5;
    margin: 0 0 24px;
  }
  .reveal-submit {
    width: 100%;
    background: var(--navy);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 3px;
    cursor: pointer;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background 0.15s ease;
  }
  .reveal-submit:hover {
    background: var(--navy-deep);
  }
  .lb-list{ margin-top:12px; }
  .lb-row{ display:flex; justify-content:space-between; font-size:0.85rem; padding:6px 0; border-bottom:1px solid var(--line); }
  .lb-row .rank{ color:var(--gold-text); font-family:'IBM Plex Mono', monospace; margin-right:8px; }
  .lb-row .pts{ font-family:'IBM Plex Mono', monospace; color:var(--muted); }


  details.how{ font-size:0.82rem; color:var(--muted); }
  details.how summary{ cursor:pointer; color:var(--navy); font-family:'IBM Plex Mono', monospace; font-size:0.75rem; }
  details.how ul{ padding-left:18px; margin:10px 0 0; }
  details.how li{ margin-bottom:6px; }


  /* ---------- site footer ---------- */
  .site-footer{
    border-top:1px solid var(--line);
    background:var(--paper-soft);
    color:var(--text);
    padding:52px 0 28px;
    margin-top:64px;
  }
  .footer-grid{
    display:grid;
    grid-template-columns:1.8fr 1fr 1.3fr 1fr;
    gap:44px;
    align-items:start;
    padding-bottom:36px;
    border-bottom:1px solid var(--line-soft);
  }
  .footer-brand-col{
    max-width:34ch;
  }
  .footer-brand-link{
    display:inline-block;
    text-decoration:none;
  }
  .footer-logo{
    height:30px;
    width:auto;
    display:block;
    margin-bottom:14px;
  }
  .footer-desc{
    font-size:0.86rem;
    color:var(--muted);
    line-height:1.55;
    margin:0;
  }
  .footer-heading{
    font-family:'Fraunces', serif;
    font-size:0.95rem;
    font-weight:700;
    color:var(--navy);
    margin:0 0 14px;
    letter-spacing:0.02em;
  }
  .footer-links{
    list-style:none;
    padding:0;
    margin:0;
    display:flex;
    flex-direction:column;
    gap:10px;
  }
  .footer-links a{
    font-family:'IBM Plex Mono', monospace;
    font-size:0.75rem;
    color:var(--navy-muted);
    text-decoration:none;
    letter-spacing:0.02em;
    transition:color 0.15s ease;
  }
  .footer-links a:hover,
  .footer-links a:focus-visible{
    color:var(--gold-deep);
  }
  .footer-x-link,
  .footer-mail-link{
    display:inline-flex;
    align-items:center;
    gap:7px;
    font-weight:500;
  }
  .footer-x-icon{
    width:13px;
    height:13px;
    display:inline-block;
    vertical-align:middle;
  }
  .footer-contact-icon{
    font-size:0.85rem;
    line-height:1;
    display:inline-block;
    vertical-align:middle;
  }
  .footer-legal-placeholder{
    font-family:'IBM Plex Mono', monospace;
    font-size:0.72rem;
    color:var(--muted);
    opacity:0.75;
    cursor:default;
  }
  .footer-bottom{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding-top:20px;
    font-family:'IBM Plex Mono', monospace;
    font-size:0.7rem;
    color:var(--muted);
    flex-wrap:wrap;
    gap:10px;
  }
  .footer-verse-tag{
    letter-spacing:0.08em;
    text-transform:uppercase;
    color:var(--gold-text);
  }

  /* ---------- about page styles ---------- */
  .about-main{
    padding:32px 0 64px;
  }
  .about-container{
    max-width:760px;
    margin:0 auto;
  }
  .about-header{
    margin-bottom:36px;
    padding-bottom:24px;
    border-bottom:1px solid var(--line);
  }
  .about-header h1{
    font-size:2.5rem;
    margin:8px 0 12px;
  }
  .about-section{
    margin-bottom:40px;
  }
  .about-section h2{
    font-size:1.45rem;
    color:var(--navy);
    margin:0 0 14px;
  }
  .about-section p{
    font-size:1.02rem;
    line-height:1.7;
    color:var(--color-text-primary);
    margin:0 0 16px;
  }
  .about-features-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
    margin-top:20px;
  }
  .about-feature-card{
    background:var(--paper-soft);
    border:1px solid var(--line);
    border-radius:var(--radius);
    padding:20px 22px;
    box-shadow:0 4px 12px rgba(36,31,99,0.03);
  }
  .about-feature-card h3{
    font-size:1.05rem;
    color:var(--navy);
    margin:0 0 8px;
  }
  .about-feature-card p{
    font-size:0.88rem;
    line-height:1.55;
    color:var(--muted);
    margin:0 0 14px;
  }
  .about-feature-link{
    font-family:'IBM Plex Mono', monospace;
    font-size:0.72rem;
    font-weight:600;
    color:var(--navy);
    text-decoration:none;
    display:inline-flex;
    align-items:center;
    gap:4px;
    border-bottom:1px solid transparent;
    transition:color 0.15s ease, border-color 0.15s ease;
  }
  .about-feature-link:hover{
    color:var(--gold-deep);
    border-color:var(--gold-deep);
  }
  .scripture-quote{
    border-left:3px solid var(--gold-deep);
    padding:14px 20px;
    margin:24px 0;
    background:var(--paper-soft);
    border-radius:0 var(--radius) var(--radius) 0;
    font-family:'Source Serif 4', Georgia, serif;
    font-size:1.02rem;
    font-style:italic;
    color:var(--navy);
    line-height:1.6;
  }
  .scripture-quote cite{
    display:block;
    font-style:normal;
    font-family:'IBM Plex Mono', monospace;
    font-size:0.72rem;
    color:var(--gold-text);
    margin-top:8px;
    letter-spacing:0.04em;
    text-transform:uppercase;
  }
  .about-cta-box{
    margin-top:48px;
    background:var(--navy);
    color:#ffffff;
    border-radius:var(--radius);
    padding:32px 28px;
    text-align:center;
    box-shadow:0 12px 30px rgba(36,31,99,0.18);
  }
  .about-cta-box h3{
    color:#ffffff;
    font-size:1.45rem;
    margin:0 0 8px;
  }
  .about-cta-box p{
    color:var(--paper-soft);
    font-size:0.95rem;
    margin:0 0 20px;
    opacity:0.9;
  }
  .about-cta-box .generate-btn{
    margin-top:0;
    background:var(--gold);
    color:var(--navy-deep);
  }
  .about-cta-box .generate-btn:hover{
    background:var(--gold-deep);
    color:#ffffff;
  }


  /* ---------- media queries & responsive rules ---------- */
  @media (min-width: 901px){
    .hero-grid{
      display:grid;
      grid-template-columns:1.15fr 0.85fr;
      grid-template-areas:
        "intro   candle"
        "action  lookup";
      gap:36px 56px;
      align-items:start;
    }
    .hero-intro{ grid-area:intro; }
    .candle-zone{ grid-area:candle; }
    .hero-action{ grid-area:action; }
    .lookup-box{ grid-area:lookup; margin-top:0; width:100%; }
  }

  @media (max-width: 900px){
    header.site{
      padding:12px 0 10px;
    }
    header.site .header-wrap{
      display:flex;
      flex-wrap:wrap;
      align-items:center;
      justify-content:space-between;
      gap:10px 12px;
    }
    .brand{
      order:1;
    }
    .brand img{
      height:26px;
    }
    .brand .tag{
      display:none;
    }
    .auth-area{
      order:2;
      margin-left:0;
      display:inline-flex;
      align-items:center;
      gap:6px;
    }
    .theme-toggle-btn{
      min-height:44px;
      min-width:44px;
      padding:8px 8px;
      font-size:0.72rem;
    }
    .auth-chip{
      padding:6px 9px;
      font-size:0.72rem;
      gap:6px;
      min-height:34px;
    }
    .header-nav-container{
      order:3;
      width:100%;
      display:flex;
      justify-content:center;
      align-items:center;
      margin-left:0;
      margin-top:2px;
    }
    nav.site{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      gap:4px 6px;
      flex-wrap:wrap;
      padding:4px 6px;
      background:var(--paper-soft);
      border:1px solid var(--line-soft);
      border-radius:20px;
      box-shadow:inset 0 1px 2px rgba(36,31,99,0.03);
    }
    nav.site a{
      margin:0;
      font-family:'IBM Plex Mono', monospace;
      font-size:0.74rem;
      letter-spacing:0.03em;
      color:var(--navy-muted);
      text-decoration:none;
      padding:5px 12px;
      border-radius:14px;
      border:1px solid transparent;
      transition:all 0.15s ease;
      white-space:nowrap;
    }
    nav.site a:hover, nav.site a:focus-visible{
      background:var(--color-bg-surface);
      border-color:var(--line);
      color:var(--navy-deep);
      box-shadow:0 1px 2px rgba(36,31,99,0.04);
    }
    .hero-grid{
      display:flex;
      flex-direction:column;
      gap:22px;
    }
    .candle-zone{
      margin:8px auto 4px;
      width:100%;
    }
    .candle-stage{
      transform:scale(0.85);
      transform-origin:center bottom;
      margin:0 auto;
    }
    .hero-action{
      width:100%;
    }
    .lookup-box{
      margin-top:0;
      width:100%;
    }
    .layout{
      display:flex;
      flex-direction:column;
      gap:36px;
    }
    .marginalia{
      position:static;
      width:100%;
    }
    .hero h1{
      font-size:2.1rem;
      max-width:none;
    }
    .footer-grid{
      grid-template-columns:1fr 1fr;
      gap:32px;
    }
  }

  @media (max-width: 600px){
    .wrap{
      padding:0 16px;
    }
    header.site{
      padding:10px 0 8px;
    }
    .brand img{
      height:28px;
    }
    .auth-chip{
      padding:5px 10px;
      font-size:0.7rem;
      gap:6px;
      min-height:34px;
    }
    nav.site{
      padding:3px 5px;
      gap:3px 4px;
    }
    nav.site a, .nav-link{
      font-size:0.72rem;
      padding:8px 10px;
      border-radius:12px;
      min-height:44px;
      min-width:44px;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      box-sizing:border-box;
    }
    .hero{
      padding:32px 0 28px;
    }
    .hero h1{
      font-size:1.8rem;
      line-height:1.15;
    }
    .lede{
      font-size:0.95rem;
    }
    .generate-btn{
      width:100%;
      padding:14px 20px;
      font-size:1rem;
    }
    .lookup-row{
      display:flex;
      flex-direction:column;
      gap:8px;
      width:100%;
    }
    .lookup-row input,
    .lookup-row select,
    .lookup-row button{
      width:100%;
      min-width:0;
      max-width:100%;
      min-height:44px;
      box-sizing:border-box;
    }
    .lookup-row button{
      padding:10px 14px;
      font-size:0.8rem;
      font-weight:600;
    }
    .topic-card{
      padding:18px 16px;
    }
    .topic-card h2{
      font-size:1.25rem;
    }
    .topic-card .refs{
      display:flex;
      flex-wrap:wrap;
      gap:6px;
    }
    .topic-card .refs span{
      margin-right:0;
    }
    .write-panel{
      padding:18px 16px;
    }
    .write-foot{
      flex-direction:column;
      align-items:stretch;
      gap:10px;
    }
    .write-foot .submit-btn{
      width:100%;
    }
    .section-head{
      display:flex;
      flex-direction:column;
      align-items:flex-start;
      gap:12px;
    }
    .section-head .controls{
      width:100%;
      display:flex;
      gap:8px;
    }
    .section-head .controls select, #sortSelect, #filterSelect{
      flex:1;
      min-width:0;
      min-height:44px;
      padding:8px 10px;
      box-sizing:border-box;
    }
    .vote-block{
      min-width:44px;
      padding:2px;
    }
    .vote-btn{
      width:44px;
      height:44px;
      min-width:44px;
      min-height:44px;
    }
    .vote-btn svg{
      width:14px;
      height:14px;
    }
    .wall-avatar-btn{
      min-width:44px;
      min-height:44px;
      padding:0;
      display:inline-flex;
      align-items:center;
      justify-content:center;
    }
    .admin-filter-btn, .filter-btn{
      min-height:44px;
      padding:8px 14px;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      box-sizing:border-box;
    }
    .card{
      padding:16px 16px;
    }
    .stats-grid{
      grid-template-columns:1fr;
      gap:8px;
    }
    .profile-tabs{
      flex-wrap:wrap;
    }
    .auth-panel.wide, .admin-panel{
      padding:22px 14px;
    }
    .admin-stats-row{
      display:grid;
      grid-template-columns:1fr 1fr;
      gap:8px;
    }
    .site-footer{
      padding:36px 0 22px;
      margin-top:44px;
    }
    .footer-grid{
      grid-template-columns:1fr;
      gap:26px;
      padding-bottom:24px;
    }
    .footer-brand-col{
      max-width:none;
    }
    .footer-bottom{
      flex-direction:column;
      align-items:flex-start;
      gap:6px;
    }
    .about-header h1{
      font-size:2rem;
    }
    .about-features-grid{
      grid-template-columns:1fr;
      gap:14px;
    }
    .about-cta-box{
      padding:24px 18px;
    }
  }

  @media (max-width: 360px){
    nav.site{
      gap:3px 4px;
      padding:2px 4px;
    }
    nav.site a, .nav-link{
      font-size:0.68rem;
      padding:6px 8px;
      min-height:44px;
      min-width:44px;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      box-sizing:border-box;
    }
  }

  /* --- My BeRean Dashboard Styling Additions --- */
  .dashboard-panel {
    display:none; position:relative; width:100%; max-width:960px;
    background:var(--paper); color:var(--text); border-radius:var(--radius); padding:32px;
    box-shadow:0 20px 40px rgba(36,31,99,0.25); border:1px solid var(--line); box-sizing:border-box;
    margin:auto; max-height:90vh; overflow-y:auto;
  }
  .dashboard-panel.show { display:block; }
  .dashboard-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; border-bottom:1px solid var(--line); padding-bottom:20px; }
  .dashboard-user-summary { display:flex; align-items:center; gap:16px; }
  .dashboard-avatar-container { width:64px; height:64px; border-radius:50%; border:2px solid var(--gold); overflow:hidden; position:relative; display:flex; align-items:center; justify-content:center; flex-shrink:0; background:var(--navy); }
  .dashboard-avatar-container.large { width:88px; height:88px; border-width:3px; }
  .dashboard-avatar-img { width:100%; height:100%; object-fit:cover; display:none; }
  .dashboard-avatar-img.show { display:block; }
  .dashboard-avatar-fallback { font-family:'Fraunces', serif; font-size:1.8rem; font-weight:700; color:var(--gold); display:flex; align-items:center; justify-content:center; width:100%; height:100%; }
  .dashboard-avatar-fallback.large { font-size:2.5rem; }
  .profile-avatar-circle { width:54px; height:54px; border-radius:50%; border:2px solid var(--gold); overflow:hidden; position:relative; display:flex; align-items:center; justify-content:center; flex-shrink:0; background:var(--navy); box-sizing:border-box; }
  .profile-avatar-img { width:100%; height:100%; object-fit:cover; display:none; }
  .profile-avatar-fallback { font-family:'Fraunces', serif; font-size:1.4rem; font-weight:700; color:var(--gold); display:flex; align-items:center; justify-content:center; width:100%; height:100%; text-transform:uppercase; line-height:1; }
  .dashboard-tabs { display:flex; gap:8px; border-bottom:1px solid var(--line); margin-bottom:24px; padding-bottom:1px; flex-wrap:wrap; }
  .dashboard-grid-two-col { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
  @media (max-width:768px) {
    .dashboard-grid-two-col { grid-template-columns:1fr; }
  }
  .dashboard-col-card { background:var(--paper-soft); border:1px solid var(--line); border-radius:var(--radius); padding:20px; box-sizing:border-box; }
  .dashboard-col-card h4 { font-family:'Fraunces', serif; font-size:1.1rem; color:var(--color-text-heading); margin:0 0 14px; border-bottom:1px solid var(--line-soft); padding-bottom:8px; }
  .dashboard-journey-links { display:flex; flex-direction:column; gap:10px; }
  .dashboard-journey-action { display:block; width:100%; text-align:left; background:var(--paper); border:1px solid var(--line); padding:10px 14px; font-family:'IBM Plex Mono', monospace; font-size:0.75rem; text-decoration:none; color:var(--color-text-heading); font-weight:600; cursor:pointer; border-radius:var(--radius); transition:all 0.15s ease; box-sizing:border-box; }
  .dashboard-journey-action:hover { background:var(--paper-soft2); border-color:var(--gold-deep); color:var(--gold-text); }
  .avatar-setup-row { display:flex; align-items:center; gap:20px; }
  .avatar-action-buttons { display:flex; gap:8px; margin-top:8px; flex-wrap:wrap; }
  .dashboard-section-title { font-family:'IBM Plex Mono', monospace; font-size:0.75rem; color:var(--muted); text-transform:uppercase; letter-spacing:0.04em; margin-bottom:12px; display:flex; justify-content:space-between; align-items:center; border-bottom:1px solid var(--line-soft); padding-bottom:4px; margin-top:16px; }
  
  .achievements-summary-header {
    background: var(--color-bg-surface-subtle);
    border: 1px solid var(--color-border-default);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
  }
  .achievements-stat-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }
  .achievement-pill {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    background: var(--color-bg-surface-interactive);
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border-default);
    padding: 4px 10px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }
  .achievement-pill strong {
    font-weight: 700;
  }
  #dashAchUnlockedCount {
    color: var(--color-accent-text);
  }
  #dashAchPercentVal {
    color: var(--color-text-heading);
  }

  .provider-card {
    background: var(--color-bg-surface-interactive);
    border: 1px solid var(--color-border-default);
    border-radius: var(--radius);
    padding: 12px 14px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
  }
  .provider-card-title {
    font-family: 'Fraunces', serif;
    font-size: 0.95rem;
    color: var(--color-text-heading);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .provider-card-desc {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    color: var(--color-text-secondary);
    margin-top: 2px;
  }

  #profileUsernameTitle {
    color: var(--color-text-heading);
  }

  .header-avatar-container {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--gold);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    flex-shrink: 0;
    margin-right: 8px;
  }
  .header-avatar-fallback {
    font-family: 'Fraunces', serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
  }
  .auth-chip {
    display: flex;
    align-items: center;
  }
  #dashboardClose {
    position:absolute; top:12px; right:16px; width:40px; height:40px;
    display:flex; align-items:center; justify-content:center;
    background:none; border:none; cursor:pointer; font-size:1.8rem;
    color:var(--muted); transition:color 0.15s ease;
  }
  #dashboardClose:hover { color:var(--color-text-heading); }

  /* --- Danger Zone & Account Deletion Styling --- */
  .danger-zone-card {
    background: var(--color-status-danger-bg);
    border: 1px solid rgba(176, 0, 32, 0.28);
    border-radius: var(--radius);
    padding: 20px;
    box-sizing: border-box;
  }
  .danger-zone-card h4 {
    font-family: 'Fraunces', serif;
    font-size: 1.1rem;
    color: var(--color-status-danger-text);
    margin: 0 0 10px;
    border-bottom: 1px solid var(--color-border-subtle);
    padding-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .danger-zone-desc {
    font-size: 0.82rem;
    color: var(--color-text-primary);
    line-height: 1.55;
    margin: 0 0 14px;
  }
  .danger-zone-points {
    margin: 0 0 16px;
    padding-left: 18px;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
  }
  .danger-zone-points li {
    margin-bottom: 6px;
  }
  .danger-btn-outline {
    background: transparent;
    border: 1px solid var(--color-status-danger-text);
    color: var(--color-status-danger-text);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.76rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.15s ease;
  }
  .danger-btn-outline:hover:not(:disabled) {
    background: var(--color-status-danger-text);
    color: var(--color-text-inverse);
  }
  .danger-btn-solid {
    background: var(--palette-red-600);
    border: 1px solid var(--palette-red-700);
    color: #ffffff;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.76rem;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.15s ease;
  }
  .danger-btn-solid:hover:not(:disabled) {
    background: var(--palette-red-700);
  }
  .danger-btn-solid:disabled,
  .danger-btn-outline:disabled {
    opacity: 0.45;
    cursor: not-allowed;
  }
  .danger-modal-panel {
    max-width: 540px;
    width: 100%;
    padding: 28px;
    text-align: left;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    position: relative;
    box-sizing: border-box;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 24px 48px rgba(36, 31, 99, 0.28);
  }
  .danger-modal-callout {
    background: var(--color-status-danger-bg);
    border: 1px solid rgba(176, 0, 32, 0.2);
    border-left: 4px solid var(--color-status-danger-text);
    border-radius: var(--radius);
    padding: 12px 14px;
    margin: 14px 0 18px;
    font-size: 0.82rem;
    color: var(--color-text-primary);
    line-height: 1.5;
  }
  .danger-confirm-input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.88rem;
    color: var(--text);
    background: var(--paper-soft2);
    box-sizing: border-box;
    margin-top: 6px;
  }
  .danger-confirm-input:focus {
    outline: 2px solid var(--color-status-danger-text);
    outline-offset: 1px;
    border-color: var(--color-status-danger-text);
  }

  /* --- Help BeRean Grow Feedback --- */
  .feedback-char-count {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    color: var(--muted);
    text-align: right;
    margin-top: 4px;
  }
  .feedback-char-count.near-limit {
    color: var(--accent-warm, #c67b1e);
  }
  .feedback-char-count.at-limit {
    color: var(--color-status-danger-text, #b00020);
    font-weight: 600;
  }
  .feedback-success-box {
    text-align: center;
    padding: 24px 16px;
  }
  .feedback-success-box .feedback-success-icon {
    font-size: 2.4rem;
    margin-bottom: 12px;
  }
  .feedback-success-box h4 {
    font-family: 'Fraunces', serif;
    font-size: 1.15rem;
    color: var(--color-text-heading);
    margin: 0 0 8px;
  }
  .feedback-success-box p {
    font-size: 0.82rem;
    color: var(--muted);
    margin: 0 0 16px;
    line-height: 1.45;
  }
