:root {
  --black: #000;
  --white: #fff;
  --grey-100: #f7f7f7;
  --grey-200: #f2f2f2;
  --grey-300: #e6e6e6;
  --grey-400: #d9d9d9;
  --grey-500: #cccbcb;
  --grey-600: #a4a4a4;
  --grey-700: #666;
  --grey-900: #242528;
  --primary: #eb5c19;
  --red: #d60000;
  --orange: #eaa800;
  --green: #50bf00;
  --shadow-s: 0 4px 8px -2px #0000001a, 0 2px 4px -2px #0000000f;
  --shadow-m: 0 12px 16px -4px #00000014, 0 4px 6px -2px #00000008;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--grey-200);
  color: var(--black);
  font-family: "Schibsted Grotesk", system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

[x-cloak] { display: none !important; }

.dashboard { min-height: 100vh; padding: 5rem 3rem 8rem; }
.container { width: 100%; max-width: 120rem; margin: 0 auto; }

/* ---------- Typografia ---------- */

.label { color: var(--primary); font-size: 1rem; font-weight: 500; line-height: 1.2; }
.label.is-grey { color: var(--grey-600); }
.section-heading { color: var(--primary); font-size: 3rem; font-weight: 700; white-space: nowrap; margin: 0; }
.stat { font-size: 2rem; font-weight: 500; line-height: 1.2; }
.stat-small { font-size: 1.3rem; font-weight: 500; }
.text-body { font-size: .875rem; overflow-wrap: anywhere; }
.text-strong { font-size: 1rem; font-weight: 500; line-height: 1.2; }

/* ---------- Układ ---------- */

.divider { display: flex; align-items: center; gap: 1.5rem; }
.divider-line { flex: 1; height: 1px; background: var(--primary); }
.divider-line.is-grey { background: var(--grey-500); }
.divider-logo { max-height: 3.5rem; max-width: 12rem; object-fit: contain; }

.shadow-m { box-shadow: var(--shadow-m); }
.shadow-s { box-shadow: var(--shadow-s); }

.spacer-l { height: 3rem; }
.spacer-xl { height: 5rem; }
.spacer-s { height: 1rem; }

/* ---------- Karta marketingowa ---------- */

.client-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3.5rem 2rem;
  align-items: start;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--grey-100);
}

.tips-item {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 100%;
  padding: 1.5rem;
  border: 1px solid var(--grey-200);
  background: var(--grey-200);
}
.tips-item.is-border { border-color: var(--primary); background: var(--grey-100); }
.tips-item.is-dark { border-color: var(--grey-300); background: var(--grey-300); }
.tips-item-body { flex: 1; min-width: 0; }
.tips-item-icon { flex: none; width: 3rem; height: 3rem; color: var(--grey-700); }
.tips-item-icon svg { width: 100%; height: 100%; }

.list-item { font-size: .875rem; margin-top: .375rem; overflow-wrap: anywhere; }
.markdown-box { font-size: .875rem; }
.markdown-box :is(p, ul, ol) { margin: .375rem 0; }
.markdown-box ul { padding-left: 1.125rem; }

/* ---------- Opiekun / sprinty / NPS ---------- */

.sidebar { display: flex; flex-direction: column; gap: 2rem; }

.admin-card { display: flex; gap: 1.25rem; align-items: center; }
.admin-photo {
  width: 5.5rem; height: 5.5rem; flex: none;
  object-fit: cover; border-radius: 2px; background: var(--grey-300);
  box-shadow: var(--shadow-m);
}
.admin-links { display: flex; flex-direction: column; gap: .25rem; margin-top: .5rem; }
.admin-links a { color: var(--primary); text-decoration: none; font-size: 1rem; font-weight: 500; }
.admin-links a:hover { text-decoration: underline; }

.sprint { border-top: 1px solid var(--grey-400); padding: .75rem 0; }
.sprint-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; width: 100%; padding: 0; border: 0; background: none;
  font: inherit; color: inherit; cursor: pointer; text-align: left;
}
.sprint-chevron { transition: transform .2s; color: var(--grey-600); }
.sprint-head[aria-expanded="true"] .sprint-chevron { transform: rotate(180deg); }
.sprint-body { padding-top: .5rem; }
.sprint-theme { font-size: .875rem; font-weight: 500; }
.sprint-task { font-size: .875rem; color: var(--grey-700); margin-top: .25rem; }

.nps-row { display: flex; align-items: baseline; gap: .75rem; padding: .375rem 0; }
.nps-score { font-size: 1rem; font-weight: 500; min-width: 1.5rem; }
.nps-score.red { color: var(--red); }
.nps-score.yellow { color: var(--orange); }
.nps-score.green { color: var(--green); }
.nps-date { color: var(--grey-700); font-size: .875rem; }

/* ---------- Plan marketingowy ---------- */

.plans-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); gap: 2rem; }
.plan-card { display: flex; flex-direction: column; gap: .75rem; padding: 1.5rem; background: var(--grey-100); }
.plan-actions {
  width: 100%; min-height: 12rem; resize: vertical;
  padding: .75rem; border: 1px solid var(--grey-400); background: var(--white);
  font: inherit; font-size: .875rem; line-height: 1.5; color: var(--black);
}

/* ---------- Nagłówek raportu ---------- */

.report-select {
  padding: .625rem 1rem; border: 1px solid var(--primary);
  background: var(--white); color: var(--black); font: inherit;
  min-width: 14rem; min-height: 44px; cursor: pointer;
}

/* ---------- Kafle wyników ---------- */

.summary-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.summary-tips { display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; background: var(--grey-100); grid-row: span 2; }
.result-card {
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 1.5rem; min-height: 11rem; padding: 1.5rem; background: var(--grey-100);
}
.result-bars { display: flex; align-items: flex-end; gap: .375rem; height: 3rem; }
.result-bar { flex: 1; background: var(--grey-400); }
.result-bar.is-accent { background: var(--primary); }

/* ---------- Kanały ---------- */

.channels-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr)); gap: 2rem; align-items: stretch; }
.channel { display: grid; grid-template-columns: minmax(10rem, .34fr) 1fr; background: var(--grey-100); align-content: start; }
.channel-head { display: flex; flex-direction: column; gap: .75rem; padding: 1.25rem; position: relative; }
.channel-logo {
  width: 3rem; height: 3rem; display: grid; place-items: center;
  background: var(--white); box-shadow: var(--shadow-s);
}
.channel-logo svg { width: 1.75rem; height: 1.75rem; }
.channel-name { font-size: 1.125rem; font-weight: 600; }

.channel-comment { margin-top: auto; }
.channel-comment summary {
  display: inline-flex; align-items: center; gap: .375rem;
  cursor: pointer; color: var(--primary); font-size: .8125rem; font-weight: 500;
  list-style: none;
}
.channel-comment summary::-webkit-details-marker { display: none; }
.channel-comment-text {
  margin-top: .5rem; padding: .75rem; background: var(--grey-900); color: var(--white);
  font-size: .8125rem; line-height: 1.45;
}

.channel-rows { display: flex; flex-direction: column; height: 100%; }
.channel-row {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  flex: 1; padding: .5rem 1rem;
  background: var(--grey-200);
  border-top: 1px solid var(--grey-100);
  border-bottom: 1px solid var(--grey-400);
}
.channel-row:nth-child(even) { background: var(--grey-300); }
.channel-row .label { min-width: 0; }
.channel-row .stat-small { white-space: nowrap; flex: none; }

/* ---------- Faktury ---------- */

.invoice-table { width: 100%; border-collapse: collapse; background: var(--grey-100); font-size: .875rem; }
.invoice-table th, .invoice-table td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--grey-300); }
.invoice-table th { color: var(--primary); font-weight: 500; }
.invoice-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.invoice-table a { color: var(--primary); }
.badge { display: inline-block; padding: .125rem .5rem; font-size: .75rem; background: var(--grey-300); }
.badge.is-paid { background: #e4f5d6; color: #2f6b00; }

/* ---------- Logowanie ---------- */

.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 2rem; }
.login-card { width: 100%; max-width: 26rem; padding: 2.5rem; background: var(--grey-100); box-shadow: var(--shadow-m); }
.login-card h1 { color: var(--primary); font-size: 2rem; margin: 0 0 .5rem; }
.login-card p { color: var(--grey-700); font-size: .875rem; margin: 0 0 1.5rem; }
.login-card label { display: block; font-size: .875rem; font-weight: 500; margin-bottom: .375rem; }
.login-card input {
  width: 100%; padding: .625rem .75rem; margin-bottom: 1rem;
  border: 1px solid var(--grey-400); background: var(--white); font: inherit;
}
.login-card input:focus { outline: 2px solid var(--primary); outline-offset: -1px; }
.btn {
  width: 100%; padding: .75rem 1rem; border: 0; cursor: pointer;
  background: var(--primary); color: var(--white); font: inherit; font-weight: 500;
}
.btn:hover { background: #d24f11; }
.btn:disabled { opacity: .6; cursor: default; }
.form-error { color: var(--red); font-size: .875rem; margin-bottom: 1rem; }

.state-msg { padding: 4rem 2rem; text-align: center; font-size: 1.25rem; color: var(--grey-700); }

.topbar { display: flex; justify-content: flex-end; margin-bottom: 1.5rem; }
.link-btn {
  border: 0; background: none; color: var(--grey-700); font: inherit; font-size: .875rem;
  cursor: pointer; text-decoration: underline;
  min-height: 44px; padding: .625rem .25rem;  /* cel dotykowy 44px */
  display: inline-flex; align-items: center;
}
.link-btn:hover { color: var(--primary); }

/* ---------- Responsywność ---------- */

@media (max-width: 1100px) {
  .dashboard { padding: 4rem 1.5rem 6rem; }
  .section-heading { font-size: 2.25rem; }
  .client-grid { grid-template-columns: 1fr; gap: 2rem; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .summary-tips { grid-row: auto; grid-column: span 2; }
}

@media (max-width: 640px) {
  .dashboard { padding: 3rem 1rem 4rem; }
  .section-heading { font-size: 1.5rem; white-space: normal; }
  .divider { gap: 1rem; }
  .summary-grid, .channels-grid, .plans-grid { grid-template-columns: 1fr; }
  .summary-tips { grid-column: auto; }
  .channel { grid-template-columns: 1fr; }
  .tips-item { gap: 1rem; padding: 1rem; }
  .tips-item-icon { width: 2.25rem; height: 2.25rem; }
  .invoice-table { display: block; overflow-x: auto; }
}

@media print {
  body { background: var(--white); }
  .topbar, .channel-comment summary { display: none; }
  .channel-comment[open] .channel-comment-text { background: var(--grey-200); color: var(--black); }
}

/* ============================================================
   Panel marki (WBIZNES) — Data-Dense Dashboard
   ============================================================ */

.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;
}

.skip-link {
  position: absolute; left: .5rem; top: -3rem; z-index: 100;
  padding: .625rem 1rem; background: var(--primary); color: var(--white);
  text-decoration: none; font-weight: 500; transition: top .15s ease;
}
.skip-link:focus { top: .5rem; }

/* ---------- Nagłówek ---------- */

.brand-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 2rem; padding-bottom: 2rem; margin-bottom: 2rem;
  border-bottom: 1px solid var(--grey-400);
}
.brand-title { font-size: 3rem; font-weight: 700; color: var(--primary); margin: 0; line-height: 1; letter-spacing: -.02em; }
.brand-sub { color: var(--grey-700); font-size: .875rem; margin: .625rem 0 .875rem; }

.brand-controls { display: flex; align-items: flex-end; gap: 1.25rem; flex-wrap: wrap; }
.field { display: flex; flex-direction: column; gap: .375rem; }
.field-label { font-size: .6875rem; font-weight: 600; color: var(--grey-700); text-transform: uppercase; letter-spacing: .06em; }
.head-actions { display: flex; align-items: center; gap: .5rem; }

.segmented { display: inline-flex; border: 1px solid var(--grey-500); background: var(--white); }
.segmented button {
  min-height: 44px; padding: .5rem 1rem; border: 0; background: none;
  font: inherit; font-size: .875rem; color: var(--grey-700); cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.segmented button + button { border-left: 1px solid var(--grey-500); }
.segmented button:hover { background: var(--grey-200); color: var(--black); }
.segmented button.is-active { background: var(--primary); color: var(--white); font-weight: 500; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--grey-500); background: var(--white); color: var(--grey-700);
  cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.icon-btn svg { width: 1.125rem; height: 1.125rem; }
.icon-btn:hover { border-color: var(--primary); color: var(--primary); }

.source-tags { display: flex; flex-wrap: wrap; gap: .375rem; }
.source-tag { font-size: .75rem; padding: .1875rem .5rem; background: var(--grey-300); color: var(--grey-900); }

/* ---------- Komunikaty ---------- */

.notice {
  display: flex; gap: .75rem; align-items: flex-start;
  padding: .875rem 1rem; margin-bottom: 1rem;
  background: #fff6e8; border-left: 3px solid var(--orange); font-size: .875rem;
}
.notice.is-info { background: #eef4fb; border-left-color: #3b6ea5; margin: 1rem 0; }
.notice svg { flex: none; width: 1.125rem; height: 1.125rem; color: var(--orange); margin-top: .0625rem; }
.notice.is-info svg { color: #3b6ea5; }

.insight { font-size: .875rem; color: var(--grey-700); margin: 1rem 0 0; max-width: 68ch; }

/* ---------- Kafle KPI ---------- */

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.5rem; }

.kpi {
  display: flex; flex-direction: column; gap: .75rem; text-align: left;
  padding: 1.25rem; background: var(--grey-100); box-shadow: var(--shadow-m);
  border: 0; border-top: 3px solid var(--primary); font: inherit; color: inherit;
}
.kpi.is-clickable { cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.kpi.is-clickable:hover { transform: translateY(-2px); box-shadow: 0 16px 24px -6px #0000001f, 0 6px 10px -4px #0000000f; }
.kpi.is-clickable:hover .kpi-info { opacity: 1; }

.kpi-label { display: flex; align-items: center; gap: .375rem; font-size: .8125rem; font-weight: 500; color: var(--grey-700); }
.kpi-info { display: inline-flex; opacity: 0; transition: opacity .15s ease; color: var(--primary); }
.kpi-info svg { width: .875rem; height: .875rem; }

.kpi-value { display: block; font-size: 2.25rem; font-weight: 700; line-height: 1; letter-spacing: -.01em; }
.kpi-value.is-empty { font-size: 1.0625rem; font-weight: 500; color: var(--grey-600); line-height: 1.4; }
.kpi-foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: auto; }

.delta { display: inline-flex; align-items: center; gap: .25rem; font-size: .8125rem; font-weight: 600; }
.delta.up { color: #1f7a00; }
.delta.down { color: var(--red); }
.delta.flat { color: var(--grey-600); }
.delta svg { width: .875rem; height: .875rem; }

.spark { width: 6.5rem; height: 1.75rem; overflow: visible; flex: none; }
.spark path { fill: none; stroke: var(--primary); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.spark circle { fill: var(--primary); }

/* ---------- Lejek ---------- */

.funnel { display: flex; flex-direction: column; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.funnel-stage { display: grid; grid-template-columns: 12rem 1fr auto; gap: 1rem; align-items: center; padding: .5rem 0; }
.funnel-bar-track { background: var(--grey-300); height: 1.75rem; }
.funnel-bar { background: var(--primary); height: 100%; min-width: 2px; }
.funnel-count { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 6rem; text-align: right; }
.funnel-drop { font-size: .8125rem; color: var(--grey-700); padding-left: 13rem; }
.funnel-drop strong { color: var(--primary); }

/* ---------- Etapy sprzedaży ---------- */

.stage-table { width: 100%; border-collapse: collapse; }
.stage-name { text-align: left; font-weight: 400; font-size: .875rem; padding: .375rem 1rem .375rem 0; width: 14rem; }
.stage-cell { width: 100%; padding: .375rem 0; }
.stage-track { background: var(--grey-300); height: 1.25rem; }
.stage-fill { background: var(--grey-700); height: 100%; }
.stage-fill.is-primary { background: var(--primary); }
.stage-count { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; padding-left: 1rem; width: 4rem; }
.stage-share { text-align: right; padding-left: .75rem; width: 4.5rem; font-size: .875rem; }

/* ---------- Tabele ---------- */

.data-table { width: 100%; border-collapse: collapse; background: var(--grey-100); font-size: .8125rem; }
.data-table th, .data-table td { padding: .5rem .75rem; border-bottom: 1px solid var(--grey-300); white-space: nowrap; }
.data-table thead th { text-align: left; padding: 0; position: sticky; top: 0; background: var(--grey-100); z-index: 1; }
.data-table td.num, .data-table th.num { text-align: right; }
.data-table td.num.tnum { font-variant-numeric: tabular-nums; }
.data-table tbody tr:hover { background: var(--grey-200); }
.data-table tr.is-current { background: #fff1e9; }
.data-table tr.is-current:hover { background: #ffe7d9; }
.data-table .fw-normal { font-weight: 400; text-align: left; }

.th-sort {
  display: flex; align-items: center; gap: .375rem; width: 100%;
  padding: .625rem .75rem; border: 0; background: none;
  font: inherit; font-size: .8125rem; font-weight: 600; color: var(--primary);
  cursor: pointer; transition: background-color .15s ease;
}
.data-table th.num .th-sort { justify-content: flex-end; }
.th-sort:hover { background: var(--grey-300); }
.th-arrow { font-size: .625rem; opacity: .45; }
.th-sort.is-active .th-arrow { opacity: 1; }

.table-scroll { overflow: auto; max-height: 32rem; box-shadow: var(--shadow-m); }
.table-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: .5rem; font-size: .8125rem; }
.muted { color: var(--grey-600); }

/* ---------- Luki ---------- */

.gap-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.gap-card { padding: 1rem 1.25rem; background: var(--grey-100); border-left: 3px solid var(--grey-500); }
.gap-metric { font-weight: 600; font-size: .9375rem; margin-bottom: .25rem; }
.gap-reason { font-size: .8125rem; color: var(--grey-700); line-height: 1.45; }

/* ---------- Szuflada szczegółów ---------- */

body.drawer-open { overflow: hidden; }

.drawer-scrim { position: fixed; inset: 0; background: #00000073; z-index: 40; animation: fade .18s ease; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50;
  width: min(30rem, 100%); display: flex; flex-direction: column;
  background: var(--white); box-shadow: -12px 0 28px #00000024;
  animation: slide-in .22s cubic-bezier(.22,.8,.3,1);
}
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes slide-in { from { transform: translateX(100%) } to { transform: none } }

.drawer-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--grey-300);
}
.drawer-head h2 { margin: 0; font-size: 1.25rem; color: var(--primary); }
.drawer-body { padding: 1.5rem; overflow-y: auto; }
.drawer-sub { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--grey-700); margin: 1.75rem 0 .75rem; }

.def-list { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1rem; margin: 0; font-size: .875rem; }
.def-list dt { font-weight: 600; color: var(--grey-700); }
.def-list dd { margin: 0; }

.detail-table { width: 100%; border-collapse: collapse; font-size: .8125rem; }
.detail-table th, .detail-table td { padding: .375rem .5rem; border-bottom: 1px solid var(--grey-200); }
.detail-table thead th { text-align: left; color: var(--primary); font-weight: 600; }
.detail-table .num { text-align: right; }
.detail-table tr.is-current { background: #fff1e9; font-weight: 600; }
.bar-cell { width: 40%; }
.mini-bar { height: .5rem; background: var(--primary); min-width: 1px; }

/* ---------- Stopka ---------- */

.page-foot {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: 5rem; padding-top: 1.5rem; border-top: 1px solid var(--grey-400);
  font-size: .8125rem; color: var(--grey-700);
}

/* ---------- Szkielet ładowania ---------- */

.sk { background: linear-gradient(90deg, var(--grey-300) 25%, var(--grey-200) 50%, var(--grey-300) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { from { background-position: 200% 0 } to { background-position: -200% 0 } }
.sk-title { width: 14rem; height: 3rem; }
.sk-sub { width: 22rem; height: 1rem; margin-top: .75rem; }
.sk-line { width: 100%; height: .875rem; }
.sk-line.short { width: 55%; }
.sk-big { width: 70%; height: 2.25rem; }

/* ---------- Ostrość interakcji ---------- */

:where(a, button, select, input, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--primary); outline-offset: 2px;
}
.kpi.is-clickable:focus-visible { outline-offset: -2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Responsywność ---------- */

@media (max-width: 900px) {
  .brand-title { font-size: 2rem; }
  .brand-head { gap: 1.5rem; }
  .brand-controls { width: 100%; }
  .funnel-stage { grid-template-columns: 8.5rem 1fr auto; gap: .625rem; }
  .funnel-drop { padding-left: 9.125rem; font-size: .75rem; }
  .stage-name { width: 9rem; font-size: .8125rem; }
  .kpi-value { font-size: 1.75rem; }
  .drawer { width: 100%; }
}

/* ---------- Druk / PDF ---------- */

@media print {
  @page { size: A4; margin: 14mm 12mm; }
  body { background: var(--white); font-size: 10pt; }
  .dashboard { padding: 0; min-height: 0; }
  .brand-controls, .skip-link, .table-foot, .th-arrow, .drawer, .drawer-scrim, .kpi-info { display: none !important; }
  .kpi, .card, .channel, .data-table, .gap-card { box-shadow: none !important; border: 1px solid var(--grey-400); }
  .kpi { break-inside: avoid; }
  .table-scroll { max-height: none; overflow: visible; box-shadow: none; }
  .data-table thead th { position: static; }
  .section-heading { font-size: 16pt; }
  .brand-title { font-size: 22pt; }
  .kpi-value { font-size: 15pt; }
  .divider, .kpi-grid, .channels-grid, .gap-list, .card { break-inside: avoid; }
  .spacer-xl { height: 1.5rem; }
  .notice { border: 1px solid var(--orange); }
  .page-foot { margin-top: 1.5rem; }
}

.badge.is-draft { background: #fff0d6; color: #8a5a00; border: 1px solid var(--orange); font-weight: 500; white-space: nowrap; }
