/* Blue Scheduler app on the BlueNotary 2025 brand kit (tokens only, no BN logo):
   Outfit headings, Inter body, Royal Blue #3B40D5, Rich Black ink, light grounds,
   8px radius, kit shadows. Calm and record-like for legal-tech users. */
:root {
  --blue: #3B40D5; --blue-dark: #2F33AA; --blue-mid: #6266DD; --blue-soft: #9D9FEA;
  --blue-tint: #C8D6F7; --blue-wash: #EBECF9; --ghost: #FAFAFD; --sky: #92B1EB;
  --ink: #171719; --muted: #5C5C63; --soft: #7D7D86; --line: #E5E7EB; --line-2: #C2C2C7;
  --bg: #F5F5FC; --white: #fff;
  --ok: #00A843; --ok-bg: #E6F6EC; --bad: #D93A12; --bad-bg: #FDECE8; --warn: #A66F00; --warn-bg: #FDF5E1;
  --r-sm: 4px; --r: 8px; --r-lg: 12px; --r-xl: 16px; --pill: 999px;
  --sh-sm: 0 1px 2px rgba(15,18,54,.06);
  --sh-md: 0 4px 12px rgba(15,18,54,.08);
  --sh-lg: 0 12px 40px rgba(15,18,54,.10), 0 2px 6px rgba(15,18,54,.04);
  --sh-xl: 0 24px 64px rgba(15,18,54,.14), 0 4px 12px rgba(15,18,54,.06);
  --side: 240px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.5 Inter, system-ui, sans-serif; color: var(--ink); background: var(--bg); }
h1, h2, h3 { font-family: Outfit, Inter, sans-serif; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--blue); }
[hidden] { display: none !important; }
.spacer { flex: 1; }
.muted { color: var(--soft); margin: 0; }
.small { font-size: 12px; }
.eyebrow { margin: 0 0 12px; font: 600 11px/1 Inter, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.linkish { background: none; border: 0; padding: 0; color: var(--blue); font-weight: 500; cursor: pointer; font-size: 13px; }
.linkish:hover { text-decoration: underline; }

/* buttons (kit .btn-primary / .btn-secondary) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: var(--r); border: 1px solid var(--blue); background: var(--blue); color: #fff; font-weight: 600; font-size: 14px; line-height: 1; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.ghost { background: var(--white); color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn.small { padding: 7px 12px; font-size: 13px; }
.btn.danger { color: var(--bad); }

/* ── shell: sidebar + main ──────────────────────────────────────────────── */
.shell { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 6px; padding: 18px 14px max(18px, env(safe-area-inset-bottom)); background: var(--white); border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; padding: 2px 6px 14px; text-decoration: none; color: var(--ink); font: 600 19px/1 Outfit, sans-serif; letter-spacing: -0.02em; }
.brand b { color: var(--blue); font-weight: 600; }
.btn.create { width: 100%; padding: 12px; font-size: 15px; box-shadow: var(--sh-md); }
.btn.create svg, .nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.nav { display: flex; flex-direction: column; gap: 2px; margin-top: 14px; }
.nav button, .nav-link { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border: 0; background: none; border-radius: var(--r); color: var(--muted); font-weight: 500; cursor: pointer; text-align: left; }
.nav button:hover, .nav-link:hover { background: var(--bg); color: var(--ink); }
.nav button.on { background: var(--blue-wash); color: var(--blue); box-shadow: inset 3px 0 0 var(--blue); }
.nav-link { text-decoration: none; }
.nav-label { margin: 18px 10px 6px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.me { margin-top: auto; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 10px; padding: 12px 6px 0; border-top: 1px solid var(--line); }
.me-av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font-weight: 700; grid-row: span 2; }
.me-mail { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-mail #email { display: block; overflow: hidden; text-overflow: ellipsis; }
.me .btn { justify-self: start; padding: 4px 10px; font-size: 12px; }
/* Spacing follows the window height: full size from ~785px tall, tightest at ~610px
   (below that the sidebar scrolls), so it never squeezes while space sits empty. */
.side { padding-top: clamp(12px, calc(12px + (100dvh - 610px) * .044), 18px); }
.brand { padding-bottom: clamp(8px, calc(8px + (100dvh - 610px) * .044), 14px); }
.btn.create { padding: clamp(9px, calc(9px + (100dvh - 610px) * .022), 12px); }
.nav { margin-top: clamp(8px, calc(8px + (100dvh - 610px) * .044), 14px); gap: clamp(0px, calc((100dvh - 610px) * .015), 2px); }
.nav button, .nav-link { padding-block: clamp(4.5px, calc(7.65px + (100dvh - 750px) * .0386), 9px); }
.nav-label { margin-top: clamp(8px, calc(8px + (100dvh - 610px) * .074), 18px); margin-bottom: clamp(4px, calc(4px + (100dvh - 610px) * .015), 6px); }
.me { padding-top: clamp(8px, calc(8px + (100dvh - 610px) * .03), 12px); }

.main { min-width: 0; }
.bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 10px 28px; background: rgba(245,245,252,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar h1 { font-size: 22px; }
.side-toggle { display: none; border: 1px solid var(--line-2); background: #fff; border-radius: var(--r); padding: 6px 10px; cursor: pointer; }
.bar-tools { flex: 1; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bar-tools > b { margin: 0 6px; font-weight: 600; }
.bar-tools input, .bar-tools select { padding: 7px 10px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; font-size: 13px; }
.bar-tools input { width: 120px; }
.seg { display: inline-flex; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); padding: 2px; }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 6px; font-weight: 600; font-size: 13px; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--blue); color: #fff; }
.view { padding: 24px 28px 48px; }

/* avatars */
.avatar { position: relative; width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; display: inline-grid; place-items: center; background: var(--blue-wash); color: var(--blue); font-weight: 700; font-size: 13px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar.xs { width: 22px; height: 22px; font-size: 10px; }
.net-dot { position: absolute; right: -2px; bottom: -2px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #fff; }
.avatar.xs .net-dot { width: 8px; height: 8px; right: -3px; bottom: -3px; border-width: 1.5px; }
.stack { display: inline-flex; align-items: center; }
.stack .avatar + .avatar { margin-left: -6px; box-shadow: 0 0 0 2px #fff; }
.stack b { margin-left: 4px; font-size: 11px; color: var(--soft); }

/* badges */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: var(--pill); font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--blue-wash); color: var(--blue); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.sent { background: var(--ok-bg); color: #007A31; }
.badge.failed { background: var(--bad-bg); color: var(--bad); }
.badge.partial { background: var(--warn-bg); color: var(--warn); }
.badge.draft, .badge.sending, .badge.pending, .badge.processing { background: var(--bg); color: var(--muted); }

/* cards */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--sh-sm); }
.card-head { display: flex; justify-content: space-between; align-items: baseline; }

/* ── home: two columns of cards ─────────────────────────────────────────── */
.home { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.col { display: grid; gap: 18px; }
.day-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 12px; }
.day-pill { display: grid; justify-items: center; gap: 2px; padding: 8px 4px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; cursor: pointer; }
.day-pill span { font-size: 11px; color: var(--soft); text-transform: uppercase; letter-spacing: .04em; }
.day-pill b { font: 600 18px/1 Outfit, sans-serif; }
.day-pill i { font-style: normal; font-size: 11px; color: var(--soft); }
.day-pill i.has { color: var(--blue); font-weight: 600; }
.day-pill.on { border-color: var(--blue); background: var(--blue-wash); }
.day-list { display: grid; gap: 6px; }
.line { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; cursor: pointer; text-align: left; }
.line:hover { border-color: var(--blue-soft); }
.line-time { width: 72px; flex-shrink: 0; font-weight: 600; font-size: 13px; }
.line-thumb { width: 44px; height: 44px; flex-shrink: 0; border-radius: var(--r-sm); object-fit: cover; }
.line-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty-day { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--soft); }
.record { display: grid; }
.rec { display: grid; grid-template-columns: 150px 1fr auto; gap: 12px; align-items: center; padding: 10px 2px; border: 0; border-top: 1px solid var(--line); background: none; cursor: pointer; text-align: left; }
.rec:first-child { border-top: 0; }
.rec-when { font-size: 12px; color: var(--soft); }
.rec-text { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec-dest { display: flex; gap: 8px; }
.rec-acct { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 700; }
.rec-acct.sent { color: #007A31; } .rec-acct.failed { color: var(--bad); } .rec-acct.pending { color: var(--soft); }
.todo { display: grid; gap: 8px; }
.todo-item { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--ghost); cursor: pointer; text-align: left; }
.todo-item:hover { border-color: var(--blue); }
.todo-item b { font-weight: 600; }
.todo-item span { grid-column: 1; font-size: 13px; color: var(--muted); }
.todo-item i { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-style: normal; color: var(--blue); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { display: grid; gap: 2px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; cursor: pointer; text-align: left; }
.stat b { font: 600 26px/1 Outfit, sans-serif; }
.stat span { font-size: 12px; color: var(--soft); }
.idea-list { display: grid; }
.idea-line { display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 10px; padding: 9px 2px; border: 0; border-top: 1px solid var(--line); background: none; cursor: pointer; text-align: left; }
.idea-line:first-child { border-top: 0; }
.idea-line i { font-style: normal; color: var(--blue); font-size: 13px; font-weight: 500; }
.pc-tag { justify-self: start; font: 600 11px/1 Inter, sans-serif; color: var(--blue); background: var(--blue-wash); padding: 4px 7px; border-radius: var(--r-sm); }

/* ── calendar ───────────────────────────────────────────────────────────── */
.cal-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; }
.cal-filters .sep { width: 1px; height: 18px; margin: 0 4px; background: var(--line-2); }
.cal-filters .linkish { margin-left: 6px; }
.fchip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: 1px solid var(--line-2); border-radius: var(--pill); background: #fff; font-size: 12px; font-weight: 500; color: var(--muted); cursor: pointer; }
.fchip:hover { border-color: var(--blue); color: var(--blue); }
.fchip.on { border-color: var(--blue); background: var(--blue-wash); color: var(--blue-dark); }
.fdot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.fdot.sent { background: var(--ok); } .fdot.failed { background: var(--bad); }
.ig-card { max-width: 460px; margin: 0 auto; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
#calMode [data-mode="grid"] { display: inline-flex; align-items: center; gap: 6px; }
.ig-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 12px; }
.ig-acct { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: inherit; font-size: 14px; cursor: pointer; opacity: .5; }
.ig-acct.on, .ig-acct:hover { opacity: 1; }
.ig-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
.ig-tile { position: relative; aspect-ratio: 3 / 4; padding: 0; border: 0; overflow: hidden; background: var(--bg); cursor: pointer; }
.ig-tile img, .ig-tile video { display: block; width: 100%; height: 100%; object-fit: cover; }
.ig-kind { position: absolute; top: 6px; right: 6px; width: 16px; height: 16px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6)); }
.ig-dot { position: absolute; right: 6px; bottom: 6px; width: 12px; height: 12px; border: 2px solid #fff; border-radius: 50%; background: var(--blue); }
.ig-dot.sent { background: var(--ok); }
.cal-acct { position: relative; }
.cal-acct-btn { display: inline-flex; align-items: center; gap: 8px; max-width: 145px; padding: 7px 10px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; font-size: 13px; white-space: nowrap; cursor: pointer; }
.cal-acct-btn > span:not(.stack):not(.cmp-chev):not(.avatar-ni):not(.grp-logo) { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cal-acct-btn .cmp-chev { margin: -3px 2px 0 4px; transform: rotate(45deg); }
.cal-acct-panel { position: absolute; top: calc(100% + 6px); right: 0; z-index: 30; width: 300px; max-width: calc(100vw - 32px); max-height: min(70vh, 520px); overflow: auto; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-lg); }
.cal-acct-panel .acct:hover { background: var(--blue-wash); }
.cal-acct-panel .cal-acct-all { display: block; margin: 0 2px 8px; }
@media (max-width: 720px) { .cal-acct-panel { left: 0; right: auto; } }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.wk-col { display: flex; flex-direction: column; gap: 8px; min-height: 560px; padding: 10px 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.wk-col.today { border-color: var(--blue); box-shadow: inset 0 3px 0 var(--blue); }
.wk-col.past { background: var(--ghost); }
.wk-head { display: flex; align-items: baseline; gap: 6px; padding: 0 4px 6px; border-bottom: 1px solid var(--line); }
.wk-head span { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--soft); font-weight: 600; }
.wk-head b { font: 600 18px/1 Outfit, sans-serif; }
.wk-col.today .wk-head b { color: var(--blue); }
.wk-items { display: grid; gap: 8px; }
.wk-add { margin-top: auto; border: 1px dashed var(--line-2); background: none; border-radius: var(--r); padding: 7px; color: var(--blue); font-size: 12px; font-weight: 600; cursor: pointer; }
.wk-add:hover { border-color: var(--blue); background: var(--blue-wash); }
.wk-col, .wk-items, .wk-items > * { min-width: 0; }
.wk-items { grid-template-columns: minmax(0, 1fr); }
.pcard-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px; }
.pcard > * { min-width: 0; max-width: 100%; }
.pcard { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; width: 100%; min-width: 0; overflow: hidden; padding: 8px; border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: var(--r); background: #fff; box-shadow: var(--sh-sm); cursor: pointer; text-align: left; }
.pcard:hover { box-shadow: var(--sh-md); }
.pcard.s-sent { border-left-color: var(--ok); } .pcard.s-failed { border-left-color: var(--bad); } .pcard.s-partial { border-left-color: #F8BF00; }
.pcard-top { display: flex; justify-content: space-between; align-items: center; gap: 4px; }
.pcard-time { font-size: 12px; font-weight: 700; white-space: nowrap; }
.pcard-img { width: 100%; height: 64px; object-fit: cover; border-radius: 6px; }
.pcard-text { margin: 0; font-size: 12px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .badge { justify-self: start; font-size: 11px; padding: 2px 7px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--line); gap: 1px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.dow { background: #fff; padding: 8px; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--soft); }
.day { background: #fff; min-width: 0; min-height: 110px; padding: 6px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; }
.day:hover { background: var(--ghost); }
.day.other { background: var(--ghost); color: var(--soft); }
.day.past { cursor: default; }
.day.today .num { background: var(--blue); color: #fff; }
.num { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.mchip { display: flex; align-items: center; gap: 5px; width: 100%; padding: 3px 6px; border: 0; border-left: 3px solid var(--blue); border-radius: var(--r-sm); background: var(--blue-wash); font-size: 11px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.mchip-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mchip.s-sent { border-left-color: var(--ok); background: var(--ghost); } .mchip.s-failed { border-left-color: var(--bad); background: var(--ghost); } .mchip.s-partial { border-left-color: #F8BF00; background: var(--ghost); }

/* ── posts ──────────────────────────────────────────────────────────────── */
.tabs-line { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tabs-line button { border: 0; background: none; padding: 10px 14px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs-line button.on { color: var(--blue); border-bottom-color: var(--blue); }
.post-list { display: grid; gap: 8px; }
.prow { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-sm); }
.prow-img { width: 64px; height: 64px; border-radius: var(--r); object-fit: cover; }
.prow-img.none { display: none; }
.prow-main { min-width: 0; display: grid; gap: 6px; }
.prow-text { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.prow-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 12px; color: var(--soft); }
.dest { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); }
.dest.sent { color: #007A31; } .dest.failed { color: var(--bad); }
.prow-err { margin: 0; font-size: 12px; color: var(--bad); }
.prow-side { display: flex; align-items: center; gap: 8px; }
.empty-block { padding: 40px; text-align: center; background: #fff; border: 1px dashed var(--line-2); border-radius: var(--r-lg); color: var(--soft); }

/* ── accounts + help ────────────────────────────────────────────────────── */
.lead { max-width: 640px; margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.sec-title { font-size: 17px; margin: 28px 0 12px; }
.channels, .connect-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; align-items: start; }
.chan { display: flex; align-items: center; gap: 12px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-sm); }
.chan .meta { flex: 1; min-width: 0; display: grid; }
.chan .meta b, .chan .meta span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chan .meta span { color: var(--muted); font-size: 13px; }
.chan .meta small { color: var(--soft); font-size: 12px; }
.net { padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-sm); }
.net h3 { font-size: 16px; margin-bottom: 6px; display: flex; justify-content: space-between; align-items: center; }
.net.soon { background: var(--ghost); box-shadow: none; }
.net.soon h3 { color: var(--soft); }
.net.soon small { font: 500 12px Inter, sans-serif; color: var(--soft); }
.net label { display: block; margin: 8px 0 4px; font-size: 13px; font-weight: 600; }
.net input { width: 100%; padding: 9px 11px; border: 1px solid var(--line-2); border-radius: var(--r); }
.net .help { margin: 4px 0 0; font-size: 12px; color: var(--soft); }
.net .btn { margin-top: 12px; }
.help-view { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 1000px; }
.help-view .card p:last-child { margin: 0; color: var(--muted); }

/* ── composer: accounts | editor | preview ──────────────────────────────── */
dialog { border: 0; padding: 0; }
dialog::backdrop { background: rgba(23,23,25,.45); }
.composer { width: min(1240px, calc(100vw - 32px)); height: min(780px, calc(100vh - 32px)); border-radius: var(--r-xl); box-shadow: var(--sh-xl); overflow: hidden; }
.cmp { position: relative; display: grid; grid-template-columns: 250px minmax(0, 1fr) 340px; height: 100%; }
.cmp-accounts { display: flex; flex-direction: column; gap: 8px; padding: 18px 14px; background: var(--ghost); border-right: 1px solid var(--line); overflow: auto; }
.cmp-accounts input[type=search] { padding: 8px 10px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; }
.cmp-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.acct { position: relative; display: flex; align-items: center; gap: 12px; padding: 4px 6px; border-radius: var(--r); cursor: pointer; }
.acct:hover { background: #fff; }
.acct:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 1px; }
.acct input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.acct .acct-name b { font-weight: 500; }
.acct.on .acct-name b { color: var(--blue); }
.acct-pic { position: relative; display: inline-flex; flex: none; }
.acct-pic .acct-av > .ni { right: auto; left: -3px; }
.acct-tick { display: none; position: absolute; top: -4px; right: -5px; width: 17px; height: 17px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 2px var(--ghost); }
.acct:hover .acct-tick { box-shadow: 0 0 0 2px #fff; }
.acct-tick::after { content: ""; position: absolute; left: 6px; top: 3px; width: 3px; height: 7px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(40deg); }
.acct.on .acct-tick { display: block; }
.acct-name { display: grid; min-width: 0; }
.acct-name b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-name small { font-size: 11px; color: var(--soft); }
.cmp-accounts .btn { margin-top: auto; }
.cmp-editor { display: flex; flex-direction: column; min-width: 0; padding: 18px 22px; overflow: auto; }
.cmp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.cmp-head h2 { font-size: 22px; }
.sheet-sub { margin: 4px 0 0; color: var(--muted); }
.cmp-head-btns { display: flex; gap: 8px; }
.cmp-form { display: flex; flex-direction: column; gap: 14px; flex: 1; }
.cmp-box { border: 1px solid var(--line-2); border-radius: var(--r-lg); background: #fff; }
.cmp-box:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-wash); }
.cmp-box textarea { display: block; width: 100%; border: 0; outline: 0; resize: vertical; padding: 14px; font-size: 15px; background: none; min-height: 180px; }
.cmp-box .images { padding: 0 14px; }
.drop-zone { display: flex; align-items: center; gap: 14px; margin: 4px 14px 12px; padding: 14px 18px; border: 2px dashed var(--line-2); border-radius: var(--r-lg); background: var(--bg); color: var(--muted); cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.drop-zone svg { flex-shrink: 0; width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.drop-zone b { display: block; font-size: 14px; color: var(--ink); }
.drop-zone small { display: block; margin-top: 2px; font-size: 12.5px; }
.drop-zone:hover, .composer.dragging .drop-zone { border-color: var(--blue); background: var(--blue-wash); color: var(--blue); }
.composer.dragging .drop-zone { box-shadow: 0 0 0 4px var(--blue-wash); }
.cmp-tools { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-top: 1px solid var(--line); }
.tool { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: var(--r); font-size: 13px; font-weight: 500; color: var(--muted); cursor: pointer; }
.tool:hover { background: var(--bg); color: var(--blue); }
.tool svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.counters { display: flex; gap: 10px; font-size: 12px; color: var(--soft); }
.counters .over { color: var(--bad); font-weight: 600; }
.x-usage { margin: -4px 0 0; font-size: 12px; color: var(--soft); }
.x-usage.over { color: var(--bad); font-weight: 600; }
.field { display: grid; gap: 8px; }
/* TikTok's required posting choices (shown when a TikTok account is ticked) */
.opts { display: grid; gap: 6px; }
.opts:not(:has(> :not([hidden]))) { display: none; }
.tt { display: grid; gap: 6px; }
.opt-row { border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.opt-head { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 12px; border: 0; border-radius: inherit; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.opt-head:hover { background: var(--ghost); }
.opt-head b { flex: none; font-size: 13px; font-weight: 600; }
.opt-head small { min-width: 0; margin-left: auto; padding-left: 12px; color: var(--soft); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.opt-head.open .cmp-chev { transform: rotate(45deg); }
.opt-body { display: grid; gap: 12px; padding: 4px 12px 12px; }
.editor-slot { display: grid; gap: 8px; min-width: 0; }
.cust { display: grid; gap: 8px; }
.cust-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.cust-row.open { align-items: flex-start; cursor: default; }
.cust-row.open > span:first-child { padding-top: 6px; }
.cust-main { flex: 1; min-width: 0; }
.cust-main #text { height: 120px; }
.cust-peek { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cust-peek.empty { color: var(--soft); }
.cust-peek small { color: var(--soft); }
.cust-row:hover .cust-peek { border-color: var(--blue); }
.fmt-tabs { display: flex; gap: 18px; }
.fmt-tabs button { padding: 2px 0 4px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.fmt-tabs button.on { border-bottom-color: var(--blue); color: var(--blue); font-weight: 600; }
.cmp-toolbar { display: flex; align-items: center; gap: 4px; }
.tb { position: relative; display: inline-flex; align-items: center; gap: 4px; height: 32px; min-width: 32px; padding: 0 6px; justify-content: center; border: 0; border-radius: var(--r); background: none; color: var(--muted); cursor: pointer; }
.tb svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tb small { font-size: 12px; font-weight: 600; }
.tb:hover { background: var(--blue-wash); color: var(--ink); }
.tb.on { color: var(--blue); }
.tb[data-tip]:hover::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 6px); z-index: 5; transform: translateX(-50%); padding: 6px 10px; border-radius: var(--r); background: var(--ink); color: #fff; font-size: 12px; font-weight: 500; white-space: nowrap; pointer-events: none; }
.tb#tbCustom[data-tip]:hover::after { left: 0; transform: none; }
.tb-sep { width: 1px; height: 18px; margin: 0 6px; background: var(--line-2); }
.opt-pop { width: 420px; max-width: calc(100vw - 32px); }
.pop-head { display: flex; align-items: center; justify-content: space-between; }
.pop-head h3 { margin: 0; font-size: 18px; }
.pop-x { width: 30px; height: 30px; border: 0; border-radius: var(--r); background: none; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.pop-x:hover { background: var(--blue-wash); }
.pop-body { display: grid; gap: 12px; }
.pop-save { width: 100%; }
.loc-row { display: flex; align-items: flex-start; gap: 10px; }
.loc-row > :last-child { flex: 1; min-width: 0; }
.loc-nets { display: flex; flex: none; gap: 4px; padding-top: 5px; }
.loc-no { padding-top: 10px; border-top: 1px solid var(--line); }
.loc-no p { margin: 0 0 6px; font-size: 12px; color: var(--muted); }
.loc-no .loc-nets { padding-top: 0; flex-wrap: wrap; }
.loc-find .tt-note { margin-top: 6px; }
.delay-row { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.delay-row span { flex: 1; color: var(--muted); }
.delay-row input { width: 76px; padding: 7px 8px; border: 1px solid var(--line-2); border-radius: var(--r); font-size: 13px; }
.delay-row select { padding: 7px 8px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; font-size: 13px; }
.opt-add { justify-self: start; padding: 4px 2px; border: 0; background: none; color: var(--blue); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.tt-head { display: flex; align-items: center; gap: 10px; }
.tt-head img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.tt-head small { display: block; color: var(--soft); font-size: 12px; }
.tt-row { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.tt-row label, .tt-pick label { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; cursor: pointer; }
.tt-row label.off, .tt-pick label.off { color: var(--soft); cursor: not-allowed; }
.tt-switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; font-size: 13px; cursor: pointer; }
.tt-switch input { width: 34px; height: 20px; accent-color: var(--blue); }
.tt-switch select { padding: 6px 8px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; font-size: 13px; font-weight: 400; }
.tt-pick { display: grid; gap: 8px; padding-left: 2px; }
.tt-pick small { display: block; margin-left: 24px; color: var(--soft); font-size: 12px; }
.tt-note { margin: 0; font-size: 12px; color: var(--muted); }
.tt-note.warn { color: var(--warn); }
.tt-declare { margin: 0; font-size: 12px; color: var(--muted); }
.meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.meta-grid input, .meta-comment textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; font-size: 13px; }
.meta-comment textarea { resize: vertical; }
.label { font-size: 12px; font-weight: 600; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pchip { padding: 6px 12px; border: 1px solid var(--line-2); border-radius: var(--pill); background: #fff; font-size: 13px; cursor: pointer; }
.pchip:hover { border-color: var(--blue); color: var(--blue); }
.pchip.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.cmp-foot { display: flex; gap: 8px; align-items: center; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.cmp-foot #go { min-width: 220px; }
.msg { margin: 0; min-height: 1em; font-size: 13px; }
.msg.error { color: var(--bad); }
.images { display: flex; flex-wrap: wrap; gap: 8px; }
.img { width: 104px; display: grid; gap: 4px; }
.img .thumb { position: relative; height: 104px; border-radius: var(--r); overflow: hidden; background: var(--bg); }
.img .thumb img, .img .thumb video { width: 100%; height: 100%; object-fit: cover; }
.img .thumb button { position: absolute; top: 4px; right: 4px; padding: 2px 8px; border: 0; border-radius: var(--pill); background: rgba(23,23,25,.72); color: #fff; font-size: 11px; cursor: pointer; }
.img input { padding: 4px 6px; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 12px; }
.cmp-preview { display: flex; flex-direction: column; gap: 12px; padding: 18px; background: var(--bg); border-left: 1px solid var(--line); overflow: auto; }
.pv-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pv-head .eyebrow { margin: 0; }
.pv-head select { max-width: 200px; padding: 6px 8px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; font-size: 12px; }
.pv-card { padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-sm); }
.pv-top { display: flex; gap: 10px; align-items: center; }
.pv-top b { display: block; font-size: 14px; }
.pv-top i { font-style: normal; font-size: 12px; color: var(--soft); }
.pv-text { margin: 10px 0 0; font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.pv-text.pv-empty { color: var(--soft); }
.pv-text mark { background: #FFF3C4; color: var(--ink); padding: 0 2px; border-radius: 3px; }
.pv-link { color: var(--blue); }
.pv-imgs { display: grid; gap: 4px; margin-top: 10px; border-radius: var(--r); overflow: hidden; }
.pv-imgs.n2, .pv-imgs.n3, .pv-imgs.n4 { grid-template-columns: 1fr 1fr; }
.pv-imgs.n3 img:first-child { grid-row: span 2; }
.pv-imgs img, .pv-imgs video { width: 100%; height: 100%; max-height: 220px; object-fit: cover; display: block; }
.pv-actions { display: flex; gap: 18px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; color: var(--soft); }
.pv-more { margin: 0; font-size: 12px; color: var(--muted); }
.trust { margin: auto 0 0; font-size: 12px; color: var(--soft); }
.done { flex: 1; display: grid; align-content: center; justify-items: center; gap: 8px; text-align: center; }
.done-mark { margin: 0; font: 600 26px/1.2 Outfit, sans-serif; }
.done > p { margin: 0; max-width: 480px; color: var(--muted); }
.done .targets { width: 100%; max-width: 520px; text-align: left; }
.done-btns { display: flex; gap: 10px; margin-top: 12px; }

/* schedule picker */
.picker { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(23,23,25,.35); }
.picker-card { width: 380px; padding: 22px; background: #fff; border-radius: var(--r-xl); box-shadow: var(--sh-xl); display: grid; gap: 10px; }
.picker-year { margin: 0; color: var(--soft); font-weight: 600; }
.picker-date { font-size: 28px; }
.picker-month { display: flex; justify-content: space-between; align-items: center; }
.picker-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.pk-dow { text-align: center; font-size: 11px; font-weight: 600; color: var(--soft); padding: 4px 0; }
.pk-day { aspect-ratio: 1; border: 0; border-radius: 50%; background: none; cursor: pointer; font-size: 13px; }
.pk-day:hover { background: var(--blue-wash); }
.pk-day.other { color: var(--line-2); }
.pk-day.today { box-shadow: inset 0 0 0 1px var(--blue-soft); }
.pk-day.on { background: var(--blue); color: #fff; }
.pk-day:disabled { color: var(--line); cursor: default; background: none; }
.picker-time { display: flex; align-items: center; gap: 10px; }
.picker-time input { padding: 8px 10px; border: 1px solid var(--line-2); border-radius: var(--r); }
.pk-zone { font-size: 12px; color: var(--soft); }
.picker-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }

/* detail sheet */
.sheet { width: min(640px, calc(100vw - 32px)); border-radius: var(--r-xl); box-shadow: var(--sh-xl); padding: 0 22px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 0 8px; }
.sheet-head h2 { font-size: 20px; }
.detail-text { white-space: pre-wrap; }
.sheet .eyebrow { margin-top: 16px; }
.targets { display: grid; gap: 8px; }
.target { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.target small { color: var(--soft); }
.target .err { color: var(--bad); font-size: 12px; }
.sheet-foot { display: flex; gap: 8px; align-items: center; padding: 16px 0 20px; margin-top: 16px; border-top: 1px solid var(--line); }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); padding: 10px 16px; border-radius: var(--r); background: var(--ink); color: #fff; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s; box-shadow: var(--sh-lg); z-index: 50; }
.toast.show { opacity: 1; }


/* ── network icons (shapes shared with the landing page, public/nets.js) ───── */
.ni { display: inline-grid; place-items: center; flex-shrink: 0; border-radius: 50%; color: #fff; font-weight: 700; }
.ni svg { width: 56%; height: 56%; fill: #fff; }
.ni-xs { width: 22px; height: 22px; font-size: 10px; }
.ni-sm { width: 28px; height: 28px; }
.ni-md { width: 34px; height: 34px; }
.ni-lg { width: 48px; height: 48px; border-radius: 14px; }
.stack .ni + .ni { margin-left: -6px; box-shadow: 0 0 0 2px #fff; }
/* An account = its profile photo + the network's logo in the corner */
.acct-av { position: relative; display: inline-block; flex-shrink: 0; border-radius: 50%; }
/* span.acct-av: outranks thumbnail rules like .an-post img, which would blow the photo up */
span.acct-av > img { display: block; width: 100%; height: 100%; border: 0; border-radius: 50%; object-fit: cover; background: var(--bg); }
.acct-av > .ni { position: absolute; right: -3px; bottom: -3px; box-shadow: 0 0 0 2px #fff; }
.acct-av.av-md { width: 34px; height: 34px; }
.acct-av.av-md > .ni { width: 16px; height: 16px; }
.acct-av.av-xs { width: 22px; height: 22px; }
.acct-av.av-xs > .ni { width: 11px; height: 11px; right: -2px; bottom: -2px; box-shadow: 0 0 0 1.5px #fff; }
.stack .avatar-ni + .avatar-ni { margin-left: -6px; }
.stack .acct-av + .avatar-ni, .stack .avatar-ni + .acct-av { box-shadow: 0 0 0 2px #fff; }
.net-dots { display: inline-flex; align-items: center; flex-shrink: 0; }
.net-dots .ni { width: 15px; height: 15px; box-shadow: 0 0 0 1.5px #fff; }
.net-dots .ni + .ni { margin-left: -5px; }
.net-dots b { margin-left: 2px; font-size: 10px; color: var(--soft); }

/* ── social accounts: tiles (Showreels pattern, BN skin) ──────────────────── */
.sec-title.first { margin-top: 4px; }
.sec-row { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; margin: 28px 0 12px; }
.sec-row.first { margin-top: 4px; }
.sec-row .sec-title { margin: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.tile { display: flex; flex-direction: column; gap: 10px; min-height: 150px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-sm); }
.tile.on { border-color: var(--blue-tint); box-shadow: inset 0 3px 0 var(--blue), var(--sh-sm); }
.tile.soon { background: var(--ghost); box-shadow: none; }
.tile.soon .t-head { opacity: .75; }
.t-head { display: flex; align-items: center; gap: 12px; }
.t-head b { font: 600 17px/1.2 Outfit, sans-serif; }
.t-status { font-size: 13px; color: var(--soft); }
.t-accts { display: grid; gap: 6px; }
.t-acct { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.t-board { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-left: 36px; font-size: 12px; font-weight: 600; color: var(--muted); }
.board-pill { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-width: 0; padding: 6px 10px 6px 12px; border: 1px solid var(--line-2); border-radius: var(--pill); background: var(--white); color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; line-height: 1.2; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.board-pill b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.board-pill svg { width: 14px; height: 14px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.board-pill:hover, .board-pill:focus-visible { border-color: var(--blue); background: var(--blue-wash); color: var(--blue); outline: none; }
select.board-pill { appearance: none; -webkit-appearance: none; padding-right: 30px; border-color: var(--blue); background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233B40D5' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 14px; box-shadow: 0 0 0 3px var(--blue-wash); }
.board-pill.loading { color: var(--soft); cursor: default; }
.t-acct .acct-av > .ni { display: none; }   /* the tile already shows the network */
.t-acct > .acct-av, .t-acct > .ni { width: 28px; height: 28px; }
.t-name { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.linkish.danger { color: var(--soft); font-size: 12px; }
.linkish.danger:hover { color: var(--bad); }
.unplug { display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0; padding: 5px 11px 5px 9px; border: 1px solid var(--line-2); border-radius: var(--pill); background: var(--white); color: var(--muted); font-size: 12px; font-weight: 600; line-height: 1; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.unplug svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.unplug:hover, .unplug:focus-visible { background: var(--bad-bg); border-color: var(--bad); color: var(--bad); }
.t-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.soon-btn { opacity: .55; cursor: default; }
.small-sheet { width: min(440px, calc(100vw - 32px)); }
.connect-form label { display: block; margin: 10px 0 4px; font-size: 13px; font-weight: 600; }
.connect-form input { width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r); }
.connect-form h2 { display: flex; align-items: center; gap: 8px; }
.help-text { margin: 6px 0 0; font-size: 12px; color: var(--soft); }

/* ── create post: drawer from the right (Showreels pattern) ───────────────── */
dialog.drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(1120px, 94vw); height: 100vh; max-height: 100vh; max-width: 100vw; border-radius: var(--r-xl) 0 0 var(--r-xl); animation: drawer-in .28s ease-out; }
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
dialog.drawer::backdrop { background: rgba(23,23,25,.35); }
.drawer .cmp { grid-template-columns: 260px minmax(0, 1fr) 320px; }

/* ── media library ────────────────────────────────────────────────────────── */
.media-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.media-bar .lead { margin: 0; }
.media-bar .btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); column-gap: 12px; grid-auto-rows: 1px; grid-auto-flow: dense; }
.media-grid > * { align-self: start; }
.m-card { display: grid; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm); }
.video-gone { display: grid; place-items: center; aspect-ratio: 1; padding: 8px; text-align: center; font-size: 12px; color: var(--muted, #667); background: var(--bg); }
.m-card img, .m-card video { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; background: var(--bg); display: block; }
.m-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; padding: 10px 12px 0; font-size: 12px; color: var(--soft); }
.m-act { display: flex; gap: 6px; padding: 10px 12px 12px; }

/* ── analytics (Publer's layout, BN kit) ──────────────────────────────────── */
.an-top { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 16px; }
.an-top .tabs-line { flex: 1; margin: 0; }
.an-tools { display: flex; align-items: center; gap: 8px; padding-bottom: 6px; }
.an-tools select, .an-tbl-tools select, .an-tbl-tools input, .an-filter input[type=search] { padding: 7px 10px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; font-size: 13px; }
.an-tools .btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.an-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 18px; align-items: start; }
.an-filter { position: sticky; top: 16px; padding: 12px; display: grid; gap: 8px; }
.an-filter input[type=search] { width: 100%; }
.an-accts { display: grid; gap: 2px; }
.an-acct { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--r); cursor: pointer; font-size: 13px; }
.an-acct:hover { background: var(--bg); }
.an-acct.on { background: var(--blue-wash); }
.an-acct.all { border-bottom: 1px solid var(--line); border-radius: var(--r) var(--r) 0 0; margin-bottom: 4px; }
.an-acct.all + .cmp-grp { border-top: 0; margin-top: 0; }
.an-grp-slim { display: flex; justify-content: center; padding: 8px 0 4px; margin-top: 4px; border: 0; border-top: 1px solid var(--line); background: none; cursor: pointer; }
.an-grp-slim:not(.on) .grp-logo { opacity: .35; filter: grayscale(1); }
.an-acct input { accent-color: var(--blue); margin: 0; }
.an-layout.slim { grid-template-columns: 62px minmax(0, 1fr); }
.slim .an-filter { padding: 8px 6px; }
.slim .an-filter input[type=search], .slim .an-acct input, .slim .an-acct .acct-name { display: none; }
.slim .an-acct { justify-content: center; padding: 6px 0; }
.slim .an-acct:not(.on) .avatar-ni { opacity: .3; filter: grayscale(1); }
.slim .an-acct.all { font-size: 11px; padding: 4px 0 8px; }
.slim .an-all-word { display: none; }
.an-acct .acct-name { display: grid; min-width: 0; }
.an-none-head { margin: 8px 0 0; padding: 8px 8px 2px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--soft); }
.an-acct.none { cursor: default; color: var(--soft); }
.an-acct.none:hover { background: none; }
.an-acct.none .avatar-ni { opacity: .45; filter: grayscale(1); }
.an-acct.none .acct-name small { line-height: 1.3; }
.slim .an-none-head { font-size: 0; padding: 6px 0 0; margin-top: 4px; }
.an-acct .acct-name b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-acct .acct-name small { color: var(--soft); }
.an-stack { display: grid; gap: 18px; }
.an-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.an-tile { display: grid; gap: 6px; padding: 14px 16px 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-sm); }
.an-label { font-size: 12px; font-weight: 600; color: var(--muted); }
.an-num { display: flex; align-items: center; gap: 8px; }
.an-num b { font: 600 28px/1.1 Outfit, sans-serif; }
.delta { padding: 2px 7px; border-radius: var(--pill); background: var(--ok-bg); color: var(--ok); font-size: 11px; font-weight: 700; }
.delta.down { background: var(--bad-bg); color: var(--bad); }
.spark { display: flex; align-items: flex-end; gap: 2px; height: 34px; margin-top: 4px; }
.spark i { flex: 1; min-width: 2px; border-radius: 2px 2px 0 0; background: var(--blue); }
.spark i.zero { background: var(--blue-wash); }
.an-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.an-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.an-card-head h3 { font-size: 16px; }
.an-card-head p { margin: 2px 0 0; }
.an-list { display: grid; }
.an-li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13px; }
.an-li:first-child { border-top: 0; padding-top: 0; }
.an-li .an-post { flex: 1; }
.an-li-num { margin-left: auto; white-space: nowrap; color: var(--soft); font-size: 12px; }
.an-li-num b { color: var(--ink); font-size: 14px; }
.an-tag { font-weight: 600; color: var(--blue); }
.an-post { display: flex; align-items: center; gap: 12px; min-width: 0; }
.an-post-text { display: grid; gap: 2px; min-width: 0; flex: 1; }
.an-post-text p { margin: 0; font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.an-post img, .an-post video { width: 48px; height: 48px; flex: none; object-fit: cover; border-radius: var(--r); border: 1px solid var(--line); }
.an-post-acct { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; min-width: 0; white-space: nowrap; }
.heat { display: grid; grid-template-columns: 38px repeat(24, minmax(0, 1fr)); gap: 3px; align-items: center; }
.heat i { aspect-ratio: 1.6; border-radius: 3px; background: var(--bg); }
.heat i.on { background: rgba(59, 64, 213, var(--a)); }
.heat-day { font-size: 11px; color: var(--muted); }
.heat-hour { font-size: 10px; color: var(--soft); white-space: nowrap; }
.an-card-head select { padding: 6px 10px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; font-size: 13px; max-width: 220px; }
.an-bars-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px 28px; }
.an-bars { display: grid; gap: 6px; align-content: start; }
.an-bars h4 { margin: 0 0 2px; font-size: 13px; color: var(--muted); }
.an-bar { display: grid; grid-template-columns: minmax(0, 1fr) 90px 44px; align-items: center; gap: 8px; font-size: 13px; }
.an-bar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-bar i { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--blue) var(--w), var(--blue-wash) var(--w)); }
.an-bar b { text-align: right; font-weight: 600; }
.an-table-card { overflow-x: auto; }
.an-tbl-tools { display: flex; gap: 8px; }
.an-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.an-table th { text-align: left; padding: 10px 10px; background: var(--ghost); border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.an-table.big th { cursor: pointer; user-select: none; }
.an-table th.sorted { color: var(--blue); }
.an-table td { padding: 10px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.an-table.big td:first-child { white-space: normal; min-width: 240px; max-width: 340px; }
.an-table tbody tr:hover { background: var(--ghost); }
.an-thumbs { display: flex; gap: 4px; }
.an-thumbs img, .an-thumbs video, .an-txt-thumb { width: 34px; height: 34px; border-radius: 6px; object-fit: cover; border: 1px solid var(--line); }
.an-txt-thumb { display: grid; place-items: center; background: var(--blue-wash); color: var(--blue); font-size: 11px; font-weight: 700; }
.an-pager { display: flex; align-items: center; justify-content: center; gap: 12px; padding-top: 12px; }
.an-empty { display: grid; justify-items: start; gap: 12px; }
.an-empty p { margin: 0; color: var(--muted); }


/* ── research, Instagram part (public/research-instagram.js) ──────────────── */
.rs-used { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 16px; }
.rs-used .muted { margin-right: 4px; }
.rs-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rs-col { display: grid; gap: 10px; align-content: start; }
.rs-col .eyebrow, .rs-posts .rs-grid { margin: 0; }
.rs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.rs-grid.small { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.rs-media { display: grid; gap: 4px; align-content: start; min-width: 0; color: inherit; text-decoration: none; font-size: 12px; }
.rs-media img, .rs-media video, .rs-noimg { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg); }
.rs-noimg { display: grid; place-items: center; color: var(--soft); font-weight: 600; }
.rs-cap { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rs-media small { color: var(--soft); }
#rsIgCompetitors { margin-top: 24px; }
@media (max-width: 760px) { .rs-two { grid-template-columns: 1fr; } }

/* ── ideas ────────────────────────────────────────────────────────────────── */
.date-list { display: grid; gap: 6px; }
.date-line { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.date-line:first-child { border-top: 0; }
.dl-when { display: grid; justify-items: center; line-height: 1.1; font-size: 11px; color: var(--soft); text-transform: uppercase; }
.dl-when b { font: 600 20px/1 Outfit, sans-serif; color: var(--blue); }
.dl-name { font-weight: 600; }
.date-cards { display: grid; gap: 10px; }
.year-plan { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 22px; background: linear-gradient(135deg, var(--blue-wash), #fff 70%); }
.yp-main { max-width: 560px; }
.year-plan h2 { margin: 2px 0 6px; font: 600 24px/1.2 Outfit, sans-serif; }
.year-plan .muted { margin: 0 0 14px; }
.yp-bar { height: 8px; border-radius: var(--pill); background: #fff; border: 1px solid var(--line); overflow: hidden; }
.yp-bar i { display: block; height: 100%; background: var(--blue); border-radius: var(--pill); }
.yp-count { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.yp-count b { color: var(--ink); }
.yp-all { margin: 0; font-weight: 600; color: var(--ok); }
.yp-month { margin-bottom: 22px; }
.home-year { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; margin-top: 10px; padding: 10px 12px; border: 0; border-radius: var(--r); background: var(--blue-wash); color: var(--blue); font-weight: 600; text-align: left; cursor: pointer; }
.home-year:hover { background: #E3E4FB; }
.yp-month-name { margin: 0 0 10px; font: 600 15px/1.2 Outfit, sans-serif; color: var(--muted); }
.d-card.planned .d-when { background: var(--ghost); color: var(--muted); }
.d-done { margin-left: 10px; padding: 2px 8px; border-radius: var(--pill); background: var(--ok-bg); color: var(--ok); font: 600 12px/1.4 Inter, sans-serif; vertical-align: middle; }
@media (max-width: 700px) { .year-plan { flex-direction: column; align-items: stretch; } }
.d-card { display: grid; grid-template-columns: 76px 1fr; gap: 16px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-sm); }
.d-when { display: grid; justify-items: center; align-content: start; padding: 8px 0; border-radius: var(--r); background: var(--blue-wash); color: var(--blue); }
.d-when b { font: 600 30px/1 Outfit, sans-serif; }
.d-when span { font-size: 12px; font-weight: 700; text-transform: uppercase; }
.d-when i { font-style: normal; font-size: 11px; color: var(--muted); }
.d-main h3 { font-size: 17px; margin-bottom: 8px; }
.d-idea { display: flex; justify-content: space-between; gap: 12px; width: 100%; padding: 8px 10px; margin-top: 6px; border: 1px solid var(--line); border-radius: var(--r); background: var(--ghost); text-align: left; cursor: pointer; }
.d-idea:hover { border-color: var(--blue); }
.d-idea i { font-style: normal; color: var(--blue); font-weight: 600; white-space: nowrap; }
.i-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.i-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.i-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-sm); }
.i-card p { margin: 0; flex: 1; }
.i-card .btn { align-self: flex-start; }
.svc-block { margin-bottom: 22px; }
.svc-block h3 { font-size: 17px; margin-bottom: 10px; }
.card-maker { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; align-items: start; }
.cm-left { display: grid; gap: 14px; }
.cm-left .lead { margin: 0; }
.c-field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.c-field input, .c-field textarea { padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r); font-weight: 400; color: var(--ink); }
.cm-btns { display: flex; gap: 8px; }
.card-canvas { width: 100%; height: auto; border-radius: var(--r-lg); box-shadow: var(--sh-lg); }
.kd { display: block; width: 100%; margin: 4px 0 0; padding: 3px 8px; border: 1px dashed var(--blue-soft); border-radius: var(--r-sm); background: var(--blue-wash); color: var(--blue); font-size: 11px; font-weight: 600; text-align: left; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kd.small { display: block; margin: 2px 0; cursor: default; text-align: left; }
button.kd.small { cursor: pointer; }
button.kd.small:hover { border-style: solid; }

/* ── branding ─────────────────────────────────────────────────────────────── */
.brand-form { max-width: 900px; }
.bn-import { margin: -6px 0 14px; padding: 8px 12px; border-radius: var(--r); background: var(--blue-wash); color: var(--blue); font-size: 13px; font-weight: 600; }
.brand-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.b-field { display: grid; gap: 8px; align-content: start; }
.b-field.wide { grid-column: 1 / -1; }
.b-field > label:first-child { font-size: 13px; font-weight: 600; }
.b-field input:not([type=checkbox]):not([type=color]) { padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r); }
.logo-row, .color-row { display: flex; align-items: center; gap: 12px; }
.logo-preview { display: grid; place-items: center; width: 84px; height: 84px; border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--soft); font-size: 12px; background: #fff; overflow: hidden; }
.logo-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.color-row input[type=color] { width: 52px; height: 40px; padding: 2px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; }
/* logo eyedropper: hover shows a zoomed loupe, click takes that pixel's color */
.logo-pick { position: relative; min-height: 120px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: repeating-conic-gradient(#F1F1F5 0% 25%, #fff 0% 50%) 0 0 / 16px 16px; overflow: hidden; }
.logo-pick canvas#logoCanvas { display: block; width: 100%; height: auto; cursor: crosshair; }
.logo-pick.empty canvas#logoCanvas { display: none; }
.logo-empty { display: none; }
.logo-pick.empty .logo-empty { display: grid; place-items: center; min-height: 120px; color: var(--soft); font-size: 12px; }
.loupe { position: absolute; display: none; width: 92px; padding: 5px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--sh-lg); pointer-events: none; }
.loupe canvas { display: block; width: 82px; height: 82px; border-radius: var(--r); image-rendering: pixelated; }
.loupe b { display: block; padding-top: 3px; font-size: 11px; text-align: center; font-variant-numeric: tabular-nums; }
.b-hint { margin: 0; font-size: 12px; color: var(--muted); }
.b-sub { margin: 4px 0 0; font-size: 12px; font-weight: 600; color: var(--muted); }
.code-in { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 4px 0 10px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; }
.code-in small { font-size: 11px; font-weight: 700; color: var(--soft); }
.b-field .code-in input#bHex { flex: 1; min-width: 0; padding: 0; border: 0; outline: 0; font-size: 14px; font-weight: 600; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.code-in output { flex: 1; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.code-in .copy { border: 0; background: none; padding: 4px 8px; color: var(--blue); font-size: 12px; font-weight: 600; cursor: pointer; }
.code-in:focus-within { border-color: var(--blue); }
.sw { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line-2); cursor: pointer; }
.sw.on { box-shadow: 0 0 0 2px var(--ink); }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 400; }
.check input { accent-color: var(--blue); }
.svc-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.brand-foot { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 16px; }
.brand-foot .msg { margin: 0; color: var(--muted); }
button.tool { border: 0; background: none; font-family: inherit; }
button.tool:disabled { cursor: default; color: var(--soft); background: none; }

/* Threads in the composer: a place from location search, and "Add to thread" parts */
.th-place { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--ghost); font-size: 13px; }
.th-place-field input { width: 100%; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; font-size: 13px; }
.th-places { display: grid; gap: 4px; }
.th-place-opt { display: grid; gap: 1px; padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; text-align: left; font: inherit; font-size: 13px; cursor: pointer; }
.th-place-opt:hover { border-color: var(--blue); }
.th-place-opt small { color: var(--soft); font-size: 12px; }
.th-parts { display: grid; gap: 10px; justify-items: start; }
.th-part { width: 100%; }
.th-part textarea { min-height: 80px; font-size: 14px; }
.th-part .cmp-tools { padding: 6px 8px; }
.pv-part { margin-top: 8px; border-left: 3px solid var(--blue-tint); }
.pv-place { display: block; font-style: normal; font-size: 12px; color: var(--muted); }

/* Research */
.rs-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.rs-form input { flex: 1; min-width: 200px; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: var(--r); font-size: 14px; }
.rs-form select { padding: 8px 10px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; font-size: 13px; }
.rs-list { display: grid; gap: 12px; }
.rs-post { display: grid; gap: 6px; }
.rs-post p, .rs-bio, .rs-mini p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.rs-post-top { display: flex; align-items: baseline; gap: 10px; }
.rs-comp { display: grid; gap: 10px; }
.rs-comp-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rs-comp-name { display: grid; gap: 2px; }
.rs-comp-name b { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; }
.rs-comp-name a { font-size: 13px; }
.cp-nets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.cp-net { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border: 1px solid var(--line-2); border-radius: var(--pill); background: #fff; font: inherit; font-size: 13px; cursor: pointer; }
.cp-net:hover:not(:disabled), .cp-net.on { border-color: var(--blue); color: var(--blue); }
.cp-net.on { background: var(--blue-wash); font-weight: 600; }
.cp-net:disabled { cursor: default; color: var(--soft); background: var(--ghost); }
.cp-net:disabled > span:first-child { opacity: .5; }
.cp-net .nav-soon { margin-left: 0; }
.cp-form { margin-bottom: 0; }
.cp-acct { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cp-pic { position: relative; flex: none; display: inline-flex; }
.cp-pic > img, .cp-pic > .rs-pic { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; font-size: 14px; }
.cp-pic > .ni { position: absolute; right: -4px; bottom: -4px; }
.cp-pic > .grp-logo { width: 36px; height: 36px; }
.cp-name { display: grid; gap: 1px; min-width: 0; }
.cp-name b { font-weight: 600; }
.cp-name small { color: var(--soft); font-size: 12px; }
.cp-name small a { color: inherit; }
.cp-name .cp-err { color: var(--bad, #b42318); }
.cp-yours { margin-left: 6px; }
.cp-fol { display: inline-flex; align-items: center; gap: 6px; font-size: inherit; }
.cp-x { width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--soft); opacity: .65; font-size: 16px; line-height: 1; cursor: pointer; }
.cp-x:hover, .cp-x:focus-visible { opacity: 1; background: var(--bad-bg); color: var(--bad); }
.cp-foot { margin: 12px 0 0; }
.cp-spike { color: var(--ok); font-size: 11px; font-weight: 700; white-space: nowrap; }
.an-post-acct .cp-spike { margin-left: 6px; }
.cp-insights { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.cp-insights h4 { margin: 0 0 8px; font-size: 13px; }
.cp-top-list { display: grid; gap: 10px; }
.cp-top-post { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cp-top-post > img, .cp-top-post > .cp-thumb { flex: none; width: 56px; height: 56px; object-fit: cover; border: 1px solid var(--line); border-radius: var(--r); }
.cp-top-text { display: grid; gap: 1px; flex: 1; min-width: 0; }
.cp-top-text p { margin: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-top-acts { display: flex; flex: none; gap: 6px; }
.cp-when .heat { gap: 2px; grid-template-columns: 30px repeat(24, minmax(0, 1fr)); }
#homeSpikes[hidden] { display: none; }
.home > .col { min-width: 0; }
.home-spike .an-post-acct { flex-wrap: wrap; white-space: normal; }
.home-spike a.btn, .cp-top-acts a.btn { text-decoration: none; }
.home-spike { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.home-spike:first-child { border-top: 0; }
.home-spike img { flex: none; width: 44px; height: 44px; object-fit: cover; border-radius: var(--r); }
.home-spike-text { flex: 1; min-width: 0; }
.home-spike-text p { margin: 2px 0 0; font-size: 13px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 900px) { .cp-insights { grid-template-columns: minmax(0, 1fr); } .cp-top-post { flex-wrap: wrap; } }
.cp-thumb { position: relative; flex: none; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: var(--r); background: var(--ghost); }
.cp-thumb.video::after { content: ""; position: absolute; top: 15px; left: 19px; border-style: solid; border-width: 9px 0 9px 13px; border-color: transparent transparent transparent var(--soft); }
.an-main { display: grid; gap: 14px; min-width: 0; }
.cp-groups { margin-bottom: 0; }
.cp-groups[hidden] { display: none; }
.an-layout.bare { grid-template-columns: minmax(0, 1fr); }
.an-layout.bare .an-filter { display: none; }
.cp-to { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.cp-to .cal-acct-btn { max-width: 170px; }
.cp-table .an-table td { padding-top: 8px; padding-bottom: 8px; }
.cp-add { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.cp-nets-i { display: flex; gap: 2px; }
.cp-net-i { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.cp-net-i:not(.on):not(:disabled) .ni { opacity: .55; }
.cp-net-i:hover:not(:disabled) .ni { opacity: 1; }
.cp-net-i.on { box-shadow: 0 0 0 2px var(--blue); }
.cp-net-i:disabled { cursor: default; }
.cp-net-i:disabled .ni { opacity: .25; filter: grayscale(1); }
.cp-form { position: relative; flex: 1; min-width: 240px; display: flex; align-items: center; gap: 10px; }
.cp-form input { flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: var(--r); font-size: 14px; }
.an-main { position: relative; }
.cp-plats { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
#anGroups:not([hidden]) ~ .an-body .cp-plats { position: absolute; top: 0; right: 0; }
.cp-plats .cp-net-i { width: 30px; height: 30px; }
.cp-plats .ni { width: 22px; height: 22px; }
.cp-plat-all { padding: 4px 10px; border: 0; border-radius: var(--pill); background: none; color: var(--soft); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.cp-plat-all.on { color: var(--blue); box-shadow: inset 0 0 0 2px var(--blue); }
@media (max-width: 900px) { #anGroups:not([hidden]) ~ .an-body .cp-plats { position: static; justify-content: flex-start; flex-wrap: wrap; } }
.cp-chips { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.cp-chip { display: inline-flex; align-items: center; gap: 5px; color: inherit; font-size: 13px; text-decoration: none; white-space: nowrap; }
.cp-chip-d { color: var(--ok); font-size: 11px; font-weight: 700; }
.cp-chip-d.down { color: var(--bad); }
a.cp-chip:hover { color: var(--blue); }
.cp-chip .ni { width: 15px; height: 15px; }
.cp-table, .cp-posts { overflow: visible; }
.cp-panel-h { margin: 6px 8px 2px; color: var(--soft); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.cp-panel-h:first-child { margin-top: 0; }
.cp-grip { flex: none; margin-right: -4px; color: var(--line-2); font-size: 14px; line-height: 1; cursor: grab; user-select: none; }
.cp-acct[draggable="true"] { cursor: grab; }
.cp-acct[draggable="true"]:hover .cp-grip { color: var(--soft); }
.cp-chip-w { display: inline-flex; align-items: center; gap: 2px; cursor: grab; }
.cp-chip-x { width: 14px; height: 14px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--soft); opacity: .6; font-size: 12px; line-height: 1; cursor: pointer; }
.cp-chip-x:hover { opacity: 1; background: var(--bad-bg); color: var(--bad); }
.cp-dragging tbody tr:has([data-co]) { background: var(--ghost); }
.cp-dragging tbody tr.cp-drop { background: var(--blue-wash); outline: 2px solid var(--blue); outline-offset: -2px; }
.cp-pic.small > img, .cp-pic.small > .rs-pic { width: 22px; height: 22px; font-size: 11px; }
.an-range button { padding: 5px 10px; font-size: 12px; }
@media (max-width: 1500px) { #anUpdated { display: none; } }
.cp-hits { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30; max-height: 340px; overflow: auto; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-lg); }
.cp-hits[hidden] { display: none; }
.cp-hit-who { display: grid; gap: 1px; min-width: 0; flex: 1; }
.cp-hit-who b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-hit-who small { color: var(--soft); font-size: 12px; font-weight: 400; }
.cp-hit-n { flex: none; color: var(--soft); font-size: 12px; }
.cp-hit-note { margin: 0; padding: 7px 8px; color: var(--soft); font-size: 13px; }
.cp-hit-more { color: var(--blue); }
.cp-chart { position: relative; }
.cp-chart svg { display: block; width: 100%; touch-action: pan-y; }
.cp-tip { position: absolute; z-index: 5; min-width: 200px; max-width: 300px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-lg); font-size: 12px; pointer-events: none; }
.cp-tip[hidden] { display: none; }
.cp-tip b { display: block; margin-bottom: 6px; font-size: 12px; }
.cp-tip-row { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto auto; gap: 6px; align-items: center; padding: 2px 0; }
.cp-tip-row > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-tip-row > span:nth-child(3) { color: var(--soft); }
.cp-key { width: 12px; height: 3px; border-radius: 2px; flex: none; }
.cp-legend { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 8px; }
.cp-leg { display: inline-flex; align-items: center; gap: 6px; padding: 3px 0; border: 0; background: none; font: inherit; font-size: 12px; cursor: pointer; }
.cp-leg.off { color: var(--soft); text-decoration: line-through; }
.cp-grp-chip { padding: 5px 12px; }
.cp-grp-chip:has(.grp-logo) { padding-left: 6px; }
.cp-acts { display: inline-flex; align-items: center; gap: 6px; }
.cp-grp-btn { display: inline-flex; gap: 3px; padding: 0; border: 0; background: none; cursor: pointer; }
.cp-grp-panel { position: fixed; top: auto; width: 260px; }
.cp-grp-tick { margin-left: auto; font-weight: 700; }
.cp-table .an-table th, .cp-table .an-table td { padding-left: 7px; padding-right: 7px; }
.cp-table .an-table.big td:first-child { min-width: 240px; max-width: none; }
#anTabs button { white-space: nowrap; }
.cp-posts .an-card-head, .cp-posts .an-tbl-tools { flex-wrap: wrap; }
.cp-posts { overflow: visible; }
.cp-scroll { overflow-x: auto; }
.cp-who-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-who-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border: 0; border-radius: var(--r); background: none; font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.cp-who-row:hover, .cp-who-row.on { background: var(--blue-wash); }
.cp-who-row.on { color: var(--blue); font-weight: 600; }
.rs-pic { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.rs-pic.none { display: grid; place-items: center; background: var(--blue-wash); color: var(--blue); font-weight: 700; }
.rs-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.rs-stat { display: grid; gap: 2px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--ghost); }
.rs-stat b { font-size: 17px; }
.rs-stat span { font-size: 12px; color: var(--soft); }
.rs-posts { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.rs-posts .eyebrow { margin: 0; }
.rs-mini { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; }
.rs-mini img { width: 56px; height: 56px; border-radius: var(--r); object-fit: cover; flex-shrink: 0; }

@media (max-width: 1100px) {
  .home { grid-template-columns: 1fr; }
  .cmp { grid-template-columns: 210px minmax(0, 1fr); }
  .cmp-preview { display: none; }
  .drawer .cmp { grid-template-columns: 210px minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .card-maker, .brand-grid { grid-template-columns: 1fr; }
  .i-head { flex-direction: column; }
  .an-layout, .an-two { grid-template-columns: 1fr; }
  .an-filter { position: static; }
  .media-bar { flex-direction: column; align-items: stretch; }
  dialog.drawer { width: 100vw; border-radius: 0; }
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 20; width: 260px; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--sh-xl); }
  body.side-open .side { transform: none; }
  .side-toggle { display: inline-block; }
  .bar { padding: 10px 16px; flex-wrap: wrap; }
  .bar-tools input { width: 100%; }
  .view { padding: 16px 16px 40px; }
  .week { grid-template-columns: 1fr; }
  .wk-col { min-height: 0; }
  .rec { grid-template-columns: 1fr auto; }
  .rec-when { grid-column: 1 / -1; }
  .prow { grid-template-columns: auto 1fr; }
  .prow-img { width: 48px; height: 48px; }
  .prow-side { grid-column: 1 / -1; flex-wrap: wrap; }
  .help-view { grid-template-columns: 1fr; }
  .composer { width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; border-radius: 0; }
  .cmp, .drawer .cmp { grid-template-columns: 1fr; overflow: auto; }
  .cmp-accounts { border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; }
  .cmp-editor { overflow: visible; }
  .cmp-accounts .btn { margin-top: 4px; }
  .cmp-foot { flex-wrap: wrap; }
  .cmp-foot #go { min-width: 0; flex: 1 1 100%; white-space: normal; }
  .day-strip { grid-template-columns: repeat(7, minmax(40px, 1fr)); overflow-x: auto; }
}

/* ── inbox: list | conversation | details (Publer's panes, BN kit) ──────────── */
.nav-soon { margin-left: auto; padding: 0 8px; border-radius: var(--pill); background: var(--blue-wash); color: var(--blue); font-size: 11px; font-weight: 700; line-height: 18px; }
.soon-card { max-width: 620px; }
.soon-card h3 { margin: 0 0 6px; }
.rs-anim { position: relative; display: flex; gap: 14px; padding: 14px 0 22px; }
.rs-anim .ni { width: 40px; height: 40px; opacity: .45; animation: rs-pop 4s ease-in-out infinite; }
.rs-anim .ni svg { width: 20px; height: 20px; }
.rs-anim .ni:nth-child(2) { animation-delay: .8s; }
.rs-anim .ni:nth-child(3) { animation-delay: 1.6s; }
.rs-anim .ni:nth-child(4) { animation-delay: 2.4s; }
.rs-anim .ni:nth-child(5) { animation-delay: 3.2s; }
.rs-lens { position: absolute; top: 6px; left: -8px; width: 56px; height: 56px; border: 3px solid var(--blue); border-radius: 50%; pointer-events: none; animation: rs-scan 4s ease-in-out infinite; }
.rs-lens::after { content: ""; position: absolute; right: -9px; bottom: -6px; width: 14px; height: 4px; border-radius: 2px; background: var(--blue); transform: rotate(45deg); }
@keyframes rs-pop { 0%, 14% { opacity: 1; transform: scale(1.12); } 22%, 100% { opacity: .45; transform: none; } }
@keyframes rs-scan { 0%, 14% { transform: translateX(0); } 20%, 34% { transform: translateX(54px); } 40%, 54% { transform: translateX(108px); } 60%, 74% { transform: translateX(162px); } 80%, 94% { transform: translateX(216px); opacity: 1; } 99% { transform: translateX(216px); opacity: 0; } 100% { transform: translateX(0); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .rs-anim .ni, .rs-lens { animation: none; } .rs-anim .ni { opacity: 1; } }
.nav-badge { margin-left: auto; min-width: 20px; padding: 0 6px; border-radius: var(--pill); background: var(--blue); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.inbox-view { padding-bottom: 24px; }
.ib { display: grid; grid-template-columns: 420px minmax(0, 1fr) 250px; gap: 14px; height: calc(100vh - 60px - 48px); min-height: 520px; }
.ib-cover { display: flex; align-items: center; gap: 10px 26px; height: 50px; margin-bottom: 12px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.ib-cover ~ .ib { height: calc(100vh - 60px - 48px - 62px); }
.ib-cover ~ .cp-groups:not([hidden]) ~ .ib { height: calc(100vh - 60px - 48px - 62px - 58px); }
#ibGroups { margin-bottom: 14px; }
.cp-grp-chip .ib-n { min-width: 18px; padding: 0 5px; border-radius: var(--pill); background: var(--blue); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.ibc-group { display: flex; align-items: center; gap: 8px; }
.ibc-label { font-size: 12px; font-weight: 600; color: var(--soft); }
.ibc-never .ni { opacity: .35; filter: grayscale(1); }
/* The padding closes the gaps between icons, so the pointer never lands on a dead spot. Kids ignore the pointer so their own titles stay quiet. */
.ibc-i { display: inline-flex; padding: 4px; margin: -4px; cursor: default; }
.ibc-i > *, .ib-rail button > * { pointer-events: none; }
.ib-tip { position: fixed; z-index: 1000; padding: 6px 10px; border-radius: var(--r); background: var(--ink); color: #fff; font-size: 12px; font-weight: 500; white-space: nowrap; pointer-events: none; }
.ib-tip[hidden] { display: none; }
.ib > .card { display: flex; flex-direction: column; min-height: 0; padding: 0; overflow: hidden; }
.ib-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 14px; border-bottom: 1px solid var(--line); }
.ib-row { display: flex; align-items: center; gap: 8px; }
/* account rail: All, then one button per account, each with its unread count */
.ib > .ib-list { flex-direction: row; }
.ib-list-main { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.ib-rail { width: 68px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 0; overflow-y: auto; background: var(--ghost); border-right: 1px solid var(--line); }
.ib-rail button { position: relative; display: grid; justify-items: center; gap: 3px; width: 60px; padding: 6px 2px; border: 0; border-radius: var(--r); background: none; cursor: pointer; color: var(--muted); font-size: 10px; font-weight: 600; line-height: 1.2; }
.ib-rail button:hover { background: var(--blue-wash); }
.ib-rail button.on { background: var(--blue-wash); color: var(--blue); box-shadow: inset 0 0 0 2px var(--blue); }
.ib-rail button > span:last-child { max-width: 56px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-rail .ib-all { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--line-2); color: var(--blue); font-size: 11px; font-weight: 700; }
.ib-rail .ib-n { position: absolute; top: 0; right: 6px; min-width: 18px; padding: 0 5px; border-radius: var(--pill); background: var(--blue); color: #fff; font-size: 10px; font-weight: 700; line-height: 18px; box-shadow: 0 0 0 2px var(--ghost); }
/* type tabs with unread counts */
.ib-tabs { display: flex; gap: 16px; margin: -4px -14px 0; padding: 0 14px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.ib-tabs button { display: inline-flex; align-items: baseline; gap: 5px; padding: 6px 0 9px; border: 0; border-bottom: 2px solid transparent; background: none; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; cursor: pointer; }
.ib-tabs button:hover { color: var(--ink); }
.ib-tabs button.on { color: var(--blue); border-bottom-color: var(--blue); }
.ib-tabs small { font-size: 11px; font-weight: 700; color: var(--soft); }
.ib-tabs button.on small { color: var(--blue); }
.ib-search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 9px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; color: var(--soft); }
.ib-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-wash); }
.ib-search svg, .icon-btn svg { width: 15px; height: 15px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ib-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 13px; }
.ib-head .seg button { padding: 5px 10px; }
.ib-head .ib-row { gap: 6px; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; color: var(--ink); cursor: pointer; }
.icon-btn:hover { border-color: var(--blue); color: var(--blue); }
.icon-btn:disabled { opacity: .5; cursor: default; }
/* inbox filter: the button turns blue with a dot while any filter is on */
.ib-list-main { position: relative; }
#ibFilterBtn { position: relative; }
#ibFilterBtn.on { border-color: var(--blue); color: var(--blue); background: var(--blue-wash); }
.ib-fdot { position: absolute; top: -4px; right: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 2px #fff; }
.ib-filter { position: absolute; z-index: 5; top: 104px; right: 12px; width: 250px; display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: #fff; box-shadow: var(--sh-lg); }
.ib-filter .check { font-size: 13px; }
.ib-filter .b-sub { margin: 2px 0 -4px; }
.ib-filter .chips { display: flex; flex-wrap: wrap; gap: 4px; }
.ib-filter .pchip { padding: 4px 10px; font-size: 12px; }
.ib-filter .btn.link { justify-self: start; border: 0; background: none; padding: 0; color: var(--blue); font-size: 12px; font-weight: 600; cursor: pointer; }
.ib-head .chips { gap: 4px; }
.ib-head .pchip { padding: 5px 9px; }
.ib-row select { flex: 1; min-width: 0; padding: 6px 8px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; font-size: 13px; }
.ib-row .btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ib-notes { display: grid; gap: 8px; }
.ib-notes:not(:empty) { padding: 12px 14px 0; }
.ib-note { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--blue-tint); border-radius: var(--r); background: var(--blue-wash); }
.ib-note-text { flex: 1; min-width: 0; display: grid; }
.ib-note b { font-size: 13px; font-weight: 600; }
.ib-note small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-threads { flex: 1; overflow: auto; padding: 6px; }
.ib-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 0; border-radius: var(--r); background: none; text-align: left; cursor: pointer; }
.ib-item:hover { background: var(--ghost); }
.ib-item.on { background: var(--blue-wash); }
.ib-face { position: relative; flex-shrink: 0; width: 38px; height: 38px; }
.ib-face > img, .ib-initial { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.ib-initial { display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line); color: var(--muted); font-weight: 700; }
.ib-face .ni { position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; box-shadow: 0 0 0 2px #fff; }
.ib-item-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ib-item-top { display: flex; align-items: baseline; gap: 8px; }
.ib-item-top b { flex: 1; min-width: 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-item.unread .ib-item-top b { font-weight: 700; }
.ib-item-top time { font-size: 12px; color: var(--soft); white-space: nowrap; }
.ib-item-sub { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-item.unread .ib-item-sub { color: var(--ink); }
.ib-kind { font-size: 11px; font-weight: 600; color: var(--blue); }
.ib-dot { width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background: var(--blue); }
.ib-empty { display: grid; justify-items: center; gap: 12px; padding: 36px 16px; text-align: center; color: var(--soft); }
.ib-empty p { margin: 0; }
.ib-blank { flex: 1; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--soft); }
.ib-chead { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.ib-ctitle { flex: 1; min-width: 0; display: grid; }
.ib-ctitle b { font: 600 16px/1.3 Outfit, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-ctitle small { font-size: 12px; color: var(--soft); }
.ib-back { display: none; }
.ib-body { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--ghost); }
.ib-msg { display: grid; justify-items: start; gap: 3px; max-width: 75%; }
.ib-msg.us { align-self: flex-end; justify-items: end; }
.ib-bubble { padding: 9px 12px; border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; background: #fff; }
.ib-msg.us .ib-bubble { border-color: var(--blue); border-radius: 14px 14px 4px 14px; background: var(--blue); color: #fff; }
.ib-bubble p, .ib-cm-body p { margin: 0; white-space: pre-wrap; word-break: break-word; }
.ib-att { display: block; color: inherit; font-size: 13px; }
.ib-att img { display: block; max-width: 220px; max-height: 220px; border-radius: var(--r); }
.ib-bubble .ib-att + p { margin-top: 6px; }
.ib-msg time, .ib-cm-top time { font-size: 11px; color: var(--soft); }
.ib-post { display: flex; gap: 12px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-sm); }
.ib-post-img { width: 56px; height: 56px; flex-shrink: 0; object-fit: cover; border-radius: var(--r); }
.ib-post-text { min-width: 0; }
.ib-post-text small { font-size: 12px; color: var(--soft); }
.ib-post-text p { margin: 2px 0 0; font-size: 13px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ib-cm { display: flex; gap: 10px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.ib-cm.d1 { margin-left: 28px; }
.ib-cm.d2 { margin-left: 56px; }
.ib-cm.target { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-wash); }
.ib-cm.is-hidden { background: var(--ghost); }
.ib-cm.is-hidden p { color: var(--soft); }
.ib-cm .ib-face { width: 30px; height: 30px; font-size: 12px; }
.ib-cm-body { flex: 1; min-width: 0; display: grid; gap: 4px; }
.ib-cm-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ib-cm-top b { font-weight: 600; }
.ib-cm-act { display: flex; gap: 16px; }
.linkish:disabled { color: var(--soft); cursor: default; text-decoration: none; }
.ib-reply { display: grid; gap: 8px; padding: 12px 16px 16px; border-top: 1px solid var(--line); background: #fff; }
.ib-reply textarea { width: 100%; min-height: 64px; resize: vertical; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r); }
.ib-reply textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-wash); }
.ib-reply textarea:disabled { background: var(--ghost); cursor: not-allowed; }
.ib-reply-foot { display: flex; align-items: center; gap: 8px; }
.ib-to { margin: 0; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-limit { margin: 0; padding: 8px 12px; border-radius: var(--r); background: var(--bg); color: var(--muted); font-size: 13px; }
.ib > .ib-ctx { gap: 12px; padding: 16px; }
.ib-ctx .eyebrow { margin: 0; }
.ib-dl { display: grid; gap: 8px; margin: 0; font-size: 13px; }
.ib-dl > div { display: flex; gap: 10px; min-width: 0; }
.ib-dl dt { width: 76px; flex-shrink: 0; color: var(--soft); }
.ib-dl dd { margin: 0; min-width: 0; }
.ib-ctx > .btn { align-self: flex-start; }

@media (max-width: 1180px) {
  .ib { grid-template-columns: 420px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .ib-list { grid-row: 1 / span 2; }
  .ib-ctx { grid-column: 2; }
  .ib > .ib-ctx { flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px 16px; }
  .ib-dl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; flex: 1; min-width: 0; }
  .ib-dl dt { width: auto; }
}
@media (max-width: 860px) {
  .ib { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; height: auto; min-height: 0; }
  .ib-cover ~ .ib, .ib-cover ~ .cp-groups:not([hidden]) ~ .ib { height: auto; }
  .ib-list { grid-row: auto; height: calc(100vh - 140px); }
  .ib-ctx { grid-column: auto; }
  .ib > .ib-ctx { flex-direction: column; align-items: stretch; }
  .ib-dl { display: grid; }
  .ib-dl dt { width: 76px; }
  .ib:not(.reading) .ib-convo, .ib:not(.reading) .ib-ctx { display: none; }
  .ib.reading .ib-list { display: none; }
  .ib-head .ib-row { flex-wrap: wrap; }
  .ib-search { flex-basis: 100%; }
  .ib-head #ibFilterBtn { margin-left: auto; }
  .ib-filter { top: 146px; }
  .ib-convo { height: calc(100vh - 140px); }
  .ib-back { display: inline-flex; }
  .ib-row { flex-wrap: wrap; }
}

/* AI assistants */
.ai-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; max-width: 980px; }
.ai-grid .muted.small { margin-top: 8px; }
.ai-copy { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.ai-copy code, .ai-copy input { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--ghost); font: 12px/1.4 ui-monospace, Menlo, monospace; overflow-x: auto; white-space: nowrap; }
.ai-copy input { font: 14px Inter, sans-serif; background: var(--white); }
.ai-connect { grid-column: 1 / -1; }
.ai-brands { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
.brand-btn { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 18px; border: 0; border-radius: var(--r); color: #fff; font: 600 19px Outfit, Inter, sans-serif; text-decoration: none; cursor: pointer; transition: filter .15s, box-shadow .15s; }
.brand-btn:hover { filter: brightness(1.08); }
.brand-btn svg { width: 30px; height: 30px; fill: currentColor; flex-shrink: 0; }
.brand-btn.claude { background: #D97757; }
.brand-btn.chatgpt { background: #000; }
.brand-btn[aria-expanded="true"] { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--blue); }
/* Under the buttons: the 1-2-3 steps on the left, the how-to video on the right (once it exists). */
.ai-drop { margin-top: 16px; }
.ai-drop.has-video { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: stretch; }
.ai-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.has-video .ai-steps { grid-template-columns: 1fr; grid-auto-rows: 1fr; }
.ai-steps li { counter-increment: step; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 2px solid transparent; border-radius: var(--r); background: var(--blue-wash); font-size: 15px; line-height: 1.35; transition: border-color .25s, background .25s; }
.ai-steps .ai-open { flex-wrap: wrap; }
.ai-open > span:nth-child(2) { flex: 1 1 160px; }
.ai-open .brand-btn { padding: 9px 14px; font-size: 15px; gap: 8px; }
.ai-open .brand-btn svg { width: 18px; height: 18px; }
.ai-steps li.now { border-color: var(--blue); background: var(--white); }
.ai-step-ic { position: relative; flex-shrink: 0; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--blue); color: #fff; }
.ai-step-ic::after { content: counter(step); position: absolute; top: -4px; right: -4px; width: 19px; height: 19px; border-radius: 50%; background: #fff; color: var(--blue); font: 700 11px/19px Inter, sans-serif; text-align: center; box-shadow: 0 0 0 1px var(--blue); }
.ai-step-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ai-player { margin: 0; display: flex; flex-direction: column; min-width: 0; border-radius: var(--r-lg); overflow: hidden; background: #0E0F1A; }
.ai-player figcaption { display: flex; align-items: center; gap: 8px; padding: 8px 12px; color: #fff; font: 600 13px Outfit, Inter, sans-serif; }
.ai-player figcaption svg { width: 16px; height: 16px; fill: currentColor; }
.ai-player.claude figcaption { background: #D97757; }
.ai-player.chatgpt figcaption { background: #000; }
.ai-player video { flex: 1; display: block; width: 100%; min-height: 0; object-fit: contain; background: #0E0F1A; }
.copy-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.copy-btn.done { border-color: var(--ok); color: var(--ok); }
@media (max-width: 760px) { .ai-brands, .ai-drop.has-video { grid-template-columns: 1fr; } }
.ai-key { margin-top: 12px; padding: 12px; border-radius: var(--r); background: var(--blue-wash); }
.ai-key p { margin: 8px 0 0; }
.ai-key p:first-child { margin-top: 0; }
.ai-list { display: flex; flex-direction: column; }
.ai-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.ai-row:first-child { border-top: 0; padding-top: 0; }
.ai-row .muted { margin-top: 2px; }

/* Inbox Rules, Facebook Page mentions, sent-post previews */
.rule-form { display: grid; gap: 12px; }
.rule-form select, .rule-form textarea { padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; font: 14px Inter, sans-serif; color: var(--ink); }
.rule-form select { width: 100%; min-width: 0; }
.rule-form textarea { resize: vertical; }
.mention-row { display: flex; gap: 8px; }
.mention-row input { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; font-size: 13px; }
.mention-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 12px; border-radius: var(--pill); background: var(--blue-wash); color: var(--blue); font-size: 13px; font-weight: 600; }
.mention-chip button { border: 0; background: none; color: inherit; font-size: 15px; line-height: 1; padding: 2px 6px; cursor: pointer; border-radius: var(--pill); }
.mention-chip button:hover { background: #fff; }
.embed-body { display: grid; gap: 14px; }
.embed-item { display: grid; gap: 8px; }
.embed-frame { width: 100%; height: 640px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }

/* ── plan ───────────────────────────────────────────────────────────────── */
.plan-now { max-width: 760px; margin-bottom: 8px; }
.plan-now h2 { font-size: 24px; margin: 2px 0 0; }
.plan-label { margin: 0; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--soft); }
.plan-status { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; max-width: 1040px; margin: 28px 0 12px; }
.plan-head .sec-title { margin: 0; }
.plan-tiles { max-width: 1040px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.plan-tile { min-height: 0; }
.plan-tile.on { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), var(--sh-sm); }
.plan-n { color: var(--blue); }
.plan-price { margin: 0; font: 600 36px/1 Outfit, Inter, sans-serif; letter-spacing: -0.02em; }
.plan-price small { font: 500 14px Inter, sans-serif; color: var(--soft); }
.plan-sub { margin: 0; color: var(--muted); font-size: 14px; flex: 1; }
.plan-tile .btn[disabled] { opacity: .7; cursor: default; }
.plan-x { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: 760px; margin-top: 18px; }
.plan-pw .pw-row { display: flex; gap: 8px; flex-wrap: wrap; }
.plan-pw input { padding: 8px 10px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; font: inherit; min-width: 200px; }

/* ── help & feedback ─────────────────────────────────────────────────────── */
.mem-card { padding: 0; overflow-x: auto; }
.mem-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mem-table th { text-align: left; padding: 11px 16px; font-size: 12px; font-weight: 600; color: var(--soft); border-bottom: 1px solid var(--line); white-space: nowrap; }
.mem-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.mem-table tr:last-child td { border-bottom: 0; }
.mem-table tbody tr:hover { background: var(--ghost); }
.mem-table small { display: block; margin-top: 3px; color: var(--soft); font-size: 12px; }
.mem-who { font-weight: 500; }
.mem-dim { color: var(--soft); white-space: nowrap; }
.mem-over { color: var(--bad); font-weight: 600; white-space: nowrap; }
.badge.mem-paid { background: var(--blue-wash); color: var(--blue-dark); }
.mem-act { text-align: right; width: 1%; white-space: nowrap; }
.mem-dlg h2 { text-align: left; margin: 0 32px 18px 0; font-size: 18px; overflow-wrap: anywhere; }
.mem-field { display: grid; gap: 6px; margin-bottom: 14px; font-size: 13px; font-weight: 600; text-align: left; }
.mem-field[hidden], .mem-x[hidden] { display: none; }
.mem-field select { width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--white); font: inherit; font-weight: 400; font-size: 14px; color: var(--ink); }
.mem-x { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 14px; }
.mem-x input { width: auto; margin: 0; }
.mem-dlg .adm-error { margin-bottom: 12px; }
.mem-dlg .up-go { width: 100%; }
.fb-card { max-width: 760px; display: grid; gap: 12px; }
.fb-card h2 { font-size: 20px; margin: 0; }
.fb-card .muted { margin: 0; }
.fb-kind { justify-self: start; }
.fb-card textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r); font: inherit; font-size: 15px; resize: vertical; background: #fff; }
.fb-card textarea:focus { outline: 2px solid var(--blue-tint); border-color: var(--blue); }
.fb-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.faq { max-width: 760px; display: grid; gap: 8px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-weight: 700; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 10px 0 0; color: var(--muted); }
.faq details p { white-space: pre-wrap; }
.help-search { width: 100%; max-width: 760px; padding: 10px 14px; margin-bottom: 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--white); font: inherit; }
.guide-topic { margin: 10px 0 0; font-size: 13px; font-weight: 600; color: var(--soft); }
.faq details video { display: block; width: 100%; margin-top: 12px; border-radius: var(--r); background: #000; }
.faq summary .guide-vid { margin-left: auto; flex: none; font-size: 12px; font-weight: 600; color: var(--blue); }
.yt-box { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; margin-top: 12px; padding: 0; border: 0; border-radius: var(--r); background: #000; overflow: hidden; cursor: pointer; }
.yt-box img, .yt-box iframe { display: block; width: 100%; height: 100%; border: 0; object-fit: cover; }
.yt-play { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; border-radius: 12px; background: #f00; box-shadow: 0 4px 16px rgba(0, 0, 0, .35); }
.yt-play::after { content: ""; position: absolute; left: 27px; top: 14px; border-left: 18px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.yt-box:hover .yt-play { background: #cc0000; }
.help-tabs { display: flex; gap: 4px; max-width: 760px; margin-bottom: 16px; padding: 4px; border-radius: 999px; background: var(--white); border: 1px solid var(--line-2); }
.help-tabs button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: 600 14px Inter, sans-serif; cursor: pointer; }
.help-tabs button svg { width: 18px; height: 18px; fill: currentColor; }
.help-tabs button.on { background: var(--blue); color: #fff; }
.help-tabs .nav-badge { margin: 0; }
.chat-btn { position: fixed; right: 24px; bottom: 24px; z-index: 40; display: grid; place-items: center; width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%; background: var(--blue); color: #fff; box-shadow: var(--sh-lg); cursor: pointer; }
.chat-btn:hover { background: var(--blue-dark); }
.chat-btn[hidden], .chat-box[hidden] { display: none; }
.chat-btn svg { width: 26px; height: 26px; fill: currentColor; }
.chat-btn .nav-badge { position: absolute; top: -2px; right: -2px; margin: 0; }
.chat-box { position: fixed; right: 24px; bottom: 92px; z-index: 40; display: flex; flex-direction: column; width: min(420px, calc(100vw - 32px)); height: min(680px, calc(100dvh - 116px)); border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--bg); box-shadow: var(--sh-xl); overflow: hidden; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 10px; background: var(--blue); color: #fff; font: 600 17px Outfit, Inter, sans-serif; }
.chat-head span { display: grid; gap: 2px; }
.chat-head small { font: 400 13px Inter, sans-serif; opacity: .85; }
.chat-head .icon-btn { color: #fff; background: transparent; border-color: rgba(255, 255, 255, .35); }
.chat-body .help-tabs { position: sticky; top: 0; z-index: 1; margin: -12px -12px 14px; padding: 2px 16px 14px; border: 0; border-radius: 0; background: var(--blue); }
.chat-body .help-tabs button { background: rgba(255, 255, 255, .14); color: #fff; }
.chat-body .help-tabs button.on { background: #fff; color: var(--blue); }
.chat-body { flex: 1; min-height: 0; overflow-y: auto; padding: 12px; }
.chat-body .fb-card textarea { height: 96px; }
.chat-body .tk-head { flex-wrap: wrap; }
.chat-body .tk-head .tk-preview { flex-basis: 100%; }
@media (max-width: 760px) { .chat-btn.in-inbox { display: none; } .chat-btn { right: 16px; bottom: 16px; } .chat-box { inset: 0; width: 100%; height: 100dvh; border: 0; border-radius: 0; } }
.tk-mine { max-width: 760px; display: grid; gap: 8px; margin-bottom: 8px; }
.tk-card { padding: 0; overflow: hidden; }
.tk-card.tk-unread { border-color: var(--blue); }
.tk-head { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: none; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.tk-head:hover { background: var(--ghost); }
.tk-head .tk-preview { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.tk-unread .tk-preview { color: var(--blue-dark); }
.tk-head .small { white-space: nowrap; }
.tk-body { display: grid; gap: 12px; padding: 0 16px 16px; }
.tk-body textarea, .tk-reply textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r); font: inherit; font-size: 15px; resize: vertical; background: var(--white); }
.tk-body textarea:focus, .tk-reply textarea:focus { outline: 2px solid var(--blue-tint); border-color: var(--blue); }
.tk-thread { display: grid; gap: 10px; }
.tk-msg { display: grid; gap: 4px; padding: 12px 14px; border-radius: var(--r-lg); background: var(--bg); }
.tk-msg.tk-support { background: var(--blue-wash); }
.adm .tk-msg.tk-customer { background: var(--white); border: 1px solid var(--line); }
.tk-msg p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
#tkList, #hpList { display: grid; gap: 12px; }
.tk-row { display: grid; gap: 8px; width: 100%; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.tk-row:hover { border-color: var(--blue); }
.tk-row .tk-preview { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-back { margin-bottom: 14px; }
.tk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.tk-main { display: grid; gap: 14px; min-width: 0; }
.tk-reply { display: grid; gap: 10px; }
.tk-side h3 { margin: 0 0 12px; font-size: 15px; overflow-wrap: anywhere; }
.tk-side h4 { margin: 16px 0 8px; font-size: 13px; }
.tk-side p { margin: 0; }
.tk-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; margin: 0; font-size: 14px; }
.tk-facts dt { color: var(--soft); }
.tk-facts dd { margin: 0; }
.tk-accts, .tk-fails { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.tk-accts li, .tk-fail-acct { display: flex; align-items: center; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.tk-fails li { display: grid; gap: 3px; }
.tk-fail-acct .small { margin-left: auto; white-space: nowrap; }
.tk-error { color: var(--bad); font-size: 13px; overflow-wrap: anywhere; }
.hp-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.hp-hidden { background: var(--ghost); }
.hp-text { flex: 1 1 380px; min-width: 0; }
.hp-topic { display: block; margin: 0 0 4px; }
.hp-text .badge { margin-left: 8px; }
.hp-text p { margin: 6px 0 0; white-space: pre-wrap; }
.mem-field input, .mem-field textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--white); font: inherit; font-weight: 400; resize: vertical; }
@media (max-width: 860px) { .tk-grid { grid-template-columns: minmax(0, 1fr); } .tk-head { flex-wrap: wrap; } .tk-head .tk-preview { flex-basis: 100%; } }
.fb-admin-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.fb-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fb-msg { margin: 10px 0 12px; white-space: pre-wrap; }
.fb-act { display: flex; gap: 8px; flex-wrap: wrap; }
.badge.fb-problem { background: #FDECEC; color: #B42318; }
.badge.fb-idea { background: var(--ok-wash, #E6F6EC); color: var(--ok-ink, #007A31); }
.fb-empty { padding: 20px 0; }

/* upgrade pop-up (app.js upsell) */
.upsell { width: min(420px, calc(100vw - 32px)); border-radius: var(--r-xl); box-shadow: var(--sh-xl); padding: 28px 24px 22px; background: var(--white); color: var(--ink); text-align: center; position: relative; }
.upsell .up-x { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border: 0; background: none; font-size: 26px; line-height: 1; color: var(--ink); cursor: pointer; border-radius: var(--pill); }
.upsell .up-x:hover { background: var(--blue-wash); }
.upsell .up-icon { display: flex; justify-content: center; margin-bottom: 12px; }
.upsell .up-icon:empty { display: none; }
.upsell h2 { font-size: 22px; margin: 0 0 8px; }
.upsell p { margin: 0 0 18px; font-size: 15px; color: var(--ink); }
.upsell .msg:empty { display: none; }
.upsell .up-body:empty { display: none; }
.upsell .up-body { max-height: min(46vh, 340px); overflow-y: auto; margin: 0 0 16px; text-align: left; }
.pick-row { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 8px; cursor: pointer; font-weight: 500; }
.pick-row:hover { background: var(--blue-wash); }
.pick-row input { width: 18px; height: 18px; flex: none; accent-color: #3B40D5; }
.pick-row img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; flex: none; }
.pick-row span { min-width: 0; overflow-wrap: anywhere; }
.upsell .up-go { width: 100%; padding: 15px 18px; font-size: 16px; }
.upsell .up-go.up-danger { background: var(--bad); border-color: var(--bad); }
.upsell .up-go.up-danger:hover { background: #B32E0D; border-color: #B32E0D; }
.upsell .up-icon .acct-av { width: 72px; height: 72px; }
.upsell .up-icon .acct-av > .ni { width: 28px; height: 28px; right: -2px; bottom: -2px; box-shadow: 0 0 0 3px var(--white); }
.upsell .up-icon > .avatar-ni { width: 72px; height: 72px; }
/* "You're connected" (app.js congrats): a soft glow up top, the photo pops, rings pulse, sparks fly, the check draws */
.upsell.party { padding-top: 40px; background: radial-gradient(120% 60% at 50% 0%, var(--blue-wash) 0%, var(--white) 70%); overflow: visible; }
.upsell.party h2 { font-size: 26px; letter-spacing: -.01em; }
.upsell.party .up-icon { margin-bottom: 20px; }
.upsell .up-done { position: relative; display: grid; place-items: center; width: 96px; height: 96px; }
.upsell .up-done > .avatar-ni { position: relative; z-index: 2; width: 96px; height: 96px; box-shadow: 0 0 0 4px var(--white), 0 10px 30px -8px var(--net); animation: up-pop .55s cubic-bezier(.2, 1.5, .4, 1) both; }
.upsell .up-done > .ni.avatar-ni, .upsell .up-done > .ni { border-radius: 50%; }
.upsell .up-done .acct-av > .ni { width: 32px; height: 32px; right: -2px; bottom: -2px; box-shadow: 0 0 0 3px var(--white); }
.upsell .up-done .ring { position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--net); opacity: 0; animation: up-ring 1.4s .25s ease-out 2 both; }
.upsell .up-done .ring.r2 { animation-delay: .6s; }
.upsell .up-done .spark { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: var(--c); opacity: 0; animation: up-spark 1s calc(.3s + var(--t)) cubic-bezier(.15, .8, .3, 1) both; }
.upsell .up-done .spark:nth-of-type(3n) { width: 7px; height: 15px; margin: -7px -3px; border-radius: 4px; }
.upsell .up-check { position: absolute; z-index: 3; left: -4px; bottom: -2px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--white); animation: up-pop .45s .45s cubic-bezier(.2, 1.6, .4, 1) both; }
.upsell .up-check svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 20; animation: up-draw .35s .75s ease-out forwards; }
@keyframes up-pop { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes up-ring { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes up-spark { 0% { transform: rotate(var(--a)) translateY(0) scale(.4); opacity: 0; } 20%, 55% { opacity: 1; } 100% { transform: rotate(var(--a)) translateY(calc(-1 * var(--d))) scale(1); opacity: 0; } }
@keyframes up-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .upsell .up-done *, .upsell .up-done > .avatar-ni { animation: none !important; } .upsell .up-done .ring, .upsell .up-done .spark { display: none; } .upsell .up-check svg { stroke-dashoffset: 0; } }
/* Facebook's "Continue as …" buttons, Edit settings ringed: the one to press. */
.upsell .fb-mock { display: flex; gap: 10px; padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid #dadde1; font: 600 14px/1 system-ui, sans-serif; }
.upsell .fb-mock span { padding: 10px 18px; border-radius: 6px; }
.upsell .fb-edit { color: #1c1e21; background: #fff; border: 1px solid #ccd0d5; box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--blue); }
.upsell .fb-cont { color: #fff; background: #0866ff; opacity: .35; }
.upsell .up-alt { width: 100%; margin-top: 10px; color: var(--ink); border-color: var(--line-2); }
.t-note { margin: 6px 0 0; font-size: 12px; color: var(--ink); }

/* Account groups (Social accounts): the groups on the left, the picked one or All on the right.
   Blue Notary users see them as businesses. Composer headings with an All button per group. */
#groupsBox { margin-bottom: 8px; }
.grp-split { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 16px; align-items: start; }
.grp-list { padding: 6px; display: grid; gap: 2px; }
.grp-row { display: flex; align-items: center; gap: 11px; padding: 9px; border-radius: 10px; cursor: pointer; min-width: 0; transition: background .12s, box-shadow .12s, opacity .12s; }
.grp-row:hover { background: var(--ghost); }
.grp-row.sel { background: var(--blue-wash); }
.grp-row[draggable="true"] { cursor: grab; }
.grp-row.all { border-bottom: 1px solid var(--line); border-radius: 10px 10px 0 0; margin-bottom: 4px; }
.grp-row.loose .grp-t b { color: var(--muted); font-weight: 500; }
.grp-row.over { background: var(--blue-wash); box-shadow: 0 0 0 2px var(--blue); }
.grp-row.dragging, .grp-acct.dragging { opacity: .35; }
.grp-t { display: grid; gap: 3px; min-width: 0; flex: 1; }
.grp-t b { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grp-t small { font-size: 12px; color: var(--soft); }
.grp-nets { display: flex; gap: 3px; flex-wrap: wrap; }
.grp-n { font-size: 12px; color: var(--soft); font-variant-numeric: tabular-nums; flex: none; }
.grp-add { margin: 6px 4px 4px; justify-self: start; }
.grp-logo { width: 38px; height: 38px; border-radius: 9px; flex: none; display: inline-grid; place-items: center; color: #fff; font: 600 14px "Outfit", sans-serif; overflow: hidden; }
.grp-logo svg { width: 56%; height: 56%; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.grp-logo.pic { background: #fff; border: 1px solid var(--line); }
.grp-logo.pic img { width: 100%; height: 100%; object-fit: cover; }
.grp-logo.none { background: var(--ghost); color: var(--soft); border: 1px dashed var(--line-2); }
.grp-logo.xs { width: 22px; height: 22px; border-radius: 6px; font-size: 10px; }
.grp-logo.sm { width: 28px; height: 28px; border-radius: 7px; font-size: 12px; }
.grp-logo.lg { width: 52px; height: 52px; border-radius: 12px; font-size: 19px; }
.grp-stack { display: flex; align-items: center; min-width: 38px; flex: none; }
.grp-stack .grp-logo { box-shadow: 0 0 0 2px #fff; }
.grp-stack .grp-logo + .grp-logo { margin-left: -8px; }
.grp-main { padding: 20px; display: grid; gap: 16px; min-width: 0; }
.grp-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.grp-head h2 { margin: 0; font-size: 20px; }
.grp-meta { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.grp-tools { margin-left: auto; display: flex; gap: 8px; }
#acctSort { flex: none; }
#acctSort .seg button { white-space: nowrap; }
.grp-del { display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--soft); cursor: pointer; transition: background .12s, color .12s; }
.grp-del svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.grp-del:hover, .grp-del:focus-visible { background: var(--bad-bg); color: var(--bad); }
.grp-accts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.grp-acct { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; min-width: 0; }
.grp-acct[draggable="true"] { cursor: grab; }
.grp-acct .acct-name { flex: 1; }
.grp-hint { margin: 0; font-size: 13px; color: var(--soft); }
.grp-form { display: grid; gap: 18px; max-width: 560px; }
.grp-form h2 { margin: 0; font-size: 20px; }
.grp-prev { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--ghost); border: 1px solid var(--line); border-radius: 10px; }
.grp-prev b { font-size: 15px; min-width: 0; overflow-wrap: anywhere; }
.grp-field { display: grid; gap: 8px; justify-items: start; }
.grp-field > label:not(.btn), .grp-label { font-size: 13px; font-weight: 500; color: var(--muted); }
.grp-field input:not([type=file]) { width: 100%; border: 1px solid var(--line-2); border-radius: var(--r); padding: 9px 12px; font: inherit; }
.grp-field input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px var(--blue-wash); }
.grp-field .btn { cursor: pointer; }
.grp-err { margin: 0; color: var(--bad); font-size: 13px; }
.grp-icons { display: grid; grid-template-columns: repeat(auto-fill, 40px); gap: 6px; width: 100%; }
.grp-ic { width: 40px; height: 40px; border-radius: 9px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--muted); cursor: pointer; font: 600 13px "Outfit", sans-serif; }
.grp-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.grp-ic:hover { border-color: var(--blue); color: var(--blue); }
.grp-ic.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.grp-colors { display: flex; gap: 8px; flex-wrap: wrap; }
.grp-co { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line-2); cursor: pointer; }
.grp-co.on { box-shadow: 0 0 0 2px var(--ink); }
.grp-actions { display: flex; gap: 8px; justify-content: flex-end; }
.cmp-grp { display: flex; align-items: center; gap: 8px; padding: 10px 2px 2px; margin-top: 4px; border-top: 1px solid var(--line); font-size: 13px; }
.cmp-grp:first-child, .cmp-warn + .cmp-grp { border-top: 0; margin-top: 0; }
.cmp-grp b { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp-grp-fold { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; padding: 2px 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.cmp-chev { flex: none; width: 7px; height: 7px; margin: 0 2px; border-right: 2px solid var(--soft); border-bottom: 2px solid var(--soft); transform: rotate(-45deg); }
.cmp-grp-fold.open .cmp-chev { transform: rotate(45deg); }
.cmp-net-line { width: calc(100% - 12px); height: 1px; margin: 5px 6px; border: 0; background: var(--line); }
.cmp-grp-n { font-size: 12px; color: var(--soft); font-variant-numeric: tabular-nums; }
.cmp-grp-all { border: 1px solid var(--line-2); background: #fff; border-radius: var(--pill); padding: 2px 10px; font-family: inherit; font-size: 12px; font-weight: 500; cursor: pointer; }
.cmp-grp-all.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.cmp-warn { margin: 0 0 4px; padding: 6px 10px; border-radius: var(--r); background: var(--warn-bg); color: var(--warn); font-size: 12px; }
@media (max-width: 860px) { .grp-split { grid-template-columns: minmax(0, 1fr); } }

/* Social accounts: "Add an account", one slim dashed card per platform. The faces on a
   card open the accounts already on it; the card never grows taller for them. */
.add-sec { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; }
.add-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; min-width: 0; }
.add-h b { font-weight: 600; }
.add-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.add-card { display: flex; align-items: center; gap: 4px; border: 1px dashed var(--line-2); border-radius: 10px; background: var(--ghost); min-width: 0; }
.add-card:has(.add-go:hover) { border-color: var(--blue); background: var(--white); }
.add-go { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; padding: 12px; border: 0; background: none; text-align: left; cursor: pointer; border-radius: 10px; }
.add-go:disabled { cursor: default; }
.add-t { display: grid; min-width: 0; }
.add-t b, .add-t small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.add-t b { font: 600 15px/1.3 Outfit, Inter, sans-serif; color: var(--muted); }
.add-t small { font-size: 13px; color: var(--soft); }
.add-go:not(:disabled):hover b { color: var(--blue); }
.add-card.soon .ni { opacity: .45; }
.add-pop { position: relative; display: flex; flex: none; margin-right: 10px; }
.add-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.add-title b { min-width: 0; }
.add-paid { flex: none; padding: 3px 7px; border-radius: var(--pill); background: var(--warn-bg); color: var(--warn); font: 600 11px/1 Inter, sans-serif; white-space: nowrap; }
.add-faces { display: inline-flex; align-items: center; padding: 2px; border: 0; border-radius: var(--pill); background: none; cursor: pointer; }
.add-faces:hover, .add-faces[aria-expanded="true"] { background: var(--blue-wash); }
.add-faces > img, .add-faces > span { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--ghost); background: var(--blue); color: #fff; display: grid; place-items: center; font: 700 10px Outfit, sans-serif; }
.add-faces > * + * { margin-left: -9px; }
.add-faces > b { margin-left: 4px; }
.add-faces > b { margin-left: 3px; padding-right: 4px; font-size: 12px; color: var(--blue); }
.add-list { position: absolute; z-index: 20; right: -10px; top: calc(100% + 8px); width: min(340px, 84vw); padding: 12px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-lg); display: grid; gap: 6px; }
.add-list h3 { display: flex; align-items: center; gap: 8px; font-size: 14px; padding-bottom: 4px; }
.add-row + .add-row { border-top: 1px solid var(--line); padding-top: 6px; }
.add-acct { display: flex; align-items: center; gap: 10px; min-width: 0; }
.add-acct .acct-name { flex: 1; }
.add-grp { display: inline-flex; align-items: center; gap: 5px; min-width: 0; font-size: 12px; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.add-grp .grp-logo.xs { width: 16px; height: 16px; border-radius: 5px; font-size: 9px; }
.add-list > .btn { justify-content: center; margin-top: 4px; }
.add-row .t-board { padding: 4px 0 0 44px; }
.unplug.icon { padding: 0; width: 28px; height: 28px; justify-content: center; border-color: transparent; background: none; color: var(--soft); }
.unplug.icon:hover, .unplug.icon:focus-visible { background: var(--bad-bg); border-color: transparent; color: var(--bad); }
.adm { background: var(--bg); }
.adm .brand { padding: 0; font-size: 18px; }
.adm-tag { font: 600 12px/1 Inter, sans-serif; color: var(--muted); margin-left: 4px; padding: 4px 8px; background: var(--bg); border-radius: var(--pill); }
.adm-login { width: min(360px, calc(100% - 32px)); margin: 12vh auto 0; display: grid; gap: 12px; }
.adm-login[hidden] { display: none; }
.adm-login .brand { margin-bottom: 6px; }
.adm-login input, .adm .fb-admin-head input { padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--white); font: inherit; font-size: 14px; }
.adm .fb-admin-head input { width: min(280px, 100%); padding: 8px 12px; }
.adm-right { margin-left: auto; }
.adm-error { margin: 0; color: var(--bad); font-size: 14px; }
.adm-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; padding: 12px max(16px, calc((100% - 1120px) / 2 + 16px)); background: var(--white); border-bottom: 1px solid var(--line); }
.adm-me { margin-left: auto; display: inline-flex; align-items: center; gap: 12px; }
.adm-main { max-width: 1120px; margin: 0 auto; padding: 24px 16px; }
.adm-count { margin-left: 6px; font-size: 12px; }
