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; }

/* Maventive 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; }

/* ---------- SaaS: plans, billing, admin ---------- */
.nav-item .lock { display: inline-block; margin-left: 6px; font-size: 10.5px; line-height: 1.4; padding: 1px 7px; border: 1px solid #3a3a3a; border-radius: 99px; color: #a3a3a3; font-weight: 600; vertical-align: 1px; }
.nav-item .plan-tag { display: inline-block; margin-left: 6px; font-size: 10.5px; padding: 1px 7px; border-radius: 99px; background: rgba(255,122,89,.14); color: #ff9a80; font-weight: 600; vertical-align: 1px; }
.viewas { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: -8px 0 18px; padding: 10px 14px; border: 1px solid rgba(255,122,89,.4); background: rgba(255,122,89,.08); border-radius: 12px; font-size: 14px; }
.auth-card.wide { max-width: 480px; }
.auth-links { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 16px; font-size: 14px; color: var(--muted); }
.auth-links a { color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.plan-pick { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.plan-opts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.plan-opt { position: relative; display: grid; gap: 2px; padding: 10px 10px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; text-align: center; background: var(--bg); }
.plan-opt input { position: absolute; opacity: 0; pointer-events: none; }
.plan-opt b { font-size: 14px; }
.plan-opt span { font-size: 12.5px; color: var(--muted); }
.plan-opt.on { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.plan-opt:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.check-line { font-size: 13.5px; color: var(--muted); align-items: flex-start; }
.check-line a { color: var(--accent); }
.usage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 6px; }
.usage { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.meter i { display: block; height: 100%; background: #e9e9e9; border-radius: 99px; }
.meter i.hot { background: #ff7a59; }
.price-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 10px; }
.price-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.price-card.popular { border-color: #4a4a4a; box-shadow: 0 0 0 1px rgba(255,122,89,.35); }
.price-card.mine { border-color: var(--brand); }
.price-badge { position: absolute; top: -11px; left: 18px; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: #ff7a59; color: #0a0a0a; }
.price { display: flex; align-items: baseline; gap: 4px; }
.price b { font-size: 34px; letter-spacing: -.03em; }
.price span { color: var(--muted); font-size: 14px; }
.price-list { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 7px; font-size: 14px; color: var(--ink); flex: 1; align-content: start; }
.price-list li { padding-left: 20px; position: relative; }
.price-list li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 9px; height: 5px; border-left: 2px solid #4ade80; border-bottom: 2px solid #4ade80; transform: rotate(-45deg); }
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.pay-opt { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); margin: 0; }
.pay-opt > div { display: grid; gap: 3px; }
.pay-opt .btn { flex: none; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12.5px; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.card.stat { display: grid; gap: 4px; padding: 16px; }
.card.stat b { font-size: 26px; letter-spacing: -.02em; }
.admin-act summary { list-style: none; cursor: pointer; }
.admin-act summary::-webkit-details-marker { display: none; }
.admin-act[open] { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px; min-width: 240px; }
.admin-act[open] summary { margin-bottom: 10px; }
.plan-strip { display: flex; align-items: center; gap: 16px; padding: 12px 16px; flex-wrap: wrap; font-size: 14px; }
.plan-strip .meter { flex: 1; min-width: 120px; height: 8px; }
.upgrade-card { max-width: 640px; }
@media (max-width: 1100px) { .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .price-grid, .usage-grid, .checkout, .plan-opts { grid-template-columns: 1fr 1fr; }
  .checkout { grid-template-columns: 1fr; }
  .pay-opt { flex-direction: column; align-items: stretch; }
}
@media (max-width: 480px) { .price-grid, .usage-grid { grid-template-columns: 1fr; } }

/* Admin: payment connections */
.conn-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.conn { display: grid; gap: 16px; }
.conn-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.conn-head h3 { margin: 0 0 2px; }
.conn-head p { margin: 0 0 6px; }
.conn-state { font-size: 13.5px; font-weight: 600; }
.conn-state.on { color: #4ade80; }
.conn-state.warn { color: #fbbf24; }
.conn-state.off { color: var(--muted); }
.switch { position: relative; width: 52px; height: 30px; border-radius: 99px; border: 1px solid #3a3a3a; background: #262626; cursor: pointer; padding: 0; flex: none; transition: background .15s, border-color .15s; }
.switch span { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #a3a3a3; transition: transform .18s, background .15s; }
.switch.on { background: #16a34a; border-color: #16a34a; }
.switch.on span { transform: translateX(22px); background: #fff; }
.switch:disabled { opacity: .45; cursor: not-allowed; }
.conn-toggle { margin: 0; }
.mode-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode { position: relative; display: grid; grid-template-columns: 22px 1fr; column-gap: 10px; row-gap: 2px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); cursor: pointer; }
.mode input { grid-row: span 2; margin: 0; width: 18px; height: 18px; accent-color: #4ade80; }
.mode b { font-size: 14.5px; }
.mode span { font-size: 12.5px; color: var(--muted); grid-column: 2; }
.mode.on { border-color: #16a34a; background: rgba(22, 163, 74, .08); }
.mode:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.conn-result { border-radius: 12px; padding: 12px 14px; font-size: 14px; display: grid; gap: 6px; }
.conn-result.ok { background: rgba(74, 222, 128, .1); color: #86efac; border: 1px solid rgba(74, 222, 128, .25); }
.conn-result.warn { background: rgba(251, 191, 36, .08); color: #fcd34d; border: 1px solid rgba(251, 191, 36, .25); }
.conn-result.fail { background: rgba(248, 113, 113, .08); color: #fca5a5; border: 1px solid rgba(248, 113, 113, .3); }
.conn-result ul { margin: 0; padding-left: 18px; display: grid; gap: 3px; color: var(--ink); font-size: 13.5px; }
.conn-at { font-size: 12px; color: var(--muted); }
.conn-help summary { cursor: pointer; font-size: 14px; color: var(--accent); }
.btn.danger-text { color: #f87171; }
.btn.danger-text:hover { border-color: #f87171; }
@media (max-width: 1100px) { .conn-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .mode-pick { grid-template-columns: 1fr; } }

/* =====================================================================
   Maventive design system v3 — refined dark UI
   (layered last so it restyles every existing component)
   ===================================================================== */
:root {
  --bg: #08080a;
  --bg-2: #0d0d10;
  --card: #121216;
  --card-2: #17171c;
  --elev: #1c1c22;
  --line: rgba(255, 255, 255, .075);
  --line-2: rgba(255, 255, 255, .12);
  --ink: #f2f2f4;
  --ink-2: #c9c9d1;
  --muted: #8e8e9a;
  --side: #0b0b0e;
  --side-ink: #d6d6dd;
  --side-muted: #6f6f7b;
  --brand: #f5f5f7;
  --brand-dark: #ffffff;
  --brand-tint: rgba(255, 255, 255, .06);
  --accent: #ff8a6b;
  --accent-2: #ff6a45;
  --accent-tint: rgba(255, 122, 89, .12);
  --accent-line: rgba(255, 122, 89, .35);
  --ok: #4ade80;
  --ok-tint: rgba(74, 222, 128, .1);
  --info: #7aa2ff;
  --info-tint: rgba(122, 162, 255, .1);
  --danger: #ff7a7a;
  --danger-tint: rgba(255, 99, 99, .09);
  --warn: #fbbf24;
  --warn-tint: rgba(251, 191, 36, .08);
  --radius: 14px;
  --radius-lg: 18px;
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 10px 30px -12px rgba(0,0,0,.6);
  --shadow-lg: 0 24px 60px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.06);
  --ring: 0 0 0 3px rgba(255, 122, 89, .28);
  --font: 'Inter', 'Hind Siliguri', system-ui, -apple-system, sans-serif;
  --display: 'Plus Jakarta Sans', 'Inter', 'Hind Siliguri', system-ui, sans-serif;
  --side-w: 264px;
}
body { font-size: 15px; letter-spacing: -.003em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  background: radial-gradient(1200px 600px at 85% -10%, rgba(255,122,89,.06), transparent 60%), var(--bg); background-attachment: fixed; }
::selection { background: rgba(255,122,89,.35); color: #fff; }
h1, h2, h3, .display { font-family: var(--display); letter-spacing: -.022em; color: var(--ink); }
h1 { font-size: 30px; font-weight: 800; line-height: 1.18; }
h2 { font-size: 20px; font-weight: 700; }
h3 { font-size: 16.5px; font-weight: 700; }
a { color: var(--accent); }
.muted { color: var(--muted); }
code { background: rgba(255,255,255,.06); padding: 1px 6px; border-radius: 6px; font-size: 13px; }
* { scrollbar-width: thin; scrollbar-color: #2a2a31 transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #24242b; border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }

/* Icons */
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.btn .ic { width: 16px; height: 16px; margin-left: -2px; }
.btn.small .ic { width: 15px; height: 15px; }

/* ---------- Shell ---------- */
.shell { grid-template-columns: var(--side-w) minmax(0, 1fr); }
.side { display: flex; flex-direction: column; gap: 4px; padding: 18px 12px 12px; background: linear-gradient(180deg, #0c0c0f, #09090b); border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; justify-content: space-between; padding: 4px 10px 14px; }
.brand .mk-logo { height: 28px; }
.side-close { display: none; background: none; border: 0; color: var(--muted); padding: 6px; border-radius: 8px; cursor: pointer; }
.switcher { position: relative; display: flex; align-items: center; gap: 10px; margin: 0 0 10px; padding: 9px 10px; background: rgba(255,255,255,.035); border: 1px solid var(--line); border-radius: 12px; transition: border-color .15s, background .15s; }
.switcher:hover { border-color: var(--line-2); background: rgba(255,255,255,.05); }
.sw-avatar { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 9px; font-weight: 800; font-size: 13px; color: #0a0a0a;
  background: linear-gradient(135deg, #ffb199, #ff6a45); font-family: var(--display); }
.sw-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sw-text small { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--side-muted); line-height: 1.2; }
.switcher select { appearance: none; -webkit-appearance: none; background: transparent; border: 0; padding: 0; margin: 0; color: #fff; font-weight: 600; font-size: 14px;
  width: 100%; cursor: pointer; text-overflow: ellipsis; position: static; }
.switcher select::before { content: ''; }
.switcher select:focus { outline: none; box-shadow: none; }
.switcher:focus-within { box-shadow: var(--ring); }
.switcher select option { background: #16161a; color: #fff; }
.sw-chev { color: var(--side-muted); pointer-events: none; }
.nav { gap: 1px; flex: 1; }
.nav-head { margin: 16px 12px 6px; font-size: 10.5px; font-weight: 600; letter-spacing: .1em; color: var(--side-muted); }
.nav-item { position: relative; display: flex; align-items: center; gap: 11px; padding: 7px 10px; border: 0; border-radius: 9px; color: var(--side-ink); font-size: 14px; font-weight: 500; transition: background .12s, color .12s; }
.nav-item .ic { color: #7b7b87; transition: color .12s; }
.nav-item .nav-t { flex: 1; min-width: 0; display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-item:hover { background: rgba(255,255,255,.045); color: #fff; }
.nav-item:hover .ic { color: #c9c9d1; }
.nav-item.active { background: linear-gradient(90deg, rgba(255,122,89,.16), rgba(255,122,89,.04)); color: #fff; border: 0; }
.nav-item.active .ic { color: var(--accent); }
.nav-item.active::before { content: ''; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.nav-item .lock { display: inline-flex; align-items: center; gap: 3px; margin: 0; padding: 1px 6px; font-size: 10px; font-weight: 600; border: 1px solid var(--line-2); border-radius: 99px; color: var(--side-muted); background: none; }
.nav-item .lock .ic { width: 10px; height: 10px; stroke-width: 2.2; color: inherit; }
.pill { margin: 0; min-width: 20px; height: 19px; display: inline-grid; place-items: center; padding: 0 6px; font-size: 11px; font-weight: 700; border-radius: 99px; background: var(--accent); color: #140804; }
.side-plan { margin: 12px 4px 6px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background:
  radial-gradient(160px 80px at 100% 0, rgba(255,122,89,.22), transparent 70%), rgba(255,255,255,.03); }
.side-plan p { font-size: 12.5px; color: var(--muted); margin: 6px 0 10px; line-height: 1.45; }
.sp-row { display: flex; align-items: center; justify-content: space-between; }
.sp-name { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13.5px; color: #fff; }
.sp-name .ic { width: 15px; height: 15px; color: var(--accent); }
.sp-free { font-size: 10.5px; color: var(--muted); }
.sp-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.sp-link .ic { width: 14px; height: 14px; }
.side-foot { margin: 0; padding-top: 6px; border-top: 1px solid var(--line); }
.side-foot .nav-item { color: var(--muted); }
.scrim { display: none; }

.main { position: relative; padding: 0 40px 90px; max-width: 1240px; margin: 0; }
.topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 12px; height: 64px; margin: 0 -40px 22px; padding: 0 40px;
  background: rgba(8,8,10,.72); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.tb-menu, .tb-logo { display: none; }
.tb-crumb { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13.5px; }
.tb-crumb .ic { width: 14px; height: 14px; color: var(--side-muted); }
.tb-crumb b { font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-crumb .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.tb-up { border-color: var(--accent-line); color: #ffd3c6; background: var(--accent-tint); }
.tb-up:hover { background: rgba(255,122,89,.2); border-color: var(--accent); }
.notes { position: relative; top: auto; right: auto; }
.notes-bell, .umenu > summary { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--ink-2); transition: .15s; }
.notes-bell:hover, .umenu > summary:hover { background: rgba(255,255,255,.08); color: #fff; }
.notes-bell .ic { width: 19px; height: 19px; }
.notes-count { top: -5px; right: -5px; background: var(--accent); color: #140804; border: 2px solid var(--bg); font-weight: 700; }
.notes-panel, .umenu-panel { top: 48px; border-radius: 14px; background: rgba(20,20,25,.98); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); }
.umenu { position: relative; }
.umenu > summary { list-style: none; cursor: pointer; padding: 0; overflow: hidden; }
.umenu > summary::-webkit-details-marker { display: none; }
.avatar { width: 100%; height: 100%; display: grid; place-items: center; font-weight: 800; font-size: 14px; font-family: var(--display); color: #0a0a0a; background: linear-gradient(135deg, #f5f5f7, #b9b9c4); }
.avatar.lg { width: 38px; height: 38px; border-radius: 11px; flex: none; }
.umenu-panel { position: absolute; right: 0; width: 260px; padding: 6px; display: grid; gap: 1px; }
.um-head { display: flex; gap: 10px; align-items: center; padding: 10px 10px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.um-head > span:last-child { display: grid; min-width: 0; }
.um-head small { font-size: 12.5px; }
.umenu-panel a, .umenu-panel button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 9px; border: 0; background: none; color: var(--ink-2); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.umenu-panel a:hover, .umenu-panel button:hover { background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }
.umenu-panel .ic { color: var(--muted); }
.umenu-panel .badge { margin-left: auto; }
.umenu-panel form { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid var(--line); }
.viewas { margin: 0 0 18px; border-radius: 12px; background: var(--info-tint); border: 1px solid rgba(122,162,255,.3); color: #c7d6ff; }
.viewas span { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Page head ---------- */
.page-head { margin: 6px 0 26px; }
.page-head h1 { margin-bottom: 6px; }
.page-head p, .page-head .muted { font-size: 15px; max-width: 720px; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; color: var(--accent); margin-bottom: 8px; }
.step { color: var(--accent); }

/* ---------- Cards ---------- */
.card { background: linear-gradient(180deg, rgba(255,255,255,.022), rgba(255,255,255,0) 40%), var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 24px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 4px; }
a.card:hover, .kpi:hover, .step-card:hover { border-color: var(--line-2); text-decoration: none; }
.callout { border-radius: 14px; }
.callout.info { background: var(--info-tint); color: #c7d6ff; border: 1px solid rgba(122,162,255,.25); border-left: 1px solid rgba(122,162,255,.25); }
.callout.warn { background: var(--warn-tint); color: #fde3a1; border: 1px solid rgba(251,191,36,.25); }
.empty { padding: 48px 24px; }
.empty::before { content: ''; display: block; width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 16px; background:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff8a6b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 3.5 11.7 8a3 3 0 0 0 1.8 1.8l4.5 1.7-4.5 1.7a3 3 0 0 0-1.8 1.8L10 19.5 8.3 15a3 3 0 0 0-1.8-1.8L2 11.5 6.5 9.8A3 3 0 0 0 8.3 8z'/%3E%3C/svg%3E") center/26px no-repeat, var(--accent-tint);
  border: 1px solid var(--accent-line); }

/* ---------- KPIs ---------- */
.kpi { position: relative; overflow: hidden; padding: 18px 18px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.kpi::after { content: ''; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,122,89,.14), transparent); }
.kpi b { font-family: var(--display); font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.kpi span { font-size: 12.5px; font-weight: 500; }
.kpi.warn { background: var(--card); border-color: rgba(251,191,36,.35); }
.kpi.warn::after { background: radial-gradient(closest-side, rgba(251,191,36,.18), transparent); }

/* ---------- Buttons ---------- */
.btn { gap: 7px; padding: 9px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; line-height: 1.25; color: var(--ink); background: rgba(255,255,255,.045); border: 1px solid var(--line-2);
  transition: background .15s, border-color .15s, transform .08s, box-shadow .15s; cursor: pointer; }
.btn:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn.primary { color: #0b0b0d; background: linear-gradient(180deg, #ffffff, #e4e4ea); border-color: transparent; box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 6px 18px -8px rgba(255,255,255,.35); }
.btn.primary:hover { background: linear-gradient(180deg, #ffffff, #f0f0f4); }
.btn.accent { color: #170904; background: linear-gradient(180deg, #ff9b7d, #ff6a45); border-color: transparent; box-shadow: 0 8px 22px -10px rgba(255,106,69,.7); }
.btn.accent:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: rgba(255,255,255,.06); color: #fff; }
.btn.danger { color: #ffb4b4; background: var(--danger-tint); border-color: rgba(255,99,99,.28); }
.btn.danger:hover { background: rgba(255,99,99,.16); }
.btn.small { padding: 6px 11px; font-size: 13px; border-radius: 9px; }
.btn.big { padding: 12px 22px; font-size: 15px; border-radius: 12px; }

/* ---------- Forms ---------- */
label { font-weight: 600; font-size: 13.5px; color: var(--ink-2); gap: 7px; }
label small, .hint { color: var(--muted); font-weight: 400; }
input, select, textarea { background: #0e0e12; color: var(--ink); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; font-size: 14.5px; transition: border-color .15s, box-shadow .15s, background .15s; }
input:hover, select:hover, textarea:hover { border-color: rgba(255,255,255,.18); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); background: #101015; }
input::placeholder, textarea::placeholder { color: #5d5d68; }
input:disabled { background: #0c0c0f; color: var(--muted); }
select:not([multiple]):not(.switcher select) { appearance: none; -webkit-appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e8e9a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6.5 9.5 5.5 5.5 5.5-5.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); width: 16px; height: 16px; padding: 0; box-shadow: none; }
.chip { border: 1px solid var(--line-2); background: rgba(255,255,255,.03); font-size: 13.5px; transition: .15s; }
.chip:hover { border-color: rgba(255,255,255,.2); }
.chip:has(input:checked) { border-color: var(--accent-line); background: var(--accent-tint); color: #ffd9cd; }
.chip-mini { background: rgba(255,255,255,.06); }

/* ---------- Tabs ---------- */
.tabs { gap: 4px; padding: 4px; background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 12px; width: fit-content; max-width: 100%; }
.tab { border: 0; background: transparent; color: var(--muted); border-radius: 9px; padding: 7px 14px; font-size: 13.5px; transition: .15s; }
.tab:hover { color: #fff; background: rgba(255,255,255,.05); }
.tab.active { background: var(--elev); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 4px 12px -4px rgba(0,0,0,.6); }

/* ---------- Flash / status ---------- */
.flash { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-radius: 12px; font-size: 14px; background: var(--ok-tint); color: #bbf7d0; border: 1px solid rgba(74,222,128,.25); }
.flash::before { content: ''; flex: none; width: 18px; height: 18px; margin-top: 1px; background: currentColor; -webkit-mask: var(--fi) center/contain no-repeat; mask: var(--fi) center/contain no-repeat; }
.flash { --fi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.8'/%3E%3Cpath d='m8.3 12.3 2.5 2.5 5-5.2'/%3E%3C/svg%3E"); }
.flash.err { background: var(--danger-tint); color: #fecaca; border-color: rgba(255,99,99,.3);
  --fi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8.8'/%3E%3Cpath d='M12 7.5v5.5M12 16.5h.01'/%3E%3C/svg%3E"); }
.flash.warn, .flash.info { background: var(--warn-tint); color: #fde3a1; border-color: rgba(251,191,36,.28);
  --fi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8.8'/%3E%3Cpath d='M12 11v5.5M12 7.8h.01'/%3E%3C/svg%3E"); }
.flash.info .ic { display: none; }
.working { background: var(--info-tint); color: #c7d6ff; border: 1px solid rgba(122,162,255,.25); }
.spinner { border-color: rgba(122,162,255,.25); border-top-color: var(--info); }
.badge { font-size: 11.5px; padding: 2px 9px; background: rgba(255,255,255,.07); color: var(--ink-2); border: 1px solid var(--line); }
.badge.ready, .badge.published { background: var(--ok-tint); color: #86efac; border-color: rgba(74,222,128,.25); }
.badge.current, .badge.approved, .badge.queued, .badge.generating, .badge.publishing { background: var(--info-tint); color: #a9c1ff; border-color: rgba(122,162,255,.25); }
.badge.failed { background: var(--danger-tint); color: #ffa3a3; border-color: rgba(255,99,99,.28); }
.badge.review { background: var(--warn-tint); color: #fcd34d; border-color: rgba(251,191,36,.25); }

/* ---------- Tables ---------- */
.tbl th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; color: var(--muted); padding: 10px 12px; background: rgba(255,255,255,.02); }
.tbl td { padding: 11px 12px; border-bottom-color: var(--line); }
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr:hover { background: rgba(255,255,255,.025); }
.table-wrap { border-radius: var(--radius-lg); overflow: hidden; overflow-x: auto; }

/* ---------- To-do / dashboard ---------- */
.todo-ico { border-radius: 12px; background: var(--accent-tint); border: 1px solid var(--accent-line); color: var(--accent); font-size: 18px; }
.todo-ico .ic { width: 20px; height: 20px; }
.todo.warn .todo-ico { background: var(--warn-tint); border-color: rgba(251,191,36,.3); color: var(--warn); }
.post-line { transition: background .12s; }
.post-line:hover { background: rgba(255,255,255,.035); text-decoration: none; }
.step-card { background: var(--card); border-color: var(--line); }
.step-card.active { border: 1px solid var(--accent-line); box-shadow: 0 0 0 1px var(--accent-line) inset; }
.step-no { background: var(--accent-tint); color: var(--accent); font-family: var(--display); }

/* ---------- Pricing ---------- */
.price-card { border-radius: 20px; background: linear-gradient(180deg, rgba(255,255,255,.03), transparent 50%), var(--card); transition: transform .2s, border-color .2s; }
.price-card:hover { transform: translateY(-2px); border-color: var(--line-2); }
.price-card.popular { border-color: var(--accent-line); box-shadow: 0 0 0 1px var(--accent-line), 0 30px 60px -30px rgba(255,106,69,.45); background: radial-gradient(240px 140px at 50% 0, rgba(255,122,89,.14), transparent 70%), var(--card); }
.price-card.mine { border-color: rgba(255,255,255,.4); }
.price-badge { background: linear-gradient(180deg, #ff9b7d, #ff6a45); color: #170904; box-shadow: 0 6px 16px -6px rgba(255,106,69,.7); }
.price b { font-family: var(--display); font-size: 38px; font-weight: 800; }
.price-list li::before { border-color: var(--accent); }
.plan-opt { background: #0e0e12; border-color: var(--line-2); transition: .15s; }
.plan-opt.on { border-color: var(--accent); box-shadow: var(--ring); background: var(--accent-tint); }

/* ---------- Connections ---------- */
.conn-state.on { color: var(--ok); }
.switch { accent-color: var(--accent); }

/* ---------- Auth (bare) pages ---------- */
.bare { background: radial-gradient(900px 500px at 50% -10%, rgba(255,122,89,.16), transparent 60%), radial-gradient(700px 400px at 100% 100%, rgba(122,162,255,.07), transparent 60%), var(--bg); }
.auth { position: relative; padding: 32px 20px; }
.auth::before { content: ''; position: fixed; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px); background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%); }
.auth-card { position: relative; max-width: 420px; padding: 36px 34px 30px; border-radius: 22px; background: rgba(18,18,22,.86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); }
.auth-card .logo.big { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 22px; }
.auth-card .mk-logo.big { height: 40px; margin-bottom: 10px; }
.auth-card .logo-sub { font-size: 14px; color: var(--muted); font-weight: 500; }
.auth-card h1 { font-size: 24px; text-align: center; }
.auth-card .btn.primary.full { padding: 12px; font-size: 15px; margin-top: 4px; }
.auth-wide { max-width: 520px; }
.login-legal { display: flex; justify-content: center; gap: 4px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.doc { max-width: 760px; }
.doc h1 { font-size: 34px; }
.doc h2 { font-size: 19px; margin-top: 30px; }
.doc p, .doc li { color: var(--ink-2); line-height: 1.75; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .main > .page-head, .main > .card, .main > .kpis, .main > .dash-cols, .auth-card { animation: rise .35s cubic-bezier(.2,.7,.2,1) both; }
  .main > .card:nth-of-type(2) { animation-delay: .04s; } .main > .card:nth-of-type(3) { animation-delay: .08s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .shell { display: block; }
  .side { position: fixed; z-index: 80; left: 0; top: 0; bottom: 0; width: min(300px, 86vw); height: 100vh; padding: 16px 12px; transform: translateX(-102%); transition: transform .25s cubic-bezier(.2,.7,.2,1); box-shadow: var(--shadow-lg); }
  .side .switcher, .side .nav { display: flex; }
  .side .nav { flex-direction: column; }
  .side-close { display: grid; }
  body.nav-open .side { transform: none; }
  body.nav-open { overflow: hidden; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.55); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity .2s; }
  body.nav-open .scrim { opacity: 1; pointer-events: auto; }
  .menu-btn { display: none !important; }
  .main { padding: 0 16px 80px; }
  .topbar { margin: 0 -16px 18px; padding: 0 12px; height: 58px; gap: 8px; }
  .tb-menu { display: grid; place-items: center; position: relative; width: 38px; height: 38px; border-radius: 11px; background: rgba(255,255,255,.04); border: 1px solid var(--line); color: #fff; cursor: pointer; }
  .tb-menu .dot { position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
  .tb-logo { display: block; }
  .tb-logo img { height: 24px; display: block; }
  .tb-crumb { display: none; }
  .tb-up { display: none; }
  .notes-panel { position: fixed; top: 64px; left: 12px; right: 12px; width: auto; }
  .umenu-panel { position: fixed; top: 64px; right: 12px; }
  h1 { font-size: 25px; }
  .card { padding: 18px; }
  .tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .tab { white-space: nowrap; }
}
.switcher select { background-image: none !important; padding-right: 0 !important; box-shadow: none !important; }

/* Checkout & billing (v3) */
.checkout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 18px; align-items: start; }
.co-plan { background: radial-gradient(300px 160px at 0 0, rgba(255,122,89,.16), transparent 70%), var(--card); }
.co-price { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.co-price b { font-family: var(--display); font-size: 40px; font-weight: 800; letter-spacing: -.03em; }
.co-price span { color: var(--muted); }
.co-ico { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg, #ff9b7d, #ff6a45); color: #170904; box-shadow: 0 10px 24px -10px rgba(255,106,69,.8); }
.co-ico .ic { width: 22px; height: 22px; stroke-width: 2; }
.co-switch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 4px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.co-switch a { display: grid; text-align: center; padding: 8px; border-radius: 9px; color: var(--muted); font-size: 13px; }
.co-switch a b { color: var(--ink-2); font-size: 13.5px; }
.co-switch a:hover { background: rgba(255,255,255,.05); text-decoration: none; }
.co-switch a.on { background: var(--elev); box-shadow: 0 0 0 1px var(--accent-line) inset; }
.co-switch a.on b { color: #fff; }
.pay-opt { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px; border: 1px solid var(--line-2); border-radius: 14px; background: rgba(255,255,255,.02); margin: 0; }
.pay-opt.col { flex-direction: column; align-items: stretch; }
.pay-head { display: flex; gap: 12px; align-items: flex-start; }
.pay-head > div { display: grid; gap: 2px; }
.pay-logo { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 11px; background: rgba(255,255,255,.06); border: 1px solid var(--line-2); color: var(--ink-2); }
.pay-logo.pp { background: #ffc439; color: #003087; border-color: transparent; }
.pay-logo .ic { width: 20px; height: 20px; stroke-width: 2; }
.pp-box { min-height: 52px; padding: 10px; border-radius: 12px; background: #fff; }
.pp-box .muted { color: #555; }
.co-legal { display: flex; gap: 8px; align-items: flex-start; }
.co-legal .ic { color: var(--ok); margin-top: 2px; }
.err-text { color: #ffa3a3; }
.pay-prov { display: inline-flex; align-items: center; gap: 6px; }
.pay-prov .ic { width: 16px; height: 16px; color: var(--muted); }
.card h3 .ic { color: var(--accent); margin-right: 4px; }
.usage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.usage { padding: 14px; border-radius: 12px; background: rgba(255,255,255,.025); border: 1px solid var(--line); }
.meter { height: 7px; border-radius: 99px; background: rgba(255,255,255,.06); overflow: hidden; margin-top: 10px; }
.meter i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #ffb199, #ff6a45); }
.meter i.hot { background: linear-gradient(90deg, #fbbf24, #ef4444); }
@media (max-width: 900px) { .checkout, .usage-grid { grid-template-columns: 1fr; } .pay-opt { flex-direction: column; align-items: stretch; } }
.main > .page-head, .main > .page-head.row { padding-right: 0; }
.conn-title { display: flex; gap: 14px; align-items: flex-start; }
.conn-title h3 { margin-top: 2px; }
.mode { background: #0e0e12; border-color: var(--line-2); transition: .15s; }
.mode input { accent-color: var(--accent); }
.mode.on { border-color: var(--line-2); background: #0e0e12; }
.mode:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); box-shadow: 0 0 0 1px var(--accent-line) inset; }
.mode:focus-within { outline: none; box-shadow: var(--ring); }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.025); border: 1px solid var(--line); }
.kv > div { display: grid; gap: 2px; min-width: 0; }
.kv code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.switch.on { background: linear-gradient(180deg, #ff9b7d, #ff6a45) !important; border-color: transparent !important; }

.check-line { display: block; font-weight: 400; line-height: 1.6; }
.check-line input { vertical-align: -3px; margin: 0 6px 0 0; }
/* Auth split screen */
.auth-aside { display: none; }
@media (min-width: 1100px) {
  .auth.split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; padding: 0; place-items: stretch; }
  .auth.split .auth-card { align-self: center; justify-self: center; margin: 40px; }
  .auth-aside { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 64px clamp(40px, 6vw, 96px); overflow: hidden;
    border-right: 1px solid var(--line); background: radial-gradient(600px 400px at 0% 0%, rgba(255,122,89,.18), transparent 60%), radial-gradient(500px 400px at 100% 100%, rgba(122,162,255,.08), transparent 60%), #0b0b0e; }
  .aa-logo { height: 34px; width: auto; align-self: flex-start; }
  .aa-title { font-size: clamp(34px, 3.4vw, 52px); line-height: 1.05; font-weight: 800; letter-spacing: -.035em; margin: 10px 0 0; }
  .aa-title span { background: linear-gradient(90deg, #ffb199, #ff6a45); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .aa-sub { color: var(--ink-2); font-size: 16px; max-width: 470px; line-height: 1.6; }
  .aa-list { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 14px; max-width: 470px; }
  .aa-list li { display: flex; gap: 14px; align-items: flex-start; }
  .aa-list li > span { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 11px; background: var(--accent-tint); border: 1px solid var(--accent-line); color: var(--accent); }
  .aa-list b { display: block; font-size: 14.5px; }
  .aa-list small { color: var(--muted); font-size: 13px; }
  .aa-card { max-width: 420px; margin-top: 6px; padding: 16px 18px; border-radius: 16px; background: rgba(255,255,255,.035); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); }
  .aa-row { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
  .aa-row small { margin-left: auto; color: var(--muted); }
  .aa-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(74,222,128,.15); }
  .aa-bar { height: 6px; border-radius: 99px; background: rgba(255,255,255,.07); margin: 12px 0; overflow: hidden; }
  .aa-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ffb199, #ff6a45); border-radius: 99px; }
  .aa-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .aa-stats b { display: block; font-family: var(--display); font-size: 20px; }
  .aa-stats small { color: var(--muted); font-size: 11.5px; }
  .auth.split::before { display: none; }
}
.aa-week { display: grid; gap: 8px; margin-top: 12px; }
.aa-week div { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid var(--line); font-size: 13px; }
.aa-week small { color: var(--muted); font-weight: 600; }
.aa-week i { font-style: normal; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--ok-tint); color: #86efac; }
.aa-week i.w { background: var(--warn-tint); color: #fcd34d; }
.auth-head { text-align: center; margin: -6px 0 22px; }
.auth-head h1 { font-size: 26px; margin-bottom: 4px; }
.auth-head p { font-size: 14px; margin: 0; }
.auth-card .logo.big .logo-sub { display: none; }
@media (min-width: 1100px) { .auth.split .auth-card .logo.big { display: none; } .auth.split .auth-card { max-width: 440px; width: 100%; } }
.kpis { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important; }
.ic.emo { width: 1.05em; height: 1.05em; vertical-align: -.17em; margin-right: .3em; color: var(--accent); }
.tab .ic.emo, .tab .ic { width: 15px; height: 15px; color: inherit; opacity: .85; }
.fmt-card b .ic { width: 18px; height: 18px; margin-right: 6px; color: var(--accent); vertical-align: -3px; }
.pub-noimg .ic { width: 22px; height: 22px; margin: 0; }
.co-ico { color: #fff; } .co-ico .ic { stroke-width: 2.2; }

/* ===== Simple menu (v2.2) ===== */
.nav-sub { position: relative; display: flex; align-items: center; gap: 10px; margin-left: 18px; padding: 5px 10px; border-radius: 8px; color: var(--side-muted); font-size: 13.5px; font-weight: 500; border-left: 1px solid var(--line); border-radius: 0 8px 8px 0; }
.nav-sub .ic { width: 15px; height: 15px; }
.nav-sub:hover { color: #fff; background: rgba(255,255,255,.04); text-decoration: none; }
.nav-sub.active { color: #fff; border-left-color: var(--accent); background: rgba(255,122,89,.08); }
.nav-sub.active .ic { color: var(--accent); }
.nav-sub .nav-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-new { font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: var(--accent-tint); color: var(--accent); border: 1px solid var(--accent-line); }
.nav { gap: 3px; }
.nav > .nav-item { padding: 9px 10px; font-size: 14.5px; }
.nav > .nav-item .ic { width: 19px; height: 19px; }
.subnav { display: flex; gap: 6px; flex-wrap: wrap; margin: -6px 0 22px; }
.subnav a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 99px; font-size: 13px; font-weight: 500; color: var(--muted); border: 1px solid var(--line); background: rgba(255,255,255,.02); transition: .15s; }
.subnav a .ic { width: 15px; height: 15px; }
.subnav a:hover { color: #fff; border-color: var(--line-2); text-decoration: none; }
.subnav a.on { color: #fff; border-color: var(--accent-line); background: var(--accent-tint); }
.subnav a.on .ic { color: var(--accent); }
.subnav .sn-lock { width: 12px !important; height: 12px !important; opacity: .7; }
.um-mode { border-top: 0 !important; margin: 0 !important; padding: 0 !important; }
.umenu-panel form.um-mode + form { margin-top: 4px; }
/* Hubs */
.hub-quick { margin: 0 0 22px; }
.hub-h { margin: 26px 0 12px; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.hub-card { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: var(--ink); transition: border-color .15s, transform .15s, background .15s; margin: 0; }
a.hub-card:hover, .hub-card.add:hover, .hub-card.on:hover { border-color: var(--line-2); transform: translateY(-1px); text-decoration: none; background: var(--card-2); }
.hub-main { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; color: inherit; }
.hub-main:hover { text-decoration: none; }
.hub-ico { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 13px; background: var(--accent-tint); border: 1px solid var(--accent-line); color: var(--accent); }
.hub-ico .ic { width: 21px; height: 21px; }
.hub-card.add .hub-ico { background: rgba(255,255,255,.04); border-color: var(--line-2); color: var(--ink-2); }
.hub-text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.hub-text b { font-size: 15px; }
.hub-text small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.hub-go { color: var(--side-muted); }
.hub-lock { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.hub-lock .ic { width: 11px; height: 11px; }
.hub-x { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; border: 0; background: transparent; color: var(--side-muted); cursor: pointer; }
.hub-x:hover { background: rgba(255,255,255,.07); color: #fff; }
.hub-card form { margin: 0; }
.empty-soft { display: grid; gap: 4px; padding: 18px 20px; }
/* Wizard */
.wizard { max-width: 640px; margin: 10px auto 0; }
.wz-steps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 18px; }
.wz-steps li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); padding-top: 10px; border-top: 3px solid var(--line-2); }
.wz-steps li span { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; font-size: 12px; font-weight: 700; background: rgba(255,255,255,.06); color: var(--muted); }
.wz-steps li span .ic { width: 13px; height: 13px; stroke-width: 2.5; }
.wz-steps li.on { color: #fff; border-top-color: var(--accent); }
.wz-steps li.on span { background: var(--accent); color: #170904; }
.wz-steps li.done { color: var(--ink-2); border-top-color: rgba(255,122,89,.5); }
.wz-steps li.done span { background: var(--accent-tint); color: var(--accent); }
.wz-card { padding: 30px 32px; gap: 18px; }
.wz-card h1 { font-size: 26px; margin: 2px 0 4px; }
.wz-key { padding: 14px; border-radius: 12px; background: rgba(255,255,255,.025); border: 1px dashed var(--line-2); display: grid; gap: 6px; }
.wz-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 6px; }
.wz-channels { display: grid; gap: 8px; }
.wz-ch { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: #0e0e12; font-weight: 400; cursor: pointer; flex-direction: row; transition: .15s; }
.wz-ch:has(input:checked) { border-color: var(--accent-line); background: var(--accent-tint); }
.wz-ch-t { display: grid; flex: 1; min-width: 0; }
.wz-ch-t b { color: var(--ink); font-size: 14.5px; }
.wz-ch .pl-dot { width: 10px; height: 10px; }
.ok-tick { color: var(--ok); }
.wz-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.wz-pick.two { grid-template-columns: repeat(2, 1fr); }
.wz-opt { position: relative; display: grid; gap: 3px; padding: 14px; border-radius: 13px; border: 1px solid var(--line-2); background: #0e0e12; cursor: pointer; font-weight: 400; transition: .15s; }
.wz-opt input { position: absolute; opacity: 0; pointer-events: none; }
.wz-opt b { color: var(--ink); font-size: 15px; }
.wz-opt small { color: var(--muted); font-size: 12.5px; }
.wz-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); box-shadow: 0 0 0 1px var(--accent-line) inset; }
.wz-opt:focus-within { box-shadow: var(--ring); }
@media (max-width: 900px) { .wz-card { padding: 20px; } .wz-pick, .wz-pick.two { grid-template-columns: 1fr; } .wz-steps li { font-size: 0; } .wz-steps li span { font-size: 12px; } .hub-grid { grid-template-columns: 1fr; } }
/* Home */
.more-menu { position: relative; }
.more-menu > summary { list-style: none; padding: 9px 11px; }
.more-menu > summary::-webkit-details-marker { display: none; }
.more-panel { position: absolute; right: 0; top: 46px; z-index: 30; width: 250px; padding: 6px; display: grid; border-radius: 14px; background: rgba(20,20,25,.98); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); }
.more-panel a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: var(--ink-2); font-size: 14px; }
.more-panel a:hover { background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }
.more-panel .ic { color: var(--muted); }
.next-step { display: flex; align-items: center; gap: 18px; border-color: var(--accent-line); background: radial-gradient(400px 160px at 0 50%, rgba(255,122,89,.12), transparent 70%), var(--card); }
.ns-ring { --p: 0; width: 58px; height: 58px; flex: none; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--accent) calc(var(--p) * 1%), rgba(255,255,255,.08) 0); }
.ns-ring span { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--card); font-size: 12.5px; font-weight: 700; font-family: var(--display); }
.ns-body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ns-body b { font-size: 16px; }
.ns-all summary { cursor: pointer; color: var(--muted); margin-top: 4px; width: fit-content; }
.ns-all .checklist { margin-top: 10px; }
@media (max-width: 900px) { .next-step { flex-wrap: wrap; } .next-step .btn { width: 100%; justify-content: center; } }
/* Collapsible "more options" */
.adv-sec { border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.015); }
.adv-sec > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; }
.adv-sec > summary::-webkit-details-marker { display: none; }
.adv-sec > summary > span { display: grid; gap: 2px; }
.adv-sec > summary b { font-size: 14.5px; color: var(--ink); }
.adv-sec > summary small { color: var(--muted); font-size: 12.5px; font-weight: 400; }
.adv-sec > summary .ic { color: var(--muted); transition: transform .2s; }
.adv-sec[open] > summary .ic { transform: rotate(180deg); }
.adv-sec > summary:hover b { color: #fff; }
.adv-sec[open] { padding-bottom: 16px; }
.adv-sec[open] > *:not(summary) { margin-left: 18px; margin-right: 18px; }
.adv-sec > .card { margin-top: 0; margin-bottom: 12px; }
.adv-sec + .adv-sec, .card + .adv-sec, .adv-sec + .card { margin-top: 14px; }
form.stack > .adv-sec > .card { background: transparent; border: 0; box-shadow: none; padding: 6px 0 10px; }
/* Workspace channels */
.ch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.ch-tile { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 13px; border: 1px solid var(--line-2); background: #0e0e12; }
.ch-tile.on { border-color: rgba(74,222,128,.3); background: linear-gradient(90deg, rgba(74,222,128,.06), transparent 60%), #0e0e12; }
.ch-tile .pl-dot { width: 11px; height: 11px; flex: none; }
.ch-ico { color: var(--muted); display: grid; }
.ch-t { display: grid; flex: 1; min-width: 0; }
.ch-t b { font-size: 14.5px; }
.ch-auto { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 14px; border-radius: 13px; background: var(--accent-tint); border: 1px solid var(--accent-line); }
.ch-auto > span { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
.ch-auto > span .ic { grid-row: span 2; color: var(--accent); }
.ch-auto form { margin: 0; }
.adv-ws { margin: 16px 0; }
.adv-ws[open] > .card { background: var(--card); border: 1px solid var(--line); padding: 20px 22px; }

/* ===== Calendar (v2.4) ===== */
.pl-dot.bluesky { background: #1185fe; }
.pl-dot.telegram { background: #2aabee; }
.pl-dot.youtube { background: #ff3b30; }
.pl-dot.tiktok { background: linear-gradient(135deg, #25f4ee 0 50%, #fe2c55 50% 100%); }
.ic.flip { transform: rotate(180deg); }
.cal-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 4px 0 12px; }
.cal-label { margin: 0 0 0 8px; font-size: 20px; }
.cal-views { margin: 0; }
.cal-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.cf { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--line-2); border-radius: 99px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); cursor: pointer; flex-direction: row; background: rgba(255,255,255,.02); }
.cf input { width: 13px; height: 13px; margin: 0; }
.cf:has(input:not(:checked)) { opacity: .45; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 12px; }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend .st { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.cal-tip { margin-left: auto; }
.cal-tip .ic { width: 14px; height: 14px; }
.st.review, .cal-post.st-review { --st: #fbbf24; }
.st.approved, .cal-post.st-approved, .cal-post.st-publishing { --st: #7aa2ff; }
.st.published, .cal-post.st-published { --st: #4ade80; }
.st.failed, .cal-post.st-failed, .cal-post.st-abandoned { --st: #ff7a7a; }
.st { background: var(--st); }
.st.free { background: transparent; border: 1.5px dashed var(--muted); }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--card); }
.cal-wd { padding: 9px 10px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: rgba(255,255,255,.02); border-bottom: 1px solid var(--line); }
.cal-day { min-height: 128px; padding: 6px 6px 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; transition: background .12s; min-width: 0; }
.cal-day:nth-child(7n) { border-right: 0; }
.cal.week .cal-day { min-height: 460px; }
.cal-day.other { background: rgba(0,0,0,.25); }
.cal-day.other .cal-dn { opacity: .45; }
.cal-day.past { background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(255,255,255,.012) 10px 20px); }
.cal-day.drop { background: var(--accent-tint); box-shadow: inset 0 0 0 2px var(--accent); }
.cal-dn { display: flex; align-items: baseline; gap: 6px; padding: 2px 4px 4px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.cal-day.today .cal-dn span { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 99px; background: var(--accent); color: #170904; }
.cal-dn small { color: var(--muted); font-weight: 500; }
.cal-items { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal-post { display: grid; gap: 2px; padding: 5px 7px 6px; border-radius: 8px; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-left: 3px solid var(--st, var(--line-2)); color: var(--ink); font-size: 12px; line-height: 1.3; min-width: 0; transition: background .12s, transform .12s, opacity .12s; }
.cal-post:hover { background: rgba(255,255,255,.08); text-decoration: none; }
.cal-post[draggable=true] { cursor: grab; }
.cal-post.dragging { opacity: .35; }
.cal-post.moving { opacity: .6; }
.cal-post img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; margin-bottom: 3px; }
.cp-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.cp-top b { font-size: 11.5px; color: var(--ink-2); }
.cp-dots { display: inline-flex; gap: 3px; }
.cp-dots .pl-dot { width: 7px; height: 7px; }
.cp-t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink); }
.cal.week .cp-t { -webkit-line-clamp: 4; }
.cal-free { display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 8px; border: 1.5px dashed var(--line-2); color: var(--muted); font-size: 11.5px; width: fit-content; }
.cal-free .ic { width: 12px; height: 12px; }
.cal-free:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.cal-toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 90; padding: 11px 18px; border-radius: 12px; background: rgba(20,20,25,.98); border: 1px solid rgba(74,222,128,.35); color: #bbf7d0; box-shadow: var(--shadow-lg); font-size: 14px; max-width: 90vw; }
.cal-toast.bad { border-color: rgba(255,99,99,.4); color: #fecaca; }
@media (max-width: 900px) {
  .cal { grid-template-columns: 1fr; }
  .cal-wd { display: none; }
  .cal-day { min-height: 0; border-right: 0; }
  .cal-day.other, .cal.month .cal-day:not(:has(.cal-post)):not(:has(.cal-free)):not(.today) { display: none; }
  .cal.week .cal-day { min-height: 0; }
  .cal-tip { display: none; }
}
@media (max-width: 900px) { .cal-legend .cal-tip { display: none; } .cal-legend { gap: 10px; } }
.label-like { display: grid; gap: 7px; font-weight: 600; font-size: 13.5px; color: var(--ink-2); }

/* ---------- v2.5: Autopilot, online store ---------- */
.nav-item .pill.soft { background: rgba(255,122,89,.16); color: var(--accent); font-weight: 600; }
.inline-num { width: 58px !important; height: 28px !important; min-height: 0 !important; display: inline-block !important; padding: 2px 6px !important; margin: 0 3px !important; text-align: center; vertical-align: middle; }
.ap-goals { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.ap-goal { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line, #2a2a2a); border-radius: 12px; padding: 12px; cursor: pointer; }
.ap-goal:has(input:checked) { border-color: var(--accent); background: rgba(255,122,89,.06); }
.ap-goal input { margin-top: 3px; }
.ap-goal span { display: flex; flex-direction: column; gap: 2px; }
.ap-goal small { color: var(--muted, #9a9a9a); font-size: 12px; line-height: 1.35; }
.ap-big { font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.ap-big .muted { font-size: 22px; font-weight: 600; }
.ap-pace { text-align: right; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.ap-progress .meter { height: 10px; }
.ap-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line, #2a2a2a); }
.ap-item:first-of-type { border-top: 0; }
.ap-item.done .ap-body b, .ap-item.skipped .ap-body b { opacity: .6; }
.ap-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,122,89,.12); color: var(--accent); flex: none; }
.ap-ic .ic { width: 18px; height: 18px; }
.ap-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ap-acts { display: flex; gap: 6px; flex: none; align-items: center; }
.ap-bar { display: grid; grid-template-columns: 120px 1fr 40px; gap: 10px; align-items: center; font-size: 13px; }
.ap-bar b { text-align: right; }
@media (max-width: 640px) {
  .ap-item { flex-wrap: wrap; }
  .ap-acts { width: 100%; padding-left: 46px; }
  .ap-pace { text-align: left; align-items: flex-start; }
  .ap-bar { grid-template-columns: 90px 1fr 32px; }
}
.ap-strip { text-decoration: none; color: inherit; align-items: center; }
.ap-strip .ap-ic { width: 30px; height: 30px; }
/* v2.6: agency white label */
.wl-name { font-family: 'Plus Jakarta Sans', Inter, sans-serif; font-weight: 800; font-size: 21px; letter-spacing: -.02em; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; display: inline-block; }
.wl-name.big { font-size: 30px; max-width: 320px; }
.wl-logo { max-height: 38px; max-width: 190px; width: auto; object-fit: contain; }
.wl-logo.big { max-height: 56px; max-width: 260px; }
.tb-logo .wl-logo { max-height: 28px; }
.tb-logo .wl-name { font-size: 17px; max-width: 140px; }
.aa-logo.wl-name { font-size: 26px; }
.portal-link { display: flex; gap: 8px; align-items: center; }
.portal-link input { flex: 1; font-size: 13px; }
input[type="color"] { height: 46px; padding: 4px 6px; cursor: pointer; background: var(--bg, #0b0b0b); }
input[type="color"]::-webkit-color-swatch-wrapper { padding: 2px; }
input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 8px; }
.credit-costs { display: grid; gap: 6px; margin-top: 10px; max-width: 560px; }
.credit-costs .row { padding: 6px 0; border-bottom: 1px solid var(--line); }
.credit-costs .row { flex-wrap: nowrap; gap: 16px; align-items: flex-start; }
.credit-costs .row b { flex: none; }
.sp-credits { display: grid; gap: 6px; margin: 2px 0 10px; font-size: 12.5px; color: var(--muted, #9a9a9a); text-decoration: none; }
.sp-credits b { color: #fff; }
.sp-credits .meter { height: 6px; }
/* One-click setup: website scan */
.scan-site { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.scan-input { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: #0e0e12; }
.scan-input:focus-within { border-color: var(--accent); box-shadow: var(--ring); }
.scan-input .ic { width: 18px; height: 18px; color: var(--muted); flex: none; }
.scan-input input { border: 0; background: transparent; box-shadow: none; padding: 14px 0; font-size: 16px; flex: 1; min-width: 0; }
.scan-input input:focus { box-shadow: none; outline: none; }
.scan-steps { list-style: none; padding: 0; margin: 4px 0; display: grid; gap: 4px; }
.scan-steps li { display: flex; align-items: center; gap: 12px; padding: 9px 2px; color: var(--muted); font-size: 15px; transition: color .2s; }
.scan-steps .dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line-2); flex: none; }
.scan-steps .dot .ic { width: 13px; height: 13px; stroke-width: 2.6; opacity: 0; }
.scan-steps li.done { color: var(--ink-2); }
.scan-steps li.done .dot { background: var(--accent-tint); border-color: var(--accent-line); color: var(--accent); }
.scan-steps li.done .dot .ic { opacity: 1; }
.scan-steps li.on { color: #fff; font-weight: 600; }
.scan-steps li.on .dot { border-color: var(--accent); border-top-color: transparent; animation: scanspin .8s linear infinite; }
@keyframes scanspin { to { transform: rotate(360deg); } }
.scan-brand { display: flex; gap: 16px; align-items: flex-start; }
.scan-brand .grow { flex: 1; min-width: 0; display: grid; gap: 10px; }
.scan-logo { width: 84px; height: 84px; border-radius: 16px; object-fit: contain; background: #fff; padding: 8px; flex: none; }
.scan-logo.none { display: grid; place-items: center; background: var(--accent-tint); color: var(--accent); font-size: 32px; font-weight: 700; padding: 0; }
.scan-colors { display: flex; align-items: center; gap: 6px; }
.scan-colors span { width: 22px; height: 22px; border-radius: 6px; border: 1px solid rgba(255,255,255,.15); }
.scan-colors small { margin-left: 6px; }
.scan-found { padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.025); border: 1px solid var(--line-2); display: grid; gap: 8px; }
.scan-found ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.scan-found li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.scan-found li .ic { width: 16px; height: 16px; color: var(--ok, #3ecf8e); flex: none; margin-top: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 900px) { .scan-site { grid-template-columns: 1fr; } .scan-brand { flex-direction: column; } }
/* Setup step 1: scan or by hand */
.setup-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.sp-opt { display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 16px; border-radius: 14px; border: 1px solid var(--line-2); background: #0e0e12; color: var(--ink-2); cursor: pointer; font: inherit; transition: .15s; }
.sp-opt:hover { border-color: var(--accent-line); }
.sp-opt.on { border-color: var(--accent); background: var(--accent-tint); box-shadow: 0 0 0 1px var(--accent-line) inset; color: var(--ink); }
.sp-opt:focus-visible { outline: none; box-shadow: var(--ring); }
.sp-opt > span:last-child { display: grid; gap: 3px; }
.sp-opt b { color: var(--ink); font-size: 15.5px; }
.sp-opt small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.sp-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.05); flex: none; }
.sp-opt.on .sp-ic { background: var(--accent); color: #170904; }
.sp-ic .ic { width: 18px; height: 18px; }
.mf-group { display: grid; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.mf-group:first-of-type { border-top: 0; padding-top: 0; }
.mf-group h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; margin: 0; }
.mf-group h3 .ic { width: 16px; height: 16px; color: var(--accent); }
.mf-group h3 small { font-weight: 400; font-size: 12.5px; }
.mf-label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.small.req, small.req { color: var(--accent); font-weight: 500; }
.chip-check { position: relative; display: inline-flex; cursor: pointer; font-weight: 400; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check span { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; color: var(--ink-2); transition: .15s; }
.chip-check input:checked + span { border-color: var(--accent); background: var(--accent-tint); color: var(--ink); }
.chip-check input:focus-visible + span { box-shadow: var(--ring); }
@media (max-width: 900px) { .setup-pick { grid-template-columns: 1fr; } }
/* Setup: connect AI */
.key-guide { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.key-guide li { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 12px; border: 1px solid var(--line-2); background: #0e0e12; }
.key-guide .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent); font-weight: 700; font-size: 13px; flex: none; }
.key-guide li > div { display: grid; gap: 4px; justify-items: start; }
.key-guide .btn { margin-top: 6px; }
.todo.free-posts { border-color: var(--accent-line); background: linear-gradient(90deg, var(--accent-tint), transparent 70%); }
.todo.free-posts .meter { height: 5px; margin-top: 8px; max-width: 280px; }
/* ===== Admin (v3.0) ===== */
.admin-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); background: var(--accent-tint); border: 1px solid var(--accent-line); padding: 3px 8px; border-radius: 99px; margin-top: 8px; }
.admin-tag .ic { width: 13px; height: 13px; }
.admin-switch { display: grid; gap: 6px; }
.admin-who .ok .ic { width: 12px; height: 12px; vertical-align: -1px; }
.admin-boot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-boot span { flex: 1; min-width: 260px; }
.pill.warn { background: #6b2a24; color: #ffb4a8; }
.stat small { display: block; margin-top: 4px; font-size: 12px; }
.akv { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.akv:last-child { border-bottom: 0; }
.akv > span { color: var(--muted); }
.akv > b { text-align: right; font-weight: 600; }
.small.ok, b.ok, span.ok, p.ok, td.ok { color: #86efac; }
.mini-chart { width: 100%; height: 150px; display: block; }
.mini-chart rect { fill: var(--accent); opacity: .85; }
.mini-chart.green rect { fill: #4ade80; }
.mini-chart rect:hover { opacity: 1; }
.mini-chart .base { stroke: var(--line-2); stroke-width: 1; }
.mini-chart text { fill: var(--muted); font-size: 11px; font-family: Inter, sans-serif; }
.plain-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.meter.thin { height: 4px; margin-top: 4px; max-width: 120px; }
.badge.ok { background: rgba(74, 222, 128, .12); color: #86efac; }
.badge.warn { background: rgba(255, 122, 89, .14); color: #ffb4a8; }
.note-line { padding: 8px 0; border-top: 1px solid var(--line); }
.pre { white-space: pre-wrap; word-break: break-word; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.danger-zone { border-color: #3e1e24; }
.warn-row td { color: #ffb4a8; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.set-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; position: sticky; top: 64px; z-index: 5; background: var(--bg, #0a0a0a); padding: 8px 0; }
.set-tabs a { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--ink-2); font-size: 13.5px; }
.set-tabs a:hover { border-color: var(--accent-line); color: #fff; text-decoration: none; }
.app-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.app-name { display: grid; gap: 2px; min-width: 0; }
.app-name code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inline-act summary { list-style: none; }
.inline-act summary::-webkit-details-marker { display: none; }
.inline-act[open] form { margin-top: 6px; min-width: 200px; }
.backup-codes .codes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.backup-codes code, .setup-key { font-size: 15px; padding: 8px 10px; background: #101014; border: 1px solid var(--line-2); border-radius: 8px; text-align: center; letter-spacing: .06em; }
.qr { background: #fff; border-radius: 12px; padding: 8px; }
.announce { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; margin: 0 0 12px; border: 1px solid var(--accent-line); background: var(--accent-tint); color: var(--ink); font-size: 14px; }
.announce > span { flex: 1; }
.announce .ic { width: 18px; height: 18px; color: var(--accent); flex: none; }
.announce.warn { border-color: #6b3a1e; background: rgba(251, 146, 60, .1); }
.announce.warn .ic { color: #fb923c; }
.announce.ok { border-color: rgba(74, 222, 128, .3); background: rgba(74, 222, 128, .08); }
.announce.ok .ic { color: #4ade80; }
.ann-row { display: grid; gap: 6px; padding: 10px 0; border-top: 1px solid var(--line); }
.ann-row .announce { margin: 0; }
.msg-card { gap: 10px; }
.tb-switch .ic { width: 14px; height: 14px; }
@media (max-width: 900px) { .grid3, .app-row { grid-template-columns: 1fr; } .backup-codes .codes { grid-template-columns: repeat(2, 1fr); } }
.chart-foot { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.mini-chart { height: 130px; }
/* checkout: order summary + discount code */
.osum{border:1px solid var(--line,#2a2a2a);border-radius:14px;padding:6px 16px;background:rgba(255,255,255,.02)}
.osum-row{display:flex;justify-content:space-between;gap:12px;padding:10px 0;font-size:15px}
.osum-row+.osum-row{border-top:1px dashed var(--line,#2a2a2a)}
.osum-row.ok span:last-child{color:#4ade80;font-weight:600}
.osum-row.ok span:first-child{color:#4ade80}
.osum-row.total{font-size:16px}.osum-row.total b{font-size:20px}
.code-box summary{cursor:pointer;list-style:none;display:inline-flex;align-items:center;gap:8px;font-size:14.5px;font-weight:500;color:var(--accent,#ff7a59)}
.code-box summary::-webkit-details-marker{display:none}
.code-box summary svg{width:16px;height:16px}
.code-form{display:flex;gap:8px;margin-top:10px}
.code-form input{flex:1;min-width:0;text-transform:uppercase;letter-spacing:.04em}
.code-on{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.code-chip{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:999px;background:rgba(74,222,128,.12);color:#4ade80;font-size:14px}
.code-chip svg{width:15px;height:15px}
.code-on form{margin-left:auto}
.code-chip.off{background:rgba(255,122,89,.12);color:#ff9f86}
/* monthly / yearly switch */
.term-toggle{display:inline-flex;padding:4px;border:1px solid var(--line,#2a2a2a);border-radius:999px;background:rgba(255,255,255,.03);gap:2px;margin-top:14px}
.term-toggle a{display:inline-flex;align-items:center;gap:8px;padding:8px 16px;border-radius:999px;font-size:14px;font-weight:600;color:var(--muted,#9a9a9a);text-decoration:none}
.term-toggle a.on{background:#f5f5f5;color:#0a0a0a}
.term-toggle .save{font-size:11.5px;font-weight:700;padding:2px 8px;border-radius:999px;background:rgba(74,222,128,.16);color:#4ade80}
.term-toggle a.on .save{background:#0a0a0a;color:#4ade80}
.co-sub{display:block;font-size:13px;color:#4ade80;margin-top:2px}
/* API & MCP settings */
.key-new{border-color:rgba(74,222,128,.4)}
.copy-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.copy-row code{flex:1;min-width:0;overflow-wrap:anywhere;padding:12px 14px;border-radius:12px;background:#0d0d0d;border:1px solid var(--line,#2a2a2a);font-size:14px}
pre.code{margin:0;padding:14px 16px;border-radius:12px;background:#0d0d0d;border:1px solid var(--line,#2a2a2a);overflow-x:auto;font-size:13px;line-height:1.55}
pre.code code{white-space:pre}
.api-tabs details{border:1px solid var(--line,#2a2a2a);border-radius:12px;padding:10px 14px;margin-top:8px}
.api-tabs summary{cursor:pointer;font-weight:600}
.api-tabs details[open] summary{margin-bottom:10px}
.tool-list{list-style:none;padding:0;margin:0;display:grid;gap:6px}
.tool-list li{display:grid;grid-template-columns:150px minmax(0,1fr);gap:12px;font-size:13.5px}
.tool-list span{color:var(--muted,#9a9a9a)}
@media (max-width:640px){.tool-list li{grid-template-columns:1fr;gap:2px}}
