    /* =============================================================
       Design tokens. Single source of truth for the dashboard look.
       ============================================================= */
    :root {
      --bg:            #090909;
      --surface:       #151515;
      --surface-2:     #1b1f27;
      --border:        #272b35;
      --border-strong: #3a4150;
      --ink:           #e4e4e7;
      --ink-2:         #a1a1aa;
      --ink-3:         #71717a;
      --accent:        #7c8cff;
      --accent-soft:   rgba(124,140,255,0.12);
      --success:       #34d399;
      --warning:       #fbbf24;
      --danger:        #f87171;
    }

    body {
      background: var(--bg);
      color: var(--ink);
      font-feature-settings: 'cv11','ss01';
    }

    .sidebar-discord-offer { background: #5865f2; border: 1px solid #7480ff; color: #fff; }
    .sidebar-discord-offer a { color: #fff; font-weight: 600; }
    .sidebar-discord-offer a:hover { text-decoration: underline; }
    .sidebar-discord-offer button { color: #fff; border-radius: 5px; }
    .sidebar-discord-offer button:hover { background: rgba(0,0,0,.15); }
    .sidebar-discord-offer :is(a,button):focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

    /* Compact version of the landing-page HourIdler liquid-fill wordmark.
       Two text layers keep the letters crisp while the accent wave moves
       through their lower half. */
    .dashboard-brand-wave {
      position: relative;
      display: inline-grid;
      isolation: isolate;
      color: var(--ink);
      line-height: 1;
      white-space: nowrap;
    }
    .dashboard-brand-wave > span {
      grid-area: 1 / 1;
      display: block;
    }
    .dashboard-brand-wave-base { color: rgba(228, 228, 231, .94); }
    .dashboard-brand-wave-fill {
      color: var(--accent);
      clip-path: polygon(0% 53%, 16% 48%, 34% 51%, 52% 60%, 68% 58%, 84% 51%, 100% 49%, 100% 100%, 0% 100%);
      animation: dashboardBrandWave 4s ease-in-out infinite;
      will-change: clip-path;
    }
    @keyframes dashboardBrandWave {
      0%, 100% { clip-path: polygon(0% 53%, 16% 48%, 34% 51%, 52% 60%, 68% 58%, 84% 51%, 100% 49%, 100% 100%, 0% 100%); }
      50% { clip-path: polygon(0% 46%, 16% 51%, 34% 59%, 52% 55%, 68% 47%, 84% 45%, 100% 51%, 100% 100%, 0% 100%); }
    }
    @media (prefers-reduced-motion: reduce) {
      .dashboard-brand-wave-fill {
        animation: none;
        clip-path: polygon(0% 51%, 16% 47%, 34% 52%, 52% 58%, 68% 56%, 84% 50%, 100% 48%, 100% 100%, 0% 100%);
      }
    }

    /* Surfaces - flat panel with a hairline border. Replaces the old
       gradient/blur "glass" look. The classname stays so every page that
       uses .glass automatically inherits the new treatment. */
    .glass {
      background: var(--surface);
      border: 1px solid var(--border);
      backdrop-filter: none;
    }

    /* No more ambient blobs - the Pro-tool look avoids decorative gradients. */
    .ambient::before { content: none; }

    /* ---- Status pip. 8px glowing dot, no text needed. ---- */
    .status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
    .status-dot.idling   { background: var(--success); box-shadow: 0 0 0 2px rgba(52,211,153,0.18), 0 0 8px var(--success); animation: pulse 2.4s ease-in-out infinite; }
    .status-dot.online   { background: var(--success); box-shadow: 0 0 0 2px rgba(52,211,153,0.18); }
    .status-dot.queued, .status-dot.stopping, .status-dot.connecting,
    .status-dot.awaiting_2fa_email, .status-dot.awaiting_2fa_mobile {
      background: var(--warning); box-shadow: 0 0 0 2px rgba(251,191,36,0.18), 0 0 8px var(--warning); animation: pulse 1.4s ease-in-out infinite;
    }
    .status-dot.error   { background: var(--danger); box-shadow: 0 0 0 2px rgba(248,113,113,0.18), 0 0 6px var(--danger); }
    .status-dot.offline { background: var(--ink-3); }
    /* AutoRestarter pause state. Account got kicked because the user started
       a game on their own PC - we're not failed, we're patiently waiting.
       Soft violet so it's distinct from idling green and error red. */
    .status-dot.paused  { background: #a78bfa; box-shadow: 0 0 0 2px rgba(167,139,250,0.18), 0 0 8px #a78bfa; animation: pulse 3s ease-in-out infinite; }
    @keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }

    /* ---- Aurora sidebar nav: rounded items with a blue->violet gradient
       active state (matches the redesigned dashboard). ---- */
    .nav-item {
      display: flex; align-items: center; gap: 11px;
      padding: 9px 11px; border-radius: 10px;
      color: var(--ink-2); font-size: 13.5px; font-weight: 500;
      position: relative; isolation: isolate; overflow: hidden;
      transition: background-color .12s ease, color .12s ease;
    }
    .nav-item:hover { color: var(--ink); background: var(--surface-2); }
    .nav-item.active {
      color: #fff;
      background: linear-gradient(90deg, rgba(124,140,255,.10), rgba(139,124,255,.05));
    }
    .nav-item.active::before {
      content: '';
      position: absolute; inset: 0; z-index: 0;
      pointer-events: none;
      background: linear-gradient(90deg, rgba(124,140,255,.24), rgba(139,124,255,.13));
      clip-path: polygon(0% 53%, 16% 48%, 34% 51%, 52% 60%, 68% 58%, 84% 51%, 100% 49%, 100% 100%, 0% 100%);
      animation: activeNavWave 4s ease-in-out infinite;
      will-change: clip-path;
    }
    .nav-item > svg,
    .nav-item > span { position: relative; z-index: 1; }
    @keyframes activeNavWave {
      0%, 100% { clip-path: polygon(0% 53%, 16% 48%, 34% 51%, 52% 60%, 68% 58%, 84% 51%, 100% 49%, 100% 100%, 0% 100%); }
      50% { clip-path: polygon(0% 45%, 16% 51%, 34% 59%, 52% 55%, 68% 47%, 84% 44%, 100% 51%, 100% 100%, 0% 100%); }
    }
    @media (prefers-reduced-motion: reduce) {
      .nav-item.active::before {
        animation: none;
        clip-path: polygon(0% 51%, 16% 47%, 34% 52%, 52% 58%, 68% 56%, 84% 50%, 100% 48%, 100% 100%, 0% 100%);
      }
    }
    /* Group label above each cluster of nav items. */
    .nav-section {
      padding: 14px 11px 5px;
      font-size: 10px; font-weight: 600; letter-spacing: .07em;
      text-transform: uppercase; color: var(--ink-3, #6b7280);
    }
    .nav-section:first-of-type { padding-top: 4px; }

    /* ---- Inputs. Mono for textareas/code-shape inputs by default. ---- */
    .input {
      width: 100%; padding: 8px 12px; border-radius: 4px;
      background: var(--bg);
      border: 1px solid var(--border); color: var(--ink);
      font-size: 13px; font-family: 'Manrope','Inter','-apple-system','BlinkMacSystemFont',sans-serif;
      transition: border-color .12s ease, background-color .12s ease;
    }
    .input::placeholder { color: var(--ink-3); }
    .input:hover  { border-color: var(--border-strong); }
    .input:focus  { outline: none; border-color: var(--accent); background: var(--surface); }
    .input:disabled { opacity: .4; cursor: not-allowed; }

    /* Hide the browser's default up/down spinner buttons on number inputs.
       Add `.no-spinner` (or use type="text" with inputmode="numeric") when
       you want a clean numeric field without the chrome arrow controls. */
    .no-spinner::-webkit-outer-spin-button,
    .no-spinner::-webkit-inner-spin-button {
      -webkit-appearance: none; margin: 0;
    }
    .no-spinner { -moz-appearance: textfield; appearance: textfield; }

    /* ---- Buttons. Tighter padding, 4px radii, less weight. ---- */
    .btn-primary {
      background: var(--accent); color: #090909; font-weight: 600;
      padding: 7px 14px; border-radius: 4px; font-size: 13px;
      transition: filter .12s ease;
    }
    .btn-primary:hover { filter: brightness(1.08); }
    .btn-danger {
      background: rgba(248,113,113,0.08); color: var(--danger);
      border: 1px solid rgba(248,113,113,0.28);
      padding: 6px 12px; border-radius: 4px; font-size: 12px; font-weight: 600;
      transition: background-color .12s ease, border-color .12s ease;
    }
    .btn-danger:hover { background: rgba(248,113,113,0.16); border-color: rgba(248,113,113,0.48); }
    .btn-ghost {
      padding: 6px 12px; border-radius: 4px;
      color: var(--ink-2); border: 1px solid var(--border);
      font-size: 12px; font-weight: 500;
      transition: color .12s ease, border-color .12s ease;
    }
    .btn-ghost:hover { color: var(--ink); border-color: var(--border-strong); }

    /* Avatar - rounded square with subtle border. Placeholder shows "?" when
       no avatar_url is set yet (account never logged in / private profile). */
    .acc-avatar {
      width: 36px; height: 36px;
      border-radius: 6px;
      background: var(--surface-2);
      border: 1px solid var(--border);
      display: flex; align-items: center; justify-content: center;
      overflow: hidden;
      flex-shrink: 0;
      color: var(--ink-3);
      font-weight: 700;
      font-size: 16px;
    }
    .acc-avatar img {
      width: 100%; height: 100%; object-fit: cover; display: block;
    }

    /* Compact cell utilities used inside the row */
    .acc-cell-num {
      font-family: 'Manrope','Inter','-apple-system','BlinkMacSystemFont',sans-serif;
      font-variant-numeric: tabular-nums;
      font-size: 12.5px;
      color: var(--ink-2);
    }
    .acc-cell-num.accent { color: var(--accent); }
    .acc-cell-dim { color: var(--ink-3); font-size: 13px; }

    /* Status cell - inline dot + label, no pill background (header has its
       own column so we don't need to double up on visual weight). */
    .acc-status {
      display: inline-flex; align-items: center; gap: 8px;
      font-size: 12.5px;
      font-weight: 600;
    }
    .acc-status .dot {
      width: 8px; height: 8px; border-radius: 50%;
      background: var(--ink-3);
      flex-shrink: 0;
    }
    .acc-status.idling .dot, .acc-status.online .dot { background: var(--success); box-shadow: 0 0 6px rgba(52,211,153,0.55); }
    .acc-status.idling, .acc-status.online           { color: var(--success); }
    .acc-status.queued .dot, .acc-status.connecting .dot, .acc-status.stopping .dot,
    .acc-status.awaiting-2fa .dot                    { background: var(--warning); }
    .acc-status.queued, .acc-status.connecting, .acc-status.stopping,
    .acc-status.awaiting-2fa                         { color: var(--warning); }
    .acc-status.error .dot                           { background: var(--danger); }
    .acc-status.error                                { color: var(--danger); }
    .acc-status.paused .dot                          { background: #a78bfa; }
    .acc-status.paused                               { color: #c4b5fd; }
    .acc-status.offline                              { color: var(--ink-3); }
    .acc-status.stopped .dot                         { background: var(--danger); }
    .acc-status.stopped                              { color: var(--danger); }

    /* Auto-Stop pill: shows "10h" if set, "Off" if disabled. Click opens
       the auto-stop modal. */

    /* Actions: Account Setup + Start (with caret dropdown). Compact buttons
       designed to sit at the right edge. */
    .acc-actions {
      display: flex; align-items: center; gap: 6px; flex-shrink: 0;
      justify-self: end;
    }
    /* Mobile-only "open detail" affordance (pure-CSS chevron, no icon dep).
       Hidden on desktop where the row shows its own action buttons. */
    .acc-btn {
      display: inline-flex; align-items: center; gap: 5px;
      padding: 6px 10px;
      border-radius: 5px;
      font-size: 12px;
      font-weight: 600;
      border: 1px solid var(--border);
      background: transparent;
      color: var(--ink-2);
      transition: border-color .15s ease, color .15s ease, background-color .15s ease, filter .15s ease;
      white-space: nowrap;
    }
    .acc-btn svg { width: 13px; height: 13px; }
    /* Account Setup label hides below 1280px - icon stays so it's still tappable */
    .acc-btn:hover { color: var(--ink); border-color: var(--border-strong); background: var(--surface-2); }
    .acc-btn.primary {
      background: var(--success);
      color: #090909;
      border-color: var(--success);
    }
    .acc-btn.primary:hover { filter: brightness(1.10); color: #090909; background: var(--success); }
    .acc-btn.stop {
      color: var(--danger); border-color: rgba(248,113,113,0.30);
    }
    .acc-btn.stop:hover { background: rgba(248,113,113,0.08); color: var(--danger); }
    .acc-btn.busy { color: var(--ink-3); cursor: default; }
    .acc-btn.busy svg { animation: spin 1.2s linear infinite; }

    /* Games / Settings: same shape as the Start button, in the brand accent. */
    .acc-btn.cfg { background: #50b5ff; color: #090909; border-color: #50b5ff; }
    .acc-btn.cfg:hover { filter: brightness(1.10); color: #090909; background: #50b5ff; }
    /* 2FA action button (account parked in needs_2fa) - amber to draw the eye. */
    .acc-btn.twofa-btn { background: #f5a623; color: #090909; border-color: #f5a623; }
    .acc-btn.twofa-btn:hover { filter: brightness(1.08); color: #090909; background: #f5a623; }

    /* =========================================================================
       Custom tooltip via [data-tip="..."] - replaces the ugly default browser
       tooltip on dashboard chrome (auto-stop pill, status dot, etc). Uses
       CSS-only pseudo-elements so no JS overhead. Wraps long content with
       max-width; positioned above the trigger with a small arrow.
       Add `data-tip-pos="bottom"` to flip below the trigger when there's no
       room above (top of viewport, etc).
       ========================================================================= */
    [data-tip] { position: relative; }
    [data-tip]::before,
    [data-tip]::after {
      position: absolute;
      opacity: 0;
      pointer-events: none;
      transition: opacity .15s ease .05s, transform .15s ease .05s;
      z-index: 100;
    }
    [data-tip]::before {
      content: attr(data-tip);
      bottom: calc(100% + 8px);
      left: 50%;
      transform: translateX(-50%) translateY(4px);
      padding: 6px 10px;
      background: #18181b;
      border: 1px solid var(--border-strong);
      border-radius: 6px;
      font-size: 11px;
      font-weight: 500;
      color: var(--ink);
      white-space: nowrap;
      max-width: 240px;
      box-shadow: 0 8px 24px rgba(0,0,0,0.45);
      letter-spacing: 0;
    }
    [data-tip]::after {
      content: '';
      bottom: calc(100% + 3px);
      left: 50%;
      transform: translateX(-50%) translateY(4px);
      width: 0; height: 0;
      border: 5px solid transparent;
      border-top-color: var(--border-strong);
    }
    [data-tip]:hover::before,
    [data-tip]:hover::after,
    [data-tip]:focus-visible::before,
    [data-tip]:focus-visible::after {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }
    /* Position below instead of above */
    [data-tip][data-tip-pos="bottom"]::before {
      bottom: auto; top: calc(100% + 8px);
    }
    [data-tip][data-tip-pos="bottom"]::after {
      bottom: auto; top: calc(100% + 3px);
      border-top-color: transparent;
      border-bottom-color: var(--border-strong);
    }

    /* Cancellable busy state: same look at rest, but on hover swaps the
       spinner+label for an X icon + "Cancel" text in danger red so the user
       knows clicking will abort the in-progress action. */
    .acc-btn.acc-btn-cancel { cursor: pointer; }
    .acc-btn.acc-btn-cancel .cancel-icon,
    .acc-btn.acc-btn-cancel .cancel-label { display: none; }
    .acc-btn.acc-btn-cancel:hover {
      color: var(--danger);
      border-color: rgba(248,113,113,0.30);
      background: rgba(248,113,113,0.06);
    }
    .acc-btn.acc-btn-cancel:hover .busy-icon,
    .acc-btn.acc-btn-cancel:hover .busy-label  { display: none; }
    .acc-btn.acc-btn-cancel:hover .cancel-icon,
    .acc-btn.acc-btn-cancel:hover .cancel-label { display: inline-flex; }
    .acc-btn.acc-btn-cancel:hover .cancel-icon { animation: none; }
    .account-row .row-name {
      font-family: 'Manrope','Inter','-apple-system','BlinkMacSystemFont',sans-serif;
      font-size: 14px; color: var(--ink); font-weight: 500;
      overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
      min-width: 0;
    }

    /* Status pill - small caps badge, color-coded. Sits next to the name
       on the top line so it scans without needing a wide reserved column. */
    .account-row .row-status {
      flex-shrink: 0;
      font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
      color: var(--ink-3); font-weight: 600;
      padding: 2px 7px; border-radius: 3px;
      background: var(--surface-2); border: 1px solid var(--border);
    }
    .account-row .row-status.idling,
    .account-row .row-status.online {
      color: var(--success);
      background: rgba(52,211,153,0.08);
      border-color: rgba(52,211,153,0.22);
    }
    .account-row .row-status.queued,
    .account-row .row-status.connecting,
    .account-row .row-status.stopping,
    .account-row .row-status.awaiting-2fa {
      color: var(--warning);
      background: rgba(251,191,36,0.08);
      border-color: rgba(251,191,36,0.22);
    }
    .account-row .row-status.error {
      color: var(--danger);
      background: rgba(248,113,113,0.08);
      border-color: rgba(248,113,113,0.22);
    }
    /* AutoRestarter pause pill - matches the violet pulse on the status dot. */
    .account-row .row-status.paused {
      color: #c4b5fd;
      background: rgba(167,139,250,0.08);
      border-color: rgba(167,139,250,0.22);
    }

    /* AutoRestarter dashboard toggle. Filled green when ON so it has the
       same visual weight as the "+ Add Account" button next to it. Outlined
       grey when OFF with a clear hover state so it still reads as a button. */

    /* Meta line: hours · games list. Mono digits, sans-serif game names,
       middle-dot separator. The whole line ellipsis-truncates as one
       string instead of each game chip individually clipping. */

    /* Actions cluster - always visible at the right edge. */

    /* Primary row actions - Play (filled green pill) + Stop (subtle outline).
       Text + icon, so the affordance reads at a glance instead of being
       just a small mystery icon. */
    @keyframes spin { to { transform: rotate(360deg); } }
    @media (max-width: 767px) {
      /* Actions move into the detail modal; the row shows a chevron instead. */
      .account-row .acc-actions { display: none; }
    }

    /* =========================================================================
       KPI cells - replaces the awkward "big-number-with-sparkline-stub" hero
       strip on /dashboard/accounts. Used as a 4-up grid; each cell is a
       value + label on top of the standard surface.
       ========================================================================= */

    /* =============================================================
       Game tiles (used in the per-account "Set games" modal etc.)
       ============================================================= */
    .game-tile {
      display: flex; align-items: center; gap: 9px;
      padding: 6px 10px 6px 6px; border-radius: 3px; border: 1px solid var(--border);
      background: var(--surface); cursor: pointer; transition: border-color .12s ease, background-color .12s ease;
      font-size: 12.5px; color: var(--ink-2);
      user-select: none; -webkit-user-select: none; overflow: hidden;
    }
    .game-tile * { pointer-events: none; }
    .game-tile img { width: 52px; height: 24px; flex-shrink: 0; border-radius: 4px;
      object-fit: cover; background: var(--surface-2); }
    .game-tile .gt-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .game-tile:hover { border-color: var(--accent); color: var(--ink); }
    .game-tile.selected {
      background: rgba(124,140,255,0.10);
      border-color: var(--accent); color: var(--ink); font-weight: 600;
    }

    .chip {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 5px 11px 5px 6px; border-radius: 6px;
      background: var(--surface-2); border: 1px solid var(--border);
      font-size: 13px; color: var(--ink-2); line-height: 1.2;
      font-family: 'Manrope','Inter','-apple-system','BlinkMacSystemFont',sans-serif;
    }
    .chip img.chip-img { width: 40px; height: 19px; border-radius: 3px; object-fit: cover;
      flex-shrink: 0; background: var(--surface); }

    ::-webkit-scrollbar { width: 8px; height: 8px; }
    ::-webkit-scrollbar-track { background: transparent; }
    ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 0; }
    ::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

    [data-lucide] { width: 16px; height: 16px; stroke-width: 2; }

    /* Auth-type pill (in the Add-Account modal) */

    /* ---- Compact custom checkbox ---- */
    .sel-check {
      appearance: none; -webkit-appearance: none;
      width: 16px; height: 16px;
      border-radius: 3px;
      border: 1px solid var(--border-strong);
      background: var(--bg);
      cursor: pointer;
      display: inline-flex; align-items: center; justify-content: center;
      flex-shrink: 0;
      transition: border-color .12s ease, background-color .12s ease;
      position: relative;
    }
    .sel-check:hover { border-color: var(--accent); }
    .sel-check:checked,
    .sel-check:indeterminate { background: var(--accent); border-color: var(--accent); }
    .sel-check:checked::after {
      content: ''; position: absolute;
      width: 4px; height: 7px;
      border: solid #090909; border-width: 0 2px 2px 0;
      transform: rotate(45deg) translate(-1px, -1px);
    }
    .sel-check:indeterminate::after {
      content: ''; position: absolute; width: 8px; height: 2px;
      background: #090909; border-radius: 1px;
    }
    .sel-check:focus-visible {
      outline: none; box-shadow: 0 0 0 2px rgba(124,140,255,0.35);
    }

    /* Floating bulk-action bar */
    @keyframes floatIn {
      from { opacity: 0; transform: translate(-50%, 8px); }
      to   { opacity: 1; transform: translate(-50%, 0); }
    }
    #bulkActionBar:not(.hidden) { animation: floatIn .14s ease-out; }

    /* Desktop dashboard padding. Done in custom CSS (not Tailwind md:px-* /
       md:pt-* utilities) because the precompiled tailwind.css only includes
       classes seen at build time - md:px-12 / md:pt-16 weren't in the build and
       silently fell back to the base px-4. Left/right give breathing room from
       the edges; top reserves a strip for the fixed notification bell. */
    @media (min-width: 768px) {
      .dash-main { padding-left: 3.5rem; padding-right: 3.5rem; padding-top: 4rem; }
    }

    /* ============================ Notifications ============================ */
    /* Display is set by the responsive variant classes below (NOT here) so it
       doesn't override the show/hide rules. */
    .notif-bell { position: relative; align-items: center; justify-content: center;
                  width: 38px; height: 38px; border-radius: 10px; color: var(--ink-2);
                  background: transparent; transition: color .15s ease, background-color .15s ease; }
    .notif-bell:hover { color: var(--ink); background: var(--surface-2); }
    .notif-bell-mobile { display: inline-flex; }
    .notif-bell-fixed { display: none; }
    @media (min-width: 768px) {
      .notif-bell-mobile { display: none; }
      .notif-bell-fixed { display: inline-flex; position: fixed; top: 18px; right: 28px; z-index: 45;
                          background: var(--surface); border: 1px solid var(--border); }
      .notif-bell-fixed:hover { border-color: var(--border-strong); }
    }
    .notif-badge { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px;
                   border-radius: 999px; background: var(--danger); color: #fff; font-size: 10px;
                   font-weight: 700; line-height: 1; display: inline-flex; align-items: center;
                   justify-content: center; pointer-events: none; }
    .notif-panel { position: fixed; top: 60px; right: 16px; width: 364px; max-width: calc(100vw - 24px);
                   max-height: min(72vh, 580px); overflow-y: auto; z-index: 50;
                   background: var(--surface); border: 1px solid var(--border-strong); border-radius: 14px;
                   box-shadow: 0 18px 54px rgba(0,0,0,0.55); }
    @media (min-width: 768px) { .notif-panel { top: 62px; right: 18px; } }
    .notif-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 16px 11px; }
    .notif-title { font-size: 16px; font-weight: 800; color: var(--ink); }
    .notif-readall { font-size: 11px; font-weight: 600; color: var(--ink-3); }
    .notif-readall:hover { color: var(--accent); }
    .notif-tabs { display: flex; gap: 18px; padding: 0 16px; border-bottom: 1px solid var(--border); }
    .notif-tab { position: relative; padding: 8px 0; font-size: 13px; font-weight: 600; color: var(--ink-3); }
    .notif-tab.active { color: var(--ink); }
    .notif-tab.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
                               background: var(--accent); border-radius: 2px; }
    .notif-tab-count { font-size: 11px; color: var(--ink-3); }
    .notif-list { padding: 4px 0; }
    .notif-empty { padding: 32px 16px; text-align: center; color: var(--ink-3); font-size: 13px; }
    .notif-item { display: flex; gap: 11px; padding: 11px 16px; border-bottom: 1px solid var(--border); }
    .notif-item:last-child { border-bottom: none; }
    #sidebarDiscordOffer[hidden] { display:none !important; }
    .notif-badge[hidden], .notif-readall[hidden] { display:none !important; }
    .notif-item.unread { background: rgba(124,140,255,0.05); }
    .notif-ic { flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px; display: inline-flex;
                align-items: center; justify-content: center; background: var(--surface-2); color: var(--accent); }
    .notif-ic svg { width: 16px; height: 16px; }
    .notif-ct { min-width: 0; flex: 1; }
    .notif-ititle { display: block; font-size: 13px; font-weight: 600; color: var(--ink); }
    .notif-itext { display: block; font-size: 12px; line-height: 1.45; color: var(--ink-2); margin-top: 2px; overflow-wrap: anywhere; }
    .notif-time { display: block; font-size: 11px; color: var(--ink-3); margin-top: 4px; }

  /* Confirm dialog (confirmDialog() in ui_helpers.js). */
  .confirm-backdrop{position:fixed;inset:0;z-index:70;display:flex;align-items:center;justify-content:center;
    padding:20px;background:rgba(0,0,0,.58)}
  .confirm-panel{position:relative;width:100%;max-width:440px;padding:28px;background:var(--surface);
    border:1px solid var(--border-strong);border-radius:16px;box-shadow:0 24px 80px rgba(0,0,0,.4)}
  .confirm-panel h3{margin:0 28px 12px 0;color:var(--ink);font-size:20px;font-weight:650;line-height:1.35;overflow-wrap:anywhere}
  #confirmBody{font-size:14px;line-height:1.65;color:var(--ink-2)}
  #confirmBody p{margin:0 0 10px}
  #confirmBody p:last-child{margin-bottom:0}
  .confirm-close{position:absolute;right:15px;top:15px;width:32px;height:32px;display:flex;align-items:center;
    justify-content:center;border:0;border-radius:8px;background:transparent;color:var(--ink-3);cursor:pointer}
  .confirm-close svg{width:17px;height:17px}
  .confirm-close:hover{background:var(--surface-2);color:var(--ink)}
  .confirm-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:26px}
  .confirm-actions button{min-height:42px;padding:0 16px;border-radius:8px;font-size:13px;font-weight:600;cursor:pointer}
  .confirm-cancel{background:var(--surface-2);border:1px solid var(--border-strong);color:var(--ink-2)}
  .confirm-submit{background:var(--accent);color:#090909;border:1px solid transparent}
  .confirm-submit.is-danger{background:var(--danger);color:#211010}
  .confirm-actions button:hover{filter:brightness(1.08)}
  .confirm-panel button:focus-visible{outline:2px solid var(--ink-2);outline-offset:3px}
  @media(max-width:480px){.confirm-panel{padding:24px}.confirm-actions button{flex:1;padding:0 10px}}
