/* Publicador CSJ — estilo minimalista, claro/oscuro/automático */
:root {
  --bg: #f4f5f8; --card: #ffffff; --card2: #f7f8fa; --text: #000000; --line: #e3e6eb; --line2: #d3d8e0;
  --accent: #1f5eff; --accent-soft: #e8efff; --accent-text: #ffffff;
  --ok: #138a43; --ok-soft: #e3f6ea; --err: #d11a2a; --err-soft: #fde7e9; --warn: #b45309; --warn-soft: #fff3e0;
  --sched: #5b3df5; --sched-soft: #eeeaff; --run: #c77700; --run-soft: #fff4dc; --draft: #6b7280; --draft-soft: #eef0f3;
  --shadow: 0 1px 2px rgba(16,24,40,.04), 0 4px 16px rgba(16,24,40,.06);
  --radius: 16px; --radius-sm: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] { --bg:#0b0c0f; --card:#15171c; --card2:#1b1e24; --text:#ffffff; --line:#262a32; --line2:#333844; --accent:#4d7dff; --accent-soft:#1a2547;
    --ok:#3ddc84; --ok-soft:#10301f; --err:#ff5a67; --err-soft:#3a1418; --warn:#ffb547; --warn-soft:#33240c; --sched:#9d8cff; --sched-soft:#241d4a; --run:#ffb547; --run-soft:#33260c; --draft:#a7adb8; --draft-soft:#23262d;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25); color-scheme: dark; }
}
:root[data-theme="dark"] { --bg:#0b0c0f; --card:#15171c; --card2:#1b1e24; --text:#ffffff; --line:#262a32; --line2:#333844; --accent:#4d7dff; --accent-soft:#1a2547;
  --ok:#3ddc84; --ok-soft:#10301f; --err:#ff5a67; --err-soft:#3a1418; --warn:#ffb547; --warn-soft:#33240c; --sched:#9d8cff; --sched-soft:#241d4a; --run:#ffb547; --run-soft:#33260c; --draft:#a7adb8; --draft-soft:#23262d;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25); color-scheme: dark; }

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 14px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { margin: 0 0 10px; letter-spacing: -.01em; }
h2 { font-size: 18px; } h3 { font-size: 15px; display: flex; align-items: center; gap: 6px; }
small { font-weight: 400; }
code { font: 12.5px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--card2); border: 1px solid var(--line); padding: 2px 6px; border-radius: 6px; word-break: break-all; }
.ic { flex: none; vertical-align: middle; }
[hidden] { display: none !important; }

/* Shell */
.shell { display: flex; min-height: 100vh; }
.side { width: 232px; flex: none; background: var(--card); border-right: 1px solid var(--line); padding: 18px 14px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 2px 6px; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; letter-spacing: .02em; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand-txt b { font-size: 15px; } .brand-txt small { font-size: 11.5px; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; text-decoration: none; font-weight: 500; }
.side nav a:hover { background: var(--card2); }
.side nav a.on { background: var(--accent-soft); color: var(--accent); font-weight: 650; }
.badge-err { margin-left: auto; font-style: normal; background: var(--err); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; }
.side-new { justify-content: center; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 4px; }
.theme-btn, .logout { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: none; border: 0; color: var(--text); font-family: inherit; font-size: inherit; cursor: pointer; text-decoration: none; }
.theme-btn:hover, .logout:hover { background: var(--card2); }
.theme-btn .th-light, .theme-btn .th-dark { display: none; }
:root[data-theme="light"] .theme-btn .th-auto, :root[data-theme="dark"] .theme-btn .th-auto { display: none; }
:root[data-theme="light"] .theme-btn .th-light { display: inline; }
:root[data-theme="dark"] .theme-btn .th-dark { display: inline; }
.main { flex: 1; min-width: 0; padding: 22px 28px 90px; }

/* Buttons & inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 14px; border-radius: 11px; border: 1px solid var(--line2); background: var(--card); color: var(--text); font-family: inherit; font-weight: 600; font-size: 13.5px; line-height: 1; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, transform .05s; }
.btn:hover { background: var(--card2); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--accent); filter: brightness(1.08); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--card2); }
.btn-sm { padding: 6px 10px; font-size: 12.5px; border-radius: 9px; }
.btn-block { width: 100%; }
.btn.danger, .danger { color: var(--err); }
.btn.is-on { color: var(--ok); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line2); background: var(--card); cursor: pointer; text-decoration: none; color: var(--text); }
.icon-btn:hover { background: var(--card2); }
.icon-btn.sm { width: 28px; height: 28px; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 13px; margin-bottom: 12px; }
label small { font-weight: 400; }
input[type=text], input[type=password], input[type=url], input[type=number], input[type=date], input[type=time], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line2); border-radius: 11px; background: var(--card); color: var(--text); font-family: inherit; font-size: 14px; line-height: 1.4; outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type=color] { width: 100%; height: 42px; padding: 3px; border: 1px solid var(--line2); border-radius: 11px; background: var(--card); }
textarea { resize: vertical; min-height: 80px; }
label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
label.check input { width: 16px; height: 16px; accent-color: var(--accent); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }

.switch { flex-direction: row; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; margin: 0; }
.switch input { display: none; }
.switch span { width: 36px; height: 21px; border-radius: 99px; background: var(--line2); position: relative; transition: background .2s; flex: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(15px); }

/* Cards & layout */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin-bottom: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-head h3 { margin: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; align-items: end; }
.grid2.top { align-items: start; }
.span2 { grid-column: span 2; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.tb-left, .tb-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tb-title { font-size: 22px; margin: 0 6px; }
.seg { display: inline-flex; background: var(--card2); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 2px; }
.seg a, .seg button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 9px; text-decoration: none; font-family: inherit; font-weight: 600; font-size: 13px; border: 0; background: none; color: var(--text); cursor: pointer; }
.seg .on { background: var(--card); box-shadow: var(--shadow); }
.seg-full { display: flex; } .seg-full button { flex: 1; justify-content: center; }
.inline-filter select { padding: 8px 10px; min-width: 190px; }
.lead { margin: -4px 0 16px; font-size: 15px; }
.hint { font-size: 13px; margin: 4px 0 12px; }
.hint.pad { padding: 0 14px 14px; }
.note { display: flex; gap: 8px; align-items: center; background: var(--warn-soft); color: var(--text); border-radius: 12px; padding: 10px 12px; margin: 0 0 14px; }
.err-text { color: var(--err); font-weight: 600; }
.warn-text { color: var(--warn); font-weight: 600; display: flex; gap: 6px; align-items: center; }
.muted-cell { text-align: center; padding: 28px !important; font-weight: 500; }
.actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; align-items: center; }
.sticky-actions { position: sticky; bottom: 12px; background: var(--card); padding: 10px; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); z-index: 5; margin-top: 4px; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.copyline { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.blur { filter: blur(5px); cursor: pointer; }
.empty { text-align: center; padding: 40px 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; }

/* Flash */
.flash { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; margin-bottom: 12px; font-weight: 600; }
.flash-ok { background: var(--ok-soft); color: var(--ok); }
.flash-err { background: var(--err-soft); color: var(--err); }
.flash span { flex: 1; color: var(--text); font-weight: 550; }
.flash-x { background: none; border: 0; cursor: pointer; color: inherit; }

/* Status */
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.st-ok { background: var(--ok); } .pill.st-ok { background: var(--ok-soft); color: var(--ok); }
.st-err { background: var(--err); } .pill.st-err { background: var(--err-soft); color: var(--err); }
.st-sched { background: var(--sched); } .pill.st-sched { background: var(--sched-soft); color: var(--sched); }
.st-run { background: var(--run); } .pill.st-run { background: var(--run-soft); color: var(--run); }
.st-part { background: var(--warn); } .pill.st-part { background: var(--warn-soft); color: var(--warn); }
.st-draft { background: var(--draft); } .pill.st-draft { background: var(--draft-soft); color: var(--text); }
.stats { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.stat { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 13px; text-decoration: none; }
.stat-err { color: var(--err); }
.stat-cron { margin-left: auto; }
.stat-cron.warn { color: var(--warn); }

/* Month calendar */
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.dow { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; padding: 0 4px; }
.cell { background: var(--card); border: 1px solid var(--line); border-radius: 14px; min-height: 132px; padding: 8px; display: flex; flex-direction: column; gap: 5px; box-shadow: var(--shadow); }
.cell.out { background: transparent; box-shadow: none; opacity: .55; }
.cell.today { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.cell-head { display: flex; align-items: center; justify-content: space-between; }
.daynum { font-weight: 700; font-size: 13px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; }
.today .daynum { background: var(--accent); color: #fff; }
.cell-add { opacity: 0; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; color: var(--text); text-decoration: none; transition: opacity .15s; }
.cell:hover .cell-add, .wcol:hover .cell-add { opacity: 1; }
.cell-add:hover { background: var(--card2); }
.more { font-size: 12px; font-weight: 700; text-decoration: none; padding: 2px 4px; margin-top: auto; }
.more:hover { color: var(--accent); }
.chip { display: flex; align-items: center; gap: 7px; padding: 5px 7px 5px 5px; border: 1px solid var(--line); border-left: 3px solid var(--cc); border-radius: 10px; background: var(--card); text-decoration: none; position: relative; min-width: 0; }
.chip:hover { border-color: var(--line2); background: var(--card2); }
.chip-thumb { width: 30px; height: 30px; border-radius: 7px; overflow: hidden; background: var(--card2); flex: none; display: grid; place-items: center; }
.chip-thumb img { width: 100%; height: 100%; object-fit: cover; }
.chip-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.chip-title { font-size: 12px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip-meta { font-size: 11px; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.chip-nets { display: inline-flex; gap: 3px; margin-left: auto; }
.chip-client { font-size: 11px; font-weight: 500; }
.chip .dot { position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; }
.chip.is-publicado { opacity: .72; }
.chip.is-error, .chip.is-parcial { border-color: var(--err); }
.chip.is-borrador { border-style: dashed; border-left-style: solid; }
.chip-big { padding: 7px; }
.chip-big .chip-thumb { width: 52px; height: 52px; }
.chip-big .chip-title { white-space: normal; }

/* Week */
.weekgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.wcol { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 8px; min-height: 60vh; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); }
.wcol.today { border-color: var(--accent); }
.wcol-head { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 2px 2px 6px; border-bottom: 1px solid var(--line); margin-bottom: 2px; }
.wcol-head b { font-size: 18px; } .wcol-head .cell-add { margin-left: auto; }

/* Table */
.table-wrap { padding: 0; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; padding: 11px 12px; border-bottom: 1px solid var(--line); font-weight: 700; }
.table td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table.compact td { padding: 7px 10px; }
.table tr.protected td { background: var(--card2); }
.table .sub { display: block; font-size: 11.5px; }
.nowrap { white-space: nowrap; }
.nets { display: flex; gap: 6px; }
.strong-link { font-weight: 650; text-decoration: none; }
.strong-link:hover { color: var(--accent); }
.tthumb { width: 40px; height: 40px; border-radius: 8px; overflow: hidden; background: var(--card2); display: grid; place-items: center; }
.tthumb img { width: 100%; height: 100%; object-fit: cover; }
.cdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--cc); margin-right: 7px; }
.story-btn { width: 26px; height: 26px; border-radius: 8px; border: 1.5px solid var(--line2); background: var(--card); color: transparent; cursor: pointer; display: grid; place-items: center; }
.story-btn.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.table-bar { display: flex; align-items: center; gap: 12px; padding: 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.table-bar .check { margin: 0; }
.table-bar .sep { flex: 1; }
.filters { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.filters label { margin: 0; min-width: 150px; }
.filters .quick { width: 100%; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-weight: 600; font-size: 13px; }

/* Editor */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; }
.ed-preview { position: sticky; top: 16px; }
.drop { border: 2px dashed var(--line2); border-radius: 14px; min-height: 180px; display: grid; place-items: center; cursor: pointer; position: relative; overflow: hidden; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 24px; text-align: center; }
.drop-empty span { font-size: 12.5px; }
.drop-preview { width: 100%; display: flex; justify-content: center; }
.drop-preview img, .drop-preview video { max-width: 100%; max-height: 420px; display: block; border-radius: 10px; }
.progress { position: absolute; left: 16px; right: 16px; bottom: 14px; height: 26px; background: var(--card); border-radius: 99px; border: 1px solid var(--line); overflow: hidden; }
.progress .bar { height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.progress .pct { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.media-info { font-size: 12.5px; margin: 8px 0; font-weight: 500; }
.cap-wrap { position: relative; }
.counter { font-size: 12px; text-align: right; margin: -6px 0 8px; font-weight: 500; }
.counter .over { color: var(--err); font-weight: 700; }
.cap-net { margin-top: 6px; }
.cap-net > .ic { display: inline; }
.nets-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.net-opt { margin: 0; cursor: pointer; }
.net-opt input { display: none; }
.net-opt > span { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px; border: 1.5px solid var(--line2); border-radius: 13px; transition: border-color .15s, background .15s; }
.net-opt input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.net-opt.disabled { opacity: .5; cursor: not-allowed; }
.net-state { font-size: 11.5px; font-weight: 500; }
.quick-times { display: flex; gap: 6px; flex-wrap: wrap; }
.results { display: flex; flex-direction: column; gap: 8px; }
.result { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.result-net { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; min-width: 120px; }
.result-time { font-size: 12.5px; font-weight: 500; }
.result-err { color: var(--err); font-size: 12.5px; font-weight: 600; flex-basis: 100%; padding-left: 130px; }

/* Preview */
.pv { background: var(--card); border: 1px solid var(--line); border-radius: 16px; margin-top: 12px; overflow: hidden; box-shadow: var(--shadow); }
.pv-head { display: flex; align-items: center; gap: 10px; padding: 12px; }
.pv-head small { display: block; font-size: 11.5px; }
.pv-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--cc, var(--accent)) center/cover; flex: none; display: grid; place-items: center; color: #fff; font-weight: 700; }
.pv-text { padding: 0 12px 10px; white-space: pre-wrap; word-wrap: break-word; font-size: 13.5px; max-height: 210px; overflow: auto; }
.pv-ig .pv-text { padding-top: 0; }
.pv-media { background: var(--card2); min-height: 200px; display: grid; place-items: center; }
.pv-media img, .pv-media video { width: 100%; display: block; }
.pv-media.sq { aspect-ratio: 4/5; overflow: hidden; } .pv-media.sq img, .pv-media.sq video { height: 100%; object-fit: cover; }
.pv-media.tall { aspect-ratio: 9/16; overflow: hidden; background: #000; } .pv-media.tall img, .pv-media.tall video { height: 100%; object-fit: cover; }
.pv-actions { display: flex; gap: 16px; padding: 10px 12px; font-size: 13px; font-weight: 600; }
.pv-actions span { display: inline-flex; gap: 6px; align-items: center; }
.pv-fb .pv-actions { justify-content: space-around; border-top: 1px solid var(--line); }
.pv-right { margin-left: auto; }
.pv-tt { position: relative; background: #000; }
.pv-tt-over { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 16px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.75)); font-size: 13px; white-space: pre-wrap; max-height: 60%; overflow: hidden; }
.pv-note { font-size: 12.5px; font-weight: 500; }

/* Library dialog */
.library { width: min(760px, 94vw); border: 1px solid var(--line); border-radius: 18px; background: var(--card); color: var(--text); padding: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.library::backdrop { background: rgba(10,12,16,.45); }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; max-height: 60vh; overflow: auto; }
.lib-item { border: 1.5px solid var(--line); background: var(--card2); border-radius: 12px; padding: 6px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; color: var(--text); }
.lib-item:hover { border-color: var(--accent); }
.lib-item img, .lib-vid { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: grid; place-items: center; background: var(--card); }
.lib-item small { font-size: 11px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Bulk */
.bulk-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.bulk-list li { border: 1px solid var(--line); border-radius: 12px; padding: 6px; background: var(--card2); position: relative; }
.bulk-list .b-thumb { aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--card); display: grid; place-items: center; }
.bulk-list img { width: 100%; height: 100%; object-fit: cover; }
.bulk-list .b-name { font-size: 11.5px; font-weight: 600; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bulk-list .b-state { font-size: 11px; font-weight: 600; }
.bulk-list .b-state.ok { color: var(--ok); } .bulk-list .b-state.err { color: var(--err); }
.bulk-list .b-num { position: absolute; top: 10px; left: 10px; background: var(--accent); color: #fff; font-weight: 800; font-size: 12px; border-radius: 8px; padding: 2px 7px; }
.bulk-list .b-bar { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; margin-top: 4px; }
.bulk-list .b-bar i { display: block; height: 100%; width: 0; background: var(--accent); }

/* Clients */
.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.client-card { border-top: 4px solid var(--cc); margin: 0; display: flex; flex-direction: column; gap: 12px; }
.client-card.inactive { opacity: .55; }
.cc-head { display: flex; align-items: center; gap: 12px; }
.cc-head small { display: block; font-size: 12px; }
.cc-avatar { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex: none; }
.cc-initial { background: var(--cc); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.cc-nets { display: flex; gap: 8px; }
.cc-nets span { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; border: 1.5px dashed var(--line2); opacity: .5; }
.cc-nets span.on { border: 1.5px solid var(--ok); color: var(--ok); opacity: 1; background: var(--ok-soft); }
.cc-stats { display: flex; gap: 12px; font-size: 13px; flex-wrap: wrap; }
.cc-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.client-form h3 { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.danger-zone { margin: -6px 0 16px; text-align: right; }

/* Connections */
.step { display: flex; gap: 16px; }
.step-n { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; display: grid; place-items: center; flex: none; }
.step-body { flex: 1; min-width: 0; }
.alt { margin: 6px 0 12px; }
.alt summary { cursor: pointer; font-weight: 600; font-size: 13px; margin-bottom: 8px; }
.inline-form { display: flex; gap: 8px; }
.pg { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.pg img { width: 26px; height: 26px; border-radius: 50%; }
.welcome { border-left: 4px solid var(--accent); }

/* Report */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 6px; }
.kpi { margin-bottom: 10px; padding: 14px; }
.kpi small { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; }
.kpi b { font-size: 26px; letter-spacing: -.02em; }

/* Logs */
.logs { max-height: 420px; overflow: auto; font-size: 13px; }
.log { display: flex; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.log time { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.log-err span { color: var(--err); font-weight: 600; }

/* Auth */
.auth { display: grid; place-items: center; min-height: 100vh; padding: 20px; }
.auth-card { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 6px; padding: 26px; }
.auth-card.wide { max-width: 460px; }
.auth-card .brand { margin-bottom: 14px; }
.checks { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.checks .ok { color: var(--ok); } .checks .bad { color: var(--err); }

/* Responsive */
@media (max-width: 1180px) { .editor { grid-template-columns: 1fr; } .ed-preview { position: static; max-width: 420px; } }
@media (max-width: 900px) {
  .shell { flex-direction: column; }
  .side { width: 100%; height: auto; position: sticky; top: 0; z-index: 20; flex-direction: row; align-items: center; padding: 8px 10px; overflow-x: auto; gap: 6px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand-txt, .side-new span, .side nav a span, .side-foot span { display: none; }
  .side nav { flex-direction: row; }
  .side-foot { flex-direction: row; margin: 0 0 0 auto; }
  .side-new { padding: 8px; }
  .main { padding: 14px 12px 90px; }
  .month { gap: 4px; } .cell { min-height: 92px; padding: 5px; border-radius: 10px; }
  .chip-thumb { display: none; } .chip-meta { display: none; } .chip { padding: 3px 5px; }
  .dow { font-size: 10px; }
  .weekgrid { grid-template-columns: 1fr; } .wcol { min-height: auto; }
  .grid2, .grid3 { grid-template-columns: 1fr; } .span2 { grid-column: auto; }
  .nets-pick { grid-template-columns: 1fr 1fr 1fr; }
  .stat-cron { margin-left: 0; }
  .result-err { padding-left: 0; }
}
