@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("/fonts/hanken-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("/fonts/hanken-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --bg: #f8fafc; --surface: #ffffff; --surface-2: #f1f5f9; --ink: #0f172a; --ink-2: #334155; --muted: #5b6779;
  --line: #e2e8f0; --line-2: #cbd5e1; --primary: #1e293b; --primary-hover: #0f172a; --primary-ink: #ffffff;
  --accent: #2563eb; --accent-ink: #ffffff; --accent-soft: #eff6ff; --accent-line: #bfdbfe;
  --ok: #15803d; --ok-soft: #f0fdf4; --ok-line: #bbf7d0; --warn: #b45309; --warn-soft: #fffbeb; --warn-line: #fde68a;
  --bad: #b91c1c; --bad-soft: #fef2f2; --bad-line: #fecaca; --alert: #c2410c; --alert-soft: #fff7ed; --alert-line: #fed7aa;
  --radius: 8px; --radius-sm: 4px; --radius-lg: 12px;
  --shadow: none; --shadow-2: 0 2px 8px -2px rgba(15, 23, 42, .06), 0 1px 3px -1px rgba(15, 23, 42, .04);
  --shadow-3: 0 12px 24px -6px rgba(15, 23, 42, .08), 0 4px 8px -2px rgba(15, 23, 42, .04);
  --ig: #c13584; --fb: #1877f2; --li: #0a66c2; --tt: #111111; --gb: #1a73e8;
  --font: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1220; --surface: #141c2e; --surface-2: #1c2638; --ink: #e8edf5; --ink-2: #c3cddb; --muted: #94a3b8;
    --line: #263247; --line-2: #334155; --primary: #e2e8f0; --primary-hover: #ffffff; --primary-ink: #0f172a;
    --accent: #7aa7ff; --accent-ink: #0b1220; --accent-soft: #172443; --accent-line: #2b4580;
    --ok: #4ade80; --ok-soft: #0f2a1b; --ok-line: #1f5135; --warn: #fbbf24; --warn-soft: #2d220c; --warn-line: #5c4512;
    --bad: #f87171; --bad-soft: #341515; --bad-line: #6b2626; --alert: #fb923c; --alert-soft: #2f1a0d; --alert-line: #6b3a17;
    --shadow-2: none; --shadow-3: 0 12px 30px rgba(0, 0, 0, .5); --tt: #e8edf5;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1220; --surface: #141c2e; --surface-2: #1c2638; --ink: #e8edf5; --ink-2: #c3cddb; --muted: #94a3b8;
  --line: #263247; --line-2: #334155; --primary: #e2e8f0; --primary-hover: #ffffff; --primary-ink: #0f172a;
  --accent: #7aa7ff; --accent-ink: #0b1220; --accent-soft: #172443; --accent-line: #2b4580;
  --ok: #4ade80; --ok-soft: #0f2a1b; --ok-line: #1f5135; --warn: #fbbf24; --warn-soft: #2d220c; --warn-line: #5c4512;
  --bad: #f87171; --bad-soft: #341515; --bad-line: #6b2626; --alert: #fb923c; --alert-soft: #2f1a0d; --alert-line: #6b3a17;
  --shadow-2: none; --shadow-3: 0 12px 30px rgba(0, 0, 0, .5); --tt: #e8edf5; color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.47 var(--font); font-feature-settings: "tnum" 0; letter-spacing: -.003em; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 24px; line-height: 1.25; font-weight: 650; margin: 0 0 12px; letter-spacing: -.02em; }
h2 { font-size: 17px; font-weight: 650; margin: 0 0 10px; letter-spacing: -.01em; }
h3 { font-size: 16px; font-weight: 650; margin: 0; letter-spacing: -.01em; }
small { display: block; font-size: 13px; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.error { color: var(--bad); }
.ok { color: var(--ok); }
.bad { color: var(--bad); }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
input, select, textarea { width: 100%; padding: 8px 11px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); min-height: 40px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent); }
::placeholder { color: var(--muted); opacity: 1; }
textarea { resize: vertical; line-height: 1.45; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; min-height: 0; accent-color: var(--accent); flex: none; }
input[type="color"] { width: 48px; height: 40px; padding: 3px; }
input[type="range"] { padding: 0; border: 0; min-height: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
label { display: block; font-size: 13px; color: var(--ink-2); margin: 10px 0 0; }
label > input, label > select, label > textarea { margin-top: 4px; color: var(--ink); font-size: 15px; }
label.check { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 14px; margin: 8px 0; }
label.inline { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
label.inline input { width: auto; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); margin: 14px 0 0; padding: 6px 12px 10px; }
legend { font-size: 13px; color: var(--ink-2); padding: 0 4px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); cursor: pointer; font-weight: 600; white-space: nowrap; text-decoration: none; }
.btn:hover { text-decoration: none; background: var(--surface-2); color: var(--ink); }
.btn.primary { background: var(--primary); border-color: var(--primary-hover); color: var(--primary-ink); }
.btn.primary:hover { background: var(--primary-hover); color: var(--primary-ink); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn.danger { color: var(--bad); }
.btn.small { min-height: 36px; padding: 5px 12px; font-size: 14px; }
.btn.big { min-height: 52px; font-size: 17px; width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.on { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.icon-btn { border: 0; background: transparent; cursor: pointer; font-size: 20px; line-height: 1; padding: 6px 8px; border-radius: var(--radius-sm); color: var(--ink-2); min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
.icon-btn:hover { background: var(--surface-2); }
.help { border: 1px solid var(--line); background: var(--surface); border-radius: 50%; width: 22px; height: 22px; font-size: 12px; cursor: pointer; color: var(--ink-2); flex: none; padding: 0; }
.pill, .status { display: inline-flex; align-items: center; gap: 5px; padding: 2px 7px; border-radius: var(--radius-sm); font-size: 12.5px; line-height: 18px; background: var(--surface-2); color: var(--ink-2); font-weight: 600; white-space: nowrap; border: 1px solid var(--line); }
.pill.warn, .pill.gap, .status.warn { background: var(--warn-soft); color: var(--warn); border-color: var(--warn-line); }
.status.bad { background: var(--bad-soft); color: var(--bad); border-color: var(--bad-line); }
.status.ok { background: var(--ok-soft); color: var(--ok); border-color: var(--ok-line); }
.badge { position: absolute; top: 2px; right: 2px; background: var(--alert); color: #fff; border: 2px solid var(--surface); border-radius: 999px; font-size: 11px; min-width: 18px; height: 18px; line-height: 18px; padding: 0 5px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); margin-bottom: 12px; }
.alert { border-radius: var(--radius-sm); border: 1px solid transparent; padding: 10px 12px; margin: 8px 0; font-size: 14px; }
.alert.bad { background: var(--bad-soft); color: var(--bad); border-color: var(--bad-line); }
.alert.warn { background: var(--warn-soft); color: var(--warn); border-color: var(--warn-line); }
.alert .detail, code.detail { display: block; margin-top: 6px; font-size: 12px; color: var(--ink-2); word-break: break-word; white-space: pre-wrap; }
.empty { text-align: center; padding: 40px 16px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.tools { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; align-items: center; }
.tools select.small { width: auto; min-height: 34px; padding: 4px 8px; font-size: 13.5px; }
.form > button[type="submit"] { margin-top: 14px; }

.shell { display: grid; grid-template-columns: 1fr; grid-template-rows: auto 1fr; min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 8px 16px; padding-top: max(8px, env(safe-area-inset-top)); min-height: 56px; background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { font-weight: 750; font-size: 18px; color: var(--ink); letter-spacing: -.03em; }
.brand:hover { text-decoration: none; }
@media (max-width: 899px) { .topbar .brand { display: none; } }
.brand.big { display: block; font-size: 32px; text-align: center; margin-bottom: 18px; }
.client-switch { width: auto; max-width: 58vw; min-height: 40px; padding: 6px 30px 6px 10px; font-weight: 650; font-size: 16px; border-color: transparent; background: transparent 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='%235b6779' stroke-width='2.4'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center; appearance: none; -webkit-appearance: none; text-overflow: ellipsis; }
.client-switch:hover { background-color: var(--surface-2); }
.client-switch option { background: var(--surface); color: var(--ink); }
.lang-seg { display: inline-flex; padding: 2px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface-2); }
.lang-seg button { border: 0; background: transparent; color: var(--muted); font-size: 13px; font-weight: 650; min-width: 36px; min-height: 30px; border-radius: 999px; cursor: pointer; padding: 0 8px; }
.lang-seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-2), 0 0 0 1px var(--line); }
.top-actions { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.bell { position: relative; color: var(--ink); }
.sidenav { display: none; }
.content { padding: 20px 16px calc(96px + env(safe-area-inset-bottom)); min-width: 0; }
.bottomnav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface);
  border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.bottomnav a { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; padding: 8px 2px 8px; color: var(--ink-2); text-decoration: none; min-height: 60px; }
.bottomnav a:hover { text-decoration: none; color: var(--ink); }
.bottomnav a > span:not(.nav-ico) { font-size: 12px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.nav-ico { display: inline-flex; }
.bottomnav a.active { color: var(--accent); }
.bottomnav a.active > span:not(.nav-ico) { font-weight: 700; }
.bottomnav a.new { color: var(--ink); }
.new-box { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 32px; border-radius: var(--radius); background: var(--primary); color: var(--primary-ink); font-style: normal; }
@media (min-width: 900px) {
  .shell { grid-template-columns: 220px 1fr; grid-template-rows: auto 1fr; }
  .topbar { grid-column: 1 / -1; }
  .sidenav { display: flex; flex-direction: column; gap: 2px; padding: 16px 10px; border-right: 1px solid var(--line); background: var(--surface); position: sticky; top: 53px; height: calc(100vh - 53px); overflow: auto; }
  .sidenav a { padding: 8px 10px; border-radius: var(--radius-sm); color: var(--ink-2); font-size: 14.5px; font-weight: 550; border-left: 2px solid transparent; }
  .sidenav a:hover { background: var(--surface-2); text-decoration: none; }
  .sidenav a.active { background: var(--surface-2); color: var(--ink); font-weight: 700; border-left-color: var(--primary); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
  .nav-group { margin-top: 16px; display: flex; flex-direction: column; gap: 2px; }
  .nav-title { font-size: 12px; color: var(--muted); font-weight: 650; letter-spacing: .02em; padding: 0 10px 4px; }
  .bottomnav { display: none; }
  .content { padding: 28px 32px 48px; }
}
.page { max-width: 1100px; }
.page.narrow { max-width: 680px; }
.page.wide { max-width: none; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.page-head h1, .page-head h2 { margin: 0; }

.login-wrap { max-width: 380px; margin: 10vh auto; padding: 0 16px; }
.login { padding: 22px; }
.login h1 { font-size: 21px; }
.login .btn.primary { width: 100%; margin-top: 16px; }
.login .btn.ghost { width: 100%; margin-top: 8px; }
.demo-accounts { margin-top: 16px; }
.demo-accounts h2 { font-size: 16px; margin: 0 0 4px; }
.demo-accounts .btn.ghost { display: block; text-align: left; height: auto; padding: 10px 12px; white-space: normal; }

.cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.cards > .card { margin: 0; }
.greet { display: flex; flex-direction: column; gap: 2px; margin-bottom: 16px; }
.greet h1 { margin: 0; font-size: 26px; }
.greet p { margin: 0; font-size: 14.5px; }
.greet b { color: var(--ink); font-weight: 650; }
.sep { color: var(--line-2); margin: 0 7px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 26px 0 12px; }
.section-head h2 { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-size: 19px; }
.section-meta { font-size: 13.5px; color: var(--muted); font-weight: 550; white-space: nowrap; }
.section-meta.bad { color: var(--bad); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.bad { background: var(--bad); } .dot.info { background: var(--accent); width: 6px; height: 6px; }
.week-card { padding: 14px 14px 14px; margin: 0; }
.week-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.week-head h2 { margin: 0; }
.tag { background: var(--surface-2); border-radius: var(--radius-sm); padding: 3px 8px; font-size: 13.5px; font-weight: 650; font-variant-numeric: tabular-nums; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.stat { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 9px 4px 8px; text-align: center; min-width: 0; }
.stat b { display: block; font-size: 21px; line-height: 1.2; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat span { display: block; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat.info b { color: var(--accent); } .stat.warn b { color: var(--warn); } .stat.ok b { color: var(--ink); }
.stat.bad b { color: var(--bad); }
.stat.bad.on { background: var(--bad-soft); border-color: var(--bad-line); }
.stat.bad.on span { color: var(--bad); }
.calm { color: var(--muted); margin: 0; }
.alert-card { border-left: 3px solid var(--bad); border-color: var(--bad-line); border-left-color: var(--bad); padding: 14px; }
.alert-card.is-warn { border-color: var(--alert-line); border-left-color: var(--alert); }
.alert-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.alert-who { display: flex; align-items: baseline; flex-wrap: wrap; min-width: 0; font-size: 15px; }
.alert-card p { margin: 8px 0 0; color: var(--ink-2); font-size: 14.5px; }
.alert-card .status.warn { background: var(--alert-soft); color: var(--alert); border-color: var(--alert-line); }
.alert-actions { display: flex; gap: 8px; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.client-card { padding: 14px; }
.client-card header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.client-card header a { color: var(--ink); }
.client-card header h3 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-card header small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.client-card h2 { margin: 0; }
.logo-sm { width: 40px; height: 40px; border-radius: var(--radius); object-fit: cover; flex: none; font-size: 15px; }
.logo-lg { width: 56px; height: 56px; border-radius: var(--radius-lg); object-fit: cover; flex: none; }
.initial { display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; background: #475569; letter-spacing: .02em; }
.counts { display: flex; flex-wrap: wrap; gap: 4px 14px; background: var(--surface-2); border-radius: var(--radius-sm); padding: 7px 10px; font-size: 13.5px; color: var(--ink-2); }
.count-item b { color: var(--ink); font-variant-numeric: tabular-nums; }
.count-item.info b { color: var(--accent); } .count-item.warn b { color: var(--warn); } .count-item.bad b { color: var(--bad); }
.card-note { margin: 10px 0 0; font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.card-note.bad { color: var(--bad); }
.strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.strip-day { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--ink-2); }
.strip-day:hover { text-decoration: none; }
.strip-dow { font-size: 12.5px; font-weight: 550; color: var(--muted); }
.strip-day.today .strip-dow { color: var(--ink); font-weight: 750; }
.strip-box { display: flex; align-items: center; justify-content: center; width: 100%; height: 36px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; }
.strip-day.has .strip-box { background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line); }
.strip-day.has.today .strip-box { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.strip-day.gap .strip-box { background: var(--warn-soft); color: var(--warn); border: 1px dashed var(--warn); }
.strip-day.gap:hover .strip-box { background: var(--surface); }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 4px 10px; flex-wrap: wrap; margin-top: 12px; font-size: 13.5px; }
.gap-text { color: var(--warn); font-weight: 550; }
.ok-text { color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.link { font-weight: 650; }
.gaps { margin: 10px 0 0; font-size: 13px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: 13px; color: var(--ink); border: 1px solid var(--line); }
.chip.gap { background: var(--warn-soft); color: var(--warn); border: 1px dashed currentColor; }

.list { list-style: none; padding: 0; margin: 0 0 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.list > li { border-bottom: 1px solid var(--surface-2); padding: 12px 14px; display: flex; gap: 10px; align-items: center; }
.list > li:last-child { border-bottom: 0; }
.list .row { display: flex; align-items: center; gap: 12px; width: 100%; color: var(--ink); }
.list .row:hover { text-decoration: none; }
.list.compact > li { padding: 8px 10px; }
.grow { flex: 1; min-width: 0; }
.tags { color: var(--accent); font-weight: 550; font-size: 13px; overflow-wrap: anywhere; }

.net { display: inline-flex; width: 18px; height: 18px; flex: none; }
.net svg { width: 100%; height: 100%; }
.net.big { width: 26px; height: 26px; }
.net.tiny { width: 13px; height: 13px; }
.n-instagram { color: var(--ig); } .n-facebook { color: var(--fb); } .n-linkedin { color: var(--li); } .n-tiktok { color: var(--tt); } .n-google { color: var(--gb); }
.net-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.net-card header { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.net-card header h2 { margin: 0; flex: 1; }
.acc-list { list-style: none; padding: 0; margin: 0 0 12px; }
.acc-list li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.acc-actions { display: flex; gap: 6px; flex-wrap: wrap; width: 100%; }

.cal-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 4px; }
.cal-head h1 { margin: 0; text-transform: capitalize; }
.cal-tools { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.seg { display: inline-flex; gap: 0; }
.seg .btn { border-radius: 0; margin-left: -1px; }
.seg .btn:first-child { border-radius: 8px 0 0 8px; margin-left: 0; }
.seg .btn:last-child { border-radius: 0 8px 8px 0; }
.grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.dow { font-size: 12px; color: var(--ink-2); text-align: center; padding: 4px 0; font-weight: 600; }
.day { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); min-height: 108px; padding: 5px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.grid.week .day { min-height: 280px; }
.day.out { opacity: .5; }
.day.past { background: var(--surface-2); }
.day.today { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.day.gap { border-style: dashed; border-color: var(--warn); background: var(--warn-soft); }
.day.drop { outline: 2px solid var(--accent); }
.day-head { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--ink-2); }
.day-head .add, .agenda-date .add { width: 32px; height: 32px; border-radius: var(--radius-sm); font-size: 18px; display: inline-flex; align-items: center; justify-content: center; color: var(--accent); font-weight: 700; }
.day-head .add:hover { background: var(--accent-soft); text-decoration: none; }
.gap-label { font-size: 11.5px; color: var(--warn); margin-top: auto; }
.chip.post { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "img time" "img nets" "st st"; column-gap: 6px; align-items: center; padding: 4px 6px;
  border: 1px solid var(--line); border-left: 3px solid var(--muted); border-radius: var(--radius-sm); background: var(--surface); cursor: grab; font-size: 12.5px; color: var(--ink); min-width: 0; }
.chip.post:hover { text-decoration: none; background: var(--surface-2); }
.chip.post img { grid-area: img; width: 30px; height: 30px; border-radius: var(--radius-sm); object-fit: cover; }
.chip.post .time { grid-area: time; font-weight: 650; font-variant-numeric: tabular-nums; }
.chip.post .nets { grid-area: nets; display: flex; gap: 3px; }
.chip.post .st { grid-area: st; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip.post .rec { grid-area: time; justify-self: end; color: var(--muted); }
.st-draft { border-left-color: var(--muted) !important; }
.st-in_review, .st-changes_requested { border-left-color: var(--warn) !important; }
.st-approved { border-left-color: var(--accent) !important; }
.st-draft .st { color: var(--muted); }
.st-publishing { border-left-color: var(--accent) !important; }
.st-published { border-left-color: var(--ok) !important; }
.st-failed, .st-partial, .st-missed { border-left-color: var(--bad) !important; }
.pill.st-in_review, .pill.st-changes_requested { background: var(--warn-soft); color: var(--warn); border-color: var(--warn-line); }
.pill.st-approved, .pill.st-publishing { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }
.pill.st-published { background: var(--ok-soft); color: var(--ok); border-color: var(--ok-line); }
.pill.st-failed, .pill.st-partial, .pill.st-missed { background: var(--bad-soft); color: var(--bad); border-color: var(--bad-line); }
.ts-failed { color: var(--bad) !important; } .ts-published { color: var(--ok) !important; } .ts-retry { color: var(--warn) !important; }
@media (max-width: 700px) {
  .grid { gap: 2px; }
  .day { min-height: 64px; padding: 3px; border-radius: 6px; }
  .chip.post { grid-template-columns: 1fr; grid-template-areas: "time" "nets"; padding: 2px 3px; }
  .chip.post img, .chip.post .st { display: none; }
  .gap-label { display: none; }
  .two { grid-template-columns: 1fr; }
}
.agenda { display: flex; flex-direction: column; gap: 8px; }
.agenda-day { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.agenda-day.gap { border-style: dashed; border-color: var(--warn); background: var(--surface); }
.agenda-day.gap .agenda-date b { color: var(--ink); }
.agenda-day.today { border-color: var(--primary); box-shadow: inset 2px 0 0 var(--primary); }
.agenda-date { display: flex; justify-content: space-between; align-items: center; text-transform: capitalize; }
.agenda .chip.post { grid-template-columns: auto auto 1fr auto; grid-template-areas: "img time nets st"; gap: 10px; padding: 6px 10px 6px 6px; font-size: 14px; }
.agenda .chip.post img { width: 44px; height: 44px; display: block; }
.agenda .chip.post .st { display: block; }

.compose-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 1100px) { .compose-grid { grid-template-columns: minmax(0, 1fr) 400px; } .compose-side { position: sticky; top: 70px; align-self: start; } }
.composer textarea#caption { font-size: 15.5px; }
.live-counts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.count { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.count.over { color: var(--bad); font-weight: 700; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumb { position: relative; width: 104px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.thumb img { width: 104px; height: 104px; object-fit: cover; border-radius: var(--radius); background: var(--surface-2); }
.thumb .icon-btn { position: absolute; top: 2px; right: 2px; background: rgba(0,0,0,.55); color: #fff; min-width: 28px; min-height: 28px; font-size: 16px; }
.acc-toggle { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.check.acc.bad { color: var(--bad); }
details.target { border: 1px solid var(--line); border-radius: var(--radius); margin-top: 10px; background: var(--surface); }
details.target > summary { display: flex; gap: 8px; align-items: center; padding: 10px 12px; cursor: pointer; list-style: none; flex-wrap: wrap; }
details.target > summary::-webkit-details-marker { display: none; }
details.target > summary .live-count { margin-left: auto; }
.target-body { padding: 0 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.issues { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.issues li { padding: 8px 10px; border-radius: var(--radius-sm); border: 1px solid transparent; font-size: 13.5px; display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.issues li.error { background: var(--bad-soft); color: var(--bad); border-color: var(--bad-line); }
.issues li.warning { background: var(--warn-soft); color: var(--warn); border-color: var(--warn-line); }
.actionbar { position: sticky; bottom: 0; z-index: 10; display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 0; background: linear-gradient(to top, var(--bg) 75%, transparent); margin-top: 10px; }
@media (max-width: 899px) { .actionbar { bottom: calc(60px + env(safe-area-inset-bottom)); } }
.result .res-list { list-style: none; padding: 0; margin: 0 0 10px; }
.res-list li { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.comments { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-direction: column; gap: 8px; }
.comments li { background: var(--surface-2); border-radius: var(--radius); padding: 8px 10px; }
.comments li.by-client { background: var(--warn-soft); }
.comments li.resolved { opacity: .55; }
.comments p { margin: 4px 0 0; white-space: pre-wrap; }
.reply { display: flex; gap: 8px; align-items: flex-end; }
.history ul { padding-left: 16px; }
.ai-out { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.ai-draft { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.ai-draft p { white-space: pre-wrap; margin: 0 0 8px; }
.crop { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.crop-canvas { max-width: 100%; touch-action: none; cursor: move; border-radius: 6px; }

.tabs { display: flex; gap: 4px; overflow-x: auto; margin-bottom: 10px; }
.tabs button { display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font-weight: 600; border-radius: var(--radius-sm); padding: 6px 12px; cursor: pointer; white-space: nowrap; min-height: 36px; }
.tabs button.on { border-color: var(--primary); background: var(--primary); color: var(--primary-ink); }
.tabs button.on .net { color: inherit; }
@media (max-width: 420px) { .tabs .tab-label { display: none; } }
.device { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 12px; display: flex; justify-content: center; }
.pv { width: 100%; max-width: 360px; background: #fff; color: #111; border-radius: 10px; overflow: hidden; font: 14px/1.4 -apple-system, "Segoe UI", Roboto, sans-serif; border: 1px solid #ddd; }
.pv-head { display: flex; gap: 8px; align-items: center; padding: 10px; }
.pv-head small { color: #65676b; font-size: 12px; }
.pv-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; }
.pv-initial { display: inline-flex; align-items: center; justify-content: center; background: #ccc; color: #fff; font-weight: 700; }
.pv-dots { margin-left: auto; color: #999; }
.pv-media { position: relative; width: 100%; background: #eee; overflow: hidden; }
.pv-media img, .pv-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-media.pv-bad { outline: 3px solid #d93025; outline-offset: -3px; }
.pv-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 40px; color: rgba(255,255,255,.9); text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.pv-count { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,.6); color: #fff; border-radius: 999px; padding: 1px 8px; font-size: 12px; }
.pv-actions { padding: 8px 10px; color: #333; font-size: 15px; display: flex; gap: 10px; }
.pv-save { margin-left: auto; }
.pv-text { padding: 0 10px 10px; margin: 0; white-space: pre-wrap; word-break: break-word; }
.pv-tag { color: #00376b; }
.pv-more { color: #737373; }
.pv-facebook .pv-text { padding-top: 0; }
.pv-facebook .pv-tag { color: #1877f2; }
.pv-facebook .pv-actions { border-top: 1px solid #e4e6eb; justify-content: space-around; font-size: 13px; color: #65676b; }
.pv-linkedin .pv-tag { color: #0a66c2; font-weight: 600; }
.pv-linkedin .pv-actions { border-top: 1px solid #e8e8e8; justify-content: space-around; font-size: 13px; color: #666; }
.pv-tiktok { position: relative; aspect-ratio: 9 / 16; max-width: 270px; background: #000; color: #fff; border: 0; }
.pv-tiktok img, .pv-tiktok video { width: 100%; height: 100%; object-fit: cover; }
.pv-tt-side { position: absolute; right: 8px; bottom: 90px; display: flex; flex-direction: column; gap: 16px; font-size: 22px; }
.pv-tt-text { position: absolute; left: 10px; right: 50px; bottom: 12px; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.pv-tt-text p { margin: 4px 0 0; font-size: 13px; white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pv-tag-light { font-weight: 700; }
.pv-google .pv-text { padding-top: 10px; }
.pv-cta { display: inline-block; margin: 0 10px 12px; color: #1a73e8; border: 1px solid #dadce0; border-radius: 18px; padding: 6px 14px; font-weight: 600; font-size: 13px; }

.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.media-item { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: relative; }
.media-item img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.media-item figcaption { padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.media-item input { min-height: 32px; padding: 4px 6px; font-size: 12.5px; }
.media-item .icon-btn { position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,.55); color: #fff; }
.media-pick { border: 0; padding: 0; background: none; cursor: pointer; text-align: left; }
.media-pick img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); }
.brand-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.swatches { display: flex; gap: 8px; flex: 1; }
.swatch { width: 54px; height: 54px; border-radius: var(--radius); display: flex; align-items: flex-end; padding: 3px; border: 1px solid var(--line); }
.swatch small { font-size: 9.5px; background: rgba(255,255,255,.85); color: #222; border-radius: 3px; padding: 0 2px; }
.colors { display: flex; gap: 8px; }
.inline-form { display: grid; grid-template-columns: 1fr 2fr auto; gap: 8px; margin-top: 10px; }
@media (max-width: 600px) { .inline-form { grid-template-columns: 1fr; } }
.days { display: flex; flex-wrap: wrap; gap: 2px 10px; }
.day-check { margin: 4px 0; }

.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.tile b { display: block; margin-top: 2px; }
.tile span { font-size: 13px; color: var(--muted); display: block; font-weight: 550; }
.tile b { font-size: 26px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.bar-row { display: grid; grid-template-columns: minmax(84px, 28%) 1fr auto; gap: 10px; align-items: center; padding: 5px 0; }
.bar-label { font-size: 13px; color: var(--ink-2); }
.bar-track { height: 14px; }
.bar { display: block; height: 14px; background: var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.bar-value { font-size: 13px; font-variant-numeric: tabular-nums; min-width: 52px; text-align: right; }
.best-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.best { display: flex; flex-direction: column; gap: 4px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; padding-bottom: 8px; }
.best img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.best small, .best p { padding: 0 8px; margin: 0; }

.modal-wrap { position: fixed; inset: 0; z-index: 50; background: rgba(15,23,42,.45); display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 640px) { .modal-wrap { align-items: center; } }
.modal { background: var(--surface); width: 100%; max-width: 580px; max-height: 92vh; overflow: auto; border-radius: var(--radius-lg) var(--radius-lg) 0 0; border: 1px solid var(--line-2); box-shadow: var(--shadow-3); padding-bottom: env(safe-area-inset-bottom); }
@media (min-width: 640px) { .modal { border-radius: var(--radius-lg); padding-bottom: 0; } }
.modal header { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 8px 16px; border-bottom: 1px solid var(--surface-2); margin-bottom: 8px; position: sticky; top: 0; background: var(--surface); }
.modal header h2 { margin: 0; }
.modal-body { padding: 4px 16px 16px; }
.modal footer { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 16px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: var(--surface); }
.alert-list { list-style: none; padding: 0; margin: 0; }
.alert-list li a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--line); color: var(--ink); }
.alert-list li.unread a { font-weight: 600; }
.alert-list li.lvl-error a > div::before { content: "● "; color: var(--bad); }
.alert-list li.lvl-success a > div::before { content: "● "; color: var(--ok); }
.alert-list li.lvl-warning a > div::before { content: "● "; color: var(--warn); }
.mail { padding: 10px; background: var(--surface-2); border-radius: var(--radius); margin-top: 8px; font-size: 14px; }
#toasts { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
@media (min-width: 900px) { #toasts { left: auto; right: 24px; bottom: 24px; align-items: flex-end; } }
.toast { background: var(--primary); color: var(--primary-ink); padding: 11px 14px; border-radius: var(--radius-lg); box-shadow: var(--shadow-3); font-weight: 550; max-width: 460px; font-size: 14px; pointer-events: auto; }
.toast.error { background: #b91c1c; color: #fff; }
.toast.success { background: #15803d; color: #fff; }

.review-body { background: var(--bg); }
.review { max-width: 560px; margin: 0 auto; padding: 16px 16px 110px; }
.rv-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.rv-head h1 { margin: 0; font-size: 22px; }
.rv-head p { margin: 2px 0 0; }
.rv-head .btn { margin-left: auto; align-self: flex-start; }
.rv-name { margin-bottom: 12px; }
.rv-day { font-size: 14px; font-weight: 700; color: var(--ink); margin: 22px 0 10px; text-transform: capitalize; display: flex; align-items: center; gap: 10px; }
.rv-day::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.rv-post header { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 10px; }
.rv-post .device { padding: 8px; border-radius: var(--radius); }
.rv-post.st-approved { border-color: var(--ok-line); box-shadow: inset 3px 0 0 var(--ok); }
.rv-post.st-changes_requested { border-color: var(--warn-line); box-shadow: inset 3px 0 0 var(--warn); }
.fulltext { margin: 10px 0; font-size: 14px; }
.fulltext p { white-space: pre-wrap; }
.rv-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.rv-actions .form { grid-column: 1 / -1; }
.rv-actions .btn { min-height: 48px; }
.rv-bar { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -4px 12px -6px rgba(15,23,42,.08); }
.rv-bar .btn { max-width: 528px; margin: 0 auto; display: flex; }
.done { text-align: center; color: var(--ok); font-weight: 600; }
.more-menu { display: flex; flex-direction: column; }
.more-menu a { padding: 13px 4px; border-bottom: 1px solid var(--surface-2); color: var(--ink); font-size: 16px; font-weight: 550; }
.more-menu a.active { color: var(--accent); font-weight: 600; }
