/* Kirtara Marketing — vanilla CSS, no build step, CSP-safe (no inline styles needed). Palette "Senja". */
:root {
  --c-ink: #2a0f3a; --c-ink-2: #4b3a5c; --c-muted: #6b5577; --c-line: #ece4ee; --c-line-2: #d9cde0;
  --c-bg: #fbf7f4; --c-panel: #fff; --c-brand: #3a1450; --c-accent: #6b2fa0; --c-accent-50: #f3ebfa;
  --c-ok: #1a7f45; --c-ok-50: #e5f5ec; --c-bad: #c62a2a; --c-bad-50: #fdeaea; --c-warn: #a86200; --c-warn-50: #fff4e0;
  --c-info: #2459c9; --c-info-50: #e8efff;
  --c-ig: #c13584; --c-ig-50: #fbe9f3; --c-tt: #111; --c-tt-50: #e8fbfb; --c-tt-accent: #00b8b0;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --r-sm: 6px; --r: 10px; --r-lg: 14px; --sidebar-w: 236px;
  --shadow: 0 1px 2px rgba(23, 32, 58, .05), 0 4px 16px rgba(23, 32, 58, .05);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--c-ink); background: var(--c-bg); -webkit-font-smoothing: antialiased; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--c-accent); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .75rem; }
p { margin: 0 0 .75rem; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
code { background: #eef1f6; padding: .05rem .35rem; border-radius: 4px; font-size: .88em; word-break: break-all; }
pre.code, pre.debug { background: #0f1629; color: #e6ebf5; padding: .75rem 1rem; border-radius: var(--r); overflow: auto; font-size: .8rem; white-space: pre-wrap; word-break: break-all; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.visually-hidden-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.skip-link { position: absolute; left: 1rem; top: -60px; z-index: 100; background: var(--c-ink); color: #fff; padding: .5rem 1rem; border-radius: var(--r-sm); }
.skip-link:focus { top: .5rem; }
.muted { color: var(--c-muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.strong { font-weight: 650; color: var(--c-ink); text-decoration: none; }
.strong:hover { text-decoration: underline; }
.text-ok { color: var(--c-ok); }
.text-bad { color: var(--c-bad); }
.req { color: var(--c-bad); }
.lead { font-size: 1rem; color: var(--c-ink-2); max-width: 70ch; }
.h2 { font-size: 1.25rem; margin: 0 0 .25rem; }
.h3 { font-size: 1rem; margin: 1.25rem 0 .5rem; }
.link { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .25rem; background: none; border: 0; padding: 0; color: var(--c-accent); cursor: pointer; }
.link:hover { text-decoration: underline; }
.icon { width: 20px; height: 20px; flex: none; }
.icon--sm { width: 16px; height: 16px; }
.icon--xs { width: 13px; height: 13px; display: inline-block; vertical-align: -2px; }
.icon--xl { width: 40px; height: 40px; }
.na { color: var(--c-muted); font-size: .8rem; font-style: italic; }

/* Buttons */
.btn { --bg: var(--c-ink); --fg: #fff; --bd: var(--bg); display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 38px; padding: .4rem .95rem; background: var(--bg); color: var(--fg); border: 1.5px solid var(--bd); border-radius: var(--r-sm); font-weight: 600; font-size: .875rem; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s, border-color .15s; }
.btn:hover { filter: brightness(1.08); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn--primary { --bg: var(--c-accent); --fg: #fff; }
.btn--outline { --bg: #fff; --fg: var(--c-ink); --bd: var(--c-line-2); }
.btn--outline:hover { --bd: var(--c-ink); filter: none; }
.btn--ghost { --bg: transparent; --fg: var(--c-ink-2); --bd: transparent; }
.btn--ghost:hover { --bg: #e9edf4; filter: none; }
.btn--danger-text { color: var(--c-bad) !important; }
.btn--sm { min-height: 32px; padding: .25rem .65rem; font-size: .82rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.btn-stack { display: grid; gap: .5rem; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: var(--r-sm); border: 0; background: transparent; cursor: pointer; color: var(--c-ink-2); }
.icon-btn:hover { background: #e9edf4; }
.inline-form { display: inline; margin: 0; }
.inline-fields { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.inline-fields input[type="url"], .inline-fields input[type="password"] { min-width: 200px; flex: 1; }

/* Status & badges */
.status { display: inline-block; padding: .12rem .55rem; border-radius: 999px; font-size: .74rem; font-weight: 700; background: #eceff5; color: var(--c-ink-2); white-space: nowrap; }
.status--scheduled, .status--queued { background: var(--c-info-50); color: var(--c-info); }
.status--publishing { background: #f1e8ff; color: #6b34c9; }
.status--published, .status--connected { background: var(--c-ok-50); color: var(--c-ok); }
.status--sent_to_inbox, .status--partial { background: var(--c-warn-50); color: var(--c-warn); }
.status--failed, .status--error, .status--expired { background: var(--c-bad-50); color: var(--c-bad); }
.status--cancelled, .status--disconnected, .status--not_connected { background: #eceff5; color: var(--c-muted); }
.badge { display: inline-block; padding: .05rem .45rem; border-radius: 999px; font-size: .72rem; font-weight: 650; background: #eceff5; color: var(--c-ink-2); }
.badge--ok { background: var(--c-ok-50); color: var(--c-ok); }
.role { display: inline-block; padding: .05rem .45rem; border-radius: 4px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: #eceff5; }
.role--admin { background: #1d2b53; color: #fff; }
.role--marketing { background: var(--c-accent-50); color: var(--c-accent); }
.chip { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 600; background: #fff; border: 1px solid var(--c-line); color: var(--c-ink-2); text-decoration: none; }
.chip.is-active { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }
.chip__n { font-size: .72rem; opacity: .75; }
.chip--instagram { color: var(--c-ig); background: var(--c-ig-50); border-color: transparent; padding: .1rem .45rem; }
.chip--tiktok { color: var(--c-tt); background: var(--c-tt-50); border-color: transparent; padding: .1rem .45rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c-muted); }
.dot--ok { background: var(--c-ok); box-shadow: 0 0 0 3px var(--c-ok-50); }
.dot--stale { background: var(--c-bad); }
.dot--never { background: var(--c-warn); }
.token--valid { color: var(--c-ok); }
.token--expiring { color: var(--c-warn); font-weight: 650; }
.token--expired { color: var(--c-bad); font-weight: 650; }
.token--none { color: var(--c-muted); }
.level { font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.level--error { color: var(--c-bad); }
.level--warning { color: var(--c-warn); }
.level--info { color: var(--c-info); }

/* Alerts */
.alert { padding: .7rem 1rem; border-radius: var(--r); border: 1px solid; margin: 0 0 1rem; font-size: .9rem; background: #fff; }
.alert--success { border-color: #b5dfc5; background: var(--c-ok-50); }
.alert--error { border-color: #f2b9b9; background: var(--c-bad-50); }
.alert--info { border-color: #c3d4fb; background: var(--c-info-50); }
.alert--warning { border-color: #f1d29a; background: var(--c-warn-50); }
.alert.small { padding: .4rem .65rem; margin: .5rem 0; }

/* Layout */
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); background: var(--c-brand); color: #c9d2e8; overflow-y: auto; z-index: 30; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: .6rem; padding: 1.1rem 1rem; color: #fff; text-decoration: none; }
.brand--center { justify-content: center; color: var(--c-ink); margin-bottom: 1.25rem; }
.brand__mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--c-accent); color: #fff; font-weight: 800; font-size: 1.1rem; }
.brand__text { font-size: .95rem; line-height: 1.15; }
.nav { list-style: none; padding: .25rem .6rem; display: grid; gap: 2px; }
.nav a { display: flex; align-items: center; gap: .65rem; padding: .55rem .7rem; border-radius: var(--r-sm); color: inherit; text-decoration: none; font-weight: 550; font-size: .9rem; }
.nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav a[aria-current="page"] { background: #fff; color: var(--c-brand); }
.nav__badge { margin-left: auto; background: #ff5a5a; color: #fff; border-radius: 999px; font-size: .7rem; font-weight: 800; padding: 0 .45rem; }
.sidebar__foot { margin-top: auto; padding: 1rem; display: flex; align-items: center; gap: .5rem; border-top: 1px solid rgba(255, 255, 255, .1); }
.backdrop { position: fixed; inset: 0; background: rgba(10, 15, 30, .45); z-index: 25; }
.main { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: .75rem; padding: .55rem 1.5rem; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--c-line); backdrop-filter: blur(6px); }
.topbar__title { font-size: 1.15rem; margin: 0; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar__filter select { max-width: 260px; }
.topbar__user { display: flex; align-items: center; gap: .25rem; }
.topbar__profile { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; color: var(--c-ink-2); font-size: .85rem; padding: .3rem .5rem; border-radius: var(--r-sm); }
.topbar__profile:hover { background: #e9edf4; }
.topbar__menu { display: none; }
.content { padding: 1.5rem; max-width: 1360px; width: 100%; }
.content:focus { outline: none; }
@media (max-width: 960px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s; }
  .sidebar.is-open { transform: none; }
  .main { margin-left: 0; }
  .topbar__menu { display: inline-grid; }
  .topbar { padding: .45rem .75rem; flex-wrap: wrap; }
  .topbar__filter { order: 5; width: 100%; }
  .topbar__filter select { max-width: none; width: 100%; }
  .content { padding: 1rem .75rem 5rem; }
  .hide-sm { display: none; }
}

/* Auth */
.auth { display: grid; place-items: center; min-height: 100vh; padding: 1rem; background: linear-gradient(160deg, #1d2b53, #2f6bff); }
.auth__card { width: 100%; max-width: 420px; background: #fff; border-radius: var(--r-lg); padding: 2rem; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.auth__title { font-size: 1.3rem; text-align: center; }
.error-page { text-align: center; }
.error-page__code { font-size: 3rem; font-weight: 800; color: var(--c-accent); margin: 0; }

/* Panels & grids */
.panel { background: var(--c-panel); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 1.15rem 1.25rem; margin-bottom: 1.25rem; box-shadow: var(--shadow); }
.panel--flush { padding: 0; overflow: hidden; }
.panel--narrow { max-width: 560px; }
.panel--inset { background: #f7f9fc; box-shadow: none; padding: .75rem 1rem; margin: 1rem 0; }
.panel--inline { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .65rem 1rem; }
.panel--warning { border-color: #f1d29a; background: var(--c-warn-50); }
.panel--sticky { position: sticky; top: 72px; z-index: 2; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; flex-wrap: wrap; }
.panel__head .panel__title { margin: 0; }
.panel__title { font-size: 1rem; display: flex; align-items: center; gap: .45rem; }
details.panel > summary { cursor: pointer; list-style: none; margin: 0; }
details.panel > summary::-webkit-details-marker { display: none; }
details.panel[open] > summary { margin-bottom: .75rem; }
.grid { display: grid; gap: 1.25rem; }
.grid > .panel { margin-bottom: 0; }
.grid { margin-bottom: 1.25rem; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 1100px) { .grid--2, .grid--2-1 { grid-template-columns: 1fr; } }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.page-head p { margin: 0; }
.empty { text-align: center; color: var(--c-muted); padding: 2rem 1rem; display: grid; justify-items: center; gap: .5rem; }
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--c-line); margin-bottom: 1rem; overflow-x: auto; }
.tabs a { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .9rem; text-decoration: none; color: var(--c-muted); font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a[aria-current="page"] { color: var(--c-ink); border-color: var(--c-accent); }
.segmented { display: inline-flex; border: 1px solid var(--c-line-2); border-radius: var(--r-sm); overflow: hidden; }
.segmented a { padding: .35rem .8rem; text-decoration: none; color: var(--c-ink-2); font-weight: 600; font-size: .85rem; }
.segmented a[aria-current="true"] { background: var(--c-ink); color: #fff; }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { display: grid; gap: .15rem; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 1rem 1.1rem; text-decoration: none; color: var(--c-ink); box-shadow: var(--shadow); border-top: 3px solid var(--c-ink); }
.kpi:hover { border-color: var(--c-line-2); }
.kpi--ok { border-top-color: var(--c-ok); }
.kpi--info { border-top-color: var(--c-info); }
.kpi--bad { border-top-color: var(--c-bad); }
.kpi__label { font-size: .8rem; color: var(--c-muted); font-weight: 600; }
.kpi__value { font-size: 1.9rem; font-weight: 750; line-height: 1.1; }
.kpi__value small { font-size: 1rem; color: var(--c-muted); font-weight: 600; }
.kpi__hint { font-size: .72rem; color: var(--c-muted); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin: 0 0 1rem; }
.stats div { background: #f7f9fc; border-radius: var(--r); padding: .6rem .75rem; }
.stats dt { font-size: .75rem; color: var(--c-muted); }
.stats dd { margin: 0; font-weight: 700; font-size: 1.1rem; }
@media (max-width: 600px) { .stats { grid-template-columns: 1fr; } }

/* Forms */
.field { display: grid; gap: .3rem; margin-bottom: .9rem; }
.field label, .label { font-weight: 600; font-size: .85rem; color: var(--c-ink-2); }
.field__hint { font-size: .78rem; color: var(--c-muted); margin: 0; }
.field__error { font-size: .8rem; color: var(--c-bad); margin: 0; font-weight: 600; }
.field--wide { grid-column: 1 / -1; }
.field--end { align-self: end; }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="url"], input[type="number"], input[type="date"], input[type="datetime-local"], input:not([type]), select, textarea {
  width: 100%; padding: .5rem .65rem; border: 1px solid var(--c-line-2); border-radius: var(--r-sm); background: #fff; min-height: 38px;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--c-accent); outline: 2px solid var(--c-accent-50); }
[aria-invalid="true"] { border-color: var(--c-bad) !important; }
.input--sm { max-width: 110px; }
.input-group { display: flex; gap: .25rem; }
.stack > * + * { margin-top: .25rem; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 1rem; align-items: start; }
.form-grid--3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: .75rem; }
.checks { display: flex; flex-wrap: wrap; gap: .4rem 1rem; border: 0; padding: 0; margin: 0 0 .75rem; }
.checks label { display: inline-flex; gap: .4rem; align-items: center; font-weight: 500; font-size: .9rem; }
.checks--stack { flex-direction: column; }
.checks--indent { padding-left: 2.6rem; }
.switch { display: flex; align-items: center; gap: .6rem; margin: 0 0 .7rem; cursor: pointer; font-size: .9rem; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__ui { width: 38px; height: 22px; border-radius: 999px; background: var(--c-line-2); position: relative; flex: none; transition: background .15s; }
.switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + .switch__ui { background: var(--c-accent); }
.switch input:checked + .switch__ui::after { transform: translateX(16px); }
.switch input:focus-visible + .switch__ui { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.consent { display: flex; gap: .5rem; align-items: flex-start; font-size: .85rem; background: #f7f9fc; padding: .6rem .75rem; border-radius: var(--r); margin: .5rem 0; }
.consent input { margin-top: .2rem; }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .6rem; margin-bottom: 1rem; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: .7rem .9rem; }
.filters label { display: grid; gap: .2rem; font-size: .75rem; font-weight: 600; color: var(--c-muted); }
.filters select, .filters input { min-height: 34px; padding: .3rem .5rem; font-size: .85rem; }
.filters__search { flex: 1 1 220px; }
.filters__end { margin-left: auto; }

/* Tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--c-line); vertical-align: top; }
.table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--c-muted); background: #f7f9fc; font-weight: 700; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; white-space: nowrap; }
.table .actions { text-align: right; white-space: nowrap; }
.table--compact th, .table--compact td { padding: .4rem .55rem; }
.table__group th { background: #eef1f6; color: var(--c-ink); }
tr.is-muted td { opacity: .6; }
.log--error td:first-child { box-shadow: inset 3px 0 var(--c-bad); }
.log--warning td:first-child { box-shadow: inset 3px 0 var(--c-warn); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: 0 0 1rem; font-size: .9rem; }
.kv dt { color: var(--c-muted); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.kv--inline { margin: .5rem 0; }
.plain-list { list-style: none; display: grid; gap: .35rem; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 1rem; margin: 1rem 0; }

/* Accounts */
.account-list { list-style: none; display: grid; gap: .55rem; }
.account-list li { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .9rem; }
.account-list a { color: var(--c-ink); text-decoration: none; }
.profile { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar--empty { display: grid; place-items: center; background: #eef1f6; color: var(--c-muted); }
.scope-list, .mode-list { list-style: none; display: grid; gap: .55rem; margin-bottom: 1rem; }
.scope-list li { display: flex; gap: .5rem; align-items: flex-start; }
.scope-list .is-ok svg, .mode-list .is-ok { color: var(--c-ok); }
.scope-list .is-missing svg { color: var(--c-bad); }
.mode-list li { padding: .45rem .65rem; border-radius: var(--r-sm); background: #f7f9fc; font-size: .9rem; }
.mode-list .is-missing { color: var(--c-muted); }
.role-list { list-style: none; display: grid; gap: .4rem; }

/* Week strip & calendar */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .5rem; }
@media (max-width: 900px) { .week { grid-template-columns: 1fr; } }
.week__day { background: #f7f9fc; border-radius: var(--r); padding: .5rem; min-height: 90px; display: grid; align-content: start; gap: .35rem; }
.week__day.is-today { background: var(--c-accent-50); box-shadow: inset 0 0 0 1.5px var(--c-accent); }
.week__date { font-size: .78rem; font-weight: 700; margin: 0; }
.week__date span { color: var(--c-muted); font-weight: 600; }
.event { display: grid; gap: 1px; padding: .3rem .45rem; border-radius: 6px; background: #fff; border-left: 3px solid var(--c-muted); text-decoration: none; color: var(--c-ink); font-size: .75rem; line-height: 1.3; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.event:hover { background: #fdfdff; box-shadow: 0 2px 6px rgba(0, 0, 0, .1); }
.event--instagram { border-left-color: var(--c-ig); }
.event--tiktok { border-left-color: var(--c-tt-accent); }
.event--failed { background: var(--c-bad-50); }
.event--published { opacity: .8; }
.event--cancelled { opacity: .5; text-decoration: line-through; }
.event__time { font-weight: 700; }
.event__title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.event__meta { color: var(--c-muted); font-size: .7rem; display: flex; gap: .2rem; align-items: center; }
.cal-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.cal-toolbar__label { font-size: 1.15rem; margin: 0 0 0 .5rem; }
.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--c-line); border: 1px solid var(--c-line); border-radius: var(--r-lg); overflow: hidden; margin-bottom: .75rem; }
.calendar__dow { background: #f7f9fc; padding: .4rem; font-size: .75rem; font-weight: 700; color: var(--c-muted); text-align: center; }
.calendar__day { background: #fff; min-height: 118px; padding: .35rem; display: grid; align-content: start; gap: .3rem; min-width: 0; }
.calendar--week .calendar__day { min-height: 360px; }
.calendar__day.is-out { background: #fafbfd; }
.calendar__day.is-out .calendar__date { color: #b3bacb; }
.calendar__day.is-today .calendar__date { color: var(--c-accent); }
.calendar__date { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; font-weight: 700; }
.calendar__dow-sm { display: none; }
.calendar__add { opacity: 0; color: var(--c-muted); }
.calendar__day:hover .calendar__add, .calendar__add:focus { opacity: 1; }
@media (max-width: 760px) {
  .calendar { grid-template-columns: 1fr; }
  .calendar__dow { display: none; }
  .calendar__day { min-height: 0; }
  .calendar--week .calendar__day { min-height: 0; }
  .calendar__day.is-out { display: none; }
  .calendar__dow-sm { display: inline; color: var(--c-muted); font-weight: 600; }
}

/* Timeline */
.timeline { list-style: none; display: grid; gap: .55rem; }
.timeline__item { display: grid; grid-template-columns: 130px 1fr; gap: .75rem; font-size: .87rem; padding-left: .6rem; border-left: 3px solid var(--c-line-2); }
.timeline__item--error { border-left-color: var(--c-bad); }
.timeline__item--warning { border-left-color: var(--c-warn); }
.timeline__time { color: var(--c-muted); font-size: .78rem; }
.timeline--compact .timeline__item { grid-template-columns: 150px 1fr; font-size: .8rem; }
@media (max-width: 600px) { .timeline__item, .timeline--compact .timeline__item { grid-template-columns: 1fr; gap: .1rem; } }

/* Media library */
.media-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .9rem; margin-bottom: 1rem; }
.media-grid--pick { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); max-height: 460px; overflow-y: auto; padding: .25rem; }
.media-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r); overflow: hidden; display: grid; align-content: start; }
.media-card > a, .media-card > label:first-child { text-decoration: none; color: var(--c-ink); display: grid; }
.media-card__title { font-size: .82rem; font-weight: 600; padding: .45rem .55rem 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-card__meta { font-size: .72rem; color: var(--c-muted); padding: .15rem .55rem; display: flex; gap: .3rem; flex-wrap: wrap; align-items: center; }
.media-card__meta:last-child { padding-bottom: .5rem; }
.media-card--pick { position: relative; cursor: pointer; }
.media-card--pick input[type="checkbox"] { position: absolute; top: .45rem; left: .45rem; z-index: 2; width: 18px; height: 18px; }
.media-card--pick:has(input:checked) { border-color: var(--c-accent); box-shadow: 0 0 0 2px var(--c-accent); }
.media-card__order { font-size: .72rem; padding: .3rem .55rem .5rem; display: flex; gap: .35rem; align-items: center; color: var(--c-muted); }
.media-card__order input { width: 56px; min-height: 26px; padding: .1rem .3rem; }
.js .media-card__order { display: none; }
.thumb { position: relative; display: block; aspect-ratio: 1; background: #eef1f6; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb__ph { display: grid; place-items: center; height: 100%; color: var(--c-muted); }
.thumb__badge { position: absolute; right: .35rem; bottom: .35rem; background: rgba(10, 15, 30, .7); color: #fff; font-size: .7rem; font-weight: 700; border-radius: 4px; padding: .05rem .35rem; display: flex; gap: .2rem; align-items: center; }
.media-strip { list-style: none; display: flex; gap: .4rem; flex-wrap: wrap; margin: .75rem 0; }
.media-strip li { width: 64px; }
.preview-box { background: #0f1629; border-radius: var(--r); overflow: hidden; margin-bottom: 1rem; display: grid; place-items: center; max-height: 560px; }
.preview-box img, .preview-box video { max-height: 560px; width: auto; }

/* Uploader */
.dropzone { display: grid; justify-items: center; gap: .35rem; text-align: center; padding: 1.5rem 1rem; border: 2px dashed var(--c-line-2); border-radius: var(--r-lg); cursor: pointer; color: var(--c-ink-2); background: #fafbfd; }
.dropzone:hover, .dropzone.is-over { border-color: var(--c-accent); background: var(--c-accent-50); }
.dropzone--sm { padding: .7rem; display: flex; justify-content: center; align-items: center; }
.upload-list { list-style: none; display: grid; gap: .4rem; margin-top: .6rem; }
.upload-item { display: grid; grid-template-columns: 1fr auto; gap: .2rem .75rem; font-size: .82rem; padding: .45rem .6rem; background: #f7f9fc; border-radius: var(--r-sm); }
.upload-item progress { grid-column: 1 / -1; width: 100%; height: 6px; }
.upload-item--error { background: var(--c-bad-50); color: var(--c-bad); }
.upload-item--done { background: var(--c-ok-50); }
.picker summary { cursor: pointer; font-weight: 600; font-size: .9rem; margin: .75rem 0 .5rem; }

/* Composer */
.composer { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 1.25rem; align-items: start; }
@media (max-width: 1100px) { .composer { grid-template-columns: 1fr; } .panel--sticky { position: static; } }
.tray { list-style: none; display: grid; gap: .45rem; margin-bottom: .5rem; }
.tray__item { display: grid; grid-template-columns: 26px 56px 1fr auto; gap: .6rem; align-items: center; padding: .35rem .5rem; background: #f7f9fc; border-radius: var(--r-sm); font-size: .85rem; }
.tray__item .thumb { width: 56px; border-radius: 4px; }
.tray__n { font-weight: 700; color: var(--c-muted); text-align: center; }
.targets { border: 0; padding: 0; margin: 0 0 1rem; display: grid; gap: .45rem; }
.targets legend { font-weight: 700; display: flex; gap: .4rem; align-items: center; margin-bottom: .35rem; font-size: .9rem; }
.target { display: grid; gap: .3rem; padding: .5rem .6rem; border: 1px solid var(--c-line); border-radius: var(--r-sm); }
.target.is-locked { background: #f7f9fc; }
.target__check { display: flex; gap: .5rem; align-items: center; font-size: .88rem; cursor: pointer; }
.target__mode { min-height: 32px !important; font-size: .82rem; padding: .2rem .4rem !important; }
.creator-info { background: var(--c-tt-50); border-radius: var(--r-sm); padding: .5rem .65rem; margin-bottom: .75rem; }
/* Without JS the TikTok options are always visible; with JS they follow the account selection. */
.js [data-tt-options]:not(.is-visible) { display: none; }

/* Preview (phone mock) */
.preview, .phone { border: 1px solid var(--c-line); border-radius: 18px; overflow: hidden; background: #fff; max-width: 340px; margin: 0 auto .75rem; }
.phone__bar { display: flex; gap: .45rem; align-items: center; padding: .55rem .75rem; font-size: .85rem; border-bottom: 1px solid var(--c-line); }
.phone--tiktok { background: #000; color: #fff; border-color: #000; }
.phone--tiktok .phone__bar { border-color: #222; }
.phone__media, .preview__media { position: relative; background: #0f1629; display: grid; place-items: center; min-height: 200px; aspect-ratio: 4 / 5; }
.phone--tiktok .phone__media { aspect-ratio: 9 / 16; }
.phone__media img, .phone__media video, .preview__media img, .preview__media video { width: 100%; height: 100%; object-fit: cover; }
.phone__count { position: absolute; top: .5rem; right: .5rem; background: rgba(0, 0, 0, .6); color: #fff; font-size: .72rem; padding: .05rem .4rem; border-radius: 999px; }
.phone__caption, .preview__caption { padding: .6rem .75rem; font-size: .82rem; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 220px; overflow-y: auto; }
.caption-text { white-space: pre-wrap; font-family: inherit; font-size: .85rem; background: #f7f9fc; padding: .6rem .75rem; border-radius: var(--r); max-height: 240px; overflow: auto; }

/* Post detail */
.target-card { border: 1px solid var(--c-line); border-radius: var(--r); padding: .75rem .9rem; margin-bottom: .75rem; border-left: 4px solid var(--c-line-2); }
.target-card--published { border-left-color: var(--c-ok); }
.target-card--failed { border-left-color: var(--c-bad); }
.target-card--scheduled, .target-card--queued { border-left-color: var(--c-info); }
.target-card--publishing { border-left-color: #6b34c9; }
.target-card--sent_to_inbox { border-left-color: var(--c-warn); }
.target-card__head { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.target-card .btn-row { margin-top: .5rem; }
.manual-box, .log-box { margin-top: .6rem; font-size: .88rem; }
.manual-box summary, .log-box summary { cursor: pointer; font-weight: 600; display: inline-flex; gap: .35rem; align-items: center; }
.manual-box ol { padding-left: 1.2rem; margin: .5rem 0; display: grid; gap: .3rem; }
.log-box .timeline { margin-top: .5rem; }
.target-dots { display: flex; flex-wrap: wrap; gap: .25rem; }
.target-dot { display: inline-flex; gap: .2rem; align-items: center; font-size: .7rem; padding: .05rem .4rem; border-radius: 999px; background: #eceff5; color: var(--c-ink-2); }
.target-dot--published { background: var(--c-ok-50); color: var(--c-ok); }
.target-dot--failed { background: var(--c-bad-50); color: var(--c-bad); }
.target-dot--scheduled, .target-dot--queued { background: var(--c-info-50); color: var(--c-info); }
.target-dot--publishing { background: #f1e8ff; color: #6b34c9; }
.target-dot--sent_to_inbox { background: var(--c-warn-50); color: var(--c-warn); }
.check-list { list-style: none; display: grid; gap: .6rem; margin-bottom: 1rem; }
.check { border: 1px solid var(--c-line); border-radius: var(--r); padding: .6rem .8rem; border-left: 4px solid var(--c-ok); }
.check--warn { border-left-color: var(--c-warn); }
.check--bad { border-left-color: var(--c-bad); background: #fffafa; }
.check__head { display: flex; gap: .45rem; flex-wrap: wrap; align-items: center; }
.check__msgs { margin: .35rem 0 0 1.1rem; font-size: .84rem; display: grid; gap: .2rem; color: var(--c-warn); }
.check__msgs--bad { color: var(--c-bad); }

/* Analytics charts */
.chart-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.chart { margin: 0; background: #f7f9fc; border-radius: var(--r); padding: .6rem .75rem; }
.chart figcaption { font-size: .85rem; margin-bottom: .4rem; }
.bars { width: 100%; height: 90px; }
.bars rect { fill: var(--c-ig); opacity: .85; }
.bars rect:hover { opacity: 1; }
.chart__axis { display: flex; justify-content: space-between; }

/* Brand sections (Content Calendar / Analytics submenus, brand tabs, brand-coloured charts) */
.nav--sub { margin: 2px 0 4px 30px; }
.nav--sub a { padding-top: 6px; padding-bottom: 6px; font-size: .92em; }
.segmented--gap { margin-bottom: 12px; }
.panel__title--section { margin-top: 24px; }
/* Per-brand colours (.bars rect.brand--<key>, .legend-dot.brand--<key>) come from /brand-colors.css. */
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin: 0 4px 0 10px; vertical-align: middle; background: #64748b; }

/* Meta Ads: image picker on the create-ad form */
.ads-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; border: 0; padding: 0; margin: 0 0 14px; }
.ads-images legend { font-weight: 600; margin-bottom: 6px; }
.ads-image { display: flex; flex-direction: column; gap: 4px; cursor: pointer; border: 1px solid #e2e8f0; border-radius: 8px; padding: 6px; }
.ads-image img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.ads-image:has(input:checked) { outline: 2px solid #2563eb; }

/* Google Maps (Business Profile) pages */
.text-ok { color: #059669; }
.check { display: block; margin: 4px 0; }
.gmaps-photo { display: block; max-width: 100%; max-height: 260px; border-radius: 8px; margin-bottom: 10px; }
.gmaps-review__head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; }
.gmaps-stars { color: #f59e0b; letter-spacing: 1px; }
.gmaps-reply { border-left: 3px solid #2563eb; padding-left: 10px; margin: 8px 0; }

/* Reels cover (Content Library video page + composer) */
.cover-box { border-top: 1px solid #e2e8f0; margin-top: 12px; padding-top: 12px; }
.cover-thumb { display: block; max-width: 160px; max-height: 284px; border-radius: 6px; margin: 6px 0; }
.cover-thumb--sm { display: inline-block; max-width: 48px; max-height: 85px; vertical-align: middle; margin: 0 0 0 6px; }

/* ==========================================================================
   Theme (light): clean white surfaces with the Kirtara "Senja" plum accents.
   Overrides the base rules above.
   ========================================================================== */
:root {
  --c-ink: #1d2939; --c-ink-2: #344054; --c-muted: #667085; --c-line: #eaecf0; --c-line-2: #d0d5dd;
  --c-bg: #faf7f5; --c-panel: #fff; --c-brand: #fff; --c-accent: #6b2fa0; --c-accent-50: #f3ebfa;
  --c-blue: #5b2a86; --c-blue-50: #f3ebfa;
  --c-ok: #079455; --c-ok-50: #ecfdf3; --c-bad: #d92d20; --c-bad-50: #fef3f2; --c-warn: #b54708; --c-warn-50: #fffaeb;
  --c-info: #1769aa; --c-info-50: #eaf3fb;
  --font: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Roboto, Arial, sans-serif;
  --r-sm: 8px; --r: 10px; --r-lg: 14px; --sidebar-w: 252px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 14px rgba(16, 24, 40, .04);
}
body { font-size: 14px; background: var(--c-bg); }
h1, h2, h3 { letter-spacing: -.015em; font-weight: 650; }
a { color: var(--c-blue); text-underline-offset: 2px; }
.link { color: var(--c-blue); }
.strong { color: var(--c-ink); }
:focus-visible { outline: 2px solid var(--c-blue); outline-offset: 2px; }
code { background: #f2f4f7; }
.kpi__value, .num, .table .num { font-variant-numeric: tabular-nums; }

/* Sidebar */
.sidebar { background: #fff; color: var(--c-ink-2); border-right: 1px solid var(--c-line); }
.brand { flex-direction: column; align-items: flex-start; gap: .3rem; padding: 1.2rem 1.25rem 1rem; color: var(--c-ink); border-bottom: 1px solid var(--c-line); margin-bottom: .5rem; }
.brand__logo { width: 158px; height: auto; }
.brand__label { font-size: .66rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--c-accent); padding-left: 3px; }
.nav { padding: .25rem .8rem; gap: 2px; }
.nav a { gap: .7rem; padding: .55rem .75rem; font-weight: 550; font-size: .875rem; color: #475467; border-radius: 10px; }
.nav a .icon { width: 18px; height: 18px; color: #98a2b3; }
.nav a:hover { background: #f5f7fb; color: var(--c-ink); }
.nav a:hover .icon { color: var(--c-ink-2); }
.nav a[aria-current="page"] { background: var(--c-accent-50); color: var(--c-accent); font-weight: 650; }
.nav a[aria-current="page"] .icon { color: var(--c-accent); }
.nav--sub { margin: 2px 0 6px 21px; padding: 0 0 0 10px; border-left: 2px solid #f2f4f7; }
.nav--sub a { font-size: .82rem; padding: .38rem .65rem; color: #667085; font-weight: 500; }
.nav--sub a[aria-current="page"] { background: transparent; color: var(--c-accent); font-weight: 650; }
.nav__badge { background: var(--c-accent); color: #fff; font-weight: 700; }
.sidebar__foot { border-top: 1px solid var(--c-line); color: var(--c-muted); font-size: .8rem; }
.dot--ok { box-shadow: 0 0 0 3px var(--c-ok-50); }

/* Topbar & content */
.topbar { min-height: 60px; padding: .55rem 1.75rem; background: rgba(255, 255, 255, .9); border-bottom: 1px solid var(--c-line); }
.topbar__title { font-size: 1.05rem; font-weight: 700; color: var(--c-ink); }
.topbar__profile { color: var(--c-ink-2); border-radius: 999px; padding: .3rem .7rem; background: #f5f7fb; }
.topbar__profile:hover, .icon-btn:hover, .btn--ghost:hover { background: #eef1f6; }
.backdrop { background: rgba(16, 24, 40, .35); }
.content { padding: 1.75rem; max-width: 1400px; }
@media (max-width: 960px) { .content { padding: 1rem .85rem 5rem; } .topbar { padding: .45rem .75rem; } }

/* Buttons */
.btn { --bg: var(--c-blue); --fg: #fff; --bd: var(--bg); min-height: 38px; padding: .45rem 1rem; border-width: 1px; border-radius: 10px; font-weight: 600; font-size: .84rem; box-shadow: 0 1px 2px rgba(16, 24, 40, .06); transition: background-color .15s, border-color .15s, box-shadow .15s; }
.btn:hover { filter: none; --bg: #125a93; --bd: #125a93; }
.btn--primary { --bg: var(--c-accent); --bd: var(--c-accent); }
.btn--primary:hover { --bg: #c81e25; --bd: #c81e25; box-shadow: 0 4px 12px rgba(227, 36, 43, .25); }
.btn--outline { --bg: #fff; --fg: var(--c-ink-2); --bd: var(--c-line-2); }
.btn--outline:hover { --bg: #f9fafb; --bd: #98a2b3; }
.btn--ghost { --bg: transparent; --fg: var(--c-ink-2); --bd: transparent; box-shadow: none; }
.btn--sm { min-height: 32px; padding: .25rem .7rem; font-size: .8rem; border-radius: 8px; }
.icon-btn { border-radius: 10px; }

/* Panels */
.panel { border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 1.3rem 1.4rem; box-shadow: var(--shadow); }
.panel__title { font-size: .98rem; font-weight: 700; color: var(--c-ink); }
.panel__title .icon { color: var(--c-accent); }
.panel--inset, .stats div, .chart, .mode-list li, .tray__item, .upload-item, .consent, .caption-text, .target.is-locked { background: #f9fafb; }
.panel--inset { border: 1px solid var(--c-line); box-shadow: none; }
.chart { border: 1px solid var(--c-line); border-radius: 12px; padding: .8rem .9rem; }

/* KPI cards — each gets its own accent colour */
.kpis { gap: 1rem; }
.kpi { position: relative; overflow: hidden; border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 1.1rem 1.2rem 1rem; box-shadow: var(--shadow); gap: .35rem; --kc: var(--c-accent); }
.kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--kc); }
.kpi::after { content: ""; position: absolute; right: -28px; top: -28px; width: 84px; height: 84px; border-radius: 50%; background: var(--kc); opacity: .07; }
.kpis > .kpi:nth-child(5n+2) { --kc: var(--c-blue); }
.kpis > .kpi:nth-child(5n+3) { --kc: #12b76a; }
.kpis > .kpi:nth-child(5n+4) { --kc: #f79009; }
.kpis > .kpi:nth-child(5n+5) { --kc: #7a5af8; }
.kpi--ok { --kc: #12b76a !important; }
.kpi--bad { --kc: var(--c-bad) !important; }
.kpi--info { --kc: var(--c-blue) !important; }
.kpi:hover { border-color: var(--c-line-2); box-shadow: 0 6px 20px rgba(16, 24, 40, .07); }
.kpi__label { font-size: .78rem; font-weight: 600; color: var(--c-muted); }
.kpi__value { font-size: 1.75rem; font-weight: 700; letter-spacing: -.02em; color: var(--c-ink); }
.kpi--bad .kpi__value { color: var(--c-bad); }
.kpi--ok .kpi__value { color: var(--c-ok); }

/* Tabs, segmented, filters */
.segmented { background: #eef1f6; border: 0; border-radius: 10px; padding: 4px; gap: 2px; }
.segmented a { border-radius: 8px; padding: .35rem .85rem; font-weight: 600; font-size: .82rem; color: var(--c-muted); }
.segmented a:hover { color: var(--c-ink); }
.segmented a[aria-current="true"] { background: #fff; color: var(--c-accent); box-shadow: 0 1px 3px rgba(16, 24, 40, .1); }
.segmented a .icon { display: inline-block; vertical-align: -3px; }
.tabs a { font-weight: 600; }
.tabs a[aria-current="page"] { color: var(--c-accent); border-color: var(--c-accent); }
.filters { border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: .85rem 1rem; box-shadow: var(--shadow); }
.filters label { font-size: .75rem; color: var(--c-muted); }

/* Forms */
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="url"], input[type="number"], input[type="date"], input[type="datetime-local"], input:not([type]), select, textarea {
  border-color: var(--c-line-2); border-radius: 10px; min-height: 38px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
input:focus, select:focus, textarea:focus { border-color: var(--c-blue); outline: 4px solid rgba(23, 105, 170, .12); }
.field label, .label { font-weight: 600; color: var(--c-ink-2); }
.switch input:checked + .switch__ui { background: var(--c-blue); }

/* Tables */
.table { font-size: .87rem; }
.table th { background: #f9fafb; font-size: .72rem; letter-spacing: .04em; color: var(--c-muted); font-weight: 600; }
.table td { border-bottom-color: #f2f4f7; }
.table tbody tr:hover td { background: #fcfcfd; }
.table__group th { background: #f2f4f7; color: var(--c-ink); }

/* Status, badges, alerts */
.status, .badge, .target-dot { border-radius: 999px; font-weight: 600; }
.status { font-size: .72rem; padding: .12rem .6rem; }
.role { border-radius: 999px; background: #f2f4f7; color: var(--c-ink-2); padding: .05rem .5rem; }
.role--admin { background: var(--c-accent-50); color: var(--c-accent); }
.role--marketing { background: var(--c-blue-50); color: var(--c-blue); }
.chip { border-color: var(--c-line); }
.chip.is-active { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.alert { border: 1px solid; border-radius: 12px; }
.alert--success { border-color: #abefc6; background: var(--c-ok-50); }
.alert--error { border-color: #fecdca; background: var(--c-bad-50); }
.alert--info { border-color: #b2ddff; background: var(--c-info-50); }
.alert--warning { border-color: #fedf89; background: var(--c-warn-50); }

/* Calendar & misc */
.calendar { border-radius: var(--r-lg); box-shadow: var(--shadow); }
.calendar__dow { background: #f9fafb; font-size: .72rem; }
.calendar__day.is-today .calendar__date, .error-page__code { color: var(--c-accent); }
.week__day { background: #f9fafb; border: 1px solid var(--c-line); border-radius: 12px; }
.week__day.is-today { background: var(--c-accent-50); border-color: #fda29b; box-shadow: none; }
.event { box-shadow: 0 1px 2px rgba(16, 24, 40, .05); border-radius: 8px; }
.dropzone { border: 2px dashed var(--c-line-2); background: #f9fafb; border-radius: var(--r-lg); }
.dropzone:hover, .dropzone.is-over { border-color: var(--c-blue); background: var(--c-blue-50); }
.media-card { border-radius: var(--r-lg); box-shadow: var(--shadow); }
.media-card--pick:has(input:checked), .ads-image:has(input:checked) { border-color: var(--c-accent); box-shadow: 0 0 0 2px var(--c-accent); outline: 0; }
.gmaps-reply { border-left-color: var(--c-blue); }

/* Login */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem 1rem;
  background: radial-gradient(circle at 12% 12%, rgba(227, 36, 43, .10), transparent 38%), radial-gradient(circle at 88% 88%, rgba(23, 105, 170, .12), transparent 40%), #f5f7fb; }
.auth__wrap { width: 100%; max-width: 410px; display: grid; gap: 1.25rem; justify-items: center; }
.auth__card { width: 100%; max-width: 410px; border-radius: 18px; padding: 2rem; border: 1px solid var(--c-line); box-shadow: 0 12px 40px rgba(16, 24, 40, .08); }
.auth__brand { display: grid; justify-items: center; gap: .55rem; width: 100%; padding-bottom: 1.1rem; margin-bottom: 1.1rem; border-bottom: 1px solid var(--c-line); }
.auth__brand img { width: 210px; height: auto; }
.auth__brand span { font-size: .68rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--c-accent); }
.auth__title { font-size: 1.2rem; text-align: left; }
.auth__foot { color: var(--c-muted); font-size: .75rem; margin: 0; }

/* AI Content Planner */
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid--3 { grid-template-columns: 1fr; } }
.ai-plan-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin: 1rem 0 .75rem; padding-top: 1rem; border-top: 1px solid var(--c-line); }
.ai-plan-head .h3 { margin-top: 0; }
.ai-cell { min-width: 220px; max-width: 420px; }
.ai-cell p { margin: .3rem 0 0; }
.ai-kind { display: inline-block; padding: .12rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.ai-kind--reels { background: #fef0f0; color: #d92d20; }
.ai-kind--feed { background: #eaf3fb; color: #1769aa; }
.ai-kind--story { background: #f4f3ff; color: #6941c6; }
.cal-ai-btn { margin-left: auto; }

/* Calendar: colour per Instagram format (Reels / Feed / Story); TikTok keeps teal */
.cal-legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: 0 0 .6rem; color: var(--c-muted); }
.cal-legend__item { display: inline-flex; align-items: center; gap: .35rem; }
.cal-legend__item::before { content: ""; width: 12px; height: 12px; border-radius: 4px; background: var(--fc); }
.cal-legend__item--reels, .event--fmt-reels { --fc: #e3242b; --fb: #fef3f2; }
.cal-legend__item--feed, .event--fmt-feed { --fc: #1769aa; --fb: #eff8ff; }
.cal-legend__item--story, .event--fmt-story { --fc: #7a5af8; --fb: #f4f3ff; }
.cal-legend__item--tiktok { --fc: #00b8b0; }
.event--fmt-reels, .event--fmt-feed, .event--fmt-story { border-left-color: var(--fc); }
.event--fmt-reels:not(.event--failed), .event--fmt-feed:not(.event--failed), .event--fmt-story:not(.event--failed) { background: var(--fb); }
.event__fmt { color: var(--fc); font-weight: 700; }

/* Story Harian Wajib checklist */
.story-track th, .story-track td { text-align: center; vertical-align: middle; }
.story-track th:first-child, .story-track td:first-child { text-align: left; }
.story-cell { display: inline-grid; justify-items: center; min-width: 86px; padding: .35rem .5rem; border-radius: 10px; font-size: .75rem; font-weight: 700; text-decoration: none; border: 1px solid transparent; }
.story-cell small { font-weight: 500; font-size: .66rem; opacity: .85; }
.story-cell--published { background: #ecfdf3; color: #067647; border-color: #abefc6; }
.story-cell--scheduled { background: #eff8ff; color: #1769aa; border-color: #b2ddff; }
.story-cell--draft { background: #fffaeb; color: #b54708; border-color: #fedf89; }
.story-cell--failed, .story-cell.is-late { background: #fef3f2; color: #d92d20; border-color: #fecdca; }
.story-cell--missing { background: #f9fafb; color: #98a2b3; border: 1px dashed #d0d5dd; }

/* Postingan Rutin Wajib */
.day-picks { display: flex; flex-wrap: wrap; gap: .4rem; }
.day-pick { position: relative; cursor: pointer; }
.day-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.day-pick span { display: inline-grid; place-items: center; min-width: 52px; padding: .45rem .7rem; border-radius: 10px; border: 1px solid var(--c-line-2); background: #fff; font-weight: 650; font-size: .85rem; color: var(--c-muted); }
.day-pick input:checked + span { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.day-pick input:focus-visible + span { outline: 2px solid var(--c-blue); outline-offset: 2px; }
.rutin-card { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 1rem; align-items: start; padding: 1rem 0; border-top: 1px solid var(--c-line); }
.rutin-card:first-of-type { border-top: 0; }
.rutin-card.is-inactive { opacity: .6; }
.rutin-card__thumb .thumb { width: 76px; border-radius: 10px; }
.rutin-card__head { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.rutin-card__body p { margin: .2rem 0 .5rem; }
.rutin-days { display: flex; flex-wrap: wrap; gap: .35rem; }
.rutin-days .story-cell { min-width: 64px; padding: .3rem .4rem; }
.rutin-days .story-cell b { font-size: .75rem; }
.story-cell--off { background: transparent; color: #d0d5dd; border: 1px solid #f2f4f7; }
@media (max-width: 700px) { .rutin-card { grid-template-columns: 60px minmax(0, 1fr); } .rutin-card__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; } }
fieldset.field { border: 0; padding: 0; margin: 0 0 .9rem; min-width: 0; }
fieldset.field > legend { padding: 0; margin-bottom: .35rem; }

/* Story image design: palette cards + thumbnails in plan tables */
.palette-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.palette-card { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 1rem; align-items: start; padding: 1rem; border: 1px solid var(--c-line); border-radius: 14px; background: #fcfcfd; }
.palette-card__preview { width: 150px; height: auto; border-radius: 12px; box-shadow: 0 4px 14px rgba(16, 24, 40, .12); }
.palette-card .h3 { margin-top: 0; }
.palette-field { display: flex; align-items: center; gap: .5rem; font-size: .85rem; margin: 0 0 .45rem; }
.palette-field input[type="color"] { width: 42px; height: 32px; padding: 2px; border: 1px solid var(--c-line-2); border-radius: 8px; background: #fff; cursor: pointer; }
.ai-thumb { display: block; width: 64px; margin-top: .4rem; }
.ai-thumb .thumb { aspect-ratio: 9 / 16; border-radius: 8px; }

/* Story segments gallery */
.segment-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .9rem; }
.segment-card { margin: 0; display: grid; gap: .45rem; }
.segment-card img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 4px 14px rgba(16, 24, 40, .12); }
.segment-card figcaption { display: grid; font-size: .82rem; text-align: center; }
.segment-card figcaption span { color: var(--c-muted); }

/* Google Maps AI recommendations */
.gai-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.25rem; align-items: start; margin-bottom: 1rem; }
.gai-score { width: 110px; height: 110px; border-radius: 50%; display: grid; place-content: center; text-align: center; border: 8px solid var(--c-line); }
.gai-score strong { font-size: 2.1rem; line-height: 1; }
.gai-score span { font-size: .7rem; color: var(--c-muted); }
.gai-score--good { border-color: #12b76a; color: #067647; }
.gai-score--mid { border-color: #f79009; color: #b54708; }
.gai-score--low { border-color: #e3242b; color: #b42318; }
.gai-highlights { margin: .4rem 0 0 1.1rem; display: grid; gap: .2rem; font-size: .88rem; list-style: disc; }
.gai-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; margin-bottom: .75rem; }
.gai-card { border: 1px solid var(--c-line); border-left: 4px solid #f79009; border-radius: 12px; padding: 1rem 1.1rem; background: #fff; display: grid; gap: .45rem; align-content: start; }
.gai-card--tinggi { border-left-color: #e3242b; }
.gai-card--rendah { border-left-color: #12b76a; }
.gai-card header { display: flex; gap: .6rem; align-items: flex-start; }
.gai-num { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #f2f4f7; font-weight: 700; font-size: .8rem; }
.gai-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; }
.gai-tags span { font-size: .72rem; font-weight: 600; padding: .1rem .55rem; border-radius: 999px; background: #f2f4f7; color: var(--c-ink-2); }
.gai-card--tinggi .gai-prio { background: #fef3f2; color: #b42318; }
.gai-card--sedang .gai-prio { background: #fffaeb; color: #b54708; }
.gai-card--rendah .gai-prio { background: #ecfdf3; color: #067647; }
.gai-actions { margin: 0 0 0 1.1rem; display: grid; gap: .25rem; font-size: .86rem; list-style: decimal; }
.gai-target { margin: 0; font-size: .82rem; font-weight: 600; color: #067647; }
@media (max-width: 640px) { .gai-head { grid-template-columns: 1fr; } }
/* Google Maps — Ulasan Terbaru (live) + alert ulasan bintang 1-3 */
.rw-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; margin-bottom: .9rem; }
.rw-head .panel__title { margin: 0; }
.rw-head__end { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.rw-live { display: inline-flex; align-items: center; gap: .35rem; font-size: .7rem; font-weight: 750; letter-spacing: .05em; color: var(--c-ok); background: var(--c-ok-50); padding: .1rem .55rem; border-radius: 999px; }
.rw-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #12b76a; animation: rw-pulse 1.6s ease-in-out infinite; }
@keyframes rw-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.rw-alerts { border: 1px solid #fecdca; background: #fff6f5; border-radius: var(--r-lg); padding: .9rem 1rem; margin-bottom: 1rem; }
.rw-alerts__title { color: var(--c-bad); font-weight: 750; margin: 0 0 .75rem; }
.rw-alert { background: #fff; border: 1px solid #f6d3d0; border-left: 4px solid var(--c-bad); border-radius: var(--r); padding: .8rem .95rem; margin-bottom: .75rem; }
.rw-alert:last-child { margin-bottom: 0; }
.rw-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; font-size: .86rem; margin: 0 0 .35rem; }
.rw-stars { color: #f59e0b; letter-spacing: 1px; }
.rw-alert .rw-stars, .rw-item--low .rw-stars { color: var(--c-bad); }
.rw-new { background: var(--c-bad); color: #fff; font-size: .66rem; font-weight: 750; letter-spacing: .04em; padding: .05rem .45rem; border-radius: 999px; }
.rw-new--info { background: var(--c-accent); }
.rw-comment { margin: 0 0 .6rem; }
.rw-ai { background: var(--c-accent-50); border-radius: var(--r); padding: .65rem .85rem; margin: 0 0 .6rem; font-size: .88rem; }
.rw-ai p { margin: 0 0 .35rem; }
.rw-ai p:last-child { margin-bottom: 0; }
.rw-ai ol { padding-left: 1.25rem; margin: 0 0 .4rem; }
.rw-ai__title { font-weight: 700; color: var(--c-info); }
.rw-prio { font-size: .66rem; font-weight: 750; text-transform: uppercase; letter-spacing: .03em; padding: .05rem .45rem; border-radius: 999px; margin-left: .35rem; }
.rw-prio--tinggi { background: var(--c-bad-50); color: var(--c-bad); }
.rw-prio--sedang { background: var(--c-warn-50); color: var(--c-warn); }
.rw-prio--rendah { background: var(--c-ok-50); color: var(--c-ok); }
.rw-ok { color: var(--c-ok); background: var(--c-ok-50); border-radius: var(--r); padding: .55rem .8rem; font-weight: 600; font-size: .9rem; }
.rw-list { list-style: none; margin: 0 0 .5rem; }
.rw-item { padding: .6rem 0; border-top: 1px solid var(--c-line); }
.rw-item:first-child { border-top: 0; }
.rw-item .rw-comment { margin: 0; color: var(--c-ink-2); }
.rw-status { font-size: .7rem; font-weight: 650; padding: .05rem .45rem; border-radius: 999px; background: #eceff5; color: var(--c-ink-2); text-decoration: none; }
.rw-status--ok { background: var(--c-ok-50); color: var(--c-ok); }
.rw-status--draft { background: var(--c-info-50); color: var(--c-info); }
.rw-toast { position: fixed; right: 1rem; bottom: 1rem; z-index: 80; max-width: min(380px, calc(100vw - 2rem)); background: #fff; border: 1px solid var(--c-line); border-left: 4px solid var(--c-accent); border-radius: var(--r); box-shadow: 0 10px 30px rgba(23, 32, 58, .18); padding: .75rem .9rem; font-size: .9rem; cursor: pointer; animation: rw-in .25s ease-out; }
.rw-toast--bad { border-left-color: var(--c-bad); }
.rw-toast--n1 { bottom: 5.5rem; }
.rw-toast--n2 { bottom: 10rem; }
@keyframes rw-in { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 640px) { .rw-head__end { margin-left: 0; } }

/* ---------- Tools & Laporan ---------- */
.tk-tabs { flex-wrap: wrap; }
.tk-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; margin-top: 1rem; }
.tk-card { display: flex; flex-direction: column; gap: .35rem; color: var(--c-ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.tk-card:hover { border-color: var(--c-accent); box-shadow: 0 4px 18px rgba(47, 107, 255, .12); }
.tk-card__icon { display: inline-flex; width: 2.2rem; height: 2.2rem; align-items: center; justify-content: center; border-radius: var(--r-sm); background: var(--c-accent-50); color: var(--c-accent); }
.tk-pre { white-space: pre-wrap; font: inherit; font-size: .9rem; background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--r-sm); padding: .8rem 1rem; margin: 0; }
.tk-score { display: inline-block; margin-left: .5rem; padding: .1rem .55rem; border-radius: 999px; font-size: .85rem; font-weight: 700; }
.tk-score--good { background: var(--c-ok-50); color: var(--c-ok); }
.tk-score--mid { background: var(--c-warn-50); color: var(--c-warn); }
.tk-score--low { background: var(--c-bad-50); color: var(--c-bad); }
.tk-bar { margin: .7rem 0; }
.tk-bar__head { display: flex; justify-content: space-between; gap: .75rem; font-size: .9rem; margin-bottom: .3rem; }
.tk-bar__track { display: block; height: .55rem; background: var(--c-line); border-radius: 999px; overflow: hidden; }
.tk-bar__fill { display: block; height: 100%; border-radius: 999px; background: var(--c-accent); }
.tk-bar__fill--good { background: var(--c-ok); }
.tk-bar__fill--mid { background: #e19a1c; }
.tk-bar__fill--low { background: var(--c-bad); }
.tk-bar__fill--na { background: transparent; }
.tk-quote { margin: .35rem 0 0 .2rem; padding-left: .6rem; border-left: 3px solid var(--c-bad-50); color: var(--c-ink-2); }
.tk-stack { display: flex; height: .7rem; min-width: 120px; border-radius: 999px; overflow: hidden; background: var(--c-line); }
.tk-stack span { display: block; height: 100%; }
.tk-stack__pos { background: var(--c-ok); }
.tk-stack__neu { background: #b9c1d1; }
.tk-stack__neg { background: var(--c-bad); }
.tk-captions { display: grid; gap: .75rem; margin-top: .75rem; }
.tk-caption { border: 1px solid var(--c-line); border-radius: var(--r); padding: .8rem .95rem; background: #fff; }
.tk-caption__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .4rem; }
.tk-caption__body { margin: 0 0 .5rem; font-size: .92rem; color: var(--c-ink-2); }
.tk-approval { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-top: 1px solid var(--c-line); }
.tk-approval:first-of-type { border-top: 0; }
.tk-approval .btn-stack { min-width: 220px; }
.tk-own td { background: var(--c-accent-50); }
.tk-comment__head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.tk-comment__text { margin: .45rem 0; font-size: 1rem; }
.tk-comment textarea { width: 100%; }
.tk-qr { display: flex; justify-content: center; margin: .75rem 0; }
.tk-qr svg { max-width: 100%; height: auto; }
.tk-poster__sheet { border: 2px dashed var(--c-line-2); border-radius: var(--r-lg); padding: 1.2rem; text-align: center; background: #fff; margin-bottom: 1rem; }
.tk-poster__sheet .tk-poster__title { font-size: 1.25rem; font-weight: 700; margin: 0; color: var(--c-brand); }
.tk-poster__sub { margin: .3rem 0 0; color: var(--c-ink-2); }
.tk-poster__foot { margin: 0; font-size: .9rem; color: var(--c-muted); }
.tk-bank { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .75rem; padding: .6rem .75rem; background: var(--c-accent-50); border-radius: var(--r-sm); }
.tk-bank label { font-weight: 600; font-size: .9rem; }
.tk-w-0 { width: 0%; }
.tk-w-5 { width: 5%; }
.tk-w-10 { width: 10%; }
.tk-w-15 { width: 15%; }
.tk-w-20 { width: 20%; }
.tk-w-25 { width: 25%; }
.tk-w-30 { width: 30%; }
.tk-w-35 { width: 35%; }
.tk-w-40 { width: 40%; }
.tk-w-45 { width: 45%; }
.tk-w-50 { width: 50%; }
.tk-w-55 { width: 55%; }
.tk-w-60 { width: 60%; }
.tk-w-65 { width: 65%; }
.tk-w-70 { width: 70%; }
.tk-w-75 { width: 75%; }
.tk-w-80 { width: 80%; }
.tk-w-85 { width: 85%; }
.tk-w-90 { width: 90%; }
.tk-w-95 { width: 95%; }
.tk-w-100 { width: 100%; }

@media (max-width: 760px) {
  .tk-approval { flex-direction: column; }
  .tk-approval .btn-stack { min-width: 0; }
  .tk-cards { grid-template-columns: 1fr; }
  .tk-bar__head { font-size: .85rem; }
  .rw-alert, .tk-caption, .tk-comment { padding: .7rem; }
  .gmaps-review__head { flex-wrap: wrap; }
  .table-wrap { -webkit-overflow-scrolling: touch; }
  .segmented { overflow-x: auto; flex-wrap: nowrap; max-width: 100%; }
  .segmented a { white-space: nowrap; }
}
@media print {
  body.tk-printing * { visibility: hidden !important; }
  body.tk-printing .tk-poster__sheet.is-printing, body.tk-printing .tk-poster__sheet.is-printing * { visibility: visible !important; }
  body.tk-printing .tk-poster__sheet.is-printing { position: fixed; inset: 0; border: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; }
  body.tk-printing .tk-poster__sheet.is-printing .tk-poster__title { font-size: 2rem; }
  body.tk-printing .tk-poster__sheet.is-printing .tk-poster__sub { font-size: 1.3rem; }
  body.tk-printing .tk-poster__sheet.is-printing svg { width: 320px; height: 320px; }
}
/* ALL REPORT: platform choices under "Report social media" */
.tk-sub { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: -.25rem 0 .25rem 1.75rem; }
/* Konten 24 Jam */
.k24-head { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; }
.k24-item { display: grid; grid-template-columns: 1fr 220px; gap: 1.25rem; padding: 1rem 0; border-top: 1px solid var(--border, #e4e7ec); }
.k24-item:first-of-type { border-top: 0; }
.k24-item__main .h3 { margin: .25rem 0; }
.k24-item__side { display: flex; flex-direction: column; gap: .5rem; }
.k24-canvas { width: 100%; max-width: 220px; aspect-ratio: 9 / 16; height: auto; background: #111; border-radius: 10px; }
.k24-progress:empty { display: none; }
.k24-edit summary { cursor: pointer; font-weight: 600; margin: .5rem 0; }
.k24-days { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.k24-days input[type="time"] { width: auto; margin-left: .35rem; }
@media (max-width: 760px) { .k24-item { grid-template-columns: 1fr; } }
.k24-offscreen { position: fixed; left: 0; bottom: 0; width: 2px; height: 2px; opacity: .01; pointer-events: none; }
.k24-new__out { display: flex; gap: 1rem; align-items: flex-start; }
.k24-new__out .k24-canvas { max-width: 200px; }
.k24-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .75rem; }
.k24-rec { margin-top: .75rem; padding: .75rem; border: 1px dashed var(--border, #d0d5dd); border-radius: 10px; }
.k24-rec__script { font-size: 1.05rem; line-height: 1.6; }
.k24-rec--live { border-color: #e5484d; background: rgba(229, 72, 77, .06); }
/* ---------------------------------------------------------------- Campaign Marketing (mk-*) */
.mk-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.mk-head p { margin: 0; max-width: 760px; }
.mk-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .mk-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mk-money { font-size: 1.15rem; word-break: break-word; }
.mk-chart rect.mk-c1, .legend-dot.mk-c1 { fill: #2f6bff; background: #2f6bff; }
.mk-chart rect.mk-c2, .legend-dot.mk-c2 { fill: #f59e0b; background: #f59e0b; }
.mk-chart rect.mk-c3, .legend-dot.mk-c3 { fill: #10b981; background: #10b981; }
.mk-chart rect.mk-c4, .legend-dot.mk-c4 { fill: #c13584; background: #c13584; }
.mk-chart rect.mk-c5, .legend-dot.mk-c5 { fill: #64748b; background: #64748b; }
.mk-legend { margin: .3rem 0 0; }
.mk-legend .legend-dot:first-child { margin-left: 0; }
.mk-delta { font-weight: 700; font-size: .78rem; }
.mk-delta--up { color: var(--c-ok); }
.mk-delta--down { color: var(--c-bad); }
.mk-delta--new { color: var(--c-info); }
.mk-st { display: inline-block; padding: .1rem .5rem; border-radius: 999px; font-size: .72rem; font-weight: 700; background: #eef1f6; color: var(--c-ink-2); vertical-align: middle; white-space: nowrap; }
.mk-st--active { background: var(--c-info-50); color: var(--c-info); }
.mk-st--planning { background: var(--c-warn-50); color: var(--c-warn); }
.mk-st--completed { background: var(--c-ok-50); color: var(--c-ok); }
.mk-st--paused { background: #f3e8ff; color: #7e22ce; }
.mk-st--cancelled { background: var(--c-bad-50); color: var(--c-bad); }
.mk-cell-bar { min-width: 130px; }
.mk-cell-bar .tk-bar__track { margin-top: .25rem; }
.mk-day { font-weight: 700; font-size: .8rem; color: var(--c-muted); margin: .6rem 0 .3rem; text-transform: uppercase; letter-spacing: .03em; }
.mk-ev { border-left: 3px solid #94a3b8; background: #f7f9fc; margin-bottom: .3rem; }
.mk-ev--content { border-left-color: #2f6bff; background: #eef4ff; }
.mk-ev--ads { border-left-color: #f59e0b; background: #fff7e8; }
.mk-ev--event { border-left-color: #c13584; background: var(--c-ig-50); }
.mk-ev--milestone { border-left-color: #7e22ce; background: #f6efff; }
.mk-ev--kol { border-left-color: #10b981; background: #eafaf3; }
.mk-ev--task { border-left-color: #64748b; background: #f1f5f9; }
.mk-ev--campaign { border-left-color: var(--c-ink); background: #e9ecf3; }
.mk-lg { display: inline-block; padding: .1rem .5rem; margin: 0 .35rem .35rem 0; border-left: 3px solid; border-radius: 4px; }
.mk-list li { padding: .45rem 0; border-bottom: 1px solid var(--c-line); }
.mk-list li:last-child { border-bottom: 0; }
.mk-pr { font-size: .7rem; font-weight: 700; padding: .05rem .4rem; border-radius: 4px; background: #eef1f6; color: var(--c-ink-2); }
.mk-pr--high { background: var(--c-bad-50); color: var(--c-bad); }
.mk-pr--low { background: var(--c-ok-50); color: var(--c-ok); }
.mk-hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: .75rem; }
.mk-hero p { margin: .15rem 0; }
.mk-hero__title { margin: .2rem 0; font-size: 1.35rem; }
.mk-tabs { display: flex; flex-wrap: wrap; max-width: 100%; }
.mk-tabs a { border-right: 1px solid var(--c-line); }
.mk-details > summary { cursor: pointer; font-weight: 700; padding: .2rem 0; }
.mk-details[open] > summary { margin-bottom: .75rem; }
.mk-board { display: grid; grid-template-columns: repeat(8, minmax(220px, 1fr)); gap: .6rem; overflow-x: auto; padding-bottom: .5rem; margin-bottom: 1rem; }
.mk-col { background: #f1f4f9; border-radius: var(--r); padding: .5rem; min-height: 120px; }
.mk-col__title { font-size: .8rem; margin: .1rem .2rem .5rem; display: flex; justify-content: space-between; align-items: center; }
.mk-col--review { background: var(--c-warn-50); }
.mk-col--revision { background: var(--c-bad-50); }
.mk-col--approved, .mk-col--published { background: var(--c-ok-50); }
.mk-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-sm); padding: .5rem .6rem; margin-bottom: .5rem; box-shadow: var(--shadow); }
.mk-card p { margin: .15rem 0; }
.mk-card__title { font-weight: 700; font-size: .88rem; }
.mk-card__actions { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .4rem; align-items: flex-start; }
.mk-pop { position: relative; }
.mk-pop > summary { list-style: none; }
.mk-pop > summary::-webkit-details-marker { display: none; }
.mk-pop[open] > form { margin-top: .4rem; }
.mk-pop[open] { flex-basis: 100%; background: #fff; border: 1px solid var(--c-line-2); border-radius: var(--r-sm); padding: .5rem; }
.mk-pop textarea, .mk-pop input, .mk-pop select { max-width: 100%; }
.mk-pop .form-grid { grid-template-columns: 1fr; }
.mk-pop--right[open] { position: absolute; right: .5rem; z-index: 20; width: min(560px, 90vw); text-align: left; box-shadow: 0 10px 30px rgba(23, 32, 58, .18); white-space: normal; }
.mk-pop--right[open] .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
td.actions { position: relative; }
.mk-inline { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.mk-add { margin-top: .75rem; flex-wrap: wrap; }
.mk-done { text-decoration: line-through; color: var(--c-muted); }
.mk-milestones .timeline__item { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.mk-agenda { display: grid; gap: .2rem; }
.mk-agenda__day.is-today .mk-day { color: var(--c-accent); }
.mk-pad { padding: 1rem 1.1rem 0; }
.mk-sub { margin: 1.2rem 0 .5rem; }
.mk-kst, .mk-stage { display: inline-block; font-size: .72rem; font-weight: 700; padding: .1rem .45rem; border-radius: 999px; background: #eef1f6; color: var(--c-ink-2); white-space: nowrap; }
.mk-kst--posted, .mk-kst--paid, .mk-stage--approved, .mk-stage--published { background: var(--c-ok-50); color: var(--c-ok); }
.mk-kst--contracted, .mk-kst--brief_sent, .mk-stage--scheduled { background: var(--c-info-50); color: var(--c-info); }
.mk-kst--content_review, .mk-kst--negotiation, .mk-stage--review { background: var(--c-warn-50); color: var(--c-warn); }
.mk-kst--cancelled, .mk-stage--revision { background: var(--c-bad-50); color: var(--c-bad); }
.mk-ai-summary { margin: .4rem 0 .8rem; }
.mk-ai-h { margin: 1rem 0 .3rem; font-size: .92rem; }
.mk-ins { font-size: .7rem; font-weight: 700; text-transform: uppercase; padding: .05rem .35rem; border-radius: 4px; background: #eef1f6; }
.mk-ins--positif { background: var(--c-ok-50); color: var(--c-ok); }
.mk-ins--negatif { background: var(--c-bad-50); color: var(--c-bad); }
.mk-verdict { font-size: .7rem; font-weight: 700; text-transform: uppercase; padding: .05rem .4rem; border-radius: 4px; background: #eef1f6; }
.mk-verdict--lanjutkan { background: var(--c-ok-50); color: var(--c-ok); }
.mk-verdict--optimasi, .mk-verdict--evaluasi { background: var(--c-warn-50); color: var(--c-warn); }
.mk-verdict--hentikan { background: var(--c-bad-50); color: var(--c-bad); }
.mk-fc { display: grid; grid-template-columns: repeat(4, auto); gap: .2rem .8rem; }
.mk-types { display: flex; flex-wrap: wrap; gap: .2rem .7rem; border: 0; padding: 0; margin: 0; }
.mk-gantt__months { display: grid; grid-template-columns: 200px repeat(3, 1fr); font-size: .78rem; font-weight: 700; color: var(--c-muted); margin-bottom: .4rem; }
.mk-gantt__months span:first-child { grid-column: 2; }
.mk-gantt__row { display: grid; grid-template-columns: 200px 1fr; gap: .5rem; align-items: center; padding: .3rem 0; border-bottom: 1px solid var(--c-line); }
.mk-gantt__name { font-weight: 600; font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-gantt__track { position: relative; height: 18px; background: #f1f4f9; border-radius: 4px; }
.mk-gantt__bar { position: absolute; top: 2px; bottom: 2px; border-radius: 4px; background: var(--c-accent); min-width: 4px; padding: 0; }
.mk-gantt__bar.mk-st--planning, .mk-gantt__bar.mk-st--draft { background: #f59e0b; }
.mk-gantt__bar.mk-st--completed { background: #10b981; }
.mk-gantt__bar.mk-st--paused { background: #a855f7; }
@media (max-width: 700px) { .mk-gantt__row { grid-template-columns: 110px 1fr; } .mk-gantt__months { grid-template-columns: 110px repeat(3, 1fr); } }
.mk-l-0 { left: 0%; }
.mk-l-1 { left: 1%; }
.mk-l-2 { left: 2%; }
.mk-l-3 { left: 3%; }
.mk-l-4 { left: 4%; }
.mk-l-5 { left: 5%; }
.mk-l-6 { left: 6%; }
.mk-l-7 { left: 7%; }
.mk-l-8 { left: 8%; }
.mk-l-9 { left: 9%; }
.mk-l-10 { left: 10%; }
.mk-l-11 { left: 11%; }
.mk-l-12 { left: 12%; }
.mk-l-13 { left: 13%; }
.mk-l-14 { left: 14%; }
.mk-l-15 { left: 15%; }
.mk-l-16 { left: 16%; }
.mk-l-17 { left: 17%; }
.mk-l-18 { left: 18%; }
.mk-l-19 { left: 19%; }
.mk-l-20 { left: 20%; }
.mk-l-21 { left: 21%; }
.mk-l-22 { left: 22%; }
.mk-l-23 { left: 23%; }
.mk-l-24 { left: 24%; }
.mk-l-25 { left: 25%; }
.mk-l-26 { left: 26%; }
.mk-l-27 { left: 27%; }
.mk-l-28 { left: 28%; }
.mk-l-29 { left: 29%; }
.mk-l-30 { left: 30%; }
.mk-l-31 { left: 31%; }
.mk-l-32 { left: 32%; }
.mk-l-33 { left: 33%; }
.mk-l-34 { left: 34%; }
.mk-l-35 { left: 35%; }
.mk-l-36 { left: 36%; }
.mk-l-37 { left: 37%; }
.mk-l-38 { left: 38%; }
.mk-l-39 { left: 39%; }
.mk-l-40 { left: 40%; }
.mk-l-41 { left: 41%; }
.mk-l-42 { left: 42%; }
.mk-l-43 { left: 43%; }
.mk-l-44 { left: 44%; }
.mk-l-45 { left: 45%; }
.mk-l-46 { left: 46%; }
.mk-l-47 { left: 47%; }
.mk-l-48 { left: 48%; }
.mk-l-49 { left: 49%; }
.mk-l-50 { left: 50%; }
.mk-l-51 { left: 51%; }
.mk-l-52 { left: 52%; }
.mk-l-53 { left: 53%; }
.mk-l-54 { left: 54%; }
.mk-l-55 { left: 55%; }
.mk-l-56 { left: 56%; }
.mk-l-57 { left: 57%; }
.mk-l-58 { left: 58%; }
.mk-l-59 { left: 59%; }
.mk-l-60 { left: 60%; }
.mk-l-61 { left: 61%; }
.mk-l-62 { left: 62%; }
.mk-l-63 { left: 63%; }
.mk-l-64 { left: 64%; }
.mk-l-65 { left: 65%; }
.mk-l-66 { left: 66%; }
.mk-l-67 { left: 67%; }
.mk-l-68 { left: 68%; }
.mk-l-69 { left: 69%; }
.mk-l-70 { left: 70%; }
.mk-l-71 { left: 71%; }
.mk-l-72 { left: 72%; }
.mk-l-73 { left: 73%; }
.mk-l-74 { left: 74%; }
.mk-l-75 { left: 75%; }
.mk-l-76 { left: 76%; }
.mk-l-77 { left: 77%; }
.mk-l-78 { left: 78%; }
.mk-l-79 { left: 79%; }
.mk-l-80 { left: 80%; }
.mk-l-81 { left: 81%; }
.mk-l-82 { left: 82%; }
.mk-l-83 { left: 83%; }
.mk-l-84 { left: 84%; }
.mk-l-85 { left: 85%; }
.mk-l-86 { left: 86%; }
.mk-l-87 { left: 87%; }
.mk-l-88 { left: 88%; }
.mk-l-89 { left: 89%; }
.mk-l-90 { left: 90%; }
.mk-l-91 { left: 91%; }
.mk-l-92 { left: 92%; }
.mk-l-93 { left: 93%; }
.mk-l-94 { left: 94%; }
.mk-l-95 { left: 95%; }
.mk-l-96 { left: 96%; }
.mk-l-97 { left: 97%; }
.mk-l-98 { left: 98%; }
.mk-l-99 { left: 99%; }
.mk-l-100 { left: 100%; }
.mk-w-0 { width: 0%; }
.mk-w-1 { width: 1%; }
.mk-w-2 { width: 2%; }
.mk-w-3 { width: 3%; }
.mk-w-4 { width: 4%; }
.mk-w-5 { width: 5%; }
.mk-w-6 { width: 6%; }
.mk-w-7 { width: 7%; }
.mk-w-8 { width: 8%; }
.mk-w-9 { width: 9%; }
.mk-w-10 { width: 10%; }
.mk-w-11 { width: 11%; }
.mk-w-12 { width: 12%; }
.mk-w-13 { width: 13%; }
.mk-w-14 { width: 14%; }
.mk-w-15 { width: 15%; }
.mk-w-16 { width: 16%; }
.mk-w-17 { width: 17%; }
.mk-w-18 { width: 18%; }
.mk-w-19 { width: 19%; }
.mk-w-20 { width: 20%; }
.mk-w-21 { width: 21%; }
.mk-w-22 { width: 22%; }
.mk-w-23 { width: 23%; }
.mk-w-24 { width: 24%; }
.mk-w-25 { width: 25%; }
.mk-w-26 { width: 26%; }
.mk-w-27 { width: 27%; }
.mk-w-28 { width: 28%; }
.mk-w-29 { width: 29%; }
.mk-w-30 { width: 30%; }
.mk-w-31 { width: 31%; }
.mk-w-32 { width: 32%; }
.mk-w-33 { width: 33%; }
.mk-w-34 { width: 34%; }
.mk-w-35 { width: 35%; }
.mk-w-36 { width: 36%; }
.mk-w-37 { width: 37%; }
.mk-w-38 { width: 38%; }
.mk-w-39 { width: 39%; }
.mk-w-40 { width: 40%; }
.mk-w-41 { width: 41%; }
.mk-w-42 { width: 42%; }
.mk-w-43 { width: 43%; }
.mk-w-44 { width: 44%; }
.mk-w-45 { width: 45%; }
.mk-w-46 { width: 46%; }
.mk-w-47 { width: 47%; }
.mk-w-48 { width: 48%; }
.mk-w-49 { width: 49%; }
.mk-w-50 { width: 50%; }
.mk-w-51 { width: 51%; }
.mk-w-52 { width: 52%; }
.mk-w-53 { width: 53%; }
.mk-w-54 { width: 54%; }
.mk-w-55 { width: 55%; }
.mk-w-56 { width: 56%; }
.mk-w-57 { width: 57%; }
.mk-w-58 { width: 58%; }
.mk-w-59 { width: 59%; }
.mk-w-60 { width: 60%; }
.mk-w-61 { width: 61%; }
.mk-w-62 { width: 62%; }
.mk-w-63 { width: 63%; }
.mk-w-64 { width: 64%; }
.mk-w-65 { width: 65%; }
.mk-w-66 { width: 66%; }
.mk-w-67 { width: 67%; }
.mk-w-68 { width: 68%; }
.mk-w-69 { width: 69%; }
.mk-w-70 { width: 70%; }
.mk-w-71 { width: 71%; }
.mk-w-72 { width: 72%; }
.mk-w-73 { width: 73%; }
.mk-w-74 { width: 74%; }
.mk-w-75 { width: 75%; }
.mk-w-76 { width: 76%; }
.mk-w-77 { width: 77%; }
.mk-w-78 { width: 78%; }
.mk-w-79 { width: 79%; }
.mk-w-80 { width: 80%; }
.mk-w-81 { width: 81%; }
.mk-w-82 { width: 82%; }
.mk-w-83 { width: 83%; }
.mk-w-84 { width: 84%; }
.mk-w-85 { width: 85%; }
.mk-w-86 { width: 86%; }
.mk-w-87 { width: 87%; }
.mk-w-88 { width: 88%; }
.mk-w-89 { width: 89%; }
.mk-w-90 { width: 90%; }
.mk-w-91 { width: 91%; }
.mk-w-92 { width: 92%; }
.mk-w-93 { width: 93%; }
.mk-w-94 { width: 94%; }
.mk-w-95 { width: 95%; }
.mk-w-96 { width: 96%; }
.mk-w-97 { width: 97%; }
.mk-w-98 { width: 98%; }
.mk-w-99 { width: 99%; }
.mk-w-100 { width: 100%; }

.mk-types label { display: inline-flex; flex-direction: row; align-items: center; gap: .3rem; font-weight: 500; font-size: .85rem; }
.mk-types input[type="checkbox"] { width: 16px; height: 16px; min-height: 0; padding: 0; margin: 0; flex: none; }

/* Sidebar submenus: collapsed until the parent is clicked (animated, no page load). */
.js .nav--sub[data-subnav] { max-height: 0; opacity: 0; overflow: hidden; margin-top: 0; margin-bottom: 0; visibility: hidden; transition: max-height .3s ease, opacity .2s ease, margin .3s ease, visibility 0s linear .3s; }
.js .nav--sub[data-subnav].is-open { max-height: 640px; opacity: 1; margin-top: 2px; margin-bottom: 4px; visibility: visible; transition: max-height .35s ease, opacity .25s ease .05s, margin .3s ease, visibility 0s; }
.nav__parent { position: relative; }
.nav__parent::after { content: ""; margin-left: auto; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: .55; transition: transform .25s ease; flex: none; }
.nav__parent[aria-expanded="true"]::after { transform: rotate(-135deg); }
@media (prefers-reduced-motion: reduce) { .js .nav--sub[data-subnav], .nav__parent::after { transition: none; } }

/* Campaign mind map */
.mk-mindmap { overflow: auto; border: 1px solid var(--c-line); border-radius: var(--r); background: #fff; }
.mk-mindmap svg { display: block; width: 100%; min-width: 1100px; height: auto; }
.mk-mindmap a:hover rect { opacity: .85; }

/* ---------------------------------------------------------------- Growth features */
.pub { background: var(--c-bg); min-height: 100vh; }
.pub__wrap { max-width: 520px; margin: 0 auto; padding: 32px 16px; }
.pub__wrap--wide { max-width: 1180px; }
.pub__card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 1.5rem; box-shadow: var(--shadow); }
.pub__brand { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); margin: 0 0 .3rem; }
.pub__title { font-size: 1.45rem; margin: .1rem 0 .6rem; }
.pub__form { grid-template-columns: 1fr; }
.pub__foot { text-align: center; margin-top: 1.5rem; }
.pub-rep__head { margin-bottom: 1rem; }
.nt { position: relative; margin-left: auto; }
.nt > summary { list-style: none; cursor: pointer; position: relative; }
.nt > summary::-webkit-details-marker { display: none; }
.nt + .topbar__user { margin-left: .5rem; }
.nt__badge { position: absolute; top: -2px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--c-bad); color: #fff; font-size: .68rem; font-weight: 700; line-height: 18px; text-align: center; }
.nt__panel { position: absolute; right: 0; top: calc(100% + 8px); width: min(380px, 92vw); background: #fff; border: 1px solid var(--c-line-2); border-radius: var(--r); box-shadow: 0 12px 32px rgba(23, 32, 58, .18); z-index: 60; }
.nt__head, .nt__foot { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .6rem .8rem; }
.nt__head { border-bottom: 1px solid var(--c-line); }
.nt__foot { border-top: 1px solid var(--c-line); flex-wrap: wrap; }
.nt__empty { padding: .8rem; margin: 0; }
.nt__panel .nt-list { max-height: 380px; overflow: auto; }
.nt-list li { border-bottom: 1px solid var(--c-line); }
.nt-list li:last-child { border-bottom: 0; }
.nt-list li.is-unread { background: var(--c-accent-50); }
.nt-item { display: grid; gap: .15rem; width: 100%; text-align: left; background: none; border: 0; padding: .6rem .8rem; cursor: pointer; color: inherit; font: inherit; }
.nt-item:hover { background: #f7f9fc; }
.tr-qr svg { display: block; }
.tr-actions { margin: .25rem 0; }
.tr-code { font-weight: 700; background: #eef1f6; padding: .1rem .4rem; border-radius: 4px; }
.tr-st, .tr-pst { display: inline-block; font-size: .72rem; font-weight: 700; padding: .1rem .45rem; border-radius: 999px; background: #eef1f6; }
.tr-st--new { background: var(--c-info-50); color: var(--c-info); }
.tr-st--contacted, .tr-st--follow_up { background: var(--c-warn-50); color: var(--c-warn); }
.tr-st--deal, .tr-pst--aktif { background: var(--c-ok-50); color: var(--c-ok); }
.tr-st--lost, .tr-pst--berakhir, .tr-pst--kuota-habis { background: var(--c-bad-50); color: var(--c-bad); }
.tr-board { grid-template-columns: repeat(5, minmax(220px, 1fr)); }
.tr-col--deal { background: var(--c-ok-50); }
.tr-col--lost { background: #f3f4f6; }
.mk-collab[open] { flex-basis: 100%; }
.mk-files li, .mk-comments li { display: flex; gap: .5rem; align-items: flex-start; flex-wrap: wrap; padding: .35rem 0; border-bottom: 1px solid var(--c-line); }
.mk-comments li { display: block; }
.mk-file-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; border: 1px solid var(--c-line); }
.mk-collab textarea { width: 100%; }
.mk-ev--moment { border-left-color: #e3242b; background: #fff0f0; }
.mk-lg.mk-ev--moment { border-left-color: #e3242b; background: #fff0f0; }
.mk-lg.mk-ev--content { border-left-color: #2f6bff; background: #eef4ff; }
.mk-lg.mk-ev--ads { border-left-color: #f59e0b; background: #fff7e8; }
.mk-lg.mk-ev--event { border-left-color: #c13584; background: var(--c-ig-50); }
.mk-lg.mk-ev--milestone { border-left-color: #7e22ce; background: #f6efff; }
.mk-lg.mk-ev--kol { border-left-color: #10b981; background: #eafaf3; }
.mk-lg.mk-ev--task { border-left-color: #64748b; background: #f1f5f9; }
.mk-lg.mk-ev--campaign { border-left-color: var(--c-ink); background: #e9ecf3; }
.hub-best { background: var(--c-ok-50); color: var(--c-ok); font-weight: 700; }
.hub-cmp-axis span { flex: 1; text-align: center; }
.hub-date { font-weight: 700; }
.hub-mom { display: inline-block; margin: .2rem .3rem 0 0; padding: .1rem .5rem; border-radius: 999px; font-size: .78rem; background: #eef4ff; color: var(--c-info); }
.hub-mom--libur { background: #fff0f0; color: #c62a2a; }
.hub-idea { margin-bottom: .6rem; }
.hub-tpl .mk-details { margin-top: .5rem; }
.lab-heat-wrap { overflow-x: auto; }
.lab-heat { border-collapse: separate; border-spacing: 2px; font-size: .7rem; }
.lab-heat th { color: var(--c-muted); font-weight: 600; padding: 0 2px; }
.lab-heat td { width: 24px; height: 24px; text-align: center; border-radius: 4px; color: #fff; font-weight: 700; }
.lab-h0 { background: #f1f4f9; }
.lab-h1 { background: #c7d7fe; color: var(--c-ink) !important; }
.lab-h2 { background: #93b4fd; }
.lab-h3 { background: #5b8cff; }
.lab-h4 { background: #2f6bff; }
.lab-h5 { background: #1d3fb8; }
.lab-best li { padding: .45rem 0; }
.lab-text { white-space: normal; }
.lab-out .panel__head { align-items: flex-start; }
.lab-mentions li { padding: .6rem 1rem; border-bottom: 1px solid var(--c-line); }
.lab-sent { display: inline-block; min-width: 56px; text-align: center; font-size: .7rem; font-weight: 700; text-transform: uppercase; padding: .05rem .35rem; border-radius: 4px; background: #eef1f6; margin-right: .3rem; }
.lab-sent--positif { background: var(--c-ok-50); color: var(--c-ok); }
.lab-sent--negatif { background: var(--c-bad-50); color: var(--c-bad); }

.filters label.checks { display: inline-flex; flex-direction: row; align-items: center; gap: .35rem; }
.filters label.checks input[type="checkbox"] { width: 16px; height: 16px; min-height: 0; padding: 0; margin: 0; flex: none; }

/* Google Maps post form: direct photo upload */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.gmaps-photo--preview { margin-top: 10px; }
.gmaps-library { margin: 4px 0 14px; }
.gmaps-library > summary { cursor: pointer; font-weight: 600; margin-bottom: 10px; }
