html { color-scheme: dark; }
:root {
  --brand: #f5f5f5;
  --brand-dark: #ffffff;
  --brand-tint: #262626;
  --on-brand: #0a0a0a;
  --accent: #ff8a6b;
  --ink: #ededed;
  --muted: #a3a3a3;
  --line: #2a2a2a;
  --bg: #0a0a0a;
  --card: #141414;
  --side: #101010;
  --side-ink: #ededed;
  --side-muted: #8a8a8a;
  --danger: #f87171;
  --danger-tint: #2b1416;
  --warn: #fbbf24;
  --warn-tint: #2a2108;
  --radius: 16px;
  --font: 'Inter', 'Hind Siliguri', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 15.5px; line-height: 1.6; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 6px; }
h1 { font-size: 28px; font-weight: 700; }
h2 { font-size: 20px; font-weight: 600; }
h3 { font-size: 17px; font-weight: 600; }
p { margin: 0 0 8px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 8px 0; }
code { font-family: ui-monospace, Menlo, monospace; font-size: 14px; }

/* Layout */
.shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.side { background: var(--side); color: var(--side-ink); padding: 24px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.main { padding: 32px 40px 80px; max-width: 1180px; width: 100%; }
.brand { padding: 0 10px 18px; }
.logo { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 20px; color: #fff; letter-spacing: -0.02em; }
.logo:hover { text-decoration: none; }
.logo.big { font-size: 30px; color: var(--brand); }
.tag { font-size: 12.5px; color: var(--side-muted); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav form { margin: 0; }
.nav-item { display: block; padding: 8px 10px; border-radius: 10px; color: var(--side-ink); border-left: 3px solid transparent; }
.nav-item span { display: block; font-size: 15px; }
.nav-item small { display: block; font-size: 11.5px; color: var(--side-muted); line-height: 1.3; }
.nav-item:hover { background: #232323; text-decoration: none; }
.nav-item.active { background: #2b2b2b; border-left-color: #ff7a59; }
.nav-item.disabled { opacity: 0.45; cursor: default; }
.nav-item.disabled:hover { background: none; }
.nav-item.add span { color: #c8c8c8; }
.nav-group { padding: 6px 0 4px; }
.nav-biz { padding: 4px 10px; font-size: 14px; color: #fff; font-weight: 600; }
.nav-biz em { font-style: normal; font-size: 11px; color: var(--side-muted); font-weight: 400; }
.nav-sub { display: block; padding: 4px 10px 4px 22px; font-size: 13.5px; color: var(--side-muted); border-radius: 8px; }
.nav-sub:hover { color: #fff; background: #232323; text-decoration: none; }
.nav-sub.active { color: #fff; background: #2b2b2b; }
.linklike { background: none; border: 0; text-align: left; width: 100%; font: inherit; cursor: pointer; }

/* Page */
.page-head { margin: 8px 0 22px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); margin-bottom: 4px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.section-title { margin: 28px 0 12px; }
.mt { margin-top: 18px; }
.row { display: flex; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; gap: 12px; }
.row.gap { gap: 10px; }
.row form { margin: 0; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.narrow { max-width: 560px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; }
.card h3 { margin-bottom: 2px; }
.step { font-size: 12px; font-weight: 600; color: var(--brand); }
.empty { text-align: center; padding: 40px; }

/* Forms */
label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14.5px; }
.label { font-weight: 600; font-size: 14.5px; margin-bottom: 6px; }
label small { font-weight: 400; }
input, select, textarea {
  font: inherit; font-weight: 400; color: var(--ink); background: #111111;
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%;
}
textarea { resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand-tint); border-color: var(--brand); }
input:disabled { background: #181818; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: #111111; cursor: pointer; }
.chip input { width: auto; margin: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-weight: 600; font-size: 14.5px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: #111111; color: var(--ink); cursor: pointer; #0f0f0f-space: nowrap; }
.btn:hover { text-decoration: none; border-color: #34423f; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #111111; }
.btn.primary:hover { background: var(--brand-dark); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--danger); background: var(--danger-tint); border-color: #3e1e24; }
.btn.small { padding: 6px 12px; font-size: 13.5px; }
.btn.icon { padding: 4px 9px; font-size: 12px; }
.btn.full { width: 100%; justify-content: center; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.copy { font: inherit; font-size: 12.5px; font-weight: 500; border: 1px solid var(--line); background: #111111; border-radius: 8px; padding: 2px 10px; cursor: pointer; color: var(--muted); }

/* Messages */
.flash { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; background: var(--brand-tint); color: var(--brand-dark); border: 1px solid #383838; }
.flash.warn { background: #2f2917; color: #f4cd7c; border-color: #eac352; }
.flash.err { background: var(--danger-tint); color: var(--danger); border-color: #3e1e24; }
.flash.info { background: #2d2515; color: #f3c670; border-color: #4b3f24; }
.callout { padding: 14px 18px; border-radius: 12px; margin-bottom: 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.callout.warn { background: var(--warn-tint); color: var(--warn); border: 1px solid #4b3f24; }
.working { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 12px; background: #141629; color: #6e77cf; margin-bottom: 16px; font-weight: 500; }
.spinner { width: 14px; height: 14px; border: 2px solid #2f2f2f; border-top-color: #6e77cf; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: #212121; color: var(--muted); #0f0f0f-space: nowrap; }
.badge.ready { background: var(--brand-tint); color: var(--brand-dark); }
.badge.current { background: #151d2c; color: #6682d6; }
.badge.queued, .badge.generating { background: #141629; color: #6e77cf; }
.badge.failed { background: var(--danger-tint); color: var(--danger); }
.badge.abandoned { background: #1c1c1c; color: #817c96; }
.badge.title { background: #1e1e1e; }

/* Dashboard */
.biz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.biz-card { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.biz-top { display: flex; gap: 12px; align-items: center; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-dark); display: grid; place-items: center; font-weight: 700; font-family: 'Inter', sans-serif; }
.biz-name { font-weight: 600; font-size: 17px; }
.biz-stats { display: flex; gap: 18px; font-size: 14px; color: var(--muted); }
.biz-stats b { color: var(--ink); }
.add-card { align-items: center; justify-content: center; color: var(--ink); border-style: dashed; min-height: 170px; font-weight: 600; }
.add-card:hover { text-decoration: none; border-color: var(--brand); }
.plus { font-size: 34px; font-weight: 300; line-height: 1; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list li a { flex: 1; color: var(--ink); font-weight: 500; }

/* Roadmap */
.year-head { display: flex; justify-content: space-between; align-items: baseline; margin: 28px 0 12px; }
.q-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.q-card { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.q-card.current { border-color: var(--brand); box-shadow: inset 4px 0 0 var(--brand); }
.q-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.q-no { font-weight: 700; color: var(--brand); font-size: 14px; }
.q-title { font-size: 17px; }
.q-theme { margin-top: 8px; font-size: 22px; }
.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: 14.5px; }
.clamp1 { #0f0f0f-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-fields { display: grid; grid-template-columns: 70px 1fr; gap: 6px 10px; margin: 6px 0; font-size: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.q-fields dt { font-weight: 600; }
.q-fields dd { margin: 0; color: var(--muted); min-width: 0; }
details.edit { font-size: 14px; }
details.edit summary { cursor: pointer; color: var(--brand); font-weight: 600; margin: 4px 0; }
details.edit[open] summary { margin-bottom: 12px; }

/* Quarter */
.plan { display: grid; grid-template-columns: 170px 1fr; gap: 10px 16px; margin: 0; }
.plan dt { font-weight: 600; }
.plan dd { margin: 0; }
.progress-card strong { font-size: 19px; }
.bar { height: 6px; background: #212121; border-radius: 99px; margin-top: 10px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.section.current { border-color: var(--brand); }
.items { list-style: none; padding: 0; margin: 14px 0; display: flex; flex-direction: column; gap: 8px; }
.item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #111111; }
.item.ready { background: #191919; border-color: #232323; }
.item .num { width: 26px; height: 26px; border-radius: 50%; background: #1e1e1e; display: grid; place-items: center; font-size: 13px; flex: none; }
.item.ready .num { background: var(--brand); color: #111111; }
.item-title { flex: 1; font-weight: 500; color: var(--ink); }
.item-actions { display: flex; gap: 6px; }
.item-actions form { margin: 0; }
.icon-img { font-size: 14px; }

/* Content */
.post-img { width: 100%; max-width: 460px; border-radius: 12px; display: block; margin-top: 10px; }
.img-empty { border: 1px dashed var(--line); border-radius: 12px; padding: 30px; text-align: center; color: var(--muted); margin-top: 10px; }
.short-card { background: linear-gradient(135deg, #b4b4b4, #c3c3c3); color: #111111; font-weight: 600; font-size: 18px; text-align: center; border: 0; }
.pl-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; background: #696969; }
.pl-dot.facebook { background: #4c94f0; }
.pl-dot.instagram { background: #e05c97; }
.pl-dot.linkedin { background: #4c9ef0; }
.pl-dot.x { background: #dedede; }
.sticky-save { position: sticky; bottom: 16px; display: flex; justify-content: flex-end; }
.sticky-save .btn { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); }

/* Settings */
.guide ol { margin: 8px 0 0; padding-left: 20px; }
.guide li { margin-bottom: 4px; }
.saved { background: #171717; border: 1px solid #292929; border-radius: 12px; padding: 12px 14px; color: var(--brand-dark); }
.danger-zone { margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--line); }

/* Auth & bare pages */
.bare { background: var(--bg); }
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.auth-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 36px; width: 100%; max-width: 400px; }
.doc { max-width: 720px; margin: 40px auto; padding: 0 20px 60px; }
.doc h2 { margin-top: 24px; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; }
  .main { padding: 20px 16px 80px; }
  .q-grid, .grid2, .grid3 { grid-template-columns: 1fr; }
  .plan { grid-template-columns: 1fr; }
}

/* Image provider picker */
.providers { display: grid; gap: 8px; }
.provider { flex-direction: row; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #111111; cursor: pointer; font-weight: 400; }
.provider input { width: auto; margin-top: 5px; }
.provider span { display: flex; flex-direction: column; }
.provider small { color: var(--muted); font-size: 13px; }
.provider:has(input:checked) { border-color: var(--brand); background: #191919; }

/* Publishing */
.pill { display: inline-block; background: #7e7e7e; color: #bbbbbb; border-radius: 99px; font-size: 11px; padding: 0 7px; margin-left: 4px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tab { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #111111; color: var(--ink); font-weight: 600; font-size: 14px; }
.tab:hover { text-decoration: none; border-color: #34423f; }
.tab.active { background: var(--ink); color: #111111; border-color: var(--ink); }
.tab .count { font-weight: 400; opacity: 0.7; margin-left: 4px; }
.mb { margin-bottom: 14px; }
.pub { display: grid; grid-template-columns: 120px 1fr; gap: 18px; }
.pub-img { width: 120px; height: 120px; object-fit: cover; border-radius: 12px; }
.empty-img { display: grid; place-items: center; background: #1e1e1e; color: var(--muted); font-size: 13px; }
.pub-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pub-title { font-weight: 600; color: var(--ink); font-size: 16.5px; }
.pub-cap { color: var(--muted); font-size: 14px; #0f0f0f-space: pre-line; margin: 0; }
.wrap { flex-wrap: wrap; }
.dt { width: auto; padding: 5px 10px; font-size: 14px; }
.pub-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; background: #181818; border-radius: 12px; }
label.inline { flex-direction: row; align-items: center; gap: 8px; font-size: 14px; flex-wrap: wrap; justify-content: flex-start; }
label.inline input[type=checkbox], label.inline input[type=radio] { width: auto; flex: none; margin: 0; }
.badge.approved { background: #151d2c; color: #6682d6; }
.badge.publishing { background: #141629; color: #6e77cf; }
.badge.published { background: var(--brand-tint); color: var(--brand-dark); }
.badge.review { background: var(--warn-tint); color: var(--warn); }
.copyline { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.copyline code { background: #1e1e1e; padding: 4px 8px; border-radius: 6px; word-break: break-all; }
.guide-list li { margin-bottom: 8px; }
.guide-list code { background: #1e1e1e; padding: 1px 6px; border-radius: 5px; font-size: 12.5px; }
.list li .grow { flex: 1; }
.disabled-link { opacity: 0.5; pointer-events: none; }
@media (max-width: 900px) { .pub { grid-template-columns: 1fr; } }
.default-submit { position: absolute; left: -9999px; width: 1px; height: 1px; }
.dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.dash-grid .card { margin: 0; }
.dash-grid .list li a { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; #0f0f0f-space: nowrap; }
@media (max-width: 1100px) { .dash-grid { grid-template-columns: 1fr; } }
.dt.mini { padding: 4px 6px; font-size: 13px; }
.logo-sub { font-weight: 500; opacity: 0.75; }
.logo-img { height: 24px; vertical-align: middle; filter: brightness(0) invert(1); }
.logo-img.big { height: 34px; filter: none; }
.logo.big .logo-sub { display: block; font-size: 16px; color: var(--muted); }

/* Business settings */
.callout.info { background: var(--brand-tint); color: var(--brand-dark); border: 1px solid #383838; border-left: 4px solid var(--brand); }
.ask-ai { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 4px 0 18px; }
.ask-ai-btn { display: flex; align-items: center; gap: 12px; padding: 10px 20px 10px 12px; border-radius: 999px; border: 1px solid var(--line); background: #111111; cursor: pointer; font: inherit; text-align: left; box-shadow: 0 4px 14px rgba(0,0,0,0.06); }
.ask-ai-btn:hover { border-color: var(--brand); }
.ask-ai-btn[disabled] { opacity: 0.55; cursor: wait; }
.ask-ai-btn b { color: var(--brand-dark); display: block; }
.ask-ai-btn small { color: var(--muted); font-size: 12.5px; }
.ai-dot { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #111111; display: grid; place-items: center; font-size: 16px; }
.setup .bar { margin: 10px 0 16px; }
.steps { display: flex; align-items: stretch; gap: 10px; }
.step-arrow { align-self: center; color: var(--brand); font-weight: 700; }
.step-card { flex: 1; display: flex; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; color: var(--ink); background: #111111; }
.step-card:hover { text-decoration: none; border-color: var(--brand); }
.step-card.active { border: 2px solid var(--brand); }
.step-no { width: 54px; display: grid; place-items: center; font-size: 26px; font-weight: 700; color: var(--brand); background: #1b1b1b; }
.step-card.active .step-no { background: var(--brand); color: #111111; }
.step-body { padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; }
.step-body small { color: var(--muted); font-size: 12.5px; }
.step-body .badge { align-self: flex-start; }
.tone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.img-layout { display: grid; grid-template-columns: 1fr 380px; gap: 16px; align-items: start; }
.preview-card { position: sticky; top: 16px; }
.preview-img { width: 100%; border-radius: 12px; display: block; border: 1px solid var(--line); }
.logo-box { width: 140px; height: 90px; border: 1px dashed var(--line); border-radius: 12px; display: grid; place-items: center; background: repeating-conic-gradient(#f5f5f5 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.logo-box img { max-width: 120px; max-height: 70px; }
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.asset { border: 1px solid var(--line); border-radius: 12px; padding: 6px; background: #111111; }
.asset img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; margin-bottom: 4px; }
.file-btn { cursor: pointer; }
.kb .card { margin: 0; }
.kb-preview { #0f0f0f-space: pre-line; margin: 0; }
.callout.small { font-size: 13.5px; padding: 10px 14px; }
@media (max-width: 1000px) { .img-layout, .tone-grid { grid-template-columns: 1fr; } .steps { flex-direction: column; } .step-arrow { display: none; } }
.callout.info, .callout.small { display: block; }
.ask-ai label.inline { flex-direction: row; #0f0f0f-space: nowrap; font-weight: 400; }
.ask-ai label.inline input { width: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tbl th { font-weight: 600; color: var(--muted); font-size: 13px; }
.corner-picker { position: relative; width: 260px; height: 160px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(135deg, #212121, #505050); }
.corner { position: absolute; display: flex; flex-direction: row; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; background: #111111; padding: 5px 10px; border-radius: 999px; cursor: pointer; border: 1px solid var(--line); }
.corner input { width: auto; margin: 0; }
.corner:has(input:checked) { background: var(--brand); color: #111111; border-color: var(--brand); }
.corner.top-left { top: 10px; left: 10px; } .corner.top-right { top: 10px; right: 10px; }
.corner.bottom-left { bottom: 10px; left: 10px; } .corner.bottom-right { bottom: 10px; right: 10px; }
.flash.closable { position: relative; padding-right: 44px; }
.flash .dismiss { position: absolute; top: 8px; right: 8px; margin: 0; }
.flash .dismiss button { border: 0; background: transparent; color: inherit; font-size: 16px; cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.flash .dismiss button:hover { background: rgba(0,0,0,.06); }
.logo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 700px) { .logo-pair { grid-template-columns: 1fr; } }
.logo-box.on-light { background: #fff; }
.logo-box.on-dark { background: #1d2428; border-color: #1d2428; }
.logo-box.on-dark .muted { color: #9aa5ab; }
/* Inbox */
.inbox { display: grid; grid-template-columns: 1fr; gap: 16px; }
.inbox.has-thread { grid-template-columns: 340px 1fr; }
@media (max-width: 980px) { .inbox.has-thread { grid-template-columns: 1fr; } .inbox.has-thread .inbox-list { display: none; } }
.inbox-list { padding: 10px; display: flex; flex-direction: column; gap: 4px; max-height: 76vh; overflow: auto; }
.inbox-row { display: block; padding: 10px 12px; border-radius: 12px; color: var(--ink); }
.inbox-row:hover { background: #181818; text-decoration: none; }
.inbox-row.active { background: var(--brand-tint); }
.inbox-row .badge { margin-left: 6px; }
.small-tabs { margin-bottom: 6px; }
.small-tabs .tab { padding: 5px 11px; font-size: 13px; }
.thread { display: flex; flex-direction: column; gap: 10px; max-height: 52vh; overflow: auto; padding: 4px; }
.bubble { max-width: 78%; padding: 10px 14px; border-radius: 16px; }
.bubble.in { background: #1e1e1e; align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble.out { background: var(--brand-tint); align-self: flex-end; border-bottom-right-radius: 4px; }
.bubble.out.human { background: #151d2c; }
.bubble-text { #0f0f0f-space: pre-line; }
.bubble-meta { font-size: 12px; color: var(--muted); margin-top: 4px; }
.card-sub { border-top: 1px solid var(--line); padding-top: 10px; }
.card-sub summary { cursor: pointer; font-weight: 600; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 320px; }
.table-wrap { overflow-x: auto; padding: 0; }
.time-row input { max-width: 160px; }
.pl-dot.google { background: #ed5c4f; }
.pl-dot.threads { background: #ededed; box-shadow: inset 0 0 0 2px #111111, 0 0 0 1px #ededed; }
.pl-dot.pinterest { background: #f04c65; }
/* Offers */
.offer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.offer-card { display: flex; flex-direction: column; gap: 12px; color: var(--ink); }
.offer-card:hover { text-decoration: none; border-color: #34423f; }
.offer-card img, .offer-ph { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.offer-ph { display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; background: var(--brand-tint); color: var(--brand-dark); font-weight: 700; font-size: 20px; }
.empty-img { display: flex; align-items: center; justify-content: center; background: #1e1e1e; }
.pub-row { display: flex; gap: 16px; align-items: flex-start; }
.row.wrap { flex-wrap: wrap; }
/* Sidebar v5: business switcher + grouped menu */
.switcher { margin: 6px 0 14px; padding: 10px; background: #252525; border-radius: 12px; }
.switch-label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--side-muted); margin-bottom: 6px; }
.switcher select { width: 100%; background: #2a2a2a; color: #fff; border: 1px solid #363636; border-radius: 9px; padding: 8px 10px; font-weight: 600; }
.nav-head { margin: 14px 10px 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--side-muted); }
.nav-item span { display: flex; align-items: center; gap: 8px; }
.nav-item .pill { margin-left: auto; }
.dot-warn { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #f0c24c; margin-left: 4px; vertical-align: middle; }
/* Dashboard v5 */
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { display: flex; flex-direction: column; gap: 4px; padding: 16px; background: var(--card, #121212); border: 1px solid var(--line); border-radius: 16px; color: var(--ink); }
.kpi:hover { text-decoration: none; border-color: #34423f; }
.kpi b { font-size: 28px; line-height: 1; }
.kpi span { font-size: 13px; color: var(--muted); }
.kpi.warn { border-color: #eebe4f; background: #2d2615; }
.dash-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin: 16px 0; }
@media (max-width: 900px) { .dash-cols { grid-template-columns: 1fr; } }
.post-line { display: flex; align-items: center; gap: 12px; padding: 6px; border-radius: 12px; color: var(--ink); min-width: 0; }
a.post-line:hover { background: #181818; text-decoration: none; }
.post-line img, .post-line .ph { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex: none; background: #212121; }
.post-main { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.post-main .pl-dot { margin-right: 2px; }
.checklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.check { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font-size: 14px; }
.check:hover { text-decoration: none; border-color: #34423f; }
.check .tick { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #34423f; display: flex; align-items: center; justify-content: center; font-size: 12px; flex: none; }
.check.done { color: var(--muted); }
.check.done .tick { background: var(--brand); border-color: var(--brand); color: #111111; }
.danger-text { color: var(--danger); }
.bar { height: 6px; background: #212121; border-radius: 99px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--brand); }
.rank { width: 28px; height: 28px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-dark); display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
/* Layout: never let wide content push the page sideways */
.shell { grid-template-columns: 250px minmax(0, 1fr); }
.main { min-width: 0; }
.menu-btn { display: none; }
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { padding: 14px 16px; }
  .brand { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
  .brand .tag { display: none; }
  .menu-btn { display: inline-flex; align-items: center; gap: 6px; background: #2a2a2a; color: #fff; border: 1px solid #363636; border-radius: 10px; padding: 7px 12px; font-weight: 600; cursor: pointer; }
  .side .switcher, .side .nav { display: none; }
  .side.open .switcher { display: block; margin-top: 12px; }
  .side.open .nav { display: flex; }
  .table-wrap, .tbl-wrap { overflow-x: auto; }
  .page-head.row { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (max-width: 900px) { .dash-cols { grid-template-columns: minmax(0, 1fr); } } .dash-cols > .card { min-width: 0; }
.publish-all { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-color: #2b2b2b; background: #191919; }
.pa-item { display: inline-flex; align-items: center; gap: 4px; margin-right: 14px; #0f0f0f-space: nowrap; }
.warn-text { color: #f3c670; }
.item.is-published { background: #191919; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #111111; width: fit-content; }
.seg-btn { margin: 0; cursor: pointer; }
.seg-btn input { position: absolute; opacity: 0; width: 0; height: 0; }
.seg-btn span { display: block; padding: 8px 16px; font-size: 14px; font-weight: 600; border-right: 1px solid var(--line); }
.seg-btn:last-child span { border-right: 0; }
.seg-btn input:checked + span { background: var(--ink); color: #111111; }
/* Queue: bulk selection */
.bulk-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; position: sticky; top: 8px; z-index: 5; margin-bottom: 14px; padding: 12px 16px; }
.bulk-sep { width: 1px; height: 24px; background: var(--line); margin: 0 4px; }
.pub { position: relative; }
.pick { position: absolute; top: 12px; left: 12px; z-index: 2; background: #111111; border-radius: 8px; padding: 4px; box-shadow: 0 1px 4px rgba(0,0,0,.15); margin: 0; }
.pick input { width: 18px; height: 18px; margin: 0; display: block; cursor: pointer; }
.pub.picked { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-tint); }
.bulk-bar label.inline { #0f0f0f-space: nowrap; }

/* Delete roadmap / quarter */
.btn.danger-outline { color: var(--danger); border-color: #3e1e24; background: transparent; }
.btn.danger-outline:hover { background: var(--danger-tint); }
.danger-zone { border-color: #3e1e24; margin-top: 28px; }
.danger-zone h3 { color: var(--danger); }
.q-del { display: flex; justify-content: flex-end; margin: -4px 0 4px; }
.q-del-btn { color: var(--muted); font-size: 12.5px; }
.q-del-btn:hover { color: var(--danger); }

/* Articles */
.src-card { color: inherit; gap: 10px; }
.src-card:hover { text-decoration: none; border-color: #34423f; }
.src-stats, .src-summary { display: flex; gap: 22px; flex-wrap: wrap; align-items: flex-end; }
.src-stats div, .src-summary > div:not(.src-scan) { display: flex; flex-direction: column; }
.src-stats b, .src-summary b { font-size: 22px; line-height: 1.1; }
.src-stats span, .src-summary span { font-size: 12.5px; color: var(--muted); }
.src-summary { padding: 16px 20px; }
.src-summary .src-scan { margin-left: auto; text-align: right; }
.src-plats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.src-plat { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #111111; }
.switch-row { flex-direction: row; align-items: center; gap: 8px; }
.switch-row input { width: auto; }
.art-tbl td { vertical-align: top; }
.art-title { font-weight: 600; color: var(--ink); }
.nowrap { #0f0f0f-space: nowrap; }
.row.wrap { flex-wrap: wrap; }
.badge.muted { opacity: .7; }
@media (max-width: 760px) { .src-plats { grid-template-columns: 1fr; } .src-summary .src-scan { margin-left: 0; text-align: left; } }

.art-search { display: flex; gap: 8px; align-items: center; }
.art-search input { min-width: 240px; }
.art-bulk { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #151515; }
.art-bulk label.inline { margin-right: 6px; }
.art-tbl td.nowrap { width: 1%; text-align: right; }
@media (max-width: 760px) { .art-search { width: 100%; } .art-search input { min-width: 0; flex: 1; } }
[hidden] { display: none !important; }
/* Post rows on small screens: title on its own line, tags and buttons below */
@media (max-width: 640px) {
  .item { flex-wrap: wrap; }
  .item-title { flex: 1 1 calc(100% - 40px); min-width: 0; }
  .item .badge { #0f0f0f-space: normal; }
  .item-actions { margin-left: auto; }
}
img.img-broken { background: var(--brand-tint); min-height: 40px; }
/* Public pages: Privacy, Terms, Data deletion */
.legal-nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; max-width: 760px; margin: 0 auto; padding: 22px 20px 0; }
.legal-brand { font-weight: 700; color: var(--brand); font-size: 18px; }
.legal-brand span { color: var(--muted); font-weight: 500; }
.legal-links { display: flex; gap: 14px; flex-wrap: wrap; }
.legal-links a, .legal-lang a { color: var(--muted); font-size: 14px; }
.legal-links a.on { color: var(--ink); font-weight: 600; }
.legal-lang { margin-left: auto; display: flex; gap: 4px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.legal-lang a { padding: 3px 10px; border-radius: 999px; }
.legal-lang a.on { background: var(--brand); color: #111111; }
.doc.bn { font-family: 'Hind Siliguri', Inter, sans-serif; font-size: 16px; }
.doc ul, .doc ol { padding-left: 22px; line-height: 1.7; }
.doc p { line-height: 1.7; }
.login-legal { text-align: center; margin-top: 14px; font-size: 13px; }
.login-legal a { color: var(--muted); margin: 0 6px; }
.seg-row { display: flex; gap: 8px; flex-wrap: wrap; }
.seg-row .chip input { width: auto; }
.link-start { background: var(--brand-tint); border-radius: 12px; padding: 16px; margin-bottom: 8px; }
.link-start input { background: #111111; }
.idea-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.idea-card { border: 1px solid var(--line, #222d2a); border-radius: 12px; padding: 14px; background: #111111; }
.idea-card:has(.pick:checked) { border-color: var(--brand, #b4b4b4); box-shadow: 0 0 0 2px rgba(255,255,255,.12); }
.idea-angle { background: var(--brand-tint, #212121); border-radius: 8px; padding: 8px 10px; margin-top: 8px; }
.warn-note { background: #2f2917; border: 1px solid #f0c54c; border-radius: 10px; padding: 10px 12px; }
.regen-form { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.small-select { width: auto; max-width: 230px; padding: 6px 10px; font-size: 13px; }
.danger-text { color: #df5d63 !important; }
.head-action { position: absolute; top: 0; right: 0; }
.page-head { position: relative; }
.offer-wrap { position: relative; }
.offer-del { position: absolute; top: 14px; right: 14px; }
.offer-del .btn { background: #111111; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.offer-wrap > .offer-card { height: 100%; }
.bulk-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 16px; position: sticky; top: 8px; z-index: 5; }
.pick-box { width: 17px; height: 17px; flex: none; accent-color: var(--brand, #b4b4b4); cursor: pointer; }
.item.picked, .pub-row.picked { background: var(--brand-tint, #212121); }
.pub-row { align-items: flex-start; }
.offer-pick { position: absolute; top: 14px; left: 14px; z-index: 2; background: #111111; border-radius: 6px; padding: 4px 5px; box-shadow: 0 2px 8px rgba(0,0,0,.18); line-height: 0; cursor: pointer; }
.offer-pick input { width: 17px; height: 17px; accent-color: var(--brand, #b4b4b4); margin: 0; }
.offer-wrap.picked .offer-card { outline: 2px solid var(--brand, #b4b4b4); }

/* Video box on a post */
.video-pair { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-start; }
.video-pair figure { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.video-pair video { background: #ededed; border-radius: 10px; display: block; }
.video-pair .vid-v { width: 220px; max-width: 100%; aspect-ratio: 9 / 16; }
.video-pair .vid-s { width: 300px; max-width: 100%; aspect-ratio: 1 / 1; }
.music-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--soft, #181818); border-radius: 999px; padding: 4px 4px 4px 12px; }
.music-chip audio { height: 30px; width: 190px; }

/* Rewrite one platform */
.rewrite-box { border: 1px dashed var(--line, #2a2a2a); border-radius: 10px; padding: 6px 10px; }
.rewrite-box summary { cursor: pointer; color: var(--accent, #a8a8a8); font-weight: 600; }
.rewrite-box .grow { flex: 1; min-width: 220px; }

/* Email */
.email-preview { width: 100%; height: 720px; border: 1px solid var(--line, #2a2a2a); border-radius: 10px; background: #202020; margin-top: 8px; }
.pl-dot.email { background: #f0da4c; }
.platform.email { border-top: 3px solid #f0da4c; }
.stats-row { background: #1e1e1e; border-radius: 8px; padding: 8px 10px; }

/* Email section */
.email-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-bottom: 16px; }
.email-card { text-decoration: none; color: inherit; }
.email-card:hover { border-color: var(--accent, #a8a8a8); }
.meter { height: 10px; background: #222222; border-radius: 99px; overflow: hidden; }
.meter span { display: block; height: 100%; background: #919191; }
.meter span.warn { background: #f0b14c; }
.meter span.over { background: #e56158; }
.post-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; max-height: 420px; overflow: auto; }
.post-opt { display: flex; gap: 8px; align-items: center; border: 1px solid var(--line, #2a2a2a); border-radius: 10px; padding: 6px; cursor: pointer; }
.post-opt img { width: 54px; height: 54px; object-fit: cover; border-radius: 6px; }
.post-opt:has(input:checked) { border-color: var(--accent, #a8a8a8); background: #161616; }
.nl-item { border-left: 3px solid var(--line, #2a2a2a); padding-left: 10px; display: flex; flex-direction: column; gap: 4px; }
fieldset.plain { border: 0; padding: 0; margin: 0; min-width: 0; }
.kind-pick .chip { font-weight: 600; }
.design-box { border: 1px dashed var(--line, #2a2a2a); border-radius: 10px; padding: 8px 12px; }
.design-box summary { cursor: pointer; font-weight: 600; color: var(--accent, #a8a8a8); }
.plan-edit { border-left: 3px solid var(--line, #2a2a2a); padding-left: 10px; display: flex; flex-direction: column; gap: 6px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.grid3 { display: grid; grid-template-columns: 140px 1fr 2fr; gap: 8px; }
@media (max-width: 800px) { .grid4, .grid3 { grid-template-columns: 1fr 1fr; } }
.pal-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pal { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pal input[type=color] { width: 46px; height: 34px; padding: 0; border: 1px solid var(--line, #2a2a2a); border-radius: 8px; background: none; }
.io-row { margin: -6px 0 18px; padding: 0 4px; align-items: center; }

/* Published timeline */
.pub-filter { align-items: center; }
.pub-counts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-left: auto; }
.chip-mini { display: inline-flex; align-items: center; gap: 5px; background: #202020; border-radius: 99px; padding: 2px 9px; font-size: 12px; }
.pub-day { margin: 22px 0; }
.pub-day-head { border-bottom: 2px solid var(--line, #262626); padding-bottom: 6px; margin-bottom: 10px; }
.pub-day-head h3 { margin: 0; }
.pub-list { display: flex; flex-direction: column; gap: 8px; }
.pub-item { display: flex; align-items: stretch; background: #111111; border: 1px solid var(--line, #262626); border-radius: 12px; overflow: hidden; }
.pub-item:hover { border-color: var(--accent, #a8a8a8); }
.pub-main { flex: 1; display: flex; gap: 12px; align-items: center; padding: 10px 12px; color: inherit; text-decoration: none; min-width: 0; }
.pub-main img, .pub-noimg { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; flex: none; background: #202020; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.pub-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.pub-title { font-weight: 600; }
.pub-text { #0f0f0f-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pub-open { color: var(--accent, #a8a8a8); font-weight: 600; #0f0f0f-space: nowrap; }
.pub-app { display: flex; align-items: center; padding: 0 14px; border-left: 1px solid var(--line, #262626); color: var(--muted, #7d8492); text-decoration: none; }
.pub-app:hover { background: #1d1d1d; }
@media (max-width: 640px) { .pub-open { display: none; } }
.pub-item.is-review { border-left: 4px solid #f0b14c; }

/* Upcoming: empty posting times */
.pub-gap { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border: 2px dashed #f0b14c; border-radius: 12px; background: #292114; color: #f3c670; }
.fill-bar { border-left: 4px solid #f0b14c; }
.fill-card { border: 2px solid var(--accent, #a8a8a8); }
.fill-list { display: flex; flex-direction: column; gap: 6px; }
.fill-row { display: grid; grid-template-columns: 150px 1fr; gap: 10px; align-items: start; padding: 10px 12px; border: 1px solid var(--line, #262626); border-radius: 10px; background: #111111; font-weight: 400; cursor: pointer; }
.fill-row.none { opacity: .65; cursor: default; }
.fill-row input { margin-top: 3px; }
.fill-what { display: flex; flex-direction: column; gap: 2px; }
.fill-what .chip-mini { align-self: flex-start; }
.fill-x { text-align: center; color: #696969; }
@media (max-width: 640px) { .fill-row { grid-template-columns: 1fr; } }
.fill-pick { display: block; margin-top: 6px; max-width: 100%; }

/* Business settings: gradient look */
.grad-look { border: 1px solid var(--line, #262626); border-radius: 12px; padding: 12px 14px; margin: 10px 0; }
.grad-clean-opts { margin-top: 10px; }
.grad-swatch { display: inline-block; width: 120px; height: 40px; border-radius: 10px; border: 1px solid rgba(0,0,0,.1); }
.grad-custom input[type=color] { width: 48px; height: 34px; padding: 2px; }

.li-make { grid-column: 1 / -1; border: 1px solid var(--line, #262626); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }

/* Blog */
.blog-list { display: flex; flex-direction: column; gap: 8px; }
.blog-row { display: grid; grid-template-columns: 128px 1fr auto; gap: 14px; align-items: center; padding: 10px; border: 1px solid var(--line, #262626); border-radius: 12px; color: inherit; text-decoration: none; background: #111111; }
.blog-row:hover { border-color: var(--brand, #a8a8a8); }
.blog-row.is-review { border-left: 4px solid #f0b14c; }
.blog-row img, .blog-thumb-empty { width: 128px; height: 72px; object-fit: cover; border-radius: 8px; background: #202020; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.blog-row-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.err-text { color: var(--danger, #dc6c61); }
.topic-list { display: flex; flex-direction: column; gap: 6px; }
.topic-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line, #262626); border-radius: 10px; }
.topic-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.blog-edit { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.blog-edit-side { position: sticky; top: 12px; }
.blog-feat { width: 100%; border-radius: 10px; }
.blog-preview { max-width: 760px; line-height: 1.7; font-size: 16px; }
.blog-preview h2 { font-size: 24px; margin: 28px 0 10px; }
.blog-preview h3 { font-size: 19px; margin: 20px 0 8px; }
.blog-preview table { border-collapse: collapse; width: 100%; margin: 12px 0; }
.blog-preview th, .blog-preview td { border: 1px solid #20202b; padding: 8px 10px; text-align: left; }
.blog-preview blockquote { border-left: 4px solid #2e2e2e; margin: 12px 0; padding: 4px 14px; color: #a4a4a4; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
@media (max-width: 900px) { .blog-edit { grid-template-columns: 1fr; } .blog-edit-side { position: static; } .blog-row { grid-template-columns: 90px 1fr; } .blog-row img, .blog-thumb-empty { width: 90px; height: 51px; } .blog-row > .small:last-child { display: none; } }
.pl-dot.blog { background: #5fb6dd; }

.qa-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.qa-list li.no { color: #f2b25d; }
.qa-list li.ok { color: #8acb96; }
.ok-text { color: #8acb96; }

/* Blog: existing articles (library) */
.lib-list { display: flex; flex-direction: column; gap: 8px; }
.lib-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start; padding: 10px 12px; border: 1px solid var(--line, #262626); border-radius: 10px; }
.lib-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lib-title { font-weight: 700; color: inherit; text-decoration: none; }
.lib-title:hover { text-decoration: underline; }
.lib-act { display: flex; justify-content: flex-end; }
.lib-rw > summary { list-style: none; cursor: pointer; }
.lib-rw > summary::-webkit-details-marker { display: none; }
.lib-rw[open] { width: min(360px, 80vw); }
.lib-rw[open] > summary { margin-bottom: 8px; }
@media (max-width: 640px) { .lib-row { grid-template-columns: 1fr; } .lib-act { justify-content: flex-start; } }

/* Social posts under a blog article */
.social-under { display: flex; gap: 14px; align-items: flex-start; }
.social-img { width: 180px; border-radius: 10px; border: 1px solid var(--line, #262626); flex: none; }
.social-pl { gap: 6px; padding-bottom: 10px; border-bottom: 1px solid var(--line, #1f1f1f); }
.social-pl:last-child { border-bottom: 0; }
@media (max-width: 760px) { .social-under { flex-direction: column; } .social-img { width: 100%; max-width: 320px; } }

/* Home: today's to-do list */
.todo, .todo-head { display: flex; align-items: center; gap: 14px; }
.todo-card { display: flex; flex-direction: column; gap: 12px; }
.todo-ico { font-size: 22px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--brand-tint, #181818); flex: none; }
.todo.warn .todo-ico { background: #312817; }
.todo-body { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.todo-list { display: flex; flex-direction: column; gap: 6px; padding-left: 54px; }
.todo-list.row { flex-direction: row; }
.todo-list .post-line form { margin-left: auto; }
.all-clear { display: flex; align-items: center; gap: 16px; }
.all-clear > span { font-size: 26px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #173021; color: #a4a4a4; flex: none; }
.all-clear p { margin: 2px 0 0; }
.week-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.week-stats a { display: flex; flex-direction: column; padding: 10px; border-radius: 10px; background: var(--bg-soft, #1d1d1d); color: inherit; text-decoration: none; }
.week-stats b { font-size: 22px; }
.week-stats span { font-size: 12px; color: var(--muted, #7d8192); }
@media (max-width: 640px) { .todo-list { padding-left: 0; } .todo, .todo-head { flex-wrap: wrap; } }

/* Posts page */
.posts-tabs .count.hot { background: #e7555a; color: #111111; border-radius: 999px; padding: 0 7px; font-size: 12px; line-height: 18px; display: inline-block; min-width: 18px; text-align: center; }
.post-row { display: flex; gap: 14px; align-items: flex-start; }
.post-row-img { width: 120px; height: 120px; object-fit: cover; border-radius: 10px; flex: none; }
.post-row-img.empty-img { display: grid; place-items: center; background: #202020; color: #696969; font-size: 12px; }
.post-row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.post-row-text { margin: 0; }
.post-row-actions form { margin: 0; }
.chip-mini.st-failed, .chip-mini.st-abandoned { background: #2b1515; color: #e85e54; }
.chip-mini.st-approved, .chip-mini.st-published { background: #173021; color: #a4a4a4; }
@media (max-width: 640px) { .post-row { flex-direction: column; } .post-row-img { width: 100%; height: 180px; } }

/* Daily posting plan rows: time · kind · remove on one line */
#post-times .time-row { flex-wrap: nowrap; align-items: center; }
#post-times .time-row input[type="time"] { width: 130px; flex: none; }
#post-times .time-row select { width: auto; flex: 1; min-width: 150px; }
#post-times .time-row .btn { flex: none; }

/* Notifications (top right): posts to share or publish by hand */
.main { position: relative; }
.notes { position: absolute; top: 18px; right: 28px; z-index: 50; }
.notes > summary { list-style: none; cursor: pointer; }
.notes > summary::-webkit-details-marker { display: none; }
.notes-bell { position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #111111; border: 1px solid var(--line, #262626); color: var(--ink, #bcc0d9); box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.notes-bell:hover { background: #181818; }
.notes-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #e7555a; color: #111111; font-size: 11px; line-height: 20px; text-align: center; border: 2px solid #111111; }
.notes-panel { position: absolute; right: 0; top: 50px; width: 360px; max-height: 70vh; overflow: auto; background: #111111; border: 1px solid var(--line, #262626); border-radius: 14px; box-shadow: 0 12px 32px rgba(10, 30, 28, .14); padding: 6px; }
.notes-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 10px 8px; border-bottom: 1px solid var(--line, #1f1f1f); margin-bottom: 4px; }
.notes-empty { padding: 10px; margin: 0; }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 10px; color: inherit; text-decoration: none; }
.note:hover { background: #181818; }
.note .pl-dot { margin-top: 6px; flex: none; }
.note-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.platform:target { outline: 3px solid var(--brand, #a8a8a8); outline-offset: 2px; }
@media (max-width: 760px) { .notes { top: 10px; right: 12px; } .notes-panel { width: calc(100vw - 24px); right: -4px; } }
.main > .page-head, .main > .page-head.row { padding-right: 60px; }

/* New post from an idea */
.idea-text { #0f0f0f-space: pre-wrap; margin-top: 8px; max-height: 260px; overflow: auto; color: var(--muted, #858596); }
.hand-post .btn { margin: 0; }
/* SEO autopilot */
.pre { #0f0f0f-space: pre-wrap; }
ul.tight, ol.tight { margin: 4px 0; padding-left: 20px; }
ul.tight li, ol.tight li { margin: 2px 0; }
.up { color: #72e89e; font-weight: 600; font-size: 12px; }
.down { color: #f07c4c; font-weight: 600; font-size: 12px; }
.seo-chart { width: 100%; height: auto; margin-top: 8px; }
.seo-chart polyline { fill: none; stroke-width: 2; stroke-linejoin: round; }
.seo-chart .ln-c { stroke: #a8a8a8; }
.seo-chart .ln-i { stroke: #8b9bb2; stroke-width: 1.5; }
.seo-chart .ax { font-size: 11px; fill: var(--muted); }
.lg { display: inline-block; width: 12px; height: 3px; vertical-align: middle; margin: 0 2px 0 8px; border-radius: 2px; }
.lg-c { background: #a8a8a8; } .lg-i { background: #8b9bb2; }
.seo-page summary { cursor: pointer; list-style: none; }
.seo-page summary::-webkit-details-marker { display: none; }
.sev-high { color: var(--danger); } .sev-med { color: var(--warn); } .sev-low { color: var(--muted); }
.seo-act.is-review { border-color: #eebe4f; background: #262213; }
.count.hot { background: #f0b34c; color: #111111; border-radius: 99px; padding: 0 7px; opacity: 1; }
label.check-line { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; text-align: left; font-weight: 400; margin: 0; }
label.check-line input[type="checkbox"] { width: auto; margin-top: 4px; flex: none; }
label.check-line input[type="number"] { margin-top: -6px; }
/* Studio */
.studio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 16px; }
.slide-strip { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.slide-strip img { height: 150px; border-radius: 8px; display: block; }
.studio-img { max-width: 100%; max-height: 360px; border-radius: 10px; display: block; }
.studio-vid { width: 220px; max-width: 100%; border-radius: 10px; background: #ededed; }
.studio-vid.wide { width: 100%; }
.fmt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
label.fmt-card { display: flex; flex-direction: row; gap: 10px; align-items: flex-start; border: 1.5px solid var(--line, #202329); border-radius: 12px; padding: 12px; cursor: pointer; font-weight: 400; margin: 0; }
label.fmt-card input { width: auto; margin-top: 4px; }
label.fmt-card span { display: flex; flex-direction: column; gap: 4px; }
label.fmt-card small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
label.fmt-card:has(input:checked) { border-color: var(--brand, #a8a8a8); background: #191919; }
.warn-text { color: var(--warn, #f0934c); }
/* Social growth */
.dm-row { padding: 8px 0; border-top: 1px solid var(--line, #1f1f1f); }
.dm-row.off { opacity: 0.5; }
.card.dim { opacity: 0.65; }
.bar-row { display: grid; grid-template-columns: 130px 1fr 90px; gap: 8px; align-items: center; }
.bar { background: #222222; border-radius: 99px; height: 10px; overflow: hidden; }
.bar i { display: block; height: 100%; background: #a8a8a8; border-radius: 99px; }
.bar-v { text-align: right; color: var(--muted); }
/* Lead gen */
.temp { font-weight: 700; border-radius: 99px; padding: 2px 10px; font-size: 13px; }
.temp.hot { background: #2f1616; color: #e65757; } .temp.warm { background: #3a341c; color: #f09760; } .temp.cold { background: #17262f; color: #6ec5f3; }
.draft { border-left: 3px solid #414141; padding: 8px 12px; background: #141414; border-radius: 8px; display: flex; flex-direction: column; gap: 6px; }
a.chip.on { background: var(--brand, #a8a8a8); color: #111111; border-color: transparent; }
a.chip { text-decoration: none; color: inherit; display: inline-flex; }
/* Sales */
.bar { height: 6px; background: #1a1a1a; border-radius: 6px; overflow: hidden; margin-top: 4px; }
.bar span { display: block; height: 100%; background: var(--brand, #a8a8a8); border-radius: 6px; }
/* Human touch */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.photo-grid .photo { border: 1px solid #1f1f1f; border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.photo-grid img { width: 100%; height: 120px; object-fit: cover; border-radius: 6px; }
.photo-grid input { padding: 6px 8px; font-size: 12px; }

/* Marketive logo (dark mode) */
.mk-logo { height: 30px; width: auto; display: block; }
.mk-logo.big { height: 46px; margin-bottom: 6px; }
.mk-logo.small { height: 26px; display: inline-block; vertical-align: middle; }
.logo.big { color: var(--ink); }
.legal-brand { color: var(--ink); }
.side { border-right: 1px solid var(--line); }
.brand .tag { margin-top: 8px; }
