
    :root {
      --bg-app: #eef2f6;
      --bg-col: #f8fafc;
      --bg-card: #ffffff;
      --text-main: #0f172a;
      --text-muted: #475569;
      --text-subtle: #64748b;
      --border-light: #e2e8f0;
      --accent-hover: #0369a1;
      --buoy-bg: #f0f9ff;
      --buoy-border: #38bdf8;
      --nudge-bg: #fef3c7;
      --nudge-border: var(--warning);
    }
    * { box-sizing: border-box; }
    /* Font, ground, ink and size come from tokens.css; this is only what the deck adds. */
    body {
      margin: 0;
      line-height: 1.42;
      overflow-x: hidden;
      /* viewport-fit=cover lets the page reach under a notch in landscape; keep content clear of it */
      padding-left: env(safe-area-inset-left);
      padding-right: env(safe-area-inset-right);
    }
    @keyframes msnShake {
      0%, 100% { transform: translate(0, 0) rotate(0deg); }
      10%, 30%, 50%, 70%, 90% { transform: translate(-7px, -4px) rotate(-0.8deg); }
      20%, 40%, 60%, 80% { transform: translate(7px, 4px) rotate(0.8deg); }
    }
    body.msn-shaking {
      animation: msnShake 0.55s cubic-bezier(.36,.07,.19,.97) both;
    }
    .btn {
      background: #334155;
      color: #f8fafc;
      border: 1px solid #475569;
      border-radius: 5px;
      padding: 5px 9px;
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
    }
    .btn:hover { background: #475569; }
    .btn-light {
      background: #f1f5f9;
      color: #0f172a;
      border-color: #cbd5e1;
    }
    .btn-light:hover { background: #e2e8f0; }
    .btn-primary {
      background: var(--accent);
      border-color: #0369a1;
      color: #fff;
    }
    .btn-primary:hover { background: var(--accent-hover); }
    .btn-nudge {
      background: var(--warning);
      border-color: var(--warning);
      color: var(--surface);
    }
    /* TweetDeck Multi-Column Horizontal Deck */
    .deck-container {
      display: flex;
      gap: 12px;
      padding: 12px;
      height: calc(100vh - var(--orbit-topbar-h, 54px));
      min-height: 620px;
      overflow-x: auto;
      align-items: stretch;
    }
    .deck-col {
      flex: 1 0 360px;
      max-width: 480px;
      background: var(--bg-col);
      border: 1px solid var(--border);
      border-radius: 8px;
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }
    @media (max-width: 980px) {
      .deck-container {
        flex-direction: column;
        height: auto;
        /* room for the fixed tab bar: 40px buttons + 12px padding + border, plus the home indicator */
        padding-bottom: calc(68px + env(safe-area-inset-bottom));
      }
      .deck-col {
        flex: 1 1 auto;
        max-width: 100%;
      }
      .deck-col.hidden-mobile { display: none; }
    }
    .col-header {
      background: #fff;
      padding: 9px 12px;
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      font-weight: 700;
      font-size: 13.5px;
    }
    .col-scroll {
      flex: 1;
      overflow-y: auto;
      padding: 10px;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .composer-textarea {
      width: 100%;
      border: 1px solid var(--border-light);
      border-radius: 5px;
      padding: 8px;
      font-family: inherit;
      font-size: 13.5px;
      resize: vertical;
      min-height: 60px;
      outline: none;
    }
    .composer-textarea:focus { border-color: var(--accent); }
    .chip {
      font-size: 11.5px;
      padding: 3px 9px;
      border-radius: 999px;
      border: 1px solid var(--border);
      background: #f8fafc;
      cursor: pointer;
      user-select: none;
      font-weight: 600;
    }
    .chip.selected {
      background: #0284c7;
      color: #fff;
      border-color: #0369a1;
    }
    .card {
      background: var(--bg-card);
      border: 1px solid var(--border-light);
      border-radius: 7px;
      padding: 10px 12px;
      transition: border-color 0.15s;
    }
    .card.buoyed {
      background: var(--buoy-bg);
      border-left: 4px solid var(--buoy-border);
    }
    .card.circle-post {
      border-left: 4px solid var(--positive);
    }
    .card.is-read {
      opacity: 0.78;
    }
    .card-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 6px;
      margin-bottom: 4px;
    }
    .author-line {
      display: flex;
      align-items: center;
      gap: 6px;
      flex-wrap: wrap;
    }
    .avatar-dot {
      width: 24px;
      height: 24px;
      border-radius: 50%;
      color: #fff;
      font-weight: 700;
      font-size: 12px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
    .badge {
      font-size: 10.5px;
      padding: 1px 6px;
      border-radius: 4px;
      font-weight: 600;
      background: var(--pill-neutral-bg);
      color: var(--pill-neutral-ink);
    }
    .badge-buoy {
      background: var(--accent-soft);
      color: var(--accent-ink);
    }
    .badge-circle {
      background: color-mix(in srgb, var(--positive) 14%, var(--surface));
      color: var(--positive);
    }
    .badge-rss {
      background: color-mix(in srgb, var(--warning) 14%, var(--surface));
      color: var(--warning);
    }
    .badge-bsky {
      background: var(--accent-soft);
      color: var(--accent-ink);
    }
    .badge-fedi {
      background: var(--pill-neutral-bg);
      color: var(--pill-neutral-ink);
    }
    .badge-warn { background: color-mix(in srgb, var(--warning) 14%, var(--surface)); color: var(--warning); }
    .badge-bad { background: color-mix(in srgb, var(--negative) 12%, var(--surface)); color: var(--negative); }
    /* One connected cross-post account, and the plain-words status under its name. */
    .acct-row { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 6px 8px; background: var(--surface); border: 1px solid var(--border-light); border-radius: 6px; margin-top: 4px; }
    .acct-row.is-broken { border-color: var(--negative); }
    .acct-row .badge { margin-left: 6px; }
    .acct-actions { display: flex; gap: 4px; }
    .acct-health { font-size: 11.5px; margin-top: 2px; color: var(--positive); }
    .acct-row.is-broken .acct-health { color: var(--negative); }
    .connect-status.is-ok { color: var(--positive); }
    .connect-status.is-bad { color: var(--negative); }
    .connect-status.is-pending { color: var(--text-subtle); }
    .digest-box { background: var(--accent-soft); border-color: var(--accent); }
    .health-row { margin-top: 4px; }
    .digest-line { font-size: 12px; margin-top: 4px; }
    .digest-head { font-weight: 600; font-size: 12px; color: var(--text-muted); margin-top: 6px; }
    .firewall-note { margin-top: 6px; font-size: 11.5px; color: var(--text-muted); }
    .col-controls .btn { padding: 2px 6px; font-size: 11px; }
    .anchor-box {
      background: #f1f5f9;
      border: 1px solid #cbd5e1;
      border-radius: 5px;
      padding: 7px 9px;
      margin: 6px 0;
      font-size: 12px;
    }
    .reaction-bar {
      display: flex;
      align-items: center;
      gap: 5px;
      flex-wrap: wrap;
      margin-top: 8px;
    }
    .react-pill {
      font-size: 11.5px;
      padding: 2px 7px;
      border-radius: 999px;
      border: 1px solid var(--border);
      background: #f8fafc;
      cursor: pointer;
    }
    .react-pill.active {
      background: #e0f2fe;
      border-color: #0284c7;
      font-weight: 600;
    }
    .replies-box {
      margin-top: 8px;
      padding-left: 10px;
      border-left: 2px solid #cbd5e1;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    .modal-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(15, 23, 42, 0.55);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 100;
      padding: 16px;
    }
    .modal-backdrop.open { display: flex; }
    .modal {
      background: #fff;
      border-radius: 8px;
      max-width: 600px;
      width: 100%;
      padding: 16px;
      border: 1px solid var(--border);
      max-height: 85vh;
      overflow-y: auto;
    }
    .visually-hidden {
      position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
      overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
    }
    .empty-state { color: var(--text-muted); text-align: center; padding: 18px 12px; }
    .empty-state strong { display: block; color: var(--text-main); font-size: 15px; margin-bottom: 4px; }
    .onboarding { border-color: var(--accent); background: var(--accent-soft); }
    .onboarding-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
    .onboarding h3 { margin: 0; font-size: 14px; }
    .onboarding-intro { margin: 3px 0 0; font-size: 12.5px; color: var(--text-muted); }
    .onboarding ol { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
    .onboarding li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 8px; }
    .onboarding .step-mark {
      width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--accent); background: var(--surface);
      display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--accent-ink);
    }
    .onboarding li[data-done="true"] .step-mark { background: var(--positive); border-color: var(--positive); color: var(--surface); }
    .onboarding li[data-done="true"] .step-mark::before { content: ""; width: 5px; height: 9px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
    .onboarding li[data-done="true"] .step-title { text-decoration: line-through; color: var(--text-muted); }
    .onboarding .step-title { font-weight: 700; }
    .onboarding .step-text { font-size: 12.5px; color: var(--text-muted); margin: 2px 0 6px; }
    .onboarding .invite-details {
      display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; justify-items: start;
      gap: 5px 8px; margin-bottom: 8px;
    }
    .onboarding .invite-label { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--text-subtle); }
    .invite-code {
      font: 700 13px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface); border: 1px solid var(--accent);
      border-radius: 4px; padding: 3px 8px; user-select: all; overflow-wrap: anywhere; max-width: 100%;
    }
