:root {
  --bg: #f4f3ef;
  --surface: #ffffff;
  --surface-2: #faf9f6;
  --ink: #1d1d1b;
  --ink-2: #474641;
  --muted: #7a7973;
  --line: #e5e3dc;
  --line-2: #d6d3ca;
  --accent: #0f7b4f;
  --accent-ink: #ffffff;
  --accent-soft: #e2f0e8;
  --accent-text: #0b6340;
  --danger: #b93a26;
  --danger-soft: #f8e6e1;
  --warn: #9a6512;
  --warn-soft: #f6ecd8;
  --info: #2c5fa8;
  --info-soft: #e3ebf7;
  --chat-bg: #efeae2;
  --bubble: #d9fdd3;
  --bubble-ink: #111b21;
  --shadow: 0 1px 2px rgba(29, 29, 27, .05), 0 4px 16px rgba(29, 29, 27, .05);
  --radius: 12px;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141513;
    --surface: #1c1d1b;
    --surface-2: #212220;
    --ink: #ecebe6;
    --ink-2: #c9c8c2;
    --muted: #8f8e88;
    --line: #2d2e2b;
    --line-2: #3a3b37;
    --accent: #2fa572;
    --accent-ink: #0c1a13;
    --accent-soft: #17311f;
    --accent-text: #6fd3a3;
    --danger: #e0715d;
    --danger-soft: #3a1f1a;
    --warn: #e0b060;
    --warn-soft: #362a15;
    --info: #86aee8;
    --info-soft: #1b2638;
    --chat-bg: #0b141a;
    --bubble: #005c4b;
    --bubble-ink: #e9edef;
    --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(--ink);
  font: 14px/1.5 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
svg.i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.hidden { display: none !important; }

/* ---------- shell */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 4px;
  padding: 20px 14px; border-right: 1px solid var(--line); background: var(--surface-2);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; font-weight: 700; letter-spacing: -.01em; }
.brand img { width: 28px; height: 28px; }
.brand small { display: block; font-weight: 500; color: var(--muted); font-size: 11.5px; }
.nav a {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px;
  color: var(--ink-2); font-weight: 500;
}
.nav a:hover { background: var(--line); color: var(--ink); }
.nav a.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.nav a .count { margin-left: auto; font-size: 11.5px; color: var(--muted); font-family: var(--mono); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding: 10px; font-size: 12.5px; color: var(--muted); }
.conn { display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.ok { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.dot.bad { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.linkbtn:hover { color: var(--ink); }

main { min-width: 0; padding: 28px 36px 120px; max-width: 1240px; width: 100%; }
.head { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.head h1 { font-size: 22px; letter-spacing: -.02em; margin: 0; font-weight: 700; }
.head .sub { color: var(--muted); font-size: 13px; }
.head .grow { flex: 1; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 500; }
.back:hover { color: var(--ink); }

/* ---------- controls */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line-2);
  background: var(--surface); font-weight: 600; font-size: 13.5px; cursor: pointer; white-space: nowrap;
  transition: background .12s, border-color .12s, transform .05s;
}
.btn:hover { border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.danger { color: var(--danger); }
.btn.danger:hover { border-color: var(--danger); background: var(--danger-soft); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--line); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.btn.icon { width: 30px; padding: 0; }

label.field { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: 13px; color: var(--ink-2); }
.field .hint { font-weight: 400; color: var(--muted); font-size: 12px; }
input[type=text], input[type=password], input[type=search], input[type=number], input[type=url], input[type=tel],
input[type=date], input[type=time], select, textarea {
  width: 100%; min-width: 0; height: 38px; padding: 0 11px; border-radius: 9px; border: 1px solid var(--line-2);
  background: var(--surface); outline: none; transition: border-color .12s, box-shadow .12s;
}
textarea { height: auto; min-height: 92px; padding: 10px 11px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; font-weight: 500; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.section { padding: 18px 20px; }
.section + .section { border-top: 1px solid var(--line); }
.section h2 { margin: 0 0 4px; font-size: 14.5px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.section h2 .n { font-family: var(--mono); font-size: 11px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 5px; padding: 0 5px; }
.section .desc { color: var(--muted); font-size: 12.5px; margin: 0 0 14px; }

.pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; background: var(--line); color: var(--ink-2); }
.pill.scheduled { background: var(--info-soft); color: var(--info); }
.pill.sending { background: var(--warn-soft); color: var(--warn); }
.pill.sent { background: var(--accent-soft); color: var(--accent-text); }
.pill.partial, .pill.missed { background: var(--warn-soft); color: var(--warn); }
.pill.failed { background: var(--danger-soft); color: var(--danger); }
.pill.sending::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

.tabs { display: inline-flex; padding: 3px; gap: 2px; background: var(--line); border-radius: 10px; }
.tabs button { border: 0; background: none; padding: 6px 12px; border-radius: 8px; font-weight: 600; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.tabs button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

/* ---------- agenda */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.stat { padding: 14px 16px; }
.stat b { display: block; font-size: 24px; letter-spacing: -.02em; font-family: var(--mono); font-weight: 600; }
.stat span { color: var(--muted); font-size: 12.5px; }
.agenda { display: grid; grid-template-columns: 1fr 300px; gap: 22px; align-items: start; }
.day { margin-bottom: 22px; }
.day-h { display: flex; align-items: baseline; gap: 8px; margin: 0 0 8px 2px; font-weight: 650; font-size: 13px; }
.day-h span { color: var(--muted); font-weight: 500; }
.posts { display: flex; flex-direction: column; overflow: hidden; }
.post { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 13px 16px; border-top: 1px solid var(--line); }
.post:first-child { border-top: 0; }
.post:hover { background: var(--surface-2); }
.post-time { font-family: var(--mono); font-weight: 600; font-size: 15px; }
.post-time small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; }
.post-main { min-width: 0; }
.post-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12.5px; margin-top: 2px; flex-wrap: wrap; }
.post-meta .types { display: inline-flex; gap: 4px; }
.post-meta .types svg { width: 14px; height: 14px; }
.post-meta .tg { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 360px; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.empty .btn { margin-top: 14px; }

.cal { padding: 14px; position: sticky; top: 20px; }
.cal-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-weight: 650; }
.cal-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.cal-g .wd { font-size: 11px; color: var(--muted); padding: 4px 0; font-weight: 600; }
.cal-g button { position: relative; aspect-ratio: 1; border: 0; background: none; border-radius: 8px; cursor: pointer; font-size: 12.5px; font-family: var(--mono); color: var(--ink-2); }
.cal-g button:hover { background: var(--line); }
.cal-g button.out { color: var(--line-2); }
.cal-g button.today { color: var(--accent-text); font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--accent); }
.cal-g button.sel { background: var(--ink); color: var(--bg); }
.cal-g button i { position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%); display: flex; gap: 2px; }
.cal-g button i b { width: 4px; height: 4px; border-radius: 50%; background: var(--info); }
.cal-g button i b.sent { background: var(--accent); }
.cal-g button i b.failed, .cal-g button i b.partial, .cal-g button i b.missed { background: var(--danger); }
.cal-legend { display: flex; gap: 12px; margin-top: 10px; font-size: 11.5px; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 5px; }
.cal-legend b { width: 6px; height: 6px; border-radius: 50%; }

/* ---------- editor */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 6px 0 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-weight: 600; font-size: 12.5px; max-width: 100%; }
.chip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip button { border: 0; background: none; color: inherit; cursor: pointer; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; padding: 0; }
.chip button:hover { background: rgba(0, 0, 0, .08); }
.chip.list { background: var(--info-soft); color: var(--info); }
.chip.num { background: var(--line); color: var(--ink-2); }
.toggle-chip { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px dashed var(--line-2); background: none; cursor: pointer; font-weight: 600; font-size: 12.5px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.toggle-chip.on { border-style: solid; border-color: var(--info); background: var(--info-soft); color: var(--info); }
.picker { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-top: 10px; }
.picker-top { display: flex; gap: 8px; padding: 8px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.picker-top input { height: 32px; }
.picker-list { max-height: 260px; overflow: auto; }
.picker-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--line); cursor: pointer; }
.picker-row:first-child { border-top: 0; }
.picker-row:hover { background: var(--surface-2); }
.picker-row input { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; }
.picker-row .nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.picker-row .sz { color: var(--muted); font-size: 12px; font-family: var(--mono); }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--line); flex: none; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--muted); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.blocks { display: flex; flex-direction: column; gap: 10px; }
.block { border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.block-h { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 13px; }
.block-h .grow { flex: 1; }
.block-b { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.drop { display: flex; align-items: center; justify-content: center; gap: 10px; flex-direction: column; min-height: 110px; border: 1.5px dashed var(--line-2); border-radius: 10px; color: var(--muted); cursor: pointer; text-align: center; padding: 16px; background: var(--surface); }
.drop:hover, .drop.over { border-color: var(--accent); color: var(--accent-text); background: var(--accent-soft); }
.drop input { display: none; }
.media-prev { display: flex; gap: 12px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.media-prev img, .media-prev video { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; background: var(--line); }
.media-prev audio { max-width: 100%; }
.media-prev .meta { flex: 1; min-width: 0; }
.media-prev .meta b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.progress { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; width: 100%; max-width: 240px; }
.progress b { display: block; height: 100%; background: var(--accent); width: 0; transition: width .15s; }
.opt-row { display: flex; gap: 6px; align-items: center; }
.opt-row .k { width: 22px; text-align: center; color: var(--muted); font-family: var(--mono); font-size: 12px; }
.add-bar { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.fmt-hint { font-size: 11.5px; color: var(--muted); }
.fmt-warn { font-size: 12px; color: var(--warn); display: flex; flex-direction: column; gap: 2px; }
.fmt-warn:empty { display: none; }
.fmt-hint code { font-family: var(--mono); background: var(--line); padding: 0 4px; border-radius: 4px; }

.actions { position: sticky; bottom: 0; display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--surface); border-radius: 0 0 var(--radius) var(--radius); }
.actions .grow { flex: 1; }
.banner { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-weight: 500; }
.banner.warn { background: var(--warn-soft); color: var(--warn); }
.banner.err { background: var(--danger-soft); color: var(--danger); }
.banner.info { background: var(--info-soft); color: var(--info); }
.banner.ok { background: var(--accent-soft); color: var(--accent-text); }

/* ---------- whatsapp preview */
.preview { position: sticky; top: 20px; overflow: hidden; }
.preview-h { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.preview-h b { display: block; font-size: 13.5px; }
.preview-h small { color: var(--muted); font-size: 11.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 250px; }
.chat { background: var(--chat-bg); padding: 16px 12px; min-height: 340px; max-height: 70vh; overflow: auto; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.bubble { background: var(--bubble); color: var(--bubble-ink); border-radius: 8px 0 8px 8px; padding: 5px 7px 4px; max-width: 88%; font-size: 13.5px; line-height: 1.4; box-shadow: 0 1px .5px rgba(0, 0, 0, .13); word-wrap: break-word; overflow-wrap: anywhere; }
.bubble .tx { padding: 2px 3px 0; white-space: pre-wrap; }
.bubble .tm { float: right; font-size: 10.5px; opacity: .6; margin: 6px 0 -2px 10px; }
.bubble img, .bubble video { display: block; width: 100%; max-width: 260px; border-radius: 6px; }
.bubble .doc { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 6px; background: rgba(0, 0, 0, .06); min-width: 200px; }
.bubble .poll-q { font-weight: 600; padding: 2px 3px 6px; }
.bubble .poll-s { font-size: 11.5px; opacity: .65; padding: 0 3px 6px; }
.bubble .poll-o { display: flex; align-items: center; gap: 8px; padding: 6px 3px; border-top: 1px solid rgba(0, 0, 0, .08); }
.bubble .poll-o::before { content: ''; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid currentColor; opacity: .5; flex: none; }
.bubble.multi .poll-o::before { border-radius: 4px; }
.bubble .mention { color: #027eb5; }
.bubble code { font-family: var(--mono); font-size: 12px; }
.chat .ph { align-self: center; color: var(--muted); font-size: 12.5px; margin: auto; text-align: center; }

/* ---------- tables / lists */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.tbl td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .nm { font-weight: 600; }
.tbl-wrap { overflow-x: auto; }
.lists { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.list-card { padding: 16px; display: flex; flex-direction: column; gap: 10px; cursor: pointer; }
.list-card:hover { border-color: var(--line-2); }
.list-card h3 { margin: 0; font-size: 15px; }
.list-card .mem { color: var(--muted); font-size: 12.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.inst { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.inst.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.inst input { accent-color: var(--accent); }
.inst .grow { flex: 1; min-width: 0; }
.inst b { display: block; }
.insts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.del-grid td:nth-child(n+2) { text-align: center; }
.st-ico { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; }
.st-ico.sent { background: var(--accent-soft); color: var(--accent-text); }
.st-ico.failed { background: var(--danger-soft); color: var(--danger); }
.st-ico.pending, .st-ico.skipped { background: var(--line); color: var(--muted); }
.st-ico svg { width: 13px; height: 13px; }
.err-txt { color: var(--danger); font-size: 12px; max-width: 420px; }

/* ---------- login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login form { width: 100%; max-width: 360px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.login h1 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.login img { width: 40px; height: 40px; }

/* ---------- toast / modal */
#toasts { position: fixed; z-index: 50; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.toast { background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px; font-weight: 500; box-shadow: var(--shadow); max-width: 380px; animation: tin .18s ease-out; }
.toast.err { background: var(--danger); color: #fff; }
@keyframes tin { from { transform: translateY(6px); opacity: 0; } }
dialog { border: 0; padding: 0; border-radius: 14px; background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgba(0, 0, 0, .25); width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 40px); }
dialog::backdrop { background: rgba(20, 20, 18, .45); }
.modal-h { padding: 18px 20px 6px; }
.modal-h h3 { margin: 0; font-size: 16px; }
.modal-b { padding: 8px 20px 16px; display: flex; flex-direction: column; gap: 12px; color: var(--ink-2); }
.modal-f { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); }

.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: rot .7s linear infinite; display: inline-block; }
@keyframes rot { to { transform: rotate(360deg); } }
.loading { display: flex; justify-content: center; padding: 60px; color: var(--muted); }

/* ---------- responsive */
@media (max-width: 1080px) {
  .agenda { grid-template-columns: minmax(0, 1fr); }
  .cal { position: static; }
  .cal-g button { aspect-ratio: auto; height: 38px; }
  .editor { grid-template-columns: minmax(0, 1fr); }
  .preview { position: static; }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .side {
    position: fixed; top: auto; bottom: 0; left: 0; right: 0; height: auto; z-index: 20;
    flex-direction: row; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--line);
  }
  .brand, .side-foot { display: none; }
  .nav { display: contents; }
  .nav a { flex: 1; flex-direction: column; gap: 2px; font-size: 10.5px; padding: 6px 2px; text-align: center; }
  .nav a .count { display: none; }
  .nav a.on { box-shadow: none; background: var(--accent-soft); color: var(--accent-text); }
  main { padding: 18px 16px 110px; }
  .head h1 { font-size: 19px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .post { grid-template-columns: 52px 1fr; }
  .post .pill { grid-column: 2; justify-self: start; }
  .section { padding: 16px; }
  .actions { padding: 12px 16px; position: static; }
  .actions { display: grid; grid-template-columns: 1fr 1fr; }
  .actions .btn { width: 100%; }
  .actions > span { grid-column: 1 / -1; }
  .actions .btn.primary { grid-column: 1 / -1; order: 99; height: 42px; }
  .actions .grow { display: none; }
  .tbl .hide-m { display: none; }
  .camp thead { display: none; }
  .camp, .camp tbody { display: block; }
  .camp tr { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: start; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .camp td { display: block; padding: 0; border: 0; }
  .camp td:first-child { display: none; }
  .camp td:nth-child(2) { grid-column: 1 / -1; }
  .mobile-hide { display: none; }
}
