@font-face {
  font-family: "Veritura Inter";
  src: url("/assets/fonts/inter-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

/*
 * Veritura V9 application migration layer.
 *
 * This file is intentionally inert without body.v9-app. Existing API ownership, DOM identifiers,
 * form controls, data attributes, event handlers, and authorization checks remain in app.js.
 * Each interior is migrated only after its parity row and regression tests are complete.
 */

body.v9-app {
  --v9-ink: #111827;
  --v9-copy: #445169;
  --v9-muted: #718096;
  --v9-line: #dce3ed;
  --v9-line-soft: #edf1f6;
  --v9-blue: #1764ef;
  --v9-blue-soft: #edf4ff;
  --v9-green: #07815f;
  --v9-amber: #b86b00;
  --v9-red: #cf3f37;
  --v9-canvas: #f7f9fc;
  --v9-panel: #ffffff;
  --v9-nav: #090f18;
  --v9-radius: 8px;
  --v9-shadow: 0 1px 2px rgba(15, 23, 42, .045), 0 8px 24px rgba(15, 23, 42, .035);
  background: var(--v9-canvas);
  color: var(--v9-ink);
  font-family: "Veritura Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
}

body.dashboard-v5.dashboard-v2.v2-ready.v9-app .appshell {
  grid-template-columns: 212px minmax(0, 1fr) !important;
  min-height: 100dvh;
  background: var(--v9-canvas);
}

body.dashboard-v5.dashboard-v2.v2-ready.v9-app .aside {
  width: 212px !important;
  max-width: 212px !important;
  padding: 14px 10px 10px !important;
  background: var(--v9-nav) !important;
  border-right: 1px solid #182231 !important;
  color: #d8e0eb !important;
  box-shadow: none !important;
}

body.v9-app .aside :where(.navlabel, .acctinfo i, .asidestat) { color: #7f8b9d; }
body.v9-app .aside a { color: #aeb8c7; border-radius: 7px; }
body.v9-app .aside a:hover { color: #fff; background: rgba(255,255,255,.06); }
body.v9-app .aside a.on { color: #fff; background: #1a5ee8; }
body.v9-app .aside a.on::before { display: none; }
body.v9-app .aside > :where(.navlabel, a[data-view], #navMore, .navsub, .asidestat, .upcard, .grow) { display: none !important; }
body.v9-app .v2-global-rail,
body.v9-app .aside > :where(.v2-access-card, .v2-context-block, .v2-all-workflows, .v5-unified-primary, .v5-unified-footer) { display: none !important; }
body.v9-app .aside > .v5-unified-brand { min-height: 39px; padding: 0 8px 9px; color: #fff !important; }
body.v9-app .aside > .v5-unified-brand :where(span, strong) { color: #fff !important; }
body.v9-app .aside > .wsswitch { margin: 0 3px 4px !important; padding: 8px 8px 10px !important; color: #fff !important; background: transparent !important; border-color: transparent !important; }
body.v9-app .aside > .wsswitch:hover { background: rgba(255,255,255,.05) !important; }
body.v9-app .aside > .wsswitch :where(.wsname, strong, b) { color: #fff !important; }
body.v9-app .aside > .wsswitch :where(.wssub, small, i) { color: #8492a7 !important; }
body.dashboard-v5.dashboard-v2.v2-ready.v9-app .aside > .wsswitch .wsmeta b { color: #fff !important; }
body.dashboard-v5.dashboard-v2.v2-ready.v9-app .aside > .wsswitch .wsmeta i { color: #8492a7 !important; }
body.v9-app .aside > a[data-v9-only] { display: none !important; }
body.v9-app .v9-primary-nav { flex: 1 1 auto; min-height: 0; padding: 10px 11px 8px; display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; justify-content: flex-start; gap: 3px; overflow-x: hidden; overflow-y: auto; }
body.v9-app .v9-primary-nav button { width: 100%; border: 0; color: #aeb8c7; font: inherit; text-align: left; cursor: pointer; }
body.v9-app .v9-nav-link { min-height: 37px; padding: 0 11px; display: flex; align-items: center; gap: 11px; border-radius: 7px !important; background: transparent; font-size: 12px !important; font-weight: 600; }
body.v9-app .v9-nav-link:hover { background: rgba(255,255,255,.055); color: #fff; }
body.v9-app .v9-nav-link.on { background: #1a5ee8; color: #fff; }
body.v9-app .v9-nav-link .vic,
body.v9-app .v9-nav-group-title .vic { width: 18px; height: 18px; flex: none; }
body.v9-app .v9-nav-messages > b { min-width: 19px; height: 19px; margin-left: auto; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: #26354b; color: #dbe8ff; font-size: 9px; font-weight: 720; }
body.v9-app .v9-nav-messages.on > b { background: rgba(255,255,255,.19); color: #fff; }
body.v9-app .v9-nav-work { margin: 1px 0 3px; padding: 5px 7px 6px; border: 1px solid transparent; border-radius: 8px; }
body.v9-app .v9-nav-work.on { border-color: #263246; background: rgba(255,255,255,.035); }
body.v9-app .v9-nav-group-title { min-height: 28px; padding: 0 4px; display: flex; align-items: center; gap: 11px; color: #d9e0ea; font-size: 12px; font-weight: 680; }
body.v9-app .v9-nav-children { margin: 3px 0 0 12px; padding-left: 15px; display: grid; gap: 1px; border-left: 1px solid #344156; }
body.v9-app .v9-nav-children button { min-height: 36px; padding: 5px 9px; display: grid; align-content: center; gap: 1px; border-radius: 6px !important; background: transparent; }
body.v9-app .v9-nav-children button:hover { background: rgba(255,255,255,.05); color: #fff; }
body.v9-app .v9-nav-children button.on { background: #17243a; color: #fff; }
body.v9-app .v9-nav-children button span { font-size: 11px; font-weight: 650; }
body.v9-app .v9-nav-children button small { display: none; }
body.v9-app .v9-nav-children button.on small { color: #9fb0c7; }
body.v9-app .v9-nav-spacer { flex: 1 1 16px; min-height: 8px; }
body.v9-app .v9-nav-all { margin-top: 6px; border-top: 1px solid #202b3b !important; border-radius: 0 !important; }
body.v9-app .aside > .acctrow { margin: 0 11px 12px; border-top-color: #202b3b; }

body.v9-app .amain { min-width: 0; background: var(--v9-canvas); }
body.v9-app .amain::before { display: none; }
body.v9-app .atop {
  min-height: 64px;
  padding: 0 28px;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--v9-line);
  box-shadow: none;
  backdrop-filter: blur(12px);
}
body.v9-app .atop > .atop-lead { display: none !important; }
body.v9-app .v10-workspace-host { position: relative; flex: 0 1 210px; min-width: 168px; max-width: 230px; align-self: stretch; display: flex; align-items: center; }
body.v9-app .v10-workspace-host > .wsswitch {
  min-width: 0; min-height: 50px; margin: 0; padding: 6px 8px; gap: 9px;
  border: 1px solid transparent; border-radius: 8px; background: transparent; box-shadow: none;
}
body.v9-app .v10-workspace-host > .wsswitch:hover,
body.v9-app .v10-workspace-host > .wsswitch[aria-expanded="true"] { border-color: var(--v9-line); background: #f8fafc; }
body.v9-app .v10-workspace-host .wsmark { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 8px; overflow: hidden; background: url("/assets/veritura-mark.svg") center / contain no-repeat; }
body.v9-app .v10-workspace-host .wsmark img { width: 100%; height: 100%; object-fit: cover; }
body.v9-app .v10-workspace-host .wsmeta b { color: #152035 !important; font-size: 11px; font-weight: 700; }
body.v9-app .v10-workspace-host .wsmeta i { color: #7d899a !important; font-size: 9px; }
body.v9-app .v10-workspace-host .wschev { width: 14px; height: 14px; color: #7d899a; }
body.v9-app .v10-workspace-host > .wspanel { top: 58px; left: 0; right: auto; width: min(320px, calc(100vw - 36px)); }
body.v9-app .atop .ttl { color: var(--v9-ink); font-size: 12px; font-weight: 680; letter-spacing: -.012em; }
body.v9-app .topsearch { min-height: 36px; border-radius: 7px; box-shadow: none; }
body.v9-app .acctbtn .acctbtn-meta { display: grid; gap: 2px; min-width: 0; text-align: left; }
body.v9-app .acctbtn .acctbtn-meta b { max-width: 150px; overflow: hidden; color: #273650; font-size: 10.5px; font-style: normal; font-weight: 680; text-overflow: ellipsis; white-space: nowrap; }
body.v9-app .acctbtn .acctbtn-meta i { color: #7b889b; font-size: 9px; font-style: normal; }
body.v9-app .acctbtn { min-height: 42px; padding: 4px 7px 4px 5px; gap: 8px; border: 1px solid transparent; border-radius: 8px; }
body.v9-app .acctbtn:hover,
body.v9-app .acctbtn[aria-expanded="true"] { border-color: var(--v9-line); background: #f8fafc; }
body.v9-app .acctbtn .acct { width: 30px; height: 30px; border-radius: 50%; background: #edf3ff; color: #155bd3; font-size: 10px; font-weight: 760; }
/* Keep identity and alerts reachable when legacy header rules collapse. Anchor desktop
   menus inward; on narrow screens use a viewport-bounded sheet, not bell-centered overflow. */
body.dashboard-v5.v9-app .atop .right { overflow: visible; }
body.dashboard-v5.v9-app .atop .right .topmenu { display: flex !important; }
body.dashboard-v5.v9-app .topmenu-alerts #alertsPanel { left: auto !important; right: 0 !important; transform: none !important; }
@media (max-width: 1180px) {
  body.dashboard-v5.v9-app .acctbtn .acctbtn-meta { display: none; }
}
@media (max-width: 880px) {
  body.dashboard-v5.v9-app .atop .right { display: flex !important; flex: 0 0 auto; gap: 2px; }
  body.dashboard-v5.v9-app .atop .right > :not(.topmenu) { display: none !important; }
  body.dashboard-v5.v9-app .atop .right :is(.topicon,.acctbtn) { min-width: 44px; min-height: 44px; padding: 5px; }
  body.dashboard-v5.v9-app .acctbtn-chev { display: none; }
  body.dashboard-v5.v9-app .atop .topmenu :is(#alertsPanel,#acctPanel) { position: fixed !important; top: 64px !important; left: 12px !important; right: 12px !important; width: auto !important; max-height: calc(100dvh - 88px); overflow-y: auto; transform: none !important; }
  body.dashboard-v5.v9-app .toppanel-item { min-height: 44px; font-size: 13px; }
}
body.v9-app [data-acct].v9-account-photo { border: 1px solid #d8e1ed; background-color: #eef3fa; background-repeat: no-repeat; color: transparent; }
body.v9-app .acontent { width: 100%; max-width: none; padding: 24px 28px 48px; }

@media (max-width: 880px) {
  /* Keep the section switcher in its own usable layer below the sticky command bar. Without this
     contract the document could scroll the switcher underneath .atop, leaving a visible control
     whose real hit target belonged to the header above it. */
  body.v9-app .mnavbar {
    position: sticky;
    top: 64px;
    z-index: 6;
  }
}

body.v9-app :where(.panel-card, .tile, .kpi, .checktool, .railcard, .dsec, .sg-rail-card) {
  border-color: var(--v9-line);
  border-radius: var(--v9-radius);
  box-shadow: var(--v9-shadow);
}

body.v9-app :where(.pagehead h2, .welcome h2) {
  color: var(--v9-ink);
  font-family: "Veritura Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -.035em;
}

body.v9-app :where(.pagehead p, .ph-sub, .welcome p) { color: var(--v9-muted); line-height: 1.55; }
body.v9-app :where(.tv, .kv, .ln, .bv) { font-variant-numeric: tabular-nums; letter-spacing: -.025em; }
body.v9-app :where(.btn, button, input, select, textarea) { border-radius: 7px; }
body.v9-app .btn-primary { background: var(--v9-blue); border-color: var(--v9-blue); box-shadow: none; }
/* V9-only navigation controls and V9-only route sections have different display contracts.
   Treating both as flex made the Intelligence route visible on every page, which pushed the
   canonical page owner below the first viewport and made routes such as Lot Ledger look blank. */
body.v9-app :where(a, button)[data-v9-only] { display: flex !important; }
body.v9-app nav.v9-primary-nav[data-v9-only] { display: flex !important; }
body:not(.v9-app) section.view[data-v9-only],
body.v9-app section.view[data-v9-only]:not(.on) { display: none !important; }
body.v9-app section.view[data-v9-only].on { display: block !important; }
body.dashboard-v5.dashboard-v2.v2-ready.v9-app #mnavPanel .mnav-list a[data-v9-only] { display: flex !important; }

/* Full interior design contract. V9 is not a shell theme: every canonical V5 owner is restyled as
   one dense operating workspace. IDs and controls stay in place so storage, RBAC, deep links, and
   mutations continue to be owned by the production application. */
body.v9-app section.view.on { min-width: 0; }
body.v9-app section.view.on > .pagehead.v3-surface-header,
body.v9-app section.view.on > .pagehead:not(.v3-surface-header) {
  min-height: 74px !important;
  margin: 0 0 18px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 24px !important;
  border: 0 !important;
  background: transparent !important;
}
body.v9-app section.view.on > .pagehead > div:first-child { min-width: 0; }
body.v9-app section.view.on > .pagehead :is(h1, h2) {
  margin: 0 !important;
  color: var(--v9-ink) !important;
  font-family: "Veritura Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: clamp(24px, 2vw, 29px) !important;
  font-weight: 720 !important;
  line-height: 1.15 !important;
  letter-spacing: -.042em !important;
}
body.v9-app section.view.on > .pagehead .ph-sub {
  max-width: 760px !important;
  margin-top: 6px !important;
  color: var(--v9-muted) !important;
  font-size: 12.5px !important;
  line-height: 1.55 !important;
}
body.v9-app section.view.on > .pagehead .phchips,
body.v9-app section.view.on > .pagehead .whyline,
body.v9-app section.view.on > .pagehead .v3-eyebrow { display: none !important; }
body.v9-app section.view.on > .pagehead .v5-view-actions,
body.v9-app section.view.on > .pagehead .v5-surface-actions { display: flex !important; align-items: center; gap: 8px; flex: none; }
body.v9-app section.view.on > .pagehead .v5-view-actions > *,
body.v9-app section.view.on > .pagehead .v5-surface-actions > * { min-height: 38px !important; padding: 0 13px !important; font-size: 11px !important; }
body.v9-app section.view.on > .pagehead .v5-surface-actions > .v5-monitor-scan-status { min-height: 0 !important; padding: 0 !important; max-width: 190px; color: #64748b; font-size: 10px !important; line-height: 1.35; }

body.v9-app .v3-workflow-frame,
body.v9-app .v3-workflow-main,
body.v9-app .v3-workspace-tabs,
body.v9-app .v3-tab-panels,
body.v9-app .v3-tab-panel { min-width: 0; }
body.v9-app .v3-workflow-frame { width: 100%; }
body.v9-app .v3-workflow-main > .v3-workspace-tabs { margin: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
body.v9-app .v5-purpose-tabs {
  min-height: 48px !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: stretch !important;
  justify-content: space-between !important;
  gap: 8px !important;
  border-bottom: 1px solid var(--v9-line) !important;
  background: transparent !important;
}
body.v9-app .v5-purpose-primary,
body.v9-app .v5-purpose-secondary { display: flex !important; align-items: stretch !important; gap: 22px !important; }
body.v9-app .v5-purpose-tabs button {
  position: relative;
  min-height: 48px !important;
  padding: 0 2px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #66758b !important;
}
body.v9-app .v5-purpose-tabs button:hover { color: var(--v9-ink) !important; }
body.v9-app .v5-purpose-tabs button.active,
body.v9-app .v5-purpose-tabs button.on { color: var(--v9-blue) !important; }
body.v9-app .v5-purpose-tabs button.active::after,
body.v9-app .v5-purpose-tabs button.on::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--v9-blue);
}
body.v9-app .v5-purpose-tabs button strong { font-size: 12px !important; font-weight: 680 !important; }
body.v9-app .v5-purpose-tabs button small { display: none !important; }

body.v9-app :where(.v5-workflow-canvas, .v5-lot-grid, .v5-monitoring-grid, .v5-passport-grid, .v5-cato-grid) {
  gap: 16px !important;
}
body.v9-app [data-v5-full-interior] .v5-workflow-canvas {
  grid-template-columns: minmax(0, 1fr) 320px !important;
}
body.v9-app [data-v5-full-interior] .v5-workflow-canvas-rail,
body.v9-app :where(.v5-lot-inspector, .v5-monitoring-inspector, .v5-passport-rail, .v5-cato-rail) {
  top: 80px !important;
}
body.v9-app [data-v5-full-interior] .v5-primary-work-card,
body.v9-app :where(.v5-lot-ledger, .v5-lot-inspector, .v5-monitoring-feed, .v5-monitoring-inspector, .v5-supplier-universe, .v5-supplier-detail, .v5-passport-main, .v5-passport-rail, .v5-cato-main, .v5-cato-rail, .sg-access-summary, .setcard) {
  border: 1px solid var(--v9-line) !important;
  border-radius: var(--v9-radius) !important;
  background: #fff !important;
  box-shadow: var(--v9-shadow) !important;
}
body.v9-app [data-v5-full-interior] .v5-primary-work-card > header,
body.v9-app :where(.v5-lot-ledger, .v5-lot-inspector, .v5-monitoring-feed, .v5-monitoring-inspector, .v5-supplier-universe, .v5-supplier-detail) > header {
  min-height: 58px !important;
  padding: 13px 15px !important;
  border-bottom: 1px solid var(--v9-line) !important;
  background: #fff !important;
}
body.v9-app [data-v5-full-interior] .v5-primary-work-card > header h2,
body.v9-app :where(.v5-lot-ledger, .v5-lot-inspector, .v5-monitoring-feed, .v5-monitoring-inspector, .v5-supplier-universe, .v5-supplier-detail) > header h3 {
  color: var(--v9-ink) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: -.015em !important;
}
body.v9-app [data-v5-full-interior] .v5-primary-work-card > header p,
body.v9-app :where(.v5-lot-ledger, .v5-lot-inspector, .v5-monitoring-feed, .v5-monitoring-inspector, .v5-supplier-universe, .v5-supplier-detail) > header p {
  margin-top: 3px !important;
  color: var(--v9-muted) !important;
  font-size: 10px !important;
  line-height: 1.45 !important;
}
body.v9-app [data-v5-full-interior] .v5-primary-work-body { padding: 14px !important; }

/* A completed document check is a workspace, not another card inside the intake form. The result
   owns the available canvas, collapses the now-finished intake controls, and keeps the canonical
   #checkresult owner and all of its handlers intact. */
body.v9-app[data-v9-route="checker"]:has(#checkresult .vres) #hubbar,
body.v9-app[data-v9-route="checker"]:has(#checkresult .vres) section[data-view="checker"] > .pagehead,
body.v9-app[data-v9-route="checker"]:has(#checkresult .vres) section[data-view="checker"] .v5-purpose-tabs,
body.v9-app[data-v9-route="checker"]:has(#checkresult .vres) .v5-primary-work-card > header,
body.v9-app[data-v9-route="checker"]:has(#checkresult .vres) .v5-workflow-canvas-rail { display: none !important; }
body.v9-app[data-v9-route="checker"]:has(#checkresult .vres) .v5-workflow-canvas { grid-template-columns: minmax(0, 1fr) !important; }
body.v9-app[data-v9-route="checker"]:has(#checkresult .vres) .v5-primary-work-card {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.v9-app[data-v9-route="checker"]:has(#checkresult .vres) .v5-primary-work-body { padding: 0 !important; }
body.v9-app[data-v9-route="checker"]:has(#checkresult .vres) .ccpanel.on > :not(#checkresult):not(#apprun) { display: none !important; }
body.v9-app[data-v9-route="checker"]:has(#checkresult .vres) #apprun { float: right; margin: 0 0 12px; }
body.v9-app[data-v9-route="checker"]:has(#checkresult .vres) #checkresult { width: 100%; clear: both; margin-top: 0 !important; }

body.v9-app :where(.rgtbl-wrap, .rgtable, .v5-supplier-directory, .v5-lot-ledger) { min-width: 0; }
body.v9-app :where(.rgtbl, .rgtable, table) { border-collapse: collapse; }
body.v9-app :where(.rgtbl, .rgtable) th {
  height: 38px !important;
  padding: 0 11px !important;
  border-bottom: 1px solid var(--v9-line) !important;
  background: #fafbfd !important;
  color: #6c7b91 !important;
  font-size: 8.5px !important;
  font-weight: 750 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
}
body.v9-app :where(.rgtbl, .rgtable) td {
  min-height: 54px !important;
  padding: 11px !important;
  border-bottom: 1px solid var(--v9-line-soft) !important;
  color: #3b4a61 !important;
  font-size: 10.5px !important;
  line-height: 1.4 !important;
  vertical-align: middle !important;
}
body.v9-app :where(.rgtbl, .rgtable) tbody tr:last-child td { border-bottom: 0 !important; }
body.v9-app :where(.rgtbl, .rgtable) tbody tr:hover td { background: #f8faff !important; }
body.v9-app :where(.rgtbl, .rgtable) tbody tr.v5-selected td { background: #f2f6ff !important; }
body.v9-app :where(.rgtbl, .rgtable) a { color: #155dd7 !important; font-weight: 680 !important; }
body.v9-app :where(.sc, .pp, .pill, .badge, [data-tone]) { min-height: 21px; border-radius: 999px !important; font-size: 9px !important; font-weight: 680 !important; line-height: 1.2 !important; }

body.v9-app :where(input, select, textarea) {
  border-color: #d6dfeb !important;
  background: #fff !important;
  color: var(--v9-ink) !important;
  box-shadow: none !important;
  font-family: inherit !important;
  font-size: 11.5px !important;
}
body.v9-app :where(input, select) { min-height: 38px !important; }
body.v9-app :where(input, select, textarea):focus {
  border-color: #77a4f7 !important;
  outline: 3px solid rgba(23,100,239,.12) !important;
  outline-offset: 0 !important;
}
body.v9-app :where(.btn, button) { font-family: inherit; }
body.v9-app .btn { min-height: 38px; padding: 0 13px; font-size: 11px; font-weight: 680; }
body.v9-app .btn-ghost { border-color: #d5deea; background: #fff; color: #30405a; }
body.v9-app .btn-ghost:hover { border-color: #b9c9df; background: #f8faff; }

body.v9-app .v5-lot-grid { grid-template-columns: minmax(0, 1fr) 320px !important; }
body.v9-app .v5-lot-filterbar { min-height: 50px !important; padding: 8px 10px !important; gap: 7px !important; border: 1px solid var(--v9-line) !important; border-bottom: 0 !important; border-radius: var(--v9-radius) var(--v9-radius) 0 0 !important; background: #fff !important; }
body.v9-app .v5-lot-ledger { border-radius: 0 0 var(--v9-radius) var(--v9-radius) !important; }
body.v9-app .v5-lot-ledger > .ph { min-height: 48px !important; padding: 0 13px !important; }
body.v9-app .v5-lot-inspector { overflow: hidden; }
body.v9-app .v5-lot-inspector > * { border-radius: 0 !important; box-shadow: none !important; }
body.v9-app .v5-lot-spine,
body.v9-app .v5-lot-obligation,
body.v9-app .v5-lot-inspector-actions { padding: 14px !important; border-bottom: 1px solid var(--v9-line-soft) !important; }

body.v9-app .v5-monitoring-grid { grid-template-columns: minmax(0, 1fr) 320px !important; }
body.v9-app .v5-monitoring-feed,
body.v9-app .v5-monitoring-inspector { overflow: hidden; }
body.v9-app .v5-monitoring-row,
body.v9-app .v5-monitor-subject,
body.v9-app .v5-monitor-event { min-height: 58px !important; padding: 11px 13px !important; border-bottom-color: var(--v9-line-soft) !important; }

body.v9-app .v5-suppliers-workspace { grid-template-columns: minmax(440px, 1.16fr) minmax(330px, .84fr) !important; gap: 16px !important; }
body.v9-app .v5-supplier-universe,
body.v9-app .v5-supplier-detail { overflow: hidden; }
body.v9-app .v5-supplier-detail { position: sticky; top: 80px; }
body.v9-app .v5-supplier-detail-metrics { gap: 0 !important; border-block: 1px solid var(--v9-line-soft) !important; }
body.v9-app .v5-supplier-detail-metrics > * { padding: 13px !important; border-right: 1px solid var(--v9-line-soft) !important; }
body.v9-app .v5-supplier-detail-metrics > *:last-child { border-right: 0 !important; }

body.v9-app .sg-settings-page { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 286px; gap: 14px 16px; align-items: start; }
body.v9-app .sg-access-summary { overflow: hidden; display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 0 !important; padding: 0 !important; }
body.v9-app .sg-access-summary { grid-column: 1 / -1; grid-row: 2; margin: 0 !important; }
body.v9-app .sg-access-summary > span { min-height: 66px; padding: 12px 14px !important; border-right: 1px solid var(--v9-line-soft); }
body.v9-app .sg-access-summary > span:nth-child(4n) { border-right: 0; }
body.v9-app .sg-settings-layout { display: contents !important; }
body.v9-app .sg-settings-nav { grid-column: 1 / -1; grid-row: 1; position: sticky; top: 64px; z-index: 3; display: flex; flex-wrap: nowrap !important; align-items: center; justify-content: flex-start !important; overflow-x: auto; padding: 0 6px; border: 0 !important; border-bottom: 1px solid var(--v9-line) !important; border-radius: 0 !important; background: rgba(246, 248, 252, .96) !important; box-shadow: none !important; scrollbar-width: thin; }
body.v9-app .sg-settings-nav > span { display: none; }
body.v9-app .sg-settings-nav button { min-height: 48px !important; flex: none; margin: 0 1px !important; padding: 0 12px !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; font-size: 10.5px !important; white-space: nowrap; box-shadow: inset 0 -2px transparent; }
body.v9-app .sg-settings-nav button.on { background: transparent !important; color: var(--v9-blue) !important; box-shadow: inset 0 -2px var(--v9-blue); }
body.v9-app .sg-settings-main { grid-column: 1 !important; grid-row: 3; min-width: 0; }
body.v9-app .sg-settings-rail { grid-column: 2 !important; grid-row: 3; width: auto !important; min-width: 0 !important; position: sticky; top: 126px; display: grid !important; grid-template-columns: 1fr !important; align-self: start; }
body.v9-app .setcard { overflow: hidden; margin-bottom: 14px !important; }
body.v9-app .sg-section-heading { padding: 17px 18px !important; border-bottom: 1px solid var(--v9-line) !important; }
body.v9-app .sg-section-heading h2 { margin-top: 4px !important; font-size: 17px !important; letter-spacing: -.025em !important; }
body.v9-app .setrow { min-height: 56px !important; padding: 10px 18px !important; border-bottom-color: var(--v9-line-soft) !important; font-size: 11px !important; }
body.v9-app .v9-profile-photo-row > span { display: grid; gap: 3px; }
body.v9-app .v9-profile-photo-row > span small { color: var(--v9-muted); font-size: 9.5px; font-weight: 450; }
body.v9-app .v9-profile-photo-control { display: flex; align-items: center; justify-content: flex-end; gap: 11px; }
body.v9-app .v9-profile-photo-control > div { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
body.v9-app .v9-profile-photo-control > div > small { width: 100%; color: var(--v9-muted); font-size: 9px; text-align: right; }
body.v9-app .v9-profile-name { min-width: 190px; display: grid; gap: 4px; }
body.v9-app .v9-profile-name > span { color: var(--v9-muted); font-size: 9px; font-weight: 650; text-align: left; }
body.v9-app .v9-profile-name input { width: 100%; min-height: 34px; padding: 0 10px; border: 1px solid var(--v9-line); border-radius: 7px; background: #fff; color: var(--v9-ink); font: inherit; font-size: 11px; }
body.v9-app .v9-profile-name input:focus { outline: 2px solid rgba(30,96,230,.18); border-color: var(--v9-blue); }
body.v9-app .v9-network-notify { display: flex; align-items: center; gap: 8px; margin: 9px 0 10px; color: var(--v9-muted); font-size: 10px; line-height: 1.35; cursor: pointer; }
body.v9-app .v9-network-notify input { width: 15px; height: 15px; margin: 0; accent-color: var(--v9-blue); }
body.v9-app .v9-network-notify span { max-width: 300px; }
body.v9-app .v9-profile-preview { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border: 1px solid #d9e2ed; border-radius: 50%; background: #edf3ff center / cover no-repeat; color: #155bd3; font-size: 11px; font-weight: 750; }

body.v9-app .checktool { overflow: hidden; }
body.v9-app .cc-head { min-height: 66px !important; padding: 14px 16px !important; border-bottom: 1px solid var(--v9-line) !important; }
body.v9-app .cc-intake,
body.v9-app .ccpanel { padding: 16px !important; }
body.v9-app .dz { min-height: 172px !important; border: 1px dashed #b8c8dd !important; border-radius: var(--v9-radius) !important; background: #fbfcff !important; }
body.v9-app .cc-modes { margin: 0 16px !important; border: 1px solid var(--v9-line) !important; border-radius: 7px !important; overflow: hidden; }
body.v9-app .ccm { min-height: 42px !important; border-radius: 0 !important; font-size: 10.5px !important; }

@media (max-width: 1180px) {
  body.v9-app [data-v5-full-interior] .v5-workflow-canvas,
  body.v9-app .v5-lot-grid,
  body.v9-app .v5-monitoring-grid,
  body.v9-app .v5-suppliers-workspace { grid-template-columns: 1fr !important; }
  body.v9-app [data-v5-full-interior] .v5-workflow-canvas-rail,
  body.v9-app .v5-lot-inspector,
  body.v9-app .v5-monitoring-inspector,
  body.v9-app .v5-supplier-detail { position: static !important; }
  body.v9-app .sg-settings-page { grid-template-columns: 1fr; }
  body.v9-app .sg-settings-nav { grid-column: 1; grid-row: 1; position: static; }
  body.v9-app .sg-access-summary { grid-column: 1; grid-row: 2; }
  body.v9-app .sg-settings-main { grid-column: 1 !important; grid-row: 3; }
  body.v9-app .sg-settings-rail { grid-column: 1 !important; grid-row: 4; position: static; }
}

/* The dashboard is the first vertical slice. Every moved panel keeps its real production id and renderer. */
body.v9-app[data-v9-route="dashboard"] section[data-view="dashboard"].v9-composed > .pagehead,
body.v9-app[data-v9-route="dashboard"] section[data-view="dashboard"].v9-composed > :not(#v9Today) { display: none !important; }
body.v9-app[data-v9-route="dashboard"] section[data-view="dashboard"].v9-composed {
  display: block !important;
  grid-template-columns: minmax(0, 1fr) !important;
  padding: 24px 28px 48px !important;
}

body.v9-app .v9-today { display: block; min-width: 0; }
body.v9-app .v9-today-head { display: flex; justify-content: space-between; gap: 28px; align-items: flex-start; margin: 0 0 18px; }
body.v9-app .v9-today-head h1 { margin: 3px 0 5px; color: var(--v9-ink); font-size: clamp(27px, 2.3vw, 34px); line-height: 1.08; letter-spacing: -.045em; font-weight: 720; }
body.v9-app .v9-today-head p { margin: 0; max-width: 650px; color: var(--v9-muted); font-size: 13px; line-height: 1.55; }
body.v9-app .v9-eyebrow { color: #53627a; font-size: 10px; font-weight: 720; letter-spacing: .105em; text-transform: uppercase; }
body.v9-app .v9-head-actions { display: flex; gap: 8px; flex: none; }
body.v9-app .v9-head-actions .btn { min-height: 38px; padding-inline: 15px; font-size: 12px; }

body.v9-app .v9-health { min-height: 58px; margin-bottom: 18px; display: grid; grid-template-columns: repeat(4, minmax(130px, 1fr)) auto; align-items: stretch; border: 1px solid var(--v9-line); border-radius: var(--v9-radius); background: #fff; overflow: hidden; box-shadow: var(--v9-shadow); }
body.v9-app .v9-health > span { padding: 11px 14px; display: flex; align-items: center; gap: 8px; border-right: 1px solid var(--v9-line-soft); }
body.v9-app .v9-health b { font-size: 11px; color: #40506a; font-weight: 650; }
body.v9-app .v9-health i { display: inline-flex; align-items: center; gap: 5px; color: var(--v9-muted); font-size: 10px; font-style: normal; }
body.v9-app .v9-health i::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #9aa7b8; }
body.v9-app .v9-health i.is-live { color: #17765b; }
body.v9-app .v9-health i.is-live::before { background: #0d9b71; }
body.v9-app .v9-health i.is-gated { color: #8a5a00; }
body.v9-app .v9-health i.is-gated::before { background: #d18a16; }
body.v9-app .v9-health i.is-unavailable { color: #9b433d; }
body.v9-app .v9-health i.is-unavailable::before { background: #d24b43; }
body.v9-app .v9-health small { padding: 0 14px; display: flex; align-items: center; justify-content: flex-end; color: #7c899b; font-size: 10px; white-space: nowrap; }

body.v9-app .v9-today-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
body.v9-app .v9-today-main, body.v9-app .v9-today-rail { min-width: 0; }
body.v9-app .v9-today-rail { display: grid; gap: 12px; position: sticky; top: 82px; }
body.v9-app .v9-today-rail > div { display: grid; gap: 12px; min-width: 0; }

body.v9-app .v9-start { margin-bottom: 14px; padding: 21px 22px; border: 1px solid #ccd9ec; border-radius: var(--v9-radius); background: linear-gradient(145deg, #f8fbff, #fff); box-shadow: var(--v9-shadow); }
body.v9-app .v9-start[hidden] { display: none; }
body.v9-app .v9-start h2 { margin: 6px 0 7px; max-width: 650px; color: var(--v9-ink); font-size: 19px; line-height: 1.25; letter-spacing: -.025em; }
body.v9-app .v9-start p { margin: 0 0 15px; max-width: 680px; color: var(--v9-copy); font-size: 12px; line-height: 1.6; }
body.v9-app .v9-start > div { display: flex; gap: 8px; }

body.v9-app .v9-action-host > #workQueue,
body.v9-app .v9-vera-host > :where(#agentBriefing, #veraDay),
body.v9-app .v9-operations-host > :where(#postureBand, #dashTabs),
body.v9-app .v9-today-rail :where(#quickActions, #dashScreen, #dashRecs, #dashTeamCard) { margin: 0 0 12px !important; }
body.v9-app .v9-operations-host #dashTabs { min-height: 0; }
body.v9-app .v9-operations-host .dashtabs-head { padding: 0; }
body.v9-app .v9-operations-host .segctl { width: 100%; }

body.v9-app .v9-detail { margin-top: 18px; border: 1px solid var(--v9-line); border-radius: var(--v9-radius); background: #fff; box-shadow: var(--v9-shadow); }
body.v9-app .v9-detail > summary { min-height: 46px; padding: 0 15px; display: flex; align-items: center; gap: 10px; cursor: pointer; color: #26364e; font-size: 12px; font-weight: 680; list-style: none; }
body.v9-app .v9-detail > summary::-webkit-details-marker { display: none; }
body.v9-app .v9-detail > summary::after { content: "+"; margin-left: auto; color: #66758b; font-size: 18px; font-weight: 400; }
body.v9-app .v9-detail[open] > summary::after { content: "−"; }
body.v9-app .v9-detail > summary span { color: #7c899b; font-size: 10px; font-weight: 450; }
body.v9-app .v9-detail > div { padding: 0 14px 14px; display: grid; gap: 12px; }

/* The classic desktop shell hid hub tabs because its sidebar exposed every member. V9 deliberately
   condenses the sidebar, so the production hub bar becomes the explicit second level again. */
@media (min-width: 761px) {
  body.v9-app #hubbar { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0; margin: 0 0 18px; overflow: hidden; border: 1px solid var(--v9-line); border-radius: var(--v9-radius); background: #fff; box-shadow: var(--v9-shadow); }
  body.v9-app #hubbar:empty { display: none !important; }
  body.v9-app .hubtab { min-height: 64px; padding: 11px 14px; gap: 3px; border: 0; border-right: 1px solid var(--v9-line); border-radius: 0; box-shadow: none; transform: none; }
  body.v9-app .hubtab:last-child { border-right: 0; }
  body.v9-app .hubtab:hover:not(.on) { border-color: var(--v9-line); background: #f8faff; box-shadow: none; transform: none; }
  body.v9-app .hubtab.on { background: #eef4ff; border-color: var(--v9-line); box-shadow: inset 0 2px 0 var(--v9-blue); }
  body.v9-app .hubtab.on b { color: #1558c8; }
  body.v9-app .hubtab span { overflow: visible; color: #718096; line-height: 1.35; text-overflow: clip; white-space: normal; }
  body.v9-app .hubtab.on span { color: #66758b; }
}

body.v9-app[data-v9-route="dashboard"] .kpis { gap: 0; border: 1px solid var(--v9-line); border-radius: var(--v9-radius); overflow: hidden; background: #fff; }
body.v9-app[data-v9-route="dashboard"] .kpi { min-height: 104px; border: 0; border-right: 1px solid var(--v9-line); border-radius: 0; box-shadow: none; transform: none; }
body.v9-app[data-v9-route="dashboard"] .kpi:last-child { border-right: 0; }
body.v9-app[data-v9-route="dashboard"] .kpi::after { display: none; }
body.v9-app[data-v9-route="dashboard"] .kpi .kv { font-size: 24px; font-weight: 680; }
body.v9-app[data-v9-route="dashboard"] :where(.tickerbar, .heroband) { border-radius: var(--v9-radius); box-shadow: none; }

body.v9-app[data-v9-route="intelligence"] .pagehead { margin-bottom: 8px; }
body.v9-app .v9-intel-tabs { min-height: 42px; margin: 0 !important; display: flex; align-items: flex-end; justify-content: flex-start !important; gap: 28px; border-bottom: 1px solid var(--v9-line); }
body.v9-app .v9-intel-tabs > button:first-child { margin-left: 0 !important; }
body.v9-app .v9-intel-tabs button { height: 42px; padding: 0 2px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: #607087; font: inherit; font-size: 11.5px; font-weight: 620; cursor: pointer; }
body.v9-app .v9-intel-tabs button:hover { color: var(--v9-ink); }
body.v9-app .v9-intel-tabs button.on { border-bottom-color: var(--v9-blue); color: var(--v9-blue); }
body.v9-app .v9-intel-statusbar { min-height: 48px; margin: 10px 0 14px; padding: 0 14px; display: grid; grid-template-columns: .75fr 1.25fr 1fr 1fr auto; align-items: center; border: 1px solid var(--v9-line); border-radius: var(--v9-radius-sm); background: #fff; box-shadow: var(--v9-shadow); color: #657389; font-size: 10.5px; }
body.v9-app .v9-intel-statusbar > span { min-height: 24px; padding: 0 14px; display: flex; align-items: center; justify-content: center; gap: 7px; border-right: 1px solid var(--v9-line-soft); text-align: center; }
body.v9-app .v9-intel-statusbar > span:first-child { padding-left: 0; justify-content: flex-start; }
body.v9-app .v9-intel-statusbar small { color: #7e899a; font-size: 9.5px; }
body.v9-app .v9-intel-statusbar b { padding: 4px 8px; border-radius: 999px; background: #eaf2ff; color: #2362c8; font-size: 9.5px; font-weight: 680; }
body.v9-app .v9-intel-statusbar button { min-height: 30px; margin-left: 12px; padding: 0 10px; border: 1px solid var(--v9-line); border-radius: 7px; background: #fff; color: #41516a; font: inherit; font-size: 10px; font-weight: 620; cursor: pointer; }
body.v9-app .v9-intelligence-root { display: grid; grid-template-columns: minmax(0, 1fr) 314px; gap: 14px; align-items: start; }
body.v9-app .v9-intelligence-root > * { min-width: 0; }
body.v9-app .v9-intel-vera { display: grid; gap: 14px; }
body.v9-app .v9-intel-context { display: grid; gap: 12px; position: sticky; top: 82px; }
body.v9-app .v9-intel-context .panel-card { margin: 0; padding: 18px; }
body.v9-app .v9-intel-context h3 { margin: 7px 0 8px; color: var(--v9-ink); font-size: 16px; line-height: 1.3; letter-spacing: -.02em; }
body.v9-app .v9-intel-context p { margin: 0; color: var(--v9-copy); font-size: 12px; line-height: 1.6; }
body.v9-app .v9-intel-link { width: 100%; padding: 13px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 0; border-bottom: 1px solid var(--v9-line-soft); border-radius: 0; background: transparent; color: var(--v9-ink); text-align: left; cursor: pointer; }
body.v9-app .v9-intel-link:last-child { border-bottom: 0; padding-bottom: 0; }
body.v9-app .v9-intel-link span:first-child { display: grid; gap: 3px; }
body.v9-app .v9-intel-link b { font-size: 12px; font-weight: 680; }
body.v9-app .v9-intel-link small { color: var(--v9-muted); font-size: 10.5px; line-height: 1.4; }
body.v9-app .v9-intel-link > span:last-child { color: var(--v9-blue); }
body.v9-app .v9-intel-cato > div { margin: 7px 0 8px; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
body.v9-app .v9-intel-cato > div h3 { margin: 0; }
body.v9-app .v9-intel-cato > div em { flex: none; padding: 4px 7px; border-radius: 999px; background: #f0f3f7; color: #687488; font-size: 9px; font-style: normal; font-weight: 650; }
body.v9-app .v9-intel-cato .btn { width: 100%; min-height: 36px; margin-top: 13px; }
body.v9-app .v9-intel-queue { margin: 12px 0 15px; padding: 12px 0 2px; border-top: 1px solid var(--v9-line-soft); border-bottom: 1px solid var(--v9-line-soft); }
body.v9-app .v9-intel-queue > header { padding: 0 3px 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
body.v9-app .v9-intel-queue > header > span { display: grid; gap: 2px; }
body.v9-app .v9-intel-queue > header small { color: #7d8a9f; font-size: 8.5px; font-weight: 720; letter-spacing: .07em; text-transform: uppercase; }
body.v9-app .v9-intel-queue > header b { color: var(--v9-ink); font-size: 11.5px; font-weight: 700; }
body.v9-app .v9-intel-queue > header em { min-width: 22px; padding: 3px 6px; border-radius: 999px; background: #e9f1ff; color: #2163cb; font-size: 9px; font-style: normal; font-weight: 700; text-align: center; }
body.v9-app .v9-intel-queue > button { width: 100%; min-height: 70px; padding: 10px 3px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 8px; border: 0; border-top: 1px solid var(--v9-line-soft); border-radius: 0; background: transparent; color: var(--v9-copy); font: inherit; text-align: left; cursor: pointer; }
body.v9-app .v9-intel-queue > button:hover { background: #f5f8fd; }
body.v9-app .v9-intel-queue > button > span:first-child { min-width: 0; display: grid; gap: 4px; }
body.v9-app .v9-intel-queue > button > span:first-child b { overflow: hidden; color: #233149; font-size: 10.5px; font-weight: 680; text-overflow: ellipsis; white-space: nowrap; }
body.v9-app .v9-intel-queue > button > span:first-child small { display: -webkit-box; overflow: hidden; color: #738096; font-size: 9.5px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
body.v9-app .v9-intel-queue > button > span:last-child { display: grid; justify-items: end; gap: 5px; }
body.v9-app .v9-intel-queue > button > span:last-child small { color: #8b96a6; font-size: 8.5px; white-space: nowrap; }
body.v9-app .v9-intel-queue .v9-record-status { max-width: 82px; }
body.v9-app .v9-intel-queue-empty { padding: 11px 3px 14px; display: grid; gap: 4px; border-top: 1px solid var(--v9-line-soft); }
body.v9-app .v9-intel-queue-empty b { color: #334158; font-size: 10.5px; }
body.v9-app .v9-intel-queue-empty span { color: #7b8799; font-size: 9.5px; line-height: 1.45; }
body.v9-app #v9IntelVeraHost .vdside { transition: box-shadow .18s ease, background-color .18s ease; }
body.v9-app #v9IntelVeraHost .vdside.v9-intel-history-focus { background: #f2f7ff !important; box-shadow: inset 0 0 0 2px #79a9fa; }

/* Records is the second vertical slice. The unified registry reads account-scoped production APIs;
   the original check archive, retention matrix, receipts, and binder remain mounted in detail. */
body.v9-app[data-v9-route="reports"] section[data-view="reports"].v9-records-composed > :not(#v9Records) { display: none !important; }
body.v9-app .v9-records { min-width: 0; }
body.v9-app .v9-records-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin: 0 0 16px; }
body.v9-app .v9-records-head h1 { margin: 4px 0 4px; color: var(--v9-ink); font-size: 29px; line-height: 1.1; font-weight: 720; letter-spacing: -.04em; }
body.v9-app .v9-records-head p { margin: 0; max-width: 690px; color: var(--v9-muted); font-size: 12.5px; line-height: 1.55; }
body.v9-app #v9RecordExportHost { min-height: 36px; display: flex; align-items: center; }
body.v9-app #v9RecordExportHost #repExport { min-height: 36px; padding: 0 13px !important; background: #fff; }
body.v9-app .v9-record-tabs { min-height: 42px; display: flex; align-items: flex-end; gap: 26px; border-bottom: 1px solid var(--v9-line); }
body.v9-app .v9-record-tabs button { height: 42px; padding: 0 2px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: #607087; font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; }
body.v9-app .v9-record-tabs button:hover { color: var(--v9-ink); }
body.v9-app .v9-record-tabs button.on { border-bottom-color: var(--v9-blue); color: var(--v9-blue); }
body.v9-app .v9-record-toolbar { min-height: 54px; padding: 9px 10px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--v9-line); border-top: 0; background: #fff; }
body.v9-app .v9-record-toolbar label { flex: 1; min-width: 0; }
body.v9-app #v9RecordSearch { width: 100%; min-height: 34px; padding: 0 12px; border: 1px solid var(--v9-line); background: #fbfcfe; color: var(--v9-ink); font-size: 11.5px; box-shadow: none; }
body.v9-app .v9-record-toolbar > span { flex: none; color: var(--v9-muted); font-size: 10.5px; }
body.v9-app .v9-record-tools { display: flex; align-items: center; gap: 6px; }
body.v9-app .v9-record-tools button { min-height: 32px; padding: 0 10px; border: 1px solid var(--v9-line); border-radius: 7px; background: #fff; color: #41516a; font: inherit; font-size: 10px; font-weight: 620; cursor: pointer; }
body.v9-app .v9-record-tools button:hover { border-color: #b9c9e4; background: #f7faff; color: var(--v9-blue); }
body.v9-app .v9-record-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 308px; align-items: start; border: 1px solid var(--v9-line); border-top: 0; border-radius: 0 0 var(--v9-radius) var(--v9-radius); background: #fff; overflow: hidden; box-shadow: var(--v9-shadow); }
body.v9-app .v9-record-table { border: 1px solid var(--v9-line); border-top: 0; border-radius: 0 0 var(--v9-radius) var(--v9-radius); background: #fff; overflow: hidden; box-shadow: var(--v9-shadow); }
body.v9-app .v9-record-workspace .v9-record-table { border: 0; border-radius: 0; box-shadow: none; }
body.v9-app .v9-record-columns,
body.v9-app .v9-record-row { display: grid; grid-template-columns: minmax(250px, 2fr) minmax(90px, .65fr) minmax(110px, .85fr) minmax(112px, .9fr) 74px 74px; align-items: center; }
body.v9-app .v9-record-columns { min-height: 38px; padding: 0 14px; border-bottom: 1px solid var(--v9-line); background: #fafbfd; color: #728097; font-size: 9px; font-weight: 720; letter-spacing: .075em; text-transform: uppercase; }
body.v9-app .v9-record-group + .v9-record-group { border-top: 1px solid var(--v9-line); }
body.v9-app .v9-record-grouphead { min-height: 34px; padding: 0 14px; display: flex; align-items: center; gap: 7px; border-bottom: 1px solid var(--v9-line-soft); background: #f8fafc; color: #344157; }
body.v9-app .v9-record-grouphead b { font-size: 10.5px; font-weight: 700; }
body.v9-app .v9-record-grouphead span { min-width: 20px; padding: 2px 6px; border-radius: 999px; background: #e9edf3; color: #7b8798; font-size: 9px; text-align: center; }
body.v9-app .v9-record-row { width: 100%; min-height: 54px; padding: 6px 14px; border: 0; border-bottom: 1px solid var(--v9-line-soft); border-radius: 0; background: #fff; color: #435168; text-align: left; font: inherit; font-size: 10.5px; cursor: pointer; }
body.v9-app .v9-record-row:last-child { border-bottom: 0; }
body.v9-app .v9-record-row:hover { background: #f7faff; }
body.v9-app .v9-record-row.selected { background: #edf4ff; box-shadow: inset 3px 0 0 var(--v9-blue); }
body.v9-app .v9-record-row:focus-visible { position: relative; z-index: 1; outline: 2px solid var(--v9-blue); outline-offset: -2px; }
body.v9-app .v9-record-row > span { min-width: 0; padding-right: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.v9-app .v9-record-name { display: grid; gap: 3px; }
body.v9-app .v9-record-name b { overflow: hidden; color: #135dd6; font-size: 11.5px; font-weight: 680; text-overflow: ellipsis; white-space: nowrap; }
body.v9-app .v9-record-name small { overflow: hidden; color: #8490a1; font-size: 9.5px; font-weight: 450; text-overflow: ellipsis; white-space: nowrap; }
body.v9-app .v9-type-dot { width: 6px; height: 6px; margin-right: 6px; display: inline-block; border-radius: 50%; background: #2f78e8; vertical-align: 1px; }
body.v9-app .v9-record-status { display: inline-flex; max-width: 100%; padding: 4px 8px; border-radius: 999px; overflow: hidden; background: #f0f3f7; color: #5e6a7c; font-size: 9.5px; font-style: normal; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
body.v9-app .v9-record-status.ok { background: #e7f6f0; color: #087354; }
body.v9-app .v9-record-status.warn { background: #fff2dc; color: #9a5c00; }
body.v9-app .v9-record-inspector { min-height: 100%; padding: 18px; border-left: 1px solid var(--v9-line); background: #fbfcfe; color: var(--v9-copy); }
body.v9-app .v9-record-inspector header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 15px; border-bottom: 1px solid var(--v9-line-soft); }
body.v9-app .v9-record-inspector header > span { min-width: 0; }
body.v9-app .v9-record-inspector header small,
body.v9-app .v9-record-inspector section > small { color: #718096; font-size: 9px; font-weight: 720; letter-spacing: .07em; text-transform: uppercase; }
body.v9-app .v9-record-inspector h2 { margin: 4px 0 3px; overflow-wrap: anywhere; color: var(--v9-ink); font-size: 15px; line-height: 1.25; letter-spacing: -.02em; }
body.v9-app .v9-record-inspector p { margin: 0; color: var(--v9-muted); font-size: 10.5px; line-height: 1.5; }
body.v9-app .v9-record-inspector-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--v9-line-soft); }
body.v9-app .v9-record-inspector-metrics span { min-width: 0; padding: 14px 9px 14px 0; display: grid; gap: 4px; }
body.v9-app .v9-record-inspector-metrics small { color: #8490a1; font-size: 8.5px; }
body.v9-app .v9-record-inspector-metrics b { overflow: hidden; color: var(--v9-ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
body.v9-app .v9-record-inspector section { padding: 15px 0; border-bottom: 1px solid var(--v9-line-soft); }
body.v9-app .v9-record-inspector section > p { margin-top: 7px; }
body.v9-app .v9-record-inspector dl { margin: 8px 0 0; display: grid; gap: 7px; }
body.v9-app .v9-record-inspector dl div { display: flex; justify-content: space-between; gap: 12px; }
body.v9-app .v9-record-inspector dt { color: #7d899b; font-size: 9.5px; }
body.v9-app .v9-record-inspector dd { margin: 0; max-width: 58%; overflow-wrap: anywhere; color: #344157; font-size: 9.5px; font-weight: 650; text-align: right; }
body.v9-app .v9-record-inspector-actions { padding-top: 15px; display: grid; gap: 8px; }
body.v9-app .v9-record-inspector-actions .btn { width: 100%; justify-content: center; }
body.v9-app .v9-record-inspector-empty { min-height: 260px; display: grid; align-content: center; gap: 7px; }
body.v9-app .v9-record-inspector-empty b { color: var(--v9-ink); font-size: 13px; }
body.v9-app .v9-records-compact .v9-record-row { min-height: 42px; padding-top: 4px; padding-bottom: 4px; }
body.v9-app .v9-records-compact .v9-record-name small { display: none; }
body.v9-app .v9-records-hide-counts .v9-record-columns > :nth-child(n+5),
body.v9-app .v9-records-hide-counts .v9-record-row > :nth-child(n+5) { visibility: hidden; }
body.v9-app .v9-record-empty { min-height: 120px; display: grid; place-content: center; gap: 4px; color: var(--v9-muted); text-align: center; }
body.v9-app .v9-record-empty b { color: #344157; font-size: 12px; }
body.v9-app .v9-record-empty span { font-size: 10.5px; }
body.v9-app .v9-record-detail { margin-top: 16px; }
body.v9-app .v9-record-detail #v9RecordsLegacyHost { padding: 0 14px 14px; }
body.v9-app .v9-record-detail #v9RecordsLegacyHost > .pagehead { display: none; }
body.v9-app .v9-record-detail #v9RecordsLegacyHost > .panel-card,
body.v9-app .v9-record-detail #v9RecordsLegacyHost > .chartcard { margin: 0 0 12px !important; box-shadow: none; }

/* Monitoring keeps every production renderer and control, but reads as an operating desk: active
   signals and coverage in the main line, controls and source posture in a bounded inspector. */
body.v9-app .v9-monitoring-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
body.v9-app .v9-monitoring-grid > * { min-width: 0; display: grid; gap: 14px; }
body.v9-app #v9MonitoringMain > *,
body.v9-app #v9MonitoringRail > * { margin: 0 !important; }
body.v9-app #v9MonitoringRail { position: sticky; top: 82px; }
body.v9-app #networkWatch:not(:empty) + #monSummaryTiles { display: none; }
body.v9-app #v9MonitoringMain .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.v9-app #v9MonitoringMain .tile { min-height: 82px; padding: 14px; }
body.v9-app #v9MonitoringMain .tile .tv { font-size: 22px !important; }
body.v9-app #v9MonitoringRail .panel-card { padding: 0; overflow: hidden; }
body.v9-app #v9MonitoringRail .panel-card > .ph { min-height: 46px; padding: 0 14px; border-bottom: 1px solid var(--v9-line-soft); }
body.v9-app #v9MonitoringRail :where(#supplierRollupRows, #alertRows, #monScanLog) { max-height: 320px; overflow: auto; }

/* Workspace identity and the acting person are two separate visual owners. */
body.v9-app .wsswitch .wsmark.v9-workspace-photo {
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 8px;
  background-color: #17243a;
  background-repeat: no-repeat;
  box-shadow: 0 0 0 2px rgba(255,255,255,.04);
}
body.v9-app .v9-profile-photo-row { align-items: center; }
body.v9-app #v10IdentityCard { scroll-margin-top: 92px; }
body.v9-app .v9-profile-photo-row > span { display: grid; gap: 3px; }
body.v9-app .v9-profile-photo-row > span small { max-width: 440px; color: var(--v9-muted); font-size: 10.5px; font-weight: 450; line-height: 1.45; }
body.v9-app .v9-profile-photo-control { display: flex; align-items: center; justify-content: flex-end; gap: 11px; }
body.v9-app .v9-profile-photo-control > div { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
body.v9-app .v10-identity-card { margin-bottom: 14px; }
body.v9-app .v10-identity-card .v9-profile-photo-row { padding-inline: 18px !important; }
body.v9-app .v10-identity-card .v9-profile-photo-row:last-child { border-bottom: 0 !important; }
body.v9-app .v9-profile-photo-control > div > small { width: 100%; color: var(--v9-muted); font-size: 9.5px; text-align: right; }
body.v9-app .v9-profile-photo-control [hidden] { display: none !important; }
body.v9-app .v9-profile-preview { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border: 1px solid #d8e1ed; border-radius: 9px; background: #eef3fa center / cover no-repeat; color: #1c5fd1; font-size: 11px; font-weight: 760; }
body.v9-app #v9ProfilePhotoRow .v9-profile-preview { border-radius: 50%; }

/* Approved packet-to-record intake. Canonical production controls are moved into this composition,
   so drag/drop, file validation, plan limits, RBAC, progress, persistence, and results keep one owner. */
body.v9-app[data-v9-route="checker"] section[data-view="checker"].v9-intake-composed > .pagehead { display: none !important; }
body.v9-app[data-v9-route="checker"] section[data-view="checker"].v9-intake-composed .v5-workflow-canvas { display: block !important; }
body.v9-app[data-v9-route="checker"] section[data-view="checker"].v9-intake-composed .v5-workflow-canvas-rail,
body.v9-app[data-v9-route="checker"] section[data-view="checker"].v9-intake-composed .v5-primary-work-head,
body.v9-app[data-v9-route="checker"] section[data-view="checker"].v9-intake-composed .v5-primary-work-card > header { display: none !important; }
body.v9-app[data-v9-route="checker"] section[data-view="checker"].v9-intake-composed .v5-primary-work-card { border: 0; background: transparent; box-shadow: none; overflow: visible; }
body.v9-app[data-v9-route="checker"] section[data-view="checker"].v9-intake-composed .v5-primary-work-body { padding: 0; }
body.v9-app[data-v9-route="checker"] section[data-view="checker"].v9-intake-composed .dashmain { width: 100%; display: block !important; }
body.v9-app .v9-intake { display: grid; gap: 14px; min-width: 0; }
body.v9-app .v9-intake-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
body.v9-app .v9-intake-head h1 { margin: 4px 0 5px; color: var(--v9-ink); font-size: 29px; font-weight: 720; letter-spacing: -.04em; line-height: 1.08; }
body.v9-app .v9-intake-head p { max-width: 720px; margin: 0; color: var(--v9-muted); font-size: 12.5px; line-height: 1.55; }
body.v9-app .v9-intake-boundary { padding: 6px 9px; border: 1px solid #e2c886; border-radius: 999px; background: #fff9e9; color: #876112; font-size: 9.5px; font-weight: 700; white-space: nowrap; }
body.v9-app .v9-intake-stepper { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--v9-line); border-radius: var(--v9-radius); overflow: hidden; background: #fff; box-shadow: var(--v9-shadow); }
body.v9-app .v9-intake-stepper button { min-height: 62px; padding: 10px 15px; display: grid; grid-template-columns: 27px 1fr; grid-template-rows: auto auto; column-gap: 9px; align-content: center; border: 0; border-right: 1px solid var(--v9-line-soft); border-radius: 0; background: #fff; color: #68768b; text-align: left; cursor: pointer; }
body.v9-app .v9-intake-stepper button:last-child { border-right: 0; }
body.v9-app .v9-intake-stepper button > span { grid-row: 1 / 3; width: 27px; height: 27px; display: grid; place-items: center; align-self: center; border: 1px solid #cdd7e5; border-radius: 50%; font-size: 10px; font-weight: 720; }
body.v9-app .v9-intake-stepper b { color: #344158; font-size: 11.5px; font-weight: 690; }
body.v9-app .v9-intake-stepper small { margin-top: 2px; color: #8995a6; font-size: 9.5px; }
body.v9-app .v9-intake-stepper button.on { background: #f3f7ff; box-shadow: inset 0 -2px #1764ef; }
body.v9-app .v9-intake-stepper button.on > span { border-color: #1764ef; background: #1764ef; color: #fff; }
body.v9-app .v9-intake-stepper button.on b { color: #145bd7; }
body.v9-app .v9-intake-stepper button.is-complete > span { border-color: #9bd7c3; background: #e7f7f1; color: #087354; }
body.v9-app .v9-intake-shell { display: grid; grid-template-columns: minmax(0, 1fr) 286px; align-items: start; gap: 14px; }
body.v9-app .v9-intake-main,
body.v9-app .v9-intake-rail > section { border: 1px solid var(--v9-line); border-radius: var(--v9-radius); background: #fff; box-shadow: var(--v9-shadow); }
body.v9-app .v9-intake-main { min-width: 0; overflow: hidden; }
body.v9-app .v9-intake-panel { min-height: 420px; padding: 25px 27px 20px; display: none; }
body.v9-app .v9-intake-panel.on { display: block; }
body.v9-app .v9-intake-panel h2 { margin: 5px 0 6px; color: var(--v9-ink); font-size: 20px; font-weight: 710; letter-spacing: -.025em; }
body.v9-app .v9-intake-panel > p { max-width: 700px; margin: 0 0 20px; color: var(--v9-muted); font-size: 11.5px; line-height: 1.55; }
body.v9-app .v9-intake-choice { min-height: 76px; padding: 14px; display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px; border: 1px solid #a8c7fb; border-radius: 9px; background: #f7faff; }
body.v9-app .v9-choice-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; background: #e8f0ff; color: #155dd7; }
body.v9-app .v9-choice-icon .vic { width: 18px; height: 18px; }
body.v9-app .v9-intake-choice > span:nth-child(2) { display: grid; gap: 3px; }
body.v9-app .v9-intake-choice b { color: var(--v9-ink); font-size: 12px; }
body.v9-app .v9-intake-choice small { color: var(--v9-muted); font-size: 10.5px; line-height: 1.45; }
body.v9-app .v9-intake-choice > i { padding: 4px 7px; border-radius: 999px; background: #e4f5ee; color: #087354; font-size: 9px; font-style: normal; font-weight: 700; }
body.v9-app .v9-boundary-list { margin-top: 14px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--v9-line-soft); border-radius: 9px; overflow: hidden; }
body.v9-app .v9-boundary-list > span { min-height: 88px; padding: 13px; display: grid; align-content: start; gap: 5px; border-right: 1px solid var(--v9-line-soft); }
body.v9-app .v9-boundary-list > span:last-child { border-right: 0; }
body.v9-app .v9-boundary-list b { color: #344158; font-size: 10.5px; line-height: 1.35; }
body.v9-app .v9-boundary-list small { color: var(--v9-muted); font-size: 9.5px; line-height: 1.45; }
body.v9-app .v9-intake-form { margin-bottom: 13px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
body.v9-app .v9-intake-form label { display: grid; gap: 6px; color: #526077; font-size: 10px; font-weight: 650; }
body.v9-app .v9-intake-form label em { color: #8793a4; font-style: normal; font-weight: 450; }
body.v9-app .v9-intake-form :where(input, select) { width: 100%; min-height: 40px !important; padding: 0 11px; }
body.v9-app #v9IntakeSourceOwner #coaDz { min-height: 148px; margin: 0; border: 1px dashed #a8bddb; border-radius: 9px; background: #f9fbfe; }
body.v9-app #v9IntakeSourceOwner #coaDz:hover,
body.v9-app #v9IntakeSourceOwner #coaDz.dragover { border-color: #4f8cf3; background: #f2f7ff; }
body.v9-app #v9IntakeFileOwner #coaFileCard { margin-top: 10px; }
body.v9-app #v9IntakeFileOwner #v9CanonicalSampleRow { margin-top: 9px !important; }
body.v9-app #v9IntakeSupplierOwner .vfield { margin: 12px 0 0 !important; }
body.v9-app #v9IntakeSupplierOwner .vfield > span { color: #526077; font-size: 10px; }
body.v9-app #v9IntakeSupplierOwner input { width: 100%; min-height: 40px !important; }
body.v9-app .v9-intake-actions { min-height: 58px; margin-top: 18px; padding-top: 15px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--v9-line-soft); }
body.v9-app .v9-intake-actions .btn { min-height: 36px; padding: 0 14px !important; }
body.v9-app .v9-intake-actions #v9IntakeRunOwner { margin-left: auto; }
body.v9-app #v9IntakeRunOwner #apprun { width: auto !important; min-width: 164px; margin: 0 !important; float: none !important; }
body.v9-app .v9-intake-review { margin: 0; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--v9-line); border-radius: 9px; overflow: hidden; }
body.v9-app .v9-intake-review > div { min-height: 74px; padding: 12px 14px; border-right: 1px solid var(--v9-line-soft); border-bottom: 1px solid var(--v9-line-soft); }
body.v9-app .v9-intake-review > div:nth-child(2n) { border-right: 0; }
body.v9-app .v9-intake-review > div:nth-last-child(-n+2) { border-bottom: 0; }
body.v9-app .v9-intake-review dt { margin-bottom: 5px; color: #7b889b; font-size: 9px; font-weight: 720; letter-spacing: .055em; text-transform: uppercase; }
body.v9-app .v9-intake-review dd { margin: 0; color: #344158; font-size: 10.5px; font-weight: 560; line-height: 1.45; }
body.v9-app #v9IntakeResultOwner { grid-column: 1 / -1; }
body.v9-app #v9IntakeResultOwner #checkresult { width: 100%; margin: 0 !important; padding: 0 22px 22px; }
body.v9-app .v9-intake-rail { display: grid; gap: 12px; position: sticky; top: 82px; }
body.v9-app .v9-intake-rail > section { padding: 17px; }
body.v9-app .v9-intake-rail h3 { margin: 5px 0 7px; color: var(--v9-ink); font-size: 13px; letter-spacing: -.015em; }
body.v9-app .v9-intake-rail p,
body.v9-app .v9-intake-rail li { color: var(--v9-muted); font-size: 10.5px; line-height: 1.55; }
body.v9-app .v9-intake-rail p { margin: 0; }
body.v9-app .v9-intake-rail ul { margin: 0; padding-left: 16px; }
body.v9-app .v9-intake-special { margin-top: 0; }
body.v9-app #v9IntakeSpecialHost { padding: 12px; }
body.v9-app #v9IntakeSpecialHost #checkconsole { margin: 0; padding: 0; border: 0; box-shadow: none; }
body.v9-app #v9IntakeSpecialHost #checkconsole :where(.cc-head, .cc-intake, .cc-or, .ccm[data-mode="coa"], .ccpanel[data-modepane="coa"]) { display: none !important; }
body.v9-app #v9IntakeSpecialHost #checkconsole .cc-modes { margin: 0 0 12px; grid-template-columns: 1fr 1fr; }
body.v9-app #v9IntakeSpecialHost #v9CanonicalIntakeRail { width: 100%; margin-top: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
body.v9-app[data-v9-route="checker"]:has(#checkresult .vres) .v9-intake-head,
body.v9-app[data-v9-route="checker"]:has(#checkresult .vres) .v9-intake-stepper,
body.v9-app[data-v9-route="checker"]:has(#checkresult .vres) .v9-intake-rail,
body.v9-app[data-v9-route="checker"]:has(#checkresult .vres) .v9-intake-special,
body.v9-app[data-v9-route="checker"]:has(#checkresult .vres) .v9-intake-panel { display: none !important; }
body.v9-app[data-v9-route="checker"]:has(#checkresult .vres) .v9-intake-shell { display: block; }
body.v9-app[data-v9-route="checker"]:has(#checkresult .vres) .v9-intake-main { border: 0; background: transparent; box-shadow: none; }
body.v9-app[data-v9-route="checker"]:has(#checkresult .vres) #v9IntakeResultOwner #checkresult { padding: 0; }

@media (max-width: 980px) {
  /* Match the specificity of the desktop V9 shell rule above. At tablet widths the legacy
     responsive rule hides the sidebar, but the more-specific desktop grid used to keep a 212px
     first column. Because the hidden sidebar no longer occupied that column, <main> collapsed into
     it and left most of the viewport blank. */
  body.dashboard-v5.dashboard-v2.v2-ready.v9-app .appshell { grid-template-columns: minmax(0, 1fr) !important; }
  body.v9-app .aside { display: none; }
  body.v9-app .acontent { padding: 20px 18px 40px; }
  body.v9-app[data-v9-route="dashboard"] section[data-view="dashboard"].v9-composed { padding: 20px 18px 40px !important; }
  body.v9-app .v9-today-layout { grid-template-columns: 1fr; }
  body.v9-app .v9-today-rail { position: static; }
  body.v9-app .v9-intelligence-root { grid-template-columns: 1fr; }
  body.v9-app .v9-intel-context { position: static; }
  body.v9-app .v9-intel-statusbar { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px; gap: 0; }
  body.v9-app .v9-intel-statusbar > span { min-height: 34px; justify-content: flex-start; border-right: 0; border-bottom: 1px solid var(--v9-line-soft); text-align: left; }
  body.v9-app .v9-intel-statusbar > span:nth-child(odd) { border-right: 1px solid var(--v9-line-soft); }
  body.v9-app .v9-intel-statusbar button { min-height: 34px; margin: 6px 0 0; grid-column: 1 / -1; }
  body.v9-app .v9-monitoring-grid { grid-template-columns: 1fr; }
  body.v9-app #v9MonitoringRail { position: static; }
  body.v9-app .v9-record-columns,
  body.v9-app .v9-record-row { grid-template-columns: minmax(220px, 1.7fr) minmax(80px, .7fr) minmax(100px, .8fr) 100px; }
  body.v9-app .v9-record-columns > :nth-child(n+5),
  body.v9-app .v9-record-row > :nth-child(n+5) { display: none; }
  body.v9-app .v9-record-workspace { grid-template-columns: 1fr; }
  body.v9-app .v9-record-inspector { min-height: 0; border-top: 1px solid var(--v9-line); border-left: 0; }
  body.v9-app .v9-record-toolbar { flex-wrap: wrap; }
  body.v9-app .v9-record-toolbar label { flex-basis: 60%; }
  body.v9-app .v9-health { grid-template-columns: repeat(2, 1fr); }
  body.v9-app .v9-health small { grid-column: 1 / -1; min-height: 36px; justify-content: flex-start; border-top: 1px solid var(--v9-line-soft); }
  body.v9-app .v9-intake-shell { grid-template-columns: 1fr; }
  body.v9-app .v9-intake-rail { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  body.v9-app .v9-today-head { display: grid; gap: 14px; }
  body.v9-app .v9-head-actions { width: 100%; }
  body.v9-app .v9-head-actions .btn { flex: 1; }
  body.v9-app .v9-health { grid-template-columns: 1fr; }
  body.v9-app .v9-health > span { border-right: 0; border-bottom: 1px solid var(--v9-line-soft); }
  body.v9-app .v9-records-head { display: grid; gap: 12px; }
  body.v9-app #v9RecordExportHost { justify-content: flex-start; }
  body.v9-app .v9-record-tabs { gap: 17px; overflow-x: auto; }
  body.v9-app .v9-record-tabs button { flex: none; }
  body.v9-app .v9-intel-tabs { gap: 20px; overflow-x: auto; }
  body.v9-app .v9-intel-tabs button { flex: none; }
  body.v9-app .v9-intel-statusbar { grid-template-columns: 1fr; }
  body.v9-app .v9-intel-statusbar > span,
  body.v9-app .v9-intel-statusbar > span:nth-child(odd) { padding: 0 8px; border-right: 0; }
  body.v9-app .v9-record-tools { width: 100%; overflow-x: auto; }
  body.v9-app .v9-record-tools button { flex: none; }
  body.v9-app .v9-record-toolbar label { flex-basis: 100%; }
  body.v9-app .v9-record-columns,
  body.v9-app .v9-record-row { grid-template-columns: minmax(180px, 1.5fr) minmax(82px, .65fr) minmax(96px, .8fr); }
  body.v9-app .v9-record-columns > :nth-child(n+4),
  body.v9-app .v9-record-row > :nth-child(n+4) { display: none; }
  body.v9-app .v9-intake-head { display: grid; gap: 10px; }
  body.v9-app .v9-intake-shell,
  body.v9-app .v9-intake-main,
  body.v9-app #v9IntakeResultOwner,
  body.v9-app #v9IntakeResultOwner #checkresult,
  body.v9-app #v9IntakeResultOwner #realFindings {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  body.v9-app .v9-intake-boundary { justify-self: start; }
  body.v9-app .v9-intake-stepper { grid-template-columns: 1fr; }
  body.v9-app .v9-intake-stepper button { min-height: 54px; border-right: 0; border-bottom: 1px solid var(--v9-line-soft); }
  body.v9-app .v9-intake-stepper button:last-child { border-bottom: 0; }
  body.v9-app .v9-intake-panel { min-height: 0; padding: 20px 16px 16px; }
  body.v9-app .v9-intake-form,
  body.v9-app .v9-intake-review,
  body.v9-app .v9-boundary-list,
  body.v9-app .v9-intake-rail,
  body.v9-app #v9IntakeSpecialHost #v9CanonicalIntakeRail { grid-template-columns: 1fr; }
  body.v9-app .v9-boundary-list > span,
  body.v9-app .v9-intake-review > div { border-right: 0; border-bottom: 1px solid var(--v9-line-soft); }
  body.v9-app .v9-intake-review > div:nth-last-child(-n+2) { border-bottom: 1px solid var(--v9-line-soft); }
  body.v9-app .v9-intake-review > div:last-child { border-bottom: 0; }
  body.v9-app .v9-profile-photo-row { display: grid !important; gap: 10px; }
  body.v9-app .v9-profile-photo-control { justify-content: flex-start; }
}

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

/* V10 page parity: the settled Today route follows the approved infrastructure
   prototype while every production queue, route, API, and mutation keeps its
   existing owner. */
body.v9-app .v10-today { --v10-line: #dce3ed; --v10-soft: #eef2f6; padding: 24px 28px 48px; }
body.v9-app .v10-today-head { min-height: 64px; margin: 0 0 14px; align-items: center; }
body.v9-app .v10-today-head h1 { margin: 0 0 5px; font-size: 27px; font-weight: 730; letter-spacing: -.04em; }
body.v9-app .v10-today-head p { font-size: 12px; line-height: 1.45; }
body.v9-app .v10-today .v9-health { min-height: 58px; margin-bottom: 20px; border-radius: 7px; box-shadow: none; }
body.v9-app .v10-today .v9-health > span { padding-inline: 16px; }
body.v9-app .v10-today-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; }
body.v9-app .v10-today-rail { top: 78px; gap: 14px; }

body.v9-app .v10-first-run { margin: 0 0 20px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(440px, 1.1fr); border: 1px solid #cfd9e8; border-radius: 9px; background: #fff; overflow: hidden; }
body.v9-app .v10-first-run[hidden] { display: none; }
body.v9-app .v10-first-run-lead { padding: 34px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; background: linear-gradient(145deg, #f6f9ff 0%, #fff 70%); }
body.v9-app .v10-first-run-lead h2 { max-width: 430px; margin: 8px 0 10px; color: #111d32; font-size: 25px; line-height: 1.15; font-weight: 740; letter-spacing: -.04em; }
body.v9-app .v10-first-run-lead > p { max-width: 510px; margin: 0; color: #5d6c83; font-size: 12px; line-height: 1.65; }
body.v9-app .v10-first-run-actions { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
body.v9-app .v10-first-run-actions .btn { min-height: 38px; }
body.v9-app .v10-first-run-boundary { margin-top: 14px; padding-left: 17px; position: relative; color: #718097; font-size: 9.5px; line-height: 1.45; }
body.v9-app .v10-first-run-boundary::before { content: ''; position: absolute; left: 0; top: 2px; width: 10px; height: 10px; border: 1.5px solid #2d70db; border-radius: 50%; }
body.v9-app .v10-first-run-guide { padding: 26px 28px; border-left: 1px solid #dce3ed; }
body.v9-app .v10-first-run-guide > header { margin-bottom: 18px; display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
body.v9-app .v10-first-run-guide > header span { color: #152139; font-size: 13px; font-weight: 730; }
body.v9-app .v10-first-run-guide > header small { color: #8290a4; font-size: 9px; }
body.v9-app .v10-first-run-guide ol { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; list-style: none; }
body.v9-app .v10-first-run-guide li { min-width: 0; display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: flex-start; }
body.v9-app .v10-first-run-guide li > b { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid #a9c3ec; border-radius: 50%; background: #f6f9ff; color: #155eef; font-size: 9px; }
body.v9-app .v10-first-run-guide li > span { min-width: 0; display: grid; gap: 4px; }
body.v9-app .v10-first-run-guide strong { color: #27354c; font-size: 10.5px; }
body.v9-app .v10-first-run-guide small { color: #77859a; font-size: 9px; line-height: 1.5; }
body.v9-app .v10-first-run-next { grid-column: 1 / -1; padding: 18px 24px 20px; border-top: 1px solid #dce3ed; background: #fbfcfe; }
body.v9-app .v10-first-run-next h3 { margin: 0 0 14px; color: #18243a; font-size: 11px; font-weight: 730; }
body.v9-app .v10-first-run-next ol { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; }
body.v9-app .v10-first-run-next li { min-width: 0; padding: 0 18px; position: relative; display: grid; grid-template-columns: 24px 1fr; gap: 9px; }
body.v9-app .v10-first-run-next li:first-child { padding-left: 0; }
body.v9-app .v10-first-run-next li:not(:last-child)::after { content: ''; position: absolute; top: 12px; right: -1px; width: 18px; height: 1px; background: #cfd9e8; }
body.v9-app .v10-first-run-next li > b { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid #c5cfdd; border-radius: 50%; background: #fff; color: #6f7e92; font-size: 9px; }
body.v9-app .v10-first-run-next li.current > b { border-color: #1764ef; background: #1764ef; color: #fff; }
body.v9-app .v10-first-run-next li > span { min-width: 0; display: grid; gap: 3px; }
body.v9-app .v10-first-run-next strong { color: #2d3a50; font-size: 9.5px; }
body.v9-app .v10-first-run-next small { color: #7d899b; font-size: 8.5px; line-height: 1.45; }
body.v9-app .v10-today.is-fresh .v10-today-layout,
body.v9-app .v10-today.is-fresh .v10-audit,
body.v9-app .v10-today.is-fresh .v10-operational-detail { display: none; }

body.v9-app .v10-section,
body.v9-app .v10-side-card,
body.v9-app .v10-audit { border: 1px solid var(--v10-line); border-radius: 7px; background: #fff; box-shadow: none; }
body.v9-app .v10-section { margin: 0 0 16px; overflow: hidden; }
body.v9-app .v10-section > header,
body.v9-app .v10-audit > header { min-height: 48px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--v10-line); }
body.v9-app .v10-section h2,
body.v9-app .v10-audit h2 { margin: 0; color: #162238; font-size: 14px; font-weight: 720; letter-spacing: -.015em; }
body.v9-app .v10-section h2 b { min-width: 22px; height: 22px; margin-left: 6px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 999px; background: #fff0ed; color: #d74e3f; font-size: 10px; vertical-align: 1px; }
body.v9-app .v10-section > header button,
body.v9-app .v10-side-card > button,
body.v9-app .v10-audit > header button { border: 0; background: transparent; color: #155dd7; font-size: 10px; font-weight: 680; cursor: pointer; }

body.v9-app .v10-action-section #workQueue { margin: 0 !important; }
body.v9-app .v10-action-section #workQueue > .panel-card { margin: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
body.v9-app .v10-action-section #workQueue > .panel-card > .ph { display: none !important; }
body.v9-app .v10-action-section .v3-queue-controls { min-height: 46px; padding: 7px 12px !important; border-bottom: 1px solid var(--v10-line); }
body.v9-app .v10-action-section .v3-queue-filters button { min-height: 30px !important; padding: 0 11px !important; font-size: 9.5px !important; }
body.v9-app .v10-action-section .wq-tbl { max-height: 410px; overflow: auto; border: 0 !important; }
body.v9-app .v10-action-section .wq-tr { border-inline: 0 !important; }
body.v9-app .v10-action-section .wq-thead { position: sticky; top: 0; z-index: 2; min-height: 36px !important; background: #f8fafc !important; color: #68768b !important; font-size: 8.5px !important; letter-spacing: .055em; }
body.v9-app .v10-action-section .wq-tr[data-v3-row] { min-height: 61px !important; background: #fff; }
body.v9-app .v10-action-section .wq-tr[data-v3-row]:hover { background: #f8faff !important; }
body.v9-app .v10-action-section .v3-wq-group-label { min-height: 32px; padding-inline: 13px !important; background: #fbfcfd; }

body.v9-app .v10-recent-head,
body.v9-app .v10-recent-row { display: grid; grid-template-columns: minmax(220px, 1.8fr) minmax(78px, .65fr) minmax(100px, .8fr) minmax(112px, .9fr) 62px; align-items: center; }
body.v9-app .v10-recent-head { min-height: 34px; padding: 0 13px; border-bottom: 1px solid var(--v10-line); background: #fafbfd; color: #728097; font-size: 8.5px; font-weight: 720; letter-spacing: .065em; text-transform: uppercase; }
body.v9-app .v10-recent-row { width: 100%; min-height: 54px; padding: 6px 13px; border: 0; border-bottom: 1px solid var(--v10-soft); border-radius: 0; background: #fff; color: #40506a; text-align: left; font: inherit; font-size: 10px; cursor: pointer; }
body.v9-app .v10-recent-row:last-child { border-bottom: 0; }
body.v9-app .v10-recent-row:hover { background: #f8faff; }
body.v9-app .v10-recent-row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.v9-app .v10-recent-row > span:first-child { display: grid; gap: 3px; }
body.v9-app .v10-recent-row b { overflow: hidden; color: #155dd7; font-size: 11px; font-weight: 690; text-overflow: ellipsis; white-space: nowrap; }
body.v9-app .v10-recent-row small { overflow: hidden; color: #8793a4; font-size: 9px; font-weight: 450; text-overflow: ellipsis; white-space: nowrap; }
body.v9-app .v10-recent-row em { justify-self: start; padding: 4px 8px; border-radius: 999px; background: #eef2f6; color: #5e6b7e; font-size: 9px; font-style: normal; font-weight: 670; }
body.v9-app .v10-recent-row em.ok { background: #e8f7f1; color: #087354; }
body.v9-app .v10-recent-row em.warn { background: #fff2dd; color: #915a08; }

body.v9-app .v10-side-card { padding: 16px; }
body.v9-app .v10-side-card h3 { margin: 0 0 14px; color: #172339; font-size: 13px; font-weight: 720; letter-spacing: -.015em; }
body.v9-app .v10-flow > div > div { position: relative; min-height: 68px; display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: flex-start; }
body.v9-app .v10-flow > div > div:not(:last-child)::after { content: ''; position: absolute; top: 31px; bottom: -1px; left: 16px; width: 1px; background: #1764ef; }
body.v9-app .v10-flow > div > div > b { z-index: 1; width: 34px; height: 34px; display: grid; place-items: center; border: 2px solid #1764ef; border-radius: 50%; background: #fff; color: #155eef; font-size: 11px; }
body.v9-app .v10-flow > div > div.current > b { border-color: #e18314; color: #c96a00; }
body.v9-app .v10-flow span { padding-top: 2px; display: grid; gap: 3px; }
body.v9-app .v10-flow strong { color: #25334a; font-size: 10.5px; }
body.v9-app .v10-flow small { color: #7c899b; font-size: 9px; line-height: 1.4; }
body.v9-app .v10-flow em { color: #8b560e; font-size: 8.5px; font-style: normal; }
body.v9-app .v10-flow > button { margin-top: 2px; padding: 0; }
body.v9-app .v10-vera h3 { display: flex; align-items: center; gap: 8px; }
body.v9-app .v10-vera-mark { width: 24px; height: 24px; display: block; object-fit: contain; }
body.v9-app .v10-vera p,
body.v9-app .v10-cato p { margin: 0 0 14px; color: #65738a; font-size: 10px; line-height: 1.62; }
body.v9-app .v10-vera > div { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
body.v9-app .v10-vera .btn { min-width: 0; padding-inline: 8px; font-size: 9.5px; }
body.v9-app .v10-cato h3 { display: flex; justify-content: space-between; gap: 8px; }
body.v9-app .v10-cato h3 em { padding: 3px 7px; border-radius: 999px; background: #edf4ff; color: #1764ef; font-size: 8.5px; font-style: normal; }

body.v9-app .v10-audit { margin-top: 4px; overflow: hidden; }
body.v9-app .v10-audit h2 small { margin-left: 4px; color: #7b8799; font-size: 9px; font-weight: 450; }
body.v9-app #v10AuditRows > button { width: 100%; min-height: 48px; padding: 7px 14px; display: grid; grid-template-columns: 10px minmax(220px, 1.2fr) minmax(120px, .8fr) minmax(150px, 1fr); gap: 11px; align-items: center; border: 0; border-bottom: 1px solid var(--v10-soft); border-radius: 0; background: #fff; color: #536178; text-align: left; font: inherit; cursor: pointer; }
body.v9-app #v10AuditRows > button:last-child { border-bottom: 0; }
body.v9-app #v10AuditRows > button:hover { background: #f8faff; }
body.v9-app #v10AuditRows > button > i { width: 8px; height: 8px; border-radius: 50%; background: #15966e; }
body.v9-app #v10AuditRows > button > span { display: grid; gap: 2px; }
body.v9-app #v10AuditRows b { color: #29374e; font-size: 10px; }
body.v9-app #v10AuditRows small,
body.v9-app #v10AuditRows time,
body.v9-app #v10AuditRows code { color: #7c899a; font-size: 9px; }
body.v9-app .v10-loading { min-height: 72px; display: grid; place-items: center; color: #7d899a; font-size: 10px; }
body.v9-app .v10-operational-detail { margin-top: 16px; }
body.v9-app .v10-operational-detail > div { grid-template-columns: minmax(0, 1fr); }
body.v9-app .v10-operational-detail #v9QuickHost { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

@media (max-width: 1100px) {
  body.v9-app .v10-first-run { grid-template-columns: 1fr; }
  body.v9-app .v10-first-run-guide { border-top: 1px solid #dce3ed; border-left: 0; }
  body.v9-app .v10-first-run-next ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 0; }
  body.v9-app .v10-first-run-next li:nth-child(2)::after { display: none; }
  body.v9-app .v10-today-layout { grid-template-columns: 1fr; }
  body.v9-app .v10-today-rail { position: static; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  body.v9-app .v10-workspace-host { flex: 0 1 46px; min-width: 42px; max-width: 46px; }
  body.v9-app .v10-workspace-host > .wsswitch { width: 42px; padding: 5px; }
  body.v9-app .v10-workspace-host .wsmeta,
  body.v9-app .v10-workspace-host .wschev { display: none; }
  body.v9-app .v10-workspace-host > .wspanel { position: fixed; top: 62px; left: 8px; right: 8px; width: auto; }
  body.v9-app section[data-view="settings"] .sg-access-summary { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  body.v9-app section[data-view="settings"] .sg-access-summary > span { min-height: 72px; border-top: 0; border-right: 1px solid var(--v9-line-soft); }
  body.v9-app section[data-view="settings"] .sg-access-summary > span:nth-child(2n) { border-right: 0; }
  body.v9-app section[data-view="settings"] .sg-access-summary > span:nth-child(n+3) { border-top: 1px solid var(--v9-line-soft); }
  body.v9-app .v10-today-head { display: grid; }
  body.v9-app .v10-today { padding: 20px 18px 40px; }
  body.v9-app .v10-first-run-lead,
  body.v9-app .v10-first-run-guide,
  body.v9-app .v10-first-run-next { padding: 22px 18px; }
  body.v9-app .v10-first-run-lead h2 { font-size: 22px; }
  body.v9-app .v10-first-run-guide ol,
  body.v9-app .v10-first-run-next ol { grid-template-columns: 1fr; gap: 16px; }
  body.v9-app .v10-first-run-next li { padding: 0; }
  body.v9-app .v10-first-run-next li:not(:last-child)::after { top: 26px; bottom: -16px; left: 12px; right: auto; width: 1px; height: auto; }
  body.v9-app .v10-first-run-actions { width: 100%; display: grid; }
  body.v9-app .v10-today-rail { grid-template-columns: 1fr; }
  body.v9-app.dashboard-v3 section[data-view="dashboard"] .v10-action-section .v3-queue-controls { align-items: stretch; overflow: visible; }
  body.v9-app.dashboard-v3 section[data-view="dashboard"] .v10-action-section .v3-queue-filters { min-width: 0; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  body.v9-app.dashboard-v3 section[data-view="dashboard"] .v10-action-section .v3-queue-filters::-webkit-scrollbar { display: none; }
  body.v9-app.dashboard-v3 section[data-view="dashboard"] .v10-action-section .v3-queue-filters > button { flex: none; }
  body.v9-app.dashboard-v3 section[data-view="dashboard"] .v10-action-section .v3-filter-wrap { flex: none; }
  body.v9-app.dashboard-v3 section[data-view="dashboard"] .v10-action-section .wq-tr.wq-thead { display: none !important; }
  body.v9-app.dashboard-v3 section[data-view="dashboard"] .v10-action-section .wq-tr[data-v3-row] {
    min-height: 92px !important;
    padding: 12px 13px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: auto auto auto;
    column-gap: 12px;
    row-gap: 5px;
    align-items: start;
  }
  body.v9-app.dashboard-v3 section[data-view="dashboard"] .v10-action-section .wq-tr[data-v3-row] > span { padding: 0 !important; }
  body.v9-app.dashboard-v3 section[data-view="dashboard"] .v10-action-section .wq-subj { grid-column: 1; grid-row: 1; }
  body.v9-app.dashboard-v3 section[data-view="dashboard"] .v10-action-section .wq-act { grid-column: 2; grid-row: 1; justify-self: end; }
  body.v9-app.dashboard-v3 section[data-view="dashboard"] .v10-action-section .wq-st {
    grid-column: 1 / -1;
    grid-row: 2;
    overflow: hidden;
    display: -webkit-box;
    color: #536178;
    line-height: 1.4;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  body.v9-app.dashboard-v3 section[data-view="dashboard"] .v10-action-section .wq-age {
    grid-column: 1 / -1;
    grid-row: 3;
    color: #7b8799;
    font-size: 9px;
    font-weight: 600;
  }
  body.v9-app.dashboard-v3 section[data-view="dashboard"] .v10-action-section .wq-age::before { content: 'Open '; font-weight: 450; }
  body.v9-app.dashboard-v3 section[data-view="dashboard"] .v10-action-section .v3-wq-owner,
  body.v9-app.dashboard-v3 section[data-view="dashboard"] .v10-action-section .v3-wq-next { display: none !important; }
  body.v9-app .v10-recent-head,
  body.v9-app .v10-recent-row { grid-template-columns: minmax(170px, 1.4fr) 76px 92px; }
  body.v9-app .v10-recent-head > :nth-child(n+4),
  body.v9-app .v10-recent-row > :nth-child(n+4) { display: none; }
  body.v9-app #v10AuditRows { overflow-x: auto; }
  body.v9-app #v10AuditRows > button { min-width: 650px; }
  body.v9-app .v10-operational-detail #v9QuickHost { grid-template-columns: 1fr; }
}
/* Keep phone records readable without removing their evidence and relationship counts. */
@media(max-width:620px){
 body.v9-app .v9-record-columns{display:none}
 body.v9-app .v9-record-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:16px;min-width:0;font-size:14px}
 body.v9-app .v9-record-row>span{padding:0;white-space:normal;overflow:visible;overflow-wrap:anywhere}
 body.v9-app .v9-record-row>.v9-record-name{grid-column:1/-1}
 body.v9-app .v9-record-row>:nth-child(n+4){display:block}
 body.v9-app .v9-record-row [data-mobile-label]::before{content:attr(data-mobile-label);display:block;margin-bottom:4px;font-size:12px;color:#5d6c80}
 body.v9-app .v9-record-name b{font-size:15px;line-height:1.45}
 body.v9-app .v9-record-name small,body.v9-app .v9-record-status{font-size:12px;line-height:1.4}
 body.v9-app .v9-records-compact .v9-record-row{padding:14px}
 body.v9-app .v9-intake-panel :is(label,p),body.v9-app .v9-boundary-list{font-size:14px;line-height:1.5}
 body.v9-app .v9-intake-panel :is(input,select,textarea){font-size:16px}
 body.v9-app :is(.v9-head-actions,.v9-record-toolbar,.v9-intake-panel) button{min-height:44px}
 body.v9-app .wq-row{display:grid;grid-template-columns:38px minmax(0,1fr);gap:12px}
 body.v9-app .wq-row .wq-go{grid-column:2;margin:0;min-height:44px;white-space:normal}
 body.v9-app .wq-t span{font-size:14px;line-height:1.5}
}
@media(max-width:620px){
 body.v9-app #hubbar[data-v9-workflow-tabs]{display:flex!important;gap:6px;margin:0;padding:10px 14px;overflow-x:auto;box-shadow:none;border-radius:0;max-width:100%;scrollbar-width:thin}
 body.v9-app #hubbar[data-v9-workflow-tabs] .hubtab{flex:0 0 auto;width:auto;min-height:44px;padding:10px 12px;white-space:nowrap;border-radius:6px}
 body.v9-app #hubbar[data-v9-workflow-tabs] .hubtab b{font-size:13px}
 body.v9-app #hubbar[data-v9-workflow-tabs] .hubtab span{display:none}
 body.v9-app section.view.on>.pagehead.v3-surface-header,
 body.v9-app section.view.on>.pagehead:not(.v3-surface-header){flex-direction:column!important;gap:14px!important;min-height:0!important}
 body.v9-app section.view.on>.pagehead .ph-sub{font-size:14px!important}
 body.v9-app section.view.on>.pagehead :is(.v5-view-actions,.v5-surface-actions){flex-direction:row!important;flex-wrap:wrap;gap:10px;width:100%;min-height:0}
 body.v9-app section.view.on>.pagehead :is(.v5-view-actions,.v5-surface-actions)>*{min-height:44px!important;font-size:13px!important}
 body.v9-app .v9-head-actions .btn{min-height:44px!important;font-size:13px}
 body.v9-app .v9-record-inspector :is(p,dt,dd){font-size:14px;line-height:1.5}
 body.v9-app .v9-record-inspector :is(small,section>small){font-size:12px}
 body.v9-app .v9-record-inspector-metrics b{font-size:14px;white-space:normal;overflow:visible}
}
@media(max-width:620px){
 body.v9-app section.view.on>.pagehead.v3-surface-header,
 body.v9-app section.view.on>.pagehead:not(.v3-surface-header){flex-direction:row!important;flex-wrap:wrap!important;justify-content:flex-start!important;gap:12px!important}
 body.v9-app section.view.on>.pagehead>div:first-child{flex:1 1 100%!important}
 body.v9-app section.view.on>.pagehead>div:not(:first-child){flex:0 1 auto!important;width:auto!important;margin:0!important;padding:0!important}
 body.v9-app section.view.on>.pagehead :is(.v5-view-actions,.v5-surface-actions){order:2}
 body.v9-app .v5-completion-contract p{font-size:14px!important;line-height:1.5}
 body.v9-app .v5-completion-contract small,
 body.v9-app .v5-status-panel small{font-size:12px!important;line-height:1.4}
}

/* Audit: dense controls must still be legible. Keep the approved desktop geometry,
   but do not inherit the earlier 9-10px action and registry typography. */
body.v9-app .acontent :is(.btn,.v5-purpose-tabs button,.v9-record-tools button,.v9-record-tabs button,.v9-intel-tabs button,.sg-settings-nav button,.nw-tabs button){font-size:12px!important;line-height:1.4!important}
body.v9-app .v10-action-section .v3-queue-filters button{font-size:12px!important;min-height:36px!important}
body.v9-app .v9-record-toolbar{flex-wrap:wrap}
body.v9-app .v9-record-toolbar label{flex:1 1 250px}
body.v9-app .v9-record-tools{flex-wrap:wrap}
body.v9-app .v9-record-tools button{min-height:36px}
body.v9-app #v9RecordSearch{font-size:13px!important;min-height:38px}
body.v9-app .v9-record-toolbar>span{font-size:12px}
@media(min-width:761px){
 body.v9-app .v9-record-row{font-size:12px!important}
 body.v9-app .v9-record-name b{font-size:13px}
 body.v9-app .v9-record-name small{font-size:11.5px;color:#5f6f85}
 body.v9-app .v9-record-columns{font-size:11px;letter-spacing:.04em}
 body.v9-app .v9-record-grouphead b{font-size:12px}
 body.v9-app .v9-record-grouphead span{font-size:11px}
 body.v9-app .v9-record-status{font-size:11px}
 body.v9-app .v9-record-inspector :is(p,dt,dd){font-size:12px;line-height:1.5}
 body.v9-app .v9-record-inspector :is(header small,section>small){font-size:11px}
 body.v9-app .v9-record-inspector-metrics small{font-size:11px;color:#5f6f85}
 body.v9-app .v9-record-inspector-metrics b{font-size:12px;white-space:normal;overflow-wrap:anywhere}
}
@media(max-width:760px){
 body.v9-app .acontent :is(.btn,.v5-purpose-tabs button,.v9-record-tools button,.v9-record-tabs button,.v9-intel-tabs button,.sg-settings-nav button,.nw-tabs button){font-size:13px!important;min-height:44px!important}
}
/* Compact checkboxes with full-size clickable permission labels. */
body.v9-app #apiKeyPermissions{min-width:0}
body.v9-app #apiKeyPermissions > div{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:4px 16px!important}
body.v9-app #apiKeyPermissions > div > label{display:flex!important;align-items:center;gap:10px;min-height:44px;margin:0;font-size:13px!important;font-weight:500;text-transform:none;letter-spacing:normal}
body.v9-app #apiKeyPermissions input[type=checkbox]{width:17px!important;height:17px!important;min-width:17px!important;min-height:17px!important;margin:0!important;padding:0!important;flex:0 0 17px;accent-color:#2563eb}
body.v9-app #apiKeyLifetime{width:auto;max-width:100%;margin-left:8px}
body.v9-app #v9ProductionPreparation{margin-top:16px}
body.v9-app #v9ProductionPreparation > p{padding:0 18px;font-size:13px;color:var(--ink-soft)}
