:root {
  --page: #f9f9f7; --surface: #fcfcfb; --surface-2: #f2f1ed;
  --ink: #0b0b0b; --ink-2: #52514e; --muted: #898781;
  --grid: #e1e0d9; --axis: #c3c2b7; --border: #e6e5df;
  --accent: #2a78d6; --accent-ink: #fff;
  --good: #006300; --warning: #fab219; --critical: #d03b3b;
  --radius: 10px; --shadow: 0 1px 2px rgba(0,0,0,.04);
  --tg-bg: #e6ebee; --tg-bubble: #fff; --tg-link: #2a78d6;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #0d0d0d; --surface: #1a1a19; --surface-2: #232321;
    --ink: #f0efec; --ink-2: #c3c2b7; --muted: #898781;
    --grid: #2c2c2a; --axis: #383835; --border: #2c2c2a;
    --accent: #3987e5; --good: #0ca30c; --critical: #e66767;
    --tg-bg: #0f1419; --tg-bubble: #182533; --tg-link: #6ab3f3;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--page); color: var(--ink); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 22px; margin: 0; letter-spacing: -.01em; }
h2 { font-size: 15px; margin: 0 0 12px; }
code { font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
.muted { color: var(--muted); } .small { font-size: 12px; } .hidden { display: none !important; }
.text-critical { color: var(--critical); } .up { color: var(--good); } .down { color: var(--critical); }
.hint { color: var(--ink-2); font-size: 12px; margin: 12px 0 0; }

/* layout */
.layout { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 20px 14px; border-right: 1px solid var(--border);
  background: var(--surface); display: flex; flex-direction: column; gap: 18px; }
.brand { font-weight: 700; font-size: 16px; color: var(--ink); display: flex; gap: 8px; align-items: center; }
.brand:hover { text-decoration: none; }
.brand-logo { width: 26px; height: 26px; border-radius: 7px; display: block; }
.brand-mark { color: var(--accent); transform: rotate(90deg); display: inline-block; }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar nav a { color: var(--ink-2); padding: 7px 10px; border-radius: 7px; }
.sidebar nav a:hover { background: var(--surface-2); text-decoration: none; }
.sidebar nav a.active { background: var(--surface-2); color: var(--ink); font-weight: 600; }
.sidebar-foot { margin-top: auto; display: flex; justify-content: space-between; font-size: 12px; }
.content { padding: 24px 28px 48px; max-width: 1280px; width: 100%; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }

/* cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); margin-bottom: 16px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.card-head h2 { margin-bottom: 10px; }
.empty { text-align: center; padding: 36px; }
.empty .steps { text-align: left; max-width: 520px; margin: 12px auto 20px; color: var(--ink-2); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-wide-left { grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); align-items: start; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }

/* tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px;
  display: flex; flex-direction: column; color: var(--ink); }
.tile:hover { text-decoration: none; border-color: var(--axis); }
.tile-label { color: var(--ink-2); font-size: 13px; }
.tile-value { font-size: 30px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tile-sub { color: var(--muted); font-size: 12px; }
.ptiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 6px; }
.ptile { background: var(--surface-2); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ptile .tile-value { font-size: 26px; }
.seg-link { font-size: 13px; color: var(--ink-2); padding: 5px 10px; border-radius: 6px; }
.seg-link:hover { text-decoration: none; color: var(--ink); }
.seg-link.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--shadow); }
.sub-h { font-size: 14px; font-weight: 600; margin: 18px 0 6px; }
@media (max-width: 900px) { .ptiles { grid-template-columns: repeat(2, 1fr); } }
.tile-alert .tile-sub { color: var(--critical); }

/* forms */
label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--ink-2); font-weight: 500; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--axis);
  border-radius: 7px; padding: 8px 10px; width: 100%; }
textarea { resize: vertical; font-family: inherit; }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 35%, transparent); border-color: var(--accent); }
input[type=file] { padding: 6px; }
.check { flex-direction: row; align-items: center; gap: 7px; font-weight: 400; color: var(--ink); }
.check input { width: auto; }
.inline-check { display: inline-flex; }
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 550;
  padding: 8px 14px; border-radius: 7px; border: 1px solid var(--axis); background: var(--surface); color: var(--ink); cursor: pointer; }
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-danger:hover { color: var(--critical); }
.btn-sm { padding: 4px 9px; font-size: 12.5px; }
.btn-block { width: 100%; margin-top: 8px; }
.btn[disabled] { opacity: .6; cursor: wait; }
form.inline { display: inline; }
.chip { font: inherit; font-size: 12px; padding: 3px 9px; border-radius: 99px; border: 1px solid var(--axis); background: transparent; color: var(--ink-2); cursor: pointer; }
.chip:hover { color: var(--ink); background: var(--surface-2); }
.quick-times { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }

.flash { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); padding: 10px 14px; border-radius: 7px; margin-bottom: 16px; }
.alert { background: color-mix(in srgb, var(--critical) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--critical) 35%, transparent);
  color: var(--ink); padding: 10px 14px; border-radius: 7px; margin-bottom: 14px; }

/* table */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 6px 8px; border-bottom: 1px solid var(--axis); }
.table td { padding: 9px 8px; border-bottom: 1px solid var(--grid); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .actions { white-space: nowrap; text-align: right; }
.table-wrap { max-height: 320px; overflow: auto; margin-top: 10px; }

.badge { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 1px 8px; border-radius: 99px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.badge-scheduled { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.badge-sent { background: color-mix(in srgb, var(--good) 14%, transparent); color: var(--good); }
.badge-failed { background: color-mix(in srgb, var(--critical) 14%, transparent); color: var(--critical); }
.badge-sending { background: color-mix(in srgb, var(--warning) 25%, transparent); color: var(--ink); }
.dot { flex: none; display: inline-block; width: 8px; height: 8px; border-radius: 50%; vertical-align: middle; margin-right: 2px; }

/* lists */
.list { list-style: none; margin: 0; padding: 0; }
.list li { border-bottom: 1px solid var(--grid); }
.list li:last-child { border-bottom: 0; }
.list-main { display: grid; grid-template-columns: 90px 1fr; gap: 0 10px; padding: 9px 0; color: var(--ink); }
.list-main:hover { text-decoration: none; background: var(--surface-2); }
.list-main .clamp { grid-column: 2; }
.list-time { font-variant-numeric: tabular-nums; font-weight: 600; grid-row: span 2; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.log { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.log li { padding: 5px 0; border-bottom: 1px solid var(--grid); }
.log li:last-child { border-bottom: 0; }
.log-error { color: var(--critical); }
.log-error .muted { color: var(--muted); }

/* filters */
.filters { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.filters select { width: auto; }
.segmented { display: inline-flex; background: var(--surface-2); border-radius: 8px; padding: 3px; }
.segmented a { padding: 5px 12px; border-radius: 6px; color: var(--ink-2); font-size: 13px; }
.segmented a:hover { text-decoration: none; color: var(--ink); }
.segmented a.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--shadow); }

/* posts */
.posts .post { display: grid; grid-template-columns: 72px 1fr; gap: 14px; padding: 14px; margin-bottom: 10px; }
.post-thumb { width: 72px; height: 72px; border-radius: 8px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-empty { color: var(--muted); font-weight: 600; }
.post-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12.5px; margin-bottom: 4px; }
.post-body { min-width: 0; }
.post-text { color: var(--ink); display: block; white-space: pre-line; overflow-wrap: anywhere; }
.post-text:hover { text-decoration: none; color: var(--accent); }
.post-error { color: var(--critical); font-size: 12.5px; margin-top: 4px; }
.post-actions { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 8px; margin-left: -8px; }

/* editor */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.editor .card > label, .editor .card > .grid-2, .editor .card > .row, .editor .card > details { margin-bottom: 14px; }
.editor-side { position: sticky; top: 16px; }
.toolbar { display: flex; gap: 2px; align-items: center; border: 1px solid var(--axis); border-bottom: 0; border-radius: 7px 7px 0 0; padding: 4px; background: var(--surface-2); }
.toolbar button { font: inherit; border: 0; background: transparent; color: var(--ink); width: 30px; height: 26px; border-radius: 5px; cursor: pointer; }
.toolbar button:hover { background: var(--surface); }
.toolbar + textarea { border-radius: 0 0 7px 7px; min-height: 240px; }
.counter { margin-left: auto; font-size: 12px; color: var(--muted); padding-right: 6px; font-variant-numeric: tabular-nums; }
.counter.over { color: var(--critical); font-weight: 600; }
.ai-box { border: 1px dashed var(--axis); border-radius: 8px; padding: 10px 12px; }
.ai-box summary { cursor: pointer; font-weight: 600; }
.ai-box textarea { margin: 10px 0 8px; }
.tg-preview { background: var(--tg-bg); border-radius: 8px; padding: 14px; margin-top: 8px; }
.tg-bubble { background: var(--tg-bubble); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.tg-bubble img { display: block; width: 100%; max-height: 260px; object-fit: cover; }
.tg-text { padding: 8px 11px 10px; white-space: pre-wrap; word-wrap: break-word; font-size: 14px; color: var(--ink); }
.tg-text:empty::before { content: "Текст поста появится здесь"; color: var(--muted); }
.tg-text a { color: var(--tg-link); }
.tg-text blockquote { margin: 4px 0; padding: 2px 8px; border-left: 3px solid var(--tg-link); background: color-mix(in srgb, var(--tg-link) 10%, transparent); border-radius: 4px; }
.tg-text tg-spoiler { background: var(--muted); color: transparent; border-radius: 3px; }
.tg-btn { margin: 0 6px 6px; padding: 8px; text-align: center; border-radius: 8px; background: color-mix(in srgb, var(--tg-link) 12%, transparent); color: var(--tg-link); font-weight: 600; font-size: 13px; }

/* calendar */
.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); padding: 0; overflow: hidden; }
.cal-head { padding: 8px 10px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--axis); }
.cal-cell { min-height: 118px; padding: 6px; border-right: 1px solid var(--grid); border-bottom: 1px solid var(--grid); display: flex; flex-direction: column; gap: 3px; }
.cal-cell:nth-child(7n) { border-right: 0; }
.cal-empty { background: var(--surface-2); }
.cal-day { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.cal-today .cal-day span { background: var(--accent); color: #fff; border-radius: 99px; padding: 0 7px; }
.cal-add { opacity: 0; color: var(--muted); padding: 0 5px; }
.cal-cell:hover .cal-add { opacity: 1; }
.cal-post { display: flex; gap: 4px; align-items: center; font-size: 12px; color: var(--ink); background: var(--surface-2); border-radius: 5px; padding: 2px 5px; min-width: 0; }
.cal-post:hover { text-decoration: none; outline: 1px solid var(--axis); }
.cal-time { font-variant-numeric: tabular-nums; color: var(--ink-2); flex: none; }
.cal-draft { opacity: .55; }
.cal-failed { color: var(--critical); }

/* chart */
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 2px 0 10px; font-size: 13px; color: var(--ink-2); }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.legend-item b { color: var(--ink); font-variant-numeric: tabular-nums; }
.swatch { width: 10px; height: 10px; border-radius: 3px; }
.chart { position: relative; width: 100%; height: 240px; }
.chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart text { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .gridline { stroke: var(--grid); stroke-width: 1; }
.chart .baseline { stroke: var(--axis); stroke-width: 1; }
.chart .crosshair { stroke: var(--axis); stroke-width: 1; }
.tooltip { position: absolute; pointer-events: none; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 4px 14px rgba(0,0,0,.12);
  border-radius: 8px; padding: 8px 10px; font-size: 12px; min-width: 150px; z-index: 5; }
.tooltip .t-date { color: var(--ink-2); margin-bottom: 4px; }
.tooltip .t-row { display: flex; align-items: center; gap: 6px; }
.tooltip .t-row b { margin-left: auto; padding-left: 12px; font-variant-numeric: tabular-nums; }

/* login */
.login-body { display: grid; place-items: center; min-height: 100vh; }
.login-card { width: 340px; display: flex; flex-direction: column; gap: 12px; padding: 28px; }
.login-card p { margin: -6px 0 6px; }

@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .sidebar nav { flex-direction: row; flex-wrap: wrap; }
  .sidebar .btn-block { width: auto; margin: 0; }
  .sidebar-foot { margin: 0; gap: 12px; }
  .content { padding: 16px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-wide-left, .editor { grid-template-columns: 1fr; }
  .editor-side { position: static; }
  .cal-cell { min-height: 80px; }
  .table .actions { white-space: normal; }
}

/* аккаунты */
.who { display: flex; gap: 8px; align-items: center; color: var(--ink); font-size: 13px; line-height: 1.25; min-width: 0; }
.who:hover { text-decoration: none; }
.avatar { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700;
  background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.sidebar-foot { align-items: center; gap: 8px; }
.tag { display: inline-block; font-size: 11.5px; padding: 1px 7px; margin: 0 4px 4px 0; border-radius: 5px; background: var(--surface-2); color: var(--ink-2); }
fieldset { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px 12px; margin: 0; display: flex; flex-direction: column; gap: 8px; }
fieldset.bare { border: 0; padding: 0; display: contents; }
legend { font-size: 13px; font-weight: 600; color: var(--ink); padding: 0 4px; }
.perm { align-items: flex-start; }
.perm input { margin-top: 3px; }
.presets { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 4px; }
.channel-picks { display: flex; flex-direction: column; gap: 6px; padding-left: 22px; }
.channel-picks.disabled { opacity: .45; pointer-events: none; }
.row.nowrap { flex-wrap: nowrap; }
.row-off td { opacity: .6; }
.plain { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 4px; }
.h3 { font-size: 13px; margin: 14px 0 6px; color: var(--ink-2); }
.editor.readonly textarea, .editor.readonly input, .editor.readonly select { background: var(--surface-2); }

/* трафик */
.table-scroll { overflow-x: auto; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; }
.link-box { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px; border-radius: 8px;
  background: var(--surface-2); margin-bottom: 4px; }
.link-big { font-size: 15px; background: transparent; padding: 0; flex: 1; min-width: 0; overflow-wrap: anywhere; color: var(--ink); }
.video-cell { display: flex; gap: 10px; align-items: flex-start; min-width: 260px; max-width: 460px; }
.video-thumb { flex: none; width: 40px; height: 56px; border-radius: 5px; overflow: hidden; background: var(--surface-2); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.inline-edit { display: inline-block; position: relative; text-align: left; }
.inline-edit summary { list-style: none; }
.inline-edit summary::-webkit-details-marker { display: none; }
.inline-edit[open] .mini-form { position: absolute; right: 0; top: 30px; z-index: 10; width: 240px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.12); padding: 12px;
  display: flex; flex-direction: column; gap: 8px; white-space: normal; }
.add-videos { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--grid); }
tfoot td { border-top: 1px solid var(--axis); border-bottom: 0; }
.connect-box { margin-top: 14px; padding: 14px; border: 1px dashed var(--axis); border-radius: 8px; }
.connect-box .steps { margin: 6px 0 12px; padding-left: 20px; color: var(--ink-2); }

/* RSS-ленты */
.grid-3 { display: grid; grid-template-columns: 2fr 1.3fr 1fr; gap: 12px; }
.step { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--grid); }
.step:last-of-type { border-bottom: 0; }
.step-n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.step-body { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.step-body .presets { margin: 0; }
.mode-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode-card { flex-direction: row; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--axis);
  border-radius: 8px; cursor: pointer; font-weight: 400; color: var(--ink); }
.mode-card input { width: auto; margin-top: 3px; }
.mode-card:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.mode-card:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.preview { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; background: var(--surface-2); }
.preview-head { margin-bottom: 4px; }
.ok-mark { color: var(--good); font-weight: 700; }
.preview-list { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.preview-list li { display: flex; gap: 6px; align-items: baseline; min-width: 0; }
.preview-list li a { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.preview-list li.skip { opacity: .45; }
.pv-mark { flex: none; width: 14px; color: var(--good); font-weight: 700; }
.preview-list li.skip .pv-mark { color: var(--muted); }
.feeds { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 16px; }
.feed { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.feed-top { display: flex; gap: 10px; align-items: flex-start; }
.feed-name { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.status-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; background: var(--muted); }
.feed-ok .status-dot { background: var(--good); }
.feed-error .status-dot, .feed-error-dot { background: var(--critical); }
.feed.feed-error .status-dot { background: var(--critical); }
.feed-off { opacity: .65; }
.feed-error:not(.feed) { color: var(--critical); font-size: 13px; background: color-mix(in srgb, var(--critical) 8%, transparent);
  padding: 6px 10px; border-radius: 6px; }
.feed-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.feed-tags .tag { margin: 0; }
.feed-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); color: var(--ink); }
.stat:hover { text-decoration: none; outline: 1px solid var(--axis); }
.stat b { font-size: 18px; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--ink-2); }
.stat-hot { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.stat-hot b { color: var(--accent); }
.feed-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.feed-actions { display: flex; flex-wrap: wrap; margin-right: -8px; }
@media (max-width: 960px) { .grid-3, .mode-pick { grid-template-columns: 1fr; } .feeds { grid-template-columns: 1fr; } }

/* обложки */
.cover-layout { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 16px; align-items: start; }
.cover-controls { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.cover-preview { position: sticky; top: 16px; }
.canvas-wrap { position: relative; background: var(--surface-2); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; }
.canvas-wrap canvas { display: block; width: 100%; height: auto; }
.canvas-hint { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 14px; pointer-events: none; }
.cover-actions { margin-top: 12px; }
.skin-search { position: relative; }
.skin-results { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); max-height: 360px; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.skin-results .pad { padding: 10px 12px; }
.skin-row { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; font: inherit; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--grid); padding: 6px 10px; cursor: pointer; }
.skin-row:hover { background: var(--surface-2); }
.skin-row img { width: 64px; height: 48px; object-fit: contain; flex: none; }
.picked { font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; margin-top: -4px; }
.grid-price { display: grid; grid-template-columns: 1fr 1fr 90px; gap: 10px; }
.seg-pick { display: inline-flex; background: var(--surface-2); border-radius: 8px; padding: 3px; gap: 2px; }
.seg-pick button { font: inherit; font-size: 13px; border: 0; background: transparent; color: var(--ink-2); padding: 5px 10px; border-radius: 6px; cursor: pointer; }
.seg-pick button.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--shadow); }
@media (max-width: 960px) { .cover-layout { grid-template-columns: 1fr; } .cover-preview { position: static; } }
.money { display: flex; align-items: stretch; }
.money .cur-sym { display: grid; place-items: center; min-width: 34px; padding: 0 8px; border: 1px solid var(--axis); border-right: 0;
  border-radius: 7px 0 0 7px; background: var(--surface-2); color: var(--ink-2); font-weight: 600; }
.money input { border-radius: 0 7px 7px 0; min-width: 0; }
.album-box { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 8px; }
.album-thumbs { display: flex; gap: 6px; flex-wrap: wrap; }
.album-thumbs img { width: 96px; height: 54px; object-fit: cover; border-radius: 5px; border: 1px solid var(--border); }
.pv-media { position: relative; }
.pv-album { position: absolute; right: 8px; top: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 10px; }
.post-thumb { position: relative; }
.thumb-count { position: absolute; right: 4px; bottom: 4px; background: rgba(0,0,0,.65); color: #fff; font-size: 11px; font-weight: 700; padding: 0 6px; border-radius: 8px; }
.cover-side { display: flex; flex-direction: column; gap: 16px; }
.skin-list { display: flex; flex-direction: column; gap: 6px; }
.skin-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; }
.skin-item:hover { background: var(--surface-2); }
.skin-item.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.skin-item img, .si-empty { width: 52px; height: 38px; object-fit: contain; flex: none; }
.si-empty { display: grid; place-items: center; border-radius: 6px; background: var(--surface-2); color: var(--muted); font-weight: 700; }
.si-num { width: 18px; text-align: center; font-size: 12px; color: var(--muted); font-weight: 700; flex: none; }
.si-text { flex: 1; min-width: 0; font-size: 13px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.si-actions { display: flex; flex: none; }
.si-actions button { font: inherit; border: 0; background: transparent; color: var(--ink-2); width: 24px; height: 24px; border-radius: 5px; cursor: pointer; }
.si-actions button:hover:not(:disabled) { background: var(--surface-2); color: var(--ink); }
.si-actions button:disabled { opacity: .3; cursor: default; }
.item-editor { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--grid); padding-top: 12px; }
.editor-title { font-weight: 600; font-size: 13px; color: var(--ink-2); }
.grid-float { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; }
.seg-pick.wide { display: flex; }
.seg-pick.wide button { flex: 1; }
.cover-strip { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.cover-strip canvas { width: 150px; height: auto; border-radius: 6px; border: 2px solid transparent; cursor: pointer; flex: none; }
.cover-strip canvas.on { border-color: var(--accent); }
.cover-layout { grid-template-columns: 420px minmax(0, 1fr); }
