/* =============================================================
   OneGrowth styles, lifted from the UI demo v4 (onedigital-saas_index_v4.html).
   :root comes from docs/onedigital-saas/tokens.json (via the demo), plus the Bootstrap bridge.
   Demo-only rules (banner, demo navigator, role gating, screen states) are left out.
   ============================================================= */

/* ---------- Tokens: docs/onedigital-saas/tokens.json (source: DESIGN.md) ---------- */
:root {
  /* color */
  --color-primary:        #8C46F5;
  --color-primary-on:     #FFFFFF;
  --color-primary-tint:   #E8DAFD;
  --color-accent:         #01042A;
  --color-accent-on:      #F1F1F1;
  --color-bg:             #F1F1F1;
  --color-surface:        #FFFFFF;
  --color-surface-alt:    #FAFAFA;
  --color-sunken:         #E6E6E8;
  --color-text:           #01042A;
  --color-text-body:      #343650;
  --color-text-muted:     #67687C;
  --color-text-faint:     #9A9BA8;
  --color-border:         #D6D6DA;
  --color-dashed:         #CCCED3;
  --color-link:           #873FF5;
  --color-tag-text:       #5C1FB0;
  --color-success:        #0A7A45;
  --color-success-tint:   #E4F6EC;
  --color-success-dot:    #2AD87F;
  --color-warning:        #A8561A;
  --color-error:          #B5352F;
  --color-error-tint:     #FBEBE9;
  --color-chart-google:   #8C46F5;
  --color-chart-meta:     #343650;
  --color-chart-previous: #9A9BA8;

  /* typography */
  --font-display: 'Bomstad Display', 'Urbanist', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* radius */
  --radius-sm: 8px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-pill: 999px;
  --radius-nested: 12px;
  --radius-checkbox: 6px;

  /* shadow: nothing at rest, only what floats */
  --shadow-sm: 0 2px 8px -2px rgba(1,4,42,0.12);
  --shadow-md: 0 12px 32px -10px rgba(1,4,42,0.24), 0 2px 6px rgba(1,4,42,0.06);
  --shadow-lg: 0 40px 80px -40px rgba(1,4,42,0.38), 0 2px 8px rgba(1,4,42,0.05);

  /* layout */

  /* Bootstrap bridge */
  --bs-body-font-family: var(--font-body);
  --bs-body-font-size: 14px;
  --bs-body-line-height: 1.45;
  --bs-body-color: var(--color-text-body);
  --bs-body-bg: var(--color-bg);
  --bs-emphasis-color: var(--color-text);
  --bs-secondary-color: var(--color-text-muted);
  --bs-heading-color: var(--color-text);
  --bs-border-color: var(--color-border);
  --bs-link-color: var(--color-link);
  --bs-link-color-rgb: 135,63,245;
  --bs-link-hover-color: var(--color-text);
  --bs-link-hover-color-rgb: 1,4,42;
  --bs-form-invalid-color: var(--color-error);
  --bs-form-invalid-border-color: var(--color-error);
  --bs-form-valid-color: var(--color-success);
  --bs-form-valid-border-color: var(--color-success);
}

/* ---------- Base ---------- */
body { background: var(--color-bg); color: var(--color-text-body); font: 400 14px/1.45 var(--font-body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { color: var(--color-text); }
a { color: var(--color-link); font-weight: 500; text-decoration: none; }
a:hover { color: var(--color-text); text-decoration: underline; }
/* Underline is for text links only; links styled as buttons, menu items or the logo never underline */
a.btn:hover, a.brand:hover, a.dropdown-item:hover, a.skip-link:hover { text-decoration: none; }
table, .num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
label.btn:has(+ input[type="file"]:focus-visible) { outline: 2px solid var(--color-primary); outline-offset: 2px; }   /* the visible button of a hidden file input */
main:focus { outline: none; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 10001; background: var(--color-accent); color: var(--color-accent-on); padding: 8px 16px; border-radius: var(--radius-pill); }
.skip-link:focus { top: 8px; }
.skip-link:hover, .skip-link:focus { color: var(--color-accent-on); }


/* ---------- Type ---------- */
.eyebrow { font: 500 12px/1.3 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--color-text-muted); }
.display-title { font: 600 44px/1.05 var(--font-display); letter-spacing: -0.03em; color: var(--color-text); margin: 0; }
.page-title { font: 600 30px/1.1 var(--font-display); letter-spacing: -0.03em; color: var(--color-text); margin: 0; }
.accent-tail { font-family: var(--font-display); font-weight: 300; font-style: italic; color: var(--color-primary); white-space: nowrap; }
.figure { font: 500 28px/1.1 var(--font-display); letter-spacing: -0.03em; color: var(--color-text); font-variant-numeric: proportional-nums; }
.figure--lead { font-size: 44px; line-height: 1.05; }
.title { font: 600 16px/1.3 var(--font-body); color: var(--color-text); margin: 0; }
.caption { font-size: 13px; line-height: 1.4; color: var(--color-text-muted); }
@media (max-width: 767.98px) {
  .display-title { font-size: 34px; }
  .page-title { font-size: 26px; }
  .figure--lead { font-size: 36px; }
}

/* ---------- Icons ---------- */
.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 20px; height: 20px; }
.icon-lg { width: 24px; height: 24px; }
.icon-xl { width: 32px; height: 32px; }
.lucide { flex: none; }
.min-w-0 { min-width: 0; }

/* ---------- Buttons (pills; hover goes darker, to Rich Black) ---------- */
.btn { --bs-btn-font-family: var(--font-body); --bs-btn-font-size: 14px; --bs-btn-font-weight: 500; --bs-btn-border-radius: var(--radius-pill); --bs-btn-padding-x: 16px; --bs-btn-padding-y: 0; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; line-height: 1.2; }
.btn-primary { --bs-btn-color: #fff; --bs-btn-bg: var(--color-primary); --bs-btn-border-color: var(--color-primary); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--color-accent); --bs-btn-hover-border-color: var(--color-accent); --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--color-accent); --bs-btn-active-border-color: var(--color-accent); --bs-btn-disabled-color: #fff; --bs-btn-disabled-bg: var(--color-primary); --bs-btn-disabled-border-color: var(--color-primary); --bs-btn-focus-shadow-rgb: 140,70,245; }
.btn-secondary { --bs-btn-color: var(--color-text); --bs-btn-bg: transparent; --bs-btn-border-color: var(--color-border); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--color-accent); --bs-btn-hover-border-color: var(--color-accent); --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--color-accent); --bs-btn-active-border-color: var(--color-accent); --bs-btn-disabled-color: var(--color-text-muted); --bs-btn-disabled-bg: transparent; --bs-btn-disabled-border-color: var(--color-border); --bs-btn-focus-shadow-rgb: 1,4,42; }
.btn-ghost { --bs-btn-color: var(--color-text-muted); --bs-btn-bg: transparent; --bs-btn-border-color: transparent; --bs-btn-hover-color: var(--color-text); --bs-btn-hover-bg: var(--color-sunken); --bs-btn-hover-border-color: transparent; --bs-btn-active-color: var(--color-text); --bs-btn-active-bg: var(--color-sunken); --bs-btn-active-border-color: transparent; --bs-btn-disabled-bg: transparent; --bs-btn-disabled-border-color: transparent; --bs-btn-disabled-color: var(--color-text-faint); --bs-btn-focus-shadow-rgb: 1,4,42; }
.btn-dark { --bs-btn-color: var(--color-accent-on); --bs-btn-bg: var(--color-accent); --bs-btn-border-color: var(--color-accent); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--color-text-body); --bs-btn-hover-border-color: var(--color-text-body); --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--color-text-body); --bs-btn-active-border-color: var(--color-text-body); --bs-btn-focus-shadow-rgb: 1,4,42; }
.btn-icon { width: 36px; padding: 0; }
@media (max-width: 767.98px) {
  .btn { min-height: 44px; }
  .btn-icon { width: 44px; }
}

/* ---------- Forms ---------- */
/* Form fields per the brand guide: white, 1px #D6D6DA, 8px radius, Inter 16px Rich Black,
   label Rich Black 60% 14px, focus ring 2px Lavender */
.form-label { font-size: 14px; line-height: 20px; font-weight: 400; color: var(--color-text-muted); margin-bottom: 6px; }
.form-control, .form-select { min-height: 46px; padding: 10px 14px; font: 400 16px/24px var(--font-body); color: var(--color-text); background-color: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-sm); }
.form-select { padding-right: 40px; --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343650' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); }
.form-control::placeholder { color: var(--color-text-muted); }
.form-control:focus, .form-select:focus { color: var(--color-text); background-color: var(--color-surface); border-color: var(--color-primary); box-shadow: none; outline: 2px solid var(--color-primary); outline-offset: 0; }
.form-control.is-invalid, .form-select.is-invalid { background-image: none; padding-right: 14px; }
.form-control.is-invalid:focus { border-color: var(--color-error); outline-color: var(--color-error); }
.invalid-feedback { font-size: 13px; }
.form-check-input { border-color: var(--color-border); }
.form-check-input[type="checkbox"] { border-radius: var(--radius-checkbox); }
.form-check-input:checked { background-color: var(--color-primary); border-color: var(--color-primary); }
.form-check-input:focus { box-shadow: none; outline: 2px solid var(--color-primary); outline-offset: 1px; border-color: var(--color-primary); }
/* Disabled fields: Rich Black tints, not Bootstrap's own grey */
.form-control:disabled, .form-select:disabled { background-color: var(--color-surface-alt); color: var(--color-text-muted); border-color: var(--color-border); cursor: not-allowed; }
/* Switches are pills (nothing is square); knob in Rich Black 40, Lavender 40 on focus, white when on */
.form-switch .form-check-input { border-radius: var(--radius-pill); --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%239A9BA8'/%3e%3c/svg%3e"); }
.form-switch .form-check-input:focus { --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23D1B5FB'/%3e%3c/svg%3e"); }
.form-switch .form-check-input:checked { --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e"); }

/* ---------- Cards: one class, enumerated variants ---------- */
.card { --bs-card-bg: var(--color-surface); --bs-card-border-color: var(--color-border); --bs-card-border-radius: var(--radius-md); --bs-card-inner-border-radius: calc(var(--radius-md) - 1px); padding: 20px; box-shadow: none; }
.card--elevated { box-shadow: var(--shadow-sm); }                                    /* sparingly: genuinely raised content */
.card--ghost { background: transparent; border-color: transparent; padding: 0; }    /* region on the page, no container */
.card--interactive { cursor: pointer; transition: box-shadow .15s ease; }
.card--interactive:hover { box-shadow: var(--shadow-sm); }
.card--gap { background: transparent; border: 1px dashed var(--color-dashed); }    /* Dashed Gap Rule: what the client doesn't have yet */
.tile { background: var(--color-surface-alt); border-radius: var(--radius-nested); padding: 16px; }  /* nested inside a card */

/* ---------- Tags, deltas, segmented control ---------- */
.tag { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 10px; border-radius: var(--radius-pill); font: 600 12px/1 var(--font-body); white-space: nowrap; }
.tag--live { background: var(--color-success-tint); color: var(--color-success); }
.tag--live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--color-success-dot); }
.tag--soon { background: var(--color-primary-tint); color: var(--color-tag-text); }
.tag--inactive { background: var(--color-sunken); color: var(--color-text-body); }
.tag--paused { border: 1px solid var(--color-border); color: var(--color-text-muted); }
.tag--stale { border: 1px solid currentColor; color: var(--color-warning); }
.tag--error { background: var(--color-error-tint); color: var(--color-error); }

.delta { display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 8px; border-radius: var(--radius-pill); font: 600 12px/1 var(--font-body); font-variant-numeric: tabular-nums; white-space: nowrap; }
.delta .lucide { width: 14px; height: 14px; }
.delta--good { background: var(--color-success-tint); color: var(--color-success); }
.delta--bad { background: var(--color-error-tint); color: var(--color-error); }
.delta--flat { background: var(--color-sunken); color: var(--color-text-body); }

.segmented { display: inline-flex; gap: 2px; padding: 3px; background: var(--color-sunken); border-radius: var(--radius-pill); }
.segmented button, .segmented a { display: inline-flex; align-items: center; border: 0; background: transparent; border-radius: var(--radius-pill); height: 30px; padding: 0 14px; font: 500 13px var(--font-body); color: var(--color-text-body); text-decoration: none; white-space: nowrap; }
.segmented button:hover, .segmented a:hover { color: var(--color-text); }
.segmented button[aria-pressed="true"], .segmented a[aria-current="true"] { background: var(--color-surface); color: var(--color-text); }
@media (max-width: 767.98px) { .segmented button, .segmented a { height: 38px; } }

.channel-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; background: var(--dot, var(--color-text-faint)); }
.skeleton { background: var(--color-sunken); border-radius: var(--radius-sm); animation: pulse 1.4s ease-in-out infinite; }
.freshness { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--color-text-muted); }
.freshness--stale { color: var(--color-warning); }

/* Coverage gap tile parts (signature component) */
.gap-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--color-sunken); color: var(--color-text); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.gap-link { display: inline-flex; align-items: center; gap: 6px; color: var(--color-text); font-weight: 500; }
.gap-link .lucide { color: var(--color-primary); }

/* Tables and menus */
.table { --bs-table-bg: transparent; --bs-table-color: var(--color-text-body); --bs-table-border-color: var(--color-border); --bs-table-hover-bg: var(--color-surface-alt); margin: 0; }
.table > thead th { font-size: 12px; font-weight: 500; color: var(--color-text-muted); white-space: nowrap; }
.table-wrap { overflow-x: auto; position: relative; }
/* Phones: a .table-stack shows one block per row, each value next to its column name (labelTables fills data-label) */
@media (max-width: 767.98px) {
  .table.table-stack thead { display: none; }
  .table.table-stack, .table-stack tbody, .table-stack tfoot, .table-stack tr { display: block; width: 100%; }
  .table.table-stack tr { padding: 10px 0; border-bottom: 1px solid var(--color-border); }
  .app-content .table.table-stack > :not(caption) > * > * { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 4px 0; border: 0; text-align: right; white-space: normal; }
  .app-content .table.table-stack > :not(caption) > * > :first-child, .app-content .table.table-stack > :not(caption) > * > [colspan] { display: block; text-align: left; }
  .table-stack td[data-label]:not(:first-child)::before { content: attr(data-label); flex: none; max-width: 50%; color: var(--color-text-muted); font-size: 13px; font-weight: 400; text-align: left; }
}
.dropdown-menu { --bs-dropdown-border-color: var(--color-border); --bs-dropdown-border-radius: var(--radius-nested); --bs-dropdown-link-color: var(--color-text-body); --bs-dropdown-link-hover-bg: var(--color-surface-alt); --bs-dropdown-link-active-bg: var(--color-primary-tint); --bs-dropdown-link-active-color: var(--color-text); --bs-dropdown-font-size: 14px; box-shadow: var(--shadow-md); }

/* ---------- App shell: fixed sidebar from 992 px, a drawer below (v3, after OneDigital's feedback) ---------- */
.app-shell { min-height: 100vh; display: flex; align-items: flex-start; }
.app-main { flex: 1 1 0; min-width: 0; }
.app-content { width: 100%; max-width: 1376px; margin: 0 auto; padding: 32px 32px 48px; }
/* While app.js fetches the next view; the delay keeps a quick swap from flickering */
.app-content[aria-busy="true"] { opacity: .55; cursor: progress; transition: opacity .15s .2s; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.brand-logo { height: 24px; width: auto; display: block; }
.workspace-logo { width: 36px; height: 36px; border-radius: 10px; background: var(--color-accent); color: var(--color-accent-on); display: inline-flex; align-items: center; justify-content: center; font: 600 14px/1 var(--font-display); letter-spacing: -0.01em; flex: none; }
/* An uploaded logo: the 36 px (or --sm 28 px) box, white, so any logo reads */
.workspace-logo--img { padding: 3px; object-fit: contain; background: #fff; border: 1px solid var(--color-border); }
.workspace-logo--sm { width: 28px; height: 28px; border-radius: 8px; font-size: 12px; }
.workspace-name { font-weight: 600; color: var(--color-text); line-height: 1.25; }
.brand { display: inline-flex; flex-direction: column; gap: 6px; text-decoration: none; }
.brand-sub { padding-left: 19.5%; font: 500 11px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--color-text-muted); }
/* Workspace badge and switcher (also the co-branding preview in Nieuwe werkruimte) */
.ws { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px 0 6px; border-radius: var(--radius-pill); border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text); font: 500 14px/1 var(--font-body); white-space: nowrap; }
button.ws { cursor: pointer; }
button.ws:hover, button.ws[aria-expanded="true"] { border-color: var(--color-accent); }
.ws .workspace-logo { border-radius: 50%; }
.ws-text { display: flex; flex-direction: column; gap: 4px; text-align: left; min-width: 0; }
.ws-text b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.ws-text span { font-size: 12px; color: var(--color-text-muted); }

.sidebar { position: sticky; top: 0; flex: none; width: 264px; height: 100vh; z-index: 40; display: flex; flex-direction: column; gap: 16px; padding: 22px 14px 14px; background: var(--color-surface); border-right: 1px solid var(--color-border); overflow-y: auto; overscroll-behavior: contain; }
.sb-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 8px 4px; }
.sb-close { display: none; }
.sb-ws { width: 100%; height: auto; min-height: 52px; padding: 7px 12px 7px 7px; border-radius: var(--radius-nested); }
.sb-ws .ws-text { flex: 1 1 0; }
.sb-ws > .lucide { color: var(--color-text-muted); }
.sb-nav { flex: 1 0 auto; }
.sb-nav ul { list-style: none; margin: 0; padding: 0; }
.sb-nav > ul { display: flex; flex-direction: column; gap: 2px; }
.sb-label { padding: 16px 12px 6px; font: 500 11px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--color-text-muted); }
.snav { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 8px 12px; border: 0; border-radius: var(--radius-nested); background: transparent; color: var(--color-text-body); font: 500 14px/1.25 var(--font-body); text-align: left; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s; }
.snav:hover { background: var(--color-bg); color: var(--color-text); text-decoration: none; }
.snav > .lucide { width: 18px; height: 18px; color: var(--color-text-muted); }
.snav.on, .snav.on:hover { background: var(--color-primary); color: #fff; }     /* the page you are on: Lavender, as in OneDigital's own app */
.snav.on > .lucide { color: #fff; }
.snav-group.has-current { color: var(--color-text); font-weight: 600; }         /* a section whose page is open inside it */
.snav-group.has-current > .lucide:first-child { color: var(--color-primary); }
.snav .chev { margin-left: auto; width: 16px; height: 16px; transition: transform .15s; }
.snav[aria-expanded="true"] .chev { transform: rotate(180deg); }
.snav .tag, .snav .count, .snav .sb-badge { margin-left: auto; }
.snav .count { font-weight: 400; color: var(--color-text-muted); font-variant-numeric: tabular-nums; }
.snav.on .count { color: #fff; }
.snav.on .tag--soon { background: rgba(255,255,255,.22); color: #fff; }
.sb-badge { min-width: 22px; height: 22px; padding: 0 7px; border-radius: var(--radius-pill); background: var(--color-error-tint); color: var(--color-error); font: 600 12px/22px var(--font-body); text-align: center; font-variant-numeric: tabular-nums; }
.snav-group .sb-badge + .chev { margin-left: 8px; }                              /* badge and chevron share the right edge */
.snav-group[aria-expanded="true"] .sb-badge { display: none; }                  /* open: the badge shows on the page link instead */
.sb-nav .sb-sub { padding: 2px 0 6px 18px; }
.sb-sub .snav { min-height: 38px; padding: 6px 12px; font-weight: 400; gap: 8px; }
.sb-sub .snav.on { font-weight: 500; }
.sb-sublabel { padding: 10px 12px 4px; font-size: 12px; color: var(--color-text-muted); }
/* Coming soon, at the foot of the sidebar: Dashed Gap Rule, it is not there yet */
.sb-soon { display: flex; flex-direction: column; gap: 2px; padding: 10px; border: 1px dashed var(--color-dashed); border-radius: var(--radius-nested); }
.sb-soon > .eyebrow { padding: 4px 6px 6px; }
.soon-link { display: flex; align-items: center; gap: 10px; padding: 7px 6px; border-radius: 10px; color: var(--color-text); font-weight: 400; text-decoration: none; }
.soon-link:hover { background: var(--color-bg); color: var(--color-text); text-decoration: none; }
.soon-link.active { background: var(--color-primary-tint); }
.soon-link .gap-icon { width: 32px; height: 32px; }
.soon-link .gap-icon .lucide { width: 16px; height: 16px; }
.soon-link b { display: block; font-weight: 600; font-size: 14px; line-height: 1.25; }
.soon-link .caption { display: block; font-size: 12px; }
.sb-foot { display: flex; align-items: center; gap: 10px; padding: 12px 6px 0; border-top: 1px solid var(--color-border); }
.user-avatar { width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--color-primary-tint); color: var(--color-text); display: grid; place-items: center; font: 600 13px/1 var(--font-display); }
.sb-foot .who { flex: 1 1 0; min-width: 0; line-height: 1.3; }
.sb-foot .who .caption { display: block; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-foot .who .workspace-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }   /* not in the demo: a user without a name shows their email */

/* Phones and tablets: a top bar with the menu button; the sidebar becomes a drawer over the page */
.mbar { display: none; }
.sb-scrim { display: none; }
@media (max-width: 991.98px) {
  .app-shell { display: block; }
  .mbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--color-bg); border-bottom: 1px solid var(--color-border); }
  .sidebar { position: fixed; top: 0; bottom: 0; left: 0; width: min(320px, 88vw); height: auto; z-index: 1050; box-shadow: var(--shadow-lg); transform: translateX(-100%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; }
  .sidebar.is-open { transform: none; visibility: visible; transition: transform .25s ease; }
  .sb-close { display: inline-flex; }
  .sb-scrim { display: block; position: fixed; inset: 0; z-index: 1040; background: rgba(1,4,42,.28); opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s linear .25s; }
  .sb-scrim.is-open { opacity: 1; visibility: visible; transition: opacity .25s ease; }
}
@media (prefers-reduced-motion: reduce) { .sidebar, .sb-scrim { transition: none !important; } }

.bubble { max-width: 90%; padding: 10px 14px; font-size: 14px; line-height: 1.35; }
.bubble--q { border-radius: 16px 16px 16px 4px; background: #fff; color: var(--color-text); font-weight: 500; }
.bubble--a { align-self: flex-end; border-radius: 16px 16px 4px 16px; background: var(--color-accent); color: var(--color-accent-on); }

.nav-bottom { position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; background: var(--color-surface); border-top: 1px solid var(--color-border); padding: 6px 0 calc(6px + env(safe-area-inset-bottom)); z-index: 100; }
.nav-bottom-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 64px; min-height: 48px; padding: 4px 8px; font-size: 11px; font-weight: 500; color: var(--color-text-muted); text-decoration: none; background: none; border: 0; }
.nav-bottom-item:hover { color: var(--color-text); text-decoration: none; }
.nav-bottom-item.active { color: var(--color-text); font-weight: 600; }
.nav-bottom-item.active .lucide { color: var(--color-primary); }

@media (max-width: 767.98px) {
  .app-content { padding: 20px 16px 96px; }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  .app-content { padding: 24px 24px 48px; }
}


/* ---------- Inloggen ---------- */
/* One Rich Black card, centred, in the style of the Overzicht band. No split screen. */
.login { min-height: 100vh; display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 20px 16px 32px; }
.login-top { width: 100%; max-width: 1376px; padding: 0 16px; }
.login-card { width: 100%; max-width: 560px; margin: auto 0; background: var(--color-accent); color: var(--color-accent-on); border-radius: 28px; padding: 56px; }
.login-card { display: flex; flex-direction: column; gap: 32px; }
.login-card .eyebrow { color: #9A9CB0; }
.login-title { margin: 0; font: 600 44px/1.05 var(--font-display); letter-spacing: -.03em; color: var(--color-accent-on); }
.login-lede { margin: 0; font-size: 16px; line-height: 1.5; color: #C9CAD8; }
.login-card .form-label { color: #C9CAD8; }
.login-card .invalid-feedback { color: var(--color-error-tint); }
.login-card a:not(.btn) { color: #C9CAD8; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.login-card a:not(.btn):hover { color: #fff; }
.login-card form { display: flex; flex-direction: column; gap: 20px; }
.auth-alert { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--radius-nested); background: var(--color-error-tint); color: var(--color-error); font-size: 13px; }
.auth-alert--ok { background: var(--color-success-tint); color: var(--color-success); }
/* Toasts (app.html): the messages of the app pages */
.app-toast { --bs-toast-max-width: 420px; --bs-toast-bg: var(--color-surface); --bs-toast-color: var(--color-text); --bs-toast-border-color: var(--color-border); --bs-toast-border-radius: var(--radius-nested); --bs-toast-box-shadow: var(--shadow-md); --bs-toast-font-size: 14px; display: flex; align-items: flex-start; gap: 10px; padding: 12px 12px 12px 14px; }
.app-toast > .lucide { margin-top: 2px; color: var(--color-error); }
.app-toast--ok > .lucide { color: var(--color-success); }
.app-toast > span { flex: 1; }
.app-toast .btn-close { flex: none; }
.login-card .form-hint { margin-top: 6px; font-size: 13px; color: #9A9CB0; }
/* Uitnodiging: profile photo, password show/hide and the live password rules */
.reg-photo { display: flex; align-items: center; gap: 20px; }
.reg-avatar { width: 88px; height: 88px; flex: none; border-radius: 50%; display: grid; place-items: center; overflow: hidden; border: 1px dashed #9A9CB0; color: #C9CAD8; }
.reg-avatar .lucide { width: 32px; height: 32px; }
.reg-avatar.has-photo { border: 0; } .reg-avatar img { width: 100%; height: 100%; object-fit: cover; }
.reg-opt { color: #9A9CB0; }
.login-card .btn-secondary { background: #fff; border-color: #fff; color: var(--color-text); }
.login-card .btn-secondary:hover { background: var(--color-sunken); border-color: var(--color-sunken); color: var(--color-text); }
.pass-wrap { position: relative; } .pass-wrap .form-control { padding-right: 52px; }
.pass-toggle { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--color-text-muted); }
.pass-toggle:hover { color: var(--color-text); background: var(--color-sunken); } .pass-toggle .lucide { width: 18px; height: 18px; }
.pass-wrap:has(.is-invalid) ~ .invalid-feedback { display: block; }
.pass-rules { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 10px 0 0; padding: 0; font-size: 13px; color: #9A9CB0; }
.pass-rules li { display: inline-flex; align-items: center; gap: 8px; }
.pass-rules li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; }
.pass-rules li.ok { color: var(--color-success-tint); } .pass-rules li.ok::before { background: currentColor; }
.login-foot { max-width: 520px; text-align: center; font-size: 13px; color: var(--color-text-muted); }
@media (max-width: 575.98px) { .login-card { padding: 32px 24px; border-radius: var(--radius-md); } .login-card { gap: 24px; } .login-title { font-size: 34px; } }

/* ---------- Overzicht (demo screen 2) ---------- */
/* Hero (v3): a white card with the day's insight and the period. Rich Black only as text and accent, no dark band */
.hero { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 32px; display: flex; flex-direction: column; gap: 20px; margin-bottom: 16px; }
.hero-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.hero-fresh { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--color-text-muted); }
.hero-fresh .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-success-dot); }
.hero-fresh .dot--warn { background: var(--color-warning); }
.hero-title { margin: 0; max-width: 24ch; font: 600 48px/1.05 var(--font-display); letter-spacing: -.03em; color: var(--color-text); }
.hero-lede { margin: 0; max-width: 680px; font-size: 17px; line-height: 1.5; color: var(--color-text-body); }
@media (max-width: 767.98px) { .hero { padding: 24px 20px; } .hero-title { font-size: 34px; } }

/* KPI cards (v3): one card per headline KPI the workspace shows: label, number, change, comparison, sparkline */
/* --cols: up to 4 in a row, rows as even as possible (5 → 3 + 2), 2 in a row below 1200 px */
.kpi-cards { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
@media (max-width: 1199.98px) { .kpi-cards { grid-template-columns: repeat(var(--cols-md), minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .kpi-cards { gap: 12px; } }
.kpi-card { padding: 18px 20px 14px; gap: 10px; }
.kpi-card .kpi-val { font-size: 34px; }
.kpi-card .kpi-foot { margin-top: 0; }
.kpi-target { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--color-text-muted); }
@media (max-width: 575.98px) { .kpi-card { padding: 14px; } .kpi-card .kpi-val { font-size: 26px; } }

/* component:chart-line, shared by Overzicht and the channel pages: current period filled, previous period dashed */
.chart-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-bottom: 8px; }
.chart-head .form-select { width: auto; min-height: 36px; padding-top: 4px; padding-bottom: 4px; font-size: 14px; }
.lc { --lc-y: 40px; }
.lc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: 13px; color: var(--color-text-muted); }
.lc-key { display: inline-flex; align-items: center; gap: 8px; }
.lc-key i { display: block; width: 18px; height: 0; border-top: 3px solid var(--color-primary); border-radius: 2px; }
.lc-key--prev i { border-top: 2px dashed var(--color-text-muted); }
.lc-key--line i { border-top-color: var(--color-accent); }
.lc-toggle { border: 0; background: none; padding: 0; min-height: 32px; font-weight: 500; color: var(--color-link); text-decoration: underline; text-underline-offset: 4px; }
.lc-plot { position: relative; height: 240px; margin-top: 24px; }
.lc-grid { position: absolute; left: var(--lc-y); right: 0; border-top: 1px solid var(--color-border); }
.lc-grid span { position: absolute; left: calc(-1 * var(--lc-y)); top: -8px; width: calc(var(--lc-y) - 8px); white-space: nowrap; text-align: right; font-size: 12px; color: var(--color-text-muted); font-variant-numeric: tabular-nums; }
.lc-in { position: absolute; top: 0; bottom: 0; left: var(--lc-y); right: 0; }
.lc-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lc-svg polyline { fill: none; stroke: var(--color-primary); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.lc-svg .lc-line--prev { stroke: var(--color-text-muted); stroke-width: 1.75; stroke-dasharray: 5 5; }
.lc-svg .lc-line--dark { stroke: var(--color-accent); stroke-width: 2; }
.lc-svg .lc-seg-short { stroke-dasharray: 1 5; }
.lc-dot { position: absolute; width: 10px; height: 10px; margin: 0 0 -5px -5px; border-radius: 50%; background: var(--color-surface); border: 2.5px solid var(--color-primary); pointer-events: none; }
.lc-dot--prev { border-color: var(--color-text-muted); border-width: 2px; }
.lc-dot--line { border-color: var(--color-accent); }
.lc-dot--short { border-style: dotted; }   /* a week with fewer than 7 days */
.lc-guide { position: absolute; top: 0; bottom: 0; width: 1px; margin-left: -.5px; background: var(--color-border); pointer-events: none; }
.lc-hits { position: absolute; inset: 0; display: flex; }
.lc-hit { flex: 1 1 0; min-width: 0; height: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.lc-hit:focus-visible { outline: 2px solid var(--color-primary); outline-offset: -2px; border-radius: 6px; }
.lc-tip { position: absolute; z-index: 3; transform: translateX(-50%); display: flex; flex-direction: column; gap: 4px; padding: 10px 14px; border-radius: 14px; background: #fff; color: var(--color-text); box-shadow: var(--shadow-md); white-space: nowrap; pointer-events: none; font-size: 13px; }
.lc-tip .r { display: flex; align-items: center; gap: 8px; } .lc-tip b { font-weight: 600; font-variant-numeric: tabular-nums; }
.lc-x { display: flex; padding-left: var(--lc-y); margin-top: 10px; font-size: 12px; color: var(--color-text-muted); }
.lc-x span { flex: 1 1 0; min-width: 0; white-space: nowrap; text-align: center; }
.lc-tablewrap { display: none; max-height: 284px; overflow: auto; margin-top: 16px; }
.lc.as-table .lc-plot, .lc.as-table .lc-x { display: none; }
.lc.as-table .lc-tablewrap { display: block; }
.lc .t-chart, .lc.as-table .t-table { display: none; } .lc.as-table .t-chart { display: inline; }
/* The small version in KPI cards and ad cards: no axes or legend, the same hover and tooltip */
.lc--mini { margin-top: auto; padding-top: 6px; }
.lc--mini .lc-plot { height: 40px; margin-top: 0; }
.lc--mini .lc-svg polyline { stroke-width: 2; }
.lc--mini .lc-dot { width: 8px; height: 8px; margin: 0 0 -4px -4px; border-width: 2px; }
.lc--mini .lc-tip { padding: 8px 12px; }

/* Tiles, channel split, funnel, account manager */
.kpi12 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
@media (min-width: 768px) { .kpi12 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 992px) { .kpi12 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .kpi12 { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.kpi-tile { padding: 16px 18px; gap: 8px; }
.kpi-head { display: flex; align-items: flex-start; gap: 4px; min-width: 0; min-height: 32px; }   /* room for a label on two lines */
.kpi-head .eyebrow { padding-top: 4px; overflow-wrap: anywhere; }
.kpi-val { font: 500 28px/1.1 var(--font-display); letter-spacing: -.03em; color: var(--color-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-tile .kpi-foot { margin-top: 0; }
/* Grouped tiles on the channel pages: the group name above its tiles, hairlines between groups */
.kpi-group + .kpi-group { padding-top: 16px; border-top: 1px solid var(--color-border); }
.kpi-group > .title { margin-bottom: 12px; }
@media (min-width: 992px) { .kpi-group .kpi12 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
/* Wide screens: the result gets its own row, clicks and visibility share the next, so no row ends half empty */
@media (min-width: 1280px) {
  .kpi-groups { display: flex; flex-wrap: wrap; column-gap: 24px; }
  .kpi-group { flex: var(--n) 1 0; min-width: 0; }
  .kpi-group:first-child { flex-basis: 100%; }
  .kpi-group .kpi12 { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
}
.info-btn { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--color-text-muted); }
.info-btn:hover { background: var(--color-sunken); color: var(--color-text); }
.info-btn .lucide { width: 14px; height: 14px; }
@media (max-width: 767.98px) { .info-btn { position: relative; width: 32px; height: 32px; } .info-btn::after { content: ""; position: absolute; inset: -6px; } }   /* 44 px to tap, 32 px to see */
.tooltip { --bs-tooltip-bg: var(--color-accent); --bs-tooltip-color: var(--color-accent-on); --bs-tooltip-font-size: 13px; --bs-tooltip-max-width: 260px; --bs-tooltip-border-radius: var(--radius-nested); --bs-tooltip-padding-x: 12px; --bs-tooltip-padding-y: 8px; --bs-tooltip-opacity: 1; }
.range-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 6; width: 380px; color: var(--color-text-body); text-align: left; }
@media (max-width: 575.98px) { .range-pop { right: auto; left: 0; width: calc(100vw - 72px); } }
.gap-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (min-width: 1200px) { .gap-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .gap-grid { grid-template-columns: minmax(0, 1fr); } }
.split { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
@media (max-width: 1439.98px) { .split { grid-template-columns: minmax(0, 1fr); } }   /* with the 264 px sidebar, below 1440 the Per kanaal table needs the full row */
.split > .card { padding: 28px; }
.pill-split { display: flex; gap: 4px; height: 56px; }
.pill-split > div { min-width: 0; border-radius: var(--radius-pill); display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 20px; overflow: hidden; }
.pill-split .n { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill-split .p { font: 500 26px/1 var(--font-display); letter-spacing: -.03em; }
/* Phones: the name sits above its share, so a narrow segment still says which channel it is */
@media (max-width: 575.98px) { .pill-split { height: 64px; } .pill-split > div { flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; padding: 0 16px; } .pill-split .n { max-width: 100%; font-size: 13px; } .pill-split .p { font-size: 20px; } }
.ch-table > thead th { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.ch-table > thead th { white-space: normal; vertical-align: bottom; }   /* "Kost per conversie" takes two lines, the table keeps to its card */
.ch-table td, .ch-table th { padding: 14px 10px; text-align: right; white-space: nowrap; }
.ch-table td:first-child, .ch-table th:first-child { text-align: left; padding-left: 0; }
.ch-table tbody td:first-child { white-space: normal; }   /* a "2 d achter" tag drops under the channel name */
.ch-table tbody td:first-child > a { white-space: nowrap; }
.ch-table tfoot td { font-weight: 600; color: var(--color-text); border-bottom: 0; }
.funnel-step { display: flex; flex-direction: column; gap: 6px; }
.funnel-bar { height: 12px; border-radius: var(--radius-pill); background: var(--color-dashed); }
.funnel-step:nth-last-child(2) .funnel-bar { background: var(--color-chart-previous); }
.funnel-step:last-child .funnel-bar { background: var(--color-primary); }
.user-avatar, .am-avatar { overflow: hidden; }
.user-avatar img, .am-avatar img { width: 100%; height: 100%; object-fit: cover; }
.am-avatar { width: 56px; height: 56px; flex: none; border-radius: 50%; background: var(--color-primary-tint); color: var(--color-text); display: grid; place-items: center; font: 600 20px/1 var(--font-display); }
.am-quote { margin: 0; font: 400 22px/30px var(--font-display); color: var(--color-text); }
/* Account manager band under the hero: avatar, who and when, the quote, one button */
.am-band { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 24px 28px; margin-bottom: 24px; }
.am-band-body { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.am-band .am-quote { font-size: 20px; line-height: 28px; }
/* Phones: avatar and name on one line, then the quote and the button at full width */
@media (max-width: 767.98px) {
  .am-band { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 12px; padding: 20px; }
  .am-band .am-avatar { width: 44px; height: 44px; font-size: 16px; }
  .am-band-body { display: contents; }
  .am-band .am-quote, .am-band .btn { grid-column: 1 / -1; justify-self: start; }
}
.sec { display: flex; flex-direction: column; gap: 18px; padding-top: 40px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.notice { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; margin-bottom: 24px; border: 1px solid var(--color-warning); border-radius: var(--radius-nested); color: var(--color-text-body); }
.notice > .lucide { color: var(--color-warning); margin-top: 2px; }
.progress-line { height: 6px; background: var(--color-sunken); border-radius: var(--radius-pill); overflow: hidden; }
.progress-line span { display: block; height: 100%; background: var(--color-text-body); border-radius: var(--radius-pill); }
.channel-name { font-weight: 600; color: var(--color-text); }
.figure-sm { font: 500 20px/1.1 var(--font-display); letter-spacing: -0.02em; color: var(--color-text); }
.kpi-label { font-size: 13px; color: var(--color-text-muted); margin-bottom: 6px; }
.kpi-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin-top: 8px; font-size: 13px; color: var(--color-text-muted); }

/* ---------- Beheer › Verbindingen (demo screen 10) ---------- */
.conn-summary { display: flex; flex-wrap: wrap; gap: 16px 40px; padding-bottom: 32px; }
.conn-table td, .conn-table th { padding: 12px 8px; }
.conn-table tr.ws-head td { padding-top: 24px; border-bottom: 1px solid var(--color-text); }
.conn-table tr.has-issue td { background: var(--color-surface-alt); }
.conn-table tr.issue-detail td { padding-top: 0; color: var(--color-text-body); font-size: 13px; }
/* Source mark, name, and the account under the name: the 16 px column fits the dot and the icon alike */
.conn-source { display: inline-grid; grid-template-columns: 16px auto; align-items: center; column-gap: 8px; }
.conn-source > :first-child { justify-self: center; }
.conn-source > .caption { grid-column: 2; }

/* ---------- Ad card (demo screen 4) ---------- */
/* No "ad" in class names: ad blockers hide .ad-grid, .ad-body and the like on every site (EasyList), so a card
   grid called that disappears for anyone running one. live- is the prefix here. */
.live-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.live-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column; min-width: 0; height: 100%; transition: border-color .15s; }
.live-card:hover { border-color: var(--color-text-faint); }
.live-card.is-paused .cr { opacity: .55; }
.live-creative { position: relative; height: 300px; display: flex; flex-direction: column; }
.cr { flex: 1 1 auto; padding: 24px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; min-height: 0; }
.cr-title { font: 600 40px/1 var(--font-display); letter-spacing: -.03em; color: var(--color-text); }
.cr--dark { background: var(--color-accent); }
.cr--dark .cr-title { font-size: 30px; color: var(--color-accent-on); }
.cr-big { font: 500 80px/.9 var(--font-display); letter-spacing: -.05em; color: var(--color-primary); }
.cr--dark .cr-sub { font-size: 13px; color: #C9CAD8; }
.cr--lavender { background: var(--color-primary-tint); }
.cr--lavender .cr-sub { font: 500 20px/1.2 var(--font-display); color: var(--color-tag-text); }
.cr--grey { background: var(--color-sunken); }
.cr-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cr-chips span { height: 26px; padding: 0 10px; display: inline-flex; align-items: center; border-radius: var(--radius-pill); background: #fff; border: 1px solid var(--color-border); font-size: 12px; font-weight: 500; color: var(--color-text-body); }
.cr--search { background: var(--color-surface-alt); justify-content: flex-start; padding-top: 56px; gap: 12px; }
.cr-query { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px; border-radius: var(--radius-pill); background: #fff; border: 1px solid var(--color-border); color: var(--color-text-body); }
.cr-head { font: 500 17px/1.3 var(--font-body); color: var(--color-text); }
.cr-text { font-size: 13px; line-height: 1.45; }
.cr-strip { flex: none; display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--color-surface-alt); border-top: 1px solid var(--color-border); }
.cr-strip .u { display: block; font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-muted); }
.cr-strip .h { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 14px; font-weight: 600; color: var(--color-text); overflow: hidden; }
.cr-strip .cta { flex: none; height: 30px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: var(--radius-pill); background: var(--color-sunken); color: var(--color-text); font-size: 13px; font-weight: 500; }
.ovl-row { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; gap: 8px; }
.ovl { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: var(--radius-pill); background: #fff; color: var(--color-text); font-size: 12px; font-weight: 600; white-space: nowrap; }
.ovl .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-success-dot); }
.live-body { display: flex; flex-direction: column; gap: 18px; padding: 20px; border-top: 1px solid var(--color-border); flex: 1 1 auto; }
.live-type { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--color-text-muted); }
.live-name { margin: 6px 0 0; font: 600 18px/1.25 var(--font-body); color: var(--color-text); }
.live-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.live-stats b { display: block; margin-bottom: 6px; font: 500 24px/1 var(--font-display); letter-spacing: -.03em; color: var(--color-text); }
.live-stats span { font-size: 12px; color: var(--color-text-muted); }
.live-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--color-border); margin-top: auto; }
.live-trend { flex: 0 0 124px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }   /* the small line chart, as in the KPI cards; as wide as the 14 bars it replaces */
.live-trend .lc--mini .lc-plot { height: 32px; }
.section-title { margin: 0; font: 600 36px/1.05 var(--font-display); letter-spacing: -.03em; color: var(--color-text); }
@media (max-width: 767.98px) { .section-title { font-size: 28px; } }
