/* Hitpost: Meta Business Suite look (approved design "Chosen"). */
:root {
  --bg: #f0f2f5;
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --text: #1c1e21;
  --text-2: #65676b;
  --text-3: #8a8d91;
  --border: #dadde1;
  --border-2: #ccd0d5;
  --hairline: #edeff1;
  --blue: #0064e0;
  --blue-hover: #0050b3;
  --blue-bg: #e7f0fd;
  --grey-btn: #e4e6eb;
  --grey-btn-hover: #d8dadf;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.1);

  --ig: #c13584;
  --tiktok: #111111;
  --youtube: #cc0000;
  --x: #111111;

  --trial-bg: #fdebf3; --trial-fg: #a3134f;
  --ok-bg: #e6f4ea; --ok-fg: #1b6e2e;
  --info-bg: #e7f0fd; --info-fg: #004a99;
  --warn-bg: #fff4e0; --warn-fg: #8a4b00;
  --bad-bg: #fde8e8; --bad-fg: #b3261e;
  --muted-bg: #f0f2f5; --muted-fg: #444950;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 15px; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); }
a:hover { color: var(--blue-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; }
h1 { font-size: 24px; font-weight: 700; }
h2 { font-size: 17px; font-weight: 700; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Shell */
.shell { display: flex; flex-direction: column; height: 100vh; }
.topbar { height: 56px; flex-shrink: 0; background: var(--surface); box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px; padding: 0 20px; z-index: 2; }
.logo { width: 32px; height: 32px; border-radius: 8px; background: var(--blue); color: #fff; font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.brand { font-size: 17px; font-weight: 700; }
.spacer { flex-grow: 1; }
.runlight { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.mode-pill { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 12px; background: var(--warn-bg); color: var(--warn-fg); }
.mode-pill.live { background: var(--ok-bg); color: var(--ok-fg); }

.body { flex-grow: 1; display: flex; min-height: 0; }
.sidebar { width: 260px; flex-shrink: 0; background: var(--surface); border-right: 1px solid var(--border); padding: 12px 8px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.nav-item { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-item:hover { background: var(--bg); color: var(--text); }
.nav-item.active { background: var(--blue-bg); color: var(--blue); font-weight: 600; }
.nav-sep { height: 1px; background: var(--border); margin: 8px; }
.group-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px 4px; font-size: 13px; font-weight: 700; }
.group-head .count { font-weight: 400; color: var(--text-2); font-size: 12px; }
.acct-row { display: flex; align-items: center; gap: 10px; min-height: 32px; padding: 0 12px 0 16px; border-radius: 8px; font-size: 14px; cursor: pointer; }
.acct-row:hover { background: var(--bg); }
.acct-row input { width: 16px; height: 16px; margin: 0; accent-color: var(--blue); }
.connect-btn { margin: 2px 12px 4px 16px; align-self: flex-start; border: 1px dashed #bcc0c4; background: transparent; border-radius: 6px; padding: 5px 10px; font-size: 13px; font-weight: 600; color: var(--blue); cursor: pointer; text-decoration: none; }
.connect-btn[disabled] { color: var(--text-3); cursor: default; }

.main { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; padding: 20px 24px; overflow-y: auto; }
.page-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Surfaces & controls */
.card { background: var(--surface); border-radius: 8px; box-shadow: var(--shadow); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.card.flush { padding: 0; gap: 0; }
.muted { color: var(--text-2); font-size: 13px; }
.btn { border: 0; border-radius: 6px; padding: 8px 16px; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-hover); color: #fff; }
.btn.secondary { background: var(--grey-btn); color: var(--text); }
.btn.secondary:hover { background: var(--grey-btn-hover); color: var(--text); }
.btn.danger { background: var(--bad-bg); color: var(--bad-fg); }
.btn.small { padding: 5px 10px; font-size: 13px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn-outline { border: 1px solid var(--border-2); background: var(--surface); border-radius: 6px; padding: 6px 12px; font-size: 14px; cursor: pointer; }
.btn-outline:hover { background: var(--surface-2); }
.icon-btn { width: 32px; height: 32px; border: 0; background: transparent; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.icon-btn:hover { background: var(--bg); }
.segmented { display: flex; border: 1px solid var(--border-2); border-radius: 6px; overflow: hidden; }
.segmented button { border: 0; border-left: 1px solid var(--border-2); background: var(--surface); padding: 6px 14px; font-size: 14px; cursor: pointer; }
.segmented button:first-child { border-left: 0; }
.segmented button.on { background: var(--blue-bg); color: var(--blue); font-weight: 600; }
.input, select.input, textarea.input { border: 1px solid var(--border-2); border-radius: 6px; padding: 8px 10px; font-size: 14px; background: var(--surface); }
textarea.input { resize: vertical; line-height: 1.4; font-size: 15px; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--text-2); }
.field > .input { color: var(--text); }

.chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border-2); background: var(--surface); border-radius: 20px; padding: 4px 12px 4px 5px; font-size: 14px; cursor: pointer; }
.chip.on { border: 2px solid var(--blue); background: var(--blue-bg); color: var(--blue); font-weight: 600; padding: 3px 11px 3px 4px; }
.avatar { border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; }
.pbadge { border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pill { font-size: 11px; font-weight: 600; padding: 3px 7px; border-radius: 10px; white-space: nowrap; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tab { border: 0; background: transparent; color: var(--muted-fg); font-size: 13px; padding: 5px 10px; border-radius: 14px; cursor: pointer; }
.tab.on { background: var(--blue-bg); color: var(--blue); font-weight: 600; }

/* Planner */
.planner { flex-grow: 1; display: flex; gap: 16px; min-height: 560px; }
.calendar { flex-grow: 1; min-width: 0; padding: 0; gap: 0; }
.cal-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.cal-title { font-size: 17px; font-weight: 700; min-width: 150px; }
.dow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--border); }
.dow div { padding: 8px 10px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.month { flex-grow: 1; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: minmax(96px, 1fr); }
.cell { border-right: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); padding: 6px 6px 4px; display: flex; flex-direction: column; gap: 3px; min-width: 0; overflow: hidden; cursor: pointer; }
.cell:hover { background: #fafbfc; }
.cell.out { background: var(--surface-2); }
.cell .num { font-size: 12px; font-weight: 600; align-self: flex-start; padding: 1px 6px; border-radius: 10px; }
.cell.out .num { color: var(--text-3); }
.cell.today .num { background: var(--blue); color: #fff; }
.cal-chip { display: flex; align-items: center; gap: 4px; padding: 2px 5px; border-radius: 4px; font-size: 11px; white-space: nowrap; overflow: hidden; text-decoration: none; color: var(--text); border: 0; text-align: left; cursor: pointer; }
.cal-chip:hover { filter: brightness(0.96); color: var(--text); }
.cal-chip .t { font-weight: 600; }
.cal-chip .l { color: var(--muted-fg); overflow: hidden; text-overflow: ellipsis; }
.more { font-size: 11px; color: var(--text-2); padding-left: 4px; }
.week { flex-grow: 1; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.week-col { border-right: 1px solid var(--hairline); padding: 10px 8px; display: flex; flex-direction: column; gap: 8px; min-width: 0; cursor: pointer; }
.week-col.today { background: #fafbfc; }
.week-card { display: flex; gap: 8px; padding: 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); text-decoration: none; color: var(--text); }
.week-card:hover { border-color: var(--border-2); color: var(--text); box-shadow: var(--shadow); }
.thumb { border-radius: 6px; background: #3b4a5e; object-fit: cover; flex-shrink: 0; display: block; }

.aside { width: 300px; flex-shrink: 0; display: flex; flex-direction: column; gap: 16px; }
.list-row { display: flex; gap: 10px; align-items: center; text-decoration: none; color: var(--text); border-radius: 6px; }
.list-row:hover { color: var(--text); background: var(--surface-2); }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat b { display: block; font-size: 22px; }
.stat span { font-size: 12px; color: var(--text-2); }
.empty { color: var(--text-2); font-size: 14px; padding: 8px 0; }

/* Composer */
.composer { display: flex; gap: 20px; align-items: flex-start; }
.composer-main { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.dest-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dest-name { width: 110px; flex-shrink: 0; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; max-height: 300px; overflow-y: auto; padding: 2px; }
.media-tile { position: relative; aspect-ratio: 9 / 14; border-radius: 6px; border: 0; padding: 0; overflow: hidden; background: #3b4a5e; cursor: pointer; }
.media-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-tile.on { outline: 3px solid var(--blue); outline-offset: -3px; }
.media-tile .badge { position: absolute; right: 4px; bottom: 4px; font-size: 11px; font-weight: 600; color: #fff; background: rgba(0,0,0,0.55); border-radius: 4px; padding: 1px 4px; }
.media-tile .order { position: absolute; left: 4px; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.media-tile .lowres { position: absolute; left: 4px; bottom: 4px; font-size: 10px; font-weight: 700; color: var(--warn-fg); background: var(--warn-bg); border-radius: 4px; padding: 1px 4px; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.radio-row { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; cursor: pointer; }
.radio-row input { margin: 2px 0 0; accent-color: var(--blue); }
.preview { width: 360px; flex-shrink: 0; position: sticky; top: 0; }
.phone { align-self: center; width: 270px; height: 468px; border-radius: 26px; background: #000; padding: 8px; } /* screen is 9:16 */
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 19px; overflow: hidden; background: #3b4a5e; }
.phone-screen video, .phone-screen img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone-overlay { position: absolute; inset: auto 0 0 0; padding: 16px; display: flex; flex-direction: column; gap: 8px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,0.55)); }
.phone-overlay.top { inset: 0 0 auto 0; background: linear-gradient(rgba(0,0,0,0.5), transparent); flex-direction: column-reverse; } /* stories: name at the top, like Instagram */
.phone-overlay .cap { font-size: 12px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cta-layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.trial-tag { align-self: flex-start; font-size: 11px; font-weight: 700; color: #000; background: #fff; border-radius: 4px; padding: 2px 6px; }
.footer-bar { position: sticky; bottom: -20px; margin: 0 -24px -20px; background: var(--surface); border-top: 1px solid var(--border); display: flex; align-items: center; gap: 12px; padding: 14px 24px; flex-wrap: wrap; z-index: 1; }
.issues { display: flex; flex-direction: column; gap: 6px; }
.issue { font-size: 13px; padding: 8px 10px; border-radius: 6px; }
.issue.error { background: var(--bad-bg); color: var(--bad-fg); }
.issue.warn { background: var(--warn-bg); color: var(--warn-fg); }

/* Post detail & activity */
.target-card { display: flex; flex-direction: column; gap: 10px; }
.target-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.timeline { display: flex; flex-direction: column; gap: 4px; border-left: 2px solid var(--border); padding-left: 12px; margin-left: 4px; }
.timeline div { font-size: 13px; }
.timeline .w { color: var(--warn-fg); }
.timeline .e { color: var(--bad-fg); }
table.log { width: 100%; border-collapse: collapse; font-size: 13px; }
table.log td { padding: 8px 10px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
table.log td:first-child { white-space: nowrap; color: var(--text-2); width: 1%; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--text); color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 14px; box-shadow: 0 4px 12px rgba(0,0,0,0.2); z-index: 10; }
.banner { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 8px; font-size: 14px; }
.banner.warn { background: var(--warn-bg); color: var(--warn-fg); }
.banner.info { background: var(--info-bg); color: var(--info-fg); }

@media (max-width: 1100px) {
  .aside, .preview { display: none; }
  .sidebar { width: 220px; }
}

/* Paused accounts: impossible to miss */
.paused-banner { display: flex; flex-direction: column; gap: 6px; }
.paused-row { display: flex; align-items: center; gap: 12px; background: var(--bad-fg); color: #fff; padding: 12px 16px; border-radius: 8px; font-size: 14px; }
.paused-icon { width: 24px; height: 24px; border-radius: 50%; background: #fff; color: var(--bad-fg); font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.45); display: flex; align-items: center; justify-content: center; z-index: 20; padding: 16px; }
.modal { background: var(--surface); border-radius: 12px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3); padding: 24px; max-width: 560px; width: 100%; display: flex; flex-direction: column; gap: 14px; }

/* ---------- sign-in, account, admin ---------- */
.banner.bad { background: var(--bad-bg); color: var(--bad-fg); }
.topbar-user { font-size: 13px; color: var(--text-2); text-decoration: none; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: var(--bg); }
.auth-card { background: var(--surface); border-radius: 12px; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1); padding: 28px; width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 14px; }
.auth-card h1 { font-size: 22px; margin: 0; }
.auth-card p { margin: 0; }
.auth-brand { display: flex; align-items: center; gap: 10px; }
.auth-card .btn { justify-content: center; }
.auth-error { background: var(--bad-bg); color: var(--bad-fg); padding: 10px 12px; border-radius: 8px; font-size: 14px; }
.code-input { font-size: 22px; letter-spacing: 6px; text-align: center; font-variant-numeric: tabular-nums; max-width: 220px; }
.tfa-setup { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.tfa-qr { width: 200px; height: 200px; flex-shrink: 0; background: #fff; border-radius: 8px; }
.tfa-qr svg { width: 100%; height: 100%; display: block; }
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.key { font-family: ui-monospace, Consolas, monospace; background: var(--surface-2); padding: 2px 6px; border-radius: 4px; word-break: break-all; }
.manage-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.manage-row > span:first-child { width: 60px; color: var(--text-2); }
.invite-link { display: flex; gap: 8px; }
.invite-link .input { flex: 1; min-width: 0; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }

/* ---------- uploads ---------- */
.up-tray { position: fixed; right: 24px; bottom: 24px; width: 340px; max-width: calc(100vw - 32px); background: var(--surface); border-radius: 12px; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; z-index: 15; }
.up-list { display: flex; flex-direction: column; gap: 10px; max-height: 260px; overflow-y: auto; }
.up-row { display: flex; flex-direction: column; gap: 4px; }
.up-line { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.up-line > :first-child { flex-grow: 1; min-width: 0; }
.up-name { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-state { font-size: 13px; color: var(--text-2); white-space: nowrap; }
.up-state.done { color: var(--ok-fg); font-weight: 600; }
.up-state.retrying { color: var(--warn-fg); }
.up-bar { height: 4px; border-radius: 2px; background: var(--grey-btn); overflow: hidden; }
.up-bar > div { height: 100%; background: var(--blue); transition: width 0.2s; }
.up-bar > div.done { background: #31a24c; }
.up-error { font-size: 13px; color: var(--bad-fg); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.media-tile .tile-link { display: block; width: 100%; height: 100%; }
.tile-del { position: absolute; right: 4px; top: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; opacity: 0; }
.media-tile:hover .tile-del, .tile-del:focus-visible { opacity: 1; }
@media (hover: none) { .tile-del { opacity: 1; } }
.drop-empty { border: 2px dashed var(--border-2); border-radius: 12px; background: var(--surface-2); padding: 40px 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text); font-size: 15px; cursor: pointer; text-align: center; }
.drop-empty:hover { border-color: var(--blue); color: var(--blue); }
.drop-overlay { position: fixed; inset: 72px 16px 16px 276px; border: 3px dashed var(--blue); border-radius: 12px; background: rgba(231, 240, 253, 0.94); color: var(--info-fg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; z-index: 12; pointer-events: none; font-size: 14px; }
.drop-overlay b { font-size: 22px; }

/* ---------- phone upload page ---------- */
.mup { min-height: 100vh; width: 100%; display: flex; flex-direction: column; background: var(--bg); font-size: 16px; }
.mup-head { height: 56px; flex-shrink: 0; background: var(--surface); box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px; padding: 0 16px; position: sticky; top: 0; z-index: 2; }
.mup-link { font-size: 14px; font-weight: 600; text-decoration: none; }
.mup-body { flex-grow: 1; display: flex; flex-direction: column; gap: 14px; padding: 16px; width: 100%; max-width: 520px; margin: 0 auto; box-sizing: border-box; }
.mup-field { font-size: 14px; }
.mup-field .input { height: 48px; font-size: 16px; border-radius: 10px; }
.mup-pick { min-height: 120px; border: 2px dashed var(--blue); border-radius: 14px; background: var(--blue-bg); color: var(--info-fg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-size: 18px; font-weight: 700; cursor: pointer; }
.mup-pick[disabled] { opacity: 0.5; }
.mup-list { background: var(--surface); border-radius: 12px; box-shadow: var(--shadow); padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.mup-item { display: flex; gap: 12px; align-items: center; }
.mup-thumb { width: 48px; height: 64px; border-radius: 6px; background: #3b4a5e; flex-shrink: 0; overflow: hidden; }
.mup-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mup-info { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.mup-info .up-bar { height: 6px; border-radius: 3px; }
.mup-use { display: flex; align-items: center; gap: 6px; font-size: 14px; min-height: 44px; }
.mup-use input { width: 22px; height: 22px; accent-color: var(--blue); }
.mup-cta { height: 52px; border-radius: 12px; justify-content: center; font-size: 17px; }
.mup-cta.disabled { opacity: 0.5; pointer-events: none; }
.mup-later { min-height: 44px; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; text-decoration: none; }

/* ---------- the main app on a phone ---------- */
@media (max-width: 760px) {
  .shell { height: auto; min-height: 100vh; }
  .topbar { padding: 0 12px; }
  .runlight, .mode-pill { display: none; }
  .body { flex-direction: column; }
  .sidebar { width: auto; flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--border); padding: 6px; gap: 4px; }
  .sidebar .nav-item { flex-shrink: 0; height: 36px; padding: 0 10px; font-size: 14px; gap: 6px; }
  .sidebar .nav-sep, .sidebar .group-head, .sidebar .acct-row, .sidebar .connect-btn { display: none; }
  .main { padding: 14px 12px; overflow: visible; }
  .composer { flex-direction: column; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .drop-overlay { inset: 64px 8px 8px 8px; }
  .up-tray { right: 16px; bottom: 16px; }
}

/* ---------- connect ---------- */
.banner.ok { background: var(--ok-bg); color: var(--ok-fg); }
.safe-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.45; }
.advanced summary { cursor: pointer; font-size: 13px; color: var(--text-2); }
