/* Vekto brand: Montserrat (embedded) */
@font-face{font-family:Montserrat;font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/montserrat-latin-ext-500-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:Montserrat;font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/montserrat-latin-500-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Montserrat;font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/montserrat-latin-ext-600-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:Montserrat;font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/montserrat-latin-600-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Montserrat;font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/montserrat-latin-ext-700-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:Montserrat;font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/montserrat-latin-700-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
:root {
  --ink: #1c1b29;
  --ink-2: #4a4860;
  --muted: #8a879c;
  --line: #e6e6ec;
  --bg: #f3f3f6;
  --card: #ffffff;
  --accent: #6745e5;
  --accent-2: #a08eef;
  --accent-dark: #5536d1;
  --accent-soft: #e4defd;
  --accent-line: #c9bff7;
  --ok: #1f9d6b;
  --ok-soft: #e6f6ee;
  --warn: #c98a00;
  --warn-soft: #fff6dd;
  --bad: #d93a3a;
  --bad-soft: #fdeaea;
  --info: #5536d1;
  --info-soft: #e4defd;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(28, 27, 41, .06), 0 8px 24px rgba(28, 27, 41, .06);
  font-family: Montserrat, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }
h1 { font-size: 26px; letter-spacing: -.02em; margin: 0; }
h2 { font-size: 17px; margin: 0 0 12px; }

/* ---------- layout ---------- */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 22px 16px; border-right: 1px solid var(--line); background: var(--card); display: flex; flex-direction: column; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 18px; letter-spacing: -.02em; padding: 0 6px; }
.brand.big { font-size: 24px; justify-content: center; margin-bottom: 8px; }
.logo { width: 30px; height: 30px; flex: none; display: block; }
.brand.big .logo { width: 40px; height: 40px; }
.wordmark { font-weight: 700; letter-spacing: -.025em; }
.wordmark b { color: var(--accent); font-weight: 700; }
.wordmark i { color: var(--accent-2); font-style: normal; }
nav { display: flex; flex-direction: column; gap: 2px; }
nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-weight: 550; }
nav a svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
nav a:hover { background: var(--bg); }
nav a.active { background: var(--accent-soft); color: var(--accent-dark); }
nav a.subnav { padding-left: 28px; font-size: 14px; font-weight: 500; }
nav a.subnav svg { width: 17px; height: 17px; }
.logout { margin-top: auto; }
main { padding: 28px 32px 80px; min-width: 0; max-width: 1280px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head .sub { color: var(--muted); margin-top: 4px; font-size: 14px; }
.fab { display: none; }

/* ---------- controls ---------- */
.btn { border: 1px solid var(--line); background: var(--card); padding: 9px 16px; border-radius: 10px; font-weight: 600; cursor: pointer; transition: transform .05s, background .15s; white-space: nowrap; }
.btn:hover { background: var(--bg); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.danger { color: var(--bad); }
.btn.small { padding: 6px 12px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.link-btn { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; text-align: left; }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); cursor: pointer; font-size: 18px; line-height: 1; }
.seg { display: inline-flex; background: #efecf3; border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; padding: 7px 14px; border-radius: 8px; font-weight: 600; color: var(--ink-2); cursor: pointer; font-size: 14px; }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
label { display: block; font-weight: 600; font-size: 14px; }
input[type=text], input[type=url], input[type=password], input[type=datetime-local], textarea {
  width: 100%; margin-top: 6px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; outline: none;
}
input:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { resize: vertical; min-height: 150px; line-height: 1.5; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.error { color: var(--bad); font-size: 14px; min-height: 1em; margin: 8px 0 0; }
.muted { color: var(--muted); }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty strong { display: block; color: var(--ink); font-size: 17px; margin-bottom: 6px; }

/* ---------- badges ---------- */
.net { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #fff; font-size: 11px; font-weight: 800; flex: none; position: relative; }
.net.lg { width: 40px; height: 40px; font-size: 16px; }
.net img.face { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.net img.nbl { position: absolute; right: -3px; bottom: -3px; width: 55%; height: 55%; min-width: 11px; min-height: 11px;
  border-radius: 50%; border: 1.5px solid #fff; background: #fff; object-fit: cover; }
.net.logo-only { background: none; }
.net-facebook { --c: #1877f2; background: var(--c); }
.net-instagram { --c: #e1306c; background: linear-gradient(45deg, #f9a03f, #e1306c 55%, #8a3ab9); }
.net-tiktok { --c: #111; background: var(--c); }
.net-youtube { --c: #ff0000; background: var(--c); }
.net-pinterest { --c: #e60023; background: var(--c); }
.net-x { --c: #000; background: var(--c); }
.net-demo { --c: #8b5cf6; background: var(--c); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; text-transform: capitalize; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.s-scheduled { background: var(--info-soft); color: var(--info); }
.s-published { background: var(--ok-soft); color: var(--ok); }
.s-failed, .s-partial { background: var(--bad-soft); color: var(--bad); }
.s-draft { background: #f0eef3; color: var(--ink-2); }
.s-publishing { background: var(--warn-soft); color: var(--warn); }

/* ---------- calendar ---------- */
.cal-toolbar { display: flex; align-items: center; gap: 8px; }
.cal-title { font-size: 20px; font-weight: 700; min-width: 170px; text-align: center; letter-spacing: -.01em; }
.calendar { overflow: hidden; }
.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-head div { padding: 10px 12px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--line); }
.day { min-height: 128px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 8px; position: relative; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.day:nth-child(7n) { border-right: 0; }
.day:hover { background: #fcfbfa; }
.day.other { background: #faf9f7; }
.day.other .num { color: #c4c1cf; }
.day.past { background-image: repeating-linear-gradient(135deg, transparent 0 8px, rgba(0,0,0,.012) 8px 16px); }
.num { font-size: 13px; font-weight: 650; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; }
.day.today .num { background: var(--accent); color: #fff; }
.day.selected { box-shadow: inset 0 0 0 2px var(--accent); }
.day .add { position: absolute; top: 8px; right: 8px; opacity: 0; border: 0; background: var(--accent-soft); color: var(--accent); width: 24px; height: 24px; border-radius: 7px; cursor: pointer; font-weight: 700; }
.day:hover .add { opacity: 1; }
.chip { display: flex; align-items: center; gap: 6px; font-size: 12px; padding: 4px 6px; border-radius: 7px; background: var(--bg); border-left: 3px solid var(--muted); overflow: hidden; cursor: pointer; }
.chip:hover { filter: brightness(.97); }
.chip .t { font-weight: 700; color: var(--ink-2); flex: none; }
.chip .x { flex: 1; min-width: 0; text-align: start; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip .nets { display: flex; margin-left: auto; flex: none; }
.chip .nets .net { width: 14px; height: 14px; font-size: 0; margin-left: -4px; border: 1.5px solid #fff; }
.chip.scheduled { border-left-color: var(--info); background: var(--info-soft); }
.chip.published { border-left-color: var(--ok); background: var(--ok-soft); }
.chip.failed, .chip.partial { border-left-color: var(--bad); background: var(--bad-soft); }
.chip.draft { border-left-color: #b9b5c7; background: #f2f0f5; }
.chip.publishing { border-left-color: var(--warn); background: var(--warn-soft); }
.more { font-size: 12px; color: var(--muted); padding-left: 4px; }
.dots { display: none; gap: 3px; flex-wrap: wrap; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.dots i.scheduled { background: var(--info); } .dots i.published { background: var(--ok); }
.dots i.failed, .dots i.partial { background: var(--bad); } .dots i.draft { background: #b9b5c7; }
.day-panel { margin-top: 16px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* ---------- post list ---------- */
.post-list { display: flex; flex-direction: column; }
.post-row { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); cursor: pointer; }
.post-row:last-child { border-bottom: 0; }
.post-row:hover { background: #fcfbfa; }
.thumb { width: 56px; height: 56px; border-radius: 10px; background: var(--bg); object-fit: cover; display: grid; place-items: center; color: var(--muted); font-size: 20px; overflow: hidden; }
.thumb video, .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-row .txt { text-align: start; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-row .meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.post-row .nets { display: flex; gap: 2px; }
.date-group { padding: 10px 16px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; background: #faf9f7; border-bottom: 1px solid var(--line); }

/* ---------- accounts ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.acct { padding: 16px; display: flex; align-items: center; gap: 12px; }
.acct .info { min-width: 0; flex: 1; }
.acct .name { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct .handle { color: var(--muted); font-size: 13px; }
.connect { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.connect .row { display: flex; align-items: center; gap: 10px; font-weight: 650; }
.connect p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; flex: 1; }
.section { margin-top: 30px; }
.notice { padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; }
.notice.ok { background: var(--ok-soft); color: var(--ok); }
.notice.bad { background: var(--bad-soft); color: var(--bad); }

/* ---------- modal / composer ---------- */
dialog { border: 0; padding: 0; border-radius: 18px; width: min(880px, calc(100vw - 32px)); max-height: calc(100vh - 32px); box-shadow: 0 30px 80px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(28, 27, 41, .45); backdrop-filter: blur(2px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 1; }
.modal-head h2 { margin: 0; }
.modal-body { padding: 20px 22px; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; align-items: center; padding: 14px 22px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: #fff; flex-wrap: wrap; }
.modal-foot .spacer { flex: 1; }
.composer { display: grid; grid-template-columns: 1fr 300px; gap: 22px; }
.composer > div { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.picker { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 12px; }
.pick { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 76px; cursor: pointer; user-select: none; }
.pick input { display: none; }
.pick .av { position: relative; width: 60px; height: 60px; border-radius: 50%; background: #1c1b29; color: #fff; display: grid; place-items: center;
  border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--line), 0 2px 8px rgba(0,0,0,.08); transition: transform .12s, box-shadow .12s, opacity .12s; opacity: .45; }
.pick .av .face { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.pick .av b { font-size: 22px; }
.pick .nb { position: absolute; right: -5px; bottom: -5px; width: 24px; height: 24px; border-radius: 50%; border: 2.5px solid #fff; overflow: hidden;
  display: grid; place-items: center; color: #fff; font-size: 9px; font-weight: 800; }
.pick .tick { position: absolute; left: -4px; top: -4px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff;
  font-style: normal; font-size: 12px; font-weight: 800; display: none; place-items: center; border: 2px solid #fff; }
.pick .pl { font-size: 12px; font-weight: 600; color: var(--ink-2); max-width: 76px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.pick:hover .av { opacity: .75; }
.pick.on .av { opacity: 1; box-shadow: 0 0 0 2.5px var(--accent), 0 4px 12px rgba(103,69,229,.25); transform: translateY(-1px); }
.pick.on .tick { display: grid; }
.pick.on .pl { color: var(--ink); }
.counter { text-align: right; font-size: 12px; color: var(--muted); margin-top: 4px; }
.counter.over { color: var(--bad); font-weight: 700; }
.drop { border: 1.5px dashed #d5d1de; border-radius: 12px; padding: 18px; text-align: center; color: var(--muted); cursor: pointer; font-size: 14px; position: relative; }
.drop:hover, .drop.drag { border-color: var(--accent); background: var(--accent-soft); }
.drop input { display: none; }
.media-preview { position: relative; border-radius: 12px; overflow: hidden; background: #000; }
.media-preview img, .media-preview video { width: 100%; max-height: 320px; object-fit: contain; display: block; }
.media-preview .remove { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,.6); color: #fff; border: 0; border-radius: 8px; padding: 5px 10px; cursor: pointer; font-size: 13px; }
.when { display: flex; flex-direction: column; gap: 10px; }
.warns { display: flex; flex-direction: column; gap: 6px; }
.warn { font-size: 13px; background: var(--warn-soft); color: #8a5d00; padding: 8px 10px; border-radius: 8px; }
.preview { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: #fff; }
.preview .who { display: flex; align-items: center; gap: 8px; font-weight: 650; font-size: 14px; margin-bottom: 10px; }
.preview .body { font-size: 14px; white-space: pre-wrap; word-break: break-word; line-height: 1.45; max-height: 220px; overflow: auto; }
.preview .pm { margin-top: 10px; border-radius: 10px; overflow: hidden; background: #000; }
.preview .pm img, .preview .pm video { width: 100%; display: block; max-height: 220px; object-fit: cover; }
.targets { display: flex; flex-direction: column; gap: 8px; }
.target { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
.target .err { color: var(--bad); font-size: 13px; margin-top: 2px; }
.target .grow { flex: 1; min-width: 0; }

#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 12px; font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: .2s; z-index: 1000; max-width: calc(100vw - 32px); }
#toast.show { opacity: 1; transform: translateX(-50%); }
#toast.bad { background: var(--bad); }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card { width: min(380px, 100%); background: #fff; padding: 28px; border-radius: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; }

/* ---------- mobile ---------- */
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; top: auto; bottom: 0; left: 0; right: 0; height: auto; flex-direction: row; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--line); z-index: 50; }
  .sidebar .brand, .sidebar .new-post, .sidebar .logout { display: none; }
  nav { flex-direction: row; flex: 1; justify-content: space-around; }
  nav a { flex-direction: column; gap: 3px; font-size: 11px; padding: 6px 14px; }
  main { padding: 18px 14px 100px; }
  h1 { font-size: 22px; }
  .fab { display: grid; place-items: center; position: fixed; right: 18px; bottom: calc(78px + env(safe-area-inset-bottom)); width: 56px; height: 56px; border-radius: 18px; border: 0; background: var(--accent); color: #fff; font-size: 30px; box-shadow: 0 10px 24px rgba(103, 69, 229, .4); z-index: 40; cursor: pointer; }
  .page-head .btn.primary.hide-sm { display: none; }
  .cal-toolbar { width: 100%; justify-content: space-between; }
  .cal-title { min-width: 0; font-size: 17px; }
  .day { min-height: 58px; padding: 4px; align-items: center; }
  .day .chip, .day .more, .day .add { display: none; }
  .dots { display: flex; justify-content: center; }
  .num { font-size: 13px; }
  .cal-head div { padding: 8px 0; text-align: center; font-size: 11px; }
  .day-panel { display: block; }
  dialog { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
  .composer { grid-template-columns: 1fr; }
  .composer .side-preview { display: none; }
  .modal-foot .btn { flex: 1; }
  .modal-foot .spacer { display: none; }
  .post-row { grid-template-columns: 48px 1fr; padding: 12px; }
  .post-row .thumb { width: 48px; height: 48px; }
  .post-row .right { display: none; }
}

/* ---------- brands ---------- */
.bsw { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 4px 6px 4px 12px; font-weight: 650; color: var(--ink); cursor: pointer; margin-right: 6px; }
.bsw select { border: 0; background: transparent; font-weight: 650; padding: 2px 4px; outline: none; cursor: pointer; max-width: 220px; }
.page-head .sub { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bdot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex: none; }
.acct .bdot { width: 40px; height: 40px; border-radius: 12px; }
.acct { flex-wrap: wrap; }
.acct-brand { margin-top: 6px; }
select.mini { font-size: 12px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 8px; background: #fff; max-width: 100%; }
.brand-card { flex-direction: column; align-items: stretch; gap: 12px; }
.brand-card .row1 { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-card .actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* bigger avatars + logos where accounts are listed */
.target .net { width: 34px; height: 34px; }
.post-row .nets { gap: 4px; }
.post-row .nets .net { width: 26px; height: 26px; }
.net img.nbl { width: 60%; height: 60%; min-width: 13px; min-height: 13px; right: -4px; bottom: -4px; }

/* cover image for video posts */
.cover-pick{margin-top:10px}
.cover-pick .cover-row{display:flex;align-items:center;gap:12px;margin-top:6px}
.cover-pick .cover-row img{width:72px;height:128px;object-fit:cover;border-radius:10px;border:1px solid var(--line,#e5e5e5)}
.drop.drop-sm{padding:12px 14px;font-size:13px}

/* ---------- dashboard ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.stat { padding: 16px 18px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 4px; border-top: 3px solid var(--line); transition: transform .1s; }
.stat:hover { transform: translateY(-2px); }
.stat-label { font-size: 13px; font-weight: 650; color: var(--muted); }
.stat-value { font-size: 32px; font-weight: 800; line-height: 1.1; }
.stat-foot { font-size: 13px; color: var(--muted); }
.st-info { border-top-color: var(--info); } .st-info .stat-value { color: var(--info); }
.st-ok { border-top-color: var(--ok); } .st-ok .stat-value { color: var(--ok); }
.st-bad { border-top-color: var(--bad); } .st-bad .stat-value { color: var(--bad); }
.st-calm { border-top-color: var(--ok); }
.st-ink { border-top-color: var(--ink); }
.bgrid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.bcard { padding: 18px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 14px; border-left: 4px solid var(--bc); transition: transform .1s, box-shadow .1s; }
.bcard:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(28,27,41,.08), 0 14px 30px rgba(28,27,41,.1); }
.bhead { display: flex; align-items: center; gap: 12px; }
.bhead .go { margin-left: auto; font-size: 22px; color: var(--muted); }
.bname { font-weight: 750; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bface { width: 46px; height: 46px; border-radius: 14px; position: relative; flex: none; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 19px; }
.bface img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.bface i { position: absolute; right: -3px; bottom: -3px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; }
.bhead.big .bface { width: 60px; height: 60px; border-radius: 18px; } .bhead.big .bface img { border-radius: 18px; }
.bnets { display: flex; gap: 6px; flex-wrap: wrap; }
.bnets .net { width: 26px; height: 26px; }
.bnums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bnums div { background: var(--bg); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; }
.bnums b { font-size: 20px; } .bnums span { font-size: 12px; color: var(--muted); }
.bnums .bad b { color: var(--bad); }
.bfoot { font-size: 13px; }
.back { display: inline-block; color: var(--muted); text-decoration: none; font-weight: 600; margin-bottom: 10px; }
.chips-row { display: flex; gap: 10px; flex-wrap: wrap; }
.acct-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px 5px 5px; font-weight: 600; font-size: 14px; }
.acct-chip .net { width: 28px; height: 28px; } .acct-chip .muted { font-weight: 500; font-size: 12px; }
/* connected networks: dimmed but still clickable */
.connect .conn-tag { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--ok); background: var(--ok-soft); padding: 3px 8px; border-radius: 99px; }
.connect.is-connected { opacity: .7; }
.connect.is-connected:hover { opacity: 1; }
.btn.dim { background: var(--bg); color: var(--ink-2); border-color: var(--line); }

/* TikTok Direct Post settings */
.tt-box{border:1px solid var(--line,#e5e5e5);border-radius:12px;padding:12px 14px;display:flex;flex-direction:column;gap:10px;margin-top:4px}
.tt-head{display:flex;align-items:center;gap:8px}.tt-head img{width:20px;height:20px}
.tt-creator{display:flex;align-items:center;gap:8px;font-size:14px}.tt-creator img{width:28px;height:28px;border-radius:50%;object-fit:cover}
.tt-creator .bad{color:#c0392b}
.tt-box select{width:100%;margin-top:6px}
.tt-label{font-weight:600;font-size:14px}
.tt-checks{display:flex;gap:18px;flex-wrap:wrap}
.tt-check,.tt-switch{display:flex;align-items:flex-start;gap:8px;font-weight:400;cursor:pointer}
.tt-check input,.tt-switch input{margin-top:3px;width:auto}
.tt-check.dis{opacity:.45;cursor:not-allowed}
.tt-commercial{display:flex;flex-direction:column;gap:8px;padding-left:24px}
.tt-note{font-size:13px;background:#e4defd;color:#5536d1;padding:8px 10px;border-radius:8px}
.tt-small{font-size:12px}
.tt-consent{font-size:13px;color:var(--ink-2,#555);padding:0 20px 8px;text-align:right}
.tt-consent a{color:#6745e5}

/* ---------- connection health ---------- */
.health-banner { border-radius: 14px; padding: 14px 16px; margin: 0 0 18px; border: 1px solid #f3b4b4; background: #fdeeee; }
.health-banner.warn { border-color: #f1d08a; background: #fdf6e3; }
.health-banner .hb-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.health-banner.bad strong { color: #b42318; }
.health-banner ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.health-banner li { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 10px; padding: 8px 10px; }
.health-banner li .hb-text { flex: 1; min-width: 0; }
.health-banner li .net { flex: none; }
.health-banner li small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.health-banner .hb-tip { font-size: 13px; margin: 10px 2px 0; }
.card.acct.acct-broken { border-color: #f3b4b4; box-shadow: inset 4px 0 0 #d92d20; }
.health-ok, .health-bad { font-size: 12px; color: #1f9d6b; white-space: nowrap; margin-top: 2px; }
.health-bad { color: #d92d20; font-weight: 600; }
.health-banner ul { grid-template-columns: minmax(0, 1fr); }
.health-banner li { min-width: 0; }

/* ---- Stories ---- */
.fmt-seg { margin-bottom: 14px; }
.story-tag { display: inline-block; flex: none; font-size: 10px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; color: #fff;
  background: linear-gradient(135deg, #6745e5, #e1306c); border-radius: 99px; padding: 2px 7px; margin-inline-end: 6px; vertical-align: middle; }
.modal-head h2 .story-tag { font-size: 11px; padding: 3px 9px; }
.story-note { font-size: 13px; color: var(--ink-2); background: var(--accent-soft, #e4defd); border: 1px solid #c9bff7; border-radius: 10px; padding: 10px 12px; line-height: 1.45; }
.preview.story { padding: 10px; background: #f3f3f6; }
.story-frame { position: relative; aspect-ratio: 9 / 16; max-height: 420px; margin: 0 auto; border-radius: 14px; overflow: hidden; background: #1c1b29;
  display: grid; place-items: center; color: #8a86a0; font-weight: 700; }
.story-frame img, .story-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-frame .sf-who { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; align-items: center; gap: 6px; color: #fff; font-size: 12px; font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.story-frame::before { content: ""; position: absolute; top: 5px; left: 10px; right: 10px; height: 2.5px; border-radius: 2px; background: rgba(255,255,255,.75); z-index: 1; }
