    body { background: var(--bg, #070b16); color: var(--text, #e8eefc); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; margin: 0; }
    .admin-shell { max-width: 1180px; margin: 0 auto; padding: 1.25rem; }
    .admin-top { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
    .admin-top h1 { font-family: Georgia, "Times New Roman", serif; font-size: 1.4rem; margin: 0; }
    .tabs { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.75rem 0 1rem; }
    .tabs button { border: 1px solid rgba(120,180,255,0.22); background: rgba(12,18,36,0.85); color: inherit; border-radius: 999px; padding: 0.4rem 0.85rem; cursor: pointer; font: inherit; font-size: 0.88rem; }
    .tabs button.on { border-color: var(--cyan, #5ce1e6); box-shadow: 0 0 14px rgba(92,225,230,0.22); }
    .panel { display: none; }
    .panel.on { display: block; }
    .grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.65rem; }
    .stat { padding: 0.85rem 1rem; border-radius: 12px; border: 1px solid rgba(120,180,255,0.16); background: rgba(10,16,32,0.72); }
    .stat strong { display: block; font-size: 1.3rem; margin-top: 0.2rem; }
    .muted { color: #9aa8c7; font-size: 0.82rem; }
    .glass { padding: 1rem 1.1rem; border-radius: 14px; border: 1px solid rgba(120,180,255,0.18); background: rgba(10,16,32,0.78); margin-bottom: 0.85rem; }
    input, select, textarea { width: 100%; box-sizing: border-box; margin: 0.25rem 0 0.55rem; padding: 0.5rem 0.65rem; border-radius: 8px; border: 1px solid rgba(120,180,255,0.25); background: #0b1020; color: inherit; font: inherit; }
    .row { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; }
    .btn { cursor: pointer; border-radius: 10px; border: 1px solid rgba(120,180,255,0.3); background: rgba(92,225,230,0.1); color: inherit; padding: 0.4rem 0.75rem; font: inherit; font-size: 0.85rem; }
    .btn.danger { border-color: rgba(255,120,120,0.4); background: rgba(255,80,80,0.12); }
    .btn.ghost { background: transparent; }
    #auth-gate { max-width: 420px; margin: 3.5rem auto; }
    /* DDFNL ledger rows */
    .ledger { display: flex; flex-direction: column; gap: 0.55rem; max-height: 62vh; overflow: auto; }
    .ledger-row {
      display: grid; grid-template-columns: 7.5rem 1fr auto; gap: 0.65rem;
      padding: 0.7rem 0.85rem; border-radius: 12px;
      border: 1px solid rgba(120,180,255,0.14); background: rgba(6,10,22,0.65);
      align-items: start;
    }
    .ledger-row.ack { opacity: 0.55; }
    .ledger-row .when { font-size: 0.72rem; color: #8b9bb8; }
    .ledger-row .kind {
      display: inline-block; font-size: 0.65rem; letter-spacing: 0.06em; text-transform: uppercase;
      padding: 0.15rem 0.45rem; border-radius: 6px; background: rgba(92,225,230,0.12); color: #5ce1e6;
      margin-bottom: 0.3rem;
    }
    .ledger-row .kind.warn { background: rgba(245,193,108,0.15); color: #f5c16c; }
    .ledger-row .kind.ddfnl { background: rgba(192,132,252,0.15); color: #c084fc; }
    .ledger-row .msg { font-size: 0.9rem; line-height: 1.35; }
    .ledger-row .hash { font-size: 0.68rem; color: #6b7a96; word-break: break-all; margin-top: 0.25rem; }
    .ledger-actions { display: flex; flex-direction: column; gap: 0.3rem; }
    .theme-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.65rem; }
    .theme-card {
      text-align: left; padding: 0.85rem; border-radius: 12px; border: 1px solid rgba(120,180,255,0.2);
      cursor: pointer; color: inherit; font: inherit; background: #0b1020;
    }
    .theme-card.on { border-color: #5ce1e6; box-shadow: 0 0 16px rgba(92,225,230,0.2); }
    .theme-swatch { height: 28px; border-radius: 8px; margin-bottom: 0.45rem; }
    .fn-card { padding: 0.75rem 0.9rem; border-radius: 10px; border: 1px solid rgba(120,180,255,0.14); margin-bottom: 0.45rem; }
    .fn-card strong { display: block; margin-bottom: 0.2rem; }
    .curr-subject { margin-bottom: 0.75rem; }
    .curr-subject summary { cursor: pointer; font-weight: 600; padding: 0.35rem 0; }
    .curr-node { display: flex; justify-content: space-between; gap: 0.5rem; align-items: center; padding: 0.35rem 0.25rem; border-bottom: 1px solid rgba(120,180,255,0.08); font-size: 0.88rem; }
    .filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.65rem; }
    .filters select { width: auto; min-width: 8rem; margin: 0; }
