/* Veritura dashboard interiors v4
   The navigation shell remains v2/v3. This layer gives every canonical live workflow the approved
   prototype's component grammar without replacing its ids, listeners, records, or server gates. */

body.dashboard-v4{
  --v4-ink:#101b34;
  --v4-ink-2:#33415f;
  --v4-muted:#6b7892;
  --v4-line:#e1e7f0;
  --v4-line-soft:#edf1f6;
  --v4-blue:#1261e8;
  --v4-blue-soft:#edf4ff;
  --v4-green:#0c7d52;
  --v4-green-soft:#edf8f2;
  --v4-amber:#bd6c08;
  --v4-amber-soft:#fff6e9;
  --v4-red:#d73535;
  --v4-red-soft:#fff1f0;
  --v4-canvas:#f8fafc;
}

body.dashboard-v4 .acontent{
  min-width:0;
  color:var(--v4-ink);
}

body.dashboard-v4 .v4-view :is(p,small,strong,label,span,em,b,h1,h2,h3,h4){
  min-width:0;
  overflow-wrap:normal;
  word-break:normal;
}

body.dashboard-v4 .v4-view :is(code,pre,.lmono,[class*=mono]){
  overflow-wrap:anywhere;
  word-break:break-word;
}

body.dashboard-v4 .v3-workflow-main.feature-workspace{
  display:grid;
  min-width:0;
  gap:14px;
  padding:0 0 54px;
}

body.dashboard-v4 .v3-workflow-main>.v3-workspace-tabs{
  min-width:0;
}

body.dashboard-v4 .v3-workflow-main>.v3-workspace-tabs>.workflow-tabs,
body.dashboard-v4 .v4-cato-tabs>.workflow-tabs{
  min-height:46px;
  display:flex;
  align-items:flex-end;
  gap:22px;
  overflow-x:auto;
  overflow-y:hidden;
  margin:0 0 14px;
  padding:0 2px;
  border-bottom:1px solid var(--v4-line);
  scrollbar-width:none;
}

body.dashboard-v4 .workflow-tabs::-webkit-scrollbar{display:none}

body.dashboard-v4 .workflow-tabs>button{
  min-width:max-content;
  min-height:45px;
  flex:0 0 auto;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:var(--v4-muted);
  font-size:10.5px;
  font-weight:600;
  white-space:nowrap;
}

body.dashboard-v4 .workflow-tabs>button.active{
  color:var(--v4-blue);
}

body.dashboard-v4 .workflow-tabs>button::after{
  right:0!important;
  bottom:-1px!important;
  left:0!important;
  height:2px!important;
}

body.dashboard-v4 .v4-workspace-panel{
  min-width:0;
  gap:12px;
}

body.dashboard-v4 .v4-workspace-panel:not([hidden]){
  display:grid;
}

body.dashboard-v4 .v4-workspace-panel[hidden]{display:none!important}

body.dashboard-v4 .v4-workspace-panel>*{
  min-width:0;
  max-width:100%;
  margin-top:0!important;
  margin-bottom:0!important;
}

body.dashboard-v4 .workflow-storage-strip{
  min-width:0;
  min-height:70px;
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  overflow:hidden;
  margin:0!important;
  border:1px solid var(--v4-line);
  border-radius:10px!important;
  background:#fff;
}

body.dashboard-v4 .workflow-storage-strip>.v3-strip-item{
  min-width:0;
  min-height:68px;
  display:grid;
  grid-template-columns:25px minmax(0,1fr);
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border:0;
  border-right:1px solid var(--v4-line-soft);
  border-radius:0;
  background:#fff;
  text-align:left;
}

body.dashboard-v4 .workflow-storage-strip>.v3-strip-item:last-child{border-right:0}
body.dashboard-v4 .workflow-storage-strip>.v3-strip-item:hover{background:#fbfcfe}
body.dashboard-v4 .v4-adapter-icon{display:none!important}

body.dashboard-v4 .v4-real-icon,
body.dashboard-v4 [data-v4-icon]{
  width:18px;
  height:18px;
  display:block;
  color:var(--v4-blue);
  stroke-width:1.8;
}

body.dashboard-v4 .workflow-storage-strip>.v3-strip-item:nth-child(4) .v4-real-icon{color:var(--v4-green)}
body.dashboard-v4 .workflow-storage-strip>.v3-strip-item:nth-child(5) .v4-real-icon{color:#586b88}

body.dashboard-v4 .workflow-storage-strip .v3-strip-item>span{
  display:flex;
  min-width:0;
  flex-direction:column;
}

body.dashboard-v4 .workflow-storage-strip strong{
  color:var(--v4-ink);
  font-size:13px;
  font-weight:700;
  line-height:1.1;
}

body.dashboard-v4 .workflow-storage-strip small{
  overflow:hidden;
  margin-top:4px;
  color:var(--v4-muted);
  font-size:8.5px;
  line-height:1.25;
  text-overflow:ellipsis;
  white-space:nowrap;
}

body.dashboard-v4 .feature-contract-bar{
  min-width:0;
  min-height:58px;
  overflow:hidden;
  margin:0!important;
  border:1px solid var(--v4-line)!important;
  border-radius:9px!important;
  background:#fff!important;
}

body.dashboard-v4 .feature-contract-bar .v3-contract-grid{
  grid-template-columns:minmax(0,1fr) 150px 230px;
}

body.dashboard-v4 .feature-contract-bar .v3-contract-grid>span{
  min-height:58px;
  justify-content:center;
  padding:9px 14px;
  border-right:1px solid var(--v4-line-soft);
}

body.dashboard-v4 .feature-contract-bar .v3-contract-grid>span:last-child{border-right:0}

body.dashboard-v4 .feature-contract-bar .v3-primary-job{
  grid-template-columns:24px minmax(0,1fr);
  gap:1px 7px;
}

body.dashboard-v4 .feature-contract-bar .v3-primary-job>.v4-real-icon{grid-row:1 / span 2;align-self:center}

body.dashboard-v4 .feature-contract-bar small{
  color:var(--v4-muted);
  font-size:8px;
  font-weight:700;
  letter-spacing:.075em;
  text-transform:uppercase;
}

body.dashboard-v4 .feature-contract-bar strong{
  color:var(--v4-ink);
  font-size:9.8px;
  font-weight:650;
  line-height:1.4;
}

body.dashboard-v4 .v3-workbench-gate{display:none!important}

body.dashboard-v4 .v3-workbench-gate.v4-gate-ready,
body.dashboard-v4 .v4-entitlement-gate{
  grid-column:1 / -1;
  width:100%;
  box-sizing:border-box;
  min-height:96px;
  display:grid!important;
  grid-template-columns:36px minmax(0,1fr) auto auto;
  align-items:center;
  gap:11px;
  padding:15px;
  border:1px solid #d7e5f6;
  border-radius:10px;
  background:#f7faff;
  color:var(--v4-blue);
}

body.dashboard-v4 .v3-workbench-gate.v4-gate-ready>svg,
body.dashboard-v4 .v4-entitlement-gate>svg{width:21px;height:21px}
body.dashboard-v4 .v4-entitlement-gate>span{display:flex;min-width:0;flex-direction:column}
body.dashboard-v4 .v4-entitlement-gate strong{color:var(--v4-ink);font-size:11.5px}
body.dashboard-v4 .v4-entitlement-gate small{margin-top:4px;color:var(--v4-muted);font-size:9px;line-height:1.45}
body.dashboard-v4 .v4-entitlement-gate button{min-height:36px;white-space:nowrap}
body.dashboard-v4 .v4-entitlement-gate button:last-child{border-color:var(--v4-blue);background:var(--v4-blue);color:#fff}
body.dashboard-v4 .v4-entitlement-gated>*:not(.feature-contract-bar):not(.v4-entitlement-gate){display:none!important}

body.dashboard-v4 .feature-panel,
body.dashboard-v4 .v4-table-surface,
body.dashboard-v4 .v4-form-surface{
  min-width:0;
  border-color:var(--v4-line)!important;
  border-radius:10px!important;
  background:#fff!important;
  box-shadow:none!important;
}

body.dashboard-v4 .feature-panel>.ph,
body.dashboard-v4 .feature-panel>.cc-h,
body.dashboard-v4 .feature-panel>.rcard-head,
body.dashboard-v4 .v4-panel-heading{
  min-height:58px;
  display:flex!important;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:0!important;
  padding:12px 15px!important;
  border-bottom:1px solid var(--v4-line-soft);
  color:var(--v4-ink);
  font-size:11.5px!important;
  font-weight:650!important;
  line-height:1.35;
}

body.dashboard-v4 .feature-panel>.ph>span,
body.dashboard-v4 .feature-panel>.cc-h small,
body.dashboard-v4 .feature-panel>.rcard-head .rcard-cat{
  color:var(--v4-muted)!important;
  font-size:8.5px!important;
  font-weight:500!important;
  line-height:1.4;
}

body.dashboard-v4 .v4-panel-heading h3,
body.dashboard-v4 .v4-panel-heading p{margin:0}
body.dashboard-v4 .v4-panel-heading h3{font-size:12px}
body.dashboard-v4 .v4-panel-heading p{margin-top:3px;color:var(--v4-muted);font-size:8.8px;font-weight:500}

body.dashboard-v4 .feature-panel>.pbody,
body.dashboard-v4 .feature-panel>.pbx{
  min-width:0;
  padding:14px 15px!important;
}

body.dashboard-v4 .v4-view :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea){
  width:100%;
  max-width:100%;
  min-height:38px;
  box-sizing:border-box;
  border:1px solid var(--v4-line)!important;
  border-radius:8px!important;
  background:#fff!important;
  color:var(--v4-ink)!important;
  font:inherit;
  font-size:10.5px!important;
  line-height:1.45;
  box-shadow:none!important;
}

body.dashboard-v4 .v4-view textarea{min-height:88px;padding:10px 11px!important}
body.dashboard-v4 .v4-view :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select){padding:8px 10px!important}

body.dashboard-v4 .v4-view :is(input,select,textarea):focus{
  outline:2px solid rgba(18,97,232,.16)!important;
  outline-offset:1px;
  border-color:#91b1ea!important;
}

body.dashboard-v4 .v4-view :is(.btn,button,a.btn){
  min-height:36px;
  border-radius:8px;
  font-size:10px;
  font-weight:650;
}

body.dashboard-v4 .v4-view .btn-primary{
  border-color:var(--v4-blue)!important;
  background:var(--v4-blue)!important;
}

body.dashboard-v4 .v4-view .btn-ghost{
  border-color:var(--v4-line)!important;
  background:#fff!important;
  color:var(--v4-ink-2)!important;
}

body.dashboard-v4 .v4-scroll-region,
body.dashboard-v4 .v4-table-surface{
  max-width:100%;
  overflow-x:auto;
  overscroll-behavior-inline:contain;
}

body.dashboard-v4 .v4-view table{
  width:100%;
  min-width:680px;
  border-collapse:collapse;
}

body.dashboard-v4 .v4-view :is(th,.rth,.lth){
  background:#f8fafc!important;
  color:var(--v4-muted)!important;
  font-size:8px!important;
  font-weight:700!important;
  letter-spacing:.055em;
  text-transform:uppercase;
}

body.dashboard-v4 .v4-view :is(td,.rtd,.ltd){
  color:var(--v4-ink-2);
  font-size:9px!important;
  line-height:1.4;
}

/* Passport operations */
body.dashboard-v4 .v4-view-passport .feature-contract-bar{display:none}

body.dashboard-v4 .v4-view-passport .v3-surface-header{
  align-items:flex-start;
}

body.dashboard-v4 .v4-view-passport .v3-surface-header>div:last-child{
  display:flex;
  gap:7px!important;
}

body.dashboard-v4 .v4-view-passport .v4-workspace-panel[data-v3-panel="issue"]{
  grid-template-columns:minmax(0,1fr);
}

body.dashboard-v4 #epComposerPanel.v4-passport-composer{
  overflow:hidden;
  border:1px solid var(--v4-line)!important;
  border-radius:10px!important;
}

body.dashboard-v4 #epComposerPanel>.ph{
  align-items:flex-start;
  flex-direction:column;
}

body.dashboard-v4 #epComposerPanel>.ph>span:first-child{
  order:1;
  color:var(--v4-blue)!important;
  font-size:8px!important;
  letter-spacing:.075em;
}

body.dashboard-v4 #epComposerPanel>.ph>span:last-child{
  color:var(--v4-muted)!important;
}

body.dashboard-v4 .v4-release-details{
  margin:0 0 12px;
  padding:9px 10px;
  border:1px solid var(--v4-line-soft);
  border-radius:7px;
  background:#fbfcfe;
}

body.dashboard-v4 .v4-release-details summary{
  cursor:pointer;
  color:var(--v4-ink-2);
  font-size:9px;
  font-weight:650;
}

body.dashboard-v4 .v4-release-details .ccdesc{
  max-width:none;
  margin:8px 0 0!important;
  color:var(--v4-muted)!important;
  font-size:9px!important;
  line-height:1.55!important;
}

body.dashboard-v4 #epComposerPanel .cclab{
  display:block;
  margin:10px 0 5px!important;
  color:var(--v4-muted)!important;
  font-size:8px!important;
  font-weight:700!important;
  letter-spacing:.055em;
  text-transform:uppercase;
}

body.dashboard-v4 #epComposerPanel .cclab span{
  color:var(--v4-muted)!important;
  font-size:8px!important;
  font-weight:500!important;
  text-transform:none;
}

body.dashboard-v4 #epModes{
  display:grid!important;
  grid-template-columns:1fr 1fr;
  gap:5px;
  margin:10px 0 12px!important;
  padding:4px;
  border-radius:8px;
  background:#f1f4f8;
}

body.dashboard-v4 #epModes>button{
  min-height:34px;
  border:0!important;
  border-radius:6px!important;
  background:transparent!important;
  color:var(--v4-muted)!important;
}

body.dashboard-v4 #epModes>button.on{
  background:#fff!important;
  color:var(--v4-ink)!important;
  box-shadow:0 1px 3px rgba(16,27,52,.08)!important;
}

body.dashboard-v4 #epPrefillRow.v4-source-picker{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:7px!important;
  margin:12px 0!important;
}

body.dashboard-v4 #epPrefillRow.v4-source-picker>button{
  min-width:0;
  min-height:58px;
  display:flex!important;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:6px;
  padding:9px 10px!important;
  border:1px solid var(--v4-line)!important;
  border-radius:8px!important;
  background:#fff!important;
  color:var(--v4-ink-2)!important;
  font-size:9px!important;
  text-align:left;
}

body.dashboard-v4 #epPrefillRow.v4-source-picker>button:first-child{
  border-color:#9ab8ef!important;
  background:#f3f7ff!important;
  color:var(--v4-blue)!important;
  box-shadow:inset 0 0 0 1px #cfe0ff!important;
}

body.dashboard-v4 #epPrefillRow.v4-source-picker>button:disabled{opacity:.48}
body.dashboard-v4 #epPrefillRow .v4-source-help{grid-column:1 / -1;color:var(--v4-muted)!important;font-size:8.5px!important}
body.dashboard-v4 #epOrder{min-height:132px!important;font-family:ui-monospace,SFMono-Regular,Menlo,monospace!important;font-size:9.5px!important}

body.dashboard-v4 #epPlan>div{
  border-color:var(--v4-line)!important;
  border-radius:8px!important;
  background:#fbfcfe!important;
}

body.dashboard-v4 #epRun{
  min-height:42px;
  margin-top:12px!important;
}

body.dashboard-v4 #epBilling{
  margin-top:9px!important;
  padding:10px 11px;
  border:1px solid #ecd9b4;
  border-radius:8px;
  background:#fffaf1;
  color:#806229!important;
  font-size:8.8px!important;
  line-height:1.5;
}

body.dashboard-v4 #epExceptions,
body.dashboard-v4 #epWaysPanel{
  margin-top:0!important;
}

body.dashboard-v4 .v4-delivery-note{
  min-height:66px;
  display:grid;
  grid-template-columns:26px minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border:1px solid #d7e4f5;
  border-radius:9px;
  background:#f6f9fd;
  color:var(--v4-blue);
}

body.dashboard-v4 .v4-delivery-note>svg{width:18px;height:18px}
body.dashboard-v4 .v4-delivery-note>span{display:flex;flex-direction:column}
body.dashboard-v4 .v4-delivery-note strong{color:var(--v4-ink);font-size:10px}
body.dashboard-v4 .v4-delivery-note small{margin-top:4px;color:var(--v4-muted);font-size:8.5px;line-height:1.45}
body.dashboard-v4 .v4-delivery-note button{border:0;background:transparent;color:var(--v4-blue);white-space:nowrap}

body.dashboard-v4 #epChannelPanel{
  overflow:hidden;
}

body.dashboard-v4 #epChannelNav{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:8px!important;
  margin:0!important;
  padding:14px!important;
}

body.dashboard-v4 #epChannelNav .epchan{
  min-height:132px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:flex-start;
  gap:5px;
  padding:13px!important;
  border:1px solid var(--v4-line)!important;
  border-radius:9px!important;
  background:#fff!important;
  color:var(--v4-ink-2)!important;
  text-align:left;
}

body.dashboard-v4 #epChannelNav .epchan[aria-pressed="true"]{
  border-color:#94b5ed!important;
  background:#f4f8ff!important;
  box-shadow:inset 0 0 0 1px #d1e0fb!important;
}

body.dashboard-v4 #epChannelNav .ec-eyebrow{font-size:8px!important;letter-spacing:.07em!important}
body.dashboard-v4 #epChannelNav .ec-h{color:var(--v4-ink)!important;font-size:10.5px!important;font-weight:650!important}
body.dashboard-v4 #epChannelNav .ec-p{
  display:-webkit-box!important;
  overflow:hidden;
  color:var(--v4-muted)!important;
  font-size:8.4px!important;
  line-height:1.45!important;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
}

body.dashboard-v4 #epChannelNav .epchan:is(:hover,:focus-visible) .ec-p{-webkit-line-clamp:unset}
body.dashboard-v4 #epChannelNav .ec-m{margin-top:auto;color:var(--v4-muted)!important;font-size:8px!important;line-height:1.4!important}

body.dashboard-v4 #packPanel>.pbody,
body.dashboard-v4 #sealHomePanel>.pbody,
body.dashboard-v4 #npiPanel>.pbx{padding:14px!important}

body.dashboard-v4 [data-v3-panel="identity"]:not([hidden])>#npiPanel{
  display:block!important;
  margin:0!important;
}

body.dashboard-v4 #sealHomePanel>.pbody:first-of-type{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:9px!important;
}

body.dashboard-v4 #sealHomePanel>.pbody:first-of-type>div{
  min-width:0;
  padding:13px!important;
  border-color:var(--v4-line)!important;
  border-radius:8px!important;
}

body.dashboard-v4 #sealHomePanel h4{font-size:10.5px!important}
body.dashboard-v4 #sealHomePanel p{color:var(--v4-muted)!important;font-size:8.5px!important;line-height:1.5!important}

body.dashboard-v4 .v4-passport-ledger{
  gap:12px;
}

body.dashboard-v4 #passList{
  min-width:0;
}

body.dashboard-v4 #passList>*{
  max-width:100%;
  margin-bottom:9px!important;
  border-radius:9px!important;
}

body.dashboard-v4 .v4-access-surface{overflow:hidden}

body.dashboard-v4 .v4-access-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
}

body.dashboard-v4 .v4-access-grid>article{
  min-height:132px;
  display:grid;
  grid-template-columns:28px minmax(0,1fr);
  grid-template-rows:1fr auto;
  gap:0 10px;
  padding:15px;
  border-right:1px solid var(--v4-line-soft);
  border-bottom:1px solid var(--v4-line-soft);
}

body.dashboard-v4 .v4-access-grid>article:nth-child(2n){border-right:0}
body.dashboard-v4 .v4-access-grid>article:nth-last-child(-n+2){border-bottom:0}
body.dashboard-v4 .v4-access-grid>article>svg{width:20px;height:20px;color:var(--v4-blue)}
body.dashboard-v4 .v4-access-grid>article>span{display:flex;flex-direction:column}
body.dashboard-v4 .v4-access-grid small{color:var(--v4-muted);font-size:8px;text-transform:uppercase;letter-spacing:.06em}
body.dashboard-v4 .v4-access-grid strong{margin-top:4px;font-size:10.5px}
body.dashboard-v4 .v4-access-grid p{margin:6px 0 0;color:var(--v4-muted);font-size:8.5px;line-height:1.5}
body.dashboard-v4 .v4-access-grid button{grid-column:2;justify-self:start;border:0;background:transparent;color:var(--v4-blue);padding:0}

/* Cato has a distinct examination surface, not the generic feature composition. */
body.dashboard-v4 .v4-view-inspection .feature-contract-bar{display:none}

body.dashboard-v4 .v4-cato-tabs{
  min-width:0;
  overflow:hidden;
  border:1px solid var(--v4-line);
  border-radius:10px;
  background:#fff;
}

body.dashboard-v4 .v4-cato-tabs>.workflow-tabs{
  margin:0;
  padding:0 15px;
}

body.dashboard-v4 .v4-cato-tabs>.v3-subtab-panels{
  min-width:0;
}

body.dashboard-v4 .v4-cato-inspection:not([hidden]){
  display:grid;
  grid-template-columns:minmax(0,1.06fr) minmax(330px,.94fr);
  gap:0;
}

body.dashboard-v4 .v4-cato-opening{
  grid-column:1 / -1;
  min-height:58px;
  display:grid!important;
  grid-template-columns:32px auto minmax(0,1fr)!important;
  align-items:center!important;
  gap:9px!important;
  margin:0!important;
  padding:11px 15px!important;
  border-bottom:1px solid var(--v4-line-soft);
}

body.dashboard-v4 .v4-cato-opening>span:first-child{
  width:30px!important;
  height:30px!important;
  display:grid!important;
  place-items:center;
  border-radius:8px!important;
  background:#10233c!important;
  color:#fff!important;
}

body.dashboard-v4 .v4-cato-opening>:is(b,strong){color:var(--v4-ink)!important;font-size:10.5px!important}
body.dashboard-v4 .v4-cato-opening>span:last-child{color:var(--v4-muted)!important;font-size:8.7px!important}

body.dashboard-v4 .v4-cato-actionbar{
  grid-column:1 / -1;
  min-height:86px;
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  align-items:center!important;
  gap:8px!important;
  margin:0!important;
  padding:12px 15px!important;
  border-bottom:1px solid var(--v4-line);
  background:#fbfcfe;
}

body.dashboard-v4 .v4-cato-actionbar>span:first-child,
body.dashboard-v4 .v4-cato-actionbar>strong:first-child{
  grid-column:1 / -1;
  min-width:0;
  font-size:12px!important;
  line-height:1.45!important;
}

body.dashboard-v4 .v4-cato-actionbar :is(button,a){width:100%;min-height:36px!important;justify-content:center;white-space:nowrap}
body.dashboard-v4 .v4-cato-inspection>#inspDrill:empty{display:none!important}

body.dashboard-v4 .v4-cato-practice{
  min-width:0;
  padding:13px;
  border-right:1px solid var(--v4-line);
}

body.dashboard-v4 .v4-cato-practice>.rcard{
  height:100%;
  margin:0!important;
  padding:0!important;
  border:1px solid var(--v4-line)!important;
  border-radius:9px!important;
}

body.dashboard-v4 .v4-cato-practice>.rcard>div:not(.rcard-head){padding:10px 13px!important}

body.dashboard-v4 .v4-cato-attestations{
  min-width:0;
  margin:13px!important;
  padding:0!important;
  align-self:start;
  overflow:hidden;
  border:1px solid var(--v4-line)!important;
  border-radius:9px!important;
}

body.dashboard-v4 .v4-cato-attestations>div:first-child{
  min-height:58px;
  margin:0!important;
  padding:12px 14px;
  border-bottom:1px solid var(--v4-line-soft);
}

body.dashboard-v4 .v4-cato-attestations .rcard-title{display:block;font-size:10.5px!important}
body.dashboard-v4 .v4-cato-attestations .rcard-cat{display:block;margin-top:3px;color:var(--v4-muted)!important;font-size:8.4px!important}

body.dashboard-v4 .v4-attestation-row{
  width:100%;
  min-width:0;
  min-height:64px;
  display:grid!important;
  grid-template-columns:18px minmax(0,1fr) auto!important;
  align-items:start!important;
  gap:9px!important;
  box-sizing:border-box;
  padding:10px 14px!important;
  border-top:0!important;
  border-bottom:1px solid var(--v4-line-soft);
}

body.dashboard-v4 .v4-attestation-row:last-child{border-bottom:0}
body.dashboard-v4 .v4-attestation-row>input{width:15px!important;height:15px!important;margin:2px 0 0!important;accent-color:var(--v4-blue)}
body.dashboard-v4 .v4-attestation-row>span{display:flex;min-width:0!important;width:auto!important;flex-direction:column}
body.dashboard-v4 .v4-attestation-row>span>b{display:block;color:var(--v4-ink)!important;font-size:9.2px!important;line-height:1.4!important}
body.dashboard-v4 .v4-attestation-row>span>span{display:block!important;margin:3px 0 0!important;color:var(--v4-muted)!important;font-size:8.2px!important;line-height:1.4!important}
body.dashboard-v4 .v4-attestation-row>label{min-width:max-content;max-width:none;white-space:nowrap!important;color:var(--v4-blue)!important;font-size:8.7px!important;padding-top:2px!important}

body.dashboard-v4 .v4-cato-observations:not([hidden]){
  display:grid;
  grid-template-columns:minmax(280px,.76fr) minmax(0,1.24fr);
  gap:12px;
  padding:13px;
}

body.dashboard-v4 .v4-cato-observations>#inspQPanel{grid-column:1 / -1}
body.dashboard-v4 .v4-cato-observations>.rcard{overflow:hidden;margin:0!important;padding:0!important;border:1px solid var(--v4-line)!important}
body.dashboard-v4 .v4-cato-history,
body.dashboard-v4 .v4-cato-scope{padding:14px}

/* Vera keeps its own assistant anatomy. */
body.dashboard-v4 .v4-view-vera .feature-contract-bar{display:none}

body.dashboard-v4 .v4-vera-source{display:none!important}

body.dashboard-v4 .v4-view-vera [data-v3-panel="workspace"]:not([hidden]){display:block}
body.dashboard-v4 .v4-view-vera [data-v3-panel="briefing"]:not([hidden]){display:block;padding:0}

body.dashboard-v4 .v4-vera-briefing,
body.dashboard-v4 .v4-vera-chat{
  min-width:0;
  overflow:hidden;
  margin:0!important;
  border:1px solid var(--v4-line)!important;
  border-radius:10px!important;
}

body.dashboard-v4 .v4-vera-briefing{width:100%;padding:0!important}
body.dashboard-v4 .v4-vera-briefing .qdesk-top{min-height:58px;padding:11px 14px;border-bottom:1px solid var(--v4-line-soft)}
body.dashboard-v4 .v4-vera-briefing .qdesk-bar{padding:10px 14px;border-bottom:1px solid var(--v4-line-soft);background:#fbfcfe}
body.dashboard-v4 .v4-vera-briefing .qd-quiet{margin:12px 14px!important;padding:10px!important;border-radius:8px!important}
body.dashboard-v4 .v4-vera-briefing .qd-watch{margin:0 14px 12px!important}
body.dashboard-v4 .v4-vera-briefing .qd-card{margin:0 14px 12px!important;border-radius:8px!important}
body.dashboard-v4 .v4-vera-task{align-items:flex-start!important;gap:10px!important;padding:11px 12px!important}
body.dashboard-v4 .v4-vera-task .body{min-width:0!important;flex:1}
body.dashboard-v4 .v4-vera-task .t{font-size:9.5px!important;line-height:1.4!important}
body.dashboard-v4 .v4-vera-task .d{font-size:8.5px!important;line-height:1.45!important}
body.dashboard-v4 .v4-vera-task .qd-ex-acts{flex:0 0 auto!important;gap:4px!important}

body.dashboard-v4 .v4-vera-chat .vdchat-head{display:none!important}
body.dashboard-v4 .v4-vera-chat .vdchat-body{min-height:600px;display:grid!important;grid-template-columns:230px minmax(0,1fr)}
body.dashboard-v4 .v4-vera-chat .vdside{width:auto!important;min-width:0!important;border-right:1px solid var(--v4-line)!important;background:#fbfcfe!important;padding:14px!important}
body.dashboard-v4 .v4-vera-chat .vdmain{min-width:0!important;min-height:600px!important;display:flex!important;flex:1!important;flex-direction:column!important;padding:22px!important}
body.dashboard-v4 .v4-vera-chat .vdthread{min-width:0!important}
body.dashboard-v4 .v4-vera-chat .vdchips{padding:12px 0!important}
body.dashboard-v4 .v4-vera-chat .vdinput{margin:auto 0 0!important;border-color:var(--v4-line)!important;border-radius:8px!important}

/* Developer depth stays complete but does not dominate the credentials screen. */
body.dashboard-v4 .v4-api-credentials{padding:0!important;overflow:hidden}
body.dashboard-v4 .v4-api-credentials>:not(.v4-api-reference){margin-right:15px!important;margin-left:15px!important}
body.dashboard-v4 .v4-api-credentials>.v4-api-reference{margin:0 0 15px;border-bottom:1px solid var(--v4-line)}
body.dashboard-v4 .v4-api-reference>summary{
  min-height:62px;
  display:grid;
  grid-template-columns:28px minmax(0,1fr) 18px;
  align-items:center;
  gap:10px;
  padding:12px 15px;
  cursor:pointer;
  list-style:none;
  background:#fbfcfe;
}
body.dashboard-v4 .v4-api-reference>summary::-webkit-details-marker{display:none}
body.dashboard-v4 .v4-api-reference>summary>svg{width:18px;height:18px;color:var(--v4-blue)}
body.dashboard-v4 .v4-api-reference>summary>svg:last-child{width:15px;height:15px;color:var(--v4-muted);transition:transform .16s ease}
body.dashboard-v4 .v4-api-reference[open]>summary>svg:last-child{transform:rotate(180deg)}
body.dashboard-v4 .v4-api-reference>summary>span{display:flex;min-width:0;flex-direction:column}
body.dashboard-v4 .v4-api-reference>summary strong{color:var(--v4-ink);font-size:11px}
body.dashboard-v4 .v4-api-reference>summary small{margin-top:3px;color:var(--v4-muted);font-size:8.6px;line-height:1.4}
body.dashboard-v4 .v4-api-reference:not([open])>:not(summary){display:none!important}
body.dashboard-v4 .v4-api-reference>:not(summary){margin-right:15px!important;margin-left:15px!important}
body.dashboard-v4 .v4-api-reference>h4{margin-top:15px!important}
body.dashboard-v4 .v4-api-reference>.v4-scroll-region{margin-bottom:15px!important}

/* Feature-specific live roots retain their behavior but use clean application surfaces. */
body.dashboard-v4 .document-workspace .dashmain,
body.dashboard-v4 .receiving-workspace .rg-workbench,
body.dashboard-v4 .screen-workspace .dashmain,
body.dashboard-v4 .routing-workspace #routingDock,
body.dashboard-v4 .supplier-workspace .v4-dynamic-root,
body.dashboard-v4 .verified-workspace #supWrap,
body.dashboard-v4 .place-order-workspace #ordBody,
body.dashboard-v4 .order-channel-workspace #ochBody{
  min-width:0;
  gap:12px!important;
}

body.dashboard-v4 .lot-workspace .lotsum,
body.dashboard-v4 .receiving-workspace .tiles,
body.dashboard-v4 .watch-workspace .tiles{
  gap:8px!important;
}

body.dashboard-v4 .lot-workspace .lotsum>*,
body.dashboard-v4 .receiving-workspace .tiles>*,
body.dashboard-v4 .watch-workspace .tiles>*{
  min-height:74px;
  border-color:var(--v4-line)!important;
  border-radius:9px!important;
  background:#fff!important;
  box-shadow:none!important;
}

body.dashboard-v4 .watch-workspace .v3-monitoring-tabs,
body.dashboard-v4 .receiving-workspace .v3-receiving-tabs{
  min-width:0;
  overflow:hidden;
  border:1px solid var(--v4-line);
  border-radius:10px;
  background:#fff;
}

body.dashboard-v4 .watch-workspace .v3-monitoring-tabs>.workflow-tabs,
body.dashboard-v4 .receiving-workspace .v3-receiving-tabs>.workflow-tabs{
  margin:0;
  padding:0 14px;
}

body.dashboard-v4 .watch-workspace .v3-subtab-panel,
body.dashboard-v4 .receiving-workspace .v3-subtab-panel{
  padding:12px;
}

body.dashboard-v4 .claim-check-workspace [data-v3-panel="workbench"],
body.dashboard-v4 .claims-register-workspace [data-v3-panel="register"]{
  grid-template-columns:minmax(340px,.86fr) minmax(0,1.14fr);
  align-items:start;
}

body.dashboard-v4 .claim-check-workspace .feature-contract-bar,
body.dashboard-v4 .claims-register-workspace .feature-contract-bar{
  grid-column:1 / -1;
}

body.dashboard-v4 .claim-check-workspace #ccSummary,
body.dashboard-v4 .claim-check-workspace #ccResults{
  min-width:0;
}

body.dashboard-v4 .v3-requirements-surface{
  min-width:0;
  overflow:hidden;
  border-color:var(--v4-line)!important;
  border-radius:10px!important;
  background:#fff!important;
}

body.dashboard-v4 .v3-requirement-row{
  grid-template-columns:minmax(0,1fr) 105px 86px;
  min-height:64px;
  padding:10px 15px;
}

body.dashboard-v4 .v3-requirement-note{border-radius:8px!important;background:#f7faff!important}

@media(max-width:1220px){
  body.dashboard-v4 .feature-contract-bar .v3-contract-grid{grid-template-columns:minmax(0,1fr) 120px 190px}
  body.dashboard-v4 .v4-vera-chat .vdchat-body{min-height:470px}
  body.dashboard-v4 .claim-check-workspace [data-v3-panel="workbench"],
  body.dashboard-v4 .claims-register-workspace [data-v3-panel="register"]{grid-template-columns:1fr}
  body.dashboard-v4 .claim-check-workspace .feature-contract-bar,
  body.dashboard-v4 .claims-register-workspace .feature-contract-bar{grid-column:auto}
}

@media(max-width:1020px){
  body.dashboard-v4 .v4-cato-inspection:not([hidden]){grid-template-columns:1fr}
  body.dashboard-v4 .v4-cato-practice{border-right:0;border-bottom:1px solid var(--v4-line)}
  body.dashboard-v4 .v4-cato-observations:not([hidden]){grid-template-columns:1fr}
  body.dashboard-v4 #epChannelNav{grid-template-columns:1fr 1fr!important}
  body.dashboard-v4 #sealHomePanel>.pbody:first-of-type{grid-template-columns:1fr!important}
}

@media(max-width:820px){
  body.dashboard-v4 .workflow-storage-strip{
    grid-template-columns:repeat(5,minmax(132px,1fr));
    overflow-x:auto;
  }
  body.dashboard-v4 .workflow-storage-strip>.v3-strip-item{border-right:1px solid var(--v4-line-soft)}
  body.dashboard-v4 .feature-contract-bar .v3-contract-grid,
  body.dashboard-v4 .v3-requirement-row{grid-template-columns:1fr}
  body.dashboard-v4 .feature-contract-bar .v3-contract-grid>span{min-height:50px;border-right:0;border-bottom:1px solid var(--v4-line-soft)}
  body.dashboard-v4 .feature-contract-bar .v3-contract-grid>span:last-child{border-bottom:0}
  body.dashboard-v4 #epPrefillRow.v4-source-picker{grid-template-columns:1fr 1fr}
  body.dashboard-v4 #epChannelNav{grid-template-columns:1fr!important}
  body.dashboard-v4 .v4-access-grid{grid-template-columns:1fr}
  body.dashboard-v4 .v4-access-grid>article{border-right:0;border-bottom:1px solid var(--v4-line-soft)!important}
  body.dashboard-v4 .v4-access-grid>article:last-child{border-bottom:0!important}
  body.dashboard-v4 .v4-delivery-note{grid-template-columns:24px minmax(0,1fr)}
  body.dashboard-v4 .v4-delivery-note button{grid-column:2;justify-self:start}
  body.dashboard-v4 .v4-cato-actionbar{grid-template-columns:1fr 1fr!important}
  body.dashboard-v4 .v4-cato-actionbar>span:first-child,
  body.dashboard-v4 .v4-cato-actionbar>strong:first-child{grid-column:1 / -1}
  body.dashboard-v4 .v4-vera-chat .vdside{display:none!important}
  body.dashboard-v4 .v4-vera-chat .vdchat-body{min-height:430px}
  body.dashboard-v4 .v4-entitlement-gate{grid-template-columns:32px minmax(0,1fr)}
  body.dashboard-v4 .v4-entitlement-gate button{grid-column:2;width:100%}
}

@media(max-width:560px){
  body.dashboard-v4 .v3-workflow-main.feature-workspace{gap:11px;padding-bottom:80px}
  body.dashboard-v4 .v3-workflow-main>.v3-workspace-tabs>.workflow-tabs,
  body.dashboard-v4 .v4-cato-tabs>.workflow-tabs{gap:16px}
  body.dashboard-v4 #epModes{grid-template-columns:1fr}
  body.dashboard-v4 #epPrefillRow.v4-source-picker{grid-template-columns:1fr 1fr}
  body.dashboard-v4 .v4-cato-actionbar{grid-template-columns:1fr!important}
  body.dashboard-v4 .v4-cato-opening{grid-template-columns:32px minmax(0,1fr)!important}
  body.dashboard-v4 .v4-cato-opening>:is(b,strong){align-self:center}
  body.dashboard-v4 .v4-cato-opening>span:last-child{grid-column:2}
  body.dashboard-v4 .v4-cato-actionbar>*{width:100%}
  body.dashboard-v4 .v4-cato-actionbar :is(button,a){justify-content:center}
  body.dashboard-v4 .v4-attestation-row{grid-template-columns:18px minmax(0,1fr)!important}
  body.dashboard-v4 .v4-attestation-row>label{grid-column:2;justify-self:start}
  body.dashboard-v4 .v4-vera-task{display:grid!important;grid-template-columns:1fr!important}
  body.dashboard-v4 .v4-vera-task .qd-ex-acts{width:100%;flex-wrap:wrap!important}
  body.dashboard-v4 .v4-vera-task .qd-ex-acts>*{flex:1}
}
