/* Social Poster — design tokens */
:root {
  --bg: #f6f6f8;
  --surface: #ffffff;
  --surface-2: #fafafb;
  --surface-3: #f1f1f4;
  --border: #e6e6eb;
  --border-strong: #d4d4dc;
  --text: #0e1016;
  --text-2: #4f5566;
  --text-3: #858b9b;
  --accent: #5b4cf0;
  --accent-hover: #4b3cdf;
  --accent-soft: #efedff;
  --accent-ink: #4031c9;
  --ok: #12804a; --ok-soft: #e3f5ec;
  --warn: #9a5b00; --warn-soft: #fff2db;
  --bad: #c42339; --bad-soft: #fde7ea;
  --info: #1f5fd1; --info-soft: #e6effe;
  --shadow-sm: 0 1px 2px rgba(16, 18, 27, .06);
  --shadow: 0 1px 2px rgba(16, 18, 27, .05), 0 4px 16px rgba(16, 18, 27, .06);
  --shadow-lg: 0 12px 40px rgba(16, 18, 27, .16), 0 2px 6px rgba(16, 18, 27, .06);
  --radius: 12px;
  --radius-sm: 8px;
  --sidebar: 240px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0c10; --surface: #121319; --surface-2: #16181f; --surface-3: #1c1f27;
    --border: #252832; --border-strong: #333744;
    --text: #eceef4; --text-2: #a7adbd; --text-3: #737a8c;
    --accent: #8274ff; --accent-hover: #9387ff; --accent-soft: #221f45; --accent-ink: #b3aaff;
    --ok: #4fd18b; --ok-soft: #10291c; --warn: #f0b552; --warn-soft: #2e230f; --bad: #ff7488; --bad-soft: #351820; --info: #79a8ff; --info-soft: #14223d;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.35); --shadow-lg: 0 16px 48px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0c10; --surface: #121319; --surface-2: #16181f; --surface-3: #1c1f27;
  --border: #252832; --border-strong: #333744;
  --text: #eceef4; --text-2: #a7adbd; --text-3: #737a8c;
  --accent: #8274ff; --accent-hover: #9387ff; --accent-soft: #221f45; --accent-ink: #b3aaff;
  --ok: #4fd18b; --ok-soft: #10291c; --warn: #f0b552; --warn-soft: #2e230f; --bad: #ff7488; --bad-soft: #351820; --info: #79a8ff; --info-soft: #14223d;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.35); --shadow-lg: 0 16px 48px rgba(0,0,0,.6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 var(--font);
  font-feature-settings: 'cv11', 'ss01'; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.small { font-size: 12.5px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
svg.i { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px;
  padding: 14px 12px; background: var(--surface); border-right: 1px solid var(--border);
}
.brandmark { display: flex; align-items: center; gap: 10px; padding: 6px 8px 14px; font-weight: 650; letter-spacing: -.01em; }
.brandmark .logo { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), #a35cff); color: #fff; box-shadow: var(--shadow-sm); }
.brandmark .logo svg { width: 16px; height: 16px; }
.brandmark small { display: block; font-weight: 500; color: var(--text-3); font-size: 11.5px; letter-spacing: 0; }
.ws { position: relative; margin-bottom: 10px; }
.ws-btn { width: 100%; display: flex; align-items: center; gap: 10px; padding: 7px 9px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface-2); cursor: pointer; text-align: left; color: var(--text); transition: border-color .12s, background .12s; }
.ws-btn:hover, .ws-btn[aria-expanded="true"] { border-color: var(--border-strong); background: var(--surface-3); }
.ws-btn > .i { width: 15px; height: 15px; color: var(--text-3); margin-left: auto; }
.ws-av { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 700; flex: none; }
.ws-av .i { width: 14px; height: 14px; color: var(--text-2); }
.ws-plus { background: var(--accent-soft); }
.ws-plus .i { color: var(--accent-ink); stroke-width: 2.4; }
.ws-txt { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.ws-txt b { font-weight: 620; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-txt small { color: var(--text-3); font-size: 11.5px; margin-top: 1px; }
.ws-menu { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0; padding: 5px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px; box-shadow: var(--shadow-lg); max-height: 60vh; overflow-y: auto; animation: wsin .12s ease-out; }
@keyframes wsin { from { opacity: 0; transform: translateY(-4px); } }
.ws-item { width: 100%; display: flex; align-items: center; gap: 10px; padding: 7px; border: 0; border-radius: 8px; background: none; color: var(--text); cursor: pointer; text-align: left; }
.ws-item:hover, .ws-item:focus-visible { background: var(--surface-3); }
.ws-item.on { background: var(--accent-soft); }
.ws-item > .i { width: 15px; height: 15px; margin-left: auto; color: var(--accent-ink); stroke-width: 2.6; }
.ws-sep { height: 1px; background: var(--border); margin: 5px 4px; }
.nav-new { margin: 2px 0 12px; justify-content: center; }
.nav a {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--radius-sm);
  color: var(--text-2); font-weight: 500; text-decoration: none;
}
.nav a:hover { background: var(--surface-3); color: var(--text); }
.nav a.on { background: var(--accent-soft); color: var(--accent-ink); }
.nav a .count { margin-left: auto; font-size: 11.5px; padding: 0 7px; border-radius: 99px; background: var(--surface-3); color: var(--text-2); }
.nav a .count.bad { background: var(--bad-soft); color: var(--bad); }
.nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); padding: 14px 10px 4px; font-weight: 600; }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 4px; padding-top: 12px; border-top: 1px solid var(--border); }
.health { display: flex; align-items: center; gap: 8px; padding: 6px 10px; font-size: 12.5px; color: var(--text-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); flex: none; }
.dot.ok { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.dot.bad { background: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px;
  padding: 12px 28px; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}
.topbar.scrolled { border-bottom-color: var(--border); }
.topbar h1 { font-size: 18px; margin: 0; letter-spacing: -.015em; font-weight: 650; }
.topbar .sub { color: var(--text-3); font-size: 13px; }
.topbar .spacer { flex: 1; }
.search-btn {
  display: flex; align-items: center; gap: 8px; min-width: 240px; padding: 7px 10px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface); color: var(--text-3); cursor: pointer; box-shadow: var(--shadow-sm);
}
.search-btn:hover { border-color: var(--border-strong); }
kbd { font: 11px/1 var(--font); padding: 3px 5px; border-radius: 5px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); margin-left: auto; }
.menu-btn { display: none; }
.view { padding: 8px 28px 64px; max-width: 1320px; width: 100%; }

/* ---------- primitives ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 550; font-size: 13.5px;
  cursor: pointer; box-shadow: var(--shadow-sm); white-space: nowrap; transition: background .12s, border-color .12s, transform .05s;
}
.btn:hover { background: var(--surface-2); border-color: var(--border-strong); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--text-2); }
.btn.ghost:hover { background: var(--surface-3); color: var(--text); }
.btn.danger { color: var(--bad); }
.btn.danger:hover { background: var(--bad-soft); border-color: transparent; }
.btn.sm { padding: 4px 9px; font-size: 12.5px; gap: 5px; }
.btn.lg { padding: 10px 16px; font-size: 14.5px; }
.btn.icon { padding: 6px; }
.btn.block { width: 100%; justify-content: center; }
.btn .i { width: 15px; height: 15px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-h { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.card-h h2 { margin: 0; font-size: 14px; font-weight: 620; letter-spacing: -.005em; }
.card-h .right { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.card-b { padding: 16px; }
.card-b.tight { padding: 6px; overflow-x: auto; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }
.field > label, .label { font-size: 12.5px; font-weight: 560; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.label .faint { font-weight: 450; }
.input, textarea.input, select.input {
  width: 100%; padding: 8px 11px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font: inherit; transition: border-color .12s, box-shadow .12s;
}
textarea.input { resize: vertical; min-height: 96px; line-height: 1.55; }
.input:hover { border-color: var(--border-strong); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.input::placeholder { color: var(--text-3); }
select.input { appearance: none; padding-right: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23858b9b' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.input-group { display: flex; gap: 8px; align-items: center; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 560; white-space: nowrap; background: var(--surface-3); color: var(--text-2); }
.badge .i { width: 12px; height: 12px; stroke-width: 2.2; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.info { background: var(--info-soft); color: var(--info); }
.badge.accent { background: var(--accent-soft); color: var(--accent-ink); }
.badge.live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: var(--surface-3); border: 1px solid var(--border); }
.seg button { border: 0; background: transparent; padding: 5px 11px; border-radius: 7px; font-size: 13px; font-weight: 550; color: var(--text-2); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.seg .n { font-size: 11.5px; color: var(--text-3); }

.switch { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; padding: 6px 0; }
.switch input { appearance: none; width: 32px; height: 18px; border-radius: 99px; background: var(--border-strong); position: relative; flex: none; margin: 1px 0 0; cursor: pointer; transition: background .15s; }
.switch input::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(14px); }
.switch b { display: block; font-weight: 560; font-size: 13.5px; }
.switch span { color: var(--text-2); font-size: 12.5px; }
.switch input:disabled { cursor: not-allowed; }
.tt-who { display: flex; gap: 10px; align-items: center; }
.tt-who img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; }
.tt-who b { display: block; font-size: 14px; }
.tt-sep { height: 1px; background: var(--border); margin: 12px 0; }

.pf { width: 24px; height: 24px; flex: none; border-radius: 7px; display: block; }
:root[data-theme="dark"] .pf { outline: 1px solid rgba(255, 255, 255, .16); outline-offset: -1px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pf { outline: 1px solid rgba(255, 255, 255, .16); outline-offset: -1px; } }
.pf.sm { width: 18px; height: 18px; border-radius: 5px; }
.pf.lg { width: 36px; height: 36px; border-radius: 10px; }
.pf-stack { display: inline-flex; }
.pf-stack > * { margin-left: -5px; box-shadow: 0 0 0 2px var(--surface); border-radius: 6px; position: relative; }
.pf-stack > *:first-child { margin-left: 0; }
.pf-wrap { position: relative; display: inline-flex; }
.pf-wrap .st { position: absolute; right: -3px; bottom: -3px; width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 2px var(--surface); }
.st.done { background: var(--ok); } .st.failed { background: var(--bad); } .st.running { background: var(--info); } .st.retry { background: var(--warn); }
.st.queued { background: var(--accent); } .st.skipped, .st.cancelled { background: var(--text-3); }

.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 650; font-size: 13px; color: #fff; flex: none; position: relative; }
.avatar .pf { position: absolute; right: -4px; bottom: -4px; width: 16px; height: 16px; border-radius: 5px; box-shadow: 0 0 0 2px var(--surface); }

.empty { text-align: center; padding: 44px 20px; color: var(--text-2); }
.empty .ill { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); }
.empty .ill svg { width: 24px; height: 24px; }
.empty h3 { margin: 0 0 4px; color: var(--text); font-size: 15px; }
.empty p { margin: 0 0 14px; }

.skeleton { background: linear-gradient(90deg, var(--surface-3), var(--surface-2), var(--surface-3)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 6px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- dashboard ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.kpi { padding: 16px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; transition: border-color .12s, box-shadow .12s; }
.kpi:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.kpi .k { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 13px; font-weight: 550; }
.kpi .k .ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; }
.kpi .k .ic svg { width: 14px; height: 14px; }
.kpi .v { font-size: 28px; font-weight: 680; letter-spacing: -.03em; line-height: 1.15; margin-top: 6px; }
.kpi .d { font-size: 12.5px; color: var(--text-3); }
.dash { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.dash .col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.chart { position: relative; height: 170px; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart .bar { fill: var(--accent); transition: opacity .12s; }
.chart .bar.dim { opacity: .35; }
.chart .hit { fill: transparent; cursor: default; }
.chart .grid { stroke: var(--border); stroke-width: 1; }
.chart text { fill: var(--text-3); font-size: 11px; font-family: var(--font); }
.tip { position: absolute; pointer-events: none; background: var(--text); color: var(--surface); padding: 6px 9px; border-radius: 7px; font-size: 12px; box-shadow: var(--shadow-lg); white-space: nowrap; transform: translate(-50%, -100%); z-index: 5; }
.tip b { font-weight: 650; }

.list-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.list-row:hover { background: var(--surface-2); }
.list-row + .list-row { border-top: 1px solid var(--border); border-radius: 0; }
.list-row:hover + .list-row { border-top-color: transparent; }
.list-row .grow { flex: 1; min-width: 0; }
.list-row .t { font-weight: 560; }
.thumb { width: 64px; height: 40px; border-radius: 7px; object-fit: cover; background: var(--surface-3); flex: none; display: grid; place-items: center; color: var(--text-3); overflow: hidden; }
.thumb.v { width: 32px; height: 48px; }
.thumb svg { width: 16px; height: 16px; }
.when { text-align: right; flex: none; }
.when b { display: block; font-weight: 600; font-size: 13px; }
.when span { font-size: 12px; color: var(--text-3); }

/* ---------- compose ---------- */
.compose { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; align-items: start; }
.c-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.c-side { position: sticky; top: 72px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.acct-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.acct-pick {
  display: flex; align-items: center; gap: 10px; padding: 7px 12px 7px 8px; border-radius: 99px; border: 1px solid var(--border);
  background: var(--surface); cursor: pointer; transition: all .12s; user-select: none; max-width: 100%;
}
.acct-pick:hover { border-color: var(--border-strong); }
.acct-pick.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.acct-pick.off { opacity: .5; cursor: not-allowed; }
.acct-pick .avatar { width: 28px; height: 28px; font-size: 11px; }
.acct-pick .nm { font-weight: 560; font-size: 13px; line-height: 1.2; }
.acct-pick .why { font-size: 11.5px; color: var(--text-3); display: block; }
.acct-pick .tick { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--border-strong); display: grid; place-items: center; margin-left: 2px; }
.acct-pick.on .tick { background: var(--accent); border-color: var(--accent); color: #fff; }
.acct-pick .tick svg { width: 10px; height: 10px; stroke-width: 3.2; }

.dropzone {
  border: 1.5px dashed var(--border-strong); border-radius: var(--radius); padding: 28px 20px; text-align: center; cursor: pointer;
  background: var(--surface-2); transition: all .15s;
}
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: var(--accent-soft); }
.dropzone .ill { width: 44px; height: 44px; border-radius: 12px; margin: 0 auto 10px; display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow-sm); color: var(--accent-ink); }
.dropzone .ill svg { width: 20px; height: 20px; }
.dropzone b { display: block; font-size: 14px; margin-bottom: 2px; }
.media-tile { display: flex; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.media-tile .pv { width: 112px; height: 72px; border-radius: 9px; overflow: hidden; background: #000; flex: none; display: grid; place-items: center; }
.media-tile .pv.v { width: 54px; height: 84px; }
.media-tile .pv video, .media-tile .pv img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-tile .meta { flex: 1; min-width: 0; }
.media-tile .meta b { display: block; font-weight: 600; }
.progress { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin-top: 8px; }
.progress > div { height: 100%; background: linear-gradient(90deg, var(--accent), #a35cff); border-radius: 99px; transition: width .3s; }
.extras { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.extra-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border-radius: 99px; background: var(--surface-3); font-size: 12.5px; }
.extra-chip button { border: 0; background: none; cursor: pointer; color: var(--text-3); display: grid; padding: 2px; border-radius: 50%; }
.extra-chip button:hover { color: var(--bad); background: var(--bad-soft); }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); padding: 0 12px; overflow-x: auto; scrollbar-width: none; }
.tabs button { border: 0; background: none; padding: 11px 10px 10px; display: inline-flex; align-items: center; gap: 7px; font-weight: 560; font-size: 13px; color: var(--text-2); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--text); border-bottom-color: var(--accent); }
.tabs .edited { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.editor-foot { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.ring { width: 22px; height: 22px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 3; }
.ring .bg { stroke: var(--surface-3); }
.ring .fg { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .2s; }
.ring.warn .fg { stroke: var(--warn); } .ring.over .fg { stroke: var(--bad); }
.counter { display: flex; align-items: center; gap: 6px; margin-left: auto; font-size: 12.5px; color: var(--text-3); }
.counter.over { color: var(--bad); font-weight: 600; }
.chips-row { display: flex; gap: 6px; flex-wrap: wrap; }
.tok { padding: 3px 9px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); font-size: 12.5px; cursor: pointer; color: var(--text-2); }
.tok:hover { border-color: var(--accent); color: var(--accent-ink); }

.quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.quick button { text-align: left; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; }
.quick button:hover { border-color: var(--border-strong); }
.quick button.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.quick b { display: block; font-size: 13px; font-weight: 600; }
.quick span { font-size: 12px; color: var(--text-3); }

.checks { display: flex; flex-direction: column; gap: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 9px; font-size: 13px; }
.check .i { margin-top: 2px; }
.check.ok { color: var(--ok); } .check.ok span { color: var(--text-2); }
.check.warn { background: var(--warn-soft); } .check.warn .i { color: var(--warn); }
.check.bad { background: var(--bad-soft); } .check.bad .i { color: var(--bad); }
.check.info .i { color: var(--info); }
.check span { color: var(--text); }
.check .pf { margin-top: 0; }

.submit-bar { display: flex; flex-direction: column; gap: 8px; }
.submit-bar .btn.lg { justify-content: center; }
.draft-note { font-size: 12px; color: var(--text-3); text-align: center; }

/* ---------- previews ---------- */
.pv-tabs { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.pv-tabs button { border: 1px solid var(--border); background: var(--surface); border-radius: 9px; padding: 4px; cursor: pointer; display: grid; }
.pv-tabs button.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.pv-stage { padding: 18px; background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); display: flex; justify-content: center; min-height: 380px; }
.pv-note { font-size: 12px; color: var(--text-3); text-align: center; padding: 0 16px 14px; background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); margin-top: -1px; }
.mock { width: 100%; max-width: 360px; background: #fff; color: #0f1419; border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 14px; }
.mock .hd { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.mock .av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px; flex: none; }
.mock .nm { font-weight: 700; line-height: 1.2; }
.mock .sub { color: #65676b; font-size: 12.5px; }
.mock .tx { padding: 0 14px 12px; white-space: pre-wrap; word-wrap: break-word; line-height: 1.42; }
.mock .tx .lnk, .mock .tx .tag { color: #1d72e8; }
.mock .md { background: #000; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; }
.mock .md.v { aspect-ratio: 4 / 5; }
.mock .md img, .mock .md video { width: 100%; height: 100%; object-fit: cover; display: block; }
.mock .md .ph { color: #888; font-size: 12px; display: grid; gap: 6px; place-items: center; }
.mock .ft { display: flex; justify-content: space-around; padding: 8px 6px; border-top: 1px solid #e4e6eb; color: #65676b; font-size: 13px; font-weight: 600; }
.mock .more { color: #65676b; }
.mock.x { padding: 12px 14px; display: grid; grid-template-columns: 40px 1fr; gap: 10px; border-radius: 16px; }
.mock.x .tx, .mock.threads .tx { padding: 2px 0 10px; }
.mock.x .md, .mock.threads .md { border-radius: 14px; border: 1px solid #e1e8ed; }
.mock.x .meta, .mock.threads .meta { display: flex; justify-content: space-between; color: #536471; font-size: 12.5px; padding-top: 10px; max-width: 300px; }
.mock.threads { padding: 14px; display: grid; grid-template-columns: 38px 1fr; gap: 10px; }
.mock.yt { border-radius: 14px; }
.mock.yt .md { position: relative; }
.mock.yt .dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.8); color: #fff; font-size: 12px; font-weight: 600; padding: 1px 5px; border-radius: 4px; }
.mock.yt .row { display: flex; gap: 12px; padding: 12px; }
.mock.yt .tt { font-weight: 600; font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mock.yt .ds { margin: 0 12px 12px; padding: 10px; background: #f2f2f2; border-radius: 10px; font-size: 12.5px; white-space: pre-wrap; max-height: 110px; overflow: hidden; color: #0f0f0f; }
.phone { width: 230px; aspect-ratio: 9 / 16; border-radius: 26px; background: #000; position: relative; overflow: hidden; box-shadow: var(--shadow-lg), 0 0 0 6px #17181c; color: #fff; font-family: system-ui, sans-serif; }
.phone > img, .phone > video, .phone > .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone > .ph { display: grid; place-items: center; color: #777; font-size: 12px; }
.phone .ov { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 54px 16px 12px; background: linear-gradient(transparent, rgba(0,0,0,.7)); font-size: 12px; line-height: 1.35; }
.phone .ov b { display: block; font-size: 13px; margin-bottom: 3px; }
.phone .ov p { margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; }
.phone .side { position: absolute; right: 8px; bottom: 70px; display: grid; gap: 14px; justify-items: center; font-size: 10px; }
.phone .side i { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.18); display: block; }
.phone .top { position: absolute; top: 12px; left: 0; right: 0; text-align: center; font-size: 12.5px; font-weight: 600; opacity: .9; }
.phone .priv { position: absolute; top: 34px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.55); padding: 2px 8px; border-radius: 99px; font-size: 10.5px; white-space: nowrap; }

/* ---------- posts table ---------- */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .search { position: relative; flex: 1; min-width: 200px; max-width: 340px; }
.toolbar .search .i { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.toolbar .search .input { padding-left: 32px; }
.toolbar select.input { width: auto; }
table.tbl { width: 100%; border-collapse: separate; border-spacing: 0; }
.tbl th { text-align: left; font-size: 12px; font-weight: 560; color: var(--text-3); padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap; }
.tbl th:first-child { border-top-left-radius: var(--radius); } .tbl th:last-child { border-top-right-radius: var(--radius); }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { cursor: pointer; transition: background .1s; }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl tbody tr.sel { background: var(--accent-soft); }
.post-cell { display: flex; align-items: center; gap: 12px; min-width: 0; max-width: 460px; }
.post-cell .grow { min-width: 0; }
.post-cell .t { font-weight: 580; }
.post-cell .c { color: var(--text-3); font-size: 12.5px; }
.brand-tag { font-size: 12px; padding: 2px 8px; border-radius: 6px; background: var(--surface-3); color: var(--text-2); font-weight: 550; }

/* ---------- drawer / modal ---------- */
.scrim { position: fixed; inset: 0; background: rgba(10, 12, 20, .38); z-index: 40; opacity: 0; transition: opacity .18s; }
.scrim.show { opacity: 1; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: var(--surface); z-index: 41; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .22s cubic-bezier(.2,.8,.2,1); }
.drawer.show { transform: none; }
.drawer .dh { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.drawer .dh h2 { margin: 0; font-size: 16px; flex: 1; min-width: 0; }
.drawer .db { padding: 20px; overflow: auto; flex: 1; display: flex; flex-direction: column; gap: 18px; }
.drawer .df { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; gap: 8px; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 8px 12px; font-size: 13px; }
.kv dt { color: var(--text-3); } .kv dd { margin: 0; }
.tgt { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.tgt .th { display: flex; align-items: center; gap: 10px; padding: 11px 12px; }
.tgt .th .grow { flex: 1; min-width: 0; }
.tgt .err { margin: 0 12px 10px; padding: 8px 10px; background: var(--bad-soft); color: var(--bad); border-radius: 8px; font-size: 12.5px; }
.tgt .acts { display: flex; gap: 6px; padding: 0 12px 11px; flex-wrap: wrap; }
.tgt pre { margin: 0; padding: 10px 12px; background: var(--surface-2); border-top: 1px solid var(--border); font: 11.5px/1.55 ui-monospace, 'Cascadia Code', Consolas, monospace; white-space: pre-wrap; max-height: 220px; overflow: auto; color: var(--text-2); }
.tgt textarea { margin: 0 12px 10px; width: calc(100% - 24px); }
.media-big { border-radius: var(--radius); overflow: hidden; background: #000; height: 280px; display: flex; justify-content: center; flex: none; }
.media-big img { height: 100%; width: 100%; object-fit: contain; display: block; }
.modal { position: fixed; z-index: 50; left: 50%; top: 12vh; transform: translate(-50%, 8px); width: min(560px, calc(100% - 32px)); background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); opacity: 0; transition: all .16s; max-height: 76vh; display: flex; flex-direction: column; }
.modal.show { opacity: 1; transform: translate(-50%, 0); }
.modal .mh { padding: 16px 18px 6px; } .modal .mh h2 { margin: 0; font-size: 16px; }
.modal .mb { padding: 10px 18px 18px; overflow: auto; }

/* command palette */
.palette { top: 14vh; width: min(620px, calc(100% - 32px)); }
.palette .pi { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.palette .pi input { flex: 1; border: 0; background: none; font: inherit; font-size: 15px; color: var(--text); outline: none; }
.palette .pl { padding: 6px; overflow: auto; max-height: 50vh; }
.palette .grp { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); padding: 10px 10px 4px; font-weight: 600; }
.palette .it { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; cursor: pointer; }
.palette .it.on { background: var(--accent-soft); color: var(--accent-ink); }
.palette .it .grow { flex: 1; min-width: 0; }

/* ---------- calendar ---------- */
.cal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.cal-head h2 { margin: 0; font-size: 18px; letter-spacing: -.015em; min-width: 170px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--border); gap: 1px; }
.cal .dow { background: var(--surface-2); padding: 8px 10px; font-size: 12px; font-weight: 600; color: var(--text-3); }
.cal .day { background: var(--surface); min-height: 118px; padding: 6px; display: flex; flex-direction: column; gap: 3px; transition: background .1s; }
.cal .day:hover { background: var(--surface-2); }
.cal .day.out { background: var(--surface-2); }
.cal .day.out .dn { color: var(--text-3); }
.cal .day.drop { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.cal .dn { font-size: 12.5px; font-weight: 600; padding: 2px 5px; display: flex; justify-content: space-between; align-items: center; color: var(--text-2); }
.cal .today .dn b { background: var(--accent); color: #fff; border-radius: 99px; padding: 1px 7px; }
.cal .add { opacity: 0; border: 0; background: none; color: var(--text-3); cursor: pointer; display: grid; padding: 2px; border-radius: 5px; }
.cal .day:hover .add { opacity: 1; }
.cal .add:hover { background: var(--accent-soft); color: var(--accent-ink); }
.ev { display: flex; align-items: center; gap: 5px; padding: 3px 6px; border-radius: 6px; font-size: 12px; cursor: pointer; border-left: 3px solid var(--accent); background: var(--accent-soft); color: var(--text); min-width: 0; }
.ev[draggable="true"] { cursor: grab; }
.ev.done { border-left-color: var(--ok); background: var(--ok-soft); }
.ev.failed { border-left-color: var(--bad); background: var(--bad-soft); }
.ev.running { border-left-color: var(--info); background: var(--info-soft); }
.ev.partial { border-left-color: var(--warn); background: var(--warn-soft); }
.ev .tm { font-weight: 650; color: var(--text-2); font-variant-numeric: tabular-nums; flex: none; }
.ev .ttl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.ev .pf-stack .pf { width: 13px; height: 13px; border-radius: 4px; }
.cal .more { font-size: 11.5px; color: var(--text-3); padding: 0 6px; cursor: pointer; }
.legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--text-2); margin-left: auto; flex-wrap: wrap; }
.legend span { display: inline-flex; gap: 6px; align-items: center; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* ---------- accounts ---------- */
.brand-group { margin-bottom: 22px; }
.brand-group h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.acct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.acct-card { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.acct-card .top { display: flex; gap: 12px; align-items: center; }
.acct-card .top .grow { flex: 1; min-width: 0; }
.acct-card .nm { font-weight: 620; }
.acct-card .bt { display: flex; gap: 6px; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 10px; }
.connect-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.connect-tile { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; background: var(--surface); cursor: pointer; text-align: left; }
.connect-tile:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.connect-tile.off { cursor: default; opacity: .75; }
.connect-tile.off:hover { border-color: var(--border); box-shadow: none; }
.connect-tile b { font-size: 13.5px; }
.code { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); font: 12px/1.5 ui-monospace, 'Cascadia Code', Consolas, monospace; overflow-x: auto; }
.code code { flex: 1; white-space: pre; }
pre.code { white-space: pre-wrap; display: block; margin: 0; }

/* ---------- settings ---------- */
.settings { max-width: 1080px; }
.set-sec { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; padding: 26px 0; border-top: 1px solid var(--border); }
.set-sec:first-child { border-top: 0; padding-top: 8px; }
.set-h h2 { font-size: 15px; margin: 0 0 6px; letter-spacing: -.01em; }
.set-h p { margin: 0; color: var(--text-2); font-size: 13px; line-height: 1.55; }
.set-b { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.set-b > .seg { align-self: flex-start; }
.setup-progress { display: flex; align-items: center; gap: 16px; padding: 14px 16px; }
.setup-progress b { font-size: 15px; }
.plat-list { overflow: hidden; }
.plat-row { padding: 16px; border-top: 1px solid var(--border); }
.plat-row:first-child { border-top: 0; }
.plat-top { display: flex; align-items: center; gap: 14px; }
.plat-top .grow { flex: 1; min-width: 0; }
.plat-name { display: flex; align-items: center; gap: 8px; font-weight: 620; font-size: 14px; margin-bottom: 2px; flex-wrap: wrap; }
.plat-detail { margin: 12px 0 0 calc(36px + 14px); display: flex; flex-direction: column; gap: 6px; }
.plat-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.plat-live { margin-left: auto; color: var(--text-3); display: inline-flex; align-items: center; gap: 5px; }
code.var { font: 11.5px ui-monospace, 'Cascadia Code', Consolas, monospace; padding: 2px 7px; border-radius: 6px; background: var(--surface-3); color: var(--text-2); }
.copy-field { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 5px 5px 5px 11px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
.copy-field code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 12.5px ui-monospace, 'Cascadia Code', Consolas, monospace; color: var(--text); }
.copy-field + .copy-field { margin-top: 6px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-grid > div { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; border-left: 1px solid var(--border); min-width: 0; }
.stat-grid > div:first-child { border-left: 0; }
.stat-grid span:first-child { font-size: 12px; color: var(--text-3); }
.stat-grid b { font-weight: 600; font-size: 13.5px; }
.stat-grid .badge { align-self: flex-start; }
.shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shortcuts > div { display: flex; justify-content: space-between; align-items: center; padding: 11px 16px; border-top: 1px solid var(--border); font-size: 13.5px; }
.shortcuts > div:nth-child(-n + 2) { border-top: 0; }
.shortcuts > div:nth-child(even) { border-left: 1px solid var(--border); }
.code { min-width: 0; }
.code code { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 900px) {
  .set-sec { grid-template-columns: 1fr; gap: 12px; padding: 20px 0; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid > div:nth-child(3) { border-left: 0; }
  .stat-grid > div:nth-child(n + 3) { border-top: 1px solid var(--border); }
  .plat-detail { margin-left: 0; }
  .plat-live { margin-left: 0; width: 100%; }
}
@media (max-width: 560px) {
  .plat-top { flex-wrap: wrap; }
  .shortcuts { grid-template-columns: 1fr; }
  .shortcuts > div:nth-child(2) { border-top: 1px solid var(--border); }
  .shortcuts > div:nth-child(even) { border-left: 0; }
}

.inbox-row { padding: 14px 12px; border-top: 1px solid var(--border); }
.inbox-row:first-child { border-top: 0; }

/* ---------- feed ---------- */
.feed { max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.feed-card { overflow: hidden; }
.feed-hd { display: flex; align-items: center; gap: 11px; padding: 14px 16px 10px; }
.feed-hd .grow { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.feed-hd b { font-weight: 640; text-transform: capitalize; }
.feed-hd time { color: var(--text-3); font-size: 12.5px; }
.feed-text { padding: 0 16px 12px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.feed-text .lnk, .feed-text .tag { color: var(--accent-ink); }
.feed-media { display: block; width: 100%; max-height: 700px; object-fit: contain; background: #000; }
.feed-ft { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; flex-wrap: wrap; }
.feed-stats { display: flex; gap: 16px; color: var(--text-2); font-size: 13.5px; }
.feed-stats span { display: inline-flex; align-items: center; gap: 5px; }
.feed-stats b { font-weight: 600; }
.feed-ch { display: flex; gap: 6px; margin-left: auto; }
.feed-ch a { display: block; border-radius: 6px; transition: transform .1s; }
.feed-ch a:hover { transform: translateY(-1px); }

/* ---------- toast ---------- */
.toasts { position: fixed; bottom: 20px; right: 20px; z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; max-width: calc(100% - 40px); }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: 11px; background: var(--text); color: var(--surface); box-shadow: var(--shadow-lg); max-width: 420px; font-size: 13.5px; animation: tin .2s; }
.toast .i { margin-top: 2px; }
.toast.ok .i { color: #4fd18b; } .toast.bad .i { color: #ff7488; }
@keyframes tin { from { transform: translateY(8px); opacity: 0; } }

/* ---------- login ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: radial-gradient(ellipse at top, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%), var(--bg); }
.login-card { width: min(380px, 100%); padding: 28px; }
.login-card .brandmark { padding: 0 0 18px; font-size: 16px; }
.login-card h1 { font-size: 21px; margin: 0 0 4px; letter-spacing: -.02em; }
.login-card p { margin: 0 0 20px; color: var(--text-2); }
.err { color: var(--bad); font-size: 13px; min-height: 18px; margin-top: 8px; }

/* ---------- public landing ---------- */
.landing { min-height: 100vh; display: flex; flex-direction: column; background: radial-gradient(ellipse at top left, color-mix(in srgb, var(--accent) 14%, transparent), transparent 55%), var(--bg); }
.land-top { padding: 22px 32px; }
.land-top .brandmark { padding: 0; font-size: 15px; }
.land-main { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 24px 32px 48px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 380px); gap: 56px; align-items: center; }
.land-hero h1 { font-size: 40px; line-height: 1.12; letter-spacing: -.03em; margin: 14px 0 14px; max-width: 620px; }
.land-hero > p { font-size: 16px; color: var(--text-2); max-width: 580px; margin: 0 0 26px; }
.land-plats { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 620px; }
.land-plats li { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.land-plats b { display: block; font-size: 14px; }
.land-plats span { font-size: 12.5px; color: var(--text-3); }
.land-yt { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--text-2); max-width: 620px; margin: 0; }
.land-yt .pf { margin-top: 2px; }
.landing .login-card { width: 100%; }
.landing .login-card h2 { margin: 0 0 4px; font-size: 19px; letter-spacing: -.015em; }
.landing .login-card > p { margin: 0 0 18px; color: var(--text-2); }
.land-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 32px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-3); }
.land-foot nav { display: flex; gap: 18px; }
.land-foot a { color: var(--text-2); }
@media (max-width: 900px) {
  .land-main { grid-template-columns: 1fr; gap: 28px; padding: 8px 16px 32px; }
  .land-top, .land-foot { padding-left: 16px; padding-right: 16px; }
  .land-hero h1 { font-size: 30px; }
  .land-plats { grid-template-columns: 1fr; }
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .compose { grid-template-columns: 1fr; }
  .c-side { position: static; }
  .dash { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; z-index: 45; width: 260px; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: none; }
  .menu-btn { display: inline-flex; }
  .topbar { padding: 10px 16px; }
  .view { padding: 6px 16px 56px; }
  .search-btn { min-width: 0; }
  .search-btn .lbl, .search-btn kbd { display: none; }
  .hide-sm { display: none; }
  .cal .day { min-height: 84px; }
  .ev .ttl, .ev .pf-stack { display: none; }
}
@media (max-width: 560px) {
  .kpi .v { font-size: 22px; }
  .tbl .hide-xs { display: none; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
}

/* Postanga plans */
.plan-note { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; font-size: 12.5px; font-weight: 560; background: var(--warn-soft); color: var(--warn); text-decoration: none; }
.plan-note.bad { background: var(--bad-soft); color: var(--bad); }
.plan-note .i { width: 14px; height: 14px; flex: none; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-top: 12px; }
.plan-card { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.plan-card.on { outline: 2px solid var(--accent); }
.plan-name { font-weight: 650; }
.plan-price b { font-size: 26px; }
.plan-price span { color: var(--text-2); font-size: 13px; margin-left: 2px; }
.plan-card ul { margin: 0 0 6px; padding-left: 18px; color: var(--text-2); font-size: 13px; line-height: 1.7; flex: 1; }
