  @import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&display=swap');
  * { margin: 0; padding: 0; box-sizing: border-box; }
  body { font-family: 'DM Sans', sans-serif; background: #0a0a0a; color: #e0e0e0; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
  .header { padding: 16px 20px; padding-top: calc(16px + env(safe-area-inset-top)); background: #111; border-bottom: 1px solid #222; display: flex; align-items: center; justify-content: center; position: relative; flex-shrink: 0; }
  .header-title { font-weight: 600; font-size: 15px; letter-spacing: 0.5px; color: #fff; }
  .settings-btn, .new-btn, .threads-btn { position: absolute; background: none; border: none; cursor: pointer; padding: 4px; }
  .header-user-chip { position: absolute !important; right: 12px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 6px; background: none; border: 1px solid #333; border-radius: 999px; padding: 5px 10px 5px 12px; cursor: pointer; font-family: 'DM Sans', sans-serif; z-index: 2; }
  .header-user-chip:hover { border-color: #555; }
  .header-user-chip .header-user-name { color: #ccc; font-size: 13px; font-weight: 500; position: static; }
  .header-user-chip svg { fill: #999; flex-shrink: 0; }
  .settings-btn { display: none; }
  .threads-btn { right: 52px; color: #bbb; font-size: 13px; border: 1px solid #333; border-radius: 999px; padding: 5px 10px; }
  .new-btn { left: 16px; color: #bbb; font-size: 13px; border: 1px solid #333; border-radius: 999px; padding: 5px 10px; }
  .delete-thread-btn { position: absolute; left: 108px; background: none; border: 1px solid #333; border-radius: 999px; color: #777; font-size: 12px; padding: 5px 10px; cursor: pointer; font-family: 'DM Sans', sans-serif; }
  .delete-thread-btn:hover { border-color: #7f1d1d; color: #f87171; }
  .settings-btn svg { width: 22px; height: 22px; fill: #bbb; }
  .overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 100; justify-content: center; align-items: center; padding: 16px; }
  .overlay.open { display: flex; }
  .sheet-overlay { display: none; position: fixed; inset: 0; z-index: 95; background: rgba(0,0,0,0.55); }
  .sheet-overlay.open { display: block; }
  .threads-sheet {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 96;
    background: #131313; border-top: 1px solid #292929; border-top-left-radius: 18px; border-top-right-radius: 18px;
    transform: translateY(102%); transition: transform 0.18s ease; max-height: 58dvh;
    display: flex; flex-direction: column;
    box-shadow: 0 -16px 40px rgba(0,0,0,0.45);
  }
  .threads-sheet.open { transform: translateY(0); }
  .threads-sheet-handle { width: 42px; height: 4px; background: #3b3b3b; border-radius: 999px; margin: 10px auto 8px; }
  .threads-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 0 14px 10px; }
  .threads-sheet-title { color: #f2f2f2; font-size: 14px; font-weight: 600; }
  .threads-sheet-close { color: #bbb; background: #1e1e1e; border: 1px solid #333; border-radius: 999px; padding: 5px 10px; font-size: 12px; }
  .threads-sheet-body { padding: 0 14px 14px; overflow-y: auto; }
  /* ── Watchlist sheet ── */
  .watchlist-sheet { left: 50% !important; right: auto !important; width: 100% !important; max-width: 480px !important; transform: translateX(-50%) translateY(102%) !important; }
  .watchlist-sheet.open { transform: translateX(-50%) translateY(0) !important; }
  .wl-item { border-bottom: 1px solid #1e1e1e; }
  .wl-item .wl-row { border-bottom: none; }
  .wl-alert-row { display: flex; align-items: center; gap: 6px; padding: 3px 0 3px 52px; }
  .wl-alert-cond { font-size: 11px; flex: 1; }
  .wl-alert-cond.below { color: #f87171; }
  .wl-alert-cond.above { color: #4ade80; }
  .wl-add-row { display: flex; gap: 8px; margin-bottom: 14px; }
  .wl-add-input { width: 100%; background: #1a1a1a; border: 1px solid #2a2a2a; border-radius: 8px; color: #e0e0e0; font-size: 13px; padding: 8px 10px; font-family: 'DM Sans', sans-serif; outline: none; text-transform: uppercase; box-sizing: border-box; }
  .wl-add-input::placeholder { text-transform: none; color: #bbb; }
  .wl-add-input:focus { border-color: #2563eb; }
  .wl-add-btn { background: #2563eb; border: none; border-radius: 8px; color: #fff; font-size: 13px; font-weight: 600; padding: 8px 14px; cursor: pointer; font-family: 'DM Sans', sans-serif; white-space: nowrap; }
  .wl-add-btn:hover { background: #1d4ed8; }
  .wl-add-wrap { position: relative; flex: 1; min-width: 120px; }
  .wl-add-wrap .wl-add-input { width: 100%; }
  .wl-autocomplete { position: absolute; top: 100%; left: 0; right: 0; width: 280px; background: #1a1a1a; border: 1px solid #2a2a2a; border-radius: 8px; margin-top: 4px; max-height: 240px; overflow-y: auto; z-index: 100; display: none; }
  .wl-autocomplete.open { display: block; }
  .wl-ac-item { display: flex; gap: 8px; align-items: center; padding: 8px 10px; cursor: pointer; }
  .wl-ac-item:hover { background: #222; }
  .wl-ac-ticker { font-size: 13px; font-weight: 700; color: #e0e0e0; min-width: 48px; }
  .wl-ac-name { font-size: 12px; color: #bbb; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .wl-import-btn { background: none; border: 1px solid #2a2a2a; border-radius: 8px; color: #bbb; font-size: 13px; font-weight: 600; padding: 8px 12px; cursor: pointer; font-family: 'DM Sans', sans-serif; white-space: nowrap; }
  .wl-import-btn:hover { border-color: #2563eb; color: #e0e0e0; }
  .wl-import-status { font-size: 12px; padding: 8px 0; margin-bottom: 8px; border-radius: 6px; }
  .wl-import-status.success { color: #4ade80; }
  .wl-import-status.error { color: #f87171; }
  .wl-row { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid #1e1e1e; cursor: pointer; }
  .wl-row:hover { background: #111; margin: 0 -14px; padding: 10px 14px; }
  .wl-ticker { font-size: 13px; font-weight: 700; color: #e0e0e0; min-width: 52px; }
  .wl-name { font-size: 12px; color: #bbb; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .wl-price { font-size: 13px; font-weight: 600; color: #e0e0e0; text-align: right; min-width: 64px; }
  .wl-change { font-size: 11px; text-align: right; min-width: 80px; }
  .wl-change.pos { color: #4ade80; }
  .wl-change.neg { color: #f87171; }
  .wl-remove { background: none; border: none; color: #bbb; font-size: 15px; cursor: pointer; padding: 2px 4px; border-radius: 4px; flex-shrink: 0; line-height: 1; }
  .wl-remove:hover { color: #f87171; }
  .wl-section-title { font-size: 10px; font-weight: 600; color: #bbb; text-transform: uppercase; letter-spacing: 0.06em; padding: 14px 0 6px; }
  .wl-empty { font-size: 12px; color: #bbb; padding: 12px 0; text-align: center; }
  .wl-loading { font-size: 12px; color: #bbb; padding: 12px 0; }
  .wl-error { font-size: 11px; color: #f87171; }
  /* ── end watchlist ── */
  .threads-inline-actions { display: flex; gap: 8px; margin-bottom: 10px; }
  .threads-inline-actions .secondary-btn {
    margin-bottom: 0; background: #1d1d1d; border: 1px solid #333; color: #fff;
    border-radius: 10px; padding: 9px 10px; font-size: 13px; cursor: pointer; width: 100%;
    font-family: 'DM Sans', sans-serif;
  }
  .settings-panel { background: #1a1a1a; border: 1px solid #333; border-radius: 16px; padding: 24px; width: 100%; max-width: 380px; max-height: 85vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  #settingsPanel { max-width: 860px; padding: 28px; }
  .settings-panel h3 { color: #fff; font-size: 16px; margin-bottom: 8px; }
  .settings-panel .section-title {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
  }
  .settings-panel .sub { color: #ccc; font-size: 14px; margin-bottom: 16px; }
  .settings-panel select, .settings-panel input, .settings-panel textarea {
    width: 100%; background: #111; color: #fff; border: 1px solid #333; border-radius: 10px;
    padding: 10px 12px; font-size: 14px; font-family: 'DM Sans', sans-serif; outline: none; margin-bottom: 12px;
  }
  .settings-panel select {
    appearance: auto;
    -webkit-appearance: menulist;
    position: relative;
    z-index: 1;
    touch-action: manipulation;
  }
  /* Custom experience lens dropdown */
  .custom-exp-dropdown { position: relative; width: 100%; margin-bottom: 12px; }
  .custom-exp-trigger {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 12px; background: #111; color: #fff;
    border: 1px solid #333; border-radius: 10px; cursor: pointer;
    font-size: 14px; font-family: 'DM Sans', sans-serif; user-select: none;
  }
  .custom-exp-trigger:hover { border-color: #ccc; }
  .custom-exp-arrow { font-size: 10px; opacity: 0.6; transition: transform 0.15s; flex-shrink: 0; margin-left: 8px; }
  .custom-exp-dropdown.open .custom-exp-arrow { transform: rotate(180deg); }
  .custom-exp-list {
    display: none; position: absolute; top: calc(100% + 3px); left: 0; right: 0;
    max-height: 220px; overflow-y: auto;
    background: #1a1a1a; border: 1px solid #444; border-radius: 10px;
    z-index: 9999; box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  }
  .custom-exp-dropdown.open .custom-exp-list { display: block; }
  .custom-exp-item {
    padding: 9px 12px; cursor: pointer; font-size: 14px;
    font-family: 'DM Sans', sans-serif; color: #ccc;
  }
  .custom-exp-item:hover { background: #2a2a2a; color: #fff; }
  .custom-exp-item.selected { background: #222; color: #a0a8f8; }
  .settings-panel textarea { resize: vertical; min-height: 84px; }
  .settings-panel .test-btn, .settings-panel .close-btn, .settings-panel .secondary-btn {
    width: 100%; color: #fff; border-radius: 10px; padding: 10px; font-size: 14px;
    font-family: 'DM Sans', sans-serif; cursor: pointer; margin-bottom: 12px;
  }
  .settings-panel .test-btn, .settings-panel .secondary-btn { background: #222; border: 1px solid #333; }
  .settings-panel .secondary-btn.pending-save {
    background: #2563eb;
    border-color: #60a5fa;
    box-shadow: 0 0 0 1px rgba(96,165,250,0.22), 0 10px 24px rgba(37,99,235,0.22);
  }
  .settings-panel .policy-link { color: #93c5fd; text-decoration: none; }
  .settings-panel .policy-link:hover { text-decoration: underline; }
  .settings-panel .close-btn { background: #2563eb; border: none; }
  .settings-panel .danger { background: #2563eb; border: none; }
  .auth-mode-tabs {
    display: flex;
    gap: 8px;
    padding: 4px;
    margin: 0 0 14px;
    background: #111;
    border: 1px solid #2b2b2b;
    border-radius: 14px;
  }
  .auth-mode-tab {
    flex: 1;
    background: transparent;
    border: 1px solid transparent;
    color: #cbd5e1;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
  }
  .auth-mode-tab.active {
    background: linear-gradient(180deg, #2d6bff 0%, #1d4ed8 100%);
    border-color: #60a5fa;
    color: #fff;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.28);
  }
  .auth-support-row {
    display: flex;
    justify-content: flex-end;
    margin: -2px 0 12px;
  }
  .auth-link-btn {
    background: none;
    border: none;
    color: #93c5fd;
    font-size: 12px;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    padding: 0;
  }
  .auth-link-btn:hover { text-decoration: underline; }
  .auth-helper {
    color: #7d7d7d;
    font-size: 12px;
    margin: -4px 0 12px;
    line-height: 1.45;
  }
  .auth-divider {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 2px 0 10px;
  }
  .auth-divider::before,
  .auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #333;
  }
  .auth-divider span {
    color: #ccc;
    font-size: 12px;
  }
  .onboarding-panel {
    max-width: 860px;
    padding: 28px;
  }
  .onboarding-hero {
    margin-bottom: 18px;
  }
  .onboarding-kicker {
    color: #93c5fd;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
  }
  .onboarding-hero h3 {
    font-size: 28px;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
  }
  .onboarding-hero .sub {
    color: #bcc7d6;
    font-size: 14px;
    line-height: 1.6;
    max-width: 720px;
    margin-bottom: 0;
  }
  .onboarding-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 16px;
  }
  .onboarding-section {
    background: #121212;
    border: 1px solid #2b2b2b;
    border-radius: 16px;
    padding: 18px;
  }
  .onboarding-section-wide {
    grid-column: 1 / -1;
  }
  .onboarding-section-label {
    color: #fff;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
  }
  .onboarding-section .sub {
    color: #b8c1cc;
    margin-bottom: 14px;
    font-size: 13px;
    line-height: 1.55;
  }
  .onboarding-panel .settings-note {
    color: #adb6c2;
  }
  .onboarding-panel input::placeholder,
  .onboarding-panel textarea::placeholder {
    color: #8d97a4;
  }
  .onboarding-chip-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
  }
  .onboarding-chip {
    background: #181a1f;
    border: 1px solid #343945;
    border-radius: 999px;
    padding: 9px 12px;
    font-size: 12px;
    color: #eef2f8;
    text-align: center;
  }
  .onboarding-footer {
    margin-top: 16px;
  }
  @media (max-width: 760px) {
    .onboarding-panel {
      max-width: 100%;
      padding: 22px 18px;
    }
    .onboarding-grid {
      grid-template-columns: 1fr;
    }
    .onboarding-section-wide {
      grid-column: auto;
    }
    .onboarding-chip-grid {
      grid-template-columns: 1fr 1fr;
    }
  }
  .settings-section-divider { margin: 16px 0 14px; height: 1px; background: #2b2b2b; }
  .stack-row { display:flex; gap:8px; margin-bottom:12px; }
  .stack-row .secondary-btn { flex:1; margin-bottom:0; }
  .anthropic-help { color:#cbd5e1; font-size:12px; line-height:1.55; margin:-6px 0 12px; }
  .greeting-box { margin-top: 14px; border-top: 1px solid #2b2b2b; padding-top: 14px; }
  .greeting-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:6px; }
  .greeting-header h3 { margin:0; }
  .toggle-wrap { position:relative; width:44px; height:24px; flex-shrink:0; }
  .toggle-wrap input { opacity:0; width:0; height:0; position:absolute; }
  .toggle-wrap .slider { position:absolute; cursor:pointer; inset:0; background:#333; border-radius:24px; transition:.2s; }
  .toggle-wrap input:checked + .slider { background:#2563eb; }
  .toggle-wrap .slider:before { position:absolute; content:""; height:18px; width:18px; left:3px; bottom:3px; background:#fff; border-radius:50%; transition:.2s; }
  .toggle-wrap input:checked + .slider:before { transform:translateX(20px); }
  .greeting-fields { display:none; margin-top:10px; }
  .greeting-fields.visible { display:block; }
  .day-row { display:flex; gap:6px; margin-bottom:12px; }
  .day-btn { flex:1; text-align:center; padding:6px 0; background:#222; border:1px solid #333; border-radius:8px; font-size:12px; font-weight:600; color:#ccc; cursor:pointer; user-select:none; }
  .day-btn.active { background:#1e3a5f; border-color:#2563eb; color:#fff; }
  .threads-box { margin-top: 14px; border-top: 1px solid #2b2b2b; padding-top: 14px; }
  .settings-note { color:#ccc; font-size:14px; margin: -6px 0 12px; line-height:1.45; }
  .settings-status { color:#cbd5e1; font-size:12px; min-height:18px; margin:-4px 0 12px; }
  .settings-status.error { color:#fca5a5; }
  .threads-list { display: flex; flex-direction: column; gap: 8px; max-height: 180px; overflow-y: auto; }
  .thread-row { display: flex; gap: 8px; align-items: stretch; }
  .thread-item {
    flex: 1; text-align: left; background: #111; color: #ddd; border: 1px solid #2d2d2d;
    border-radius: 10px; padding: 10px 12px; cursor: pointer;
  }
  .thread-item.active { border-color: #2563eb; color: #fff; }
  .thread-item .title { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .thread-item .meta { font-size: 11px; color: #7f7f7f; margin-top: 4px; }
  .thread-delete {
    flex: 0 0 auto; min-width: 64px; background: #1a1012; color: #fca5a5; border: 1px solid #3a2024;
    border-radius: 10px; padding: 0 12px; cursor: pointer; font-size: 12px; font-weight: 600;
  }
  .thread-delete:hover { border-color: #7f1d1d; color: #fecaca; }
  .messages { flex: 1; overflow-y: auto; padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 10px; -webkit-overflow-scrolling: touch; }
  .scheduled-result-pill {
    position: absolute;
    left: 50%;
    bottom: 88px;
    transform: translate(-50%, 10px);
    z-index: 95;
    display: none;
    border: 1px solid rgba(96,165,250,0.46);
    border-radius: 999px;
    background: rgba(15,23,42,0.94);
    color: #dbeafe;
    box-shadow: 0 12px 34px rgba(0,0,0,0.42);
    padding: 8px 13px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
  }
  .scheduled-result-pill.open {
    display: inline-flex;
    animation: scheduledPillIn 0.18s ease-out forwards;
  }
  @keyframes scheduledPillIn {
    from { opacity: 0; transform: translate(-50%, 10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
  }
  .msg {
    max-width: 88%;
    padding: 10px 13px 24px;
    border-radius: 16px;
    font-size: 15px;
    line-height: 1.42;
    letter-spacing: -0.01em;
    word-wrap: break-word;
    position: relative;
    overflow-wrap: anywhere;
  }
  .msg.user {
    align-self: flex-end;
    background: #2563eb;
    color: #fff;
    border-bottom-right-radius: 4px;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    word-break: normal;
    font-weight: 400;
    line-height: 1.36;
    letter-spacing: -0.005em;
    padding: 9px 12px;
    color: #f8fbff;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .msg.user.msg-nowrap { white-space: nowrap; overflow-wrap: normal; word-break: normal; width: fit-content; }
  .msg-actions {
    align-self: flex-end;
    display: flex;
    gap: 6px;
    margin-top: -4px;
    margin-bottom: 2px;
  }
  .msg-actions button {
    background: #1e3a6e;
    color: #c8deff;
    border: none;
    border-radius: 12px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    letter-spacing: 0.02em;
  }
  .msg-actions button:active {
    background: #163060;
  }
  .msg-actions.bot-actions { align-self: flex-start; }
  .copy-btn { position:absolute; bottom:6px; right:8px; background:none; border:none; padding:2px; cursor:pointer; opacity:0.65; transition:opacity .15s; color:#ccc; }
  .copy-btn.copy-btn-top { bottom:auto; top:6px; }
  .msg-user-container { align-self:center; display:flex; flex-direction:column; align-items:flex-end; gap:2px; max-width:680px; width:100%; box-sizing:border-box; }
  .msg-user-container .msg.user { align-self:unset; }
  .msg-bot-container { align-self:center; display:flex; flex-direction:column; align-items:flex-start; gap:2px; max-width:680px; width:100%; box-sizing:border-box; }
  .msg-bot-container .msg.bot { align-self:unset; padding-bottom:10px; }
  .scheduled-result-label {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0 0 4px 2px;
    color: #a8b8d8;
    font-size: 11px;
    line-height: 1.3;
  }
  .scheduled-result-eyebrow {
    border: 1px solid rgba(96,165,250,0.42);
    border-radius: 999px;
    padding: 2px 7px;
    color: #bfdbfe;
    background: rgba(37,99,235,0.14);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .scheduled-result-detail { color: #93a4c5; }
  .copy-btn-below { position:static; opacity:0.45; padding:2px 4px; }
  .copy-btn:hover { opacity:1; color:#fff; }
  .copy-btn:active { opacity:1; color:#fff; }
  .copy-btn svg { display:block; width:15px; height:15px; }
  .msg.bot {
    align-self: flex-start;
    background: #1b1b1b;
    color: #ececec;
    border-bottom-left-radius: 4px;
    border: 1px solid #2b2b2b;
  }
  .msg.bot strong { color: #fff; font-weight: 600; }
  .msg.bot em { font-style: italic; color: #dddddd; }
  .msg.bot p { margin: 0; }
  .msg.bot p + p { margin-top: 0.45rem; }
  .msg.bot p.section-label {
    margin-top: 0.9rem;
    margin-bottom: 0.18rem;
    color: #f5f5f5;
  }
  .msg.bot p.section-label:first-child { margin-top: 0; }
  .msg.bot p.section-label strong {
    display: inline-block;
    font-weight: 600;
    letter-spacing: -0.012em;
  }
  .msg.bot p + p.section-label,
  .msg.bot ul + p.section-label,
  .msg.bot ol + p.section-label,
  .msg.bot blockquote + p.section-label {
    margin-top: 0.95rem;
  }
  .msg.bot p.section-label + p,
  .msg.bot p.section-label + ul,
  .msg.bot p.section-label + ol,
  .msg.bot p.section-label + blockquote {
    margin-top: 0.16rem;
  }
  .msg.bot ul, .msg.bot ol { margin: 0.25rem 0 0; }
  .msg.bot ul {
    list-style: none;
    padding-left: 0;
  }
  .msg.bot ol {
    padding-left: 1.1rem;
    list-style-position: outside;
  }
  .msg.bot li {
    margin: 0.12rem 0;
    position: relative;
  }
  .msg.bot ul li {
    padding-left: 0.95rem;
  }
  .msg.bot ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0.02em;
    color: #d7d7d7;
    font-size: 0.9em;
    line-height: 1.42;
  }
  .msg.bot ol li { padding-left: 0.12rem; }
  .msg.bot ol li::marker { color: #d7d7d7; }
  .msg.bot h1, .msg.bot h2, .msg.bot h3 {
    margin: 0;
    color: #fff;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.015em;
  }
  .msg.bot h1 { font-size: 16px; }
  .msg.bot h2 { font-size: 15px; }
  .msg.bot h3 { font-size: 14px; }
  .msg.bot p + h1, .msg.bot p + h2, .msg.bot p + h3,
  .msg.bot ul + h1, .msg.bot ul + h2, .msg.bot ul + h3,
  .msg.bot ol + h1, .msg.bot ol + h2, .msg.bot ol + h3,
  .msg.bot blockquote + h1, .msg.bot blockquote + h2, .msg.bot blockquote + h3,
  .msg.bot .msg-divider + h1, .msg.bot .msg-divider + h2, .msg.bot .msg-divider + h3,
  .msg.bot .msg-spacer + h1, .msg.bot .msg-spacer + h2, .msg.bot .msg-spacer + h3 {
    margin-top: 0.92rem;
  }
  .msg.bot h1 + p, .msg.bot h2 + p, .msg.bot h3 + p,
  .msg.bot h1 + ul, .msg.bot h2 + ul, .msg.bot h3 + ul,
  .msg.bot h1 + ol, .msg.bot h2 + ol, .msg.bot h3 + ol { margin-top: 0.35rem; }
  .msg.bot blockquote {
    margin: 0;
    padding-left: 10px;
    border-left: 2px solid #3a3a3a;
    color: #cfcfcf;
  }
  .msg.bot blockquote + p, .msg.bot p + blockquote { margin-top: 0.45rem; }
  .msg.bot .msg-divider {
    height: 1px;
    background: #313131;
    border-radius: 999px;
    margin: 0.45rem 0 0.35rem;
    opacity: 0.85;
  }
  .msg.bot .msg-spacer { height: 0.2rem; }
  .msg.bot .msg-table-wrap { overflow-x: auto; margin: 0.45rem 0 0; }
  .msg.bot table { border-collapse: collapse; font-size: 12px; width: 100%; }
  .msg.bot th { padding: 5px 10px; text-align: left; color: #bbb; font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.03em; border-bottom: 2px solid #333; }
  .msg.bot td { padding: 4px 10px; color: #e0e0e0; border-bottom: 1px solid #1e1e1e; }
  .msg.bot tbody tr:hover { background: #1a1a1a; }
  .msg.bot code { background: #111; padding: 2px 6px; border-radius: 4px; font-size: 13px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
  .msg.bot pre {
    background: #111; padding: 10px 12px; border-radius: 8px; overflow-x: auto; margin: 8px 0 0;
    font-size: 13px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; border: 1px solid #333; white-space: pre;
  }
  .msg.bot pre code { background: none; padding: 0; }
  .msg.bot a.chat-link {
    color: #93c5fd;
    text-decoration: underline;
    word-break: break-word;
    white-space: normal;
  }
  .msg.bot a.chat-link:hover { text-decoration: underline; }
  .weather-card {
    margin-top: 8px;
    padding: 10px;
    border: 1px solid #2f3d52;
    border-radius: 12px;
    background: linear-gradient(180deg, #132034 0%, #101722 100%);
    color: #eaf2ff;
  }
  .weather-card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
  }
  .weather-card-loc { font-size: 12px; color: #c9dcff; font-weight: 600; }
  .weather-card-time { font-size: 11px; color: #96aed4; }
  .weather-card-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 7px;
  }
  .weather-main-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
  .weather-icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
  }
  .weather-temp { font-size: 24px; line-height: 1; font-weight: 700; letter-spacing: -0.02em; color: #fff; }
  .weather-condition { font-size: 12px; color: #cfe0ff; text-align: right; }
  .weather-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 10px;
    border-top: 1px solid rgba(150, 174, 212, 0.18);
    padding-top: 7px;
  }
  .weather-cell { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
  .weather-k { color: #9fb5d8; }
  .weather-v { color: #edf3ff; font-weight: 500; text-align: right; }
  .sources { margin-top: 8px; padding-top: 7px; border-top: 1px solid #2f2f2f; display: flex; flex-direction: column; gap: 5px; }
  .sources-title { font-size: 11px; color: #8b8b8b; letter-spacing: 0.03em; text-transform: uppercase; }
  .source-link {
    color: #93c5fd; text-decoration: none; font-size: 12px; line-height: 1.35;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .source-link:hover { text-decoration: underline; }
  .speak-btn { background: none; border: none; cursor: pointer; padding: 4px 0 0; margin-top: 4px; display: block; }
  .speak-btn svg { width: 18px; height: 18px; fill: #ccc; }
  .speak-btn.playing svg { fill: #2563eb; }
  .typing-wrap { display: none; max-width: 680px; width: 100%; margin: 0 auto 8px; box-sizing: border-box; }
  .typing { display: inline-flex; padding: 10px 16px; background: #1b1b1b; border-radius: 16px; border-bottom-left-radius: 4px; border: 1px solid #2b2b2b; }
  .typing span { display: inline-block; width: 8px; height: 8px; background: #ccc; border-radius: 50%; margin: 0 2px; animation: bounce 1.4s infinite; }
  .typing span:nth-child(2) { animation-delay: 0.2s; } .typing span:nth-child(3) { animation-delay: 0.4s; }
  @keyframes bounce { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-6px); } }
  .composer { background: transparent; border-top: none; flex-shrink: 0; padding: 8px 0 12px; max-width: 680px; margin: 0 auto; width: 100%; box-sizing: border-box; }
  .cmd-palette { display: none; margin: 0 8px; border-radius: 8px 8px 0 0; overflow: hidden; border: 1px solid #2a2a40; border-bottom: none; background: #161625; }
  .cmd-palette-item { display: flex; align-items: center; gap: 16px; padding: 9px 14px; cursor: pointer; }
  .cmd-palette-item:hover, .cmd-palette-item.cmd-active { background: #22223a; }
  .cmd-palette-cmd { font-family: monospace; color: #818cf8; min-width: 110px; font-size: 13px; }
  .cmd-palette-desc { color: #bbb; font-size: 13px; }
  .attachment-strip {
    display: none;
    padding: 10px 16px 0;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .attachment-strip.visible { display: flex; }
  .attachment-card {
    position: relative;
    width: 76px;
    height: 76px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #2f2f2f;
    background: #171717;
  }
  .attachment-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .attachment-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.72);
    color: #fff;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
  }
  .attachment-generic {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    color: #eef5ff;
    font-size: 12px;
  }
  .attachment-inline-grid {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 300px;
  }
  .attachment-inline-grid img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.18);
  }
  .attachment-doc-tile {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid rgba(255,255,255,0.12);
    overflow: hidden;
  }
  .attachment-doc-tile .doc-tile-icon {
    width: 28px;
    height: 28px;
    opacity: 0.88;
  }
  .attachment-doc-tile .doc-tile-ext {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.92);
  }
  .attachment-doc-tile .doc-tile-name {
    font-size: 8px;
    color: rgba(255,255,255,0.5);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    width: 100%;
    text-align: center;
    padding: 0 6px;
    box-sizing: border-box;
  }
  .input-area { padding: 0; padding-bottom: max(4px, env(safe-area-inset-bottom)); background: #1a1a1a; border: 1px solid #2a2a2a; border-radius: 24px; display: flex; gap: 6px; align-items: flex-end; flex-shrink: 0; padding: 6px 6px 6px 12px; }
  .input-area textarea {
    flex: 1; background: transparent; border: none; padding: 8px 4px;
    color: #fff; font-family: 'DM Sans', sans-serif; font-size: 15px; resize: none; max-height: 120px; line-height: 1.4; outline: none;
  }
  .input-area textarea:focus { border-color: transparent; }
  .input-area textarea::placeholder { color: #888; }
  .btn { width: 36px; height: 36px; border-radius: 50%; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; transition: transform 0.1s; }
  .btn:active { transform: scale(0.92); }
  .btn-send { background: #2563eb; } .btn-send svg { fill: #fff; width: 18px; height: 18px; }
  .btn-mic { background: transparent; } .btn-mic svg { fill: #888; width: 18px; height: 18px; }
  .btn-mic:hover svg { fill: #ccc; }
  .btn-attach { background: transparent; } .btn-attach svg { fill: #888; width: 18px; height: 18px; }
  .btn-attach:hover svg { fill: #ccc; }
  .btn-mic.recording { background: #dc2626; animation: pulse 1.5s infinite; }
  .btn[disabled] { opacity: 0.5; cursor: not-allowed; }
  .status-pill {
    position: fixed; top: 12px; left: 50%; transform: translateX(-50%); background: rgba(15,23,42,0.85);
    color: #cbd5e1; border: 1px solid #334155; border-radius: 999px; padding: 6px 10px; font-size: 11px; z-index: 120; display: none;
  }
  @keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(220,38,38,0.5); } 50% { box-shadow: 0 0 0 10px rgba(220,38,38,0); } }
  /* ── Desktop sidebar + wider chat ── */
  .ws-layout { flex: 1; display: flex; flex-direction: column; min-height: 0; }
  .ws-sidebar { display: none; }
  .ws-chat { flex: 1; display: flex; flex-direction: column; min-height: 0; position: relative; }
  .ws-chat .messages { flex: 1; overflow-y: auto; }
  .sidebar-toggle { display: none; }
  @media (min-width: 760px) {
    html { background: #0a0a0a; }
    body { max-width: 1080px; margin: 0 auto; }
  }
  @media (min-width: 900px) {
    body { max-width: none; }
    .ws-layout { flex-direction: row; }
    .ws-sidebar { display: flex; flex-direction: column; width: 260px; flex-shrink: 0; background: #0a0a0a; border-right: 1px solid #1e1e1e; min-height: 0; transition: width 0.2s ease, opacity 0.2s ease; overflow: hidden; }
    .ws-sidebar.collapsed { width: 0; border-right: none; opacity: 0; }
    .threads-btn { display: none !important; }
    .sidebar-toggle { display: flex; align-items: center; justify-content: center; position: absolute; left: 16px; background: none; border: none; cursor: pointer; padding: 4px; color: #bbb; }
    .sidebar-toggle:hover { color: #e0e0e0; }
    .new-btn { left: 48px; }
    .delete-thread-btn { left: 136px; }
  }
  /* ── Centered composer on empty chat ── */
  .ws-chat-empty .messages { display: none; }
  .ws-chat-empty .typing-wrap { display: none; }
  .ws-chat-empty { justify-content: center; align-items: center; padding: 0 24px; }
  .ws-chat-greeting { display: none; font-size: 28px; font-weight: 500; color: #e0e0e0; margin-bottom: 20px; letter-spacing: -0.02em; }
  .ws-chat-empty .ws-chat-greeting { display: block; }
  .ws-chat-empty .composer { width: 100%; max-width: 680px; padding: 0; }
  .ws-chat-empty .input-area { border-color: #333; }
  .ws-sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 10px; flex-shrink: 0; }
  .ws-sidebar-title { font-size: 13px; font-weight: 600; color: #999; text-transform: uppercase; letter-spacing: 0.05em; }
  .ws-sidebar-search { padding: 0 14px 10px; flex-shrink: 0; }
  .ws-sidebar-search-input { width: 100%; background: #111; border: 1px solid #222; border-radius: 8px; color: #e0e0e0; font-size: 12px; padding: 7px 10px; font-family: 'DM Sans', sans-serif; outline: none; box-sizing: border-box; }
  .ws-sidebar-search-input::placeholder { color: #555; }
  .ws-sidebar-search-input:focus { border-color: #2563eb; }
  .ws-sidebar .threads-list { flex: 1; overflow-y: auto; padding: 0 10px 14px; max-height: none; gap: 4px; }
  .ws-sidebar .thread-row { gap: 0; }
  .ws-sidebar .thread-item { background: transparent; border: none; border-radius: 8px; padding: 8px 10px; font-size: 12px; overflow: hidden; }
  .ws-sidebar .thread-item:hover { background: #151515; }
  .ws-sidebar .thread-item.active { background: #1a1a2e; border: none; }
  .ws-sidebar .thread-item .title { font-size: 13px; color: #ccc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ws-sidebar .thread-item.active .title { color: #fff; }
  .ws-sidebar .thread-item .meta { font-size: 11px; color: #555; margin-top: 2px; }
  .ws-sidebar .thread-delete { display: none; }
  .messages::-webkit-scrollbar, .threads-list::-webkit-scrollbar { width: 4px; }
  .messages::-webkit-scrollbar-thumb, .threads-list::-webkit-scrollbar-thumb { background: #333; border-radius: 2px; }
  #installBanner {
    display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
    background: #1a1a2e; border-top: 1px solid #2563eb;
    padding: 14px 16px; padding-bottom: max(14px, env(safe-area-inset-bottom));
    display: none; align-items: center; gap: 12px;
    animation: slideUp 0.3s ease;
  }
  #installBanner.visible { display: flex; }
  @keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
  #installBanner .install-icon { font-size: 24px; flex-shrink: 0; }
  #installBanner .install-text { flex: 1; }
  #installBanner .install-text strong { display: block; color: #fff; font-size: 14px; }
  #installBanner .install-text span { color: #ccc; font-size: 12px; }
  #installBanner .install-btn { background: #2563eb; color: #fff; border: none; border-radius: 8px; padding: 8px 16px; font-size: 13px; font-weight: 600; cursor: pointer; flex-shrink: 0; }
  #installBanner .install-dismiss { background: none; border: none; color: #ccc; font-size: 20px; cursor: pointer; padding: 4px; flex-shrink: 0; line-height: 1; }
  /* ── Slash-command data cards ─────────────────────────────────────────── */
  .kilby-card { margin-top: 8px; padding: 12px; border: 1px solid #2a2a2a; border-radius: 12px; background: #161616; color: #e0e0e0; font-size: 13px; }
  .kilby-card-label { font-size: 10px; color: #bbb; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
  .kilby-card-divider { border: none; border-top: 1px solid #252525; margin: 8px 0; }
  .kilby-card-row { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; font-size: 12px; }
  .kilby-card-key { color: #bbb; }
  .kilby-card-val { color: #e0e0e0; font-weight: 500; text-align: right; }
  .kilby-card-val.pos { color: #4ade80; }
  .kilby-card-val.neg { color: #f87171; }
  .kilby-estimate-table { display: flex; flex-direction: column; gap: 4px; margin-top: 2px; }
  .kilby-estimate-header, .kilby-estimate-row { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 0.8fr); gap: 10px; font-size: 12px; align-items: baseline; }
  .kilby-estimate-header { color: #9ca3af; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
  .kilby-estimate-header span:nth-child(2), .kilby-estimate-header span:nth-child(3) { text-align: right; }
  .kilby-estimate-period { color: #bbb; }
  .kilby-estimate-val { color: #e0e0e0; font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
  .stock-price { font-size: 22px; font-weight: 700; color: #fff; letter-spacing: -0.02em; line-height: 1; }
  .stock-meta { font-size: 12px; color: #ccc; margin-top: 2px; }
  .fred-sparkline { font-family: monospace; font-size: 15px; letter-spacing: -0.04em; color: #5b8fd4; margin: 6px 0 2px; overflow: hidden; white-space: nowrap; }
  .pulse-article { padding: 7px 0; }
  .pulse-article + .pulse-article { border-top: 1px solid #222; }
  .pulse-article-title { color: #e0e0e0; font-weight: 500; font-size: 13px; line-height: 1.35; }
  .pulse-article-byline { color: #bbb; font-size: 11px; margin-top: 2px; }
  .pulse-article-summary { color: #bbb; font-size: 12px; margin-top: 3px; line-height: 1.4; }
  .pulse-article-link { color: #60a5fa; font-size: 11px; text-decoration: none; display: inline-block; margin-top: 3px; }
  .pulse-article-link:hover { text-decoration: underline; }
  .code-entry { padding: 7px 0; }
  .code-entry + .code-entry { border-top: 1px solid #222; }
  .code-entry-header { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
  .code-tag { font-family: monospace; font-size: 12px; color: #93c5fd; font-weight: 700; background: rgba(147,197,253,0.08); border-radius: 4px; padding: 1px 5px; }
  .code-reason { color: #e0e0e0; font-size: 12px; font-weight: 500; }
  .code-desc { color: #ccc; font-size: 11px; margin-top: 3px; line-height: 1.4; }
  .code-detail-row { display: flex; gap: 6px; font-size: 11px; margin-top: 3px; flex-wrap: wrap; }
  .code-detail-key { color: #bbb; }
  .code-detail-val { color: #ccc; }
  .kilby-card-source { font-size: 10px; color: #ccc; margin-top: 8px; }

  /* ── Credit balance pill ── */
  .credit-pill { position: absolute; right: 195px; top: 50%; transform: translateY(-50%); background: none; border: 1px solid #92400e; border-radius: 999px; color: #fbbf24; font-size: 11px; font-weight: 600; padding: 3px 9px; cursor: pointer; font-family: 'DM Sans', sans-serif; white-space: nowrap; line-height: 1.3; z-index: 2; }
  .credit-pill:hover { border-color: #b45309; background: rgba(251,191,36,0.08); }
  .credit-pill.critical { border-color: #7f1d1d; color: #f87171; }
  .credit-pill.critical:hover { border-color: #991b1b; background: rgba(248,113,113,0.08); }

  /* ── Price alerts ── */
  .alert-bell-wrap { position: absolute; right: 155px; display: flex; align-items: center; display: none; }
  .alert-bell-btn { background: none; border: none; cursor: pointer; padding: 5px 7px; border-radius: 8px; font-size: 16px; display: flex; align-items: center; gap: 4px; color: #bbb; position: relative; line-height: 1; }
  .alert-bell-btn svg { display: block; color: #f59e0b; }
  .alert-bell-btn:hover { background: #1a1a1a; }
  .alert-badge { background: #3b82f6; color: #fff; font-size: 10px; font-weight: 700; border-radius: 999px; padding: 1px 5px; line-height: 1.4; }
  .alert-popover { position: absolute; top: calc(100% + 8px); right: 0; width: 220px; background: #161616; border: 1px solid #2a2a2a; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.7); padding: 8px; z-index: 200; display: none; }
  .alert-popover.open { display: block; }
  .alert-pop-title { font-size: 10px; color: #cbd5e1; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; padding: 4px 6px 8px; }
  .alert-pop-row { display: flex; align-items: center; padding: 7px 8px; border-radius: 8px; gap: 8px; }
  .alert-pop-row.scheduled-notif { cursor: pointer; }
  .alert-pop-row:hover { background: #1f1f1f; }
  .scheduled-result-highlight { animation: scheduledResultPulse 2.8s ease-out; }
  @keyframes scheduledResultPulse {
    0% { box-shadow: 0 0 0 0 rgba(59,130,246,0.8); }
    35% { box-shadow: 0 0 0 6px rgba(59,130,246,0.18); }
    100% { box-shadow: 0 0 0 0 rgba(59,130,246,0); }
  }
  .alert-pop-sym { font-size: 13px; font-weight: 600; color: #fff; }
  .alert-pop-cond { font-size: 11px; margin-top: 1px; }
  .alert-pop-cond.below { color: #f87171; }
  .alert-pop-cond.above { color: #4ade80; }
  .alert-pop-del { background: none; border: none; color: #cbd5e1; font-size: 14px; cursor: pointer; padding: 2px 5px; border-radius: 4px; }
  .alert-pop-del:hover { color: #f87171; }
  .alert-pop-edit { background: none; border: none; color: #cbd5e1; font-size: 13px; cursor: pointer; padding: 2px 5px; border-radius: 4px; margin-left: auto; }
  .alert-pop-edit:hover { color: #60a5fa; }
  .alert-pop-empty { font-size: 12px; color: #cbd5e1; padding: 8px; text-align: center; }
  .scheduler-diag {
    margin: 10px 0 12px;
    padding: 10px;
    border: 1px solid #252b36;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(17,24,39,0.76), rgba(12,12,12,0.88));
  }
  .scheduler-diag-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
  }
  .scheduler-diag-sub {
    color: #8b95a7;
    font-size: 11px;
    line-height: 1.35;
    margin-top: 2px;
  }
  .scheduler-job-card {
    border: 1px solid #263142;
    border-radius: 10px;
    background: rgba(8,13,22,0.74);
    padding: 9px;
  }
  .scheduler-job-card + .scheduler-job-card { margin-top: 8px; }
  .scheduler-job-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 8px;
  }
  .scheduler-job-name {
    color: #f8fafc;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
  }
  .scheduler-job-meta {
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.35;
    margin-top: 2px;
  }
  .scheduler-job-id {
    color: #64748b;
    font-size: 10px;
    border: 1px solid #263142;
    border-radius: 999px;
    padding: 2px 6px;
    white-space: nowrap;
  }
  .scheduler-job-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .scheduler-job-grid div {
    border: 1px solid #202938;
    border-radius: 8px;
    padding: 6px 7px;
    background: rgba(15,23,42,0.54);
  }
  .scheduler-job-grid span {
    display: block;
    color: #7d899a;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
  }
  .scheduler-job-grid strong {
    display: block;
    color: #e5e7eb;
    font-size: 12px;
    font-weight: 700;
    overflow-wrap: anywhere;
  }
  .scheduler-job-grid .status-delivered,
  .scheduler-job-grid .status-created { color: #4ade80; }
  .scheduler-job-grid .status-skipped,
  .scheduler-job-grid .status-pending { color: #facc15; }
  .scheduler-job-grid .status-failed { color: #f87171; }
  .scheduler-job-error {
    margin-top: 8px;
    border-left: 2px solid #f87171;
    padding: 6px 8px;
    background: rgba(127,29,29,0.18);
    color: #fecaca;
    font-size: 11px;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }
  .alert-overlay { display: none; position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,0.65); }
  .alert-overlay.open { display: block; }
  .alert-modal-wrap { position: fixed; bottom: 0; left: 0; right: 0; z-index: 301; pointer-events: none; display: flex; justify-content: center; }
  .alert-modal-wrap.open { pointer-events: all; }
  .alert-modal { width: 100%; max-width: 480px; background: #131313; border-top: 1px solid #252525; border-radius: 18px 18px 0 0; transform: translateY(102%); transition: transform 0.22s cubic-bezier(.32,.72,0,1); box-shadow: 0 -20px 48px rgba(0,0,0,0.6); max-height: 80vh; display: flex; flex-direction: column; }
  .alert-modal.open { transform: translateY(0); }
  .alert-modal-handle { width: 40px; height: 4px; background: #333; border-radius: 999px; margin: 10px auto 0; flex-shrink: 0; }
  .alert-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 10px; flex-shrink: 0; }
  .alert-modal-title { font-size: 15px; font-weight: 600; color: #fff; }
  .alert-modal-close { background: #1e1e1e; border: 1px solid #333; border-radius: 999px; color: #bbb; font-size: 12px; padding: 5px 12px; cursor: pointer; font-family: 'DM Sans', sans-serif; }
  .alert-modal-body { padding: 0 18px 40px; overflow-y: auto; }
  .alert-active-box { background: #1a1a1a; border: 1px solid #252525; border-radius: 12px; padding: 14px 16px; margin-bottom: 4px; }
  .alert-active-lbl { font-size: 11px; color: #cbd5e1; margin-bottom: 5px; }
  .alert-active-desc { font-size: 16px; font-weight: 600; margin-bottom: 14px; }
  .alert-active-desc.below { color: #f87171; }
  .alert-active-desc.above { color: #4ade80; }
  .alert-active-actions { display: flex; gap: 8px; }
  .alert-action-btn { flex: 1; background: #1f2937; border: 1px solid #374151; border-radius: 8px; color: #cbd5e1; font-size: 13px; font-weight: 500; padding: 9px 0; cursor: pointer; font-family: 'DM Sans', sans-serif; text-align: center; transition: background 0.15s; }
  .alert-action-btn:hover { background: #273344; color: #fff; }
  .alert-action-btn.test:hover { border-color: #60a5fa; color: #60a5fa; }
  .alert-remove-btn { background: none; border: 1px solid #2a2a2a; border-radius: 8px; color: #cbd5e1; font-size: 13px; padding: 9px 14px; cursor: pointer; font-family: 'DM Sans', sans-serif; }
  .alert-remove-btn:hover { border-color: #f87171; color: #f87171; }
  .alert-form-ctx { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
  .alert-form-sym { font-size: 14px; font-weight: 700; color: #fff; }
  .alert-form-price { font-size: 14px; font-weight: 500; color: #cbd5e1; }
  .alert-dir-row { display: flex; background: #111; border: 1px solid #2a2a2a; border-radius: 10px; padding: 3px; margin-bottom: 14px; gap: 3px; }
  .alert-dir-btn { flex: 1; text-align: center; padding: 9px 0; border-radius: 8px; font-size: 14px; font-weight: 500; cursor: pointer; color: #cbd5e1; border: none; background: none; font-family: 'DM Sans', sans-serif; transition: all 0.15s; }
  .alert-dir-btn.below.active { background: #1f2937; color: #f87171; }
  .alert-dir-btn.above.active { background: #1f2937; color: #4ade80; }
  .alert-price-wrap { position: relative; margin-bottom: 16px; }
  .alert-price-wrap .alert-dollar { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #cbd5e1; font-size: 15px; pointer-events: none; }
  .alert-price-input { width: 100%; background: #111; border: 1px solid #333; border-radius: 10px; color: #fff; font-size: 22px; font-weight: 600; padding: 11px 14px 11px 26px; font-family: 'DM Sans', sans-serif; outline: none; }
  .alert-price-input:focus { border-color: #3b82f6; }
  .alert-set-btn { width: 100%; background: linear-gradient(180deg, #2d6bff, #1d4ed8); border: none; color: #fff; border-radius: 12px; padding: 14px; font-size: 15px; font-weight: 600; font-family: 'DM Sans', sans-serif; cursor: pointer; }
  .alert-set-btn.done { background: linear-gradient(180deg, #22c55e, #16a34a); }
  .alert-set-btn:disabled { opacity: 0.6; cursor: default; }
  .alert-card-bell-wrap { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 6px; }
  .alert-card-bell { background: none; border: none; cursor: pointer; padding: 2px 4px; border-radius: 6px; position: relative; line-height: 1; color: #4B5563; display: flex; align-items: center; transition: color 0.15s; }
  .alert-card-bell:hover { color: #93C5FD; }
  .alert-card-bell.active { color: #60A5FA; }
  @keyframes kilby-ring { 0%,100%{transform:rotate(0)} 25%{transform:rotate(-15deg)} 75%{transform:rotate(15deg)} }
  .alert-card-bell.ring { animation: kilby-ring 0.4s ease; }
