  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  [hidden] { display: none !important; }
  body { background: #0d0f18; color: #d4d8e8; font-family: system-ui, -apple-system, sans-serif; min-height: 100vh; overflow-x: hidden; }
  a { color: inherit; }

  header {
    background: #12151f;
    border-bottom: 1px solid #1e2235;
    padding: 13px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 20;
  }
  .brand { display: flex; align-items: center; gap: 14px; }
  .brand h1 { font-size: 1.05rem; font-weight: 700; color: #fff; letter-spacing: .02em; }
  .live { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: #555; }
  .dot { width: 7px; height: 7px; border-radius: 50%; background: #26c281; animation: pulse 2s infinite; }
  @keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

  .auth-shell { display: flex; align-items: center; gap: 10px; min-height: 38px; }
  .auth-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border: 1px solid #2e3450;
    border-radius: 999px;
    background: #0f1220;
  }
  .auth-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1e2235;
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
  }
  .auth-meta { display: flex; flex-direction: column; min-width: 0; }
  .auth-name { font-size: .8rem; font-weight: 600; color: #fff; }
  .auth-plan { font-size: .69rem; color: #7d87af; text-transform: uppercase; letter-spacing: .08em; }
  .view-tabs { display: inline-flex; align-items: center; gap: 8px; }
  .view-tab {
    border: 1px solid #2e3450;
    background: #111522;
    color: #93a0c9;
    border-radius: 999px;
    padding: 7px 14px;
    cursor: pointer;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .03em;
  }
  .view-tab.active {
    background: #4d7fff;
    border-color: #4d7fff;
    color: #fff;
  }
  .logout-btn {
    background: none;
    border: 1px solid #2e3450;
    color: #9da5c7;
    border-radius: 999px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: .76rem;
  }
  .logout-btn:hover { border-color: #4d7fff; color: #fff; }
  .menu-btn {
    display: none;
    background: none;
    border: 1px solid #2e3450;
    color: #9da5c7;
    border-radius: 6px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
  }
  .menu-btn:hover { border-color: #4d7fff; color: #fff; }
  #sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 18;
    background: rgba(0,0,0,.45);
  }
  .billing-btn {
    display: inline-block;
    background: #1b2440;
    border: 1px solid #3956b8;
    color: #d9e4ff;
    border-radius: 999px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: .76rem;
    font-weight: 600;
  }
  .billing-btn:hover { background: #24305a; border-color: #4d7fff; color: #fff; }
  .billing-btn-crypto {
    background: #1d1828;
    border-color: #6a58b8;
  }
  .billing-btn-crypto:hover {
    background: #2b2140;
    border-color: #8b73ff;
    color: #fff;
  }

  .layout {
    display: grid;
    grid-template-columns: 270px 1fr;
    min-height: calc(100vh - 64px);
  }
  .sidebar {
    border-right: 1px solid #1e2235;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
    overflow-y: auto;
  }
  .sidebar-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid #1e2235;
    margin-bottom: 4px;
  }
  .sidebar-title {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #555;
    padding: 0 4px 8px;
  }
  .sidebar-section-header:hover .sidebar-title { color: #888; }
  .collapse-arrow { color: #444; font-size: .65rem; padding-right: 4px; transition: transform .2s; }
  .sidebar-search {
    width: 100%;
    background: #13151f;
    border: 1px solid #252838;
    border-radius: 5px;
    color: #a0a8c0;
    font-size: .74rem;
    padding: 5px 8px;
    outline: none;
  }
  .sidebar-search:focus { border-color: #3a4060; }
  #version-badge { margin-top: auto; padding-top: 16px; font-size: .65rem; color: #2e3248; }
  .notice {
    background: rgba(77,127,255,.09);
    border: 1px solid rgba(77,127,255,.25);
    color: #b8c8ff;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 18px;
    font-size: .83rem;
    line-height: 1.5;
  }
  .account-card, .ticker-chip {
    background: #12151f;
    border: 1px solid #1e2235;
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
  }
  .account-info { flex: 1; min-width: 0; }
  .item-actions { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
  .account-name { font-size: .85rem; font-weight: 600; color: #e0e4f8; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .platform-tags { display: flex; gap: 5px; flex-wrap: wrap; }
  .tag {
    font-size: .65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 99px;
    letter-spacing: .03em;
  }
  .tag-x { background: rgba(29,155,240,.15); color: #1d9bf0; }
  .tag-truth { background: rgba(232,25,44,.15); color: #e8192c; }
  .tag-bluesky { background: rgba(0,133,255,.15); color: #58b7ff; }
  .remove-btn {
    background: none;
    border: none;
    color: #444;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 2px 4px;
    border-radius: 4px;
    flex-shrink: 0;
  }
  .remove-btn:hover { color: #e8192c; }
  .edit-btn {
    background: none;
    border: 1px solid #2e3450;
    color: #8fb0ff;
    cursor: pointer;
    font-size: .72rem;
    line-height: 1;
    padding: 5px 8px;
    border-radius: 999px;
    flex-shrink: 0;
  }
  .edit-btn:hover { border-color: #4d7fff; color: #dbe6ff; }
  .add-btn {
    background: none;
    border: 1px dashed #2e3450;
    border-radius: 10px;
    color: #4d7fff;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    padding: 9px 12px;
    text-align: center;
  }
  .add-btn:hover { background: rgba(77,127,255,.06); border-color: #4d7fff; }
  .add-form, .auth-form {
    background: #12151f;
    border: 1px solid #2e3450;
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 9px;
  }
  .auth-form { display: flex; max-width: 460px; margin: 0 auto; }
  .form-heading {
    font-size: .8rem;
    font-weight: 700;
    color: #dbe6ff;
    margin-bottom: 2px;
  }
  .auth-helper-text {
    font-size: .68rem;
    color: #666;
    margin-top: 4px;
  }
  .auth-toggle-spacer { margin-top: 0; }
  .add-form label, .auth-form label { font-size: .7rem; color: #777; display: block; margin-bottom: 3px; }
  .add-form input, .auth-form input, .auth-form select {
    width: 100%;
    background: #0d0f18;
    border: 1px solid #2e3450;
    border-radius: 6px;
    color: #e0e4f8;
    font-size: .82rem;
    padding: 8px 10px;
    outline: none;
  }
  .form-note { font-size: .7rem; color: #555; }
  .auth-info {
    font-size: .76rem;
    color: #76d9ac;
    background: rgba(38,194,129,.10);
    border: 1px solid rgba(38,194,129,.24);
    border-radius: 8px;
    padding: 10px 12px;
  }
  .form-btns { display: flex; gap: 8px; margin-top: 2px; }
  .btn-save, .auth-submit {
    flex: 1;
    background: #4d7fff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: .82rem;
    font-weight: 600;
    padding: 8px 10px;
    cursor: pointer;
  }
  .auth-submit-secondary {
    background: #1d1828;
    border-color: #6a58b8;
    color: #ece7ff;
  }
  .auth-submit-secondary:hover { background: #2b2140; border-color: #8b73ff; }
  .btn-cancel, .auth-toggle {
    background: none;
    border: 1px solid #2e3450;
    border-radius: 6px;
    color: #888;
    font-size: .82rem;
    padding: 8px 12px;
    cursor: pointer;
  }
  .form-error { font-size: .75rem; color: #e8192c; display: none; }
  .sidebar-divider { border: none; border-top: 1px solid #1e2235; margin: 12px 0; }
  .ticker-sym { font-weight: 700; color: #e0e4f8; }
  .ticker-lbl { font-size: .72rem; color: #666; margin-top: 1px; }
  .always-included-note { font-size: .7rem; color: #555; padding: 2px 4px 6px; }
  .symbol-input { text-transform: uppercase; }

  .feed-col { padding: 24px; min-width: 0; }
  .feed-meta { font-size: .78rem; color: #555; margin-bottom: 16px; }
  .feed-filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1.6fr) repeat(3, minmax(130px, .8fr)) auto;
    gap: 10px;
    align-items: end;
    margin-bottom: 14px;
    padding: 14px;
    background: #12151f;
    border: 1px solid #1e2235;
    border-radius: 14px;
  }
  .feed-filter-field label {
    display: block;
    font-size: .67rem;
    color: #6e7799;
    letter-spacing: .07em;
    text-transform: uppercase;
    margin-bottom: 6px;
  }
  .feed-filter-field input,
  .feed-filter-field select {
    width: 100%;
    background: #0d0f18;
    border: 1px solid #2e3450;
    border-radius: 8px;
    color: #e0e4f8;
    font-size: .82rem;
    padding: 9px 10px;
  }
  .feed-filter-actions {
    display: flex;
    justify-content: flex-end;
  }
  .feed-filter-reset {
    border: 1px solid #2e3450;
    background: #111522;
    color: #dbe3ff;
    border-radius: 10px;
    padding: 9px 12px;
    cursor: pointer;
    font-size: .78rem;
    font-weight: 700;
    white-space: nowrap;
  }
  .feed-filter-reset:hover { border-color: #4d7fff; }
  .feed-time-range, .feed-sort-order {
    border: 1px solid #1e2235; background: #111522; color: #dbe3ff;
    border-radius: 8px; font-size: .82rem; padding: 9px 10px; cursor: pointer;
  }
  /* Toast notifications */
  #toast-container {
    position: fixed; bottom: 24px; right: 24px; z-index: 9999;
    display: flex; flex-direction: column; gap: 8px; pointer-events: none;
  }
  .toast {
    background: #1a1e30; border: 1px solid #2a3060; color: #d0d8f8;
    border-radius: 10px; padding: 10px 16px; font-size: .82rem;
    box-shadow: 0 4px 20px rgba(0,0,0,.5); pointer-events: auto;
    opacity: 0; transform: translateY(8px);
    transition: opacity .2s, transform .2s;
    max-width: 320px;
  }
  .toast.toast-visible { opacity: 1; transform: translateY(0); }
  .toast.toast-success { border-color: #34c759; color: #c0f0cc; }
  .toast.toast-error   { border-color: #ff453a; color: #ffd0ce; }
  /* Pin button */
  .pin-btn {
    background: none; border: none; cursor: pointer; padding: 2px 4px;
    font-size: .85rem; color: #3a4060; line-height: 1; border-radius: 4px;
    transition: color .15s;
  }
  .pin-btn:hover { color: #f5c518; }
  .pin-btn.pinned { color: #f5c518; }
  /* Relative time */
  .card-time-rel {
    font-size: .72rem; color: #6e7799; cursor: default;
  }
  .card-time-abs { color: #4a5278; }
  /* Mobile admin */
  @media (max-width: 768px) {
    .admin-grid { grid-template-columns: 1fr 1fr; }
    .stat-card-wide { grid-column: span 2; }
    .scraper-table th, .scraper-table td { font-size: .7rem; padding: 4px 4px 4px 0; }
    .scraper-error-text { max-width: 140px; }
  }
  .feed-filter-summary {
    font-size: .74rem;
    color: #7d87af;
    margin: -2px 0 16px;
  }
  .feed-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 16px 0 8px;
  }
  .feed-load-more {
    border: 1px solid #2e3450;
    background: #111522;
    color: #d7def7;
    border-radius: 999px;
    padding: 9px 16px;
    cursor: pointer;
    font-size: .82rem;
    font-weight: 700;
  }
  .feed-load-more:hover { border-color: #4d7fff; color: #fff; }
  .feed-load-more:disabled { opacity: .6; cursor: default; }
  .feed-pagination-meta {
    font-size: .76rem;
    color: #7d87af;
    text-align: center;
  }
  .inline-pill-note { color: #7b86ad; }
  .health-badge {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: .62rem; font-weight: 600; letter-spacing: .05em;
    padding: 2px 7px; border-radius: 99px; text-transform: uppercase;
  }
  .health-active  { background: rgba(52,199,89,.15);  color: #34c759; }
  .health-quiet   { background: rgba(255,159,10,.15); color: #ff9f0a; }
  .health-error   { background: rgba(255,69,58,.15);  color: #ff453a; }
  .health-unknown { background: rgba(110,119,153,.15); color: #6e7799; }
  .scraper-panel {
    background: #0d0f1a; border: 1px solid #1e2235; border-radius: 14px;
    padding: 16px 18px; margin-bottom: 18px;
  }
  .scraper-panel-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px;
  }
  .scraper-panel-title {
    font-size: .7rem; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: #6e7799;
  }
  .scraper-table { width: 100%; border-collapse: collapse; font-size: .78rem; }
  .scraper-table th {
    text-align: left; font-size: .65rem; letter-spacing: .06em;
    text-transform: uppercase; color: #6e7799; padding: 0 8px 8px 0;
  }
  .scraper-table td { padding: 5px 8px 5px 0; color: #c0c8e8; vertical-align: middle; }
  .scraper-table tr:not(:last-child) td { border-bottom: 1px solid #1a1e2e; }
  .scraper-error-text { color: #ff453a; font-size: .72rem; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .reprime-btn {
    font-size: .72rem; padding: 5px 12px; border-radius: 8px;
    background: #1a2040; border: 1px solid #2a3060; color: #8898d0;
    cursor: pointer; white-space: nowrap;
  }
  .reprime-btn:hover { background: #212850; color: #c0ccf0; }
  .reprime-btn:disabled { opacity: .5; cursor: default; }
  .empty-state {
    text-align: center; padding: 48px 24px; color: #6e7799;
  }
  .empty-state-icon { font-size: 2rem; margin-bottom: 10px; }
  .empty-state-title { font-size: .95rem; font-weight: 600; color: #a0aac8; margin-bottom: 6px; }
  .empty-state-sub { font-size: .8rem; line-height: 1.5; }
  .admin-shell { display: block; }
  .admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
  }
  .stat-card {
    background: #12151f;
    border: 1px solid #1e2235;
    border-radius: 14px;
    padding: 16px;
  }
  .stat-card-wide { grid-column: span 2; }
  .stat-label {
    font-size: .7rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #6e7799;
    margin-bottom: 8px;
  }
  .stat-value {
    font-size: 1.45rem;
    font-weight: 700;
    color: #fff;
  }
  .stat-subgrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
  }
  .stat-mini {
    background: #0f1220;
    border: 1px solid #242a44;
    border-radius: 12px;
    padding: 12px;
  }
  .stat-mini-label {
    font-size: .66rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #7a84ad;
    margin-bottom: 6px;
  }
  .stat-mini-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
  }
  .stat-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
  }
  .stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0f1220;
    border: 1px solid #242a44;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: .74rem;
    color: #c8d2f3;
  }
  .stat-pill strong {
    color: #fff;
    font-weight: 700;
  }
  .stat-muted {
    margin-top: 10px;
    font-size: .76rem;
    color: #7a84ad;
  }
  @media (max-width: 900px) {
    .stat-card-wide { grid-column: span 1; }
  }
  .admin-list { display: flex; flex-direction: column; gap: 16px; }
  .admin-card {
    background: #12151f;
    border: 1px solid #1e2235;
    border-radius: 16px;
    padding: 18px;
  }
  .admin-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
  }
  .admin-name { font-size: 1rem; font-weight: 700; color: #fff; }
  .admin-email { font-size: .82rem; color: #90a0d0; margin-top: 3px; }
  .admin-badges { display: flex; gap: 6px; flex-wrap: wrap; }
  .mini-badge {
    font-size: .65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    letter-spacing: .05em;
    text-transform: uppercase;
  }
  .mini-badge-plan { background: rgba(77,127,255,.14); color: #8fb0ff; }
  .mini-badge-status { background: rgba(38,194,129,.14); color: #76d9ac; }
  .mini-badge-admin { background: rgba(255,186,77,.16); color: #ffcf7a; }
  .admin-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px 14px;
    margin-bottom: 14px;
  }
  .meta-item {
    background: #0f1220;
    border: 1px solid #1d2235;
    border-radius: 12px;
    padding: 10px 12px;
  }
  .meta-k {
    font-size: .67rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #657099;
    margin-bottom: 4px;
  }
  .meta-v { font-size: .88rem; color: #e2e7fb; line-height: 1.4; }
  .admin-sections {
    display: grid;
    grid-template-columns: 1.3fr .9fr;
    gap: 14px;
  }
  .section-card {
    background: #0f1220;
    border: 1px solid #1d2235;
    border-radius: 14px;
    padding: 14px;
  }
  .section-title {
    font-size: .74rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #6e7799;
    margin-bottom: 10px;
  }
  .pill-list { display: flex; flex-wrap: wrap; gap: 8px; }
  .pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid #26304e;
    background: #121827;
    color: #d9def3;
    font-size: .78rem;
  }
  .muted-note { font-size: .8rem; color: #6f789b; line-height: 1.5; }
  .pill-remove {
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
    font-size: .75rem;
    line-height: 1;
    padding: 1px 3px;
    border-radius: 4px;
    flex-shrink: 0;
  }
  .pill-remove:hover { color: #e8192c; }
  .admin-toolbar {
    display: grid;
    grid-template-columns: minmax(180px, 1.4fr) repeat(3, minmax(140px, .8fr));
    gap: 12px;
    margin-bottom: 18px;
  }
  .filter-field {
    background: #12151f;
    border: 1px solid #1e2235;
    border-radius: 12px;
    padding: 10px 12px;
  }
  .filter-field label {
    display: block;
    font-size: .67rem;
    color: #6e7799;
    letter-spacing: .07em;
    text-transform: uppercase;
    margin-bottom: 6px;
  }
  .filter-field input, .filter-field select {
    width: 100%;
    background: #0d0f18;
    border: 1px solid #2e3450;
    border-radius: 8px;
    color: #e0e4f8;
    font-size: .82rem;
    padding: 8px 10px;
  }
  .admin-actions { display: flex; gap: 8px; flex-wrap: wrap; }
  .admin-actions-top { margin-top: 14px; }
  .admin-btn {
    border: 1px solid #2e3450;
    background: #111522;
    color: #dbe3ff;
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: .78rem;
    font-weight: 700;
  }
  .admin-btn:hover { border-color: #4d7fff; }
  .admin-btn-danger {
    border-color: rgba(232,25,44,.45);
    color: #ff9ba7;
  }
  .admin-btn-danger:hover { border-color: #e8192c; color: #ffd3d8; }
  .modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(8,10,16,.72);
    backdrop-filter: blur(4px);
    z-index: 40;
    padding: 28px 18px;
    overflow-y: auto;
  }
  .modal-card {
    max-width: 620px;
    margin: 0 auto;
    background: #12151f;
    border: 1px solid #28304a;
    border-radius: 18px;
    padding: 20px;
  }
  .modal-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
  }
  .modal-subtitle {
    font-size: .82rem;
    color: #8791b6;
    margin-bottom: 16px;
  }
  .modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .modal-field-full { grid-column: 1 / -1; }
  .modal-field-spaced { margin-top: 16px; }
  .modal-field label {
    display: block;
    font-size: .7rem;
    color: #7882a7;
    margin-bottom: 4px;
  }
  .modal-field input, .modal-field select {
    width: 100%;
    background: #0d0f18;
    border: 1px solid #2e3450;
    border-radius: 8px;
    color: #e0e4f8;
    font-size: .84rem;
    padding: 9px 10px;
  }
  .settings-helper {
    margin-top: 8px;
    font-size: .72rem;
    line-height: 1.45;
    color: #7882a7;
  }
  .settings-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
  }
  .settings-actions .settings-helper {
    flex-basis: 100%;
    margin-top: 0;
  }
  .modal-checks {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
  }
  .check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .84rem;
    color: #dce3fb;
  }
  .modal-error {
    display: none;
    margin-top: 12px;
    font-size: .78rem;
    color: #ff9ba7;
  }
  .modal-error.is-visible,
  .form-error.is-visible { display: block; }
  .form-btns-spaced { margin-top: 16px; }
  .totp-enabled-strong { color: #76d9ac; }
  .meta-item-tight { margin: 14px 0 10px; }
  .meta-item-bottom { margin-bottom: 14px; }
  .meta-v-secret {
    font-family: monospace;
    font-size: .95rem;
    word-break: break-all;
    letter-spacing: .06em;
  }
  .card {
    background: #12151f;
    border: 1px solid #1e2235;
    border-radius: 14px;
    margin-bottom: 18px;
    overflow: hidden;
  }
  .card-header {
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #1e2235;
    flex-wrap: wrap;
  }
  .badge { font-size: .7rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; letter-spacing: .04em; }
  .badge-x { background: rgba(29,155,240,.15); color: #1d9bf0; }
  .badge-truth { background: rgba(232,25,44,.15); color: #e8192c; }
  .badge-bluesky { background: rgba(0,133,255,.15); color: #58b7ff; }
  .card-name { font-weight: 600; font-size: .9rem; color: #fff; }
  .card-handle { font-weight: 400; font-size: .75rem; color: #6e7799; }
  .card-time { margin-left: auto; font-size: .78rem; color: #555; white-space: nowrap; }
  .card-body {
    padding: 15px 18px;
    font-size: .92rem;
    line-height: 1.65;
    color: #c8cce0;
    white-space: pre-wrap;
    word-break: break-word;
  }
  .view-link { display: inline-block; margin-top: 10px; font-size: .78rem; color: #4d7fff; text-decoration: none; }
  .view-link:hover { text-decoration: underline; }
  .prices { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); border-top: 1px solid #1e2235; }
  .price-cell { padding: 11px 14px; border-right: 1px solid #1e2235; border-bottom: 1px solid #1e2235; }
  .prices .price-cell:last-child { border-right: none; }
  .price-label { font-size: .67rem; color: #555; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
  .price-val { font-size: .96rem; font-weight: 700; color: #fff; }
  .price-chg { font-size: .72rem; margin-top: 3px; }
  .up { color: #26c281; }
  .down { color: #e8192c; }
  .flat { color: #555; }
  .closed { color: #6f789b; }
  body.landing-mode {
    background:
      radial-gradient(circle at top right, rgba(77,127,255,.16), transparent 30%),
      radial-gradient(circle at top left, rgba(29,155,240,.12), transparent 24%),
      #0d0f18;
  }
  body.landing-mode .layout { grid-template-columns: 1fr; }
  body.landing-mode .feed-col {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 30px 24px 46px;
  }
  body.landing-mode .menu-btn { display: none !important; }
  .landing-shell {
    display: flex;
    flex-direction: column;
    gap: 22px;
  }
  .landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, .95fr);
    gap: 20px;
    align-items: stretch;
  }
  .landing-panel {
    background: linear-gradient(180deg, rgba(18,21,31,.96), rgba(13,15,24,.98));
    border: 1px solid #1e2235;
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 24px 60px rgba(0,0,0,.22);
  }
  .landing-overline {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #8fb0ff;
    margin-bottom: 12px;
  }
  .landing-title {
    font-size: clamp(1.45rem, 2.6vw, 2.3rem);
    line-height: 1.1;
    color: #fff;
    max-width: 15ch;
    margin-bottom: 12px;
  }
  .landing-sub {
    font-size: .9rem;
    line-height: 1.6;
    color: #aeb9dc;
    max-width: 62ch;
  }
  .landing-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
  }
  .landing-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 11px;
    border-radius: 999px;
    border: 1px solid #273253;
    background: rgba(15,18,32,.9);
    color: #d7e2ff;
    font-size: .78rem;
    font-weight: 600;
  }
  .landing-auth .login-state {
    text-align: left;
    padding: 0 0 18px;
  }
  .landing-auth .auth-form {
    max-width: none;
    margin: 0;
  }
  .landing-feed-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
  }
  .landing-feed-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
  }
  .landing-feed-copy {
    margin-top: 4px;
    color: #7d87af;
    font-size: .84rem;
  }
  .landing-feed-count {
    font-size: .82rem;
    color: #d9e4ff;
    border: 1px solid #273253;
    background: #0f1220;
    border-radius: 999px;
    padding: 8px 12px;
    white-space: nowrap;
  }
  .landing-empty {
    text-align: left;
    padding: 20px 4px 4px;
    color: #98a4c9;
  }
  .landing-empty strong {
    display: block;
    color: #fff;
    margin-bottom: 8px;
  }

  .empty, .login-state {
    text-align: center;
    color: #657099;
    padding: 60px 0;
    font-size: .95rem;
  }
  .login-state strong { color: #fff; display: block; margin-bottom: 8px; }
  .auth-tabs {
    display: inline-flex;
    background: #111522;
    border: 1px solid #1f2740;
    border-radius: 999px;
    padding: 4px;
    gap: 4px;
    margin-bottom: 8px;
  }
  .auth-tab {
    border: none;
    background: transparent;
    color: #8992b6;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-size: .8rem;
    font-weight: 600;
  }
  .auth-tab.active {
    background: #4d7fff;
    color: #fff;
  }
  .plan-chooser {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .plan-card {
    border: 1px solid #2e3450;
    background: #0f1220;
    color: #c9d4f5;
    border-radius: 10px;
    padding: 12px;
    text-align: left;
    cursor: pointer;
  }
  .plan-card.active {
    border-color: #4d7fff;
    background: rgba(77,127,255,.10);
  }
  .plan-card-title {
    font-size: .86rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
  }
  .plan-card-price {
    font-size: .8rem;
    color: #8fb0ff;
    margin-bottom: 6px;
  }
  .plan-card-copy {
    font-size: .72rem;
    color: #95a0c7;
    line-height: 1.45;
  }
  .auth-notice-wrap { margin-bottom: 18px; }
  .security-events-spacing { margin-top: 18px; }
  .security-event-detail {
    font-size: .76rem;
    color: #7d87af;
    line-height: 1.45;
  }
  .security-event-time {
    font-size: .72rem;
    color: #666;
    white-space: nowrap;
  }
  .section-collapsed { display: none; }
  .collapse-arrow.is-collapsed { transform: rotate(-90deg); }
  .filtered-out { display: none !important; }
  .meta-empty {
    font-size: .78rem;
    color: #555;
    padding: 4px;
  }

  @media (max-width: 768px) {
    header { padding: 12px 14px; gap: 12px; flex-wrap: wrap; align-items: stretch; }
    .brand { width: 100%; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
    .brand h1 { font-size: 1rem; }
    .live { width: 100%; }
    .menu-btn { display: block; }
    .layout { grid-template-columns: 1fr; }
    .sidebar {
      display: none;
      position: fixed;
      left: 0;
      top: 0;
      width: min(86vw, 320px);
      height: 100vh;
      z-index: 19;
      background: #0d0f18;
      border-right: 1px solid #1e2235;
      border-bottom: none;
      padding-top: 16px;
      overflow-y: auto;
      box-shadow: 18px 0 40px rgba(0,0,0,.35);
    }
    .sidebar.mobile-open { display: flex; }
    .view-tabs { width: 100%; order: 3; }
    .view-tab { flex: 1; text-align: center; }
    .auth-shell { width: 100%; order: 2; }
    .auth-card {
      width: 100%;
      border-radius: 16px;
      padding: 10px 12px;
      justify-content: space-between;
    }
    .feed-filter-bar { grid-template-columns: 1fr 1fr; padding: 12px; }
    .feed-filter-field:first-child { grid-column: 1 / -1; }
    .feed-filter-actions { grid-column: 1 / -1; justify-content: stretch; }
    .feed-filter-reset { width: 100%; }
    .prices { grid-template-columns: repeat(2, 1fr); }
    .admin-sections { grid-template-columns: 1fr; }
    .admin-toolbar { grid-template-columns: 1fr; }
    .modal-grid { grid-template-columns: 1fr; }
    .feed-col { padding: 14px; }
    body.landing-mode .feed-col { padding: 18px 14px 34px; }
    .landing-hero { grid-template-columns: 1fr; }
    .landing-panel { padding: 18px; border-radius: 18px; }
    .landing-title { max-width: none; }
    .card-header { padding: 12px 14px; }
    .card-body { padding: 14px; font-size: .9rem; }
    .card-time { margin-left: 0; width: 100%; }
    .price-cell { padding: 10px 12px; }
    .auth-card { flex-wrap: wrap; gap: 8px; }
  }

  @media (max-width: 560px) {
    .feed-filter-bar { grid-template-columns: 1fr; }
    .feed-filter-field:first-child { grid-column: auto; }
    .auth-card { align-items: flex-start; }
    .auth-meta { flex: 1 1 100%; }
    .billing-btn, .logout-btn { width: 100%; text-align: center; }
    .prices { grid-template-columns: 1fr; }
    .feed-meta { margin-bottom: 12px; }
    .feed-filter-summary { margin-bottom: 12px; }
  }
