/* ============================================================
   Whisper · DB Navigator — v2-workspace.css (design system v3)
   View-specific layout for #home · #knowledge · #documents · #reports,
   the record drawer, bell + global-search popovers.
   Shared components (.page, .page-head, .ptabs, .metric-strip, .dtable,
   .split/.pane, .kv, .empty, .drawer, .toolbar, .pill) live in styles.css.
   Every selector here is prefixed .v2w- or scoped to a view id.
   ============================================================ */

/* ---------- utilities ---------- */
.v2w-num { font-variant-numeric: tabular-nums; }
.v2w-mono { font-family: var(--mono); font-size: var(--fs-12); }
.v2w-muted { color: var(--text-2); }
.v2w-small { font-size: var(--fs-12); }
.v2w-strong { font-weight: var(--fw-strong); color: var(--text); }
.v2w-bad { color: var(--err); font-weight: var(--fw-strong); }
.v2w-nowrap { white-space: nowrap; }
.v2w-grow { flex: 1 1 auto; }
.v2w-full { width: 100%; }
.v2w-padx { padding: 10px 16px; }
.v2w-sep { color: var(--text-3); padding: 0 6px; }
.v2w-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.v2w-loading { opacity: 0.55; transition: opacity 0.15s ease; pointer-events: none; }
.v2w-btn-spin { width: 12px; height: 12px; border-width: 2px; margin-right: 2px; }
.v2w-eyebrow { font-size: var(--fs-12); font-weight: var(--fw-med); letter-spacing: 0; text-transform: none; color: var(--text-3); }
.v2w-subh { font-size: var(--fs-12); font-weight: var(--fw-strong); color: var(--text-2); margin: 14px 0 6px; }
.v2w-count { font-size: var(--fs-12); font-weight: var(--fw-strong); color: var(--text-2); background: var(--surface-2); border-radius: 999px; padding: 0 7px; line-height: 18px; font-variant-numeric: tabular-nums; }
.v2w-count:empty { display: none; }
.v2w-hl { background: var(--accent-soft); color: var(--text); border-radius: 2px; padding: 0 1px; }
.v2w-dim td { color: var(--text-3); }
.v2w-dim td .v2w-strong { color: var(--text-2); }
.v2w-cell-sub { display: block; font-size: var(--fs-12); color: var(--text-3); margin-top: 1px; }
.v2w-th-act { width: 1%; }
.v2w-td-actions { text-align: right; white-space: nowrap; width: 1%; }
.v2w-td-actions .btn + .btn, .v2w-td-actions .btn + .icon-btn { margin-left: 4px; }
.v2w-td-name { min-width: 160px; }
.v2w-cond { max-width: 380px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.v2w-tabn { font-size: var(--fs-11); font-weight: var(--fw-strong); color: var(--text-2); background: var(--surface-2); border-radius: 999px; padding: 0 6px; line-height: 16px; font-variant-numeric: tabular-nums; }
.v2w-tabn-err { color: var(--err); background: var(--err-soft); }
.v2w-tabn-warn { color: var(--warn); background: var(--warn-soft); }
.v2w-type-pill { gap: 4px; }
.v2w-type-pill svg { flex: 0 0 auto; }

/* tone dots (map, runs, needs-attention) */
.v2w-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; background: var(--text-3); }
.v2w-tone-ok { background: var(--ok); }
.v2w-tone-warn { background: var(--warn); }
.v2w-tone-bad { background: var(--err); }
.v2w-tone-idle { background: color-mix(in srgb, var(--text-3) 55%, transparent); }
.v2w-tone-busy { background: var(--info); animation: pulse 1s ease-in-out infinite; }


.v2w-pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex: 0 0 auto; min-height: 40px; padding: 6px 12px; border-top: 1px solid var(--line); font-size: var(--fs-12); color: var(--text-2); }
.v2w-pager:empty { display: none; }
.v2w-pager-flat { border-top: 0; padding: 8px 2px; }
.v2w-pager-btns { display: inline-flex; align-items: center; gap: 6px; }

.v2w-chip-btn { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; height: 22px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); border-radius: 999px; padding: 0 9px; font: inherit; font-size: var(--fs-12); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.v2w-chip-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.v2w-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.v2w-chip { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: var(--fs-12); }
.v2w-bullets { margin: 0; padding-left: 18px; font-size: var(--fs-13); }
.v2w-bullets li { margin: 3px 0; }
.v2w-warn-list li { color: var(--warn); }

.v2w-raw { border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--surface-2); margin-top: 16px; }
.v2w-raw summary { cursor: pointer; padding: 8px 12px; font-size: var(--fs-12); font-weight: var(--fw-med); color: var(--text-2); }
.v2w-raw summary:hover { color: var(--text); }
.v2w-raw pre { margin: 0; padding: 10px 12px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: var(--fs-12); line-height: 1.5; white-space: pre-wrap; word-break: break-word; max-height: 360px; overflow: auto; }

/* confidence meter */
.v2w-meter { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.v2w-meter-track { position: relative; display: inline-block; width: 52px; height: 4px; border-radius: 2px; background: var(--surface-3, var(--line)); overflow: hidden; }
.v2w-meter-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; background: var(--text-3); }
.v2w-meter-mid .v2w-meter-fill { background: var(--text-3); }
.v2w-meter-lo .v2w-meter-fill { background: var(--warn); }
.v2w-meter-val { font-size: var(--fs-12); color: var(--text-2); font-variant-numeric: tabular-nums; min-width: 38px; text-align: right; }
.v2w-meter-lo .v2w-meter-val { color: var(--warn); font-weight: var(--fw-med); }
.v2w-meter-bad .v2w-meter-fill { background: var(--err); }
.v2w-meter-bad .v2w-meter-val { color: var(--err); font-weight: var(--fw-med); }

/* on/off switch (alert rules) */
.v2w-switch { position: relative; width: 30px; height: 18px; border-radius: 999px; border: 0; padding: 0; background: var(--line-strong); cursor: pointer; transition: background 0.15s ease; vertical-align: middle; }
.v2w-switch span { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); transition: transform 0.15s ease; }
.v2w-switch.on { background: var(--accent-fill, var(--accent)); }
.v2w-switch.on span { transform: translateX(12px); }
.v2w-switch:focus-visible { outline: none; box-shadow: var(--ring); }
.v2w-switch:disabled { opacity: 0.5; }
.v2w-toggle.on { background: var(--surface-3); border-color: var(--line-strong); color: var(--text); }

/* ============================================================
   BRAND bridge — chart palette + signal/ink/aurora with fallbacks
   (styles.css owns the tokens; these only alias them)
   ============================================================ */
:root {
  --v2w-aurora: var(--aurora, #1A7F5A);
  --v2w-ink-950: var(--ink-950, #0B1220);
  --v2w-ink-800: var(--ink-800, #1B2536);
  --v2w-ease: var(--ease, cubic-bezier(.2, .8, .2, 1));
  --v2w-c1: var(--chart-1, #1F4FD8); --v2w-c2: var(--chart-2, #0F8B7E); --v2w-c3: var(--chart-3, #B7791F); --v2w-c4: var(--chart-4, #C2413A);
  --v2w-c5: var(--chart-5, #5B6B85); --v2w-c6: var(--chart-6, #2B8FBF); --v2w-c7: var(--chart-7, #6B8E23); --v2w-c8: var(--chart-8, #8A5A9E);
  --v2w-shadow-xs: var(--shadow-xs, 0 1px 2px rgba(13, 20, 48, .05));
  --v2w-shadow-sm: var(--shadow-sm, 0 2px 8px rgba(13, 20, 48, .06));
}

.v2w-hue-1, .v2w-hue-2, .v2w-hue-3, .v2w-hue-4, .v2w-hue-5, .v2w-hue-6, .v2w-hue-7, .v2w-hue-8, .v2w-hue-none { --hue: var(--text-3); }


/* view fade-in (BRAND §5: 160ms, 4px rise) */
@keyframes v2w-rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.v2w-home, .v2w-know, .v2w-docs, .v2w-rep { animation: v2w-rise 160ms var(--v2w-ease) both; }

/* skeletons */
.v2w-skel { display: block; height: 10px; margin: 0; } /* look + 150ms show-delay come from the shell's .skel */
.v2w-skel-tile { border-radius: 8px; flex: 0 0 auto; }
.v2w-skel-big { margin: 6px 0 4px; }
.v2w-skel-list { padding: 4px 0; }
.v2w-skel-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.v2w-skel-row:last-child { border-bottom: 0; }
.v2w-skel-lines { flex: 1 1 auto; display: flex; flex-direction: column; gap: 7px; padding-top: 2px; }
.v2w-skel-table { padding: 4px 0; }
.v2w-skel-trow { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; align-items: center; height: 40px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.v2w-skel-trow:last-child { border-bottom: 0; }
.v2w-skel-trow .v2w-skel:not(:first-child) { justify-self: end; }

/* illustrated empty states */
.v2w-empty { padding: 32px 20px; gap: 2px; }
.v2w-empty-art { display: inline-flex; margin-bottom: 8px; color: var(--text-3); }
.v2w-empty .empty-title { font-size: var(--fs-13); }
.v2w-empty .empty-body { max-width: 320px; line-height: 1.5; }
.v2w-empty .empty-action { margin-top: 6px; }




.v2w-illus-fb g svg { color: var(--text-2); }

/* inline error banner with retry */
.v2w-errbox { display: flex; align-items: center; gap: 10px; margin: 12px 0; padding: 8px 8px 8px 12px; border: 1px solid color-mix(in srgb, var(--err) 30%, var(--line)); border-radius: 8px; background: var(--surface); font-size: var(--fs-13); color: var(--text); }
.v2w-errbox-ico { display: inline-grid; place-items: center; width: 16px; height: 16px; color: var(--err); flex: 0 0 auto; }
.v2w-errbox-msg { flex: 1 1 auto; min-width: 0; line-height: 1.45; }

/* relative time */
time.v2w-time { white-space: nowrap; font-variant-numeric: tabular-nums; cursor: default; }
.v2w-na { color: var(--text-3); cursor: help; }

/* tooltip fallback (used only when brand.js WSN.tip is absent) */
.v2w-tipfb { position: fixed; z-index: 1000; max-width: 280px; padding: 5px 8px; border-radius: 6px; background: var(--v2w-ink-950); color: #fff; font-size: var(--fs-12); line-height: 1.4; pointer-events: none; box-shadow: 0 4px 12px rgba(7, 11, 26, .25); animation: fade-in 120ms ease; }

/* ============================================================
   HOME
   ============================================================ */
.v2w-asof { border: 0; background: none; padding: 0 4px; height: 32px; font: inherit; font-size: var(--fs-12); line-height: 18px; color: var(--text-2); white-space: nowrap; cursor: pointer; border-radius: 4px; }
.v2w-asof:hover { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.v2w-asof:focus-visible { outline: none; box-shadow: var(--ring); }
.v2w-spin svg { animation: spin 0.8s linear infinite; }
.v2w-home .panel-title, .v2w-home .panel-head h2 { font-size: var(--fs-14); line-height: 22px; font-weight: var(--fw-strong); letter-spacing: 0; margin: 0; }
.v2w-home > * + * { margin-top: 16px; }
.v2w-home > .page-head + * { margin-top: 0; }
#v2w-gs-host:empty, #v2w-map-host:empty { display: none; }

/* Get started — four plain rows: checkbox icon, ink text, one link */
.v2w-gs .panel-head { height: 48px; gap: 12px; }
.v2w-gs-prog { font-size: var(--fs-12); color: var(--text-3); font-variant-numeric: tabular-nums; }
.v2w-gs-x { margin-left: auto; }
.v2w-gs-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.v2w-gs-item { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px 16px; min-width: 0; }
.v2w-gs-item + .v2w-gs-item { border-left: 1px solid var(--line); }
.v2w-gs-ico { display: inline-grid; place-items: center; width: 16px; height: 20px; flex: 0 0 auto; color: var(--text-3); }
.v2w-gs-item.done .v2w-gs-ico { color: var(--text-2); }
.v2w-gs-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.v2w-gs-t { font-size: var(--fs-13); line-height: 20px; font-weight: var(--fw-strong); color: var(--text); }
.v2w-gs-item.done .v2w-gs-t { color: var(--text-2); font-weight: var(--fw-med); }
.v2w-gs-d { font-size: var(--fs-12); line-height: 18px; color: var(--text-2); }
.v2w-gs-link { margin-top: 4px; font-size: var(--fs-13); line-height: 20px; font-weight: var(--fw-med); color: var(--accent); text-decoration: none; align-self: flex-start; border-radius: 4px; }
.v2w-gs-link:hover { text-decoration: underline; }
.v2w-gs-link:focus-visible { outline: none; box-shadow: var(--ring); }
.v2w-gs-done { margin-top: 4px; font-size: var(--fs-12); line-height: 18px; color: var(--text-3); }

/* KPI strip: the shell's .kpi-strip / .kpi (WSN.kpi) own the spec; Home only tunes spacing */
.v2w-home .kpi-strip { margin-bottom: 0; }
.v2w-kpi-skel { gap: 8px; }
.v2w-skel-big { margin: 6px 0 4px; }

/* platform map: Sources → Core engine → Workspaces */
.v2w-map-panel .panel-head, .v2w-ps-head { height: 48px; gap: 12px; }
.v2w-legend { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 16px; margin-left: auto; font-size: var(--fs-12); line-height: 18px; color: var(--text-2); }
.v2w-legend > span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.v2w-lg-line { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 3 3; }
.v2w-lg-line.v2w-lg-live { stroke: var(--text-3); stroke-dasharray: none; }
.v2w-map-body { padding: 16px 20px 8px; }
.v2w-map-foot { display: flex; align-items: center; gap: 16px; min-height: 36px; padding: 0 20px 12px; font-size: var(--fs-12); color: var(--text-3); }
.v2w-map-foot > span { display: inline-flex; align-items: center; gap: 6px; }
.v2w-foot-r { margin-left: auto; white-space: nowrap; }
.v2w-foot-warn svg { color: var(--warn); }

.v2w-map { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 56px; align-items: stretch; }
.v2w-edges { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; z-index: 0; }
.v2w-edge { fill: none; stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 3 3; shape-rendering: crispEdges; }
.v2w-edge-live { stroke: var(--text-3); stroke-dasharray: none; }
.v2w-mcol { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.v2w-mh { height: 18px; margin-bottom: 0; font-size: var(--fs-12); line-height: 18px; font-weight: var(--fw-med); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2w-mn { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 2px; height: 64px; min-width: 0; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); text-align: left; text-decoration: none; transition: border-color 120ms ease, background 120ms ease; }
a.v2w-mn:hover { border-color: var(--line-strong); background: var(--surface-2); text-decoration: none; }
a.v2w-mn:focus-visible, .v2w-core a:focus-visible { outline: none; box-shadow: var(--ring); }
.v2w-mn-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.v2w-mn-ico { display: inline-grid; place-items: center; width: 16px; height: 16px; flex: 0 0 auto; color: var(--text-3); }
.v2w-mn-t { flex: 1 1 auto; min-width: 0; font-size: var(--fs-13); line-height: 20px; font-weight: var(--fw-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2w-mn-flag { flex: 0 0 auto; font-size: var(--fs-11); line-height: 16px; font-weight: var(--fw-med); white-space: nowrap; }
.v2w-mn-flag-warn { color: var(--warn); }
.v2w-mn-flag-bad { color: var(--err); }
.v2w-mn-chev { display: inline-grid; place-items: center; width: 12px; flex: 0 0 auto; color: var(--text-3); }
a.v2w-mn:hover .v2w-mn-chev { color: var(--text-2); }
.v2w-mn-v { padding-left: 24px; font-size: var(--fs-12); line-height: 18px; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2w-mn-bad { border-color: color-mix(in srgb, var(--err) 45%, var(--line)); }
.v2w-mn-idle .v2w-mn-t { color: var(--text-2); }

/* core: a normal panel, content top-aligned */
.v2w-mcol-core .v2w-core { flex: 1 1 auto; display: flex; flex-direction: column; gap: 4px; padding: 4px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface-2); }
.v2w-core a, .v2w-core .v2w-core-row { position: relative; color: inherit; text-decoration: none; border-radius: 6px; }
.v2w-core a { transition: background 120ms ease; }
.v2w-core a:hover { background: var(--surface-3, var(--surface)); text-decoration: none; }
.v2w-core-kb { display: flex; flex-direction: column; padding: 12px 12px 10px; }
.v2w-core-brand { font-size: var(--fs-12); line-height: 18px; font-weight: var(--fw-med); color: var(--text-2); }
.v2w-core-big { font-size: var(--fs-28); line-height: 34px; font-weight: var(--fw-strong); letter-spacing: var(--track-display); font-variant-numeric: tabular-nums; margin-top: 2px; color: var(--text); white-space: nowrap; }
.v2w-core-unit { font-size: var(--fs-16); line-height: 24px; font-weight: var(--fw-med); letter-spacing: 0; color: var(--text-3); }
.v2w-core-s { display: flex; flex-wrap: wrap; gap: 0 12px; font-size: var(--fs-12); line-height: 18px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.v2w-core-rows { display: flex; flex-direction: column; gap: 0; padding-top: 4px; border-top: 1px solid var(--line); }
.v2w-core-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; column-gap: 8px; align-items: center; min-height: 36px; padding: 0 12px; }
.v2w-core-k { font-size: var(--fs-12); line-height: 18px; font-weight: var(--fw-med); color: var(--text); }
.v2w-core-v { font-size: var(--fs-12); line-height: 18px; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* non-admin platform status row */
.v2w-ps-facts { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; min-width: 0; margin-left: 8px; font-size: var(--fs-13); line-height: 20px; }
.v2w-ps-f { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.v2w-ps-k { font-size: var(--fs-12); color: var(--text-3); }
.v2w-ps-f b { font-weight: var(--fw-strong); color: var(--text); font-variant-numeric: tabular-nums; }
.v2w-ps-head .btn { margin-left: auto; }
.v2w-ps-legend { display: flex; padding: 12px 20px 0; }
.v2w-ps-legend .v2w-legend { margin-left: 0; justify-content: flex-start; }

/* needs attention + recent ingestion */
.v2w-home-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; min-width: 0; }
.v2w-home .panel { box-shadow: none; }
.v2w-home .panel-head { height: 48px; }
.v2w-count-err { color: var(--err); background: var(--surface-2); }
.v2w-attn { list-style: none; margin: 0; padding: 0; }
.v2w-attn-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 16px; border-bottom: 1px solid var(--line); }
.v2w-attn-row:last-child { border-bottom: 0; }
.v2w-attn-ico { display: inline-grid; place-items: center; width: 16px; height: 16px; flex: 0 0 auto; color: var(--text-3); }
.v2w-attn-err .v2w-attn-ico { color: var(--err); }
.v2w-attn-warn .v2w-attn-ico { color: var(--warn); }
.v2w-attn-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.v2w-attn-t { font-size: var(--fs-13); line-height: 20px; font-weight: var(--fw-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2w-attn-s { display: flex; align-items: center; min-width: 0; font-size: var(--fs-12); line-height: 18px; color: var(--text-3); white-space: nowrap; }
.v2w-attn-kind { color: var(--text-2); font-weight: var(--fw-med); flex: 0 0 auto; }
.v2w-attn-msg { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.v2w-attn-s .v2w-sep { padding: 0 6px; }
.v2w-attn-s time { flex: 0 0 auto; }
.v2w-attn-more { padding: 8px 12px; }
.v2w-allclear { display: flex; align-items: center; gap: 12px; padding: 16px; font-size: var(--fs-13); }
.v2w-allclear-ico { display: inline-grid; place-items: center; width: 16px; height: 16px; color: var(--text-3); flex: 0 0 auto; }
.v2w-allclear div { display: flex; flex-direction: column; gap: 2px; }
.v2w-allclear span { font-size: var(--fs-12); color: var(--text-2); }

.v2w-viewall { gap: 2px; }
.v2w-tight { overflow-x: auto; }
.v2w-runs-t { table-layout: fixed; }
.v2w-runs-t .v2w-col-rec { width: 104px; }
.v2w-runs-t .v2w-col-when { width: 88px; }
.v2w-tight .dtable th { background: transparent; height: 36px; }
.v2w-tight .dtable td { height: 52px; padding-top: 6px; padding-bottom: 6px; }
.v2w-tight .dtable th:first-child, .v2w-tight .dtable td:first-child { padding-left: 16px; }
.v2w-tight .dtable th:last-child, .v2w-tight .dtable td:last-child { padding-right: 16px; }
.v2w-run-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.v2w-run-ico { display: inline-grid; place-items: center; width: 16px; height: 16px; color: var(--text-3); flex: 0 0 auto; }
.v2w-run-ico svg { width: 16px; height: 16px; }
.v2w-run-txt { display: flex; flex-direction: column; min-width: 0; }
.v2w-run-t { font-weight: var(--fw-med); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2w-run-sub { display: block; font-size: var(--fs-12); line-height: 18px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2w-run-st-warn { color: var(--warn); } .v2w-run-st-bad { color: var(--err); } .v2w-run-st-busy { color: var(--text-2); }
.v2w-pos { color: var(--text); font-weight: var(--fw-med); }
.v2w-zero { color: var(--text-3); }

/* real links in first cells: whole row clickable look, link carries focus */
.v2w-rowlink { color: var(--text); text-decoration: none; border-radius: 4px; }
.v2w-rowlink:hover { text-decoration: underline; text-underline-offset: 2px; }
.v2w-rowlink:focus-visible { outline: none; box-shadow: var(--ring); }

@media (max-width: 1100px) {
  .v2w-gs-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2w-gs-item:nth-child(3) { border-left: 0; }
  .v2w-gs-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .v2w-map { column-gap: 40px; }
  .v2w-home-side { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 899px) {
  .v2w-kpis .kpi:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .v2w-map { grid-template-columns: minmax(0, 1fr); row-gap: 16px; }
  .v2w-edges { display: none; }
  .v2w-mcol-core .v2w-core { flex: 0 0 auto; }
  .v2w-ps-head { height: auto; min-height: 48px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .v2w-ps-facts { margin-left: 0; order: 3; flex: 1 1 100%; }
}
@media (max-width: 719px) {
  .v2w-home .page-head { flex-wrap: wrap; }
  .v2w-home .page-actions { margin-left: 0; justify-content: flex-start; flex-wrap: wrap; }
  .v2w-asof { order: 9; flex: 1 1 100%; }
  .v2w-gs-list { grid-template-columns: minmax(0, 1fr); }
  .v2w-gs-item { border-left: 0 !important; }
  .v2w-gs-item + .v2w-gs-item { border-top: 1px solid var(--line); }
  .v2w-kpis .kpi-value { font-size: var(--fs-22); line-height: var(--lh-22); }
  .v2w-map-body { padding: 12px 16px 8px; }
  .v2w-legend { display: none; }
  .v2w-ps-legend { display: none; }
  .v2w-map-foot { padding: 0 16px 12px; }
  .v2w-foot-r { display: none !important; }
  .v2w-runs-t colgroup { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .v2w-home, .v2w-know, .v2w-docs, .v2w-rep { animation: none; }
}

/* ============================================================
   KNOWLEDGE  (app: filters 260 | results | detail 420)
   ============================================================ */
#view-knowledge > .v2w-know { flex: 1 1 auto; min-height: 0; position: relative; }
.v2w-k-filters { flex: 0 0 var(--pane-w, 280px); width: var(--pane-w, 280px); background: var(--bg); }
.v2w-k-filters .pane-head .btn { margin-left: auto; }
.v2w-k-filters .pane-body { padding: 4px 0 16px; }
.v2w-k-results { flex: 1 1 auto; }
.v2w-k-detail { flex: 0 0 var(--inspector-w, 420px); width: var(--inspector-w, 420px); }
.v2w-facet { padding: 14px 12px 4px; }
.v2w-facet + .v2w-facet { border-top: 1px solid var(--line); margin-top: 8px; }
.v2w-facet .v2w-eyebrow { padding: 0 6px 8px; }
.v2w-facet-item { position: relative; display: flex; align-items: center; gap: 8px; width: 100%; height: 32px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: var(--text); font: inherit; font-size: var(--fs-13); text-align: left; cursor: pointer; transition: background 120ms ease; }
.v2w-facet-item:hover { background: var(--surface-2); }
.v2w-facet-item:active { background: var(--surface-3, var(--surface-2)); }
.v2w-facet-item.on { background: var(--surface-2); color: var(--text); font-weight: var(--fw-med); }
.v2w-facet-item:focus-visible { outline: none; box-shadow: var(--ring-inset); }
.v2w-facet-check { display: inline-grid; place-items: center; width: 16px; height: 16px; border: 1.5px solid var(--field-border, var(--line-strong)); border-radius: 4px; background: var(--surface); flex: 0 0 auto; transition: background 120ms ease, border-color 120ms ease; }
.v2w-facet-item:hover .v2w-facet-check { border-color: var(--line-hover); }
.v2w-facet-item.on .v2w-facet-check { background: var(--accent-fill, var(--accent)); border-color: var(--accent-fill, var(--accent)); color: #fff; }
.v2w-facet-ico { display: inline-flex; color: var(--text-3); flex: 0 0 auto; }
.v2w-facet-item.on .v2w-facet-ico { color: var(--text-2); }
.v2w-facet-label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2w-facet-n { font-size: var(--fs-12); color: var(--text-3); font-variant-numeric: tabular-nums; }
.v2w-facet-item.on .v2w-facet-n { color: var(--text); font-weight: var(--fw-med); }
.v2w-facet-bar { display: none; }
.v2w-facet-bar i { display: block; height: 100%; border-radius: 2px; background: color-mix(in srgb, var(--accent) 55%, var(--line-strong)); transition: width 240ms var(--v2w-ease); }
.v2w-facet-item.on .v2w-facet-bar i { background: var(--accent); }
.v2w-facet-n { min-width: 26px; text-align: right; }
.v2w-facet-empty { padding: 4px 8px; font-size: var(--fs-12); color: var(--text-3); }
.v2w-date { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 6px; padding: 0 6px 8px; font-size: var(--fs-12); color: var(--text-2); }
.v2w-date input { width: 100%; height: 30px; font-size: var(--fs-12); padding: 0 8px; font-variant-numeric: tabular-nums; }

.v2w-k-searchhead { flex-basis: 48px; height: 48px; min-height: 48px; gap: 8px; }
.v2w-searchbox { position: relative; flex: 1 1 auto; min-width: 0; }
.v2w-searchbox > svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.v2w-searchbox input { width: 100%; height: 32px !important; padding-left: 34px !important; font-size: var(--fs-13) !important; border-radius: 6px !important; }
.v2w-k-ftoggle { display: none !important; }
.v2w-k-fcount { position: absolute; top: -5px; right: -5px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--accent-fill, var(--accent)); color: #fff; font-size: var(--fs-11); font-weight: var(--fw-strong); line-height: 16px; text-align: center; }
.v2w-k-sub { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; min-height: 40px; padding: 4px 16px; border-bottom: 1px solid var(--line); font-size: var(--fs-12); color: var(--text-2); flex-wrap: wrap; background: var(--surface); }
.v2w-k-sub b { color: var(--text); font-weight: var(--fw-strong); font-variant-numeric: tabular-nums; }
.v2w-k-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.v2w-k-chips:empty { display: none; }
.v2w-fchip { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 6px 0 8px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); color: var(--text); font-size: var(--fs-12); cursor: pointer; }
.v2w-fchip:hover { border-color: var(--line-hover); background: var(--surface-2); }
.v2w-fchip svg { opacity: .7; }

/* type icon tiles (results, related, pills) */
.v2w-tile { display: inline-grid; place-items: center; width: 20px; height: 20px; flex: 0 0 auto; color: var(--text-3); background: none; }
.v2w-tile svg { width: 16px; height: 16px; }

.v2w-hits { list-style: none; margin: 0; padding: 0; }
.v2w-hit { position: relative; text-decoration: none; display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; width: 100%; padding: 12px 16px 12px 14px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: background 120ms ease; }
.v2w-hit:hover { background: var(--surface-2); text-decoration: none; }
.v2w-hit.sel { background: var(--surface-2); }
.v2w-hit.sel { box-shadow: inset 2px 0 0 var(--accent); }
.v2w-hit:focus-visible { outline: none; box-shadow: var(--ring-inset); }
.v2w-hit-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.v2w-hit-title { font-size: var(--fs-13); font-weight: var(--fw-strong); line-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: 0; }
.v2w-hit-snip { font-size: var(--fs-12); color: var(--text-2); line-height: 18px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; }
.v2w-hit-meta { display: flex; align-items: center; min-width: 0; margin-top: 1px; font-size: var(--fs-12); color: var(--text-3); white-space: nowrap; overflow: hidden; }
.v2w-hit-meta > span { overflow: hidden; text-overflow: ellipsis; }
.v2w-hit-meta .v2w-mono { font-size: var(--fs-11); padding: 1px 5px; border-radius: 4px; background: var(--surface-2); color: var(--text-2); }
.v2w-hit.sel .v2w-hit-meta .v2w-mono { background: var(--surface); }
.v2w-hit-src { color: var(--text-2); font-weight: var(--fw-med); }

/* record detail (pane + drawer share the markup) */
.v2w-rec-head { gap: 6px; height: 48px; flex: 0 0 48px; }
.v2w-rec-kicker { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-size: var(--fs-12); color: var(--text-2); overflow: hidden; white-space: nowrap; }
.v2w-rec-head-actions { margin-left: auto; }
.v2w-rec-scroll { padding: 18px 20px 28px; }
.v2w-rec-title { font-size: var(--fs-16); font-weight: var(--fw-strong); line-height: 24px; letter-spacing: var(--track-heading); margin: 0 0 6px; overflow-wrap: anywhere; }
.v2w-kicker-sep { font-size: var(--fs-12); color: var(--text-2); }
.v2w-rec-facts { display: flex; flex-wrap: wrap; align-items: center; font-size: var(--fs-12); color: var(--text-2); margin-bottom: 2px; overflow-wrap: anywhere; }
.v2w-sec { padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--line); }
.v2w-sec-h { font-size: var(--fs-12); font-weight: var(--fw-med); letter-spacing: 0; text-transform: none; margin: 0 0 12px; color: var(--text-3); }
.v2w-sec .kv { font-size: var(--fs-13); }
.v2w-rec-skel { display: flex; flex-direction: column; gap: 10px; }
.v2w-sec-skel { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; margin-top: 6px; border-top: 1px solid var(--line); }
.v2w-skel-step { padding: 2px 0; border: 0; }
.v2w-skel-round { border-radius: 50%; }

/* lineage — vertical timeline */
.v2w-chain { list-style: none; margin: 0; padding: 0; position: relative; }
.v2w-step { position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; column-gap: 12px; align-items: start; padding-bottom: 16px; }
.v2w-step:last-child { padding-bottom: 0; }
.v2w-step:not(:last-child)::before { content: ""; position: absolute; left: 9.5px; top: 24px; bottom: 2px; width: 1px; background: var(--line); }
.v2w-step { --step: var(--text-3); }

.v2w-step-ok, .v2w-step-idle { --step: var(--text-3); } .v2w-step-warn { --step: var(--warn); } .v2w-step-err { --step: var(--err); }

.v2w-step-ico { position: relative; z-index: 1; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: var(--step); background: var(--surface); box-shadow: 0 0 0 1px var(--line-strong); }
.v2w-step-ico svg { width: 12px; height: 12px; }
.v2w-step-ink .v2w-step-ico { color: var(--surface); background: var(--text); box-shadow: none; }
.v2w-step-body { display: flex; flex-direction: column; min-width: 0; gap: 2px; padding-top: 1px; }
.v2w-step-k { font-size: var(--fs-12); font-weight: var(--fw-med); letter-spacing: 0; text-transform: none; color: var(--text-3); line-height: 14px; }
.v2w-step-v { font-size: var(--fs-13); font-weight: var(--fw-strong); overflow-wrap: anywhere; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; line-height: 20px; }
.v2w-step-v .v2w-mono { font-size: var(--fs-12); font-weight: 400; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2w-step-s { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: var(--fs-12); color: var(--text-2); min-width: 0; }
.v2w-step-s .pill { height: 18px; font-size: var(--fs-11); }
.v2w-step-obj { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 5px; border-radius: 4px; background: var(--surface-2); font-size: var(--fs-11); }
.v2w-step-uid { font-size: var(--fs-11); font-weight: 400 !important; }
.v2w-run-stats { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.v2w-run-stats b { font-weight: var(--fw-med); font-size: var(--fs-11); height: 18px; line-height: 18px; padding: 0 6px; border-radius: 6px; background: var(--surface-2); color: var(--text-2); cursor: default; }
.v2w-run-stats b.ins { color: var(--text); background: var(--surface-2); }
.v2w-step-act { padding-top: 0; }
.v2w-rec-body { font-size: var(--fs-13); line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; max-height: 420px; overflow: auto; }
.v2w-rec-body.v2w-clamped { -webkit-mask-image: linear-gradient(180deg, #000 85%, transparent); mask-image: linear-gradient(180deg, #000 85%, transparent); margin-bottom: 8px; }
.v2w-timeline { list-style: none; margin: 0; padding: 0; font-size: var(--fs-12); }
.v2w-timeline li { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 8px; padding: 3px 0; }
.v2w-tl-ts { color: var(--text-3); font-size: var(--fs-12); }

/* entities grouped by kind */
.v2w-ents { display: flex; flex-direction: column; gap: 12px; }
.v2w-ent-group { display: flex; flex-direction: column; gap: 6px; }
.v2w-ent-kind { display: flex; align-items: center; gap: 6px; font-size: var(--fs-12); font-weight: var(--fw-strong); color: var(--text-2); }
.v2w-ent-ico { display: inline-grid; place-items: center; width: 16px; height: 16px; color: var(--text-3); }
.v2w-ent-n { font-size: var(--fs-11); font-weight: var(--fw-med); color: var(--text-3); }
.v2w-ent-vals { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; padding-left: 26px; }
.v2w-ent-chip { height: 24px; border-radius: 6px; padding: 0 8px; background: var(--surface); border-color: var(--line-strong); }
.v2w-related { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.v2w-related li + li { border-top: 1px solid var(--line); }
.v2w-rel { text-decoration: none; display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px 8px 8px; border: 0; background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: background 120ms ease; }
.v2w-rel:hover { background: var(--surface-2); text-decoration: none; }
.v2w-rel:focus-visible { outline: none; box-shadow: var(--ring-inset); }
.v2w-rel .v2w-tile { width: 20px; height: 20px; }
.v2w-rel > svg { color: var(--text-3); flex: 0 0 auto; }
.v2w-rel-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.v2w-rel-title { font-size: var(--fs-13); font-weight: var(--fw-med); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2w-rel-meta { font-size: var(--fs-12); color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2w-note { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: var(--fs-12); color: var(--text-2); }
.v2w-note svg { color: var(--text-3); flex: 0 0 auto; }
.v2w-wrap-t td { white-space: normal; overflow-wrap: anywhere; }
.v2w-maxh { max-height: 280px; }

@media (max-width: 1099px) {
  .v2w-k-detail { display: none; }
}
/* REFINE2 §8: filters become a left drawer at ≤1180 so results keep the width */
@media (max-width: 1180px) {
  .v2w-k-ftoggle { display: inline-flex !important; position: relative; }
  .v2w-k-filters { display: none; }
  .v2w-know.v2w-k-fopen .v2w-k-filters { display: flex; position: absolute; z-index: 20; top: 0; left: 0; bottom: 0; width: min(320px, 88vw); border-right: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-pop); }
  .v2w-know.v2w-k-fopen::after { content: ""; position: absolute; inset: 0; z-index: 19; background: rgba(15, 20, 28, .28); }
}

/* drawer tweaks (record detail < 1100px or outside #knowledge) */
.v2w-drawer { width: 560px; }
.v2w-drawer-head { gap: 6px; padding-left: 16px; }
.v2w-drawer-titles { flex: 1 1 auto; min-width: 0; }
.v2w-drawer-kicker { display: flex; align-items: center; gap: 8px; font-size: var(--fs-12); color: var(--text-2); margin-bottom: 2px; min-width: 0; }
.v2w-drawer-titles h2 { font-size: var(--fs-16); font-weight: var(--fw-strong); margin: 0; line-height: 1.35; overflow-wrap: anywhere; }
.v2w-drawer-actions { display: inline-flex; gap: 6px; flex: 0 0 auto; }
.v2w-drawer-head .v2w-drawer-x { margin-left: 0; }
.v2w-drawer .v2w-rec > .v2w-sec:first-of-type { margin-top: 10px; }
@media (max-width: 719px) {
  .v2w-drawer { width: 100vw; }
  .v2w-drawer-actions .btn { padding: 0 8px; }
}

/* ============================================================
   DOCUMENT REVIEW  (tool head 48 | queue 280 | review: preview | fields)
   ============================================================ */
#view-documents > .v2w-docs { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.v2w-d-toolhead { display: flex; align-items: center; gap: 12px; flex: 0 0 48px; height: 48px; min-width: 0; padding: 0 var(--page-x, 24px); border-bottom: 1px solid var(--line); background: var(--surface); }
.v2w-tool-title { margin: 0; font-size: var(--fs-16); line-height: 24px; font-weight: var(--fw-strong); letter-spacing: var(--track-heading); white-space: nowrap; }
.v2w-d-sub { min-width: 0; font-size: var(--fs-12); line-height: 18px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.v2w-split { display: inline-flex; flex: 0 0 auto; }
.v2w-split > .btn:first-child { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.v2w-split > .v2w-split-caret { margin-left: -1px; padding: 0 8px; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.v2w-d-split { flex: 1 1 auto; min-height: 0; }
.v2w-queue { position: relative; flex: 0 0 var(--pane-w, 280px); width: var(--pane-w, 280px); }
.v2w-qhead { height: 48px; flex: 0 0 48px; padding: 0 6px; align-items: stretch; }
.v2w-qtabs { flex: 1 1 auto; margin: 0 !important; gap: 0 !important; border-bottom: 0 !important; height: 100%; align-items: stretch; }
.v2w-qtabs .ptab { padding: 0 6px; gap: 4px; height: 100%; flex: 0 0 auto; }
.v2w-qtabs { overflow-x: auto; scrollbar-width: none; }
.v2w-qlist { list-style: none; margin: 0; padding: 0; }
.v2w-qrow { position: relative; }
.v2w-qitem { position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; width: 100%; padding: 12px 14px; border-bottom: 1px solid var(--line); background: transparent; color: var(--text); text-decoration: none; transition: background 120ms ease; }
.v2w-qitem:hover { background: var(--surface-2); text-decoration: none; }
.v2w-qitem.sel { background: var(--surface-2); box-shadow: inset 2px 0 0 var(--accent); }
.v2w-qitem:focus-visible { outline: none; box-shadow: var(--ring-inset); }
.v2w-doc-tile { width: 20px; height: 20px; }
/* bulk-select checkbox sits over the type icon; shown on hover/focus, or always once any row is checked */
.v2w-qcheck { position: absolute; z-index: 2; left: 16px; top: 14px; width: 16px; height: 16px; margin: 0; accent-color: var(--accent); opacity: 0; cursor: pointer; }
.v2w-qlist-bulk .v2w-qrow:hover .v2w-qcheck, .v2w-qcheck:focus-visible, .v2w-qlist-checking .v2w-qcheck { opacity: 1; }
.v2w-qlist-bulk .v2w-qrow:hover .v2w-doc-tile, .v2w-qlist-checking .v2w-doc-tile, .v2w-qrow:focus-within .v2w-qcheck:focus-visible + .v2w-qitem .v2w-doc-tile { visibility: hidden; }
.v2w-qrow.checked .v2w-qitem { background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
@media (hover: none) { .v2w-qlist-bulk .v2w-qcheck { opacity: 1; } .v2w-qlist-bulk .v2w-doc-tile { visibility: hidden; } }
.v2w-bulk { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; flex: 0 0 auto; min-height: 40px; padding: 4px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.v2w-bulk[hidden] { display: none; }
.v2w-bulk-n { font-size: var(--fs-12); font-weight: var(--fw-strong); margin-right: 4px; font-variant-numeric: tabular-nums; }
.v2w-bulk-note { font-size: var(--fs-12); color: var(--text-3); }

.v2w-qitem-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.v2w-qitem-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.v2w-qitem-name { flex: 1 1 auto; min-width: 0; font-size: var(--fs-13); line-height: 20px; font-weight: var(--fw-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2w-qitem-top .pill { flex: 0 0 auto; }
.v2w-qitem-meta { display: flex; align-items: center; gap: 10px; font-size: var(--fs-12); color: var(--text-2); min-width: 0; }
.v2w-qitem-cls { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2w-qitem-ago { color: var(--text-3); white-space: nowrap; }
.v2w-dropveil { display: none; position: absolute; inset: 6px; z-index: 5; border: 1px dashed var(--accent); border-radius: 8px; background: color-mix(in srgb, var(--accent-soft) 88%, transparent); color: var(--accent); flex-direction: column; align-items: center; justify-content: center; gap: 6px; pointer-events: none; }
.v2w-queue.drag .v2w-dropveil { display: flex; }

.v2w-up-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 12px 0; }
.v2w-uplist { list-style: none; margin: 0; padding: 4px 12px 8px; border-bottom: 1px solid var(--line); max-height: 180px; overflow: auto; }
.v2w-up { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name size" "st open"; gap: 2px 8px; padding: 6px 0; font-size: var(--fs-12); border-bottom: 1px solid var(--line); }
.v2w-up:last-child { border-bottom: 0; }
.v2w-up-name { grid-area: name; font-weight: var(--fw-med); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2w-up-size { grid-area: size; color: var(--text-3); }
.v2w-up-st { grid-area: st; display: flex; align-items: center; gap: 6px; min-width: 0; flex-wrap: wrap; }
.v2w-up .btn { grid-area: open; }
.v2w-up-failed .v2w-up-name { color: var(--err); }

.v2w-review { flex: 1 1 auto; }
.v2w-rv-head { gap: 10px; flex: 0 0 48px; height: 48px; min-height: 48px; }
.v2w-rv-back { display: none !important; }
.v2w-rv-titles { display: flex; flex-direction: column; gap: 0; flex: 1 1 auto; min-width: 0; }
.v2w-rv-tline { display: flex; align-items: center; gap: 8px; min-width: 0; }
.v2w-rv-title { margin: 0; font-size: var(--fs-14); line-height: 20px; font-weight: var(--fw-strong); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: 0; }
.v2w-rv-title:focus { outline: none; }
.v2w-rv-sub { font-size: var(--fs-12); line-height: 16px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2w-rv-actions { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.v2w-kbd { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; margin-left: 6px; border-radius: 4px; border: 1px solid color-mix(in srgb, currentColor 22%, transparent); background: color-mix(in srgb, currentColor 8%, transparent); color: inherit; font-family: var(--mono); font-size: var(--fs-11); font-weight: var(--fw-med); line-height: 1; box-shadow: none; }
.btn-primary .v2w-kbd { color: #fff; border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .16); }
.v2w-kbd-hint { display: inline-flex; align-items: center; gap: 0; color: var(--text-3); font-size: var(--fs-11); }
.v2w-kbd-hint .v2w-kbd { margin: 0 3px 0 0; }
.v2w-kbd-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin: 16px 0 0; padding: 10px 0 0; border-top: 1px solid var(--line); font-size: var(--fs-12); color: var(--text-3); }
.v2w-kbd-bar .v2w-kbd { margin: 0 2px 0 10px; color: var(--text-2); }
.v2w-kbd-bar .v2w-kbd:first-child { margin-left: 0; }
.v2w-kbd-bar .v2w-kbd + .v2w-kbd { margin-left: 2px; }
@media (max-width: 719.98px), (pointer: coarse) { .v2w-kbd, .v2w-kbd-bar, .v2w-kbd-hint { display: none !important; } }

.v2w-rv { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) var(--inspector-w, 420px); }
.v2w-rv-preview { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: var(--surface-2); border-right: 1px solid var(--line); }
.v2w-pv-head { display: flex; align-items: center; gap: 10px; flex: 0 0 40px; height: 40px; padding: 0 8px 0 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.v2w-pv-meta { font-size: var(--fs-12); font-weight: var(--fw-med); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.v2w-pv-head a.btn:hover { text-decoration: none; }
.v2w-zoom { display: inline-flex; align-items: center; gap: 2px; margin-left: auto; padding: 2px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); }
.v2w-zbtn { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border: 0; border-radius: 4px; background: transparent; color: var(--text-2); font: inherit; font-size: var(--fs-12); font-weight: var(--fw-med); cursor: pointer; }
.v2w-zbtn:hover { background: var(--surface); color: var(--text); }
.v2w-zbtn.on { background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--line); }
.v2w-zbtn:focus-visible { outline: none; box-shadow: var(--ring); }
.v2w-zico { width: 24px; padding: 0; justify-content: center; }
.v2w-zsep { width: 1px; height: 16px; margin: 0 2px; background: var(--line); }
.v2w-zval { min-width: 44px; text-align: center; font-size: var(--fs-12); font-weight: var(--fw-strong); color: var(--text); font-variant-numeric: tabular-nums; }
.v2w-pv-frame { flex: 1 1 auto; width: 100%; min-height: 0; border: 0; background: #fff; }
.v2w-pv-img { flex: 1 1 auto; min-height: 0; overflow: auto; display: flex; justify-content: center; align-items: flex-start; padding: 24px; }
.v2w-pv-img img { max-width: 100%; height: auto; background: #fff; border-radius: 2px; box-shadow: 0 0 0 1px var(--line); }
.v2w-pv-paperwrap { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 24px; }
.v2w-pv-paper { max-width: 760px; margin: 0 auto; padding: 28px 32px !important; background: var(--surface); border-radius: 4px; box-shadow: 0 0 0 1px var(--line); overflow: visible !important; }
.v2w-skel-page { border-radius: 4px; }
.v2w-pv-text { flex: 1 1 auto; min-height: 0; overflow: auto; margin: 0; padding: 14px 16px; font-family: var(--mono); font-size: var(--fs-12); line-height: 1.6; white-space: pre-wrap; word-break: break-word; color: var(--text); }
:root[data-theme="dark"] .v2w-pv-img img { filter: brightness(.9); box-shadow: 0 0 0 1px var(--line-strong); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .v2w-pv-img img { filter: brightness(.9); box-shadow: 0 0 0 1px var(--line-strong); } }

.v2w-rv-side { position: relative; min-height: 0; min-width: 0; overflow: auto; padding: 16px 16px 20px; background: var(--surface); }
.v2w-lowbanner { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); font-size: var(--fs-13); line-height: 20px; color: var(--text); }
.v2w-lowbanner svg { flex: 0 0 auto; margin-top: 3px; color: var(--warn); }
.v2w-confs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 16px; overflow: hidden; }
.v2w-conf { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; min-width: 0; cursor: default; }
.v2w-conf + .v2w-conf { border-left: 1px solid var(--line); }
.v2w-conf-l { font-size: var(--fs-12); line-height: 18px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2w-conf-v { font-size: var(--fs-20); font-weight: var(--fw-strong); letter-spacing: var(--track-heading); line-height: 28px; color: var(--text); }
.v2w-conf-track { position: relative; display: block; height: 4px; margin-top: 6px; border-radius: 2px; background: var(--surface-3, var(--line)); }
.v2w-conf-track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; background: var(--meter, var(--text-3)); }
.v2w-conf-track b { position: absolute; left: 80%; top: -3px; bottom: -3px; width: 1.5px; border-radius: 1px; background: var(--text-3); opacity: .6; }
.v2w-conf-ok, .v2w-conf-none { --meter: var(--text-3); }
.v2w-conf-lo { --meter: var(--warn); }
.v2w-conf-bad { --meter: var(--err); }
.v2w-conf-bad .v2w-conf-v { color: var(--err); }
.v2w-fields-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 16px 0 10px; }
.v2w-fsum { display: inline-flex; align-items: center; gap: 8px; }
.v2w-misslink { border: 0; background: none; padding: 0 2px; font: inherit; font-size: var(--fs-12); font-weight: var(--fw-strong); color: var(--warn); cursor: pointer; border-radius: 4px; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.v2w-misslink:focus-visible { outline: none; box-shadow: var(--ring); }
.v2w-bad-t { color: var(--err); font-weight: var(--fw-strong); }
.v2w-field { display: block; margin-bottom: 12px; }
.v2w-field-label { display: flex; align-items: center; gap: 6px; min-height: 18px; font-size: var(--fs-12); font-weight: var(--fw-med); color: var(--text-2); margin-bottom: 4px; }
.v2w-field-label label { cursor: pointer; }
.v2w-req { margin-left: 2px; color: var(--text-3); }
.v2w-field-label .v2w-meter-track { width: 44px; }
.v2w-field-label .v2w-meter-val { min-width: 34px; font-size: var(--fs-12); }
.v2w-field-input { width: 100%; min-width: 0; height: 32px; }
.v2w-field select { width: 100%; }
.v2w-field-low .v2w-field-input, .v2w-field-missing .v2w-field-input { border-color: color-mix(in srgb, var(--warn) 55%, var(--field-border, var(--line-strong))); }
.v2w-field-missing .v2w-field-input::placeholder { color: var(--text-3); }
.v2w-flag { font-size: var(--fs-11); font-weight: var(--fw-med); line-height: 16px; color: var(--warn); }
.v2w-hint { display: flex; align-items: flex-start; gap: 8px; font-size: var(--fs-12); color: var(--text-2); margin-top: 8px; }
.v2w-rv-meta { display: block; line-height: 1.7; margin-top: 14px; font-size: var(--fs-12); color: var(--text-3); }
.v2w-rv-meta .v2w-mono { font-size: var(--fs-11); }
.v2w-confirm-list { margin: 8px 0 0; padding-left: 18px; font-size: var(--fs-13); line-height: 20px; color: var(--text); }
.v2w-copylink { flex: 0 0 auto; }

@media (max-width: 1279px) {
  .v2w-rv { grid-template-columns: minmax(0, 1fr); overflow: auto; }
  .v2w-rv-preview { min-height: 420px; height: 52vh; border-right: 0; border-bottom: 1px solid var(--line); }
  .v2w-rv-side { overflow: visible; }
}
@media (max-width: 1180px) {
  .v2w-rv-head { height: auto; flex: 0 0 auto; min-height: 48px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
  .v2w-rv-actions { margin-left: auto; }
}
@media (max-width: 719px) {
  .v2w-d-toolhead { height: auto; min-height: 48px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; row-gap: 2px; }
  .v2w-d-sub { order: 3; flex: 1 1 100%; white-space: normal; }
  .v2w-d-split { flex-direction: column; }
  .v2w-queue { flex: 1 1 auto; width: 100%; }
  .v2w-review { display: none; border-left: 0 !important; }
  .v2w-d-hassel .v2w-queue { display: none; }
  .v2w-d-hassel .v2w-d-toolhead { display: none; }
  .v2w-d-hassel .v2w-review { display: flex; flex: 1 1 auto; min-height: 0; }
  .v2w-rv-back { display: inline-flex !important; }
  .v2w-rv-actions { width: 100%; flex-wrap: wrap; margin-left: 0; }
  .v2w-rv-actions .btn { flex: 1 1 auto; }
  .v2w-rv-preview { height: 46vh; min-height: 280px; }
  .v2w-confs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .v2w-conf { padding: 8px 10px 10px; }
}

/* bulk import modal */
.v2w-imp-lead { margin: 0 0 14px; font-size: var(--fs-13); line-height: 1.55; color: var(--text-2); }
.v2w-imp-lead b { color: var(--text); }
.v2w-imp-prefix { max-width: 260px; }
.v2w-imp-prefix input { width: 100%; }
.v2w-zone { display: flex; align-items: center; gap: 12px; padding: 18px 16px; border: 1px dashed var(--line-strong); border-radius: var(--r-panel); background: var(--surface-2); color: var(--text-2); cursor: pointer; }
.v2w-zone:hover, .v2w-zone.drag { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.v2w-zone:focus-visible { outline: none; box-shadow: var(--ring); }
.v2w-zone-busy { opacity: 0.6; pointer-events: none; }
.v2w-zone-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.v2w-zone-text b { color: var(--text); font-size: var(--fs-13); font-weight: var(--fw-strong); }
.v2w-zone-text span { font-size: var(--fs-12); }
.v2w-imp-h { margin: 18px 0 8px; }
.v2w-imp-item { padding: 10px 0; border-top: 1px solid var(--line); }
.v2w-imp-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.v2w-imp-noread { display: flex; align-items: flex-start; gap: 6px; margin: 0 0 8px; font-size: 12px; line-height: 18px; color: var(--text-2); }
.v2w-imp-noread svg { flex: 0 0 auto; margin-top: 3px; color: var(--text-3); }
.v2w-imp-name { font-weight: var(--fw-strong); min-width: 0; overflow-wrap: anywhere; }

/* ============================================================
   REPORTS & ALERTS  (page: ptabs Reports | Alerts | Events)
   ============================================================ */
.v2w-rep .dtable-wrap { box-shadow: none; }
.v2w-rep-t tr.clickable:focus-visible td { box-shadow: var(--ring-inset); outline: none; }
.v2w-rep .dtable td { height: 52px; }
.v2w-tile-sm { width: 16px; height: 16px; }
.v2w-rep-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.v2w-rep-txt { display: flex; flex-direction: column; min-width: 0; }
.v2w-rep-txt .v2w-strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 360px; }
.v2w-sched { white-space: nowrap; color: var(--text); }
.v2w-sched.on { background: var(--surface-2); color: var(--text); }
.v2w-lastrun { display: inline-flex; align-items: center; gap: 7px; }
.v2w-ev-toolbar { padding-top: 0; }
.v2w-rd-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; min-width: 0; }
.v2w-rd-sep { color: var(--text-3); }
.v2w-rd-name { margin: 0; font-size: var(--fs-16); line-height: 24px; font-weight: var(--fw-strong); min-width: 0; overflow-wrap: anywhere; letter-spacing: var(--track-heading); }
.v2w-rd-name:focus { outline: none; }
.v2w-rd-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.v2w-rd-side { position: sticky; top: 0; box-shadow: none; }
.v2w-rd-side .kv { font-size: var(--fs-13); grid-template-columns: 84px minmax(0, 1fr); }
.v2w-rd-runs-h { border-top: 1px solid var(--line); }
.v2w-runlist { list-style: none; margin: 0; padding: 4px 6px 6px; max-height: 340px; overflow: auto; }
.v2w-runitem { display: flex; align-items: center; gap: 10px; width: 100%; height: 34px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--text); font: inherit; font-size: var(--fs-13); text-align: left; cursor: pointer; transition: background 120ms ease; }
.v2w-runitem .v2w-small { margin-left: auto; }
.v2w-runitem:hover { background: var(--surface-2); }
.v2w-runitem.sel { background: var(--surface-2); }
.v2w-runitem:focus-visible { outline: none; box-shadow: var(--ring-inset); }
.v2w-sql-pre { margin: 0; padding: 8px 10px; background: var(--surface-2); border-radius: 8px; font-family: var(--mono); font-size: var(--fs-12); white-space: pre-wrap; word-break: break-word; max-height: 200px; overflow: auto; }

/* report output — rendered as a document */
.v2w-rd-out { overflow: hidden; background: var(--surface-2); box-shadow: none; }
.v2w-doc-bar { display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 10px 0 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.v2w-doc-bar-l { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-12); color: var(--text-2); }
.v2w-doc-bar-l svg { color: var(--text-3); }
.v2w-paper { max-width: 940px; margin: 20px auto 28px; padding: 40px 48px 44px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: none; }
.v2w-paper-head { padding-bottom: 20px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.v2w-paper-eyebrow { display: inline-flex; font-size: var(--fs-12); font-weight: var(--fw-med); color: var(--text-3); }
.v2w-paper-title { margin: 8px 0 10px; font-size: var(--fs-22); line-height: 28px; font-weight: var(--fw-strong); letter-spacing: var(--track-display); color: var(--text); }
.v2w-paper-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: var(--fs-12); color: var(--text-3); }
.v2w-paper-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.v2w-paper-model { padding: 0 8px 0 6px; height: 22px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); font-family: var(--mono); font-size: var(--fs-11); }
.v2w-md { font-size: var(--fs-14); line-height: 1.7; color: var(--text); }
.v2w-md h2, .v2w-md h3, .v2w-md h4, .v2w-md h5 { display: flex; align-items: center; gap: 8px; font-size: var(--fs-16); font-weight: var(--fw-strong); letter-spacing: var(--track-heading); margin: 28px 0 10px; color: var(--text); }
.v2w-md h4 { font-size: var(--fs-14); } .v2w-md h5 { font-size: var(--fs-13); }
.v2w-md-n { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; background: var(--surface-2); color: var(--text-2); font-size: var(--fs-12); font-weight: var(--fw-med); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.v2w-md > :first-child { margin-top: 16px; }
.v2w-md p { margin: 8px 0; color: var(--text-2); }
.v2w-md-meta { font-size: var(--fs-12); color: var(--text-3) !important; }
.v2w-md ul, .v2w-md ol { margin: 8px 0; padding-left: 20px; }
.v2w-md li { margin: 4px 0; padding-left: 2px; color: var(--text-2); }
.v2w-md li::marker { color: var(--text-3); }
.v2w-md strong { color: var(--text); font-weight: var(--fw-strong); }
.v2w-md code { font-family: var(--mono); font-size: var(--fs-12); background: var(--surface-2); color: var(--text); padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line); white-space: nowrap; }
.v2w-md-quotes { list-style: none; padding-left: 0 !important; }
.v2w-md-quotes li { position: relative; padding: 8px 12px 8px 14px; margin: 6px 0; border-radius: 8px; background: var(--surface-2); color: var(--text); font-size: var(--fs-13); }
.v2w-md-quotes li::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--line-strong); }
.v2w-md-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0; margin: 12px 0 8px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.v2w-md-stat { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-left: 1px solid var(--line); margin-left: -1px; }
.v2w-md-stat-lead { grid-column: 1 / -1; border-bottom: 1px solid var(--line); background: none; }
.v2w-md-stat-v { font-size: var(--fs-20); line-height: 28px; font-weight: var(--fw-strong); letter-spacing: var(--track-display); font-variant-numeric: tabular-nums; color: var(--text); }
.v2w-md-stat-lead .v2w-md-stat-v { font-size: var(--fs-28); line-height: 34px; color: var(--text); }
.v2w-md-stat-l { font-size: var(--fs-12); color: var(--text-2); line-height: 1.45; }
.v2w-md-stat-l code { border: 0; background: none; padding: 0; font-family: inherit; font-size: inherit; color: inherit; text-transform: capitalize; }
.v2w-md-table { margin: 12px 0; }
.v2w-md-table .dtable td { white-space: nowrap; }
.v2w-md-table .dtable th { white-space: normal; vertical-align: bottom; line-height: 1.3; }
.v2w-md-table code { border: 0; background: var(--surface-2); }
.v2w-paper-data { margin-top: 28px; }
.v2w-paper-data h3 { display: flex; align-items: center; gap: 8px; font-size: var(--fs-16); font-weight: var(--fw-strong); margin: 0 0 10px; }

/* alert rules — condition chips */
.v2w-firing-row td { background: none; }
.v2w-conds { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; max-width: 460px; }
.v2w-cc { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 7px; border-radius: 6px; font-size: var(--fs-12); white-space: nowrap; max-width: 240px; overflow: hidden; text-overflow: ellipsis; cursor: default; }
.v2w-cc-src { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); font-weight: var(--fw-med); }
.v2w-cc-k { color: var(--text-2); padding: 0 2px; }
.v2w-cc-op { background: var(--surface-2); color: var(--text-2); font-family: var(--mono); font-weight: var(--fw-med); min-width: 22px; justify-content: center; }
.v2w-cc-v { background: var(--surface-2); color: var(--text); font-weight: var(--fw-med); font-variant-numeric: tabular-nums; }

/* events — timeline grouped by day */
.v2w-evt { position: relative; padding: 4px 0 8px; }
.v2w-evt-day { position: sticky; top: 0; z-index: 2; padding: 14px 0 8px 66px; font-size: var(--fs-12); font-weight: var(--fw-med); letter-spacing: 0; text-transform: none; color: var(--text-3); background: var(--bg); }
.v2w-evt-row { position: relative; display: grid; grid-template-columns: 44px 22px minmax(0, 1fr) auto; align-items: start; column-gap: 0; padding: 0 0 10px; }
.v2w-evt-time { padding-top: 13px; font-size: var(--fs-12); color: var(--text-3); text-align: right; padding-right: 10px; cursor: default; }
.v2w-evt-node { position: relative; align-self: stretch; }
.v2w-evt-node::before { content: ""; position: absolute; left: 10px; top: 0; bottom: -10px; width: 1.5px; background: var(--line); }
.v2w-evt-row:last-child .v2w-evt-node::before { bottom: 50%; }
.v2w-evt-node i { position: absolute; left: 5px; top: 15px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--tone, var(--text-3)); }
.v2w-evt-err { --tone: var(--err); } .v2w-evt-ok { --tone: var(--ok); } .v2w-evt-warn { --tone: var(--warn); } .v2w-evt-idle { --tone: var(--text-3); }
.v2w-evt-err:not(.v2w-evt-acked) .v2w-evt-node i { background: var(--err); }
.v2w-evt-card { display: flex; flex-direction: column; gap: 4px; min-width: 0; margin-left: 8px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: none; }
.v2w-evt-err:not(.v2w-evt-acked) .v2w-evt-card { border-color: color-mix(in srgb, var(--err) 32%, var(--line)); }
.v2w-evt-acked .v2w-evt-card { background: transparent; box-shadow: none; }
.v2w-evt-acked .v2w-evt-name { color: var(--text-2); }
.v2w-evt-top { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
.v2w-evt-ago { font-size: var(--fs-12); color: var(--text-3); }
.v2w-evt-msg { font-size: var(--fs-12); line-height: 18px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2w-evt-act { padding: 12px 0 0 12px; }
.v2w-acked { display: inline-flex; align-items: center; gap: 4px; height: 28px; font-size: var(--fs-12); color: var(--text-3); }
.v2w-acked svg { color: var(--ok); }

@media (max-width: 1100px) {
  .v2w-rd-grid { grid-template-columns: minmax(0, 1fr); }
  .v2w-rd-side { position: static; }
  .v2w-paper { margin: 12px; padding: 28px 24px 32px; }
}
@media (max-width: 719px) {
  #view-reports .page-head { flex-wrap: wrap; }
  #view-reports .page-actions { margin-left: 0; }
  .v2w-paper { margin: 0; border: 0; border-radius: 0; box-shadow: none; padding: 20px 16px 24px; }
  .v2w-paper-title { font-size: var(--fs-20); line-height: 26px; }
  .v2w-evt-row { grid-template-columns: 22px minmax(0, 1fr); }
  .v2w-evt-time { display: none; }
  .v2w-evt-day { padding-left: 30px; }
  .v2w-evt-act { grid-column: 2; padding: 6px 0 0 8px; }
  .v2w-rep-txt .v2w-strong { max-width: 200px; }
  .v2w-rd-bar .v2w-rd-sep, .v2w-rd-bar > .v2w-tile { display: none; }
  .v2w-rd-name { flex: 1 1 100%; order: -1; }
}

/* ============================================================
   Topbar popovers — alert bell + global search
   ============================================================ */
.v2w-bell { position: relative; }
.v2w-bell-badge { position: absolute; top: 2px; right: 1px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--text-2); color: var(--surface); font-size: var(--fs-11); font-weight: var(--fw-strong); line-height: 16px; text-align: center; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px var(--surface); }
.v2w-bell-badge.v2w-badge-firing { background: var(--err); }
.v2w-bell-firing svg { color: var(--err); }
/* no decorative bell motion (REFINE §C) */
@media (prefers-reduced-motion: reduce) { .v2w-bell-firing svg { animation: none; } .v2w-pop { animation: none; } }

.v2w-pop { position: fixed; z-index: 390; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-pop); overflow: hidden; animation: v2w-pop-in 180ms var(--v2w-ease); transform-origin: top right; }
@keyframes v2w-pop-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.v2w-pop-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 48px; padding: 0 16px; border-bottom: 1px solid var(--line); font-size: var(--fs-14); }
.v2w-pop-head .v2w-pop-h { font-weight: var(--fw-strong); }
.v2w-bp-sum { display: inline-flex; gap: 6px; }
.v2w-bp-chip { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; background: var(--surface-2); color: var(--text-2); font-size: var(--fs-12); font-weight: var(--fw-med); font-variant-numeric: tabular-nums; }
.v2w-bp-chip.err { background: var(--err-soft); color: var(--err); }
/* unacknowledged count stays neutral */
.v2w-pop-body { max-height: min(420px, 60vh); overflow: auto; }
.v2w-pop-body .state { padding: 20px; }
.v2w-pop-body .v2w-empty { padding: 24px 16px; }
.v2w-pop-foot { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-top: 1px solid var(--line); background: var(--surface-2); }
.v2w-pop-list { list-style: none; margin: 0; padding: 6px; }
.v2w-pop-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 12px; width: 100%; padding: 10px; border: 0; border-radius: 10px; background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: background 120ms ease; }
.v2w-pop-item:hover, .v2w-pop-item:focus-visible { background: var(--surface-2); outline: none; }
.v2w-pop-ico { display: inline-grid; place-items: center; width: 16px; height: 16px; color: var(--warn); background: none; }
.v2w-pop-err .v2w-pop-ico { color: var(--err); background: none; }
.v2w-pop-ok .v2w-pop-ico { color: var(--ok); background: none; }
.v2w-pop-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.v2w-pop-title { font-size: var(--fs-13); font-weight: var(--fw-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2w-pop-sub { font-size: var(--fs-12); line-height: 18px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.v2w-pop-ts { font-size: var(--fs-12); color: var(--text-3); white-space: nowrap; padding-top: 1px; }
.v2w-pop-more { padding: 6px 14px 8px; font-size: var(--fs-12); }
.v2w-allclear-sm { padding: 18px 14px; }

/* knowledge hit meta: keep source + time whole, let the object path shrink */
.v2w-hit-meta > span { flex: 0 0 auto; }
.v2w-hit-meta > span.v2w-mono { flex: 0 1 auto; min-width: 0; }

/* ============================================================
   R1 additions — Knowledge presets/lineage, Reports & alerts,
   stacked tables on phones, coarse pointers
   ============================================================ */
.v2w-sr, .sr-only.v2w-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* knowledge: date presets */
.v2w-presets { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 6px 8px; }
.v2w-preset { height: 28px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text-2); font: inherit; font-size: var(--fs-12); font-weight: var(--fw-med); cursor: pointer; }
.v2w-preset:hover { border-color: var(--line-strong); color: var(--text); }
.v2w-preset[aria-pressed="true"] { border-color: var(--text-2); background: var(--surface-2); color: var(--text); }
.v2w-preset:focus-visible { outline: none; box-shadow: var(--ring); }
.v2w-k-custom[hidden] { display: none; }
.v2w-date input { border-color: var(--field-border, var(--line-strong)); }
.v2w-facet-more { margin: 4px 0 0 2px; color: var(--text-2); }
.v2w-hash { letter-spacing: 0; }

/* lineage — plain words first, ids secondary */
.v2w-step-objtxt { color: var(--text); font-weight: var(--fw-med); }
.v2w-step-id { font-size: var(--fs-11) !important; line-height: 16px; color: var(--text-3); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2w-jump { display: inline-flex; align-items: center; gap: 2px; height: 24px; padding: 0 2px; border-radius: 4px; font-size: var(--fs-13); line-height: 20px; color: var(--text-2); text-decoration: none; white-space: nowrap; }
.v2w-jump:hover { color: var(--accent); text-decoration: none; }
.v2w-jump:focus-visible { outline: none; box-shadow: var(--ring); }
.v2w-step-act { padding-top: 14px; }
.v2w-rec-head-actions { display: inline-flex; align-items: center; gap: 4px; }
.v2w-drawer-actions .v2w-copylink { margin-left: 2px; }

/* reports & alerts */
.v2w-cond { display: inline-block; max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); vertical-align: middle; cursor: default; }
/* Check now / Run stay visible (keyboard and touch can find them) */
.v2w-checknow { color: var(--text-2); }
.v2w-rep .v2w-tabpanel:focus { outline: none; }
.v2w-rep .ptabs a.ptab { text-decoration: none; }
.v2w-rd-bar .v2w-copylink { margin-left: -2px; }
.v2w-preview { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 4px 0 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.v2w-preview-out { font-size: var(--fs-13); line-height: 20px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.v2w-preview-out.is-ok { color: var(--text); }
.v2w-preview-out.is-err { color: var(--err); font-weight: var(--fw-med); }
.v2w-preview-out.is-warn { color: var(--warn); }
.v2w-toast-act { display: flex; align-items: center; gap: 8px; }
.v2w-toast-btn { margin-left: auto; font-weight: var(--fw-strong); }

/* bell: badge neutral unless a rule is triggered; menu items */
.v2w-bell-firing svg { color: var(--err); }
.v2w-pop-item:focus { outline: none; }
.v2w-pop-item:focus-visible { box-shadow: var(--ring-inset); }
.v2w-pop-foot .btn:focus-visible { box-shadow: var(--ring); }

/* phones: the shell's shared stacked card (.dtable.stack) — only view tweaks here */
@media (max-width: 719px) {
  .v2w-td-actions .btn { display: none; }
  .v2w-alert-t td.v2w-td-toggle { order: 2; margin-left: 8px; }
  .v2w-alert-t td.v2w-td-cond, .v2w-alert-t td.v2w-td-checked { flex: 1 1 100%; }
  .v2w-alert-t td.v2w-td-checked::before { content: none !important; }
  .v2w-cond { white-space: normal; max-width: none; }
  .v2w-rep-txt .v2w-strong { max-width: none; white-space: normal; }
  .v2w-tile-sm { display: none; }
}
.v2w-mobile-only { display: none; }
@media (max-width: 719px) { .v2w-mobile-only { display: inline; } }
@media (pointer: coarse) {
  .v2w-preset { min-height: 36px; }
  .v2w-qcheck { width: 20px; height: 20px; left: 14px; top: 12px; }
}
@media (max-width: 719px) { .v2w-rv-head .v2w-copylink { display: none; } }

/* ============================================================
   R2 additions
   ============================================================ */
/* Get started: compact progress row + circle glyphs (non-interactive) */
.v2w-gs-row .panel-head { height: 48px; gap: 12px; }
.v2w-gs-rowtxt { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-size: var(--fs-13); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2w-gs-rowtxt .v2w-gs-d { color: var(--text-2); }
.v2w-gs-row .v2w-gs-link { margin-top: 0; display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.v2w-gs-row .v2w-gs-ico { height: 16px; }
.v2w-gs-ok { color: var(--ok); }
.v2w-gs-item.done .v2w-gs-ico { color: var(--text-3); }
@media (max-width: 719px) {
  /* phone: done steps collapse into the "n of N done" line; open steps are single 48px rows */
  .v2w-gs-item.done { display: none !important; }
  .v2w-gs-item { min-height: 48px; padding: 12px 16px; align-items: center; }
  .v2w-gs-item + .v2w-gs-item { border-top: 1px solid var(--line); }
  .v2w-gs-item:not(.done) ~ .v2w-gs-item:not(.done) { border-top: 1px solid var(--line); }
  .v2w-gs-d { display: none; }
  .v2w-gs-txt { flex-direction: row; align-items: center; gap: 12px; flex: 1 1 auto; justify-content: space-between; }
  .v2w-gs-link { margin-top: 0; }
  .v2w-gs-row .v2w-gs-rowtxt .v2w-gs-d { display: none; }
  .v2w-gs-row .panel-head { height: auto; min-height: 48px; flex-wrap: wrap; }
  /* KPI snap strip on phones */
  .v2w-kpis { display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .v2w-kpis .kpi { flex: 0 0 140px; scroll-snap-align: start; border-top: 0 !important; border-left: 1px solid var(--line) !important; }
  .v2w-kpis .kpi:first-child { border-left: 0 !important; }
  .v2w-kpis .kpi-value { font-size: var(--fs-22); line-height: var(--lh-22); }
}

/* recently opened column */
.v2w-mn-empty { justify-content: center; border-style: dashed; color: var(--text-3); }
.v2w-mn-empty .v2w-mn-v { padding-left: 0; white-space: normal; }

/* demo tag (neutral) */
.v2w-demo-tag { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border: 1px solid var(--line-strong); border-radius: 4px; font-size: var(--fs-11); line-height: 16px; font-weight: var(--fw-med, 500); color: var(--text-2); background: var(--surface); white-space: nowrap; cursor: default; }
.v2w-hit-meta .v2w-demo-tag { flex: 0 0 auto; margin-right: 2px; }
.v2w-rec-kicker .v2w-demo-tag, .v2w-drawer-kicker .v2w-demo-tag { margin-left: 4px; }

/* chat → lineage round trip */
.v2w-fromchat { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; padding: 8px 8px 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.v2w-fromchat-t { display: inline-flex; align-items: center; gap: 6px; margin-right: auto; font-size: var(--fs-13); font-weight: var(--fw-med, 500); color: var(--text); }
.v2w-fromchat-t svg { color: var(--text-3); }

/* knowledge: saved searches + export */
.v2w-k-subact { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; }
.v2w-saved { list-style: none; margin: 0; padding: 0; }
.v2w-saved li { display: flex; align-items: center; gap: 2px; }
.v2w-saved .v2w-saved-item { flex: 1 1 auto; min-width: 0; }
.v2w-saved-x { opacity: .7; }
.v2w-saved-x:hover, .v2w-saved-x:focus-visible { opacity: 1; }
.v2w-k-savedwrap { border-top: 1px solid var(--line); margin-top: 8px; }
@media (max-width: 719px) { .v2w-k-subact .btn { padding: 0 8px; } }

/* document review: inspector head row, progressive validation */
.v2w-rv-sidehead { position: sticky; top: -16px; z-index: 2; display: flex; align-items: center; gap: 8px; height: 40px; margin: -16px -16px 16px; padding: 0 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.v2w-rv-sideh { font-size: var(--fs-13); font-weight: var(--fw-strong, 600); color: var(--text); }
.v2w-rv-sidehead .v2w-fsum { margin-left: auto; gap: 6px; }
.v2w-field-err .v2w-field-input { border-color: var(--err) !important; }
.v2w-field-err .v2w-flag { color: var(--err); }
.v2w-misslink.is-err { color: var(--err); text-decoration-color: color-mix(in srgb, var(--err) 45%, transparent); }
.v2w-qitem-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; overflow-wrap: anywhere; }
.v2w-qtabs { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 16px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 16px), transparent); }
.v2w-qtabs .ptab { padding: 0 8px; }
@media (max-width: 719px) {
  .v2w-d-sub { display: none; }
  /* pushed detail: sticky Reject / Approve bar, 44px, safe-area aware */
  .v2w-d-hassel .v2w-rv-actions { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; width: auto; margin: 0; padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1px solid var(--line); }
  .v2w-d-hassel .v2w-rv-actions .btn { flex: 1 1 50%; min-height: 44px; justify-content: center; }
  .v2w-d-hassel .v2w-rv-actions .icon-btn { flex: 0 0 44px; min-height: 44px; }
  .v2w-d-hassel .v2w-rv-side { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .v2w-rv-sidehead { top: 0; margin-top: 0; }
}

/* alert modal: notify + re-alert */
.v2w-fieldset { border: 0; margin: 0 0 12px; padding: 0; }
.v2w-fieldset legend { margin-bottom: 4px; padding: 0; }
.v2w-check.is-disabled { color: var(--text-3); }
.w-200 { max-width: 260px; }
@media (max-width: 719px) {
  .v2w-d-hassel .v2w-rv-actions { flex-wrap: nowrap !important; }
  .v2w-rep .dtable.stack td { height: auto !important; }
  .v2w-alert-t td.v2w-td-toggle::before, .v2w-alert-t td.sc-status::before { content: none !important; }
  .v2w-home .v2w-asof { text-align: left; padding-left: 0; }
  .v2w-gs-row .v2w-gs-rowtxt { white-space: normal; flex: 1 1 calc(100% - 40px); }
}

/* ============================================================
   R3 additions
   ============================================================ */
/* Recently opened — its own list card below the map */
.v2w-recent .panel-head { height: 48px; }
.v2w-recent-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.v2w-recent-item { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 16px; color: var(--text); text-decoration: none; border-top: 1px solid var(--line); }
.v2w-recent-item:hover { background: var(--row-hover, var(--surface-2)); text-decoration: none; }
.v2w-recent-item:focus-visible { outline: none; box-shadow: var(--ring-inset); }
.v2w-recent-ico { display: inline-grid; place-items: center; width: 16px; flex: 0 0 auto; color: var(--text-3); }
.v2w-recent-main { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.v2w-recent-t { font-size: var(--fs-13); line-height: 20px; font-weight: var(--fw-med, 500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2w-recent-m { font-size: var(--fs-12); line-height: 18px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2w-recent-item > svg { color: var(--text-3); flex: 0 0 auto; }

/* "You're set up" — one 48px row */
.v2w-gs-done .panel-head { height: 48px; min-height: 48px; flex-wrap: nowrap !important; }
.v2w-gs-done .v2w-gs-rowtxt { flex: 1 1 auto; white-space: nowrap !important; }
.v2w-gs-done .v2w-gs-x { margin-left: auto; }

/* phone Ask field + wrapping subtitle */
.v2w-askm { display: none; }
@media (max-width: 719px) {
  .v2w-askm { display: flex; align-items: center; gap: 8px; height: 44px; margin: 0 0 16px; padding: 0 12px; border: 1px solid var(--field-border, var(--line-strong)); border-radius: 8px; background: var(--surface); }
  .v2w-askm:focus-within { box-shadow: var(--ring); }
  .v2w-askm-ico { display: inline-grid; color: var(--text-3); }
  .v2w-askm input { flex: 1 1 auto; min-width: 0; height: 40px; border: 0 !important; background: transparent; box-shadow: none !important; font-size: 16px; padding: 0; outline: none; }
  .v2w-home .page-sub { white-space: normal !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .v2w-home .page-actions .btn-primary[href="#chat"] { display: none; }
  .v2w-kpis .kpi { flex-basis: 156px !important; }
  .v2w-kpis .kpi-label { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .v2w-gs-done .v2w-gs-rowtxt b + span { display: none; }
  .v2w-gs-done .v2w-gs-x { min-width: 44px; min-height: 44px; }
}

/* knowledge: all-demo header line, key/value snippets, wider filters */
.v2w-k-demo { flex: 0 0 auto; padding: 6px 16px; border-bottom: 1px solid var(--line); font-size: var(--fs-12); line-height: 18px; color: var(--text-3); background: var(--surface); }
.v2w-k-demo[hidden] { display: none; }
.v2w-k-demo a { color: var(--text-2); }
.v2w-kv-k { color: var(--text-3); }
.v2w-nb { white-space: nowrap; }
.v2w-kv-v { color: var(--text); font-variant-numeric: tabular-nums; }
.v2w-hit-snip .v2w-sep { padding: 0 6px; }
.v2w-hit-meta .v2w-hit-src { color: var(--text-2); font-weight: 400; }
/* R4: filters pane = --pane-w (280) like every split view */

/* document review: queue tabs scroll with fade, counts on every tab, 16px indent; one-line names */
.v2w-qhead { padding: 0 !important; }
.v2w-qtabs { gap: 16px !important; padding: 0 16px !important; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 16px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 16px), transparent); }
.v2w-qtabs::-webkit-scrollbar { display: none; }
.v2w-qtabs .ptab { padding: 0 !important; flex: 0 0 auto; white-space: nowrap; }
.v2w-qitem-name { display: block !important; -webkit-line-clamp: unset; white-space: nowrap !important; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal !important; }

/* alert cards on phones: fixed right column (state | toggle | ⋮), never wraps */
@media (max-width: 719px) {
  .v2w-alert-t tr { display: grid !important; grid-template-columns: minmax(0, 1fr) auto auto 44px; column-gap: 8px; align-items: center; padding: 12px 8px 12px 16px !important; }
  .v2w-alert-t td { order: 0 !important; margin: 0 !important; }
  .v2w-alert-t td.v2w-td-name { grid-column: 1; grid-row: 1; }
  .v2w-alert-t td.sc-status { grid-column: 2; grid-row: 1; white-space: nowrap; }
  .v2w-alert-t td.v2w-td-toggle { grid-column: 3; grid-row: 1; }
  .v2w-alert-t td.sc-menu { position: static !important; grid-column: 4; grid-row: 1; }
  .v2w-alert-t td.v2w-td-cond { grid-column: 1 / -1; grid-row: 2; }
  .v2w-alert-t td.v2w-td-checked { grid-column: 1 / -1; grid-row: 3; }
  .v2w-alert-t td::before { content: none !important; }
}
.v2w-gs-done .v2w-gs-rowtxt { overflow: hidden; }
.v2w-gs-done .v2w-gs-link { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 719px) { .v2w-docs .v2w-rv-back { display: none !important; } /* the shell topbar back chevron owns child-route back */ }

/* R4: phone "You're set up" — two stacked lines, ghost borderless × (44px hit), never overflows */
.v2w-gs-done { max-width: 100%; min-width: 0; }
.v2w-gs-done .v2w-gs-x { border: 0 !important; background: transparent !important; box-shadow: none !important; color: var(--text-3); flex: 0 0 auto; }
.v2w-gs-done .v2w-gs-x:hover { background: var(--surface-2) !important; color: var(--text); }
@media (max-width: 719px) {
  .v2w-gs-done .panel-head { height: auto !important; min-height: 0 !important; align-items: flex-start; gap: 10px; padding: 12px 4px 12px 16px; min-width: 0; }
  .v2w-gs-done .v2w-gs-ico { padding-top: 2px; }
  .v2w-gs-done .v2w-gs-rowtxt { flex: 1 1 auto !important; min-width: 0; flex-direction: column; align-items: flex-start; gap: 2px; white-space: normal !important; }
  .v2w-gs-done .v2w-gs-rowtxt b { line-height: 20px; }
  .v2w-gs-done .v2w-gs-link { max-width: 100%; line-height: 20px; }
  .v2w-gs-done .v2w-gs-x { flex: 0 0 44px; width: 44px; height: 44px; min-width: 44px; min-height: 44px; margin: -12px 0 -12px auto; }
}
/* R4: source facet — vendor never truncates, account part ellipsises */
.v2w-facet-label2 { display: flex; min-width: 0; }
.v2w-facet-vendor { flex: none; white-space: nowrap; }
.v2w-facet-acct { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* R4: all four queue tabs (incl. "All 7") fit the 280px pane at 1024 and 1440 */
.v2w-qtabs { gap: 10px !important; padding: 0 12px !important; -webkit-mask-image: none !important; mask-image: none !important; }
.v2w-qtabs .ptab { gap: 4px !important; }
.v2w-qtabs .v2w-tabn { padding: 0; background: none; border: 0; color: var(--text-3); font-weight: var(--fw-med); }
.v2w-qtabs .ptab.active .v2w-tabn { color: var(--text-2); }
.v2w-qtabs .ptab::after { left: 0 !important; right: 0 !important; }

/* E2E D3/D-4: PDF preview frame + fallback when the server's CSP still blocks framing */
.v2w-pv-framewrap { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.v2w-pv-framewrap .v2w-pv-frame { flex: 1 1 auto; }
.v2w-pv-fallback { flex: 1 1 auto; min-height: 0; overflow: auto; display: flex; align-items: center; justify-content: center; padding: 24px; }
.v2w-pv-fallback[hidden] { display: none; }
.v2w-pv-note { margin: 0; padding: 6px 12px; border-top: 1px solid var(--line); font-size: var(--fs-12); color: var(--text-3); background: var(--surface); }
.v2w-pv-framewrap.is-blocked .v2w-pv-frame, .v2w-pv-framewrap.is-blocked .v2w-pv-note { display: none; }
/* E2E D-8: alert opened from an e-mail link */
.v2w-alert-t tr.v2w-row-focus > td { background: var(--accent-soft, var(--surface-2)); }
/* E2E D-10: on narrow screens the Platform status facts wrap; `.v2w-home .panel-head { height: 48px }` out-ranked the
   wrap rule, so the facts spilled below the card into "Recently opened" */
@media (max-width: 899px) {
  .v2w-home .v2w-ps-panel .v2w-ps-head { height: auto; min-height: 48px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; row-gap: 6px; }
  .v2w-home .v2w-ps-facts { gap: 4px 16px; }
}
/* alert form: one notify option per line (they ran together once email became available) */
.v2w-fieldset > .v2w-check { display: flex; align-items: center; gap: 8px; min-height: 28px; }

/* Final additions — reject dialog (optional reason) + reason on the document */
.v2w-rej-p { margin: 0 0 12px; font-size: var(--fs-13); line-height: 20px; color: var(--text-2); }
.v2w-rej-field { display: block; margin: 0; }
.v2w-rej-ta { display: block; width: 100%; min-height: 76px; resize: vertical; box-sizing: border-box; }
.v2w-rej-hint { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; font-size: var(--fs-12); line-height: 16px; color: var(--text-3); }
.v2w-rej-hint .v2w-num { flex: 0 0 auto; }
.v2w-rej-keys { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-12); color: var(--text-3); }
@media (max-width: 719.98px) { .v2w-rej-keys { display: none; } }
.v2w-rejnote { margin: 12px 0 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); }
.v2w-rejnote-t { margin: 4px 0 0; font-size: var(--fs-13); line-height: 20px; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.v2w-rejnote-m { display: block; margin-top: 4px; font-size: var(--fs-12); color: var(--text-3); }
/* B-F1: alert read view (e-mail deep link) */
.v2w-ad-kv { font-size: var(--fs-13); grid-template-columns: 132px minmax(0, 1fr); }
.v2w-ad-h { margin: 16px 0 8px; }
.v2w-ad-evs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.v2w-ad-evs li { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-13); flex-wrap: wrap; }
.v2w-ad-t { color: var(--text-2); min-width: 136px; }
@media (max-width: 520px) { .v2w-ad-kv { grid-template-columns: 1fr; } .v2w-ad-t { min-width: 0; } }

/* R3 D (owner): number strips on phones stack in two columns — no sideways scroll, nothing clipped */
@media (max-width: 719.98px) {
  .v2w-kpis, .kpi-strip, .kpi-strip.cols-3, .kpi-strip.cols-4, .kpi-strip.cols-6, .metric-strip {
    display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; overflow: visible;
    scroll-snap-type: none; -webkit-mask-image: none; mask-image: none;
  }
  .v2w-kpis > .kpi, .kpi-strip > .kpi, .metric-strip > .metric {
    flex: none !important; min-width: 0; height: auto; min-height: 88px; padding: 12px 14px;
    border-left: 0 !important; border-top: 0 !important;
  }
  .v2w-kpis > .kpi:nth-child(even), .kpi-strip > .kpi:nth-child(even), .metric-strip > .metric:nth-child(even) { border-left: 1px solid var(--line) !important; }
  .v2w-kpis > .kpi:nth-child(n+3), .kpi-strip > .kpi:nth-child(n+3), .metric-strip > .metric:nth-child(n+3) { border-top: 1px solid var(--line) !important; }
  .v2w-kpis > .kpi:last-child:nth-child(odd), .kpi-strip > .kpi:last-child:nth-child(odd), .metric-strip > .metric:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
