/* ============================================================================
   V4 design system for the business app (W07, direction 1 "Vertraut")
   ----------------------------------------------------------------------------
   Source: webapp-v4/system/v4.css and SYSTEM.md. Mockup class X is bl-X here;
   these were renamed because a legacy bl- class of that name means something
   else, or for a clearer shell name:

     .row / .row-between      -> .bl-hrow / .bl-hrow-between
     .rail (review checkbox)  -> .bl-rev-rail
     .tab / .tab-ic / -badge  -> .bl-tabbar-item / .bl-tabbar-ic / .bl-tabbar-badge
     .nav-item / .nav-label   -> .bl-nav-link / .bl-nav-heading
     .modal-backdrop          -> .bl-modal-scrim
     .rating / -num / -count  -> .bl-ratingbox / .bl-ratingbox-num / .bl-ratingbox-count
     .is-*, .has-*            -> .bl-is-*, .bl-has-*
     .skeleton, .skel-*       keep their W03 names (loading_states.css)
     icons                    -> v4_icon("i-name") renders <svg class="bl-ic">

   Scope: every rule needs .bl-v4 on an ancestor. The V4 layout puts it on
   <body> (FeatureSwitch v4_design); V4 partials that can show up inside the
   old shell (plan gate, plan lock) bring their own .bl-v4 wrapper. Without
   the switch nothing here touches a page, the old look stays pixel for pixel.

   Tokens live on <body> (the agency colours are set there, whitelabel swaps
   --brand / --brand-bright), dark mode follows html.dark (theme_controller).
   Live V4 dialog/toast/busy/refresh/plan-gate behaviour: v4_*_controller.js.
   ========================================================================= */

body {
  --font: "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Brand (agency colours, AgencyStyleHelper) */
  --brand: var(--agency-primary, #003a3a);
  --brand-bright: var(--agency-primary-bright, #2dd4bf);
  --brand-2: color-mix(in srgb, var(--brand) 80%, var(--brand-bright));
  --brand-deep: color-mix(in srgb, var(--brand) 62%, #000);

  /* Surfaces and lines */
  --bg: #f4f7f7;
  --surface: #ffffff;
  --surface-2: #f2f6f5;
  --line: #e2eae9;
  --line-strong: #cfdcdb;
  --track: #e5edec;

  /* Text */
  --ink: #0c1b1e;
  --ink-2: #29403f;
  --muted: #5d7275;
  --muted-2: #95a5a7;

  /* Accent (mixed from the brand) */
  --accent: color-mix(in srgb, var(--brand) 60%, var(--brand-bright));
  --accent-ink: color-mix(in srgb, var(--accent) 70%, var(--brand));
  --accent-soft: color-mix(in srgb, var(--accent) 10%, #fff);
  --accent-line: color-mix(in srgb, var(--accent) 32%, transparent);
  --btn-bg: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  --btn-ink: #ffffff;
  --btn-glow: color-mix(in srgb, var(--brand) 38%, transparent);
  --count-bg: var(--brand);
  --count-ink: #ffffff;
  --check-ink: #ffffff;
  --rating-ink: var(--brand);
  --focus: var(--accent);

  /* Status */
  --bad: #be123c;   --bad-soft: #fdeef1;  --bad-line: #f5c5d0;
  --warn: #b45309;  --warn-soft: #fdf4e6; --warn-line: #f1d7ad;
  --good: #047857;  --good-soft: #e6f5ee; --good-line: #bde4d1;
  --star: #cc7306;  --star-off: #d9e2e1;
  --series-ink: #b45309;
  --wa: #25d366;    --wa-ink: #052e1a;

  /* Depth */
  --shadow: 0 1px 2px rgba(12, 27, 30, .04), 0 8px 24px -16px rgba(12, 27, 30, .14);
  --shadow-hover: 0 1px 2px rgba(12, 27, 30, .05), 0 16px 32px -18px rgba(12, 27, 30, .24);
  --shadow-pop: 0 24px 56px -16px rgba(12, 27, 30, .30), 0 2px 8px rgba(12, 27, 30, .06);
  --overlay: rgba(8, 22, 24, .44);

  --sb-w: 256px;
}

.dark body {
  --brand-deep: color-mix(in srgb, var(--brand) 42%, #000);

  --bg: #0b1416;
  --surface: #111c1f;
  --surface-2: #16242a;
  --line: #1f3236;
  --line-strong: #2b4448;
  --track: #1c2f33;

  --ink: #e6efee;
  --ink-2: #c3d3d2;
  --muted: #8ea3a5;
  --muted-2: #5d7377;

  --accent: var(--brand-bright);
  --accent-ink: color-mix(in srgb, var(--brand-bright) 70%, #fff);
  --accent-soft: color-mix(in srgb, var(--brand-bright) 12%, var(--surface));
  --accent-line: color-mix(in srgb, var(--brand-bright) 32%, transparent);
  --btn-bg: var(--brand-bright);
  --btn-ink: #032421;
  --btn-glow: color-mix(in srgb, var(--brand-bright) 22%, transparent);
  --count-bg: var(--brand-bright);
  --count-ink: #032421;
  --check-ink: #032421;
  --rating-ink: var(--ink);
  --focus: var(--brand-bright);

  --bad: #fb7185;   --bad-soft: color-mix(in srgb, #fb7185 13%, var(--surface));  --bad-line: color-mix(in srgb, #fb7185 36%, transparent);
  --warn: #fbbf24;  --warn-soft: color-mix(in srgb, #fbbf24 12%, var(--surface)); --warn-line: color-mix(in srgb, #fbbf24 34%, transparent);
  --good: #34d399;  --good-soft: color-mix(in srgb, #34d399 12%, var(--surface)); --good-line: color-mix(in srgb, #34d399 34%, transparent);
  --star: #fbbf24;  --star-off: #2c4044;
  --series-ink: #fbbf24;

  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 24px -16px rgba(0, 0, 0, .7);
  --shadow-hover: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 32px -18px rgba(0, 0, 0, .8);
  --shadow-pop: 0 24px 56px -12px rgba(0, 0, 0, .75), 0 2px 8px rgba(0, 0, 0, .4);
  --overlay: rgba(0, 0, 0, .58);
}

/* ---------- Base (Tailwind preflight does the rest) ---------- */
body.bl-v4 { margin: 0; min-height: 100vh; font-size: 14px; line-height: 1.5; background: var(--bg); }
.bl-v4 { font-family: var(--font); color: var(--ink); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-feature-settings: "ss01"; }
.bl-v4 :is(strong, b) { font-weight: 700; }
.bl-v4 [hidden], [hidden].bl-v4 { display: none !important; }
.bl-v4 :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.bl-contents { display: contents; }
@media (prefers-reduced-motion: reduce) {
  .bl-v4 *, .bl-v4 *::before, .bl-v4 *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Legacy classes that share a name with a V4 block ----------
   Placed before the blocks so a V4 block on the same element still wins
   (e.g. .bl-card.bl-todo:hover, .bl-card.bl-ref). */
.bl-v4 .bl-card { opacity: 1; transform: none; animation: none; }
.bl-v4 .bl-card:hover { transform: none; box-shadow: var(--shadow); border-color: var(--line); }
.bl-v4 .bl-card.bl-card--open { overflow: visible; }
.bl-v4 .bl-btn-primary { border-color: transparent; }
.bl-v4 .bl-btn-primary:hover { transform: none; }

/* ---------- Base helpers and icons ---------- */
.bl-v4 .bl-mono { font-family: var(--mono); font-feature-settings: normal; }
.bl-v4 .bl-num { font-variant-numeric: tabular-nums; }
.bl-v4 .bl-ml-auto { margin-left: auto; }
.bl-v4 .bl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bl-v4 .bl-ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bl-v4 .bl-ic-12 { width: 12px; height: 12px; stroke-width: 2; }
.bl-v4 .bl-ic-14 { width: 14px; height: 14px; stroke-width: 1.8; }
.bl-v4 .bl-ic-18 { width: 18px; height: 18px; }
.bl-v4 .bl-ic-20 { width: 20px; height: 20px; stroke-width: 1.5; }
.bl-v4 .bl-ic-fill { fill: currentColor; stroke: none; }

/* ---------- Buttons, pills, fields ---------- */
.bl-v4 .bl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent; font-size: 13.5px; font-weight: 600; line-height: 1; white-space: nowrap; transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .2s ease, transform .15s ease, filter .15s ease; }
.bl-v4 .bl-btn-sm { height: 34px; padding: 0 14px; gap: 6px; font-size: 13px; }
.bl-v4 .bl-btn-xs { height: 28px; padding: 0 12px; gap: 6px; font-size: 12px; }
.bl-v4 .bl-btn-primary { background: var(--btn-bg); color: var(--btn-ink); box-shadow: 0 6px 14px -6px var(--btn-glow), inset 0 1px 0 rgba(255, 255, 255, .08); }
.bl-v4 .bl-btn-primary:hover { filter: brightness(1.08); box-shadow: 0 10px 22px -8px var(--btn-glow), inset 0 1px 0 rgba(255, 255, 255, .1); }
.bl-v4 .bl-btn-primary:active { transform: translateY(1px); }
.bl-v4 .bl-btn-primary:disabled { background: var(--surface-2); color: var(--muted); border-color: var(--line); box-shadow: none; filter: none; cursor: not-allowed; transform: none; }
.bl-v4 .bl-btn-outline { background: var(--surface); border-color: var(--line-strong); color: var(--ink-2); }
.bl-v4 .bl-btn-outline:hover { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft); }
.bl-v4 .bl-btn-outline:disabled { background: transparent; border-style: dashed; border-color: var(--line-strong); color: var(--muted-2); cursor: not-allowed; }
.bl-v4 .bl-btn-danger { background: transparent; border-color: var(--bad-line); color: var(--bad); }
.bl-v4 .bl-btn-danger:hover { background: var(--bad-soft); border-color: var(--bad); }
.bl-v4 .bl-btn-count { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: rgba(255, 255, 255, .16); }
.dark .bl-v4 .bl-btn-primary .bl-btn-count { background: rgba(3, 36, 33, .14); }
.bl-v4 .bl-btn-outline .bl-btn-count { background: var(--surface-2); color: var(--muted); font-family: var(--mono); font-weight: 500; }
.bl-v4 .bl-btn-primary:disabled .bl-btn-count { background: var(--line); }
.bl-v4 .bl-iconbtn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; color: var(--muted); transition: background-color .15s ease, color .15s ease; }
.bl-v4 .bl-iconbtn:hover { background: var(--surface-2); color: var(--ink); }
.bl-v4 .bl-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--accent-ink); }
.bl-v4 .bl-link .bl-ic { transition: transform .15s ease; }
.bl-v4 .bl-link:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.bl-v4 .bl-link:hover .bl-ic { transform: translateX(2px); }
.bl-v4 .bl-link-muted { color: var(--muted); }
.bl-v4 .bl-link-muted:hover { color: var(--ink); }
.bl-v4 .bl-textbtn { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: var(--accent-line); }
.bl-v4 .bl-textbtn:hover { text-decoration-color: currentColor; }
.bl-v4 .bl-textbtn-muted { color: var(--muted); text-decoration: none; }
.bl-v4 .bl-textbtn-muted:hover { color: var(--ink); }
.bl-v4 .bl-field { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 38px 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); transition: border-color .15s ease, box-shadow .15s ease; min-width: 0; }
.bl-v4 .bl-field:hover { border-color: var(--muted-2); }
.bl-v4 .bl-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.bl-v4 .bl-field > span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.bl-v4 .bl-field select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; padding: 0; font-size: 13.5px; font-weight: 600; color: var(--ink); cursor: pointer; outline: none; min-width: 0; max-width: 100%; text-overflow: ellipsis; }
.bl-v4 .bl-field select option { background: var(--surface); color: var(--ink); }
.bl-v4 .bl-field .bl-field-chev { position: absolute; right: 14px; top: 50%; margin-top: -6px; color: var(--muted); pointer-events: none; }
.bl-v4 .bl-field-sm { height: 32px; padding: 0 32px 0 12px; }
.bl-v4 .bl-field-sm select { font-size: 12.5px; }
.bl-v4 .bl-field-sm .bl-field-chev { right: 11px; }
.bl-v4 .bl-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.bl-v4 .bl-seg-item { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 28px; min-width: 36px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--muted); transition: background-color .15s ease, color .15s ease, box-shadow .15s ease; }
.bl-v4 .bl-seg-item:hover { color: var(--ink); }
.bl-v4 .bl-seg-item.bl-is-active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(12, 27, 30, .1), 0 0 0 1px var(--line); }
.dark .bl-v4 .bl-seg-item.bl-is-active { background: var(--line-strong); box-shadow: none; }
.bl-v4 .bl-seg-ic { padding: 0; width: 32px; min-width: 32px; }
.bl-v4 .bl-chip { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.bl-v4 .bl-chip:hover { border-color: var(--accent); color: var(--accent-ink); }
.bl-v4 .bl-chip.bl-is-active { background: var(--btn-bg); border-color: transparent; color: var(--btn-ink); }
.bl-v4 .bl-chip.bl-is-active:hover { color: var(--btn-ink); filter: brightness(1.08); }
.bl-v4 .bl-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.bl-v4 .bl-chip:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.bl-v4 .bl-chip i { font-style: normal; color: var(--star); }
.bl-v4 .bl-chip b { font-family: var(--mono); font-weight: 500; font-size: 12px; color: var(--muted); }
.bl-v4 .bl-chip.bl-is-active b { color: inherit; opacity: .8; }
.bl-v4 .bl-status { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.bl-v4 .bl-status-dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; flex: none; }
.bl-v4 .bl-status--bad,
.bl-v4 .bl-status--rejected { background: var(--bad-soft); color: var(--bad); }
.bl-v4 .bl-status--good,
.bl-v4 .bl-status--removed { background: var(--good-soft); color: var(--good); }
.bl-v4 .bl-status--submitted { background: var(--warn-soft); color: var(--warn); }
.bl-v4 .bl-status--reportable,
.bl-v4 .bl-status--queued { background: var(--accent-soft); color: var(--accent-ink); }
.bl-v4 .bl-status--answered { background: var(--surface-2); color: var(--muted); border-color: var(--line); }
.bl-v4 .bl-status--pending { background: transparent; color: var(--muted); border: 1px dashed var(--muted-2); cursor: help; }
.bl-v4 .bl-status--draft { background: transparent; color: var(--accent-ink); border-color: var(--accent-line); }
.bl-v4 .bl-status--draft:hover { background: var(--accent-soft); }
.bl-v4 .bl-stars { position: relative; display: inline-block; font-size: 14px; line-height: 1; letter-spacing: 1px; color: var(--star-off); white-space: nowrap; }
.bl-v4 .bl-stars::before { content: "★★★★★"; }
.bl-v4 .bl-stars::after { content: "★★★★★"; position: absolute; left: 0; top: 0; width: var(--pct, 0%); overflow: hidden; color: var(--star); }
.bl-v4 .bl-starrow { display: inline-flex; gap: 1px; font-size: 14px; line-height: 1; letter-spacing: 0; }
.bl-v4 .bl-starrow i { font-style: normal; color: var(--star-off); }
.bl-v4 .bl-starrow i.bl-on { color: var(--star); }
.bl-v4 .bl-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.bl-v4 .bl-caps { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.bl-v4 .bl-metrics { display: grid; gap: 1px; border-radius: 12px; overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.bl-v4 .bl-metrics > div { padding: 14px 16px; background: var(--surface-2); min-width: 0; }
.bl-v4 .bl-metrics dt,
.bl-v4 .bl-metric-label { font-size: 12px; font-weight: 500; color: var(--muted); }
.bl-v4 .bl-metrics dd,
.bl-v4 .bl-metric-value { margin-top: 6px; font-size: 20px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--ink); }
.bl-v4 .bl-metric-denom { font-size: 14px; font-weight: 600; color: var(--muted); }
.bl-v4 .bl-metric-meta { margin-top: 4px; font-size: 12px; color: var(--muted); }
.bl-v4 .bl-metric-meta--up { color: var(--good); font-weight: 600; }
.bl-v4 .bl-metric--bad { color: var(--bad); }
.bl-v4 .bl-bar { position: relative; height: 6px; margin-top: 8px; border-radius: 999px; background: var(--track); overflow: hidden; }
.bl-v4 .bl-bar > span { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--accent); }
.bl-v4 .bl-bar--warn > span { background: var(--star); }

/* ---------- App shell: sidebar, phone header, tab bar, More sheet ---------- */
.bl-v4 .bl-app { display: grid; grid-template-columns: var(--sb-w) minmax(0, 1fr); min-height: 100vh; transition: grid-template-columns .2s ease; }
.bl-v4 .bl-app.bl-sb-collapsed { --sb-w: 76px; }
.bl-v4 .bl-sb { background: var(--surface); border-right: 1px solid var(--line); min-width: 0; }
.bl-v4 .bl-sb-inner { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 20px 16px 16px; }
.bl-v4 .bl-sb-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 4px 24px 4px; }
.bl-v4 .bl-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.bl-v4 .bl-brand-tile { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .02em; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); flex: none; }
.bl-v4 .bl-nav { flex: 1 1 auto; overflow-y: auto; display: flex; flex-direction: column; gap: 20px; margin: 0 -4px; padding: 0 4px; }
.bl-v4 .bl-nav-heading { padding: 0 12px 6px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.bl-v4 .bl-nav-group { display: flex; flex-direction: column; gap: 2px; }
.bl-v4 .bl-nav-link { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 12px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: background-color .15s ease, color .15s ease; width: 100%; }
.bl-v4 .bl-nav-link .bl-ic { color: var(--muted); transition: color .15s ease; }
.bl-v4 .bl-nav-link:hover { background: var(--surface-2); color: var(--ink); }
.bl-v4 .bl-nav-link:hover .bl-ic { color: var(--ink-2); }
.bl-v4 .bl-nav-link.bl-is-active { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.bl-v4 .bl-nav-link.bl-is-active .bl-ic { color: var(--accent); }
.bl-v4 .bl-nav-badge { margin-left: auto; padding: 1px 8px; border-radius: 999px; font-family: var(--mono); font-size: 11px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); }
.bl-v4 .bl-nav-count { margin-left: auto; display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--count-bg); color: var(--count-ink); }
.bl-v4 .bl-nav-count--alert { background: var(--bad); color: #fff; }
.dark .bl-v4 .bl-nav-count--alert { color: #2a0711; }
.bl-v4 .bl-sb-foot { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.bl-v4 .bl-credit { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); color: var(--ink); }
.bl-v4 .bl-credit-ic { display: inline-grid; place-items: center; color: var(--accent); flex: none; }
.bl-v4 .bl-credit-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.bl-v4 .bl-credit-value { margin-top: 2px; font-size: 20px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.bl-v4 .bl-sb-tools { display: flex; gap: 8px; }
.bl-v4 .bl-sb-tools .bl-seg { flex: 1 1 0; justify-content: stretch; }
.bl-v4 .bl-sb-tools .bl-seg-item { flex: 1 1 0; }
.bl-v4 .bl-usermenu { position: relative; }
.bl-v4 .bl-profile { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border-radius: 12px; font-size: 14px; font-weight: 600; transition: background-color .15s ease; }
.bl-v4 .bl-profile:hover,
.bl-v4 .bl-profile[aria-expanded="true"] { background: var(--surface-2); }
.bl-v4 .bl-profile .bl-ic { color: var(--muted); transition: transform .2s ease; }
.bl-v4 .bl-profile[aria-expanded="true"] .bl-ic { transform: rotate(180deg); }
.bl-v4 .bl-avatar { position: relative; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 12px; font-weight: 700; flex: none; }
.bl-v4 .bl-avatar-dot { position: absolute; top: 0; right: 0; width: 8px; height: 8px; border-radius: 999px; background: var(--bad); box-shadow: 0 0 0 2px var(--surface); }
.bl-v4 .bl-menu { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); z-index: 40; padding: 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-pop); min-width: 224px; }
.bl-v4 .bl-menu-item { display: flex; align-items: center; gap: 10px; width: 100%; height: 38px; padding: 0 10px; border-radius: 9px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); transition: background-color .15s ease, color .15s ease; }
.bl-v4 .bl-menu-item .bl-ic { color: var(--muted); }
.bl-v4 .bl-menu-item:hover,
.bl-v4 .bl-menu-item[aria-expanded="true"] { background: var(--surface-2); color: var(--ink); }
.bl-v4 .bl-menu-sep { height: 1px; margin: 6px 4px; background: var(--line); }
.bl-v4 .bl-tours { position: relative; }
.bl-v4 .bl-flyout { position: absolute; left: calc(100% + 14px); bottom: -6px; z-index: 45; width: 240px; padding: 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-pop); }
.bl-v4 .bl-flyout-label { padding: 8px 10px 6px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.bl-v4 .bl-flyout-item { display: block; width: 100%; padding: 9px 10px; border-radius: 9px; font-size: 13.5px; color: var(--ink-2); }
.bl-v4 .bl-flyout-item:hover { background: var(--surface-2); color: var(--ink); }
.bl-v4 .bl-sb-collapsed .bl-sb-label { display: none !important; }
.bl-v4 .bl-sb-collapsed .bl-sb-inner { padding-left: 12px; padding-right: 12px; }
.bl-v4 .bl-sb-collapsed .bl-sb-head { flex-direction: column; gap: 12px; padding-left: 0; padding-right: 0; }
.bl-v4 .bl-sb-collapsed .bl-sb-head .bl-iconbtn .bl-ic { transform: rotate(180deg); }
.bl-v4 .bl-sb-collapsed .bl-nav-link { justify-content: center; padding: 0; }
.bl-v4 .bl-sb-collapsed .bl-nav-link .bl-nav-count { position: absolute; margin: -22px -26px 0 0; min-width: 16px; height: 16px; font-size: 10px; }
.bl-v4 .bl-sb-collapsed .bl-nav-link { position: relative; }
.bl-v4 .bl-sb-collapsed .bl-credit { justify-content: center; padding: 12px 0; }
.bl-v4 .bl-sb-collapsed .bl-sb-tools { flex-direction: column; }
.bl-v4 .bl-sb-collapsed .bl-profile { justify-content: center; }
.bl-v4 .bl-sb-collapsed .bl-menu { right: auto; width: 240px; }
.bl-v4 .bl-mainwrap { min-width: 0; display: flex; flex-direction: column; }
.bl-v4 .bl-topbar { display: none; }
.bl-v4 .bl-main { width: 100%; max-width: 1184px; margin: 0 auto; padding: 32px 32px 72px; min-width: 0; }
.bl-v4 .bl-tabbar { display: none; }
.bl-v4 .bl-sheet-overlay { position: fixed; inset: 0; z-index: 90; background: var(--overlay); backdrop-filter: blur(3px); }
.bl-v4 .bl-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; max-height: 88vh; overflow-y: auto; padding: 0 12px calc(92px + env(safe-area-inset-bottom, 0px)); background: var(--surface); color: var(--ink); border-radius: 20px 20px 0 0; box-shadow: var(--shadow-pop); transform: translateY(102%); visibility: hidden; transition: transform .2s ease, visibility 0s linear .2s; }
.bl-v4 .bl-sheet.bl-is-open { transform: translateY(0); visibility: visible; transition: transform .2s ease; }
@media (min-width: 1024px) {
  .bl-v4 .bl-sheet,
  .bl-v4 .bl-sheet-overlay { display: none !important; }
}
.bl-v4 .bl-sheet-handle { display: flex; justify-content: center; width: 100%; padding: 12px 0 8px; }
.bl-v4 .bl-sheet-handle span { width: 40px; height: 4px; border-radius: 999px; background: var(--line-strong); }
.bl-v4 .bl-sheet-label { padding: 16px 12px 6px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.bl-v4 .bl-sheet-nav { display: flex; flex-direction: column; gap: 2px; }
.bl-v4 .bl-sheet-item { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 8px 12px; border-radius: 12px; font-size: 15px; color: var(--ink); text-align: left; transition: background-color .15s ease; }
.bl-v4 .bl-sheet-item:hover,
.bl-v4 .bl-sheet-item:active,
.bl-v4 .bl-sheet-item[aria-expanded="true"] { background: var(--surface-2); }
.bl-v4 .bl-sheet-static:hover,
.bl-v4 .bl-sheet-static:active { background: transparent; }
.bl-v4 .bl-sheet-ic { position: relative; display: inline-grid; place-items: center; width: 24px; color: var(--ink-2); flex: none; }
.bl-v4 .bl-sheet-ic-badge { position: absolute; top: -6px; right: -8px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--bad); color: #fff; font-size: 9.5px; font-weight: 700; display: grid; place-items: center; }
.bl-v4 .bl-sheet-text { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.bl-v4 .bl-sheet-text span { font-weight: 600; }
.bl-v4 .bl-sheet-text small { font-size: 12.5px; color: var(--muted); }
.bl-v4 .bl-sheet-chev { color: var(--muted); transition: transform .2s ease; }
.bl-v4 .bl-sheet-item[aria-expanded="true"] .bl-sheet-chev { transform: rotate(180deg); }
.bl-v4 .bl-sheet-sub { margin: 2px 0 6px 48px; padding-left: 12px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.bl-v4 .bl-sheet-subitem { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 10px; font-size: 14.5px; color: var(--ink-2); }
.bl-v4 .bl-sheet-subitem:hover { background: var(--surface-2); }
.bl-v4 .bl-sheet-credit { padding: 8px 0 4px; }
.bl-v4 .bl-sheet-credit .bl-credit { width: 100%; }
.bl-v4 .bl-sheet-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 16px 4px 0; border-top: 1px solid var(--line); }
.bl-v4 .bl-sheet-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bl-v4 .bl-sheet-mail { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bl-v4 .bl-sheet-foot-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.bl-v4 .bl-sheet .bl-seg-item { height: 34px; min-width: 40px; }
.bl-v4 .bl-sheet .bl-seg-ic { width: 40px; }

/* ---------- Dashboard family ---------- */
.bl-v4 .bl-band { position: relative; overflow: hidden; border-radius: 20px; padding: 32px; color: #fff; background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%); box-shadow: 0 16px 36px -20px color-mix(in srgb, var(--brand) 70%, transparent); isolation: isolate; }
.bl-v4 .bl-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 90% at 0% 0%, rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, 0) 55%); pointer-events: none; }
.bl-v4 .bl-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 22px); -webkit-mask-image: linear-gradient(135deg, #000 0%, rgba(0, 0, 0, .2) 80%); mask-image: linear-gradient(135deg, #000 0%, rgba(0, 0, 0, .2) 80%); pointer-events: none; }
.dark .bl-v4 .bl-band { box-shadow: 0 16px 40px -20px rgba(0, 0, 0, .8); border: 1px solid color-mix(in srgb, var(--brand-bright) 10%, transparent); }
.dark .bl-v4 .bl-band::before { background: radial-gradient(60% 90% at 0% 0%, color-mix(in srgb, var(--brand-bright) 12%, transparent) 0%, transparent 55%); }
.bl-v4 .bl-band :focus-visible { outline-color: #fff; }
.bl-v4 .bl-band-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.bl-v4 .bl-band-eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.bl-v4 .bl-band-title { margin-top: 8px; font-size: 30px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
.bl-v4 .bl-band-sub { margin-top: 6px; font-size: 15px; color: rgba(255, 255, 255, .8); }
.bl-v4 .bl-band-actions { display: flex; flex-wrap: wrap; gap: 8px; flex: none; padding-top: 4px; }
.bl-v4 .bl-btn-white { background: #fff; color: var(--brand); box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .4); }
.bl-v4 .bl-btn-white:hover { background: color-mix(in srgb, #fff 92%, var(--brand-bright)); }
.bl-v4 .bl-btn-white .bl-btn-count { background: var(--brand); color: #fff; min-width: 20px; justify-content: center; padding: 0 6px; }
.bl-v4 .bl-btn-glass { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .28); color: #fff; }
.bl-v4 .bl-btn-glass:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .44); }
.bl-v4 .bl-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.bl-v4 .bl-kpi { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label label" "value viz" "meta meta"; align-items: center; gap: 6px 16px; padding: 16px 20px; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); min-width: 0; }
.bl-v4 .bl-kpi-label { grid-area: label; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.bl-v4 .bl-kpi-value { grid-area: value; display: flex; align-items: baseline; gap: 6px; font-size: 28px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.bl-v4 .bl-kpi-star { color: var(--star); font-size: 18px; }
.bl-v4 .bl-kpi-viz { grid-area: viz; width: 112px; height: 32px; display: flex; align-items: center; }
.bl-v4 .bl-kpi-viz svg { display: block; width: 100%; height: 100%; overflow: visible; }
.bl-v4 .bl-kpi-meta { grid-area: meta; font-size: 12.5px; color: rgba(255, 255, 255, .74); }
.bl-v4 .bl-spark-area { fill: color-mix(in srgb, var(--brand-bright) 18%, transparent); stroke: none; }
.bl-v4 .bl-spark-line { fill: none; stroke: var(--brand-bright); stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; }
.bl-v4 .bl-spark-dot { fill: var(--brand-bright); stroke: var(--brand-deep); stroke-width: 2; }
.bl-v4 .bl-minibar { display: flex; gap: 2px; width: 100%; height: 6px; border-radius: 999px; overflow: hidden; }
.bl-v4 .bl-minibar span { display: block; height: 100%; }
.bl-v4 .bl-minibar .bl-is-removed { background: var(--brand-bright); }
.bl-v4 .bl-minibar .bl-is-review { background: #fbbf24; }
.bl-v4 .bl-minibar .bl-is-rejected { background: rgba(255, 255, 255, .34); }
.bl-v4 .bl-zone { margin-top: 40px; }
.bl-v4 .bl-zone-head { display: flex; align-items: center; gap: 10px; min-height: 28px; margin-bottom: 16px; }
.bl-v4 .bl-zone-title { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.bl-v4 .bl-zone-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; font-family: var(--mono); font-size: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.bl-v4 .bl-zone-head .bl-link { margin-left: auto; }
.bl-v4 .bl-cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; margin-top: 40px; }
.bl-v4 .bl-col { display: flex; flex-direction: column; min-width: 0; }
.bl-v4 .bl-col > .bl-card { flex: 1 1 auto; }
.bl-v4 .bl-todos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.bl-v4 .bl-todo { display: flex; flex-direction: column; padding: 22px 20px 20px; overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease; }
.bl-v4 .bl-todo::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--edge, var(--accent)); }
.bl-v4 .bl-todo--danger { --edge: var(--bad); }
.bl-v4 .bl-todo--info { --edge: var(--accent); }
.bl-v4 .bl-todo--success { --edge: var(--good); }
.bl-v4 .bl-todo:hover { border-color: var(--line-strong); box-shadow: var(--shadow-hover); }
.bl-v4 .bl-todo-title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 15px; font-weight: 700; line-height: 1.35; }
.bl-v4 .bl-todo-sub { margin-top: 4px; font-size: 13px; color: var(--muted); }
.bl-v4 .bl-todo-preview { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.bl-v4 .bl-todo-preview-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bl-v4 .bl-todo-time { font-family: var(--mono); font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.bl-v4 .bl-todo-tag { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.bl-v4 .bl-todo-by { margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.bl-v4 .bl-todo-preview-top + .bl-todo-by { margin-top: 8px; }
.bl-v4 .bl-todo-quote { margin-top: 4px; font-size: 13px; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bl-v4 .bl-todo-foot { margin-top: auto; padding-top: 16px; }
.bl-v4 .bl-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bl-v4 .bl-loc { display: flex; flex-direction: column; padding: 24px; }
.bl-v4 .bl-loc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.bl-v4 .bl-loc-id { min-width: 0; }
.bl-v4 .bl-loc-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.bl-v4 .bl-loc-title { font-size: 16px; font-weight: 700; letter-spacing: -.005em; }
.bl-v4 .bl-loc-addr { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; color: var(--muted); }
.bl-v4 .bl-loc-rating { text-align: right; flex: none; }
.bl-v4 .bl-loc-rating-value { font-size: 36px; font-weight: 700; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--rating-ink); }
.bl-v4 .bl-loc-rating .bl-stars { margin-top: 8px; font-size: 13px; }
.bl-v4 .bl-loc-rating-label { margin-top: 6px; font-size: 11px; font-weight: 600; color: var(--muted); }
.bl-v4 .bl-loc .bl-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 20px; }
.bl-v4 .bl-loc-foot { margin-top: auto; padding-top: 20px; display: flex; justify-content: flex-end; }
.bl-v4 .bl-combo { padding: 24px; }
.bl-v4 .bl-combo-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.bl-v4 .bl-combo-left { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; min-width: 0; }
.bl-v4 .bl-card-title { font-size: 15px; font-weight: 700; }
.bl-v4 .bl-combo-summary { margin-top: 20px; font-size: 14px; color: var(--muted); }
.bl-v4 .bl-combo-summary strong { color: var(--ink); font-weight: 700; }
.bl-v4 .bl-combo-total { font-size: 24px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; margin-right: 2px; }
.bl-v4 .bl-sep { margin: 0 6px; color: var(--muted-2); }
.bl-v4 .bl-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.bl-v4 .bl-legend span { display: inline-flex; align-items: center; gap: 8px; }
.bl-v4 .bl-swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.bl-v4 .bl-swatch--line { width: 16px; height: 2px; border-radius: 2px; background: var(--star); position: relative; }
.bl-v4 .bl-swatch--line::after { content: ""; position: absolute; left: 5px; top: -2.5px; width: 7px; height: 7px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--star); box-sizing: border-box; }
.bl-v4 .bl-chart { display: block; width: 100%; height: 232px; margin-top: 16px; overflow: visible; }
.bl-v4 .bl-chart-grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; }
.bl-v4 .bl-chart-base { stroke: var(--line-strong); stroke-width: 1; }
.bl-v4 .bl-chart-ylabel { font-family: var(--mono); font-size: 10.5px; fill: var(--muted); }
.bl-v4 .bl-chart-ylabel--r { fill: var(--series-ink); }
.bl-v4 .bl-chart-xlabel { font-family: var(--mono); font-size: 10.5px; fill: var(--muted); }
.bl-v4 .bl-chart-bar { fill: var(--accent); opacity: .9; transition: opacity .15s ease; }
.bl-v4 .bl-chart-bar:hover { opacity: 1; }
.bl-v4 .bl-chart-bar.bl-is-peak { opacity: 1; }
.bl-v4 .bl-chart-line { fill: none; stroke: var(--star); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.bl-v4 .bl-chart-dot { fill: var(--surface); stroke: var(--star); stroke-width: 2; }
.bl-v4 .bl-funnel { display: flex; flex-direction: column; padding: 24px; }
.bl-v4 .bl-funnel-total { margin-top: 8px; font-size: 36px; font-weight: 700; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.bl-v4 .bl-funnel-rows { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.bl-v4 .bl-funnel-row-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--ink-2); }
.bl-v4 .bl-funnel-row-top b { font-size: 15px; font-variant-numeric: tabular-nums; color: var(--ink); }
.bl-v4 .bl-track { position: relative; height: 8px; margin-top: 8px; border-radius: 999px; background: var(--track); overflow: hidden; }
.bl-v4 .bl-track > span { position: absolute; inset: 0 auto 0 0; border-radius: inherit; }
.bl-v4 .bl-track .bl-is-removed { background: var(--accent); }
.bl-v4 .bl-track .bl-is-review { background: var(--star); }
.bl-v4 .bl-track .bl-is-rejected { background: var(--muted-2); }
.bl-v4 .bl-note { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.bl-v4 .bl-note .bl-ic { margin-top: 2px; }
.bl-v4 .bl-funnel .bl-note { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.bl-v4 .bl-funnel .bl-link { margin-top: auto; padding-top: 16px; align-self: flex-start; }
.bl-v4 .bl-activity { display: flex; flex-direction: column; overflow: hidden; }
.bl-v4 .bl-ftabs { display: flex; gap: 8px; padding: 16px 20px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.bl-v4 .bl-ftabs::-webkit-scrollbar { display: none; }
.bl-v4 .bl-feed { flex: 1 1 auto; }
.bl-v4 .bl-feed-item { display: grid; grid-template-columns: 84px 16px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--line); transition: background-color .15s ease; }
.bl-v4 .bl-feed-item:hover { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.bl-v4 .bl-feed-time { font-family: var(--mono); font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.bl-v4 .bl-feed-ic { color: var(--muted); }
.bl-v4 .bl-feed-text { font-size: 14px; color: var(--ink-2); min-width: 0; }
.bl-v4 .bl-feed-text strong { color: var(--ink); font-weight: 600; }
.bl-v4 .bl-feed-stars { color: var(--star); letter-spacing: 1px; margin-right: 4px; }
.bl-v4 .bl-pill-link { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 12.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; transition: border-color .15s ease, color .15s ease, background-color .15s ease; }
.bl-v4 .bl-pill-link:hover { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft); }
.bl-v4 .bl-feed-more { display: flex; justify-content: center; padding: 12px 20px; margin-top: -1px; border-top: 1px solid var(--line); }
.bl-v4 .bl-feed-more .bl-link { min-height: 32px; }
.bl-v4 .bl-ref { display: flex; flex-direction: column; padding: 24px; color: #fff; border: 0; background: linear-gradient(160deg, var(--brand) 0%, var(--brand-deep) 100%); overflow: hidden; isolation: isolate; }
.bl-v4 .bl-ref::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 22px); pointer-events: none; }
.bl-v4 .bl-ref :focus-visible { outline-color: #fff; }
.bl-v4 .bl-ref-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.bl-v4 .bl-ref-total { margin-top: 8px; display: flex; align-items: baseline; gap: 8px; }
.bl-v4 .bl-ref-total .bl-num { font-size: 36px; font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.bl-v4 .bl-ref-unit { font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .85); }
.bl-v4 .bl-ref-soft { font-size: 13px; color: rgba(255, 255, 255, .8); }
.bl-v4 .bl-ref-soft strong { color: #fff; }
.bl-v4 .bl-ref-total + .bl-ref-soft { margin-top: 8px; }
.bl-v4 .bl-ref-track { height: 6px; margin: 12px 0; border-radius: 999px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.bl-v4 .bl-ref-track span { display: block; height: 100%; border-radius: inherit; background: var(--brand-bright); }
.bl-v4 .bl-ref-code { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 44px; margin-top: 20px; padding: 0 16px; border-radius: 12px; border: 1px dashed rgba(255, 255, 255, .32); background: rgba(255, 255, 255, .06); }
.bl-v4 .bl-ref-code span:first-child { font-size: 12px; color: rgba(255, 255, 255, .72); }
.bl-v4 .bl-ref-code .bl-mono { font-size: 14px; font-weight: 500; letter-spacing: .06em; color: #fff; }
.bl-v4 .bl-ref-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.bl-v4 .bl-ref-actions .bl-btn { position: relative; width: 100%; }
.bl-v4 .bl-btn-wa { background: var(--wa); color: var(--wa-ink); }
.bl-v4 .bl-btn-wa:hover { filter: brightness(1.06); }
.bl-v4 .bl-tip { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); padding: 4px 10px; border-radius: 8px; background: var(--ink); color: var(--surface); font-size: 12px; font-weight: 600; white-space: nowrap; box-shadow: var(--shadow-pop); pointer-events: none; }
.bl-v4 .bl-ref-hint { margin-top: 16px; font-size: 12.5px; line-height: 1.5; }
.bl-v4 .bl-ref .bl-link { margin-top: auto; padding-top: 16px; color: #fff; }

/* ---------- Reviews family ---------- */
.bl-v4 .bl-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.bl-v4 .bl-page-head-left { display: flex; align-items: flex-start; gap: 16px; min-width: 0; }
.bl-v4 .bl-back { display: inline-grid; place-items: center; width: 36px; height: 36px; margin-top: 2px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); flex: none; transition: color .15s ease, border-color .15s ease, background-color .15s ease, transform .15s ease; }
.bl-v4 .bl-back:hover { color: var(--accent-ink); border-color: var(--accent-line); background: var(--accent-soft); transform: translateX(-2px); }
.bl-v4 .bl-page-title { font-size: 26px; font-weight: 700; line-height: 1.2; letter-spacing: -.015em; }
.bl-v4 .bl-title-accent { display: block; width: 40px; height: 3px; margin-top: 10px; border-radius: 2px; background: linear-gradient(90deg, var(--brand), var(--brand-bright)); }
.dark .bl-v4 .bl-title-accent { background: linear-gradient(90deg, var(--brand-2), var(--brand-bright)); }
.bl-v4 .bl-page-sub { margin-top: 10px; font-size: 14px; color: var(--muted); }
.bl-v4 .bl-head-pills { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding-top: 2px; }
.bl-v4 .bl-hpill { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-ink); }
.bl-v4 .bl-hpill strong { font-weight: 800; font-variant-numeric: tabular-nums; }
.bl-v4 .bl-hpill .bl-dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.bl-v4 .bl-hpill--quiet { background: var(--surface); border-color: var(--line); color: var(--ink-2); }
.bl-v4 .bl-hpill--link { background: var(--surface); border-color: var(--line); color: var(--ink-2); transition: border-color .15s ease, color .15s ease; }
.bl-v4 .bl-hpill--link:hover { border-color: var(--accent); color: var(--accent-ink); }
.bl-v4 .bl-overview { padding: 24px; }
.bl-v4 .bl-ov-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; }
.bl-v4 .bl-ov-left { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.bl-v4 .bl-ov-right { display: flex; flex-direction: column; gap: 16px; padding-left: 32px; border-left: 1px solid var(--line); }
.bl-v4 .bl-meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.bl-v4 .bl-plan { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--accent-soft); color: var(--accent-ink); border: 1px solid var(--accent-line); }
.bl-v4 .bl-sync { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.bl-v4 .bl-addr { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.bl-v4 .bl-addr .bl-ic { color: var(--muted); }
.bl-v4 .bl-poa { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid; font-size: 13px; }
.bl-v4 .bl-poa--ok { background: var(--good-soft); border-color: var(--good-line); color: var(--ink-2); }
.bl-v4 .bl-poa--ok > .bl-ic { color: var(--good); }
.bl-v4 .bl-poa--ok strong { color: var(--ink); }
.bl-v4 .bl-poa--ok p { flex: 1 1 auto; min-width: 0; }
.bl-v4 .bl-poa--ok p span { color: var(--muted); }
.bl-v4 .bl-poa--ok .bl-textbtn { color: var(--good); text-decoration-color: var(--good-line); }
.bl-v4 .bl-poa--missing { background: var(--warn-soft); border-color: var(--warn-line); color: var(--ink-2); }
.bl-v4 .bl-poa--missing > .bl-ic { color: var(--warn); }
.bl-v4 .bl-poa--missing > div { flex: 1 1 auto; min-width: 0; }
.bl-v4 .bl-poa--missing strong { color: var(--ink); }
.bl-v4 .bl-poa-hint { margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.bl-v4 .bl-ratingbox { display: flex; align-items: center; gap: 16px; }
.bl-v4 .bl-ratingbox-num { font-size: 48px; font-weight: 700; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--rating-ink); }
.bl-v4 .bl-ratingbox .bl-stars { font-size: 16px; }
.bl-v4 .bl-ratingbox-count { margin-top: 6px; font-size: 13px; color: var(--muted); }
.bl-v4 .bl-dist { display: flex; flex-direction: column; gap: 6px; }
.bl-v4 .bl-dist-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) 34px; align-items: center; gap: 10px; }
.bl-v4 .bl-dist-lab { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.bl-v4 .bl-dist-lab i { font-style: normal; color: var(--star); font-size: 11px; }
.bl-v4 .bl-dist-track { position: relative; height: 8px; border-radius: 999px; background: var(--track); overflow: hidden; }
.bl-v4 .bl-dist-track span { position: absolute; inset: 0 auto 0 0; border-radius: inherit; }
.bl-v4 .bl-dist-hi { background: var(--accent); }
.bl-v4 .bl-dist-mid { background: var(--star); }
.bl-v4 .bl-dist-lo { background: var(--bad); }
.bl-v4 .bl-dist-num { font-family: var(--mono); font-size: 11.5px; color: var(--muted); text-align: right; }
.bl-v4 .bl-overview .bl-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 24px; }
.bl-v4 .bl-ov-value { margin-top: 6px; display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 700; line-height: 1.25; font-variant-numeric: tabular-nums; }
.bl-v4 .bl-ov-value .bl-bar { flex: 0 0 120px; margin-top: 0; }
.bl-v4 .bl-ov-sub { margin-top: 6px; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.bl-v4 .bl-overview > .bl-note { margin-top: 16px; }
.bl-v4 .bl-filters { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title actions" "row row" "chips chips"; gap: 16px 16px; margin-top: 16px; padding: 18px 20px 20px; }
.bl-v4 .bl-f-title { grid-area: title; display: flex; align-items: baseline; gap: 10px; align-self: center; }
.bl-v4 .bl-f-title h2 { font-size: 15px; font-weight: 700; }
.bl-v4 .bl-f-count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bl-v4 .bl-f-count strong { color: var(--ink); }
.bl-v4 .bl-f-actions { grid-area: actions; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.bl-v4 .bl-f-row { grid-area: row; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bl-v4 .bl-search { flex: 1 1 280px; display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted); transition: border-color .15s ease, box-shadow .15s ease; min-width: 0; }
.bl-v4 .bl-search:hover { border-color: var(--muted-2); }
.bl-v4 .bl-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.bl-v4 .bl-search input { flex: 1 1 auto; min-width: 0; height: 100%; border: 0; background: transparent; outline: none; font-size: 14px; color: var(--ink); }
.bl-v4 .bl-search input::placeholder { color: var(--muted); }
.bl-v4 .bl-search input::-webkit-search-cancel-button { filter: grayscale(1); }
.bl-v4 .bl-f-chips { grid-area: chips; display: grid; grid-template-columns: 168px minmax(0, 1fr); align-items: center; gap: 10px 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.bl-v4 .bl-chipgroup-label { font-size: 12.5px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.bl-v4 .bl-chipgroup { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.bl-v4 .bl-listhead { display: flex; align-items: center; gap: 16px; min-height: 56px; margin: 24px 0 12px; padding: 8px 8px 8px 20px; border-radius: 16px; border: 1px solid transparent; transition: background-color .2s ease, color .2s ease, box-shadow .2s ease; }
.bl-v4 .bl-listhead-count { font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bl-v4 .bl-listhead-count strong { color: var(--ink); }
.bl-v4 .bl-listhead-credits { font-size: 13.5px; color: var(--muted); }
.bl-v4 .bl-listhead-credits strong { color: var(--ink); }
.bl-v4 .bl-listhead-actions { margin-left: auto; display: flex; gap: 8px; }
.bl-v4 .bl-listhead.bl-has-selection { position: sticky; top: 12px; z-index: 30; background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%); color: #fff; box-shadow: 0 16px 36px -16px color-mix(in srgb, var(--brand) 70%, transparent); }
.dark .bl-v4 .bl-listhead.bl-has-selection { border-color: color-mix(in srgb, var(--brand-bright) 30%, transparent); box-shadow: var(--shadow-pop); }
.bl-v4 .bl-listhead.bl-has-selection .bl-listhead-count,
.bl-v4 .bl-listhead.bl-has-selection .bl-listhead-credits { color: rgba(255, 255, 255, .82); }
.bl-v4 .bl-listhead.bl-has-selection .bl-listhead-count strong,
.bl-v4 .bl-listhead.bl-has-selection .bl-listhead-credits strong { color: #fff; }
.bl-v4 .bl-listhead.bl-has-selection .bl-check-box { border-color: rgba(255, 255, 255, .7); background: transparent; }
.bl-v4 .bl-listhead.bl-has-selection .bl-check input:checked + .bl-check-box,
.bl-v4 .bl-listhead.bl-has-selection .bl-check input:indeterminate + .bl-check-box { background: #fff; border-color: #fff; }
.bl-v4 .bl-listhead.bl-has-selection .bl-check input:checked + .bl-check-box::after { border-color: var(--brand); }
.bl-v4 .bl-listhead.bl-has-selection .bl-check input:indeterminate + .bl-check-box::after { border-color: var(--brand); }
.bl-v4 .bl-listhead.bl-has-selection .bl-btn-primary { background: #fff; color: var(--brand); box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .5); }
.bl-v4 .bl-listhead.bl-has-selection :focus-visible { outline-color: #fff; }
.bl-v4 .bl-check { position: relative; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.bl-v4 .bl-check input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.bl-v4 .bl-check-box { position: relative; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-strong); background: var(--surface); flex: none; transition: background-color .15s ease, border-color .15s ease; }
.bl-v4 .bl-check-box::after { content: ""; width: 10px; height: 5px; margin-top: -2px; border-left: 2px solid var(--check-ink); border-bottom: 2px solid var(--check-ink); transform: rotate(-45deg); opacity: 0; transition: opacity .15s ease; }
.bl-v4 .bl-check:hover .bl-check-box { border-color: var(--accent); }
.bl-v4 .bl-check input:checked + .bl-check-box,
.bl-v4 .bl-check input:indeterminate + .bl-check-box { background: var(--accent); border-color: var(--accent); }
.bl-v4 .bl-check input:checked + .bl-check-box::after { opacity: 1; }
.bl-v4 .bl-check input:indeterminate + .bl-check-box::after { opacity: 1; width: 10px; height: 0; margin-top: 0; border-left: 0; transform: none; }
.bl-v4 .bl-check input:focus-visible + .bl-check-box { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- Reviews family ---------- */
.bl-v4 .bl-list { display: flex; flex-direction: column; gap: 12px; }
.bl-v4 .bl-rev { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 0 16px; padding: 20px 24px 20px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); transition: border-color .15s ease, box-shadow .2s ease, background-color .15s ease; }
.bl-v4 .bl-rev:hover { border-color: var(--line-strong); }
.bl-v4 .bl-rev.bl-is-selected,
.bl-v4 .bl-rev.bl-is-composing { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.bl-v4 .bl-rev.bl-is-selected { background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface)); }
.bl-v4 .bl-rev-rail { display: flex; justify-content: center; padding-top: 8px; }
.bl-v4 .bl-why { display: inline-grid; place-items: center; width: 20px; height: 20px; color: var(--muted-2); cursor: help; border-radius: 999px; }
.bl-v4 .bl-why:hover { color: var(--muted); }
.bl-v4 .bl-rev-main { min-width: 0; }
.bl-v4 .bl-rev-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-height: 36px; }
.bl-v4 .bl-av { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); font-size: 14px; font-weight: 700; flex: none; }
.bl-v4 .bl-av--anon { background: transparent; border-style: dashed; border-color: var(--line-strong); color: var(--muted); }
.bl-v4 .bl-rev-name { font-size: 15px; font-weight: 700; }
.bl-v4 .bl-rev-head .bl-starrow { margin-right: 2px; }
.bl-v4 .bl-rev-date { margin-left: auto; font-size: 13px; color: var(--muted); white-space: nowrap; }
.bl-v4 .bl-rev-body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin: 8px 0 0 46px; }
.bl-v4 .bl-rev-body > * { max-width: 100%; }
.bl-v4 .bl-rev-body:empty { display: none; }
.bl-v4 .bl-history { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; width: 100%; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); font-size: 12.5px; color: var(--muted); }
.bl-v4 .bl-history .bl-ic { color: var(--muted); }
.bl-v4 .bl-history strong { color: var(--ink-2); font-weight: 600; }
.bl-v4 .bl-history-ok { color: var(--good); font-weight: 600; }
.bl-v4 .bl-history .bl-textbtn { margin-left: auto; font-size: 12.5px; }
.bl-v4 .bl-inline-warn { width: 100%; padding: 8px 12px; border-radius: 10px; background: var(--warn-soft); border: 1px solid var(--warn-line); color: var(--ink-2); font-size: 13px; }
.bl-v4 .bl-text-wrap { width: 100%; }
.bl-v4 .bl-rev-text { font-size: 15px; line-height: 1.6; color: var(--ink-2); max-width: 72ch; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bl-v4 .bl-rev-text.bl-is-expanded { display: block; -webkit-line-clamp: unset; }
.bl-v4 .bl-rev.bl-is-reported .bl-rev-text { color: var(--muted); }
.bl-v4 .bl-text-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.bl-v4 .bl-text-links:has(> :not([hidden])) { margin-top: 6px; }
.bl-v4 .bl-images { display: flex; gap: 8px; }
.bl-v4 .bl-thumb { display: block; width: 72px; height: 72px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); transition: transform .15s ease, box-shadow .15s ease; }
.bl-v4 .bl-thumb:hover { transform: translateY(-1px); box-shadow: var(--shadow-hover); }
.bl-v4 .bl-thumb-art { display: block; width: 100%; height: 100%; }
.bl-v4 .bl-thumb-art--1 { background: radial-gradient(70% 60% at 35% 35%, #e7c79e 0%, transparent 70%), linear-gradient(135deg, #d2a874, #8e5b2c); }
.bl-v4 .bl-thumb-art--2 { background: radial-gradient(70% 60% at 60% 40%, #f6e6c8 0%, transparent 70%), linear-gradient(135deg, #e9d2ab, #b7804b); }
.bl-v4 .bl-image-note { margin-top: -4px; font-size: 12.5px; color: var(--warn); font-weight: 500; }
.bl-v4 .bl-owner { width: 100%; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); border-left: 3px solid var(--accent); }
.bl-v4 .bl-owner-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bl-v4 .bl-owner-label { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.bl-v4 .bl-owner-text { margin-top: 8px; font-size: 14px; line-height: 1.55; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bl-v4 .bl-owner-text.bl-is-expanded { display: block; -webkit-line-clamp: unset; }
.bl-v4 .bl-owner .bl-textbtn { margin-top: 4px; }
.bl-v4 .bl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bl-v4 .bl-actions .bl-btn-primary .bl-btn-count { font-family: var(--font); }
.bl-v4 .bl-compose { width: 100%; display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.bl-v4 .bl-ai-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bl-v4 .bl-ai-ctl .bl-btn-outline { height: 32px; }
.bl-v4 .bl-ai-sep { width: 1px; height: 20px; background: var(--line-strong); margin: 0 4px; }
.bl-v4 .bl-counter { font-family: var(--mono); font-size: 11.5px; color: var(--muted); padding: 0 4px; }
.bl-v4 .bl-loading { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.bl-v4 .bl-spinner { width: 16px; height: 16px; border-radius: 999px; border: 2px solid var(--line-strong); border-top-color: var(--accent); animation: bl-spin .8s linear infinite; flex: none; }
.bl-v4 .bl-spinner--lg { width: 32px; height: 32px; border-width: 3px; }
@keyframes bl-spin { to { transform: rotate(360deg); } }
.bl-v4 .bl-textarea { display: block; width: 100%; min-height: 96px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 14.5px; line-height: 1.55; color: var(--ink); resize: vertical; transition: border-color .15s ease, box-shadow .15s ease; }
.bl-v4 .bl-textarea::placeholder { color: var(--muted); }
.bl-v4 .bl-textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.bl-v4 .bl-textarea:disabled { opacity: .6; }
.bl-v4 .bl-compose-foot { display: flex; align-items: center; gap: 16px; }
.bl-v4 .bl-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 56px 24px; }
.bl-v4 .bl-empty-ic { color: var(--muted-2); }
.bl-v4 .bl-empty-title { margin-top: 16px; font-size: 16px; font-weight: 700; }
.bl-v4 .bl-empty-sub { margin-top: 6px; font-size: 14px; color: var(--muted); }
.bl-v4 .bl-empty .bl-btn { margin-top: 20px; }
.bl-v4 .bl-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; }
.bl-v4 .bl-modal-scrim { position: absolute; inset: 0; background: var(--overlay); backdrop-filter: blur(3px); }
.bl-v4 .bl-dialog { position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 48px); overflow-y: auto; padding: 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-pop); }
.bl-v4 .bl-dialog--wide { max-width: 580px; }
.bl-v4 .bl-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.bl-v4 .bl-dialog-head h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; padding-top: 4px; }
.bl-v4 .bl-dialog-head .bl-iconbtn { margin: -4px -8px 0 0; }
.bl-v4 .bl-dialog-sub { margin-top: 2px; font-size: 13.5px; color: var(--muted); }
.bl-v4 .bl-dialog-intro { margin-top: 16px; font-size: 14px; color: var(--ink-2); }
.bl-v4 .bl-confirm-list { margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.bl-v4 .bl-confirm-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 14px; font-size: 13.5px; background: var(--surface-2); }
.bl-v4 .bl-confirm-list li + li { border-top: 1px solid var(--line); }
.bl-v4 .bl-confirm-stars { color: var(--star); letter-spacing: 1px; font-size: 13px; }
.bl-v4 .bl-confirm-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bl-v4 .bl-confirm-date { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.bl-v4 .bl-dialog-hint { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.bl-v4 .bl-attest { display: flex; align-items: flex-start; gap: 12px; margin-top: 16px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-strong); font-size: 13.5px; line-height: 1.5; cursor: pointer; white-space: normal; font-weight: 500; transition: border-color .15s ease, background-color .15s ease; }
.bl-v4 .bl-attest .bl-check-box { margin-top: 1px; }
.bl-v4 .bl-attest:hover { border-color: var(--accent); }
.bl-v4 .bl-attest:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.bl-v4 .bl-overbudget { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--bad-soft); border: 1px solid var(--bad-line); font-size: 13px; color: var(--ink-2); }
.bl-v4 .bl-overbudget strong { color: var(--bad); }
.bl-v4 .bl-dialog-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.bl-v4 .bl-dialog-cost { font-size: 13.5px; color: var(--ink-2); }
.bl-v4 .bl-dialog-cost strong { font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; }
.bl-v4 .bl-dialog-cost-sub { margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.bl-v4 .bl-dialog-btns { display: flex; gap: 8px; }
.bl-v4 .bl-dialog-btns--end { justify-content: flex-end; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.bl-v4 .bl-dialog-btns--center { justify-content: center; margin-top: 20px; }
.bl-v4 .bl-bulk-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.bl-v4 .bl-dialog-chosen { margin-top: 16px; display: inline-flex; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 12.5px; font-weight: 600; }
.bl-v4 .bl-dialog-small { margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.bl-v4 .bl-bulk-running { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 24px 8px 0; }
.bl-v4 .bl-bulk-running h4 { margin-top: 16px; font-size: 16px; font-weight: 700; }
.bl-v4 .bl-bulk-running > p { margin-top: 8px; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); max-width: 46ch; }
.bl-v4 .bl-bulk-running .bl-dialog-small { color: var(--muted); }

/* ---------- Phone and narrow windows ---------- */
@media (max-width: 1023.98px) {
  .bl-v4 .bl-app { grid-template-columns: minmax(0, 1fr); }
  .bl-v4 .bl-sb { display: none; }
  .bl-v4 .bl-topbar { position: sticky; top: 0; z-index: 70; display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 12px 0 16px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
  .bl-v4 .bl-topbar-title { flex: 1 1 auto; min-width: 0; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bl-v4 .bl-topbar-meta { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
  .bl-v4 .bl-topbar .bl-iconbtn { width: 40px; height: 40px; margin-left: -8px; }
  .bl-v4 .bl-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); padding: 6px 2px calc(6px + env(safe-area-inset-bottom, 0px)); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .bl-v4 .bl-tabbar-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 52px; min-width: 0; font-size: 10.5px; font-weight: 600; color: var(--muted); }
  .bl-v4 .bl-tabbar-item > span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bl-v4 .bl-tabbar-ic { position: relative; display: grid; place-items: center; width: 48px; height: 28px; border-radius: 999px; transition: background-color .15s ease; }
  .bl-v4 .bl-tabbar-item.bl-is-active { color: var(--accent-ink); }
  .bl-v4 .bl-tabbar-item.bl-is-active .bl-tabbar-ic { background: var(--accent-soft); }
  .bl-v4 .bl-tabbar-badge { position: absolute; top: -6px; right: -2px; padding: 0 4px; border-radius: 999px; font-family: var(--mono); font-size: 9px; line-height: 14px; background: var(--surface); border: 1px solid var(--line-strong); color: var(--muted); }
  .bl-v4 .bl-main { padding: 16px 16px 112px; }
  .bl-v4 .bl-band { padding: 20px; border-radius: 16px; }
  .bl-v4 .bl-band-head { flex-direction: column; gap: 20px; }
  .bl-v4 .bl-band-title { font-size: 24px; }
  .bl-v4 .bl-band-sub { font-size: 14px; }
  .bl-v4 .bl-band-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; padding-top: 0; }
  .bl-v4 .bl-band-actions .bl-btn { padding: 0 12px; height: 44px; }
  .bl-v4 .bl-kpis { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 20px; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); }
  .bl-v4 .bl-kpi { grid-template-columns: minmax(0, 1fr) 72px auto; grid-template-areas: "label viz value" "meta viz value"; gap: 2px 14px; padding: 12px 16px; border: 0; border-radius: 0; background: none; }
  .bl-v4 .bl-kpi + .bl-kpi { border-top: 1px solid rgba(255, 255, 255, .12); }
  .bl-v4 .bl-kpi-value { font-size: 24px; justify-self: end; }
  .bl-v4 .bl-kpi-viz { width: 72px; height: 28px; }
  .bl-v4 .bl-kpi-meta { font-size: 12px; }
  .bl-v4 .bl-zone,
  .bl-v4 .bl-cols { margin-top: 32px; }
  .bl-v4 .bl-zone-head { margin-bottom: 12px; }
  .bl-v4 .bl-todos { gap: 12px; }
  .bl-v4 .bl-grid-2 { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .bl-v4 .bl-loc { padding: 20px; }
  .bl-v4 .bl-loc-rating-value { font-size: 32px; }
  .bl-v4 .bl-loc .bl-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bl-v4 .bl-loc-foot .bl-btn { width: 100%; height: 44px; }
  .bl-v4 .bl-cols { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .bl-v4 .bl-combo,
  .bl-v4 .bl-funnel,
  .bl-v4 .bl-ref { padding: 20px; }
  .bl-v4 .bl-combo-left { width: 100%; }
  .bl-v4 .bl-combo-left .bl-field { flex: 1 1 auto; }
  .bl-v4 .bl-combo-head .bl-seg { width: 100%; }
  .bl-v4 .bl-combo-head .bl-seg-item { flex: 1 1 0; height: 34px; }
  .bl-v4 .bl-chart { height: 200px; }
  .bl-v4 .bl-ftabs { padding: 12px 16px; }
  .bl-v4 .bl-ftabs .bl-chip { height: 40px; }
  .bl-v4 .bl-feed-item { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "time link" "text link"; gap: 2px 12px; padding: 12px 16px; }
  .bl-v4 .bl-feed-ic { display: none; }
  .bl-v4 .bl-feed-time { grid-area: time; }
  .bl-v4 .bl-feed-text { grid-area: text; }
  .bl-v4 .bl-feed-item .bl-pill-link { grid-area: link; height: 36px; }
  .bl-v4 .bl-feed-more .bl-link { min-height: 40px; }
  .bl-v4 .bl-ref-actions .bl-btn { height: 44px; }
  .bl-v4 .bl-funnel .bl-link,
  .bl-v4 .bl-ref .bl-link,
  .bl-v4 .bl-zone-head .bl-link { min-height: 40px; }
  .bl-v4 .bl-page-head { flex-direction: column; gap: 16px; margin-bottom: 16px; }
  .bl-v4 .bl-page-head .bl-back { display: none; }
  .bl-v4 .bl-page-title { font-size: 22px; }
  .bl-v4 .bl-head-pills { justify-content: flex-start; }
  .bl-v4 .bl-overview { padding: 20px; }
  .bl-v4 .bl-ov-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .bl-v4 .bl-ov-right { order: -1; padding: 0 0 20px; border-left: 0; border-bottom: 1px solid var(--line); }
  .bl-v4 .bl-ratingbox-num { font-size: 44px; }
  .bl-v4 .bl-poa { flex-wrap: wrap; }
  .bl-v4 .bl-poa--missing .bl-btn { width: 100%; height: 44px; }
  .bl-v4 .bl-overview .bl-metrics { grid-template-columns: minmax(0, 1fr); margin-top: 20px; }
  .bl-v4 .bl-textbtn { min-height: 40px; }
  .bl-v4 .bl-history .bl-textbtn,
  .bl-v4 .bl-poa .bl-textbtn { min-height: 32px; }
  .bl-v4 .bl-filters { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "row" "chips" "actions"; gap: 14px; padding: 16px; }
  .bl-v4 .bl-f-actions { flex-direction: column; align-items: stretch; }
  .bl-v4 .bl-f-actions .bl-btn { height: 44px; }
  .bl-v4 .bl-search { flex: 1 1 100%; height: 44px; }
  .bl-v4 .bl-f-row .bl-field { flex: 1 1 calc(50% - 4px); height: 44px; }
  .bl-v4 .bl-f-row .bl-field select { flex: 1 1 auto; }
  .bl-v4 .bl-f-row > .bl-textbtn { margin: 0 auto; }
  .bl-v4 .bl-f-chips { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-top: 14px; }
  .bl-v4 .bl-chipgroup { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 4px; -webkit-overflow-scrolling: touch; }
  .bl-v4 .bl-chipgroup::-webkit-scrollbar { display: none; }
  .bl-v4 .bl-chipgroup-label + .bl-chipgroup { margin-bottom: 4px; }
  .bl-v4 .bl-chip { height: 40px; }
  .bl-v4 .bl-listhead { gap: 12px; margin: 16px 0 12px; padding: 8px 8px 8px 16px; flex-wrap: wrap; }
  .bl-v4 .bl-listhead .bl-check { min-height: 40px; }
  .bl-v4 .bl-listhead.bl-has-selection { position: fixed; top: auto; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 85; margin: 0; padding: 10px 10px 10px 16px; gap: 6px 12px; }
  .bl-v4 .bl-listhead.bl-has-selection .bl-listhead-credits { order: 3; flex-basis: 100%; }
  .bl-v4 .bl-listhead .bl-btn { height: 44px; }
  .bl-v4 .bl-rev { grid-template-columns: 28px minmax(0, 1fr); gap: 0 12px; padding: 16px 16px 16px 12px; }
  .bl-v4 .bl-rev-rail { padding-top: 6px; }
  .bl-v4 .bl-rev-rail .bl-check { width: 28px; height: 28px; justify-content: center; }
  .bl-v4 .bl-rev-date { flex-basis: 100%; margin: -6px 0 0 46px; font-size: 12.5px; }
  .bl-v4 .bl-rev-body { margin-left: 0; }
  .bl-v4 .bl-rev-text { font-size: 14.5px; -webkit-line-clamp: 4; }
  .bl-v4 .bl-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .bl-v4 .bl-actions .bl-btn { height: 44px; }
  .bl-v4 .bl-actions .bl-btn-primary { grid-column: 1 / -1; }
  .bl-v4 .bl-ai-ctl .bl-field-sm { flex: 1 1 calc(50% - 4px); height: 40px; }
  .bl-v4 .bl-ai-ctl .bl-btn-outline { height: 40px; }
  .bl-v4 .bl-ai-sep { display: none; }
  .bl-v4 .bl-compose-foot .bl-btn { flex: 1 1 auto; height: 44px; }
  .bl-v4 .bl-owner .bl-btn { height: 36px; }
  .bl-v4 .bl-modal { align-items: flex-end; padding: 0; }
  .bl-v4 .bl-dialog,
  .bl-v4 .bl-dialog--wide { max-width: none; max-height: 92vh; padding: 8px 16px calc(20px + env(safe-area-inset-bottom, 0px)); border-radius: 20px 20px 0 0; border-bottom: 0; }
  .bl-v4 .bl-dialog::before { content: ""; display: block; width: 40px; height: 4px; margin: 4px auto 12px; border-radius: 999px; background: var(--line-strong); }
  .bl-v4 .bl-dialog-foot { flex-direction: column; align-items: stretch; }
  .bl-v4 .bl-dialog-btns { width: 100%; }
  .bl-v4 .bl-dialog-btns .bl-btn { flex: 1 1 0; height: 44px; }
  .bl-v4 .bl-bulk-options .bl-field { flex: 1 1 100%; height: 44px; }
  .bl-v4 .bl-attest { padding: 14px; }
}
.bl-v4 .bl-todo-preview > .bl-todo-by:first-child { margin-top: 0; }
@media (max-width: 1023.98px) {
  .bl-v4 .bl-desk-only { display: none !important; }
}

/* ---------- Refinements round 1 ---------- */
.bl-v4 .bl-rev-rail { align-items: flex-start; }
.bl-v4 .bl-field select { align-self: stretch; }
.bl-v4 .bl-rev-head .bl-starrow { font-size: 15px; }
.bl-v4 .bl-rev-title,
.bl-v4 .bl-rev-sub { display: contents; }
.bl-v4 .bl-rev-sub > .bl-status { order: 3; }
.bl-v4 .bl-rev-date { order: 4; }
.bl-v4 .bl-hit { position: relative; }
.bl-v4 .bl-hit::after { content: ""; position: absolute; inset: -10px -4px; }
.bl-v4 .bl-dialog:focus { outline: none; }
.bl-v4 .bl-chart-bar { fill: color-mix(in srgb, var(--accent) 80%, var(--surface)); opacity: 1; }
.bl-v4 .bl-chart-bar.bl-is-peak,
.bl-v4 .bl-chart-bar:hover { fill: var(--accent); }
.dark .bl-v4 .bl-chart-bar { fill: color-mix(in srgb, var(--brand-bright) 58%, var(--surface)); }
.dark .bl-v4 .bl-chart-bar.bl-is-peak,
.dark .bl-v4 .bl-chart-bar:hover { fill: var(--brand-bright); }
.bl-v4 .bl-tabbar-item[aria-expanded="true"] { color: var(--accent-ink); }
.bl-v4 .bl-tabbar-item[aria-expanded="true"] .bl-tabbar-ic { background: var(--accent-soft); }
@media (min-width: 1024px) {
  .bl-v4 .bl-loc .bl-metrics dt { min-height: 2.6em; line-height: 1.3; }
}
@media (max-width: 1023.98px) {
  .bl-v4 .bl-band-actions { display: flex; flex-wrap: wrap; }
  .bl-v4 .bl-band-actions .bl-btn { flex: 1 1 auto; }
  .bl-v4 .bl-tabbar { z-index: 96; }
  .bl-v4 .bl-tabbar-item { font-size: 10px; letter-spacing: -.01em; }
  .bl-v4 .bl-sheet { bottom: calc(65px + env(safe-area-inset-bottom, 0px)); padding-bottom: 16px; max-height: calc(100vh - 65px - 40px); }
  .bl-v4 .bl-topbar .bl-brand { min-height: 40px; }
  .bl-v4 .bl-link { min-height: 40px; }
  .bl-v4 .bl-todo-foot { padding-top: 6px; }
  .bl-v4 .bl-funnel .bl-link,
  .bl-v4 .bl-ref .bl-link { padding-top: 6px; margin-bottom: -8px; }
  .bl-v4 .bl-zone-head { min-height: 40px; }
  .bl-v4 .bl-seg-item { height: 40px; }
  .bl-v4 .bl-sheet .bl-seg-item { height: 40px; }
  .bl-v4 .bl-pill-link { height: 40px; }
  .bl-v4 .bl-feed-item .bl-pill-link { height: 40px; }
  .bl-v4 .bl-sheet-handle { padding: 18px 0 18px; margin-bottom: -10px; }
  .bl-v4 .bl-iconbtn { width: 40px; height: 40px; }
  .bl-v4 .bl-field-sm { height: 40px; }
  .bl-v4 .bl-owner .bl-btn { height: 40px; }
  .bl-v4 .bl-history .bl-textbtn,
  .bl-v4 .bl-poa .bl-textbtn { min-height: 40px; }
  .bl-v4 .bl-rev-rail .bl-check { width: 40px; height: 40px; margin: -10px -6px 0; justify-content: center; }
  .bl-v4 .bl-rev { grid-template-columns: 28px minmax(0, 1fr); }
  .bl-v4 .bl-poa { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; row-gap: 2px; align-items: start; }
  .bl-v4 .bl-poa > .bl-ic { margin-top: 1px; }
  .bl-v4 .bl-poa--ok > .bl-textbtn { grid-column: 2; justify-self: start; margin-top: -4px; margin-bottom: -10px; }
  .bl-v4 .bl-poa--missing > .bl-btn { grid-column: 1 / -1; margin-top: 10px; }
  .bl-v4 .bl-meta-row { row-gap: 0; }
  .bl-v4 .bl-f-row .bl-field { flex: 1 1 100%; }
  .bl-v4 .bl-f-row .bl-field:has([data-period]) { flex: 1 1 0; }
  .bl-v4 .bl-f-row > .bl-textbtn { margin: 0; padding: 0 4px; }
  .bl-v4 .bl-listhead:not(.bl-has-selection) [data-submit-deletions] { display: none !important; }
  .bl-v4 .bl-listhead { padding: 4px 0; min-height: 48px; }
  .bl-v4 .bl-listhead.bl-has-selection { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "check count" "credits credits" "actions actions"; gap: 2px 12px; padding: 10px 12px 12px 16px; border-radius: 16px; }
  .bl-v4 .bl-listhead.bl-has-selection .bl-check { grid-area: check; }
  .bl-v4 .bl-listhead.bl-has-selection .bl-listhead-count { grid-area: count; }
  .bl-v4 .bl-listhead.bl-has-selection .bl-listhead-credits { grid-area: credits; order: 0; flex-basis: auto; font-size: 13px; }
  .bl-v4 .bl-listhead.bl-has-selection .bl-listhead-actions { grid-area: actions; margin: 8px 0 0; display: flex; }
  .bl-v4 .bl-listhead.bl-has-selection .bl-listhead-actions .bl-btn { flex: 1 1 auto; }
  .bl-v4 .bl-rev-head { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 10px; row-gap: 4px; align-items: center; }
  .bl-v4 .bl-rev-head .bl-av { grid-row: 1 / 3; align-self: start; }
  .bl-v4 .bl-rev-title { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-width: 0; }
  .bl-v4 .bl-rev-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; }
  .bl-v4 .bl-rev-date { flex-basis: auto; margin: 0; font-size: 12.5px; }
}
@media (max-width: 1023.98px) {
  .bl-v4 .bl-combo-head .bl-seg-item { height: 40px; }
  .bl-v4 .bl-field-sm { height: 42px; }
}
@media (max-width: 1023.98px) {
  .bl-v4 .bl-tabbar-item > span:last-child { overflow: visible; text-overflow: clip; max-width: none; }
}
.bl-v4 .bl-empty { margin-top: 16px; }
@media (min-width: 1024px) {
  .bl-v4 .bl-ov-left .bl-poa { margin-top: auto; }
}
@media (max-width: 1023.98px) {
  .bl-v4 .bl-compose { padding: 12px; }
  .bl-v4 .bl-ai-ctl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .bl-v4 .bl-ai-ctl .bl-field-sm { grid-column: span 2; }
  .bl-v4 .bl-ai-ctl [data-ai-regen] { grid-column: span 2; }
  .bl-v4 .bl-ai-ctl .bl-btn { padding: 0 8px; }
  .bl-v4 .bl-ai-ctl .bl-counter { grid-column: 1 / -1; justify-self: end; margin: -2px 0 0; }
}
.bl-v4 .bl-sep { color: var(--muted); }
@media (max-width: 1023.98px) {
  .bl-v4 .bl-ai-ctl .bl-field-sm { height: 42px; }
}
.bl-v4 .bl-kpi-star { color: #fbbf24; }
.dark .bl-v4 .bl-sheet-ic-badge { color: #2a0711; }

/* ---------- System building blocks ---------- */
.bl-v4 .bl-nav { gap: 16px; }
.bl-v4 .bl-nav-link { height: 36px; }
.bl-v4 .bl-nav-link.bl-is-active .bl-nav-count { box-shadow: 0 0 0 2px var(--accent-soft); }
.bl-v4 .bl-menu-item.bl-is-active { background: var(--accent-soft); color: var(--accent-ink); }
.bl-v4 .bl-sheet-item.bl-is-active { background: var(--accent-soft); }
.bl-v4 .bl-sheet-item.bl-is-active .bl-sheet-text span { color: var(--accent-ink); }
.bl-v4 .bl-sb-foot .bl-credit { transition: background-color .15s ease; }
.bl-v4 .bl-sb-foot .bl-credit:hover { background: var(--accent-soft); }
.bl-v4 .bl-layout-auth { display: flex; flex-direction: column; align-items: center; min-height: 100vh; padding: 48px 16px 64px; background: radial-gradient(80% 50% at 50% 0%, color-mix(in srgb, var(--brand-bright) 10%, transparent), transparent 70%), var(--bg); }
.bl-v4 .bl-auth-brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 32px; font-size: 18px; font-weight: 700; }
.bl-v4 .bl-auth-card { width: 100%; max-width: 440px; padding: 32px; }
.bl-v4 .bl-auth-card .bl-page-title { font-size: 24px; }
.bl-v4 .bl-auth-foot { margin-top: 24px; font-size: 13px; color: var(--muted); text-align: center; }
.bl-v4 .bl-stack { display: flex; flex-direction: column; gap: var(--gap, 16px); }
.bl-v4 .bl-stack-8 { --gap: 8px; }
.bl-v4 .bl-stack-12 { --gap: 12px; }
.bl-v4 .bl-stack-24 { --gap: 24px; }
.bl-v4 .bl-stack-32 { --gap: 32px; }
.bl-v4 .bl-hrow { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap, 8px); }
.bl-v4 .bl-hrow-between { justify-content: space-between; }
.bl-v4 .bl-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bl-v4 .bl-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.bl-v4 .bl-grid-aside { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; }
.bl-v4 .bl-mt-8 { margin-top: 8px; }
.bl-v4 .bl-mt-16 { margin-top: 16px; }
.bl-v4 .bl-mt-24 { margin-top: 24px; }
.bl-v4 .bl-mt-40 { margin-top: 40px; }
.bl-v4 .bl-muted { color: var(--muted); }
.bl-v4 .bl-small { font-size: 12.5px; }
.bl-v4 .bl-strong { font-weight: 700; color: var(--ink); }
.bl-v4 .bl-center { text-align: center; }
.bl-v4 .bl-page-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding-top: 2px; }
.bl-v4 .bl-eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.bl-v4 .bl-card-pad { padding: 24px; }
.bl-v4 .bl-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.bl-v4 .bl-card-head h2,
.bl-v4 .bl-card-head h3 { font-size: 15px; font-weight: 700; letter-spacing: -.005em; }
.bl-v4 .bl-card-head p { font-size: 13px; color: var(--muted); }
.bl-v4 .bl-card-body { padding: 20px 24px 24px; }
.bl-v4 .bl-card-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 16px 24px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface-2) 50%, var(--surface)); border-radius: 0 0 16px 16px; }
.bl-v4 .bl-card--flat { box-shadow: none; }
.bl-v4 .bl-card--tint { background: var(--surface-2); box-shadow: none; }
.bl-v4 .bl-tile { display: flex; flex-direction: column; gap: 6px; padding: 20px; min-width: 0; }
.bl-v4 .bl-tile-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.bl-v4 .bl-tile-value { display: flex; align-items: baseline; gap: 6px; font-size: 28px; font-weight: 700; line-height: 1.1; letter-spacing: -.015em; font-variant-numeric: tabular-nums; color: var(--ink); }
.bl-v4 .bl-tile-unit { font-size: 14px; font-weight: 600; color: var(--muted); }
.bl-v4 .bl-tile-meta { font-size: 12.5px; color: var(--muted); }
.bl-v4 .bl-kv { display: grid; grid-template-columns: minmax(120px, 200px) minmax(0, 1fr); }
.bl-v4 .bl-kv > dt,
.bl-v4 .bl-kv > dd { padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.bl-v4 .bl-kv > dt { color: var(--muted); padding-right: 16px; }
.bl-v4 .bl-kv > dd { color: var(--ink); min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.bl-v4 .bl-kv > dt:first-of-type,
.bl-v4 .bl-kv > dd:first-of-type { border-top: 0; }
.bl-v4 .bl-ptabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.bl-v4 .bl-ptabs::-webkit-scrollbar { display: none; }
.bl-v4 .bl-ptab { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; transition: color .15s ease; }
.bl-v4 .bl-ptab:hover { color: var(--ink); }
.bl-v4 .bl-ptab.bl-is-active { color: var(--accent-ink); }
.bl-v4 .bl-ptab.bl-is-active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); }
.bl-v4 .bl-ptab .bl-nav-count,
.bl-v4 .bl-ptab .bl-nav-badge { margin-left: 0; }
.bl-v4 .bl-form { display: flex; flex-direction: column; gap: 20px; }
.bl-v4 .bl-form-row { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.bl-v4 .bl-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.bl-v4 .bl-label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.bl-v4 .bl-label small { font-weight: 500; color: var(--muted); margin-left: 6px; }
.bl-v4 .bl-help { font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.bl-v4 .bl-error { font-size: 12.5px; color: var(--bad); font-weight: 600; }
.bl-v4 .bl-select { width: 100%; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 14.5px; color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease; }
.bl-v4 .bl-input { border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 14.5px; color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease; }
.bl-v4 .bl-select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 19px, calc(100% - 15px) 19px; background-size: 5px 5px; background-repeat: no-repeat; cursor: pointer; }
.bl-v4 .bl-input::placeholder { color: var(--muted-2); }
.bl-v4 .bl-input:hover,
.bl-v4 .bl-select:hover { border-color: var(--muted-2); }
.bl-v4 .bl-input:focus,
.bl-v4 .bl-select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.bl-v4 .bl-input.bl-is-invalid { border-color: var(--bad); }
.bl-v4 .bl-input:disabled,
.bl-v4 .bl-select:disabled { background: var(--surface-2); color: var(--muted); cursor: not-allowed; }
.bl-v4 .bl-counter-line { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bl-v4 .bl-switch { position: relative; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-size: 14px; font-weight: 500; }
.bl-v4 .bl-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bl-v4 .bl-switch-track { position: relative; width: 40px; height: 24px; border-radius: 999px; background: var(--line-strong); transition: background-color .15s ease; flex: none; }
.bl-v4 .bl-switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 999px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .15s ease; }
.bl-v4 .bl-switch input:checked + .bl-switch-track { background: var(--accent); }
.bl-v4 .bl-switch input:checked + .bl-switch-track::after { transform: translateX(16px); }
.bl-v4 .bl-switch input:focus-visible + .bl-switch-track { outline: 2px solid var(--focus); outline-offset: 2px; }
.bl-v4 .bl-switch input:disabled + .bl-switch-track { opacity: .5; }
.bl-v4 .bl-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.bl-v4 .bl-choice { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease; }
.bl-v4 .bl-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bl-v4 .bl-choice:hover { border-color: var(--accent); }
.bl-v4 .bl-choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
.bl-v4 .bl-choice:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.bl-v4 .bl-choice-title { font-size: 14px; font-weight: 700; }
.bl-v4 .bl-choice-sub { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.bl-v4 .bl-choice-tag { position: absolute; top: -10px; right: 12px; }
.bl-v4 .bl-table-wrap { overflow-x: auto; }
.bl-v4 .bl-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.bl-v4 .bl-table th { padding: 12px 16px; text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.bl-v4 .bl-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: middle; }
.bl-v4 .bl-table tr:last-child td { border-bottom: 0; }
.bl-v4 .bl-table tbody tr { transition: background-color .15s ease; }
.bl-v4 .bl-table tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.bl-v4 .bl-table .bl-num,
.bl-v4 .bl-table .bl-t-right { text-align: right; font-variant-numeric: tabular-nums; }
.bl-v4 .bl-t-strong { font-weight: 600; color: var(--ink); }
.bl-v4 .bl-lrows { display: flex; flex-direction: column; }
.bl-v4 .bl-lrow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 20px; border-top: 1px solid var(--line); transition: background-color .15s ease; }
.bl-v4 .bl-lrow:first-child { border-top: 0; }
.bl-v4 .bl-lrow-ic { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); color: var(--ink-2); flex: none; }
.bl-v4 .bl-lrow-title { font-size: 14px; font-weight: 600; color: var(--ink); }
.bl-v4 .bl-lrow-sub { margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.bl-v4 .bl-lrow-side { display: flex; align-items: center; gap: 8px; }
.bl-v4 .bl-banner { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.bl-v4 .bl-banner > .bl-ic { margin-top: 2px; flex: none; }
.bl-v4 .bl-banner-body { flex: 1 1 auto; min-width: 0; }
.bl-v4 .bl-banner-title { font-weight: 700; color: var(--ink); }
.bl-v4 .bl-banner-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: none; }
.bl-v4 .bl-banner--info { background: var(--accent-soft); border-color: var(--accent-line); }
.bl-v4 .bl-banner--info > .bl-ic { color: var(--accent); }
.bl-v4 .bl-banner--good { background: var(--good-soft); border-color: var(--good-line); }
.bl-v4 .bl-banner--good > .bl-ic { color: var(--good); }
.bl-v4 .bl-banner--warn { background: var(--warn-soft); border-color: var(--warn-line); }
.bl-v4 .bl-banner--warn > .bl-ic { color: var(--warn); }
.bl-v4 .bl-banner--bad { background: var(--bad-soft); border-color: var(--bad-line); }
.bl-v4 .bl-banner--bad > .bl-ic { color: var(--bad); }
.bl-v4 .bl-banner--brand { position: relative; overflow: hidden; border: 0; color: rgba(255, 255, 255, .86); background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%); isolation: isolate; }
.bl-v4 .bl-banner--brand::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 22px); }
.bl-v4 .bl-banner--brand .bl-banner-title { color: #fff; }
.bl-v4 .bl-banner--brand > .bl-ic { color: var(--brand-bright); }
.bl-v4 .bl-banner--brand :focus-visible { outline-color: #fff; }
.bl-v4 .bl-banner .bl-iconbtn { width: 32px; height: 32px; margin: -4px -6px -4px 0; }
.bl-v4 .bl-badge-new { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: color-mix(in srgb, var(--brand-bright) 22%, var(--surface)); color: var(--accent-ink); }
.bl-v4 .bl-tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.bl-v4 .bl-tag--auto { background: transparent; border-style: dashed; color: var(--muted); }
.bl-v4 .bl-progress { display: flex; flex-direction: column; gap: 8px; }
.bl-v4 .bl-progress-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--muted); }
.bl-v4 .bl-progress-top strong { color: var(--ink); font-size: 14px; }
.bl-v4 .bl-progress .bl-bar { margin-top: 0; height: 8px; }
.bl-v4 .bl-steps { display: flex; flex-direction: column; }
.bl-v4 .bl-step { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 16px 0; border-top: 1px solid var(--line); }
.bl-v4 .bl-step:first-child { border-top: 0; }
.bl-v4 .bl-step-dot { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; border: 1.5px solid var(--line-strong); font-size: 13px; font-weight: 700; color: var(--muted); background: var(--surface); }
.bl-v4 .bl-step.bl-is-done .bl-step-dot { background: var(--accent); border-color: var(--accent); color: var(--btn-ink); }
.bl-v4 .bl-step.bl-is-current .bl-step-dot { border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 4px var(--accent-soft); }
.bl-v4 .bl-step-title { font-size: 14.5px; font-weight: 700; }
.bl-v4 .bl-step.bl-is-done .bl-step-title { color: var(--muted); }
.bl-v4 .bl-step-sub { margin-top: 2px; font-size: 13px; color: var(--muted); }
.bl-v4 .bl-price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.bl-v4 .bl-price { display: flex; flex-direction: column; gap: 12px; padding: 24px; }
.bl-v4 .bl-price.bl-is-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.bl-v4 .bl-price-name { font-size: 15px; font-weight: 700; }
.bl-v4 .bl-price-amount { display: flex; align-items: baseline; gap: 6px; font-size: 32px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.bl-v4 .bl-price-amount small { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.bl-v4 .bl-price-list { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.bl-v4 .bl-price-list li { display: flex; gap: 8px; align-items: flex-start; }
.bl-v4 .bl-price-list .bl-ic { color: var(--accent); margin-top: 2px; }
.bl-v4 .bl-price .bl-btn { margin-top: auto; }
.bl-v4 .bl-pop-anchor { position: relative; display: inline-flex; }
.bl-v4 .bl-popover { position: absolute; top: calc(100% + 8px); right: 0; z-index: 50; min-width: 220px; padding: 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-pop); }
.bl-v4 .bl-toast { position: fixed; left: 50%; bottom: 24px; z-index: 200; transform: translate(-50%, 16px); padding: 10px 16px; border-radius: 12px; background: var(--ink); color: var(--surface); font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow-pop); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.bl-v4 .bl-toast.bl-is-on { opacity: 1; transform: translate(-50%, 0); }
.bl-v4 .skeleton { border-radius: 8px; background: linear-gradient(90deg, var(--surface-2) 0%, var(--line) 50%, var(--surface-2) 100%); background-size: 200% 100%; animation: bl-shimmer 1.4s ease infinite; }
@keyframes bl-shimmer { to { background-position: -200% 0; } }

/* ---------- Building blocks of the new features (K0 to K7, P1 to P4, B1 to B4) ---------- */
.bl-v4 .bl-status--mod-live { background: var(--good-soft); color: var(--good); }
.bl-v4 .bl-status--mod-pending { background: var(--warn-soft); color: var(--warn); }
.bl-v4 .bl-status--mod-rejected { background: var(--bad-soft); color: var(--bad); }
.bl-v4 .bl-reject-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; width: 100%; padding: 10px 12px; border-radius: 10px; background: var(--bad-soft); border: 1px solid var(--bad-line); font-size: 13px; color: var(--ink-2); }
.bl-v4 .bl-reject-note strong { color: var(--bad); }
.bl-v4 .bl-reject-note .bl-btn { margin-left: auto; }
.bl-v4 .bl-callout-ai { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--accent-line); background: linear-gradient(135deg, var(--accent-soft) 0%, var(--surface) 100%); }
.bl-v4 .bl-callout-ai > .bl-ic { color: var(--accent); flex: none; }
.bl-v4 .bl-callout-ai-text { flex: 1 1 auto; min-width: 0; font-size: 14px; color: var(--ink-2); }
.bl-v4 .bl-callout-ai-text strong { color: var(--ink); }
.bl-v4 .bl-callout-ai-sub { margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.bl-v4 .bl-auto-note { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.bl-v4 .bl-auto-note .bl-ic { color: var(--accent); }
.bl-v4 .bl-inherit { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); font-size: 13.5px; }
.bl-v4 .bl-phone-frame { width: 300px; max-width: 100%; border-radius: 32px; padding: 10px; background: #0c1b1e; box-shadow: var(--shadow-pop); }
.bl-v4 .bl-phone-screen { border-radius: 24px; overflow: hidden; background: #efe7dc; }
.dark .bl-v4 .bl-phone-screen { background: #0f1a17; }
.bl-v4 .bl-chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #075e54; color: #fff; font-size: 13.5px; font-weight: 600; }
.bl-v4 .bl-chat-head .bl-brand-tile { width: 28px; height: 28px; font-size: 10px; background: #fff; color: var(--brand); }
.bl-v4 .bl-chat { display: flex; flex-direction: column; gap: 8px; padding: 14px 12px 16px; min-height: 240px; }
.bl-v4 .bl-bubble { max-width: 86%; padding: 8px 10px 6px; border-radius: 10px; font-size: 13px; line-height: 1.45; color: #111b21; background: #fff; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
.bl-v4 .bl-bubble--in { align-self: flex-start; border-top-left-radius: 2px; }
.bl-v4 .bl-bubble--out { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 2px; }
.dark .bl-v4 .bl-bubble { background: #1f2c34; color: #e9edef; }
.dark .bl-v4 .bl-bubble--out { background: #005c4b; }
.bl-v4 .bl-bubble-time { display: block; margin-top: 2px; text-align: right; font-size: 10.5px; color: #667781; }
.dark .bl-v4 .bl-bubble-time { color: #8696a0; }
.bl-v4 .bl-bubble-img { display: block; height: 120px; margin: -4px -6px 6px; border-radius: 8px; background: linear-gradient(135deg, #d2a874, #8e5b2c); }
.bl-v4 .bl-qr-btns { align-self: flex-start; display: flex; flex-direction: column; gap: 4px; width: 86%; }
.bl-v4 .bl-qr-btn { display: flex; justify-content: center; align-items: center; height: 36px; border-radius: 10px; background: #fff; color: #027eb5; font-size: 13px; font-weight: 600; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
.dark .bl-v4 .bl-qr-btn { background: #1f2c34; color: #53bdeb; }
.bl-v4 .bl-score { display: flex; align-items: center; gap: 20px; }
.bl-v4 .bl-score-ring { --p: 0; position: relative; width: 72px; height: 72px; border-radius: 999px; background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--track) 0); flex: none; }
.bl-v4 .bl-score-ring::after { content: ""; position: absolute; inset: 7px; border-radius: inherit; background: var(--surface); }
.bl-v4 .bl-score-ring span { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bl-v4 .bl-checks { display: flex; flex-direction: column; }
.bl-v4 .bl-check-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 16px 20px; border-top: 1px solid var(--line); }
.bl-v4 .bl-check-row:first-child { border-top: 0; }
.bl-v4 .bl-check-state { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 999px; margin-top: 1px; }
.bl-v4 .bl-check-row.bl-is-ok .bl-check-state { background: var(--good-soft); color: var(--good); }
.bl-v4 .bl-check-row.bl-is-gap .bl-check-state { background: var(--warn-soft); color: var(--warn); }
.bl-v4 .bl-check-row.bl-is-missing .bl-check-state { background: var(--bad-soft); color: var(--bad); }
.bl-v4 .bl-check-title { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.bl-v4 .bl-check-detail { margin-top: 2px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.bl-v4 .bl-check-hint { margin-top: 8px; display: inline-flex; align-items: flex-start; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--accent-soft); font-size: 12.5px; color: var(--ink-2); }
.bl-v4 .bl-check-hint .bl-ic { color: var(--accent); margin-top: 1px; }
.bl-v4 .bl-check-row.bl-is-ok .bl-check-title { color: var(--ink-2); font-weight: 500; }
.bl-v4 .bl-diff { display: flex; flex-direction: column; gap: 12px; padding: 20px; }
.bl-v4 .bl-diff-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.bl-v4 .bl-diff-field { font-size: 15px; font-weight: 700; }
.bl-v4 .bl-diff-cols { display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); align-items: stretch; gap: 8px; }
.bl-v4 .bl-diff-old,
.bl-v4 .bl-diff-new { padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.5; }
.bl-v4 .bl-diff-old { background: var(--surface-2); color: var(--muted); }
.bl-v4 .bl-diff-old .bl-diff-val { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); }
.bl-v4 .bl-diff-new { background: var(--warn-soft); border: 1px solid var(--warn-line); color: var(--ink); }
.bl-v4 .bl-diff-cap { display: block; margin-bottom: 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.bl-v4 .bl-diff-arrow { display: grid; place-items: center; color: var(--muted-2); }
.bl-v4 .bl-diff-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.bl-v4 .bl-diff-foot .bl-btn:first-of-type { margin-left: auto; }
.bl-v4 .bl-deadline { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--warn); font-weight: 600; }
.bl-v4 .bl-post-preview { width: 100%; max-width: 360px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.bl-v4 .bl-post-img { height: 160px; background: radial-gradient(70% 60% at 35% 35%, #f3dcb4 0%, transparent 70%), linear-gradient(135deg, #d9b07c, #8e5b2c); }
.bl-v4 .bl-post-body { padding: 14px 16px 16px; }
.bl-v4 .bl-post-biz { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.bl-v4 .bl-post-biz .bl-brand-tile { width: 22px; height: 22px; font-size: 9px; border-radius: 6px; }
.bl-v4 .bl-post-text { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--ink); }
.bl-v4 .bl-post-cta { margin-top: 12px; display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 13px; font-weight: 600; color: #1a73e8; }
.dark .bl-v4 .bl-post-cta { color: #8ab4f8; }
.bl-v4 .bl-cal-list { display: flex; flex-direction: column; }
.bl-v4 .bl-cal-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 20px; border-top: 1px solid var(--line); }
.bl-v4 .bl-cal-row:first-child { border-top: 0; }
.bl-v4 .bl-cal-date { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 52px; border-radius: 12px; background: var(--surface-2); line-height: 1.1; }
.bl-v4 .bl-cal-date b { font-size: 18px; font-variant-numeric: tabular-nums; }
.bl-v4 .bl-cal-date small { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.bl-v4 .bl-linkbox { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 6px 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); min-width: 0; }
.bl-v4 .bl-linkbox .bl-mono { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--ink-2); }
.bl-v4 .bl-qr { display: grid; place-items: center; width: 168px; height: 168px; padding: 12px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.bl-v4 .bl-qr svg { width: 100%; height: 100%; }
.bl-v4 .bl-tpl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bl-v4 .bl-tpl { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.bl-v4 .bl-tpl-art { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.bl-v4 .bl-tpl-sheet { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 46%; padding: 10px 8px; border-radius: 6px; background: #fff; box-shadow: 0 6px 16px -8px rgba(12, 27, 30, .35); color: #0c1b1e; font-size: 7.5px; font-weight: 700; text-align: center; }
.bl-v4 .bl-tpl-sheet i { display: block; width: 44%; aspect-ratio: 1; border-radius: 2px; background: repeating-conic-gradient(#0c1b1e 0 25%, #fff 0 50%) 0 0 / 6px 6px; }
.bl-v4 .bl-tpl-title { font-size: 14px; font-weight: 700; }
.bl-v4 .bl-tpl-sub { font-size: 12.5px; color: var(--muted); }
.bl-v4 .bl-topics { display: flex; flex-direction: column; }
.bl-v4 .bl-topic { display: grid; grid-template-columns: minmax(140px, 200px) minmax(0, 1fr) 56px; gap: 8px 16px; align-items: center; padding: 16px 20px; border-top: 1px solid var(--line); }
.bl-v4 .bl-topic:first-child { border-top: 0; }
.bl-v4 .bl-topic-name { font-size: 14.5px; font-weight: 700; }
.bl-v4 .bl-topic-n { font-size: 12.5px; color: var(--muted); }
.bl-v4 .bl-sentiment { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--track); }
.bl-v4 .bl-sentiment .bl-pos { background: var(--accent); }
.bl-v4 .bl-sentiment .bl-neu { background: var(--muted-2); }
.bl-v4 .bl-sentiment .bl-neg { background: var(--bad); }
.bl-v4 .bl-topic-pct { font-size: 13px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.bl-v4 .bl-topic-quote { grid-column: 2 / -1; font-size: 13px; line-height: 1.5; color: var(--muted); }
.bl-v4 .bl-topic-quote::before { content: "„"; }
.bl-v4 .bl-topic-quote::after { content: "“"; }
.bl-v4 .bl-bench { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.bl-v4 .bl-bench-text { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.bl-v4 .bl-bench-text strong { color: var(--ink); }
.bl-v4 .bl-bench-scale { position: relative; height: 8px; border-radius: 999px; background: var(--track); margin: 22px 0 22px; }
.bl-v4 .bl-bench-mark { position: absolute; top: 50%; transform: translate(-50%, -50%); width: 14px; height: 14px; border-radius: 999px; border: 2px solid var(--surface-2); }
.bl-v4 .bl-bench-mark--avg { background: var(--muted-2); }
.bl-v4 .bl-bench-mark--you { background: var(--accent); width: 18px; height: 18px; }
.bl-v4 .bl-bench-mark span { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.bl-v4 .bl-bench-mark--you span { color: var(--accent-ink); top: auto; bottom: 20px; }
.bl-v4 .bl-bench-meta { font-size: 12px; color: var(--muted); }
.bl-v4 .bl-browser { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.bl-v4 .bl-browser-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.bl-v4 .bl-browser-bar i { width: 9px; height: 9px; border-radius: 999px; background: var(--line-strong); }
.bl-v4 .bl-browser-url { margin-left: 10px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.bl-v4 .bl-browser-body { padding: 24px; background: #fff; color: #0c1b1e; }
.bl-v4 .bl-browser-body.bl-is-dark { background: #0f1a1c; color: #e6efee; }
.bl-v4 .bl-codebox { position: relative; border-radius: 14px; background: #0c1b1e; color: #cfe7e3; }
.bl-v4 .bl-codebox pre { margin: 0; padding: 16px 16px 16px 18px; overflow-x: auto; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; }
.bl-v4 .bl-codebox .bl-btn { position: absolute; top: 10px; right: 10px; }
.bl-v4 .bl-legal-note { display: flex; gap: 8px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
@media (max-width: 1023.98px) {
  .bl-v4 .bl-grid-3,
  .bl-v4 .bl-grid-4,
  .bl-v4 .bl-grid-aside,
  .bl-v4 .bl-form-grid,
  .bl-v4 .bl-tpl-grid { grid-template-columns: minmax(0, 1fr); }
  .bl-v4 .bl-grid-4.bl-grid-4--keep2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bl-v4 .bl-card-head,
  .bl-v4 .bl-card-body { padding-left: 16px; padding-right: 16px; }
  .bl-v4 .bl-card-foot { padding: 12px 16px; }
  .bl-v4 .bl-card-foot .bl-btn { flex: 1 1 auto; height: 44px; }
  .bl-v4 .bl-card-pad { padding: 20px; }
  .bl-v4 .bl-page-actions { justify-content: flex-start; width: 100%; }
  .bl-v4 .bl-page-actions .bl-btn { flex: 1 1 auto; height: 44px; }
  .bl-v4 .bl-kv { grid-template-columns: minmax(0, 1fr); }
  .bl-v4 .bl-kv > dt { padding-bottom: 0; }
  .bl-v4 .bl-kv > dd { border-top: 0; padding-top: 4px; }
  .bl-v4 .bl-ptab { height: 48px; }
  .bl-v4 .bl-select { height: 48px; font-size: 16px; }
  .bl-v4 .bl-input { font-size: 16px; }
  .bl-v4 .bl-lrow { padding: 12px 16px; grid-template-columns: auto minmax(0, 1fr); }
  .bl-v4 .bl-lrow-side { grid-column: 2; }
  .bl-v4 .bl-banner { flex-wrap: wrap; }
  .bl-v4 .bl-banner-actions { width: 100%; }
  .bl-v4 .bl-banner-actions .bl-btn { flex: 1 1 auto; height: 44px; }
  .bl-v4 .bl-table-stack thead { display: none; }
  .bl-v4 .bl-table-stack tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .bl-v4 .bl-table-stack td { padding: 0; border: 0; }
  .bl-v4 .bl-table-stack td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: 12px; }
  .bl-v4 .bl-check-row { grid-template-columns: 24px minmax(0, 1fr); padding: 14px 16px; }
  .bl-v4 .bl-check-row > :nth-child(3) { grid-column: 2; }
  .bl-v4 .bl-check-row .bl-btn { height: 44px; }
  .bl-v4 .bl-diff { padding: 16px; }
  .bl-v4 .bl-diff-cols { grid-template-columns: minmax(0, 1fr); }
  .bl-v4 .bl-diff-arrow { transform: rotate(90deg); height: 20px; }
  .bl-v4 .bl-diff-foot .bl-btn { flex: 1 1 auto; height: 44px; }
  .bl-v4 .bl-diff-foot .bl-btn:first-of-type { margin-left: 0; }
  .bl-v4 .bl-topic { grid-template-columns: minmax(0, 1fr) 48px; padding: 14px 16px; }
  .bl-v4 .bl-topic .bl-sentiment { grid-column: 1 / -1; grid-row: 2; }
  .bl-v4 .bl-topic-quote { grid-column: 1 / -1; }
  .bl-v4 .bl-cal-row { padding: 12px 16px; grid-template-columns: 52px minmax(0, 1fr); }
  .bl-v4 .bl-cal-row > :nth-child(3) { grid-column: 2; }
  .bl-v4 .bl-phone-frame { margin: 0 auto; }
  .bl-v4 .bl-score { gap: 16px; }
  .bl-v4 .bl-reject-note .bl-btn { margin-left: 0; width: 100%; height: 44px; }
  .bl-v4 .bl-auth-card { padding: 24px 20px; }
  .bl-v4 .bl-toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 1023.98px) {
  .bl-v4 .bl-btn-sm,
  .bl-v4 .bl-btn-xs { height: 40px; }
  .bl-v4 label.bl-check { min-height: 40px; }
  .bl-v4 .bl-banner .bl-iconbtn { width: 40px; height: 40px; }
  .bl-v4 .bl-hpill--link { height: 40px; }
}
.bl-v4 .bl-bubble:has(.bl-bubble-img) { width: 62%; }
.bl-v4 .bl-codebox pre { padding-top: 52px; }

/* ---------- Collapsible nav groups, plan badges, callback tile, plan gate ---------- */
.bl-v4 .bl-nav-toggle { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 28px; padding: 0 12px 6px; text-align: left; border-radius: 8px; cursor: pointer; transition: color .15s ease; }
.bl-v4 .bl-nav-toggle:hover { color: var(--ink); }
.bl-v4 .bl-nav-toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.bl-v4 .bl-nav-toggle > span:first-child { flex: 1 1 auto; min-width: 0; }
.bl-v4 .bl-nav-toggle .bl-nav-count { margin-left: 0; letter-spacing: 0; }
.bl-v4 .bl-nav-toggle[aria-expanded="true"] .bl-nav-count { display: none; }
.bl-v4 .bl-nav-chev { color: var(--muted); flex: none; transition: transform .2s ease; }
.bl-v4 .bl-nav-toggle[aria-expanded="true"] .bl-nav-chev { transform: rotate(180deg); }
.bl-v4 .bl-nav-items { display: flex; flex-direction: column; gap: 2px; }
.bl-v4 .bl-sb-collapsed .bl-nav-items[hidden] { display: flex !important; }
.bl-v4 .bl-nav-plan { margin-left: auto; padding: 1px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; color: var(--muted); border: 1px solid var(--line-strong); background: transparent; white-space: nowrap; flex: none; }
.bl-v4 .bl-sheet-item .bl-nav-plan { margin-left: 8px; }
.bl-v4 .bl-sb-help { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 2px 10px; padding: 12px 12px 12px 14px; border-radius: 12px; border: 1px solid var(--accent-line); background: var(--accent-soft); }
.bl-v4 .bl-sb-help-ic { display: inline-grid; place-items: center; color: var(--accent); grid-row: 1; }
.bl-v4 .bl-sb-help-title { grid-row: 1; font-size: 13.5px; font-weight: 700; color: var(--ink); padding-right: 24px; }
.bl-v4 .bl-sb-help-text { grid-column: 1 / -1; font-size: 12.5px; line-height: 1.4; color: var(--ink-2); }
.bl-v4 .bl-sb-help-btn { grid-column: 1 / -1; margin-top: 8px; width: 100%; justify-content: center; }
.bl-v4 .bl-sb-help-x { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; }
@media (min-width: 1024px) and (max-height: 820px) {
  .bl-v4 .bl-sb-help-wrap .bl-sb-help[data-help-full] { display: none !important; }
  .bl-v4 .bl-sb-help-wrap .bl-sb-help-row[hidden] { display: flex !important; }
  .bl-v4 .bl-sb-collapsed .bl-sb-help-wrap .bl-sb-help-row[hidden] { display: none !important; }
}
.bl-v4 .bl-sb-help-row { display: flex; align-items: center; gap: 12px; width: 100%; height: 38px; padding: 0 12px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft); transition: filter .15s ease; }
.bl-v4 .bl-sb-help-row:hover { filter: brightness(.97); }
.bl-v4 .bl-sb-help-row .bl-ic { color: var(--accent); }
.bl-v4 .bl-sb-help-rail { display: none; }
.bl-v4 .bl-sb-collapsed .bl-sb-help-rail { display: inline-grid; width: 44px; height: 44px; margin: 0 auto; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.bl-v4 .bl-sb-help-wrap [hidden] { display: none !important; }
.bl-v4 .bl-sheet-help { margin-top: 4px; background: var(--accent-soft); }
.bl-v4 .bl-sheet-help .bl-sheet-ic { color: var(--accent); }
.bl-v4 .bl-sheet-help .bl-sheet-text span { color: var(--accent-ink); }
.bl-v4 .bl-cb-form { margin-top: 20px; }
.bl-v4 .bl-cb-set { border: 0; margin: 0; padding: 0; min-width: 0; }
.bl-v4 .bl-cb-set .bl-label { padding: 0; margin-bottom: 8px; }
.bl-v4 .bl-cb-chips { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.bl-v4 .bl-cb-chips + .bl-cb-chips { margin-top: 8px; }
.bl-v4 .bl-cb-note { min-height: 72px; }
.bl-v4 .bl-cb .bl-legal-note .bl-ic { flex: none; margin-top: 2px; }
.bl-v4 .bl-cb .bl-dialog-btns--end { margin-top: 4px; }
.bl-v4 .bl-plan-gate { display: flex; align-items: center; gap: 16px; margin: 24px 0; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.bl-v4 .bl-plan-gate-ic { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); color: var(--ink-2); flex: none; }
.bl-v4 .bl-plan-gate-body { flex: 1 1 auto; min-width: 0; }
.bl-v4 .bl-plan-gate-title { font-size: 15px; font-weight: 700; color: var(--ink); }
.bl-v4 .bl-plan-gate-text { margin-top: 2px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.bl-v4 .bl-plan-gate-actions { display: flex; align-items: center; gap: 16px; flex: none; }
.bl-v4 .bl-is-gated { opacity: .42; filter: saturate(.4); pointer-events: none; user-select: none; }
@media (max-width: 1023.98px) {
  .bl-v4 .bl-plan-gate { flex-direction: column; align-items: stretch; gap: 12px; margin: 16px 0; }
  .bl-v4 .bl-plan-gate-ic { display: none; }
  .bl-v4 .bl-plan-gate-actions { flex-direction: column; align-items: stretch; gap: 4px; }
  .bl-v4 .bl-plan-gate-actions .bl-btn { height: 44px; justify-content: center; }
  .bl-v4 .bl-plan-gate-actions .bl-textbtn { justify-content: center; min-height: 40px; }
  .bl-v4 .bl-cb-chips .bl-chip { height: 40px; }
}
.bl-v4 .bl-plan-lock { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px dashed var(--line-strong); font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; transition: border-color .15s ease, color .15s ease; flex: none; }
.bl-v4 .bl-plan-lock:hover { border-color: var(--accent); color: var(--accent-ink); }
.bl-v4 .bl-plan-lock .bl-ic { color: var(--muted-2); }
@media (max-width: 1023.98px) {
  .bl-v4 .bl-plan-lock { height: 40px; }
}

/* ---------- Loading states (busy buttons, refresh, skeleton) ---------- */
.bl-v4 .bl-btn[aria-busy="true"] { cursor: progress; pointer-events: none; }
.bl-v4 .bl-btn-primary[aria-busy="true"]:disabled { background: var(--btn-bg); color: var(--btn-ink); border-color: transparent; box-shadow: none; filter: none; }
.bl-v4 .bl-btn-outline[aria-busy="true"]:disabled { background: var(--surface); border-style: solid; border-color: var(--line-strong); color: var(--ink-2); }
.bl-v4 .bl-btn-danger[aria-busy="true"]:disabled { background: var(--bad-soft); border-color: var(--bad-line); color: var(--bad); }
.bl-v4 .bl-btn-wa[aria-busy="true"]:disabled { background: var(--wa); color: var(--wa-ink); filter: none; }
.bl-v4 .bl-btn[aria-busy="true"] { justify-content: center; }
.bl-v4 .bl-spinner--btn { width: 14px; height: 14px; border-width: 2px; border-color: currentColor; border-top-color: transparent; opacity: .85; }
.bl-v4 .bl-is-held { opacity: .55; cursor: not-allowed; }
.bl-v4 .bl-is-refreshing { position: relative; }
.bl-v4 .bl-is-refreshing > * { opacity: .45; transition: opacity .15s ease; pointer-events: none; }
.bl-v4 .bl-is-refreshing::before { content: ""; position: absolute; left: 0; right: 0; top: 0; z-index: 3; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%); background-size: 40% 100%; background-repeat: no-repeat; animation: bl-sweep 1s linear infinite; }
@keyframes bl-sweep { from { background-position: -40% 0; } to { background-position: 140% 0; } }
.bl-v4 .skel { display: flex; flex-direction: column; }
.bl-v4 .skel-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) 96px; gap: 14px; align-items: center; padding: 16px 20px; border-top: 1px solid var(--line); }
.bl-v4 .skel-row:first-child { border-top: 0; }
.bl-v4 .skel-row > div { display: flex; flex-direction: column; gap: 8px; }
.bl-v4 .skel-dot { width: 36px; height: 36px; border-radius: 10px; }
.bl-v4 .skel-l { display: block; height: 12px; width: 100%; }
.bl-v4 .skel-w40 { width: 40%; }
.bl-v4 .skel-w60 { width: 60%; }
.bl-v4 .skel-w80 { width: 80%; }
.bl-v4 .skel-btn { display: block; height: 32px; border-radius: 999px; }
.bl-v4 .skel--cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.bl-v4 .skel-card { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.bl-v4 .skel-card .skel-btn { margin-top: 8px; width: 50%; }
.bl-v4 .skel--lines { gap: 10px; }
.bl-v4 .skel--lines .skel-l:last-child { width: 60%; }
.bl-v4 .bl-is-gated--read { opacity: 1; filter: none; user-select: text; }
.bl-v4 .bl-is-gated--read :is(button,
.bl-v4 .bl-btn,
.bl-v4 .bl-chip,
.bl-v4 .bl-seg,
.bl-v4 .bl-switch,
.bl-v4 input,
.bl-v4 select,
.bl-v4 textarea,
.bl-v4 .bl-plan-lock) { opacity: .4; filter: saturate(.3); }

/* ---------- WebApp shell additions ---------- */
.bl-v4 .bl-brand { min-width: 0; }
.bl-v4 .bl-brand-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bl-v4 .bl-brand-logo { width: 32px; height: 32px; border-radius: 10px; object-fit: contain; background: #fff; border: 1px solid var(--line); flex: none; }
.bl-v4 .bl-avatar-img { width: 32px; height: 32px; border-radius: 999px; object-fit: cover; }
.bl-v4 .bl-profile-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bl-v4 .bl-menu form, .bl-v4 .bl-flyout form { margin: 0; }
.bl-v4 .bl-menu-item, .bl-v4 .bl-flyout-item { text-align: left; }
/* Theme switch: the active half follows html.dark (theme_controller.js) */
html:not(.dark) .bl-v4 .bl-theme-seg [data-theme-option="light"],
.dark .bl-v4 .bl-theme-seg [data-theme-option="dark"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(12, 27, 30, .1), 0 0 0 1px var(--line); }
.dark .bl-v4 .bl-theme-seg [data-theme-option="dark"] { background: var(--line-strong); box-shadow: none; }
.bl-v4 .bl-sheet-subitem.bl-is-active { background: var(--accent-soft); color: var(--accent-ink); }
/* Flash messages (toast_controller.js) above the phone header */
.bl-notify-tray { position: fixed; z-index: 75; top: 68px; right: 16px; pointer-events: none; }
@media (min-width: 1024px) { .bl-notify-tray { top: 24px; right: 32px; } }
/* Pages not on V4 yet keep their own column; leave room for the tab bar */
.bl-v4 .bl-main-legacy { flex: 1 1 auto; width: 100%; min-width: 0; }
@media (max-width: 1023.98px) {
  .bl-v4 .bl-main-legacy { padding-bottom: 96px; }
  .bl-v4 .bl-tabbar { grid-template-columns: repeat(var(--tabs, 6), minmax(0, 1fr)); }
}

/* ---------- Legacy bl- classes in the V4 shell ----------
   Pages keep their markup until their reskin (W08 to W16); in the V4 shell
   the shared classes take the V4 tokens, so colours, radius and dark mode
   already match. */
.bl-v4 .bl-btn-secondary { border-radius: 999px; background: var(--surface); border-color: var(--line-strong); color: var(--ink-2); }
.bl-v4 .bl-btn-secondary:hover { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft); }
.bl-v4 .bl-btn-danger-outline { border-radius: 999px; border-color: var(--bad-line); color: var(--bad); background: transparent; }
.bl-v4 .bl-btn-danger-outline:hover { background: var(--bad-soft); border-color: var(--bad); }
.bl-v4 .bl-section { background: var(--surface); border-color: var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.bl-v4 .bl-section-head { border-bottom-color: var(--line); background: none; }
.bl-v4 .bl-section-title { color: var(--ink); font-size: 15px; }
.bl-v4 .bl-section-hint { color: var(--muted); }
.bl-v4 .bl-hero,
.bl-v4 .bl-section.bl-hero { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%); border-color: transparent; border-radius: 20px; box-shadow: 0 16px 36px -20px color-mix(in srgb, var(--brand) 70%, transparent); }
.dark .bl-v4 .bl-hero,
.dark .bl-v4 .bl-section.bl-hero { border: 1px solid color-mix(in srgb, var(--brand-bright) 10%, transparent); box-shadow: 0 16px 40px -20px rgba(0, 0, 0, .8); }
/* Page classes on the same element that set what .bl-section sets above */
.bl-v4 .bd-referral { background: linear-gradient(160deg, var(--brand) 0%, var(--brand-deep) 100%); border-color: transparent; }
.bl-v4 .bl-danger-zone, .bl-v4 .mya-delete-card { border-color: var(--bad-line); }
.bl-v4 .bl-danger-zone .bl-section-head, .bl-v4 .mya-delete-head { border-bottom-color: var(--bad-line); }
.bl-v4 .bl-danger-zone .bl-section-title, .bl-v4 .ag13-danger-title { color: var(--bad); }
.bl-v4 .bl-hero-orb, .bl-v4 .bl-hero-accent { display: none; }
.bl-v4 .bl-hero-icon-tile::after { animation: none; }
.bl-v4 .bl-page-subtitle { color: var(--muted); font-size: 14px; }
.bl-v4 .bl-page-title-accent { background: linear-gradient(90deg, var(--brand), var(--brand-bright)); }
.dark .bl-v4 .bl-page-title-accent { background: linear-gradient(90deg, var(--brand-2), var(--brand-bright)); }
.bl-v4 .bl-page-back { background: var(--surface); border-color: var(--line); color: var(--muted); }
.bl-v4 .bl-page-back:hover { color: var(--accent-ink); border-color: var(--accent-line); background: var(--accent-soft); }
.bl-v4 .bl-pill-neutral { background: var(--surface-2); color: var(--muted); border-color: var(--line); }
.bl-v4 .bl-pill-success { background: var(--good-soft); color: var(--good); border-color: var(--good-line); }
.bl-v4 .bl-pill-warning { background: var(--warn-soft); color: var(--warn); border-color: var(--warn-line); }
.bl-v4 .bl-pill-error { background: var(--bad-soft); color: var(--bad); border-color: var(--bad-line); }
.bl-v4 .bl-pill-info, .bl-v4 .bl-pill-brand { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent-line); }
.bl-v4 .bl-status-success { background: var(--good-soft); color: var(--good); border-color: var(--good-line); }
.bl-v4 .bl-status-attention { background: var(--warn-soft); color: var(--warn); border-color: var(--warn-line); animation: none; }
.bl-v4 .bl-banner-brand { background: var(--accent-soft); border-color: var(--accent-line); color: var(--ink-2); }
.bl-v4 .bl-banner-warning { background: var(--warn-soft); border-color: var(--warn-line); color: var(--ink-2); }
.bl-v4 .bl-empty { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.bl-v4 .bl-card .bl-empty, .bl-v4 .bl-section .bl-empty { background: transparent; border: 0; box-shadow: none; }
.bl-v4 .bl-empty::before { display: none; }
/* Tailwind v4 utilities sit in a layer and lose against this file: keep JS-toggled `hidden` working */
.bl-v4 .bl-empty.hidden { display: none; }
.bl-v4 .bl-empty-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--surface-2); color: var(--muted); box-shadow: none; margin-bottom: 16px; }
.bl-v4 .bl-list-card { background: var(--surface); border-color: var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.bl-v4 .bl-list-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-hover); }
.bl-v4 .bl-stat-tile { background: var(--surface); border-color: var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.bl-v4 .bl-stat-tile:hover { transform: none; border-color: var(--line-strong); box-shadow: var(--shadow-hover); }
.bl-v4 .bl-stat-label { color: var(--muted); font-size: 11px; letter-spacing: .1em; }
.bl-v4 .bl-stat-value { color: var(--ink); font-variant-numeric: tabular-nums; }
.bl-v4 .bl-stat-value-accent { color: var(--accent-ink); }
.bl-v4 .bl-stat-value-success { color: var(--good); }
.bl-v4 .bl-stat-value-warning { color: var(--warn); }
.bl-v4 .bl-stat-value-danger { color: var(--bad); }
.bl-v4 .bl-tabs { background: var(--surface-2); border-color: var(--line); border-radius: 999px; }
.bl-v4 .bl-tab { border-radius: 999px; color: var(--muted); }
.bl-v4 .bl-tab:hover { color: var(--ink); }
.bl-v4 .bl-tab-active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(12, 27, 30, .1), 0 0 0 1px var(--line); }
.dark .bl-v4 .bl-tab-active { background: var(--line-strong); box-shadow: none; }
.bl-v4 .bl-radio-card { background: var(--surface); border-color: var(--line-strong); border-radius: 14px; }
.bl-v4 .bl-radio-card-active { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
.bl-v4 .bl-radio-card-active .bl-radio-card-label { color: var(--accent-ink); }
.bl-v4 .bl-filter-count { background: var(--surface-2); color: var(--muted); }
.bl-v4 .bl-filter-count strong { color: var(--accent-ink); }
.bl-v4 .bl-modal-backdrop { background: var(--overlay); }
.bl-v4 .bl-modal-panel { background: var(--surface); border-color: var(--line); border-radius: 20px; box-shadow: var(--shadow-pop); }
.bl-v4 .bl-rating-num { color: var(--rating-ink); }
.bl-v4 .bl-row:hover { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }

/* ---------- W03 loading states in V4 colours ---------- */
.bl-v4 .skeleton { background: linear-gradient(90deg, var(--surface-2) 0%, var(--line) 50%, var(--surface-2) 100%); background-size: 200% 100%; }
.bl-v4 .skel-row { border-top-color: var(--line); }
.bl-v4 .skel-row:first-child { border-top: 0; }
.bl-v4 .skel-card { background: var(--surface); border-color: var(--line); }
.bl-v4 .is-busy.bl-btn-primary:disabled { background: var(--btn-bg); color: var(--btn-ink); border-color: transparent; box-shadow: none; filter: none; }
.bl-v4 .is-busy.bl-btn-outline:disabled { background: var(--surface); border-style: solid; border-color: var(--line-strong); color: var(--ink-2); }
