/* Shared institutional UI. Fable 5.2 design, reviewed integration. */
@font-face{font-family:Manrope;src:url('/brand/manrope-main.woff2') format('woff2');font-style:normal;font-weight:200 800;font-display:swap}
@font-face{font-family:Sora;src:url('/brand/sora-latin.woff2') format('woff2');font-style:normal;font-weight:100 800;font-display:swap}
@font-face{font-family:'IBM Plex Mono';src:url('/brand/plex-mono.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}

/* DNA Protocol shared visual foundation: presentation only, load last */
/* 1. Palette primitives: dark default */
html[data-product]{
  color-scheme:dark;
  --dp-bg:#0b0e14;--dp-surface:#121722;--dp-raised:#182030;--dp-well:#0e121a;--dp-control:#0e121a;
  --dp-text:#e9edf4;--dp-muted:#aeb7c7;--dp-faint:#8d98ab;
  --dp-rule:#232b3a;--dp-line:#2e384a;--dp-rule-soft:#1a2130;--dp-control-border:#5f6d88;
  --dp-accent:#63d9e9;--dp-accent-hover:#8be6f2;--dp-accent-ink:#7cdfec;--dp-on-accent:#04222a;--dp-accent-soft:rgba(99,217,233,.1);
  --dp-violet:#a99df6;--dp-pass:#4fcf93;--dp-fail:#f47c7f;--dp-caution:#e8b858;
  --dp-shadow:0 1px 2px rgba(0,0,0,.36);
  --dp-font-head:'Sora',system-ui,sans-serif;--dp-font-body:'Manrope',system-ui,sans-serif;
  --dp-font-mono:'IBM Plex Mono','Plex Mono',ui-monospace,Menlo,monospace;
  --dp-r-sm:8px;--dp-r-lg:12px;--dp-ease:120ms ease;
  background:var(--dp-bg);scrollbar-color:var(--dp-line) transparent;-webkit-text-size-adjust:100%;
}
/* 2. Palette primitives: light theme */
html[data-product][data-theme='light']{
  color-scheme:light;
  --dp-bg:#f4f5f7;--dp-surface:#ffffff;--dp-raised:#f8f9fb;--dp-well:#eef1f5;--dp-control:#ffffff;
  --dp-text:#141a24;--dp-muted:#465165;--dp-faint:#5f6b7d;
  --dp-rule:#dfe3ea;--dp-line:#d0d6e0;--dp-rule-soft:#e9ecf1;--dp-control-border:#768296;
  --dp-accent:#0b7285;--dp-accent-hover:#095c6c;--dp-accent-ink:#0a6373;--dp-on-accent:#ffffff;--dp-accent-soft:rgba(11,114,133,.08);
  --dp-violet:#5646c0;--dp-pass:#15734a;--dp-fail:#b4232a;--dp-caution:#8a5a00;
  --dp-shadow:0 1px 2px rgba(16,24,40,.06);
}
/* 3. Legacy token aliases, re-declared on body and shells to supersede older definitions */
html[data-product],html[data-product] :is(body,.bridge-shell,.ballot-shell,.dna-dashboard){
  --bg:var(--dp-bg);--surface:var(--dp-surface);--raised:var(--dp-raised);--well:var(--dp-well);
  --text:var(--dp-text);--muted:var(--dp-muted);--faint:var(--dp-faint);
  --rule:var(--dp-rule);--line:var(--dp-line);--rule-soft:var(--dp-rule-soft);
  --control-border:var(--dp-control-border);--control:var(--dp-control);
  --accent:var(--dp-accent);--accent-hover:var(--dp-accent-hover);--accent-ink:var(--dp-on-accent);--on-accent:var(--dp-on-accent);
  --violet:var(--dp-violet);--pass:var(--dp-pass);--good:var(--dp-pass);--fail:var(--dp-fail);--danger:var(--dp-fail);--caution:var(--dp-caution);
  --nx-bg:var(--dp-bg);--nx-panel:var(--dp-surface);--nx-panel-2:var(--dp-raised);--nx-text:var(--dp-text);--nx-muted:var(--dp-muted);
  --nx-line:var(--dp-rule);--nx-accent:var(--dp-accent);--nx-green:var(--dp-pass);--nx-red:var(--dp-fail);
  --dna-bg:var(--dp-bg);--dna-surface:var(--dp-surface);--dna-text:var(--dp-text);--dna-muted:var(--dp-muted);
  --dna-border:var(--dp-rule);--dna-accent:var(--dp-accent);
  --sidebar-width:256px;--topbar-height:72px;
}
/* 4. Base canvas and typography */
html[data-product] body{
  background:var(--dp-bg);color:var(--dp-text);
  font-family:var(--dp-font-body);font-size:1rem;line-height:1.6;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
}
html[data-product] :is(.bridge-shell,.ballot-shell,.dna-dashboard){background:var(--dp-bg);color:var(--dp-text)}
html[data-product] ::selection{background:var(--dp-accent);color:var(--dp-on-accent)}
html[data-product] :is(h1,h2,h3,h4){
  font-family:var(--dp-font-head);font-weight:600;line-height:1.2;letter-spacing:-.015em;
  color:var(--dp-text);text-wrap:balance;
}
html[data-product] :is(.hero,.page-intro,.nx-hero,.dna-intro-copy,.ballot-main) h1{
  font-size:clamp(1.75rem,1.3rem + 1.6vw,2.25rem);line-height:1.15;letter-spacing:-.022em;
}
html[data-product] h2{font-size:clamp(1.25rem,1.1rem + .6vw,1.5rem)}
html[data-product] h3{font-size:1.125rem;letter-spacing:-.01em}
html[data-product] :is(.hero-copy,.page-intro p,.nx-hero p,.dna-intro-copy p){
  max-width:68ch;font-size:1.0625rem;line-height:1.65;color:var(--dp-muted);
}
html[data-product] small{font-size:.875rem}
html[data-product] :is(code,kbd,samp,pre){font-family:var(--dp-font-mono);font-size:.875rem}
html[data-product] :is(.hero-copy,.page-intro,.nx-hero,.dna-intro-copy,.empty-state,.trust-boundary) a{
  color:var(--dp-accent-ink);text-decoration-thickness:1px;text-underline-offset:3px;
}
/* 5. Metadata labels */
html[data-product] :is(.eyebrow,.nav-label,.nav-caption,.panel-label,.ballot-nav-label,.nx-side-label,.dna-section-label,.dna-eyebrow,.dna-navigation-caption){
  font-family:var(--dp-font-mono);font-size:.875rem;font-weight:500;line-height:1.4;
  letter-spacing:.06em;text-transform:uppercase;color:var(--dp-faint);
}
html[data-product] .panel-number{
  font-family:var(--dp-font-mono);font-size:.875rem;font-weight:500;
  font-variant-numeric:tabular-nums;color:var(--dp-accent-ink);
}
/* 6. Application chrome: sidebars, top bars, brand (logo untouched) */
html[data-product] :is(.workspace-sidebar,.command-nav,.ballot-sidebar,.nx-sidebar,.dna-sidebar,.dna-mobile-sidebar){
  background:var(--dp-surface);color:var(--dp-text);box-shadow:inset -1px 0 0 var(--dp-rule);
}
html[data-product] :is(.workspace-topbar,.console-header,.ballot-topbar,.site-header,.dna-dashboard-header){
  background:var(--dp-surface);color:var(--dp-text);box-shadow:inset 0 -1px 0 var(--dp-rule);
}
html[data-product] :is(.workspace-brand,.console-brand,.ballot-brand,.nx-brand,.dna-sidebar-brand){
  font-family:var(--dp-font-head);font-weight:600;letter-spacing:-.01em;color:var(--dp-text);text-decoration:none;
}
html[data-product] :is(.workspace-product,.product-label,.ballot-product){
  font-family:var(--dp-font-head);font-size:1rem;font-weight:600;letter-spacing:-.005em;color:var(--dp-text);
}
html[data-product] .product-icon{color:var(--dp-accent-ink);border-radius:var(--dp-r-sm)}
/* 7. Navigation items */
html[data-product] :is(.workspace-nav a,.ecosystem-nav a,.nav-item,.ballot-nav-item,.nx-side-nav a,.dna-navigation button,.dna-navigation a){
  min-height:44px;border-radius:var(--dp-r-sm);background-color:transparent;
  font-family:var(--dp-font-body);font-size:1rem;font-weight:500;line-height:1.35;
  color:var(--dp-muted);text-decoration:none;
  transition:background-color var(--dp-ease),color var(--dp-ease),box-shadow var(--dp-ease);
}
html[data-product] :is(.workspace-nav a,.ecosystem-nav a,.nav-item,.ballot-nav-item,.nx-side-nav a,.dna-navigation button,.dna-navigation a):hover{
  background-color:var(--dp-raised);color:var(--dp-text);
}
html[data-product] :is(.workspace-nav .is-active,.nav-item.active,.ballot-nav-item.active,.nx-side-nav a[aria-current='page'],.dna-navigation .is-active,.workspace-nav a[aria-current='page'],.dna-navigation a[aria-current='page']){
  background-color:var(--dp-accent-soft);color:var(--dp-text);font-weight:600;
  box-shadow:inset 3px 0 0 var(--dp-accent);
}
/* 8. Surface hierarchy: primary cards */
html[data-product] :is(.flow-panel,.workflow-card,.ledger-card,.context-card,.flow-inspector,.exchange-map,.primary-panel,.context-panel,.protocol-grid>:where(article),.trust-boundary,.ballot-flow,.ballot-panel,.evidence-panel,.result-panel,.nx-flow,.nx-inspector,.dna-card,:where(.nx-app) .panel,:where(.nx-app) .card){
  background:var(--dp-surface);color:var(--dp-text);
  border:1px solid var(--dp-rule);border-radius:var(--dp-r-lg);box-shadow:var(--dp-shadow);
}
/* Secondary context surfaces sit one step back */
html[data-product] :is(.context-card,.context-panel,.flow-inspector,.nx-inspector,.evidence-panel,.trust-boundary){
  background:var(--dp-well);box-shadow:none;
}
/* Stat cells: quiet wells, tabular figures */
html[data-product] :is(.summary-item,.overview-grid>:where(div),.ballot-overview>:where(div),.nx-stat,.dna-metric){
  background:var(--dp-well);color:var(--dp-text);
  border:1px solid var(--dp-rule-soft);border-radius:var(--dp-r-sm);font-variant-numeric:tabular-nums;
}
/* Flow nodes and steps */
html[data-product] :is(.flow-node,.ballot-flow-step,.nx-flow-node){
  background:var(--dp-raised);color:var(--dp-text);
  border:1px solid var(--dp-line);border-radius:var(--dp-r-sm);
  transition:border-color var(--dp-ease),background-color var(--dp-ease),box-shadow var(--dp-ease);
}
html[data-product] :is(.flow-node,.ballot-flow-step,.nx-flow-node):is(button,a,[role='button'],[tabindex]):hover{
  border-color:var(--dp-control-border);
}
html[data-product] :is(.flow-node,.ballot-flow-step,.nx-flow-node):is(.is-active,.active,[aria-selected='true'],[aria-pressed='true'],[aria-current]){
  background:var(--dp-accent-soft);border-color:var(--dp-accent);box-shadow:inset 0 0 0 1px var(--dp-accent);
}
html[data-product] .empty-state{
  background:var(--dp-well);color:var(--dp-muted);font-size:1rem;
  border:1px dashed var(--dp-line);border-radius:var(--dp-r-lg);
}
/* Reveal blocks readable on load; keyframe entrances still play */
html[data-product] body.nx-app .reveal{opacity:1;transform:none}
/* 9. Buttons: appearance only, no padding or width */
:where(html[data-product]) :where(button,input,select,textarea){font-family:inherit}
html[data-product] :is(.btn,.btn-secondary,.button,.vault-button,button.primary,.theme-toggle,.identity-theme-toggle){
  min-height:44px;border:1px solid var(--dp-control-border);border-radius:var(--dp-r-sm);
  background-color:var(--dp-raised);color:var(--dp-text);
  font-family:var(--dp-font-body);font-size:1rem;font-weight:600;line-height:1.2;
  text-decoration:none;cursor:pointer;
  transition:background-color var(--dp-ease),border-color var(--dp-ease),color var(--dp-ease);
}
html[data-product] :is(.theme-toggle,.identity-theme-toggle){min-width:44px}
html[data-product] :is(.btn,.btn-secondary,.button,.vault-button,button.primary,.theme-toggle,.identity-theme-toggle):hover{
  background-color:var(--dp-well);border-color:var(--dp-accent);
}
html[data-product] :is(.btn-primary,.button--primary,button.primary){
  background-color:var(--dp-accent);border-color:var(--dp-accent);color:var(--dp-on-accent);
}
html[data-product] :is(.btn-primary,.button--primary,button.primary):hover{
  background-color:var(--dp-accent-hover);border-color:var(--dp-accent-hover);color:var(--dp-on-accent);
}
html[data-product] :is(.btn,.btn-secondary,.btn-primary,.button,.button--primary,.vault-button,button.primary,.theme-toggle,.identity-theme-toggle):is(:disabled,[aria-disabled='true']){
  background-color:var(--dp-well);color:var(--dp-faint);
  border:1px dashed var(--dp-control-border);box-shadow:none;cursor:not-allowed;
}
/* 10. Fields */
html[data-product] :where(.field,.primary-panel,.nx-app,.dna-card) :is(input,select,textarea):not([type='checkbox'],[type='radio'],[type='range'],[type='file'],[type='color'],[type='submit'],[type='button'],[type='reset'],[type='image']){
  min-height:44px;border:1px solid var(--dp-control-border);border-radius:var(--dp-r-sm);
  background-color:var(--dp-control);color:var(--dp-text);font-size:1rem;line-height:1.4;
  transition:border-color var(--dp-ease),background-color var(--dp-ease);
}
html[data-product] :where(.field,.primary-panel,.nx-app,.dna-card) :is(input,textarea)::placeholder{color:var(--dp-faint);opacity:1}
html[data-product] :where(.field,.primary-panel,.nx-app,.dna-card) :is(input,select,textarea):hover{border-color:var(--dp-muted)}
html[data-product] :where(.field,.primary-panel,.nx-app,.dna-card) :is(input,select,textarea):focus{border-color:var(--dp-accent)}
html[data-product] :where(.field,.primary-panel,.nx-app,.dna-card) :is(input,select,textarea)[aria-invalid='true']{border-color:var(--dp-fail)}
html[data-product] :where(.field,.primary-panel,.nx-app,.dna-card) :is(input,select,textarea):disabled:not([type='checkbox'],[type='radio'],[type='range'],[type='file'],[type='color'],[type='submit'],[type='button'],[type='reset'],[type='image']){
  background-color:var(--dp-well);color:var(--dp-faint);
  border:1px dashed var(--dp-control-border);cursor:not-allowed;
}
html[data-product] :is(input[type='checkbox'],input[type='radio'],input[type='range']){accent-color:var(--dp-accent)}
/* 11. Focus visibility */
html[data-product] :is(a,button,input,select,textarea,summary,[role='button'],[tabindex]):focus-visible{
  outline:2px solid var(--dp-accent);outline-offset:2px;
}
html[data-product] :is(input,select,textarea):focus-visible{outline-offset:1px}
/* 12. Reduced motion */
@media (prefers-reduced-motion:reduce){
  html[data-product] :is(.workspace-nav a,.ecosystem-nav a,.nav-item,.ballot-nav-item,.nx-side-nav a,.dna-navigation button,.dna-navigation a,.flow-node,.ballot-flow-step,.nx-flow-node,.btn,.btn-secondary,.button,.vault-button,button.primary,.theme-toggle,.identity-theme-toggle,input,select,textarea){
    transition:none;
  }
}


/* DNA Protocol layout adapter: Vault, Sandbox, zkBanking. Loaded after source styles. */
/* Identity (Vault + Sandbox): variables live on .dna-dashboard so body.identity-pipeline pages are untouched. */
html[data-product]:is([data-product="vault" i],[data-product="sandbox" i]) #root .dna-dashboard { --dna-sidebar:256px; --sidebar-width:256px; --topbar-height:72px; --gutter:clamp(20px,2.7vw,40px); font:400 16px/1.5 var(--dp-font-body); }
@media (min-width:851px) {
  html[data-product]:is([data-product="vault" i],[data-product="sandbox" i]) #root .dna-dashboard { grid-template-columns:var(--dna-sidebar) minmax(0,1fr); }
}
html[data-product]:is([data-product="vault" i],[data-product="sandbox" i]) #root .dna-dashboard .dna-sidebar-brand { min-height:var(--topbar-height); }
html[data-product]:is([data-product="vault" i],[data-product="sandbox" i]) #root .dna-dashboard .dna-brand img { width:188px; max-width:100%; height:auto; object-fit:contain; }
html[data-product]:is([data-product="vault" i],[data-product="sandbox" i]) #root .dna-dashboard .dna-dashboard-header { height:var(--topbar-height); min-height:var(--topbar-height); padding:0 var(--gutter); }
html[data-product]:is([data-product="vault" i],[data-product="sandbox" i]) #root .dna-dashboard .dna-header-actions { flex-shrink:0; }
html[data-product]:is([data-product="vault" i],[data-product="sandbox" i]) #root .dna-dashboard .dna-header-actions > a { white-space:nowrap; }
html[data-product]:is([data-product="vault" i],[data-product="sandbox" i]) #root .dna-dashboard .dna-dashboard-main { width:100%; max-width:none; margin:0; padding:var(--gutter); }
html[data-product]:is([data-product="vault" i],[data-product="sandbox" i]) #root .dna-dashboard .dna-dashboard-intro { margin-bottom:32px; gap:24px; }
html[data-product]:is([data-product="vault" i],[data-product="sandbox" i]) #root .dna-dashboard .dna-dashboard-intro h1 { margin:8px 0; font:600 36px/1.2 var(--dp-font-head); }
html[data-product]:is([data-product="vault" i],[data-product="sandbox" i]) #root .dna-dashboard .dna-dashboard-intro p { font:400 16px/1.5 var(--dp-font-body); }
html[data-product]:is([data-product="vault" i],[data-product="sandbox" i]) #root .dna-dashboard h2:not(.dna-section-label) { font-size:24px; line-height:1.25; }
html[data-product]:is([data-product="vault" i],[data-product="sandbox" i]) #root .dna-dashboard h3 { font-size:20px; line-height:1.3; }
html[data-product]:is([data-product="vault" i],[data-product="sandbox" i]) #root .dna-dashboard :is(p,li,dt,dd,label,summary,th,td,button,input,select,textarea,small,time,.eyebrow,.vault-kicker,.dna-eyebrow,.action-footnote,.vault-fine) { line-height:1.5; }
html[data-product]:is([data-product="vault" i],[data-product="sandbox" i]) #root .dna-dashboard :is(.panel,.vault-verify,.vault-ledger-panel,.context-card,.vault-stamp,.vault-context-note,.dna-metrics,.vault-activity) { padding:24px; }
html[data-product]:is([data-product="vault" i],[data-product="sandbox" i]) #root .dna-dashboard :is(.context-column,.vault-context) { gap:24px; }
html[data-product]:is([data-product="vault" i],[data-product="sandbox" i]) #root .dna-dashboard .dna-metrics { margin-bottom:24px; }
html[data-product]:is([data-product="vault" i],[data-product="sandbox" i]) #root .dna-dashboard :is(input:not([type=checkbox]):not([type=radio]),select) { min-height:44px; }
html[data-product]:is([data-product="vault" i],[data-product="sandbox" i]) #root .dna-dashboard button { max-width:100%; overflow-wrap:normal; word-break:normal; }
@media (max-width:600px) {
  html[data-product]:is([data-product="vault" i],[data-product="sandbox" i]) #root .dna-dashboard .dna-dashboard-intro { margin-bottom:24px; }
  html[data-product]:is([data-product="vault" i],[data-product="sandbox" i]) #root .dna-dashboard .dna-dashboard-intro h1 { font-size:28px; }
  html[data-product]:is([data-product="vault" i],[data-product="sandbox" i]) #root .dna-dashboard :is(.panel,.access-panel,.vault-verify,.vault-ledger-panel,.context-card,.vault-stamp,.vault-context-note,.dna-metrics,.vault-activity) { padding:18px; }
}
@media (max-width:380px) {
  html[data-product]:is([data-product="vault" i],[data-product="sandbox" i]) #root .dna-dashboard { --gutter:16px; }
}

/* zkBanking: fixed sidebar, topbar, main offset and footer all derive from these variables; the 850px off-canvas pattern is unchanged. */
html[data-product="zkbanking" i] { --sidebar-width:256px; --topbar-height:72px; --gutter:clamp(20px,2.7vw,40px); }
html[data-product="zkbanking" i] body { font:400 16px/1.5 Manrope,Arial,sans-serif; }
html[data-product="zkbanking" i] .workspace-brand { min-height:var(--topbar-height); }
html[data-product="zkbanking" i] .workspace-logo { width:188px; max-width:100%; height:auto; object-fit:contain; }
html[data-product="zkbanking" i] .workspace-breadcrumb { min-width:0; }
html[data-product="zkbanking" i] .topbar-right { flex-shrink:0; }
html[data-product="zkbanking" i] .overview { padding-top:var(--gutter); }
html[data-product="zkbanking" i] .overview-title { margin-bottom:24px; }
html[data-product="zkbanking" i] .overview-title h1 { font-size:36px; line-height:1.2; }
html[data-product="zkbanking" i] :is(.section-heading,.how-section) h2 { font-size:24px; line-height:1.25; }
html[data-product="zkbanking" i] :is(.panel-heading h3,.holder-heading h3,.explanation-list h3,.context-panel > h3) { font-size:20px; line-height:1.3; }
html[data-product="zkbanking" i] :is(.overview-title > div > p:last-child,.panel-heading p,.form-action > p,.flow-inspector p,.holder-private > p,.lane-feedback,.inline-warning,.consent-note,.evidence-boundary,.timing-note,.boundary-panel li,.boundary-panel > p,.context-note > p,.rejection-card > span:not(.rejection-card-top),.how-section > div:first-child > p:last-child,.explanation-list p,.technical-detail > div,.sidebar-foot p) { line-height:1.5; }
html[data-product="zkbanking" i] :is(.work-panel,.context-panel,.rejection-card) { padding:24px; }
html[data-product="zkbanking" i] .session-metrics { margin-bottom:24px; }
html[data-product="zkbanking" i] :is(.workspace-layout,.workflow,.context-sticky) { gap:24px; }
html[data-product="zkbanking" i] :is(.lab-section,.rejection-section) { padding-top:32px; }
html[data-product="zkbanking" i] :is(.button,.theme-switch,.icon-button) { border-radius:8px; }
html[data-product="zkbanking" i] .button { min-width:0; max-width:100%; overflow-wrap:normal; word-break:normal; }
@media (max-width:600px) {
  html[data-product="zkbanking" i] .overview-title h1 { font-size:28px; }
  html[data-product="zkbanking" i] :is(.work-panel,.context-panel,.rejection-card) { padding:18px; }
  html[data-product="zkbanking" i] :is(.lab-section,.rejection-section) { padding-top:24px; }
}
@media (max-width:380px) {
  html[data-product="zkbanking" i] { --gutter:16px; }
}


/* DNA Protocol layout adapter: zkBridge + zkBallot. Loads after product CSS and shared core. */
@font-face{font-family:Manrope;src:url('/brand/manrope-main.woff2') format('woff2');font-weight:200 800;font-style:normal;font-display:swap}
@font-face{font-family:Sora;src:url('/brand/sora-latin.woff2') format('woff2');font-weight:100 800;font-style:normal;font-display:swap}

/* Token aliases: source names -> shared names (resolved per theme by the shared core) */
html[data-product='zkbridge']:root{--line:var(--rule);--faint:var(--muted)}
html[data-product='zkballot']:root{--line:var(--rule);--panel:var(--surface);--subtle:var(--raised);--cyan:var(--accent);--blue:var(--accent);--faint:var(--muted);--dim:var(--muted)}

/* Shared base */
html:is([data-product='zkbridge'],[data-product='zkballot']) body{font-family:Manrope,system-ui,sans-serif;font-size:16px;line-height:1.5}
html:is([data-product='zkbridge'],[data-product='zkballot']) :is(h1,h2,h3,h4){font-family:Sora,system-ui,sans-serif;overflow-wrap:break-word;hyphens:manual}
html:is([data-product='zkbridge'],[data-product='zkballot']) :is(.bridge-shell,.ballot-console){width:100%;max-width:none}
html:is([data-product='zkbridge'],[data-product='zkballot']) :is(.console-body,.console-content){min-width:0}
html[data-product='zkbridge'] .bridge-shell .console-header,
html[data-product='zkballot'] .ballot-console .command-header{height:auto;min-height:72px}

/* zkBridge type, panels, controls */
html[data-product='zkbridge'] .bridge-shell h1{font-size:36px;line-height:1.2}
html[data-product='zkbridge'] .bridge-shell :is(.empty-state h2,.protocol-intro h2){font-size:24px;line-height:1.3}
html[data-product='zkbridge'] .bridge-shell :is(.primary-panel h3,.protocol-grid h3,.trust-boundary h3){font-size:20px;line-height:1.4}
html[data-product='zkbridge'] .bridge-shell p{line-height:1.5}
html[data-product='zkbridge'] .bridge-shell :is(.primary-panel,.context-panel,.protocol-view,.overview-grid>div){padding:24px;border-radius:12px;min-width:0}
html[data-product='zkbridge'] .bridge-shell :is(.primary-panel :is(button,select,input:not([type=checkbox])),.theme-toggle,.inspector-link,.message button){border-radius:8px}

/* zkBallot type, panels, controls */
html[data-product='zkballot'] .ballot-console .control-heading h1{font-size:36px;line-height:1.2}
html[data-product='zkballot'] :is(.ballot-console .workspace-heading h2,.ballot-console .inspector-heading h2,.ballot-console :is(.panel,.empty-panel,.protocol-panel)>h2,.modal>h2){font-size:24px;line-height:1.3}
html[data-product='zkballot'] .ballot-console :is(.protocol-grid h3,.limitations h3,.context-card>h3,.receipt-card>h3,.workspace-guide h3){font-size:20px;line-height:1.4}
html[data-product='zkballot'] .ballot-console p{line-height:1.5}
html[data-product='zkballot'] .ballot-console :is(.panel,.empty-panel,.context-card,.receipt-card,.console-stats>div){padding:24px;border-radius:12px;min-width:0}
html[data-product='zkballot'] :is(.ballot-console,.modal) :is(.primary,.secondary,.icon-button,.theme-toggle,.inspector-toggle,select,textarea,input:not([type=checkbox],[type=radio])){border-radius:8px}

/* Desktop frame: 256px sidebar, 72px topbar, full-width main */
@media (min-width:761px){
  html[data-product='zkbridge'] .bridge-shell,
  html[data-product='zkballot'] .ballot-console{grid-template-columns:256px minmax(0,1fr)}
  html:is([data-product='zkbridge'],[data-product='zkballot']) :is(.command-nav,.command-sidebar){padding:20px 16px}
  html:is([data-product='zkbridge'],[data-product='zkballot']) :is(.command-nav .nav-item,.command-sidebar .nav-link){padding:10px 12px;border-radius:8px}
  html:is([data-product='zkbridge'],[data-product='zkballot']) :is(.product-label,.console-product){margin:24px 0}
  html:is([data-product='zkbridge'],[data-product='zkballot']) :is(.nav-context,.sidebar-context){margin-top:24px;padding-top:24px}
  html[data-product='zkbridge'] .bridge-shell .console-header,
  html[data-product='zkballot'] .ballot-console .command-header{padding:12px clamp(20px,2.7vw,40px)}
  html[data-product='zkbridge'] .bridge-shell .console-main,
  html[data-product='zkballot'] .ballot-console .console-page{padding:clamp(20px,2.7vw,40px) clamp(20px,2.7vw,40px) 0}
  html[data-product='zkbridge'] .bridge-shell .page-heading,
  html[data-product='zkballot'] .ballot-console .control-heading{margin-bottom:32px}
  html[data-product='zkbridge'] .bridge-shell .overview-grid,
  html[data-product='zkballot'] .ballot-console .console-stats{gap:16px;margin-bottom:24px}
  html[data-product='zkbridge'] .bridge-shell :is(.operation-grid,.evidence-grid),
  html[data-product='zkballot'] .ballot-console :is(.workbench,.context-column){gap:24px}
  html[data-product='zkballot'] .ballot-console .workspace-heading{margin:32px 0 24px}
  html[data-product='zkballot'] .ballot-console .workflow-map{margin-bottom:24px}
}

/* Mobile: keep the source inline workspace nav and breakpoints; only normalise type and card padding */
@media (max-width:760px){
  html[data-product='zkbridge'] .bridge-shell h1,
  html[data-product='zkballot'] .ballot-console .control-heading h1{font-size:28px}
  html[data-product='zkbridge'] .bridge-shell :is(.primary-panel,.context-panel,.protocol-view,.overview-grid>div),
  html[data-product='zkballot'] .ballot-console :is(.panel,.empty-panel,.context-card,.receipt-card,.console-stats>div){padding:18px}
}
@media (max-width:390px){
  html[data-product='zkbridge'] .bridge-shell .nav-item{min-width:0;font-size:14px;padding-inline:2px;overflow-wrap:normal;word-break:normal}
}


/* DNA zk workspaces layout adapter: zkProof / zkTransparency / zkGuard. Loads after nextgen.css. */
html:is([data-product=zkproof],[data-product=zktransparency],[data-product=zkguard]):root{--nx-bg:var(--bg);--nx-panel:var(--surface);--nx-raised:var(--raised);--nx-text:var(--text);--nx-muted:var(--muted);--nx-faint:var(--muted);--nx-line:var(--rule);--nx-accent:var(--accent);--nx-control-border:var(--control-border)}
html:is([data-product=zkproof],[data-product=zktransparency],[data-product=zkguard]) body.nx-app{font-family:Manrope,system-ui,sans-serif;font-size:16px;line-height:1.5}
html:is([data-product=zkproof],[data-product=zktransparency],[data-product=zkguard]) body.nx-app .page-shell p{font-size:16px;line-height:1.5}
/* Headings: Sora, shared scale (mobile-first) */
html:is([data-product=zkproof],[data-product=zktransparency],[data-product=zkguard]) .nx-app :is(.hero h1,.intro h1,.lifecycle-intro h1),html:is([data-product=zkproof],[data-product=zktransparency],[data-product=zkguard]) .nx-app #story-title{font-family:Sora,Manrope,system-ui,sans-serif;font-size:28px;line-height:1.2;font-weight:600;overflow-wrap:break-word}
html:is([data-product=zkproof],[data-product=zktransparency],[data-product=zkguard]) .nx-app :is(.section-heading,.method-heading,.overview-content,.panel-top,.panel-title,.input-panel,.lifecycle-panel-heading,.result-top,.report-heading,.nx-flow-heading,.activity-title,.recent-section,.boundary-note) h2{font-family:Sora,Manrope,system-ui,sans-serif;font-size:24px;line-height:1.3;font-weight:600;overflow-wrap:break-word}
html:is([data-product=zkproof],[data-product=zktransparency],[data-product=zkguard]) .nx-app :is(.process-grid,.security-grid,.method-list,.nx-inspector,.tab-intro,.limits-grid,.evidence-row,.guide-item) h3,html:is([data-product=zkproof],[data-product=zktransparency],[data-product=zkguard]) .nx-app .disclosure-grid h2,html:is([data-product=zkproof],[data-product=zktransparency],[data-product=zkguard]) body.nx-app #guide-dialog h3{font-family:Sora,Manrope,system-ui,sans-serif;font-size:20px;line-height:1.4;font-weight:600}
html:is([data-product=zkproof],[data-product=zktransparency],[data-product=zkguard]) .nx-app dialog h2{font-family:Sora,Manrope,system-ui,sans-serif}
/* Uniform controls */
html:is([data-product=zkproof],[data-product=zktransparency],[data-product=zkguard]) .nx-app :is(.primary-button,.secondary-button,.text-button,.quiet-link,.nx-theme,.input-wrap,input:not([type=checkbox]):not([type=radio]),select,textarea),html:is([data-product=zkproof],[data-product=zktransparency],[data-product=zkguard]) .nx-app #example-button{font-family:inherit;border-radius:8px;max-width:100%}
html:is([data-product=zkproof],[data-product=zktransparency],[data-product=zkguard]) .nx-app .nx-side-nav a{border-radius:8px}
/* Panels: 18px mobile padding, 12px radius, 24px gaps */
html:is([data-product=zkproof],[data-product=zktransparency],[data-product=zkguard]) .nx-app :is(.verification-card,.proof-panel,.input-panel,.result-section,.lifecycle-panel,.boundary-note,.nx-inspector,.summary-card),html:is([data-product=zkproof],[data-product=zktransparency],[data-product=zkguard]) .nx-app :is(.process-grid,.security-grid) article,html:is([data-product=zkproof],[data-product=zktransparency],[data-product=zkguard]) .nx-app .disclosure-grid section,html:is([data-product=zkproof],[data-product=zktransparency],[data-product=zkguard]) .nx-connected section.panel{padding:18px}
html:is([data-product=zkproof],[data-product=zktransparency],[data-product=zkguard]) .nx-app :is(.panel,.input-panel,.lifecycle-panel,.result-section,.nx-workflow,.nx-explainer,.boundary-note),html:is([data-product=zkproof],[data-product=zktransparency],[data-product=zkguard]) .nx-app :is(.process-grid,.security-grid) article,html:is([data-product=zkproof],[data-product=zktransparency],[data-product=zkguard]) .nx-app .disclosure-grid section{border-radius:12px}
html:is([data-product=zkproof],[data-product=zktransparency],[data-product=zkguard]) .nx-app :is(.nx-flow-heading,.nx-explainer>summary){padding:14px 18px}
html:is([data-product=zkproof],[data-product=zktransparency],[data-product=zkguard]) .nx-app :is(.workspace,.process-grid,.security-grid,.result-grid,.lifecycle-grid,.disclosure-grid){gap:24px}
html:is([data-product=zkproof],[data-product=zktransparency],[data-product=zkguard]) .nx-app :is(.workspace,.nx-workflow,.lab,.nx-explainer),html:is([data-product=zkproof],[data-product=zktransparency],[data-product=zkguard]) .nx-connected section.panel{margin-bottom:24px}
html:is([data-product=zkproof],[data-product=zktransparency],[data-product=zkguard]) .nx-app .result-section{margin-block:24px}
/* Existing single-column breaks, made shrink-safe */
@media(max-width:1000px){
html:is([data-product=zkproof],[data-product=zktransparency],[data-product=zkguard]) .nx-app :is(.workspace,.input-panel,.method-section,.result-grid,.report-summary,.lifecycle-grid){grid-template-columns:minmax(0,1fr)}
}
@media(max-width:760px){
html:is([data-product=zkproof],[data-product=zktransparency],[data-product=zkguard]) .nx-app :is(.scope-checks,.process-grid,.security-grid,.data-grid,.disclosure-grid,.evidence-strip,.viewer-tools,.layer-controls,.result-data>div),html:is([data-product=zkproof],[data-product=zktransparency],[data-product=zkguard]) .nx-app #policy-form .form-row{grid-template-columns:minmax(0,1fr)}
}
/* Desktop frame: 256px sidebar, 72px topbar, full-width main */
@media(min-width:761px){
html:is([data-product=zkproof],[data-product=zktransparency],[data-product=zkguard]) .nx-layout{grid-template-columns:256px minmax(0,1fr)}
html:is([data-product=zkproof],[data-product=zktransparency],[data-product=zkguard]) .nx-app .nx-sidebar{padding:0 16px 24px}
html:is([data-product=zkproof],[data-product=zktransparency],[data-product=zkguard]) .nx-app .nx-brand{display:flex;align-items:center;flex:none;height:72px;max-width:none;margin:0 -16px 8px;padding:0 24px;border-bottom:1px solid var(--nx-line)}
html:is([data-product=zkproof],[data-product=zktransparency],[data-product=zkguard]) .nx-app .nx-content{--dna-pad:clamp(20px,2.7vw,40px);padding:0 var(--dna-pad)}
html:is([data-product=zkproof],[data-product=zktransparency],[data-product=zkguard]) .nx-app .site-header{height:72px;min-height:72px;width:auto;margin:0 calc(var(--dna-pad)*-1);padding:0 var(--dna-pad);align-items:center}
html:is([data-product=zkproof],[data-product=zktransparency],[data-product=zkguard]) .nx-app :is(.hero h1,.intro h1,.lifecycle-intro h1),html:is([data-product=zkproof],[data-product=zktransparency],[data-product=zkguard]) .nx-app #story-title{font-size:36px}
html:is([data-product=zkproof],[data-product=zktransparency],[data-product=zkguard]) .nx-app :is(.hero,.intro,.lifecycle-intro){padding:32px 0 24px}
html:is([data-product=zkproof],[data-product=zktransparency],[data-product=zkguard]) .nx-app :is(.process-section,.how-section,.method-section,.activity-section,.recent-section){padding:32px 0}
html:is([data-product=zkproof],[data-product=zktransparency],[data-product=zkguard]) .nx-app :is(.verification-card,.proof-panel,.input-panel,.result-section,.lifecycle-panel,.boundary-note,.nx-inspector,.summary-card),html:is([data-product=zkproof],[data-product=zktransparency],[data-product=zkguard]) .nx-app :is(.process-grid,.security-grid) article,html:is([data-product=zkproof],[data-product=zktransparency],[data-product=zkguard]) .nx-app .disclosure-grid section,html:is([data-product=zkproof],[data-product=zktransparency],[data-product=zkguard]) .nx-connected section.panel{padding:24px}
html:is([data-product=zkproof],[data-product=zktransparency],[data-product=zkguard]) .nx-app :is(.nx-flow-heading,.nx-explainer>summary){padding:18px 24px}
html:is([data-product=zkproof],[data-product=zktransparency],[data-product=zkguard]) .nx-app :is(.workspace,.nx-workflow,.lab,.nx-explainer),html:is([data-product=zkproof],[data-product=zktransparency],[data-product=zkguard]) .nx-connected section.panel{margin-bottom:32px}
html:is([data-product=zkproof],[data-product=zktransparency],[data-product=zkguard]) .nx-app .result-section{margin-block:32px}
html:is([data-product=zkproof],[data-product=zktransparency],[data-product=zkguard]) .nx-app .disclosure-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
html:is([data-product=zkproof],[data-product=zktransparency],[data-product=zkguard]) .nx-app :is(.technical dl,#evidence-details)>div{grid-template-columns:170px minmax(0,1fr)}
}
@media(min-width:1001px){
html:is([data-product=zkproof],[data-product=zktransparency],[data-product=zkguard]) .nx-app .method-section{grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr)}
html:is([data-product=zkproof],[data-product=zktransparency],[data-product=zkguard]) .nx-app .lifecycle-grid{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}
}

/* Integration corrections: semantic foregrounds, immediate readability, actionable boundaries. */
html[data-product] :is(.workspace-product,.product-label,.console-product) small{font-weight:400;line-height:1.5}
html[data-product] body.nx-app .reveal{animation:none!important;opacity:1!important;transform:none!important}
html[data-product] :is(button.flow-node,button.nx-flow-node,.flow-node[role="button"]){border-color:var(--dp-control-border)}
html[data-product] :is(button.flow-node,button.nx-flow-node):is([aria-pressed="true"],[aria-selected="true"],.selected,.is-active){border-color:var(--dp-accent)}
/* Match the actual Bridge/Ballot chrome selectors to the shared frame. */
html[data-product] :is(.command-sidebar,.command-header){background:var(--dp-surface);color:var(--dp-text);border-color:var(--dp-rule)}
html[data-product] .command-sidebar .nav-link{font:500 16px/1.5 var(--dp-font-body);min-height:44px;border-radius:8px}
html[data-product] .command-sidebar .nav-link.active{background:var(--dp-accent-soft);color:var(--dp-text);box-shadow:inset 3px 0 var(--dp-accent)}
@media(min-width:761px){
html:is([data-product=zkbridge],[data-product=zkballot]) :is(.command-nav,.command-sidebar){padding:0 16px 20px}
html:is([data-product=zkbridge],[data-product=zkballot]) .console-brand{display:flex;align-items:center;min-height:72px;margin:0;padding:0 8px}
html:is([data-product=zkbridge],[data-product=zkballot]) .console-brand img{width:188px;max-width:100%;height:auto;object-fit:contain}
html:is([data-product=zkbridge],[data-product=zkballot]) :is(.product-label,.console-product){margin:10px 0 26px}
}
/* Workspace text appears immediately; progress indicators retain their own motion. */
html[data-product] :is(.hero-copy>*,.dna-dashboard-intro,.dna-intro-copy>*,.dna-intro-actions,.dna-dashboard .stage-content,.dna-dashboard .stage-content>*,.dna-dashboard .context-card,.dna-dashboard .access-panel,.verification-card){animation:none!important}
html[data-product] body.nx-app :is(.hero-copy,.workspace,.intro>*,.lab){animation:none!important}

/* Final review corrections: nx workspaces only. Load last. */
/* 1. Mobile: full-bleed header band and rule, no layout change */
@media(max-width:760px){
html:is([data-product=zkproof],[data-product=zktransparency],[data-product=zkguard]) body.nx-app .site-header{border-image:linear-gradient(to bottom,var(--dp-surface) calc(100% - 1px),var(--dp-rule) 0) fill 0/0/0 100vmax;box-shadow:none}
}
/* 2. Hash field: the wrapper draws the field, the inner input is flat */
html:is([data-product=zkproof],[data-product=zktransparency]) body.nx-app .input-wrap input:not([type=checkbox],[type=radio]){border:0;background:transparent;min-height:42px;font-size:16px;border-radius:6px}
html:is([data-product=zkproof],[data-product=zktransparency]) body.nx-app .input-wrap:focus-within{border-color:var(--dp-accent)}
/* 3. zkTransparency: heading at full contrast at rest */
html[data-product=zktransparency] body.nx-app :is(.hero,.intro,.lifecycle-intro) :is(h1,h1 *),html[data-product=zktransparency] body.nx-app #story-title{color:var(--dp-text);opacity:1;animation:none}
/* 4. zkProof: stack the input panel while the workspace is split */
@media(min-width:1001px) and (max-width:1600px){
html[data-product=zkproof] body.nx-app .input-panel{grid-template-columns:minmax(0,1fr)}
}
html[data-product=sandbox] #root .bench-controls button[aria-label="Reset workspace"]{width:auto;min-width:max-content;padding-inline:12px;white-space:nowrap}
html[data-product=zkballot] .console-product>div{font-size:16px;font-weight:600}

html[data-product=sandbox] #root .dna-dashboard .panel>h2{font-size:16px;line-height:1.5;letter-spacing:.02em}
html[data-product=sandbox] #root .dna-dashboard .dna-metric dd{font-size:20px;overflow-wrap:anywhere}

/* Fable custom icon family and final interaction polish. */
/* DNA Protocol icon family and focus/hover polish. Presentation only. Load last. */
/* 1. Icon sources: locally served, one mark per product */
html[data-product=zkbanking i]{--dp-product-icon:url('/brand/icons/zkbanking.svg')}
html[data-product=zkbridge i]{--dp-product-icon:url('/brand/icons/zkbridge.svg')}
html[data-product=zkballot i]{--dp-product-icon:url('/brand/icons/zkballot.svg')}
html[data-product=zkproof i]{--dp-product-icon:url('/brand/icons/zkproof.svg')}
html[data-product=zktransparency i]{--dp-product-icon:url('/brand/icons/zktransparency.svg')}
html[data-product=zkguard i]{--dp-product-icon:url('/brand/icons/zkguard.svg')}
html[data-product=sandbox i]{--dp-product-icon:url('/brand/icons/sandbox.svg')}
html[data-product=vault i]{--dp-product-icon:url('/brand/icons/vault.svg')}
/* Ecosystem links resolve their icon from the destination host */
html[data-product] :is(.ecosystem-nav,.sidebar-bottom,.nav-bottom) a[href*='//zkbanking.' i]{--dp-eco-icon:url('/brand/icons/zkbanking.svg')}
html[data-product] :is(.ecosystem-nav,.sidebar-bottom,.nav-bottom) a[href*='//zkbridge.' i]{--dp-eco-icon:url('/brand/icons/zkbridge.svg')}
html[data-product] :is(.ecosystem-nav,.sidebar-bottom,.nav-bottom) a[href*='//zkballot.' i]{--dp-eco-icon:url('/brand/icons/zkballot.svg')}
html[data-product] :is(.ecosystem-nav,.sidebar-bottom,.nav-bottom) a[href*='//zkproof.' i]{--dp-eco-icon:url('/brand/icons/zkproof.svg')}
html[data-product] :is(.ecosystem-nav,.sidebar-bottom,.nav-bottom) a[href*='//zktransparency.' i]{--dp-eco-icon:url('/brand/icons/zktransparency.svg')}
html[data-product] :is(.ecosystem-nav,.sidebar-bottom,.nav-bottom) a[href*='//zkguard.' i]{--dp-eco-icon:url('/brand/icons/zkguard.svg')}
html[data-product] :is(.ecosystem-nav,.sidebar-bottom,.nav-bottom) a[href*='//sandbox.' i]{--dp-eco-icon:url('/brand/icons/sandbox.svg')}
html[data-product] :is(.ecosystem-nav,.sidebar-bottom,.nav-bottom) a[href*='//vault.' i]{--dp-eco-icon:url('/brand/icons/vault.svg')}
/* zkBanking workspace navigation resolves its icon from the in-page target */
html[data-product=zkbanking i] .workspace-nav a[href='#overview']{--dp-nav-icon:url('/brand/icons/overview.svg')}
html[data-product=zkbanking i] .workspace-nav a[href='#workspace']{--dp-nav-icon:url('/brand/icons/settlement.svg')}
html[data-product=zkbanking i] .workspace-nav a[href='#xrpl-evidence']{--dp-nav-icon:url('/brand/icons/evidence.svg')}
html[data-product=zkbanking i] .workspace-nav a[href='#rejections']{--dp-nav-icon:url('/brand/icons/rejection.svg')}
html[data-product=zkbanking i] .workspace-nav a[href='#proof-details']{--dp-nav-icon:url('/brand/icons/trust.svg')}
/* 2. Replacement happens only where CSS masks are supported; otherwise the existing glyphs and dots remain */
@supports ((mask-image:url('/brand/icons/vault.svg')) or (-webkit-mask-image:url('/brand/icons/vault.svg'))){
/* 2a. Product identity mark in the sidebar product card (desktop sidebar and mobile drawer share these classes) */
html:is([data-product=zkbanking i],[data-product=zkbridge i],[data-product=zkballot i],[data-product=zkproof i],[data-product=zktransparency i],[data-product=zkguard i],[data-product=sandbox i],[data-product=vault i]) :is(.workspace-product,.product-label)>.product-icon,
html[data-product=zkballot i] .console-product>span:first-child{display:inline-grid;place-items:center;flex:none;font-size:0;line-height:0}
html:is([data-product=zkbanking i],[data-product=zkbridge i],[data-product=zkballot i],[data-product=zkproof i],[data-product=zktransparency i],[data-product=zkguard i],[data-product=sandbox i],[data-product=vault i]) :is(.workspace-product,.product-label)>.product-icon>svg,
html[data-product=zkballot i] .console-product>span:first-child>svg{display:none}
html:is([data-product=zkbanking i],[data-product=zkbridge i],[data-product=zkballot i],[data-product=zkproof i],[data-product=zktransparency i],[data-product=zkguard i],[data-product=sandbox i],[data-product=vault i]) :is(.workspace-product,.product-label)>.product-icon::before,
html[data-product=zkballot i] .console-product>span:first-child::before{content:'';display:block;width:20px;height:20px;background-color:currentColor;-webkit-mask:var(--dp-product-icon) center/contain no-repeat;mask:var(--dp-product-icon) center/contain no-repeat}
/* 2b. zkBanking workspace navigation: decorative Unicode glyphs become utility icons; link text is untouched */
html[data-product=zkbanking i] .workspace-nav a:is([href='#overview'],[href='#workspace'],[href='#xrpl-evidence'],[href='#rejections'],[href='#proof-details'])>span[aria-hidden='true']:first-child{display:inline-grid;place-items:center;flex:none;width:20px;height:20px;font-size:0;line-height:0}
html[data-product=zkbanking i] .workspace-nav a:is([href='#overview'],[href='#workspace'],[href='#xrpl-evidence'],[href='#rejections'],[href='#proof-details'])>span[aria-hidden='true']:first-child::before{content:'';display:block;width:18px;height:18px;background-color:currentColor;-webkit-mask:var(--dp-nav-icon) center/contain no-repeat;mask:var(--dp-nav-icon) center/contain no-repeat}
html[data-product=zkbanking i] .workspace-nav a:is(.is-active,[aria-current='page'])>span[aria-hidden='true']:first-child{color:var(--dp-accent-ink)}
/* 2c. Ecosystem dots become product icons (zkBanking, Vault, Sandbox and any shell that renders .product-dot) */
html[data-product] .ecosystem-nav a:is([href*='//zkbanking.' i],[href*='//zkbridge.' i],[href*='//zkballot.' i],[href*='//zkproof.' i],[href*='//zktransparency.' i],[href*='//zkguard.' i],[href*='//sandbox.' i],[href*='//vault.' i])>.product-dot{display:inline-block;flex:none;width:18px;height:18px;border:0;border-radius:0;box-shadow:none;background:currentColor;-webkit-mask:var(--dp-eco-icon) center/contain no-repeat;mask:var(--dp-eco-icon) center/contain no-repeat}
html[data-product] .ecosystem-nav a[aria-current='page']>.product-dot{color:var(--dp-accent-ink)}
/* 2d. zkBallot suite links have no dot element; the icon is a pseudo-element and the link box is not changed */
html[data-product=zkballot i] .sidebar-bottom a:is([href*='//zkbanking.' i],[href*='//zkbridge.' i],[href*='//zkballot.' i],[href*='//zkproof.' i],[href*='//zktransparency.' i],[href*='//zkguard.' i])::before{content:'';display:inline-block;flex:none;width:18px;height:18px;margin-inline-end:8px;vertical-align:-3px;background-color:currentColor;-webkit-mask:var(--dp-eco-icon) center/contain no-repeat;mask:var(--dp-eco-icon) center/contain no-repeat}
html[data-product=zkballot i] .sidebar-bottom a[href]>span[aria-hidden='true']:last-child{margin-inline-start:auto}
html[data-product=zkballot i] .sidebar-bottom a[aria-current='page']::before{color:var(--dp-accent-ink)}
/* 2e. Forced colours: keep masked icons visible */
@media (forced-colors:active){
html[data-product] :is(.workspace-product,.product-label)>.product-icon::before,
html[data-product=zkballot i] .console-product>span:first-child::before,
html[data-product=zkbanking i] .workspace-nav a>span[aria-hidden='true']:first-child::before,
html[data-product] .ecosystem-nav a>.product-dot,
html[data-product=zkballot i] .sidebar-bottom a::before{forced-color-adjust:none;background-color:CanvasText}
}
}
/* 3. zkBallot inline SVG icons: match the 1.6px family stroke (CSS overrides the presentation attribute) */
html[data-product=zkballot i] :is(.command-sidebar .nav-link,.console-product) svg{stroke-width:1.6}
/* 4. Focus and hover polish */
/* Sidebar items: keep the focus ring inside scrolling sidebars so it is never clipped */
html[data-product] :is(.workspace-nav a,.ecosystem-nav a,.nav-item,.ballot-nav-item,.nx-side-nav a,.dna-navigation button,.dna-navigation a,.command-sidebar .nav-link,.sidebar-bottom a):focus-visible{outline-offset:-2px}
/* Buttons: soft halo behind the existing 2px outline; disabled controls are excluded and keep their dashed state */
html[data-product] :is(.btn,.btn-secondary,.btn-primary,.button,.button--primary,.vault-button,button.primary,.theme-toggle,.identity-theme-toggle,.theme-switch,.icon-button):not(:disabled,[aria-disabled='true']):focus-visible{box-shadow:0 0 0 6px var(--dp-accent-soft)}
html[data-product] :is(.btn,.btn-secondary,.btn-primary,.button,.button--primary,.vault-button,button.primary):not(:disabled,[aria-disabled='true']):active{transform:translateY(1px)}
/* External-link arrow: small directional nudge */
html[data-product] :is(.ecosystem-nav,.sidebar-bottom,.nav-bottom) a>span[aria-hidden='true']:last-child{display:inline-block;transition:transform var(--dp-ease)}
html[data-product] :is(.ecosystem-nav,.sidebar-bottom,.nav-bottom) a:is(:hover,:focus-visible)>span[aria-hidden='true']:last-child{transform:translate(1px,-1px)}
html[data-product] .ecosystem-nav a:is(:hover,:focus-visible)>.product-dot{color:var(--dp-accent-ink)}
/* 5. Reduced motion */
@media (prefers-reduced-motion:reduce){
html[data-product] :is(.ecosystem-nav,.sidebar-bottom,.nav-bottom) a>span[aria-hidden='true']:last-child{transition:none}
html[data-product] :is(.ecosystem-nav,.sidebar-bottom,.nav-bottom) a:is(:hover,:focus-visible)>span[aria-hidden='true']:last-child{transform:none}
html[data-product] :is(.btn,.btn-secondary,.btn-primary,.button,.button--primary,.vault-button,button.primary):active{transform:none}
}

/* DNA Protocol icon integration, part 2: static nx sidebars on zkProof, zkTransparency and zkGuard. Presentation only. Loads after the previous icon CSS. */
/* Replacement happens only where CSS masks are supported; otherwise the existing inline SVG icons remain untouched. */
@supports ((mask-image:url('/brand/icons/vault.svg')) or (-webkit-mask-image:url('/brand/icons/vault.svg'))){
/* 1. Icon source per destination. Exact hrefs as rendered in the three static index.html files. */
html:is([data-product=zkproof i],[data-product=zktransparency i],[data-product=zkguard i]) .nx-sidebar .nx-side-nav:not(.nx-side-local)>a[href='https://zkbridge.dnaprotocol.org/']{--dp-nx-icon:url('/brand/icons/zkbridge.svg')}
html:is([data-product=zkproof i],[data-product=zktransparency i],[data-product=zkguard i]) .nx-sidebar .nx-side-nav:not(.nx-side-local)>a[href='https://zkproof.dnaprotocol.org/']{--dp-nx-icon:url('/brand/icons/zkproof.svg')}
html:is([data-product=zkproof i],[data-product=zktransparency i],[data-product=zkguard i]) .nx-sidebar .nx-side-nav:not(.nx-side-local)>a[href='https://zktransparency.dnaprotocol.org/']{--dp-nx-icon:url('/brand/icons/zktransparency.svg')}
html:is([data-product=zkproof i],[data-product=zktransparency i],[data-product=zkguard i]) .nx-sidebar .nx-side-nav:not(.nx-side-local)>a[href='https://zkballot.dnaprotocol.org/']{--dp-nx-icon:url('/brand/icons/zkballot.svg')}
html:is([data-product=zkproof i],[data-product=zktransparency i],[data-product=zkguard i]) .nx-sidebar .nx-side-nav:not(.nx-side-local)>a[href='https://zkguard.dnaprotocol.org/']{--dp-nx-icon:url('/brand/icons/zkguard.svg')}
html:is([data-product=zkproof i],[data-product=zktransparency i],[data-product=zkguard i]) .nx-sidebar .nx-side-nav:not(.nx-side-local)>a[href='https://zkbanking.dnaprotocol.org/']{--dp-nx-icon:url('/brand/icons/zkbanking.svg')}
/* 2. The decorative inline SVG keeps its existing box (size, spacing, alignment from nextgen.css) and is repainted as a masked currentColor icon. */
html:is([data-product=zkproof i],[data-product=zktransparency i],[data-product=zkguard i]) .nx-sidebar .nx-side-nav:not(.nx-side-local)>a:is([href='https://zkbridge.dnaprotocol.org/'],[href='https://zkproof.dnaprotocol.org/'],[href='https://zktransparency.dnaprotocol.org/'],[href='https://zkballot.dnaprotocol.org/'],[href='https://zkguard.dnaprotocol.org/'],[href='https://zkbanking.dnaprotocol.org/'])>svg[aria-hidden='true']:first-child{background-color:currentColor;-webkit-mask:var(--dp-nx-icon) center/contain no-repeat;mask:var(--dp-nx-icon) center/contain no-repeat}
/* 3. Only the old glyph's shapes are suppressed; the svg element, the label span and the b indicator stay in place. */
html:is([data-product=zkproof i],[data-product=zktransparency i],[data-product=zkguard i]) .nx-sidebar .nx-side-nav:not(.nx-side-local)>a:is([href='https://zkbridge.dnaprotocol.org/'],[href='https://zkproof.dnaprotocol.org/'],[href='https://zktransparency.dnaprotocol.org/'],[href='https://zkballot.dnaprotocol.org/'],[href='https://zkguard.dnaprotocol.org/'],[href='https://zkbanking.dnaprotocol.org/'])>svg[aria-hidden='true']:first-child>*{display:none}
/* 4. Forced colours: keep masked icons visible */
@media (forced-colors:active){
html:is([data-product=zkproof i],[data-product=zktransparency i],[data-product=zkguard i]) .nx-sidebar .nx-side-nav:not(.nx-side-local)>a:is([href='https://zkbridge.dnaprotocol.org/'],[href='https://zkproof.dnaprotocol.org/'],[href='https://zktransparency.dnaprotocol.org/'],[href='https://zkballot.dnaprotocol.org/'],[href='https://zkguard.dnaprotocol.org/'],[href='https://zkbanking.dnaprotocol.org/'])>svg[aria-hidden='true']:first-child{forced-color-adjust:none;background-color:CanvasText}
}
}

html[data-product=zkbridge i] .nav-bottom a:is([href*='//zkbanking.' i],[href*='//zkbridge.' i],[href*='//zkballot.' i],[href*='//zkproof.' i],[href*='//zktransparency.' i],[href*='//zkguard.' i])::before{content:'';display:inline-block;flex:none;width:18px;height:18px;margin-inline-end:8px;vertical-align:-3px;background-color:currentColor;-webkit-mask:var(--dp-eco-icon) center/contain no-repeat;mask:var(--dp-eco-icon) center/contain no-repeat}
html[data-product=zkbridge i] .nav-bottom a[href]>span[aria-hidden='true']:last-child{margin-inline-start:auto}
html[data-product=zkbridge i] .nav-bottom a[aria-current='page']::before{color:var(--dp-accent-ink)}
html[data-product=zkbridge i] .nav-bottom a::before{forced-color-adjust:none;background-color:CanvasText}
@supports(mask-image:url("/brand/icons/vault.svg")){html[data-product] .ecosystem-nav a>.product-dot{width:18px!important;height:18px!important;min-width:18px;border-radius:0!important}}

/* zkBanking refinement round: three defects only. Presentation only. Load last. */

/* 1. Off-canvas drawer: closed state is never animated across live content. */
@media (max-width:850px){
html[data-product=zkbanking i] .workspace-sidebar:not(.is-open){
  visibility:hidden;
  transform:translateX(-100%);
  transition:none;
  pointer-events:none;
}
html[data-product=zkbanking i] .workspace-sidebar.is-open{
  transition:transform 180ms ease;
}
}

/* 2. Button states: confirmed, in progress and unavailable are distinct. */
/* 2a. Confirmed results (Proof generated, Conditions verified). */
html[data-product=zkbanking i] .button.button--confirmed:disabled,
html[data-product=zkbanking i] .verification-actions .button.button--secondary:disabled{
  background-color:color-mix(in srgb,var(--dp-pass) 9%,var(--dp-surface));
  border:1px solid color-mix(in srgb,var(--dp-pass) 45%,var(--dp-rule));
  color:var(--dp-pass);
  cursor:default;
}
/* 2b. In progress: the control that owns the spinner. Without :has() support the shared dashed state remains. */
html[data-product=zkbanking i] .button:disabled:has(> .spinner){
  background-color:var(--dp-accent-soft);
  border:1px solid var(--dp-accent);
  color:var(--dp-text);
  cursor:progress;
}
html[data-product=zkbanking i] .rejection-card:disabled:has(.rejection-card-top > .spinner){
  cursor:progress;
}
/* 2c. Legend dot for the failed node state (used only if the markup suggestion is applied). */
html[data-product=zkbanking i] .flow-legend .legend-failed{
  background:var(--dp-fail);
}

/* 3. Lab composition sized from available width, not viewport breakpoints. */
html[data-product=zkbanking i] .holder-grid{
  grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));
  gap:16px;
}
@media (min-width:1201px){
html[data-product=zkbanking i] .workspace-layout{
  grid-template-columns:minmax(0,1fr) 280px;
}
}
@media (max-width:1200px){
html[data-product=zkbanking i] .workspace-layout{
  grid-template-columns:minmax(0,1fr);
}
html[data-product=zkbanking i] .context-sticky{
  grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));
}
}

/* zkBridge round: 1 task hierarchy, 2 navigation states, 3 result/empty/error states. Presentation only. */
/* 1. Compact status strip and lifecycle so the task panel starts sooner */
@media(min-width:761px){
html[data-product=zkbridge] .bridge-shell .page-heading{margin-bottom:24px}
html[data-product=zkbridge] .bridge-shell .workspace-layout>.overview-grid>div{padding:16px 20px}
html[data-product=zkbridge] .bridge-shell .workspace-layout>.overview-grid strong{margin:6px 0 4px;font-size:20px;line-height:1.3}
html[data-product=zkbridge] .bridge-shell .map-heading{padding:12px 20px}
html[data-product=zkbridge] .bridge-shell .flow-nodes{padding:16px 20px}
html[data-product=zkbridge] .bridge-shell .flow-node{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-areas:'idx state' 'text text';align-content:start;gap:10px 12px;min-height:0;padding:14px 16px}
html[data-product=zkbridge] .bridge-shell .flow-node>.node-index{grid-area:idx;width:28px;height:28px}
html[data-product=zkbridge] .bridge-shell .flow-node>.node-state{grid-area:state;justify-self:end;align-self:center}
html[data-product=zkbridge] .bridge-shell .flow-node>span:not(.node-index,.node-state){grid-area:text;min-width:0}
}
@media(min-width:1200px){
html[data-product=zkbridge] .bridge-shell .workspace-layout>.overview-grid>div{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:2px 16px}
html[data-product=zkbridge] .bridge-shell .workspace-layout>.overview-grid>div>span{grid-column:1;grid-row:1}
html[data-product=zkbridge] .bridge-shell .workspace-layout>.overview-grid>div>small{grid-column:1;grid-row:2}
html[data-product=zkbridge] .bridge-shell .workspace-layout>.overview-grid>div>strong{grid-column:2;grid-row:1/3;margin:0;text-align:right;white-space:nowrap}
}
@media(max-width:760px){
html[data-product=zkbridge] .bridge-shell .flow-node>span:not(.node-index,.node-state){flex:1 1 140px;min-width:0}
}
/* 2. Navigation: suite links, current state, mobile tabs, scroll cue, focus */
html[data-product=zkbridge] .bridge-shell .command-nav .nav-bottom>a{justify-content:flex-start;gap:8px;text-align:left}
html[data-product=zkbridge] .bridge-shell .command-nav .nav-bottom>a>svg:last-child{flex:none;margin-inline-start:auto}
html[data-product=zkbridge] .bridge-shell .command-nav .nav-bottom>a::before{margin-inline-end:0;background-color:currentColor}
html[data-product=zkbridge] .bridge-shell .command-nav .nav-bottom>a[aria-current=page]{color:var(--dp-accent-ink);font-weight:600}
html[data-product=zkbridge] .bridge-shell .command-nav .nav-bottom>a:focus-visible{outline-offset:-2px}
@media(forced-colors:active){
html[data-product=zkbridge] .bridge-shell .command-nav .nav-bottom>a::before{background-color:CanvasText}
}
@supports not ((mask-image:url('/brand/icons/zkbridge.svg')) or (-webkit-mask-image:url('/brand/icons/zkbridge.svg'))){
html[data-product=zkbridge] .bridge-shell .command-nav .nav-bottom>a::before{display:none}
}
@media(max-width:760px){
html[data-product=zkbridge] .bridge-shell .command-nav nav .nav-item{text-align:center;border-color:transparent;border-radius:8px 8px 0 0}
html[data-product=zkbridge] .bridge-shell .command-nav nav .nav-item.active{border-color:transparent;box-shadow:inset 0 -3px 0 var(--dp-accent)}
html[data-product=zkbridge] .bridge-shell .command-nav .nav-bottom{gap:20px;scrollbar-width:thin;-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 32px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 32px),transparent)}
html[data-product=zkbridge] .bridge-shell .command-nav .nav-bottom::after{content:'';flex:0 0 16px}
html[data-product=zkbridge] .bridge-shell .command-nav .nav-bottom>a>svg:last-child{margin-inline-start:0}
}
/* 3. Message, empty and result states */
html[data-product=zkbridge] .bridge-shell .message{flex-wrap:wrap;align-items:center;gap:8px 16px;overflow-wrap:anywhere}
html[data-product=zkbridge] .bridge-shell .message>span:not(.spinner){flex:1 1 220px;min-width:0}
html[data-product=zkbridge] .bridge-shell .message.error{border-left:3px solid var(--dp-fail)}
html[data-product=zkbridge] .bridge-shell .message button{flex:none;min-height:44px;margin-left:auto;padding-inline:16px;font-weight:600;color:var(--dp-text)}
html[data-product=zkbridge] .bridge-shell .empty-state{min-height:0;margin-top:20px;padding:32px 24px}
html[data-product=zkbridge] .bridge-shell .empty-state p{margin:12px 0 24px}
html[data-product=zkbridge] .bridge-shell .verification{border-top:3px solid var(--dp-line)}
html[data-product=zkbridge] .bridge-shell .verification.is-accepted{border-top-color:var(--dp-pass)}
html[data-product=zkbridge] .bridge-shell .verification.is-rejected{border-top-color:var(--dp-fail)}
html[data-product=zkbridge] .bridge-shell .verification>h3{margin:8px 0}
html[data-product=zkbridge] .bridge-shell .check-row{align-items:baseline;gap:16px;padding:12px 0;color:var(--dp-text)}
html[data-product=zkbridge] .bridge-shell .check-row>span{min-width:0;overflow-wrap:anywhere}
html[data-product=zkbridge] .bridge-shell .check-row>b{flex:none;min-width:136px;padding:4px 10px;border:1px dashed var(--dp-control-border);border-radius:6px;text-align:center;font-weight:500;line-height:1.5;color:var(--dp-muted)}
html[data-product=zkbridge] .bridge-shell .check-row.is-passed>b{border:1px solid color-mix(in srgb,var(--dp-pass) 50%,transparent);color:var(--dp-pass)}
html[data-product=zkbridge] .bridge-shell .check-row.is-failed>b{border:1px solid color-mix(in srgb,var(--dp-fail) 55%,transparent);background:color-mix(in srgb,var(--dp-fail) 10%,transparent);color:var(--dp-fail)}
html[data-product=zkbridge] .bridge-shell .receipt{margin-top:24px;padding-top:20px;border-top:1px solid var(--dp-rule)}
@media(max-width:480px){
html[data-product=zkbridge] .bridge-shell .empty-state{padding:24px 18px}
html[data-product=zkbridge] .bridge-shell .check-row>b{min-width:0}
html[data-product=zkbridge] .bridge-shell .message button{flex:1 1 100%;margin-left:0}
}

/* zkproof round 1: task composition, standby panel, states/focus. Loads last. */
html[data-product=zkproof] body :is(#input-error,#clear-input,#clear-activity,#result-section)[hidden]{display:none}

/* 1. Workspace and verification card composition */
html[data-product=zkproof] body .workspace{display:grid;grid-template-columns:minmax(0,1fr);gap:24px;align-items:start}
html[data-product=zkproof] body .workspace>.panel{min-width:0}
@media (min-width:1280px){
  html[data-product=zkproof] body .workspace{grid-template-columns:minmax(0,1.6fr) minmax(320px,1fr)}
}
html[data-product=zkproof] body .verification-card{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:none;grid-template-areas:none;gap:24px;align-content:start}
html[data-product=zkproof] body .verification-card>*{grid-area:auto;grid-column:1/-1;width:auto;max-width:none;min-width:0;margin:0}
html[data-product=zkproof] body #verify-form{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
html[data-product=zkproof] body #input-panel{display:grid;gap:8px;min-width:0}
html[data-product=zkproof] body .field-top{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
html[data-product=zkproof] body .field-top label{font-size:1rem;font-weight:600}
html[data-product=zkproof] body .input-wrap{min-height:52px;min-width:0}
html[data-product=zkproof] body #identifier{width:100%;min-width:0;min-height:48px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:1rem;line-height:1.4;letter-spacing:0;text-overflow:ellipsis}
html[data-product=zkproof] body :is(.input-hint,.input-error){margin:0;font-size:.9375rem;line-height:1.5}
html[data-product=zkproof] body #verify-button{width:100%;min-height:48px;font-size:1rem}
html[data-product=zkproof] body .verification-scope{border:0;border-top:1px solid color-mix(in srgb,currentColor 14%,transparent);padding:20px 0 0}
html[data-product=zkproof] body .verification-scope>p{margin:0 0 16px;max-width:72ch;font-size:1rem;line-height:1.55}
html[data-product=zkproof] body .scope-checks{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:12px;margin:0;padding:0;list-style:none}
html[data-product=zkproof] body .scope-checks>li{display:grid;gap:4px;align-content:start;margin:0;padding:12px 14px;border:1px solid color-mix(in srgb,currentColor 14%,transparent);border-radius:8px;min-width:0}
html[data-product=zkproof] body .scope-checks>li>strong{font-size:1rem;line-height:1.3}
html[data-product=zkproof] body .scope-checks>li>span{font-size:.9375rem;line-height:1.5}
html[data-product=zkproof] body .privacy-line{display:flex;align-items:center;gap:8px;font-size:.9375rem;line-height:1.5}

/* 2. Proof overview standby / empty state */
html[data-product=zkproof] body .proof-panel{display:flex;flex-direction:column;gap:16px;align-self:start;height:auto;min-height:0}
html[data-product=zkproof] body .proof-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
html[data-product=zkproof] body .proof-helix-strip{display:flex;align-items:center;justify-content:center;gap:12px;height:40px;min-height:0;margin:0;overflow:hidden}
html[data-product=zkproof] body .proof-helix-strip .helix-seal{flex:none;width:20px;height:20px}
html[data-product=zkproof] body .proof-helix-strip .helix-seal img{width:100%;height:100%;object-fit:contain}
html[data-product=zkproof] body .overview-content{display:grid;gap:12px;justify-items:start;align-content:start;min-height:0;padding:0;text-align:left;min-width:0;overflow-wrap:anywhere}
html[data-product=zkproof] body .overview-content .standby-symbol{margin:0 0 4px}
html[data-product=zkproof] body #proof-state-title{margin:0;font-size:1.25rem;line-height:1.3}
html[data-product=zkproof] body .overview-content>p{margin:0;max-width:46ch;font-size:1rem;line-height:1.55}
html[data-product=zkproof] body .empty-metadata{display:grid;width:100%;margin:4px 0 0;gap:0}
html[data-product=zkproof] body .empty-metadata>div{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:44px;padding:10px 0;border-top:1px solid color-mix(in srgb,currentColor 14%,transparent);font-size:.9375rem}
html[data-product=zkproof] body .empty-metadata>div>:last-child{text-align:right;font-weight:600}
html[data-product=zkproof] body .proof-panel-footer{display:flex;align-items:center;gap:8px;font-size:.9375rem;line-height:1.5}

/* 3. States, focus, targets, anchors, dense result content */
html[data-product=zkproof] body :is(a,button,summary,[tabindex]):focus-visible{outline:2px solid #8fe3f2;outline-offset:2px;box-shadow:0 0 0 6px #0b1220}
html[data-product=zkproof] body .input-wrap:focus-within{outline:2px solid #8fe3f2;outline-offset:2px;box-shadow:0 0 0 6px #0b1220}
html[data-product=zkproof] body .input-wrap #identifier:focus-visible{outline:none;box-shadow:none}
html[data-product=zkproof] body #input-panel:has(#input-error:not([hidden])) .input-wrap,
html[data-product=zkproof] body .input-wrap:has(#identifier[aria-invalid=true]){border-color:#e5484d;box-shadow:inset 0 0 0 1px #e5484d}
html[data-product=zkproof] body #input-error:not([hidden]){padding:8px 12px;border-left:3px solid #e5484d;background:color-mix(in srgb,#e5484d 10%,transparent);font-weight:600}
html[data-product=zkproof] body #verify-button:is(:disabled,[aria-disabled=true],[aria-busy=true]){opacity:.6;cursor:not-allowed;box-shadow:none;transform:none}
html[data-product=zkproof] body #verify-button[aria-busy=true]{cursor:progress}
html[data-product=zkproof] body :is(.icon-button,.nx-theme){min-width:44px;min-height:44px}
html[data-product=zkproof] body .text-button{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-size:1rem}
html[data-product=zkproof] body :is(#verify,#result-section,#how-it-works,#activity){scroll-margin-top:96px}
html[data-product=zkproof] body #identifier{scroll-margin-top:148px}
html[data-product=zkproof] body #result-section{min-width:0}
html[data-product=zkproof] body #result-content{min-width:0;font-size:1rem;line-height:1.55;overflow-wrap:anywhere}
html[data-product=zkproof] body #result-content pre{max-width:100%;overflow-x:auto;white-space:pre-wrap}
html[data-product=zkproof] body #result-content button{min-height:44px}
@media (prefers-reduced-motion:reduce){
  html[data-product=zkproof] body .blinking-cursor{animation:none}
}


/* Busy state uses the existing body class set by the proof workflow. */
html[data-product=zkproof] body.is-verifying #verify-button:disabled{cursor:progress}

/* zktransparency round: (1) hash entry (2) workflow/evidence density (3) states + focus */
html[data-product=zktransparency]{--zt-danger:#e5484d}
html[data-product=zktransparency] :is(#input-error,#request-error,#inspection-progress,#input-clear,#results,#recent-section,[data-full-evidence])[hidden]{display:none!important}

/* 1. Hash entry */
html[data-product=zktransparency] :is(#inspect,#results,#how-it-works){scroll-margin-top:88px}
html[data-product=zktransparency] #inspect-form{margin-top:20px}
html[data-product=zktransparency] .field-label{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 16px;margin-bottom:8px}
html[data-product=zktransparency] .field-label label{font-size:1rem;font-weight:600}
html[data-product=zktransparency] #transaction-hash{font-size:1rem;line-height:1.5;min-height:48px;min-width:0;text-overflow:ellipsis}
html[data-product=zktransparency] #transaction-hash::placeholder{font-size:1rem;color:currentColor;opacity:.7}
html[data-product=zktransparency] #input-clear{min-width:44px;min-height:44px}
html[data-product=zktransparency] .inspect-button{min-height:48px;font-size:1rem}
html[data-product=zktransparency] #example-button{min-height:44px;font-size:1rem;text-align:left}
@media (hover:none) and (pointer:coarse){
  html[data-product=zktransparency] .key-hint{display:none}
}

/* 2. Workflow nodes + dense evidence */
@media (min-width:1100px){
  html[data-product=zktransparency] .nx-node [data-node-hint]{display:block;min-height:3em;min-height:2lh}
}
html[data-product=zktransparency] .nx-node{min-height:44px;cursor:pointer}
html[data-product=zktransparency] .nx-node[aria-pressed=true] [data-node-name]{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:6px}
html[data-product=zktransparency] [data-inspector-fields]:empty{display:none}
html[data-product=zktransparency] [data-inspector-fields] dd{margin-inline-start:0}
html[data-product=zktransparency] :is([data-inspector-fields],#results) :is(dd,code,td,pre){overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
html[data-product=zktransparency] #results{overflow-wrap:break-word}
html[data-product=zktransparency] [data-full-evidence]{display:inline-flex;align-items:center;min-height:44px;font-size:1rem}
html[data-product=zktransparency] .nx-explainer>summary{min-height:44px;padding-block:10px;font-size:1rem;cursor:pointer}

/* 3. Error / loading / disabled / focus */
html[data-product=zktransparency] :is(#input-error,#request-error){margin-top:8px;padding:10px 12px;border:1px solid var(--zt-danger);border-left-width:4px;border-radius:8px;background:transparent;background:color-mix(in srgb,var(--zt-danger) 10%,transparent);color:inherit;font-size:1rem;line-height:1.5;overflow-wrap:anywhere}
html[data-product=zktransparency] #inspection-progress{margin-top:12px;padding:12px 14px;border:1px solid;border-color:color-mix(in srgb,currentColor 24%,transparent);border-radius:8px;font-size:1rem;line-height:1.5}
html[data-product=zktransparency] :is(.inspect-button,#example-button,.nx-node):is(:disabled,[aria-disabled=true]){opacity:.55;cursor:not-allowed}
html[data-product=zktransparency] .inspect-button[aria-busy=true]{cursor:progress}
html[data-product=zktransparency] :is(a,button,summary,input,[tabindex]):focus-visible{outline:2px solid currentColor;outline-offset:3px}
html[data-product=zktransparency] .primary-button:focus-visible{outline-offset:-6px}
html[data-product=zktransparency] #results:focus-visible{outline:none;box-shadow:0 -3px 0 currentColor}
@supports selector(:has(a)){
  html[data-product=zktransparency] .input-wrap:has(~ #input-error:not([hidden])){border-color:var(--zt-danger);box-shadow:inset 4px 0 0 var(--zt-danger)}
  html[data-product=zktransparency] #transaction-hash:focus-visible{outline:none}
  html[data-product=zktransparency] .input-wrap:has(#transaction-hash:focus-visible){outline:2px solid currentColor;outline-offset:2px}
}
@media (prefers-reduced-motion:reduce){
  html[data-product=zktransparency] #inspection-progress,html[data-product=zktransparency] #inspection-progress *{animation:none!important;transition:none!important}
}
@media (forced-colors:active){
  html[data-product=zktransparency] :is(#input-error,#request-error){border-color:Mark}
  html[data-product=zktransparency] :is(a,button,summary,input,[tabindex]):focus-visible{outline-color:Highlight}
}

/* zkBallot refinement round: 1 hierarchy/density, 2 state clarity, 3 evidence readability. Presentation only. */
/* 1. Bring the task into the first viewport */
html[data-product=zkballot] .ballot-console .control-heading{margin-bottom:20px}
html[data-product=zkballot] .ballot-console .console-stats{gap:1px;margin-bottom:20px;padding:0;border:1px solid var(--dp-rule);border-radius:12px;background:var(--dp-rule);overflow:hidden}
html[data-product=zkballot] .ballot-console .console-stats>div{padding:14px 18px;border:0!important;border-radius:0;background:var(--dp-surface);box-shadow:none}
html[data-product=zkballot] .ballot-console .console-stats .eyebrow{letter-spacing:.04em;line-height:1.4}
html[data-product=zkballot] .ballot-console .console-stats strong{margin:4px 0 2px;font-size:20px;line-height:1.3;letter-spacing:-.01em;color:var(--dp-text);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
html[data-product=zkballot] .ballot-console .console-stats small{line-height:1.45}
html[data-product=zkballot] .ballot-console .workspace-heading{margin:24px 0 16px}
html[data-product=zkballot] .ballot-console .workflow-map{margin-bottom:20px}
html[data-product=zkballot] .ballot-console .workflow-map-heading{padding:10px 16px}
html[data-product=zkballot] .ballot-console .workflow-detail{padding:8px 16px}
html[data-product=zkballot] .ballot-console .election-progress{gap:8px;padding:12px}
html[data-product=zkballot] .ballot-console .election-progress li>button{flex-direction:row;align-items:center;gap:12px;min-height:64px;padding:10px 14px}
html[data-product=zkballot] .ballot-console .election-progress li>button>span:last-child{min-width:0}
html[data-product=zkballot] .ballot-console .election-progress small{margin-top:0;line-height:1.4}
@media(max-width:1180px){
  html[data-product=zkballot] .ballot-console .election-progress{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:480px){
  html[data-product=zkballot] .ballot-console .console-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  html[data-product=zkballot] .ballot-console .console-stats>div{padding:12px 14px}
}

/* 2. One state system: bar = current/blocked, ring = selected; drawn on the button so hover cannot hide it */
html[data-product=zkballot] .ballot-console .election-progress li{--zb-bar:transparent;--zb-ring:transparent;box-shadow:none}
html[data-product=zkballot] .ballot-console .election-progress li.current{--zb-bar:var(--dp-accent)}
html[data-product=zkballot] .ballot-console .election-progress li.blocked{--zb-bar:var(--dp-fail);border-color:var(--dp-fail)}
html[data-product=zkballot] .ballot-console .election-progress li.selected{--zb-ring:var(--dp-accent);border-color:var(--dp-accent);background:var(--dp-accent-soft);box-shadow:none}
html[data-product=zkballot] .ballot-console .election-progress li>button{box-shadow:inset 3px 0 0 var(--zb-bar),inset 0 0 0 1px var(--zb-ring)}
html[data-product=zkballot] .ballot-console .election-progress li.pending strong{color:var(--dp-muted)}
html[data-product=zkballot] .ballot-console .election-progress li.current small{color:var(--dp-accent-ink)}
html[data-product=zkballot] .ballot-console .election-progress li.complete small{color:var(--dp-pass)}
html[data-product=zkballot] .ballot-console .election-progress li.blocked small{color:var(--dp-fail)}
/* Busy/disabled: no dashed boxes on navigation or inline links, no layout shift */
html[data-product=zkballot] .command-sidebar .nav-link:disabled{border-style:solid}
html[data-product=zkballot] .command-sidebar .nav-link:disabled:not(.active){border-color:transparent;background:transparent;color:var(--dp-faint)}
html[data-product=zkballot] :is(.ballot-console,.modal) :is(.text-button,.workflow-detail button):disabled{border:0;background:none;color:var(--dp-faint);text-decoration:none}
/* Locked ballot options stay readable; the chosen option stays identifiable */
html[data-product=zkballot] .ballot-console fieldset:disabled .choice{opacity:1;cursor:not-allowed;border-style:dashed;background:var(--dp-well)}
html[data-product=zkballot] .ballot-console fieldset:disabled .choice:not(.selected) :is(strong,.choice-letter){color:var(--dp-muted)}
html[data-product=zkballot] .ballot-console fieldset:disabled .choice.selected{border-style:solid;background:var(--dp-accent-soft)}

/* 3. Evidence and results */
html[data-product=zkballot] .ballot-console :is(.panel,.context-card,.receipt-card) :is(p,span).mono.wrap{display:block;margin:8px 0;padding:10px 12px;border:1px solid var(--dp-rule);border-radius:8px;background:var(--dp-bg);color:var(--dp-text);font:400 14px/1.6 var(--dp-font-mono);overflow-wrap:anywhere}
html[data-product=zkballot] .ballot-console .rows dd{font-variant-numeric:tabular-nums}
html[data-product=zkballot] .ballot-console .rows>div:has(>dd.mono.wrap){flex-direction:column;gap:4px}
html[data-product=zkballot] .ballot-console .rows dd.mono.wrap{max-width:100%;text-align:left;font:400 14px/1.6 var(--dp-font-mono)}
html[data-product=zkballot] .ballot-console .results{border-top:1px solid var(--dp-rule)}
html[data-product=zkballot] .ballot-console .result-option{margin:0;padding:14px 0;border-bottom:1px solid var(--dp-rule)}
html[data-product=zkballot] .ballot-console .result-option>div{align-items:baseline;gap:16px;margin-bottom:8px}
html[data-product=zkballot] .ballot-console .result-option>div>span{min-width:0;overflow-wrap:anywhere}
html[data-product=zkballot] .ballot-console .result-option strong{flex:none;font:500 20px/1.2 var(--dp-font-mono);font-variant-numeric:tabular-nums;color:var(--dp-text)}
/* Sealed results (needs the data-sealed markup suggestion): no empty bar that reads as zero */
html[data-product=zkballot] .ballot-console .results[data-sealed] progress{display:none}
html[data-product=zkballot] .ballot-console .results[data-sealed] .result-option>div{margin-bottom:0}
html[data-product=zkballot] .ballot-console .results[data-sealed] .result-option strong{color:var(--dp-faint)}
@media(max-width:760px){
  html[data-product=zkballot] .ballot-console .evidence-table{min-width:0}
  html[data-product=zkballot] .ballot-console .evidence-table :is(th,td){padding:12px}
}


/* zkGuard refinement round: three defects only. Presentation only; loads last. */

/* 1. Policy overview: one left edge, unclipped footer, visible outcome */
html[data-product=zkguard] .nx-app .proof-panel .overview-content{align-items:stretch;justify-content:flex-start;text-align:left}
html[data-product=zkguard] .nx-app .proof-panel .proof-panel-foot{margin-inline:0;text-align:left}
html[data-product=zkguard] .nx-app .proof-panel .zg-pending{border-style:dashed}
html[data-product=zkguard] .nx-app .proof-panel .checks{width:100%;margin:16px 0 0}
html[data-product=zkguard] .nx-app .proof-panel #checks li:is(.pass,.fail){position:relative;padding-left:44px;color:var(--dp-text);overflow-wrap:anywhere}
html[data-product=zkguard] .nx-app .proof-panel #checks li.pass{border-left:3px solid var(--dp-pass)}
html[data-product=zkguard] .nx-app .proof-panel #checks li.fail{border-left:3px solid var(--dp-fail)}
html[data-product=zkguard] .nx-app .proof-panel #checks li:is(.pass,.fail)::before{position:absolute;left:12px;top:10px;width:20px;font-weight:700;text-align:center}
html[data-product=zkguard] .nx-app .proof-panel #checks li.pass::before{content:'✓';content:'✓'/'';color:var(--dp-pass)}
html[data-product=zkguard] .nx-app .proof-panel #checks li.fail::before{content:'✕';content:'✕'/'';color:var(--dp-fail)}
html[data-product=zkguard] .nx-app .proof-panel[data-outcome='allowed']{box-shadow:inset 0 3px 0 var(--dp-pass)}
html[data-product=zkguard] .nx-app .proof-panel[data-outcome='blocked']{box-shadow:inset 0 3px 0 var(--dp-fail)}
html[data-product=zkguard] .nx-app .proof-panel[data-outcome='allowed'] .status-tag{color:var(--dp-pass);border-color:currentColor}
html[data-product=zkguard] .nx-app .proof-panel[data-outcome='blocked'] .status-tag{color:var(--dp-fail);border-color:currentColor}

/* 2. Sidebar-aware composition: the form row follows its container, the section rail waits for real width */
html[data-product=zkguard] .nx-app #policy-form .form-row{grid-template-columns:repeat(auto-fit,minmax(min(100%,264px),1fr));gap:16px 20px;align-items:start}
@media (min-width:1100px) and (max-width:1439.98px){
html[data-product=zkguard] .nx-app .page-shell .how-section{display:block}
html[data-product=zkguard] .nx-app .page-shell .how-section>.section-heading{margin:0 0 20px}
}

/* 3. Theme-safe states: open question, invalid amount, hint marker */
html[data-product=zkguard] .nx-app #questions summary:hover,
html[data-product=zkguard] .nx-app #questions details[open]>summary{color:var(--dp-text)}
html[data-product=zkguard] .nx-app #questions summary::after{border-color:var(--dp-control-border);color:var(--dp-accent-ink)}
html[data-product=zkguard] .nx-app #questions summary:hover::after,
html[data-product=zkguard] .nx-app #questions details[open]>summary::after{border-color:var(--dp-accent)}
html[data-product=zkguard] .nx-app #policy-form .zg-hint::before{background:var(--dp-accent)}
html[data-product=zkguard] .nx-app #policy-form #amount:user-invalid{border-color:var(--dp-fail);box-shadow:inset 0 0 0 1px var(--dp-fail)}
html[data-product=zkguard] .nx-app #policy-form #amount:user-invalid+.zg-hint{color:var(--dp-fail);font-weight:600}
html[data-product=zkguard] .nx-app #policy-form #amount:user-invalid+.zg-hint::before{background:var(--dp-fail);border-radius:1px;transform:rotate(45deg)}


/* Sandbox round: 1 control states, 2 hierarchy, 3 result readability. Tokens only; presentation only. */
/* 1. Control states */
html[data-product=sandbox] #root .dna-dashboard .workspace-layout .fixture-options button{background:var(--dp-control);border:1px solid var(--dp-control-border);color:var(--dp-text)}
html[data-product=sandbox] #root .dna-dashboard .workspace-layout .fixture-options button strong{font-size:16px;line-height:1.4}
html[data-product=sandbox] #root .dna-dashboard .workspace-layout .fixture-options button span{font-size:14px;line-height:1.5;color:var(--dp-muted)}
html[data-product=sandbox] #root .dna-dashboard .workspace-layout .fixture-options button::before{box-sizing:border-box;flex:none;width:18px;height:18px;border:2px solid var(--dp-control-border);border-radius:50%;background:transparent;box-shadow:none}
html[data-product=sandbox] #root .dna-dashboard .workspace-layout .fixture-options button[aria-pressed=true]{background:var(--dp-accent-soft);border-color:var(--dp-accent);box-shadow:inset 0 0 0 1px var(--dp-accent)}
html[data-product=sandbox] #root .dna-dashboard .workspace-layout .fixture-options button[aria-pressed=true]::before{border-color:var(--dp-accent);background:radial-gradient(circle,var(--dp-accent) 0 4px,transparent 4.5px)}
html[data-product=sandbox] #root .dna-dashboard .workspace-layout :is(.outline,.warning-button,.icon-button,.bench-controls .text-button,.fixture-options button,.step-jump select):disabled{opacity:1;background:var(--dp-well);color:var(--dp-faint);border:1px dashed var(--dp-control-border);box-shadow:none;cursor:not-allowed}
html[data-product=sandbox] #root .dna-dashboard .workspace-layout .fixture-options button:disabled :is(strong,span){color:var(--dp-faint)}
html[data-product=sandbox] #root .dna-dashboard .workspace-layout .fixture-options button[aria-pressed=true]:disabled{border-color:var(--dp-accent)}
html[data-product=sandbox] #root .dna-dashboard .workspace-layout .bench-controls .text-button{width:auto;min-width:max-content;padding-inline:12px;white-space:nowrap}
@media (forced-colors:active){
html[data-product=sandbox] #root .dna-dashboard .workspace-layout .fixture-options button[aria-pressed=true]::before{border-width:6px}
}
/* 2. Hierarchy: stage title > task title > role label; compact registry reference */
html[data-product=sandbox] #root .dna-dashboard .workspace-layout .lab-workbench .workbench-heading h2{font-size:clamp(24px,1.2rem + 1vw,30px);line-height:1.2}
html[data-product=sandbox] #root .dna-dashboard .workspace-layout .panel:not(.gold,.cyan)>h2{font-size:20px;line-height:1.3;letter-spacing:-.01em}
html[data-product=sandbox] #root .dna-dashboard .workspace-layout .role-grid .panel>h2{align-items:center;gap:8px;margin:0 0 12px;padding:0;border:0;font:500 14px/1.4 var(--dp-font-mono);letter-spacing:.06em;color:var(--dp-faint);text-wrap:wrap}
html[data-product=sandbox] #root .dna-dashboard .workspace-layout .role-grid .panel>h2 svg{width:18px;height:18px}
html[data-product=sandbox] #root .dna-dashboard .workspace-layout .context-column .dna-metrics{margin:0;padding:16px 20px;border:1px solid var(--dp-rule);border-radius:var(--dp-r-lg);background:var(--dp-surface);box-shadow:none}
html[data-product=sandbox] #root .dna-dashboard .workspace-layout .context-column .dna-section-label{margin:0 0 4px;padding:0 0 10px;border-bottom:1px solid var(--dp-rule);color:var(--dp-faint)}
html[data-product=sandbox] #root .dna-dashboard .workspace-layout .context-column .dna-metrics-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:0;margin:0;padding:0;border:0;border-radius:0;background:transparent}
html[data-product=sandbox] #root .dna-dashboard .workspace-layout .context-column .dna-metric{display:flex;flex-flow:row wrap;align-items:center;justify-content:space-between;gap:2px 16px;min-height:44px;margin:0;padding:10px 0;border:0;border-top:1px solid var(--dp-rule-soft);border-radius:0;background:transparent;box-shadow:none}
html[data-product=sandbox] #root .dna-dashboard .workspace-layout .context-column .dna-metric:first-child{border-top:0}
html[data-product=sandbox] #root .dna-dashboard .workspace-layout .context-column .dna-metric dt{display:flex;align-items:center;gap:8px;flex:none;margin:0;font-size:14px;line-height:1.4;color:var(--dp-muted)}
html[data-product=sandbox] #root .dna-dashboard .workspace-layout .context-column .dna-metric dd{flex:1 1 auto;min-width:0;margin:0;font:600 16px/1.4 var(--dp-font-body);text-align:right;color:var(--dp-text);overflow-wrap:anywhere}
/* 3. Result and evidence readability, both themes */
html[data-product=sandbox] #root .dna-dashboard .workspace-layout .result-banner{align-items:flex-start;gap:16px;padding:20px;border:1px solid var(--dp-rule);border-left:4px solid var(--dp-control-border);border-radius:var(--dp-r-sm);background:var(--dp-well);color:var(--dp-text)}
html[data-product=sandbox] #root .dna-dashboard .workspace-layout .result-banner.accepted{border-left-color:var(--dp-pass)}
html[data-product=sandbox] #root .dna-dashboard .workspace-layout .result-banner.rejected{border-left-color:var(--dp-fail)}
html[data-product=sandbox] #root .dna-dashboard .workspace-layout .result-banner.accepted :is(.eyebrow,svg){color:var(--dp-pass)}
html[data-product=sandbox] #root .dna-dashboard .workspace-layout .result-banner.rejected :is(.eyebrow,svg){color:var(--dp-fail)}
html[data-product=sandbox] #root .dna-dashboard .workspace-layout .result-banner .eyebrow{font-size:14px;font-weight:600;line-height:1.4}
html[data-product=sandbox] #root .dna-dashboard .workspace-layout .result-banner p{margin:6px 0 0;font-size:16px;line-height:1.5;color:var(--dp-text);overflow-wrap:anywhere}
html[data-product=sandbox] #root .dna-dashboard .workspace-layout :is(.checks,.signal-list){padding:0;border:1px solid var(--dp-rule);border-radius:var(--dp-r-sm);background:var(--dp-surface);overflow:hidden}
html[data-product=sandbox] #root .dna-dashboard .workspace-layout .signal-list{margin:0 16px 16px}
html[data-product=sandbox] #root .dna-dashboard .workspace-layout :is(.checks,.signal-list) table{width:100%;border-collapse:collapse;table-layout:fixed}
html[data-product=sandbox] #root .dna-dashboard .workspace-layout :is(.checks,.signal-list) tr.row{background:transparent}
html[data-product=sandbox] #root .dna-dashboard .workspace-layout :is(.checks,.signal-list) tr.row:nth-child(even){background:var(--dp-well)}
html[data-product=sandbox] #root .dna-dashboard .workspace-layout :is(.checks,.signal-list) :is(th,td){padding:12px 16px;border-bottom:1px solid var(--dp-rule-soft);font-size:16px;line-height:1.45;color:var(--dp-text);vertical-align:middle;overflow-wrap:anywhere}
html[data-product=sandbox] #root .dna-dashboard .workspace-layout :is(.checks,.signal-list) th{font-weight:500;text-align:left;color:var(--dp-muted)}
html[data-product=sandbox] #root .dna-dashboard .workspace-layout :is(.checks,.signal-list) tr:last-child :is(th,td){border-bottom:0}
html[data-product=sandbox] #root .dna-dashboard .workspace-layout .checks th{width:auto}
html[data-product=sandbox] #root .dna-dashboard .workspace-layout .checks td{width:clamp(8.5rem,40%,12rem);text-align:right}
html[data-product=sandbox] #root .dna-dashboard .workspace-layout .checks td strong>span{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:28px;padding:3px 10px;border:1px solid var(--dp-control-border);border-radius:6px;background:transparent;color:var(--dp-muted);font:500 14px/1.4 var(--dp-font-mono);text-transform:none}
html[data-product=sandbox] #root .dna-dashboard .workspace-layout .checks td strong>span.passed{border-color:var(--dp-pass);color:var(--dp-pass)}
html[data-product=sandbox] #root .dna-dashboard .workspace-layout .checks td strong>span.failed{border-color:var(--dp-fail);background:var(--dp-fail);color:var(--dp-bg)}
html[data-product=sandbox] #root .dna-dashboard .workspace-layout .checks td strong>span.not_performed{border-style:dashed}
html[data-product=sandbox] #root .dna-dashboard .workspace-layout .checks .check-dot{background:currentColor}
html[data-product=sandbox] #root .dna-dashboard .workspace-layout .signal-list th{width:34%}
html[data-product=sandbox] #root .dna-dashboard .workspace-layout .signal-list td{text-align:left}
html[data-product=sandbox] #root .dna-dashboard .workspace-layout .signal-list td strong{font:400 14px/1.5 var(--dp-font-mono);color:var(--dp-text);word-break:break-all}
html[data-product=sandbox] #root .dna-dashboard .workspace-layout .proof-inspector{border:1px solid var(--dp-rule);border-radius:var(--dp-r-sm);background:var(--dp-well)}
html[data-product=sandbox] #root .dna-dashboard .workspace-layout .proof-inspector summary{font-size:16px;color:var(--dp-text)}
html[data-product=sandbox] #root .dna-dashboard .workspace-layout .proof-inspector summary span{font-size:14px;color:var(--dp-faint)}
html[data-product=sandbox] #root .dna-dashboard .workspace-layout .proof-inspector pre{border-top:1px solid var(--dp-rule);background:var(--dp-bg);color:var(--dp-muted);font:400 14px/1.6 var(--dp-font-mono)}
html[data-product=sandbox] #root .dna-dashboard .workspace-layout .proof-inspector>p{font-size:14px;color:var(--dp-muted)}
html[data-product=sandbox] #root .dna-dashboard .workspace-layout .empty{border:1px dashed var(--dp-line);background:var(--dp-well);color:var(--dp-muted)}
html[data-product=sandbox] #root .dna-dashboard .workspace-layout .empty p{font-size:16px;line-height:1.5;color:var(--dp-muted)}
html[data-product=sandbox] #root .dna-dashboard .workspace-layout .inline-receipt{border:1px solid var(--dp-rule);border-left:3px solid var(--dp-accent);background:var(--dp-well);color:var(--dp-text)}
html[data-product=sandbox] #root .dna-dashboard .workspace-layout .inline-receipt :is(p,small,div>span){color:var(--dp-muted);font-size:14px}
html[data-product=sandbox] #root .dna-dashboard .workspace-layout .data-rows .row{border-bottom-color:var(--dp-rule-soft)}
html[data-product=sandbox] #root .dna-dashboard .workspace-layout .data-rows .row>span{font-size:14px;color:var(--dp-muted)}
html[data-product=sandbox] #root .dna-dashboard .workspace-layout .data-rows .row>strong{font-size:16px;color:var(--dp-text)}
@media (max-width:600px){
html[data-product=sandbox] #root .dna-dashboard .workspace-layout :is(.checks,.signal-list) :is(th,td){padding:10px 12px}
html[data-product=sandbox] #root .dna-dashboard .workspace-layout .checks td strong>span{flex-wrap:wrap;overflow-wrap:anywhere}
html[data-product=sandbox] #root .dna-dashboard .workspace-layout .signal-list{margin-inline:12px}
html[data-product=sandbox] #root .dna-dashboard .workspace-layout .signal-list tr.row{display:block}
html[data-product=sandbox] #root .dna-dashboard .workspace-layout .signal-list :is(th,td){display:block;width:100%;text-align:left}
html[data-product=sandbox] #root .dna-dashboard .workspace-layout .signal-list th{padding-bottom:2px;border-bottom:0}
html[data-product=sandbox] #root .dna-dashboard .workspace-layout .signal-list td{padding-top:2px}
}

/* Vault round: 1 immediate readability, 2 state clarity, 3 dense evidence. Presentation only. */
html[data-product=vault] #root .dna-dashboard :is(.dna-dashboard-intro :is(.dna-eyebrow,h1,h1>span,.dna-intro-copy>p,.dna-intro-status,.dna-intro-actions),.vault-main>.vault-notice,.vault-workbench>.vault-context,.vault-workspace>:is(.vault-section-heading,.vault-layout,.vault-verify),.vault-fixtures>article,.vault-card-grid>.vault-document,.vault-result,.vault-result tr,.vault-feedback){animation:none}
html[data-product=vault] #root .dna-dashboard .dna-dashboard-intro h1>span{color:var(--dp-muted)}
html[data-product=vault] #root .dna-dashboard .vault-fixtures>article:hover{translate:none;box-shadow:none}
html[data-product=vault] #root .dna-dashboard .vault-main>.vault-notice{background:var(--dp-surface);border:1px solid var(--dp-rule);border-left:3px solid var(--dp-caution);color:var(--dp-text)}
html[data-product=vault] #root .dna-dashboard .vault-main>.vault-notice p{max-width:110ch;color:var(--dp-text);font-size:1rem;line-height:1.5}
html[data-product=vault] #root .dna-dashboard .vault-main>.vault-notice svg{color:var(--dp-caution)}
html[data-product=vault] #root .dna-dashboard .vault-context .vault-stamp{border-top-color:var(--dp-line);border-bottom-color:var(--dp-rule);color:var(--dp-text)}
html[data-product=vault] #root .dna-dashboard .vault-context .vault-stamp :is(span,small){color:var(--dp-muted);font-size:.875rem}
html[data-product=vault] #root .dna-dashboard .vault-context-note p{border-top-color:var(--dp-rule);color:var(--dp-muted);font-size:1rem;line-height:1.5}
html[data-product=vault] #root .dna-dashboard .vault-context-note a{color:var(--dp-accent-ink);font-size:1rem}
@media(min-width:1280px){
html[data-product=vault] #root .dna-dashboard .vault-main .vault-context{border-left-color:var(--dp-rule)}
}
/* 2. State clarity: token-bound surfaces, fields, buttons, verdicts */
html[data-product=vault] #root .dna-dashboard :is(.vault-verify,.vault-ledger-panel,.vault-fixtures,.vault-document,.vault-empty,.vault-detail){background:var(--dp-surface);color:var(--dp-text);border-color:var(--dp-rule)}
html[data-product=vault] #root .dna-dashboard .vault-main .vault-section-heading{border-bottom-color:var(--dp-line)}
html[data-product=vault] #root .dna-dashboard .vault-main .vault-section-heading p{color:var(--dp-muted);font-size:1rem}
html[data-product=vault] #root .dna-dashboard .vault-fixtures article{border-color:var(--dp-rule)}
html[data-product=vault] #root .dna-dashboard .vault-fixtures p{color:var(--dp-muted);font-size:1rem;line-height:1.5}
html[data-product=vault] #root .dna-dashboard .vault-document :is(small,p,footer){color:var(--dp-muted);border-color:var(--dp-rule-soft)}
html[data-product=vault] #root .dna-dashboard .vault-document:hover{border-color:var(--dp-accent);box-shadow:none}
html[data-product=vault] #root .dna-dashboard .vault-card-top span{border:1px solid var(--dp-rule);background:var(--dp-well);color:var(--dp-text)}
html[data-product=vault] #root .dna-dashboard .vault-card-top span[data-state=revoked]{border-color:var(--dp-fail);color:var(--dp-fail)}
html[data-product=vault] #root .dna-dashboard .vault-main :is(select,input:not([type=checkbox],[type=radio])){min-height:44px;border:1px solid var(--dp-control-border);background:var(--dp-control);color:var(--dp-text);font-size:1rem}
html[data-product=vault] #root .dna-dashboard .vault-main :is(select,input):focus-visible{border-color:var(--dp-accent)}
html[data-product=vault] #root .dna-dashboard :is(.vault-verify,.vault-ledger-panel) label{color:var(--dp-text);font-size:1rem}
html[data-product=vault] #root .dna-dashboard .vault-primary:not(:disabled){border:1px solid var(--dp-accent);background:var(--dp-accent);color:var(--dp-on-accent);font-size:1rem;font-weight:500}
html[data-product=vault] #root .dna-dashboard .vault-primary:not(:disabled):hover{border-color:var(--dp-accent-hover);background:var(--dp-accent-hover);color:var(--dp-on-accent)}
html[data-product=vault] #root .dna-dashboard :is(.vault-actions>button:not(.vault-primary),.vault-ledger-panel .vault-section-heading>button,.vault-ledger-panel form button,.vault-result>button):not(:disabled){border:1px solid var(--dp-control-border);background:var(--dp-raised);color:var(--dp-text);font-size:1rem;font-weight:500}
html[data-product=vault] #root .dna-dashboard :is(.vault-actions>button:not(.vault-primary),.vault-ledger-panel .vault-section-heading>button,.vault-ledger-panel form button,.vault-result>button):not(:disabled):hover{border-color:var(--dp-accent);background:var(--dp-well);color:var(--dp-text)}
html[data-product=vault] #root .dna-dashboard :is(.vault-primary,.vault-actions>button,.vault-ledger-panel .vault-section-heading>button,.vault-ledger-panel form button):disabled{opacity:1;border:1px dashed var(--dp-control-border);background:var(--dp-well);color:var(--dp-faint);font-size:1rem;box-shadow:none;cursor:not-allowed}
html[data-product=vault] #root .dna-dashboard .vault-ledger-panel form{border-color:var(--dp-rule);background:var(--dp-well)}
html[data-product=vault] #root .dna-dashboard .vault-ledger-panel :is(p[role=status],p[role=alert]){display:flex;align-items:center;gap:12px;max-width:88ch;margin:16px 0;padding:12px 16px;border:1px solid var(--dp-rule);border-left:3px solid var(--dp-accent);background:var(--dp-well);color:var(--dp-text);font-size:1rem}
html[data-product=vault] #root .dna-dashboard .vault-ledger-panel p[role=alert]{border-left-color:var(--dp-fail)}
html[data-product=vault] #root .dna-dashboard .vault-ledger-panel p[role=status]::before{content:'';flex:none;width:16px;height:16px;border:2px solid var(--dp-line);border-top-color:var(--dp-accent);border-radius:50%;animation:spin 1s linear infinite}
html[data-product=vault] #root .dna-dashboard :is(.vault-ledger-panel,.vault-detail) .vault-result{border:1px solid var(--dp-rule);border-left:3px solid var(--dp-line);background:var(--dp-well);color:var(--dp-text);box-shadow:none}
html[data-product=vault] #root .dna-dashboard .vault-ledger-panel .vault-result[data-state=passed]{border-left-color:var(--dp-pass)}
html[data-product=vault] #root .dna-dashboard .vault-ledger-panel .vault-result[data-state=failed]{border-left-color:var(--dp-fail)}
html[data-product=vault] #root .dna-dashboard .vault-ledger-panel .vault-result[data-state=passed] h3{color:var(--dp-pass)}
html[data-product=vault] #root .dna-dashboard .vault-ledger-panel .vault-result[data-state=failed] h3{color:var(--dp-fail)}
html[data-product=vault] #root .dna-dashboard .vault-result :is(p,small){color:var(--dp-muted);font-size:1rem;line-height:1.5}
html[data-product=vault] #root .dna-dashboard .vault-verify>.vault-result{border:0;border-top:1px solid var(--dp-rule);background:transparent;box-shadow:none}
html[data-product=vault] #root .dna-dashboard .vault-verify>.vault-result h3{border-left:3px solid var(--dp-pass);background:var(--dp-well);background:color-mix(in srgb,var(--dp-pass) 12%,transparent);color:var(--dp-pass)}
html[data-product=vault] #root .dna-dashboard .vault-verify>.vault-result:is([data-state=failed],:has(b[data-state=failed])) h3{border-left-color:var(--dp-fail);background:var(--dp-well);background:color-mix(in srgb,var(--dp-fail) 12%,transparent);color:var(--dp-fail)}
html[data-product=vault] #root .dna-dashboard .vault-result>.vault-evidence-table{border-color:var(--dp-rule)}
html[data-product=vault] #root .dna-dashboard .vault-evidence-table :is(th,td){border-bottom-color:var(--dp-rule-soft);color:var(--dp-text);font-size:1rem;line-height:1.5}
html[data-product=vault] #root .dna-dashboard .vault-evidence-table tr:nth-child(even){background:var(--dp-well)}
html[data-product=vault] #root .dna-dashboard .vault-evidence-table b[data-state=passed]{border-color:var(--dp-pass);background:transparent;color:var(--dp-pass)}
html[data-product=vault] #root .dna-dashboard .vault-evidence-table b[data-state=failed]{border-color:var(--dp-fail);background:var(--dp-fail);color:var(--dp-bg)}
html[data-product=vault] #root .dna-dashboard .vault-detail{border-left:1px solid var(--dp-rule);box-shadow:none}
html[data-product=vault] #root .dna-dashboard .vault-detail h2{border-bottom-color:var(--dp-line);color:var(--dp-text)}
html[data-product=vault] #root .dna-dashboard .vault-detail code{border:1px solid var(--dp-rule);background:var(--dp-well);color:var(--dp-text);font-size:.875rem;line-height:1.6}
html[data-product=vault] #root .dna-dashboard .vault-detail .vault-close{border:1px solid var(--dp-rule);background:transparent;color:var(--dp-text)}
html[data-product=vault] #root .dna-dashboard .vault-detail .vault-close:hover{border-color:var(--dp-accent);background:var(--dp-well)}
/* 3. Dense evidence readability */
html[data-product=vault] #root .dna-dashboard .vault-main .dna-metric dt{color:var(--dp-muted);font-size:1rem;line-height:1.5}
html[data-product=vault] #root .dna-dashboard .vault-main .dna-metric dd{font-size:1.125rem;line-height:1.35;overflow-wrap:break-word;text-wrap:balance;color:var(--dp-text)}
@media(min-width:1024px){
html[data-product=vault] #root .dna-dashboard .vault-main .dna-metric dt{min-height:3em}
}
html[data-product=vault] #root .dna-dashboard :is(.vault-ledger-panel,.vault-detail) dl{max-width:760px}
html[data-product=vault] #root .dna-dashboard :is(.vault-ledger-panel,.vault-detail) dl>div{display:grid;grid-template-columns:minmax(96px,160px) minmax(0,1fr);gap:4px 16px;border-bottom-color:var(--dp-rule-soft);font-size:1rem;line-height:1.5}
html[data-product=vault] #root .dna-dashboard :is(.vault-ledger-panel,.vault-detail) dt{color:var(--dp-muted)}
html[data-product=vault] #root .dna-dashboard :is(.vault-ledger-panel,.vault-detail) dd{text-align:left;color:var(--dp-text);overflow-wrap:anywhere}
html[data-product=vault] #root .dna-dashboard .vault-ledger-panel dd{font-family:var(--dp-font-mono);font-size:.875rem;line-height:1.7}
html[data-product=vault] #root .dna-dashboard .vault-ledger-panel .vault-fine{max-width:88ch;color:var(--dp-muted);font-size:1rem;line-height:1.5}
html[data-product=vault] #root .dna-dashboard .vault-detail .vault-fine{color:var(--dp-muted);font-size:1rem;line-height:1.5}
html[data-product=vault] #root .dna-dashboard .vault-ledger-receipts article{border:1px solid var(--dp-rule);background:var(--dp-well);color:var(--dp-text);font-size:1rem;line-height:1.5}
html[data-product=vault] #root .dna-dashboard .vault-ledger-receipts b{color:var(--dp-muted);font-size:.875rem}
html[data-product=vault] #root .dna-dashboard .vault-ledger-receipts a{display:inline-flex;align-items:center;min-height:44px;color:var(--dp-accent-ink);font-size:.875rem;line-height:1.6;text-underline-offset:3px}
@media(max-width:600px){
html[data-product=vault] #root .dna-dashboard :is(.vault-ledger-panel,.vault-detail) dl>div{grid-template-columns:minmax(0,1fr)}
}
@media(min-width:601px){
html[data-product=vault] #root .dna-dashboard .vault-ledger-panel>.vault-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;max-width:1100px}
}
@media(min-width:900px){
html[data-product=vault] #root .dna-dashboard .vault-ledger-receipts article{grid-template-columns:minmax(0,240px) minmax(0,1fr);column-gap:24px;align-items:start}
html[data-product=vault] #root .dna-dashboard .vault-ledger-receipts article>:is(b,span){grid-column:1}
html[data-product=vault] #root .dna-dashboard .vault-ledger-receipts article>a{grid-column:2;grid-row:1 / span 2}
}

/* Shared institutional shell: applies only to adopted data-shell hooks under html[data-product] */
html[data-product] [data-shell='root']{
  --shell-sidebar-w:256px;--shell-topbar-h:72px;--shell-drawer-w:min(304px,calc(100vw - 56px));
  --shell-target:44px;--shell-gutter:24px;--shell-pad:12px;--shell-icon-size:20px;
  --shell-z-topbar:30;--shell-z-scrim:40;--shell-z-drawer:50;
  display:grid;grid-template-columns:var(--shell-sidebar-w) minmax(0,1fr);
  grid-template-rows:var(--shell-topbar-h) minmax(0,1fr);
  min-height:100vh;min-height:100dvh;background:var(--dp-bg);color:var(--dp-text);
}
html[data-product] [data-shell='root'] :is([data-shell='sidebar'],[data-shell='topbar'],[data-shell='main']){box-sizing:border-box}
/* Sidebar */
html[data-product] [data-shell='sidebar']{
  grid-column:1;grid-row:1 / span 2;position:sticky;top:0;align-self:start;
  height:100vh;height:100dvh;overflow:auto;overscroll-behavior:contain;
  display:flex;flex-direction:column;min-width:0;
  background:var(--dp-surface);color:var(--dp-text);box-shadow:inset -1px 0 0 var(--dp-rule);
  font-family:var(--dp-font-body);font-size:1rem;scrollbar-color:var(--dp-line) transparent;
}
/* Topbar: always 72px */
html[data-product] [data-shell='topbar']{
  grid-column:2;grid-row:1;position:sticky;top:0;z-index:var(--shell-z-topbar,30);
  display:flex;align-items:center;gap:12px;min-width:0;
  height:var(--shell-topbar-h,72px);min-height:var(--shell-topbar-h,72px);max-height:var(--shell-topbar-h,72px);
  padding:0 var(--shell-gutter,24px);
  background:var(--dp-surface);color:var(--dp-text);box-shadow:inset 0 -1px 0 var(--dp-rule);
}
html[data-product] [data-shell='topbar'] :is(button,select,[role='button'],input:not([type='checkbox'],[type='radio'],[type='hidden'])){min-height:var(--shell-target,44px)}
html[data-product] [data-shell='topbar'] :is(button,[role='button']){min-width:var(--shell-target,44px)}
html[data-product] [data-shell='topbar'] a{display:inline-flex;align-items:center;min-height:var(--shell-target,44px)}
/* Main */
html[data-product] [data-shell='main']{grid-column:2;grid-row:2;min-width:0}
/* Sidebar sections */
html[data-product] [data-shell='sidebar'] [data-shell-section]{
  display:grid;gap:4px;flex:none;min-width:0;padding:var(--shell-pad,12px);
}
html[data-product] [data-shell='sidebar'] [data-shell-section] + [data-shell-section]{box-shadow:inset 0 1px 0 var(--dp-rule-soft)}
html[data-product] [data-shell='sidebar'] [data-shell-section='brand']{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  min-height:var(--shell-topbar-h,72px);padding:0 16px;box-sizing:border-box;
}
html[data-product] [data-shell='sidebar'] [data-shell-section='brand'] a{
  display:inline-flex;align-items:center;gap:10px;min-width:0;min-height:var(--shell-target,44px);
  font-family:var(--dp-font-head);font-weight:600;letter-spacing:-.01em;color:var(--dp-text);text-decoration:none;
}
html[data-product] [data-shell='sidebar'] [data-shell-section='product']{
  font-family:var(--dp-font-head);font-size:1rem;font-weight:600;color:var(--dp-text);
}
html[data-product] [data-shell='sidebar'] [data-shell-section='context']{color:var(--dp-muted);font-size:1rem;line-height:1.5}
html[data-product] [data-shell='sidebar'] [data-shell-section='ecosystem']{background:var(--dp-well)}
html[data-product] [data-shell='sidebar'] [data-shell-section='foot']{margin-top:auto;color:var(--dp-faint);font-size:1rem}
/* Navigation items: 44px targets, 16px body minimum, labels wrap instead of truncating */
html[data-product] [data-shell='sidebar'] [data-shell-section]:not([data-shell-section='brand']) :is(a,button):not([data-shell='close']){
  display:flex;align-items:center;gap:12px;box-sizing:border-box;width:100%;min-width:0;
  min-height:var(--shell-target,44px);padding:8px 12px;margin:0;
  border:0;border-radius:var(--dp-r-sm);background-color:transparent;
  font-family:var(--dp-font-body);font-size:1rem;font-weight:500;line-height:1.35;
  color:var(--dp-muted);text-align:start;text-decoration:none;overflow-wrap:anywhere;cursor:pointer;
  transition:background-color var(--dp-ease),color var(--dp-ease),box-shadow var(--dp-ease);
}
html[data-product] [data-shell='sidebar'] [data-shell-section]:not([data-shell-section='brand']) :is(a,button):not([data-shell='close']):hover{
  background-color:var(--dp-raised);color:var(--dp-text);
}
html[data-product] [data-shell='sidebar'] [data-shell-section] :is(a,button)[aria-current]:not([aria-current='false']){
  background-color:var(--dp-accent-soft);color:var(--dp-text);font-weight:600;
  box-shadow:inset 2px 0 0 var(--dp-accent);
}
html[data-product] [data-shell='sidebar'] [data-shell-section] :is(a,button)[aria-current]:not([aria-current='false']) [data-shell-icon]{color:var(--dp-accent-ink)}
html[data-product] [data-shell='sidebar'] [data-shell-section] :is(a,button):is(:disabled,[aria-disabled='true']){color:var(--dp-faint);cursor:not-allowed}
/* Focus: existing accent token */
html[data-product] :is([data-shell='sidebar'],[data-shell='topbar']) :is(a,button,select,input,[role='button'],[tabindex]):focus-visible,
html[data-product] :is([data-shell='menu-button'],[data-shell='close']):focus-visible{
  outline:2px solid var(--dp-accent);outline-offset:2px;border-radius:var(--dp-r-sm);
}
html[data-product] [data-shell='sidebar'] :is(a,button):focus-visible{outline-offset:-2px}
/* Icons: text glyph fallback by default; currentColor mask when --shell-icon is supplied inline. Labels stay visible. */
html[data-product] :is([data-shell='sidebar'],[data-shell='topbar'],[data-shell='menu-button'],[data-shell='close']) [data-shell-icon]{
  flex:none;display:inline-grid;place-items:center;
  width:var(--shell-icon-size,20px);height:var(--shell-icon-size,20px);
  font-family:var(--dp-font-mono);font-size:1rem;line-height:1;color:currentColor;
}
@supports ((mask-image:url('')) or (-webkit-mask-image:url(''))){
  html[data-product] :is([data-shell='sidebar'],[data-shell='topbar'],[data-shell='menu-button'],[data-shell='close']) [data-shell-icon][style*='--shell-icon']{
    background-color:currentColor;font-size:0;
    -webkit-mask:var(--shell-icon) center / contain no-repeat;mask:var(--shell-icon) center / contain no-repeat;
  }
}
@media (forced-colors:active){
  html[data-product] [data-shell] [data-shell-icon][style*='--shell-icon']{background-color:CanvasText}
  html[data-product] [data-shell='sidebar'] [data-shell-section] :is(a,button)[aria-current]:not([aria-current='false']){outline:2px solid Highlight;outline-offset:-2px}
}
/* Drawer controls and scrim: hidden on desktop and until the shell is ready */
html[data-product] :is([data-shell='menu-button'],[data-shell='close']){
  display:none;flex:none;place-items:center;box-sizing:border-box;
  width:var(--shell-target,44px);height:var(--shell-target,44px);min-width:44px;min-height:44px;padding:0;
  border:1px solid var(--dp-control-border);border-radius:var(--dp-r-sm);
  background:var(--dp-control);color:var(--dp-text);font-size:1rem;line-height:1;cursor:pointer;
  transition:background-color var(--dp-ease),border-color var(--dp-ease);
}
html[data-product] :is([data-shell='menu-button'],[data-shell='close']):hover{background:var(--dp-raised);border-color:var(--dp-accent)}
html[data-product] [data-shell='scrim']{display:none}
/* Mobile: single column */
@media (max-width:850px){
  html[data-product] [data-shell='root']{grid-template-columns:minmax(0,1fr)}
  html[data-product] [data-shell='root'] :is([data-shell='topbar'],[data-shell='main']){grid-column:1}
  html[data-product] [data-shell='topbar']{padding:0 16px}
  /* No script yet: sidebar stays in flow above the topbar so navigation is never lost */
  html[data-product] [data-shell='root']:not([data-shell-ready]){grid-template-rows:auto var(--shell-topbar-h) minmax(0,1fr)}
  html[data-product] [data-shell='root']:not([data-shell-ready]) [data-shell='sidebar']{
    grid-column:1;grid-row:1;position:static;height:auto;overflow:visible;box-shadow:inset 0 -1px 0 var(--dp-rule);
  }
  html[data-product] [data-shell='root']:not([data-shell-ready]) [data-shell='topbar']{grid-row:2}
  html[data-product] [data-shell='root']:not([data-shell-ready]) [data-shell='main']{grid-row:3}
  /* Ready: sidebar becomes a fixed drawer, closed by default */
  html[data-product] [data-shell='root'][data-shell-ready] [data-shell='sidebar']{
    position:fixed;top:0;bottom:0;left:0;z-index:var(--shell-z-drawer,50);
    width:var(--shell-drawer-w,min(304px,calc(100vw - 56px)));max-width:100%;height:100vh;height:100dvh;
    transform:translateX(-100%);visibility:hidden;
    box-shadow:inset -1px 0 0 var(--dp-rule),var(--dp-shadow);
    transition:none;pointer-events:none;
  }
  html[data-product][data-nav-open]:not([data-nav-open='false']) [data-shell='root'][data-shell-ready] [data-shell='sidebar'],
  html[data-product] [data-shell='root'][data-shell-ready] [data-shell='sidebar'][data-open]:not([data-open='false']){
    transform:none;visibility:visible;pointer-events:auto;transition:transform 180ms ease;
  }
  html[data-product] [data-shell='root'][data-shell-ready] :is([data-shell='menu-button'],[data-shell='close']):not([hidden]){display:inline-grid}
  html[data-product][data-nav-open]:not([data-nav-open='false']) [data-shell='scrim']:not([hidden]),
  html[data-product] [data-shell='sidebar'][data-open]:not([data-open='false']) ~ [data-shell='scrim']:not([hidden]),
  html[data-product] [data-shell='scrim'][data-open]:not([data-open='false'],[hidden]){
    display:block;position:fixed;inset:0;z-index:var(--shell-z-scrim,40);
    width:auto;height:auto;margin:0;padding:0;border:0;border-radius:0;
    background:var(--dp-bg);opacity:.72;cursor:pointer;
  }
  html[data-product][data-nav-open]:not([data-nav-open='false']):has([data-shell='root'][data-shell-ready]) body{overflow:hidden}
}
/* Reduced motion */
@media (prefers-reduced-motion:reduce){
  html[data-product] :is([data-shell='sidebar'],[data-shell='menu-button'],[data-shell='close']),
  html[data-product] [data-shell='root'][data-shell-ready] [data-shell='sidebar'],
  html[data-product] [data-shell='sidebar'] [data-shell-section] :is(a,button){transition:none}
}

@media(max-width:850px){html[data-product][data-nav-open]:not([data-nav-open="false"]):has([data-shell="root"][data-shell-ready]){overflow:hidden}}

/* Fable zkbanking-shell */
/* zkBanking shell bridge: neutralises legacy fixed chrome so the shared data-shell rules apply. Append last. */
html[data-product='zkbanking']{--sidebar-width:256px;--topbar-height:72px}
html[data-product='zkbanking'] [data-shell='sidebar']{right:auto;bottom:auto;left:auto;width:auto;padding:0;border-right:0;z-index:auto}
html[data-product='zkbanking'] [data-shell='topbar']{right:auto;left:auto;justify-content:flex-start;border-bottom:0;-webkit-backdrop-filter:none;backdrop-filter:none}
html[data-product='zkbanking'] [data-shell='topbar'] .topbar-right{margin-left:auto}
html[data-product='zkbanking'] [data-shell='main'] .banking-main{margin-left:0;padding-top:0}
html[data-product='zkbanking'] [data-shell='main'] .site-footer.container{width:calc(100% - var(--gutter) * 2);margin-inline:auto}
html[data-product='zkbanking'] :is([data-shell='menu-button'],[data-shell='close']){position:static;margin:0}
html[data-product='zkbanking'] [data-shell='sidebar'] [data-shell-section='brand'] .workspace-brand{min-height:44px;padding:0;flex-shrink:1}
html[data-product='zkbanking'] [data-shell='sidebar'] [data-shell-section='brand'] .workspace-logo{width:188px;max-width:100%;height:auto}
html[data-product='zkbanking'] [data-shell='sidebar'] [data-shell-section='product']{grid-template-columns:auto minmax(0,1fr);align-items:center;gap:12px;margin:0;padding:12px 24px;border:0;border-radius:0;background:transparent}
html[data-product='zkbanking'] [data-shell='sidebar'] .nav-label{margin:0;padding:8px 12px 4px}
html[data-product='zkbanking'] [data-shell='sidebar'] :is(.workspace-nav,.ecosystem-nav){gap:4px;margin:0}
html[data-product='zkbanking'] [data-shell='sidebar'] .product-dot{flex:none}
html[data-product='zkbanking'] [data-shell='sidebar'] [data-shell-section='foot'] a{justify-content:flex-start}
html[data-product='zkbanking'] [data-shell='sidebar'] [data-shell-section='foot'] :is(.sidebar-network,p){margin:0;padding:4px 12px}
@media (max-width:850px){
  html[data-product='zkbanking'] [data-shell='root']:not([data-shell-ready]) [data-shell='sidebar']{visibility:visible;transform:none;transition:none}
  html[data-product='zkbanking'] [data-shell='topbar'] .theme-switch-label{display:none}
}

/* Fable zkbridge-shell */
/* zkBridge shell bridge: legacy command-center.css overrides. Append last in the shared stylesheet. */
html[data-product='zkbridge'] .bridge-shell[data-shell='root']{width:100%;margin:0;border:0}
html[data-product='zkbridge'] .bridge-shell[data-shell='root'] > .console-body{display:contents}
/* Sidebar frame */
html[data-product='zkbridge'] .bridge-shell [data-shell='sidebar'].command-nav{padding:0;border:0;gap:0}
html[data-product='zkbridge'] [data-shell='sidebar'] [data-shell-section='brand'] .console-brand{padding:0;max-width:100%}
html[data-product='zkbridge'] [data-shell='sidebar'] .console-brand .original-logo{width:188px;max-width:100%;height:auto;filter:none}
/* Product card */
html[data-product='zkbridge'] [data-shell='sidebar'] .product-label[data-shell-section='product']{display:flex;align-items:center;gap:12px;margin:0;padding-inline:24px;border:0;border-radius:0;background:transparent}
html[data-product='zkbridge'] [data-shell='sidebar'] .product-label .product-icon{flex:none}
html[data-product='zkbridge'] [data-shell='sidebar'] .product-label small{font-family:var(--dp-font-body);font-size:.875rem;font-weight:400;color:var(--dp-muted)}
/* Sections, labels, navs */
html[data-product='zkbridge'] [data-shell='sidebar'] :is(.nav-context,.nav-bottom)[data-shell-section]{margin:0;border:0;align-items:stretch;overflow:visible}
html[data-product='zkbridge'] [data-shell='sidebar'] nav{display:grid;grid-template-columns:minmax(0,1fr);gap:4px;margin:0}
html[data-product='zkbridge'] [data-shell='sidebar'] [data-shell-section] > .nav-caption{display:block;margin:0;padding:4px 12px;font-family:var(--dp-font-mono);font-size:.875rem;line-height:1.5;letter-spacing:.1em;color:var(--dp-muted)}
html[data-product='zkbridge'] [data-shell='sidebar'] :is(.nav-item,.nav-bottom > a){flex:none;flex-direction:row;justify-content:flex-start;white-space:normal;text-align:start}
html[data-product='zkbridge'] [data-shell='sidebar'] .nav-bottom > a{justify-content:space-between}
html[data-product='zkbridge'] [data-shell='sidebar'] .nav-item > svg{display:block;flex:none}
html[data-product='zkbridge'] [data-shell='sidebar'] .nav-item > svg:first-child{width:17px!important}
html[data-product='zkbridge'] [data-shell='sidebar'] .nav-item > svg:last-child{width:13px!important;margin-left:auto}
html[data-product='zkbridge'] [data-shell='sidebar'] [data-shell-section='context'] .connection{margin:0;padding:4px 12px}
html[data-product='zkbridge'] [data-shell='sidebar'] [data-shell-section='context'] p{margin:0;padding:0 12px 4px}
html[data-product='zkbridge'] [data-shell='sidebar'] [data-shell-section='foot'] > span{display:block;padding:4px 12px;font-family:var(--dp-font-mono);font-size:.875rem;line-height:1.5}
/* Topbar */
html[data-product='zkbridge'] .bridge-shell [data-shell='topbar'].console-header{justify-content:flex-start;flex-wrap:nowrap;border:0}
html[data-product='zkbridge'] [data-shell='topbar'] .breadcrumb{flex:0 1 auto;min-width:0;flex-wrap:nowrap;white-space:nowrap}
html[data-product='zkbridge'] [data-shell='topbar'] .role-label{margin-left:8px}
html[data-product='zkbridge'] [data-shell='topbar'] .header-tools{flex:none;flex-wrap:nowrap;justify-content:flex-end;gap:12px;margin-left:auto}
html[data-product='zkbridge'] [data-shell='topbar'] .environment{white-space:nowrap}
html[data-product='zkbridge'] [data-shell='topbar'] .theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:none;width:auto;min-width:44px;height:44px;min-height:44px;padding:0 12px;font-size:1rem;line-height:1}
/* Main gutter matches the topbar */
html[data-product='zkbridge'] .bridge-shell [data-shell='main'].console-main{padding-inline:var(--shell-gutter,24px)}
@media (max-width:850px){
  html[data-product='zkbridge'] .bridge-shell [data-shell='main'].console-main{padding-inline:16px}
  html[data-product='zkbridge'] [data-shell='topbar'] .theme-toggle{width:44px;padding:0}
  html[data-product='zkbridge'] [data-shell='topbar'] .theme-toggle .theme-label{display:none}
  /* Close button sits in the brand row without leaving first position in the DOM */
  html[data-product='zkbridge'] .bridge-shell[data-shell-ready] [data-shell='sidebar'] > [data-shell='close']{position:absolute;top:14px;inset-inline-end:12px;z-index:1}
  html[data-product='zkbridge'] .bridge-shell[data-shell-ready] [data-shell='sidebar'] [data-shell-section='brand']{padding-inline-end:60px}
}
@media (max-width:640px){
  html[data-product='zkbridge'] [data-shell='topbar'] .breadcrumb :is(.crumb-family,.crumb-sep){display:none}
}
@media (min-width:391px) and (max-width:480px){
  html[data-product='zkbridge'] [data-shell='topbar'] .role-label{display:none}
}

/* Fable identity-shell */
/* Sandbox + Vault shell bridge. Append last in the shared stylesheet, after the core shell block. */
/* Frame: expose header and main as grid items; neutralise legacy borders, margins and offsets. */
html:is([data-product='sandbox'],[data-product='vault']) [data-shell='root'] .dna-dashboard-inset{display:contents}
html:is([data-product='sandbox'],[data-product='vault']) [data-shell='root'] [data-shell='topbar']{position:sticky;top:0;width:auto;margin:0;border:0;transform:none}
html:is([data-product='sandbox'],[data-product='vault']) [data-shell='root'] [data-shell='menu-button']{position:static;margin:0;transform:none}
html:is([data-product='sandbox'],[data-product='vault']) #root [data-shell='root'] [data-shell='sidebar']{display:flex;border:0;padding:0}
@media (min-width:851px){
  html:is([data-product='sandbox'],[data-product='vault']) [data-shell='root'] [data-shell='sidebar']{position:sticky;inset:0 auto auto 0;width:auto;max-width:none;margin:0;transform:none;visibility:visible}
}
/* Sidebar sections */
html:is([data-product='sandbox'],[data-product='vault']) [data-shell='sidebar'] [data-shell-section]{border:0}
html:is([data-product='sandbox'],[data-product='vault']) [data-shell='sidebar'] [data-shell-section]:not([data-shell-section='foot']){margin:0}
html:is([data-product='sandbox'],[data-product='vault']) [data-shell='sidebar'] [data-shell-section='brand'] > a{flex:0 1 188px;max-width:188px}
html:is([data-product='sandbox'],[data-product='vault']) [data-shell='sidebar'] [data-shell-section='brand'] .dna-brand img:only-child{width:188px;max-width:100%;height:auto}
html:is([data-product='sandbox'],[data-product='vault']) [data-shell='sidebar'] [data-shell-section='product']{display:flex;align-items:center;gap:12px;padding:12px 24px}
html:is([data-product='sandbox'],[data-product='vault']) [data-shell='sidebar'] [data-shell-section='product'] .product-icon{flex:none;display:inline-grid;place-items:center;width:36px;height:36px;border-radius:var(--dp-r-sm);background:var(--dp-well);color:var(--dp-accent-ink)}
html:is([data-product='sandbox'],[data-product='vault']) [data-shell='sidebar'] [data-shell-section='product'] small{display:block;font:400 .875rem/1.4 var(--dp-font-body);color:var(--dp-muted)}
html:is([data-product='sandbox'],[data-product='vault']) [data-shell='sidebar'] .dna-navigation-caption{display:block;padding:8px 12px 4px;color:var(--dp-muted);font:500 .75rem/1.5 var(--dp-font-mono);letter-spacing:.08em;text-transform:uppercase}
/* Workspace nav items: legacy stepper content inside shared 44px rows */
html:is([data-product='sandbox'],[data-product='vault']) [data-shell='sidebar'] .dna-step > button > strong{min-width:0;font:inherit}
html:is([data-product='sandbox'],[data-product='vault']) [data-shell='sidebar'] .dna-step > button > :is(svg,.dna-nav-count){flex:none;margin-inline-start:auto}
html:is([data-product='sandbox'],[data-product='vault']) [data-shell='sidebar'] .dna-step .dna-step-connector{top:38px;bottom:-10px}
/* Purely decorative numerals (aria-hidden, Vault) and their connectors are removed */
html:is([data-product='sandbox'],[data-product='vault']) [data-shell='sidebar'] .dna-step-number[aria-hidden='true']{display:none}
html:is([data-product='sandbox'],[data-product='vault']) [data-shell='sidebar'] .dna-step:has(> button > .dna-step-number[aria-hidden='true']) .dna-step-connector{display:none}
/* Ecosystem and foot */
html:is([data-product='sandbox'],[data-product='vault']) [data-shell='sidebar'] [data-shell-section='ecosystem'] a > [data-shell-icon]{margin-inline-start:auto}
html:is([data-product='sandbox'],[data-product='vault']) [data-shell='sidebar'] [data-shell-section='foot'] :is(footer,.vault-footer){display:grid;gap:4px;margin:0;padding:0;border:0}
html:is([data-product='sandbox'],[data-product='vault']) [data-shell='sidebar'] [data-shell-section='foot'] :is(.vault-session,footer > span),
html:is([data-product='sandbox'],[data-product='vault']) [data-shell='sidebar'] [data-shell-section='foot'] > span{display:block;margin:0;padding:4px 12px;font-size:1rem;line-height:1.5;color:var(--dp-muted);overflow-wrap:anywhere}
/* Topbar: left menu + breadcrumb, right environment / theme / actions */
html:is([data-product='sandbox'],[data-product='vault']) [data-shell='topbar'] .dna-product-name{flex:0 1 auto;min-width:0;font-size:1rem;line-height:1.4}
html:is([data-product='sandbox'],[data-product='vault']) [data-shell='topbar'] .identity-breadcrumb{margin-inline-end:.35em;color:var(--dp-muted);font-weight:500}
html:is([data-product='sandbox'],[data-product='vault']) [data-shell='topbar'] .dna-header-context{flex:none;margin-inline-start:auto}
html:is([data-product='sandbox'],[data-product='vault']) [data-shell='topbar'] .dna-header-actions{flex:none;gap:8px}
html:is([data-product='sandbox'],[data-product='vault']) [data-shell='topbar'] .dna-header-context + .dna-header-actions{margin-inline-start:0}
/* The sidebar and drawer carry the same destinations once the shell is ready, so the duplicate task nav is hidden */
html:is([data-product='sandbox'],[data-product='vault']) [data-shell='root'][data-shell-ready] .vault-tasks{display:none}
@media (max-width:850px){
  html:is([data-product='sandbox'],[data-product='vault']) [data-shell='root'][data-shell-ready] [data-shell='close']{position:absolute;top:14px;inset-inline-end:12px;margin:0}
  html:is([data-product='sandbox'],[data-product='vault']) [data-shell='topbar'] .dna-header-actions > button{justify-content:center;width:44px;padding:0}
  html:is([data-product='sandbox'],[data-product='vault']) [data-shell='topbar'] .dna-header-actions > button > span{display:none}
}
@media (max-width:480px){
  html:is([data-product='sandbox'],[data-product='vault']) [data-shell='topbar'] .identity-breadcrumb{display:none}
}

/* Fable zkproof-shell-root */
html[data-product='zkproof']{scroll-padding-top:88px}
html[data-product='zkproof'] body.nx-app .nx-layout[data-shell='root']{display:grid;width:100%;max-width:none;margin:0}
html[data-product='zkproof'] body.nx-app [data-shell='root']>.nx-content{display:contents;padding:0;margin:0}
html[data-product='zkproof'] body.nx-app .nx-sidebar[data-shell='sidebar']{display:flex;flex-direction:column;margin:0;padding:0;border:0;background:var(--dp-surface)}
html[data-product='zkproof'] body.nx-app .site-header[data-shell='topbar']{position:sticky;top:0;left:auto;right:auto;display:flex;justify-content:flex-start;width:auto;max-width:none;margin:0;height:72px;min-height:72px;max-height:72px;border:0;border-radius:0;backdrop-filter:none}
html[data-product='zkproof'] body.nx-app .page-shell[data-shell='main']{width:auto;max-width:none;margin:0;padding:0 clamp(20px,2.7vw,42px)}
html[data-product='zkproof'] body.nx-app [data-shell='topbar'] .header-actions{display:flex;align-items:center;flex-wrap:nowrap;justify-content:flex-end;width:auto;min-width:0;margin-left:auto}
html[data-product='zkproof'] body.nx-app [data-shell='topbar'] .header-actions .icon-button{width:44px;height:44px}
html[data-product='zkproof'] body.nx-app [data-shell='sidebar'] .nx-brand{flex:0 1 188px;width:188px;max-width:188px;min-width:0;margin:0;padding:0}
html[data-product='zkproof'] body.nx-app [data-shell='sidebar'] .nx-brand img{width:100%;max-width:188px;height:auto}
html[data-product='zkproof'] body.nx-app [data-shell='sidebar'] [data-shell-section='product']{padding:12px 24px}
html[data-product='zkproof'] body.nx-app [data-shell='sidebar'] .nx-side-label{display:block;margin:0;padding:4px 12px}
html[data-product='zkproof'] body.nx-app [data-shell='sidebar'] .nx-side-nav{display:grid;gap:4px;margin:0;padding:0;overflow:visible}
html[data-product='zkproof'] body.nx-app [data-shell='sidebar'] .nx-side-nav a{white-space:normal;height:auto}
html[data-product='zkproof'] body.nx-app [data-shell='sidebar'] .nx-side-nav a b{display:inline}
html[data-product='zkproof'] body.nx-app [data-shell='sidebar'] .nx-side-nav svg{width:20px;height:20px}
html[data-product='zkproof'] body.nx-app [data-shell='sidebar'] .nx-sidebar-bottom[data-shell-section='foot']{display:block;margin-top:auto;padding:16px 24px}
@media (max-width:850px){
  html[data-product='zkproof'] body.nx-app .page-shell[data-shell='main']{padding:0 16px}
  html[data-product='zkproof'] body.nx-app [data-shell='topbar'] .header-actions{gap:8px}
  html[data-product='zkproof'] body.nx-app [data-shell='topbar'] .header-actions .network-pill{min-width:0}
}
@media (max-width:480px){
  html[data-product='zkproof'] body.nx-app .site-header[data-shell='topbar']{gap:8px}
  html[data-product='zkproof'] body.nx-app [data-shell='topbar'] .nx-theme{position:relative;padding:0}
  html[data-product='zkproof'] body.nx-app [data-shell='topbar'] .nx-theme>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
}
@media (max-width:360px){
  html[data-product='zkproof'] body.nx-app .page-shell[data-shell='main']{padding:0 14px}
}

/* Fable zktransparency-shell */
/* zkTransparency root shell overrides. Load after the shared shell CSS (end of /institutional-ui.css). */
html[data-product='zktransparency']{scroll-padding-top:88px}
html[data-product='zktransparency'] #shell-root{grid-template-rows:var(--shell-topbar-h) minmax(0,1fr) auto}
html[data-product='zktransparency'] #shell-root>.nx-content{display:contents;padding:0}
html[data-product='zktransparency'] #shell-root>.nx-sidebar{padding:0;border:0}
html[data-product='zktransparency'] #shell-root .site-header{margin:0;border:0}
html[data-product='zktransparency'] #shell-root .page-shell{padding-inline:var(--shell-gutter,24px)}
html[data-product='zktransparency'] #shell-root .site-footer{grid-column:2;grid-row:3;margin-inline:var(--shell-gutter,24px)}
html[data-product='zktransparency'] #shell-root [data-shell-section='brand'] .nx-brand{display:block;flex:0 1 188px;min-width:0;max-width:188px;padding:0}
html[data-product='zktransparency'] #shell-root [data-shell-section='brand'] .nx-brand img{width:100%;max-width:188px;height:auto}
html[data-product='zktransparency'] #shell-root .nx-side-label{margin:0}
html[data-product='zktransparency'] #shell-root .nx-side-label[data-shell-section='product']{letter-spacing:normal;text-transform:none}
html[data-product='zktransparency'] #shell-root .nx-side-nav>.nx-side-label{display:block;padding:4px 12px}
html[data-product='zktransparency'] #shell-root .nx-side-nav{margin:0;overflow:visible}
html[data-product='zktransparency'] #shell-root .nx-side-nav a{white-space:normal}
html[data-product='zktransparency'] #shell-root .nx-side-nav a>svg{width:20px;height:20px;flex:none}
html[data-product='zktransparency'] #shell-root .nx-side-nav a>b{display:inline}
html[data-product='zktransparency'] #shell-root .nx-sidebar-bottom{display:block}
@media (min-width:851px){
  html[data-product='zktransparency'] #shell-root>[data-shell='sidebar']{grid-row:1 / -1}
}
@media (max-width:850px){
  html[data-product='zktransparency'] #shell-root .page-shell{padding-inline:16px}
  html[data-product='zktransparency'] #shell-root .site-footer{grid-column:1;margin-inline:16px}
  html[data-product='zktransparency'] #shell-root:not([data-shell-ready]){grid-template-rows:auto var(--shell-topbar-h) minmax(0,1fr) auto}
  html[data-product='zktransparency'] #shell-root:not([data-shell-ready]) .site-footer{grid-row:4}
  html[data-product='zktransparency'] #shell-root .header-actions{width:auto;min-width:0;margin-left:auto;flex-wrap:nowrap;justify-content:flex-end;gap:8px}
  html[data-product='zktransparency'] #shell-root .header-actions .icon-button{width:44px;height:44px}
  html[data-product='zktransparency'] #shell-root .nx-theme{position:relative;margin-left:0;padding:0}
  html[data-product='zktransparency'] #shell-root .nx-theme>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  html[data-product='zktransparency'] #menu-toggle{display:none}
}
@media (max-width:400px){
  html[data-product='zktransparency'] #shell-root .network-pill{display:none}
}

/* Fable zkguard-shell */
/* zkGuard root shell adoption: explicit overrides of legacy .nx-* sidebar/header rules. Geometry stays in the shared shell CSS. Legacy shell rules use classes only, so no root id specificity is needed. */
html[data-product="zkguard"]{scroll-padding-top:88px}
html[data-product="zkguard"] [data-shell="root"].nx-layout{width:100%;max-width:none;margin:0}
html[data-product="zkguard"] [data-shell="root"]>.nx-content{display:contents}
/* Sidebar */
html[data-product="zkguard"] [data-shell="sidebar"].nx-sidebar{padding:0;border:0}
html[data-product="zkguard"] [data-shell="sidebar"] [data-shell-section="brand"] .nx-brand{display:inline-flex;flex:0 1 188px;max-width:none;padding:0}
html[data-product="zkguard"] [data-shell="sidebar"] [data-shell-section="brand"] .nx-brand img{width:188px;max-width:100%;height:auto}
html[data-product="zkguard"] [data-shell="sidebar"] [data-shell-section="product"]{padding:16px 24px 4px}
html[data-product="zkguard"] [data-shell="sidebar"] .nx-side-label{display:block;margin:0;padding:8px 12px 4px;font-size:1rem}
html[data-product="zkguard"] [data-shell="sidebar"] [data-shell-section="ecosystem"] .nx-side-nav{display:grid;gap:4px;margin:0;padding:0;overflow:visible}
html[data-product="zkguard"] [data-shell="sidebar"] .nx-side-nav a{height:auto;white-space:normal}
html[data-product="zkguard"] [data-shell="sidebar"] .nx-side-nav a b{display:inline;margin-left:auto}
html[data-product="zkguard"] [data-shell="sidebar"] .nx-side-nav svg{flex:none;width:20px;height:20px}
html[data-product="zkguard"] [data-shell="sidebar"] [data-shell-section="foot"]{display:block;padding:16px 24px}
/* Topbar */
html[data-product="zkguard"] [data-shell="topbar"].site-header{width:auto;max-width:none;margin:0;border:0;border-radius:0;backdrop-filter:none}
html[data-product="zkguard"] [data-shell="topbar"] .header-actions{display:flex;align-items:center;flex-wrap:nowrap;gap:8px;width:auto;min-width:0;margin-left:auto}
/* Main takes over the gutter that .nx-content used to provide */
html[data-product="zkguard"] [data-shell="main"].page-shell{width:auto;max-width:none;margin:0;padding:0 var(--shell-gutter,24px)}
@media (max-width:850px){
  html[data-product="zkguard"] [data-shell="main"].page-shell{padding:0 16px}
  html[data-product="zkguard"] [data-shell="topbar"] .network-pill{min-width:0;white-space:normal;line-height:1.3}
}
/* Narrow phones: theme toggle becomes icon-only; its aria-label still names it */
@media (max-width:520px){
  html[data-product="zkguard"] [data-shell="topbar"] .nx-theme{position:relative}
  html[data-product="zkguard"] [data-shell="topbar"] .nx-theme span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
}

/* Fable zkballot-shell */
html[data-product=zkballot]{scroll-padding-top:96px}
html[data-product=zkballot] #app[data-shell=root]{--dp-bg:var(--bg);--dp-surface:var(--panel);--dp-well:var(--control);--dp-raised:var(--subtle);--dp-text:var(--text);--dp-muted:var(--muted);--dp-faint:var(--faint);--dp-line:var(--line);--dp-rule:var(--line);--dp-rule-soft:var(--line);--dp-accent:var(--cyan);--dp-accent-ink:var(--cyan);--dp-accent-soft:color-mix(in srgb,var(--cyan) 10%,transparent);--dp-control:var(--control);--dp-control-border:var(--control-border);--dp-r-sm:8px;--dp-ease:.16s ease;--dp-shadow:0 18px 48px #0006;--dp-font-body:Manrope,Inter,sans-serif;--dp-font-head:Sora,Manrope,sans-serif;--dp-font-mono:var(--mono);display:grid;grid-template-columns:256px minmax(0,1fr);grid-template-rows:72px minmax(0,1fr);width:100%;max-width:none;min-height:100dvh;margin:0;padding:0}
html[data-product=zkballot] #app :is(.ballot-console,.console-content){display:contents}
html[data-product=zkballot] #app>.modal-backdrop{z-index:60}
html[data-product=zkballot] #app>.skip-link{position:absolute;z-index:70}
html[data-product=zkballot] #app .command-sidebar[data-shell=sidebar]{padding:0;border:0;background:var(--panel)}
html[data-product=zkballot] #app [data-shell=sidebar] :is(nav,.sidebar-context,.sidebar-bottom){display:grid;grid-template-columns:minmax(0,1fr);gap:4px;height:auto;margin:0;padding:12px;border:0;overflow:visible;align-items:stretch}
html[data-product=zkballot] #app [data-shell=sidebar] .console-brand{display:block;flex:0 1 188px;min-width:0;padding:0}
html[data-product=zkballot] #app [data-shell=sidebar] .console-brand .original-logo{width:188px;max-width:100%;height:auto}
html[data-product=zkballot] #app .console-product[data-shell-section]{display:flex;align-items:center;gap:12px;margin:4px 12px 12px;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--subtle);box-shadow:none;font:600 1rem/1.35 Sora,Manrope,sans-serif;color:var(--text)}
html[data-product=zkballot] #app .console-product small{margin-top:2px;font:500 14px/1.5 Manrope,Inter,sans-serif;color:var(--muted)}
html[data-product=zkballot] #app [data-shell=sidebar] :is(.nav-caption,.suite-label){display:block;margin:0;padding:8px 12px 4px;font:14px/1.5 var(--mono);letter-spacing:.1em;color:var(--muted)}
html[data-product=zkballot] #app [data-shell=sidebar] .nav-link{justify-content:flex-start;height:auto}
html[data-product=zkballot] #app [data-shell=sidebar] .nav-link>svg{flex:none;width:18px;height:18px}
html[data-product=zkballot] #app [data-shell=sidebar] .nav-arrow{display:block;margin-left:auto}
html[data-product=zkballot] #app .sidebar-context strong{display:block;margin:0;padding:0 12px;font-size:1rem;font-weight:600;line-height:1.5;color:var(--text);overflow-wrap:anywhere}
html[data-product=zkballot] #app .sidebar-context small{display:block;margin:0;padding:0 12px 8px;font-size:14px;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}
html[data-product=zkballot] #app [data-shell-section=foot]{padding:12px 24px 16px}
html[data-product=zkballot] #app .suite-note{font:14px/1.5 var(--mono);color:var(--muted)}
html[data-product=zkballot] #app .command-header[data-shell=topbar]{flex-wrap:nowrap;justify-content:flex-start;align-items:center;gap:12px;height:72px;min-height:72px;max-height:72px;padding:0 24px;border:0;background:var(--panel)}
html[data-product=zkballot] #app .command-breadcrumb{flex:1 1 auto;width:auto;min-width:0;flex-wrap:nowrap;white-space:nowrap;overflow:hidden;font-size:1rem}
html[data-product=zkballot] #app .command-tools{flex:none;flex-wrap:nowrap;width:auto;margin:0 0 0 auto;gap:12px}
html[data-product=zkballot] #app .command-tools .primary.compact{white-space:nowrap}
html[data-product=zkballot] #app [data-shell=main]{width:auto;max-width:none;min-width:0;margin:0}
html[data-product=zkballot] #app .busy-banner{top:84px}
@media(max-width:850px){html[data-product=zkballot] #app[data-shell=root]{grid-template-columns:minmax(0,1fr)}html[data-product=zkballot] #app[data-shell=root]:not([data-shell-ready]){grid-template-rows:auto 72px minmax(0,1fr)}html[data-product=zkballot] #app .command-header[data-shell=topbar]{padding:0 16px;gap:8px}html[data-product=zkballot] #app .command-tools{gap:8px}html[data-product=zkballot] #app .command-breadcrumb{font-size:0;gap:0}html[data-product=zkballot] #app .command-breadcrumb>span,html[data-product=zkballot] #app .configured-network{display:none}html[data-product=zkballot] #app .command-breadcrumb>strong{font-size:1rem;overflow:hidden;text-overflow:ellipsis}}
@media(max-width:420px){html[data-product=zkballot] #app #create-dialog{width:44px;min-width:44px;padding:0;gap:0;font-size:0;justify-content:center}html[data-product=zkballot] #app #create-dialog svg{width:18px;height:18px}}

/* Fable zkbanking-task */
/* zkBanking task-first round: compact overview, topology as secondary lab content, single icon per slot. Presentation only. Append at the very end of src/institutional-ui.css. */
/* 1. Compact overview so the Settlement lab starts in the first viewport */
html[data-product=zkbanking i] .overview-title{margin-bottom:16px}
html[data-product=zkbanking i] .session-metrics{margin-bottom:0}
html[data-product=zkbanking i] .session-metrics>div{padding:12px 20px}
html[data-product=zkbanking i] .session-metrics>div>span{font-size:.875rem;line-height:1.4}
html[data-product=zkbanking i] .session-metrics strong{margin-top:2px;font-size:1.25rem;line-height:1.3}
html[data-product=zkbanking i] .session-metrics p{margin-top:2px;font-size:.875rem;line-height:1.45}
html[data-product=zkbanking i] .lab-section{padding-top:24px}
@media (max-width:600px){
html[data-product=zkbanking i] .overview-title{gap:12px;margin-bottom:16px}
html[data-product=zkbanking i] .session-metrics>div{padding:10px 14px}
html[data-product=zkbanking i] .lab-section{padding-top:20px}
}
@media (max-width:380px){
html[data-product=zkbanking i] .session-metrics>div{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;column-gap:12px}
html[data-product=zkbanking i] .session-metrics strong{margin-top:0;text-align:right}
html[data-product=zkbanking i] .session-metrics p{grid-column:1/-1}
}
/* 2. Topology inside the lab column: compact stage grid by default, sized from the column not the viewport */
html[data-product=zkbanking i] .workflow>.flow-card{box-shadow:none}
html[data-product=zkbanking i] .workflow>.flow-card .flow-heading{padding:16px 24px 0}
html[data-product=zkbanking i] .workflow>.flow-card .flow-heading h3{margin-top:4px;font-size:1.125rem;line-height:1.3}
html[data-product=zkbanking i] .workflow>.flow-card .flow-map{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;aspect-ratio:auto;min-height:0;margin:16px 24px;background-image:none}
html[data-product=zkbanking i] .workflow>.flow-card .flow-connections{display:none}
html[data-product=zkbanking i] .workflow>.flow-card .flow-node{position:relative;inset:auto;display:flex;flex-direction:row;align-items:center;gap:10px;width:100%;height:auto;min-height:64px;padding:10px 14px}
html[data-product=zkbanking i] .workflow>.flow-card .flow-node .node-symbol{display:grid}
html[data-product=zkbanking i] .workflow>.flow-card .flow-node small{display:flex;white-space:normal;overflow:visible}
html[data-product=zkbanking i] .workflow>.flow-card .flow-map>button:nth-of-type(n){grid-column:auto}
html[data-product=zkbanking i] .workflow>.flow-card .flow-map>button:nth-of-type(1){grid-column:1/-1}
html[data-product=zkbanking i] .workflow>.flow-card .flow-inspector{min-height:0;padding:12px 24px}
html[data-product=zkbanking i] .workflow>.flow-card .flow-legend{padding:10px 24px}
@media (max-width:600px){
html[data-product=zkbanking i] .workflow>.flow-card .flow-heading{padding:14px 18px 0}
html[data-product=zkbanking i] .workflow>.flow-card .flow-map{margin:14px 18px}
html[data-product=zkbanking i] .workflow>.flow-card .flow-map>button:nth-of-type(n+4){grid-column:1/-1}
html[data-product=zkbanking i] .workflow>.flow-card :is(.flow-inspector,.flow-legend){padding-inline:18px}
}
/* Connected map returns only when the lab column itself is wide enough for readable nodes */
@supports (container-type:inline-size){
html[data-product=zkbanking i] .workflow{container:lab-flow / inline-size}
@container lab-flow (min-width:1040px){
html[data-product=zkbanking i] .workflow>.flow-card .flow-map{display:block;aspect-ratio:775 / 274;background-image:radial-gradient(circle,color-mix(in srgb,var(--dp-faint) 18%,transparent) .65px,transparent .8px);background-size:15px 15px}
html[data-product=zkbanking i] .workflow>.flow-card .flow-connections{display:block}
html[data-product=zkbanking i] .workflow>.flow-card .flow-node{position:absolute;inset:var(--node-y) auto auto var(--node-x);width:20.4%;height:25%;min-height:0;padding:8px 12px}
}
}
/* 3. Workspace navigation: the inline shell mask is the only icon; the older href-based ::before mask is retired for adopted items */
html[data-product=zkbanking i] [data-shell='sidebar'] .workspace-nav a[href]>span[data-shell-icon][aria-hidden='true']:first-child::before{content:none}
@media (forced-colors:active){
html[data-product=zkbanking i] [data-shell='sidebar'] .workspace-nav a[href]>span[data-shell-icon][style*='--shell-icon']{forced-color-adjust:none;background-color:CanvasText}
}

/* Fable zkproof-subpage-shell */
/* Append to /institutional-ui.css after the shared shell block. zkProof pipeline + lifecycle only. */
html[data-product='zkproof'] body:is(.nx-connected,.nx-lifecycle) [data-shell='sidebar'] [data-shell-section='brand'] .nx-brand img{width:188px;max-width:100%;min-width:0;height:auto}
html[data-product='zkproof'] body:is(.nx-connected,.nx-lifecycle) .shell-product-card{display:grid;gap:2px;padding:12px;border:1px solid var(--dp-rule);border-radius:var(--dp-r-sm);background:var(--dp-well)}
html[data-product='zkproof'] body:is(.nx-connected,.nx-lifecycle) .shell-product-card strong{font:inherit;color:var(--dp-text)}
html[data-product='zkproof'] body:is(.nx-connected,.nx-lifecycle) .shell-product-card span{font-family:var(--dp-font-body);font-size:1rem;font-weight:400;line-height:1.4;color:var(--dp-muted);overflow-wrap:anywhere}
html[data-product='zkproof'] body:is(.nx-connected,.nx-lifecycle) [data-shell='topbar'] .shell-crumb{display:block;flex:0 1 auto;min-width:0;margin:0;padding:0;font-family:var(--dp-font-body);font-size:1rem;line-height:1.25}
html[data-product='zkproof'] body:is(.nx-connected,.nx-lifecycle) .shell-crumb ol{display:flex;align-items:center;gap:8px;min-width:0;margin:0;padding:0;list-style:none}
html[data-product='zkproof'] body:is(.nx-connected,.nx-lifecycle) .shell-crumb li{display:flex;align-items:center;gap:8px;min-width:0}
html[data-product='zkproof'] body:is(.nx-connected,.nx-lifecycle) .shell-crumb li+li::before{content:'/';content:'/' / '';color:var(--dp-faint)}
html[data-product='zkproof'] body:is(.nx-connected,.nx-lifecycle) .shell-crumb a{color:var(--dp-muted);text-decoration:underline;text-underline-offset:3px}
html[data-product='zkproof'] body:is(.nx-connected,.nx-lifecycle) .shell-crumb a:hover{color:var(--dp-text)}
html[data-product='zkproof'] body:is(.nx-connected,.nx-lifecycle) .shell-crumb [aria-current]{color:var(--dp-text);font-weight:600;overflow-wrap:anywhere}
html[data-product='zkproof'] body:is(.nx-connected,.nx-lifecycle) [data-shell='topbar'] .header-actions{display:flex;align-items:center;gap:12px;flex:none;margin-inline-start:auto}
html[data-product='zkproof'] body.nx-connected [data-shell='main'] .back-link{display:inline-flex;align-items:center;min-height:44px;font-size:1rem;color:var(--dp-muted);text-decoration:underline;text-underline-offset:3px}
html[data-product='zkproof'] body.nx-connected [data-shell='main'] .back-link:hover{color:var(--dp-text)}
html[data-product='zkproof'] body.nx-connected [data-shell='main'] .back-link:focus-visible{outline:2px solid var(--dp-accent);outline-offset:2px;border-radius:var(--dp-r-sm)}
@media (max-width:850px){
  html[data-product='zkproof'] body.nx-lifecycle [data-shell='topbar'] nav[aria-label='Main navigation']{display:none}
}
@media (max-width:560px){
  html[data-product='zkproof'] body:is(.nx-connected,.nx-lifecycle) [data-shell='topbar'] .network-pill,
  html[data-product='zkproof'] body:is(.nx-connected,.nx-lifecycle) [data-shell='topbar'] .nx-theme>span{display:none}
}

/* Fable zktransparency-subpage-shell */
/* zkTransparency connected subpages (pipeline): shell adoption adjustments only */
html[data-product="zktransparency"] body.nx-connected [data-shell-section="brand"] .nx-brand img{width:188px;max-width:100%;height:auto}
html[data-product="zktransparency"] body.nx-connected [data-shell-section="product"] p{margin:0;font-family:var(--dp-font-body);font-size:1rem;font-weight:400;line-height:1.5;color:var(--dp-muted)}
html[data-product="zktransparency"] body.nx-connected [data-shell="sidebar"] [data-shell-section] > .nx-side-label{margin:0;padding:4px 12px}
html[data-product="zktransparency"] body.nx-connected [data-shell-section="foot"] .nx-sidebar-bottom{margin:0}
html[data-product="zktransparency"] body.nx-connected [data-shell="topbar"] .shell-crumb{display:flex;align-items:center;gap:8px;min-width:0;font-size:1rem}
html[data-product="zktransparency"] body.nx-connected [data-shell="topbar"] .shell-crumb-sep{color:var(--dp-faint)}
html[data-product="zktransparency"] body.nx-connected [data-shell="topbar"] .shell-crumb-current{min-width:0;color:var(--dp-muted);overflow-wrap:anywhere}
html[data-product="zktransparency"] body.nx-connected [data-shell="topbar"] .header-actions{margin-inline-start:auto}
@media (max-width:520px){
  html[data-product="zktransparency"] body.nx-connected [data-shell="topbar"] :is(.shell-crumb-sep,.shell-crumb-current){display:none}
}

/* Fable identity-shell-detail */
/* Identity scope only (Sandbox + Vault). :is(#root,body) raises specificity to ID level so these rules win over legacy #root rules without !important. Append after the shared core shell CSS. */
html:is([data-product=sandbox],[data-product=vault]) :is(#root,body) :is([data-shell=sidebar],[data-shell=topbar]){border:0}
html:is([data-product=sandbox],[data-product=vault]) :is(#root,body) [data-shell=sidebar] [data-shell-section=brand]{min-height:72px;border:0}
/* Product: flat row, no card */
html:is([data-product=sandbox],[data-product=vault]) :is(#root,body) [data-shell=sidebar] .workspace-product{display:flex;align-items:center;gap:12px;min-height:44px;margin:0;padding:12px 24px;border:0;border-radius:0;background:none;box-shadow:inset 0 1px 0 var(--dp-rule-soft);color:var(--dp-text)}
html:is([data-product=sandbox],[data-product=vault]) :is(#root,body) [data-shell=sidebar] :is(.workspace-product,.product-icon)::before,
html:is([data-product=sandbox],[data-product=vault]) :is(#root,body) [data-shell=sidebar] :is(.workspace-product,.product-icon)::after{content:none}
/* Single custom icon: product row and theme toggle */
html:is([data-product=sandbox],[data-product=vault]) :is(#root,body) :is(.product-icon,.theme-switch > span)[data-shell-icon]{flex:none;display:inline-grid;width:20px;height:20px;min-width:0;margin:0;padding:0;border:0;border-radius:0;box-shadow:none;background:currentColor;font-size:0;-webkit-mask:var(--shell-icon) center/contain no-repeat;mask:var(--shell-icon) center/contain no-repeat}
@media (forced-colors:active){html:is([data-product=sandbox],[data-product=vault]) :is(#root,body) :is(.product-icon,.theme-switch > span)[data-shell-icon]{background:CanvasText}}
html:is([data-product=sandbox],[data-product=vault]) :is(#root,body) [data-shell=sidebar] .workspace-product > div{display:grid;gap:2px;min-width:0}
html:is([data-product=sandbox],[data-product=vault]) :is(#root,body) [data-shell=sidebar] .workspace-product strong{font:600 1rem/1.35 var(--dp-font-head);color:var(--dp-text)}
html:is([data-product=sandbox],[data-product=vault]) :is(#root,body) [data-shell=sidebar] .workspace-product small{font:400 1rem/1.35 var(--dp-font-body);color:var(--dp-muted)}
/* Labels and nav: same 44px row, 16px text */
html:is([data-product=sandbox],[data-product=vault]) :is(#root,body) [data-shell=sidebar] .dna-navigation-caption{display:flex;align-items:center;min-height:44px;margin:0;padding:0 12px;font:500 1rem/1.35 var(--dp-font-mono);letter-spacing:.04em;text-transform:uppercase;color:var(--dp-muted)}
html:is([data-product=sandbox],[data-product=vault]) :is(#root,body) [data-shell=sidebar] [data-shell-section]:not([data-shell-section=brand]) :is(a,button):not([data-shell=close]){min-height:44px;padding:8px 12px;border:0;border-radius:var(--dp-r-sm);font-size:1rem;line-height:1.35}
html:is([data-product=sandbox],[data-product=vault]) :is(#root,body) [data-shell=sidebar] .dna-step > button > strong{font:inherit}
html:is([data-product=sandbox],[data-product=vault]) :is(#root,body) [data-shell=sidebar] :is(.dna-nav-count,.dna-step-number){font-size:.875rem}
/* Footer: readable, aligned to the 24px text inset */
html:is([data-product=sandbox],[data-product=vault]) :is(#root,body) [data-shell=sidebar] [data-shell-section=foot]{gap:4px;margin-top:auto;padding:12px;border:0;color:var(--dp-muted)}
html:is([data-product=sandbox],[data-product=vault]) :is(#root,body) [data-shell=sidebar] [data-shell-section=foot] :is(footer,.vault-footer){display:grid;gap:4px;margin:0;padding:0;border:0}
html:is([data-product=sandbox],[data-product=vault]) :is(#root,body) [data-shell=sidebar] [data-shell-section=foot] :is(span,p,small):not(a *,[data-shell-icon]){display:block;margin:0;padding:4px 12px;font:400 1rem/1.5 var(--dp-font-body);letter-spacing:0;text-transform:none;color:var(--dp-muted)}
/* Uniform header: 72px bar, 44px controls */
html:is([data-product=sandbox],[data-product=vault]) :is(#root,body) [data-shell=topbar]{height:72px;min-height:72px;max-height:72px;gap:12px;padding:0 24px}
html:is([data-product=sandbox],[data-product=vault]) :is(#root,body) [data-shell=topbar] .dna-product-name{display:block;flex:0 1 auto;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font:600 1rem/1.35 var(--dp-font-head);letter-spacing:-.01em;color:var(--dp-text)}
html:is([data-product=sandbox],[data-product=vault]) :is(#root,body) [data-shell=topbar] .identity-breadcrumb{margin-inline-end:8px;font-weight:500;color:var(--dp-muted)}
html:is([data-product=sandbox],[data-product=vault]) :is(#root,body) [data-shell=topbar] .dna-header-actions{display:flex;flex:none;align-items:center;gap:8px;margin-inline-start:auto}
html:is([data-product=sandbox],[data-product=vault]) :is(#root,body) [data-shell=topbar] .dna-header-actions > :is(a,button){display:inline-flex;align-items:center;justify-content:center;gap:8px;box-sizing:border-box;height:44px;min-height:44px;min-width:44px;margin:0;padding:0 12px;border:1px solid var(--dp-control-border);border-radius:var(--dp-r-sm);background:var(--dp-control);color:var(--dp-text);font:600 1rem/1 var(--dp-font-body);text-decoration:none;white-space:nowrap;cursor:pointer}
html:is([data-product=sandbox],[data-product=vault]) :is(#root,body) [data-shell=topbar] .dna-header-actions > a{border-color:transparent;background:none}
html:is([data-product=sandbox],[data-product=vault]) :is(#root,body) [data-shell=topbar] .dna-header-actions > :is(a,button):hover{border-color:var(--dp-accent);background:var(--dp-raised)}
html:is([data-product=sandbox],[data-product=vault]) :is(#root,body) [data-shell=topbar] [data-shell=menu-button]{width:44px;height:44px;margin:0}
@media (max-width:850px){
html:is([data-product=sandbox],[data-product=vault]) :is(#root,body) [data-shell=topbar]{gap:8px;padding:0 16px}
html:is([data-product=sandbox],[data-product=vault]) :is(#root,body) [data-shell=topbar] .dna-header-context{display:none}
}
@media (max-width:600px){
html:is([data-product=sandbox],[data-product=vault]) :is(#root,body) [data-shell=topbar] .identity-breadcrumb{display:none}
html:is([data-product=sandbox],[data-product=vault]) :is(#root,body) [data-shell=topbar] .theme-switch{width:44px;padding:0}
html:is([data-product=sandbox],[data-product=vault]) :is(#root,body) [data-shell=topbar] .theme-switch > span:not([data-shell-icon]){display:none}
}

/* Fable motion-implement-zkbanking */
/* zkbanking motion hooks: site-scoped, presentation only */
.banking-main{position:relative;isolation:isolate}
.banking-main>[data-mo="helix"]{position:absolute;z-index:-1;overflow:hidden;pointer-events:none}

/* Ordinary outcomes (signed reservation, generated proof, created trade, ledger confirmation, expected rejection): subtle outline only, never a seal */
.banking-main [data-check-state]{outline:1px solid transparent;outline-offset:-1px;transition:outline-color .45s ease}
.banking-main [data-check-state="pending"]{outline-color:color-mix(in srgb,currentColor 14%,transparent)}
.banking-main [data-check-state="signed"],
.banking-main [data-check-state="generated"],
.banking-main [data-check-state="created"],
.banking-main [data-check-state="confirmed"],
.banking-main [data-check-state="rejected"]{outline-color:color-mix(in srgb,currentColor 26%,transparent)}

/* Receipt recovered from durable verifier state: static seal, no played transition */
#verify-conditions[data-proof-static] [data-proof-seal],
#verify-conditions[data-proof-static] [data-proof-seal]::before,
#verify-conditions[data-proof-static] [data-proof-seal]::after,
#verify-conditions[data-proof-static] [data-proof-seal] *{animation:none!important;transition:none!important}

/* Measured proof-time bars: real width geometry eases when a measurement arrives; seconds text is untouched */
.banking-main .timing-track>span{transition:width .6s cubic-bezier(.2,.7,.2,1)}

@media (prefers-reduced-motion:reduce){
  .banking-main [data-check-state],
  .banking-main .timing-track>span{transition:none}
}

/* Fable motion-implement-zkbridge */
/* zkBridge motion hooks: site-scoped; append to src/institutional-ui.css */
.bridge-shell .zb-proof-rail{display:block;margin:0;padding:0;min-height:0;pointer-events:none}
.bridge-shell .console-main>[data-mo="helix"]{margin:0;padding:0;pointer-events:none}
.bridge-shell [data-check-state="generated"],.bridge-shell [data-check-state="delivered"],.bridge-shell [data-check-state="ledger-validated"]{border-color:color-mix(in srgb,var(--accent) 36%,transparent);transition:border-color .24s ease}
.bridge-shell [data-check-state="ledger-pending"]{border-color:color-mix(in srgb,currentColor 28%,transparent)}
@media (prefers-reduced-motion:reduce){.bridge-shell [data-check-state]{transition:none}}
/* Recovered verification receipts remain a static historical result. */
html[data-product=zkbanking] #verify-conditions[data-proof-static] .mo-signal{animation:none!important;opacity:0!important}

/* Fable motion-implement-sandbox */
/* Helix must retain its bounded host before the runtime mounts its canvas. */
.inline-receipt[data-check-state="passed"], .ledger-status[data-check-state="passed"] { border-color: color-mix(in srgb, currentColor 36%, transparent); }
.inline-receipt[data-check-state="stale"], .inline-receipt[data-check-state="unavailable"], .ledger-status[data-check-state="stale"], .ledger-status[data-check-state="unavailable"] { border-color: color-mix(in srgb, currentColor 16%, transparent); }

/* Fable motion-implement-vault */
/* vault.css: site-scoped motion hooks only */
.vault-workspace>[data-mo="strand"]{grid-column:1/-1;flex:none;pointer-events:none}
.vault-main>[data-mo="helix"]{pointer-events:none}
.vault-fixtures button[data-pending]{cursor:progress;box-shadow:inset 0 0 0 1px color-mix(in srgb,currentColor 45%,transparent)}
.vault-explain{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;margin-top:32px}
.vault-explain>.vault-kicker{grid-column:1/-1}
.vault-explain article{border-top:1px solid color-mix(in srgb,currentColor 18%,transparent);padding-top:12px}
@keyframes vault-check-edge{from{box-shadow:inset 0 0 0 1px color-mix(in srgb,currentColor 50%,transparent)}to{box-shadow:inset 0 0 0 1px transparent}}
@media (prefers-reduced-motion:no-preference){
.vault-result[data-check-state="passed"],.vault-result[data-check-state="prepared"],.vault-document[data-fresh]{animation:vault-check-edge .7s ease-out 1}
.vault-document .vault-card-top span[data-state]{transition:color .3s ease,border-color .3s ease,background-color .3s ease}
}
.vault-result[data-check-state="failed"],.vault-result[data-check-state="expired"]{animation:none}

/* Fable motion-implement-zkproof */
/* zkproof site-scoped; append to public/motion.css (site file, not the shared dp-motion foundation) */
html[data-product="zkproof"] .proof-panel[data-check-state="passed"] .standby-symbol,
html[data-product="zkproof"] .check-row[data-check-state="passed"],
html[data-product="zkproof"] .nx-node[data-check-state="passed"] .nx-node-orb{box-shadow:inset 0 0 0 1px color-mix(in srgb,currentColor 22%,transparent)}
html[data-product="zkproof"] .proof-panel[data-proof-state="verified"] .standby-symbol,
html[data-product="zkproof"] .check-row[data-proof-row="verified"],
html[data-product="zkproof"] .nx-node[data-zk-verified] .nx-node-orb{box-shadow:0 0 0 1px color-mix(in srgb,currentColor 42%,transparent)}
html[data-product="zkproof"] .proof-panel[data-proof-state="failed"] .standby-symbol,
html[data-product="zkproof"] .check-row[data-proof-row="failed"],
html[data-product="zkproof"] .proof-panel[data-proof-state="unavailable"] .standby-symbol{box-shadow:inset 0 0 0 1px color-mix(in srgb,currentColor 30%,transparent);animation:none}
@keyframes zkp-seal{from{box-shadow:0 0 0 0 color-mix(in srgb,currentColor 48%,transparent)}60%{box-shadow:0 0 0 9px transparent}to{box-shadow:0 0 0 1px color-mix(in srgb,currentColor 42%,transparent)}}
@media (prefers-reduced-motion:no-preference){
html[data-product="zkproof"]:not([data-motion="paused"]) body:not([data-motion="paused"]) .proof-panel[data-proof-state="verified"] .standby-symbol,
html[data-product="zkproof"]:not([data-motion="paused"]) body:not([data-motion="paused"]) .check-row[data-proof-row="verified"],
html[data-product="zkproof"]:not([data-motion="paused"]) body:not([data-motion="paused"]) .nx-node[data-zk-verified] .nx-node-orb{animation:zkp-seal .72s ease-out 1 both}
}

/* Fable motion-implement-zktransparency */
/* zktransparency site-scoped motion hooks. Append to an existing site stylesheet (e.g. nextgen.css); the shared dp-motion foundation is not modified. */
body[data-product="transparency"] .nx-workflow > [data-mo="strand"]{display:block;inline-size:100%;margin:0;pointer-events:none}
body[data-product="transparency"] .page-shell > [data-mo="helix"]{margin:0;pointer-events:none}
/* Ordinary ledger / envelope outcomes: subtle inset border only, no seal, no glow, no keyframes. */
body[data-product="transparency"] .nx-node[data-check-state]{transition:box-shadow .24s ease}
body[data-product="transparency"] .nx-node[data-check-state="pass"]{box-shadow:inset 0 0 0 1px color-mix(in srgb,currentColor 32%,transparent)}
body[data-product="transparency"] .nx-node[data-check-state="attention"]{box-shadow:inset 0 0 0 1px color-mix(in srgb,currentColor 16%,transparent)}
/* Static ZK-acceptance marker on node 3 of 4 (data-node=2) only. Live transition is left to the shared observer. */
body[data-product="transparency"] .nx-workflow[data-proof-state="verified"] .nx-node[data-node="2"] .nx-node-orb{box-shadow:0 0 0 1px currentColor}
/* Honor the existing html[data-motion=paused] control and reduced-motion. */
html[data-motion="paused"] body[data-product="transparency"] .nx-node[data-check-state]{transition:none}
html[data-motion="paused"] body[data-product="transparency"] [data-mo="reveal"]{animation:none!important;transition:none!important;opacity:1!important;transform:none!important}
html[data-motion="paused"] body[data-product="transparency"] :is([data-mo="strand"],[data-mo="helix"]){animation-play-state:paused!important}
@media (prefers-reduced-motion:reduce){body[data-product="transparency"] .nx-node[data-check-state]{transition:none}}

/* Fable motion-implement-zkguard */
/* zkguard motion hooks: append to the end of /guard.css (already linked). Neutral currentColor only; no success colour, no seal. */
html[data-product="zkguard"] main.page-shell{position:relative;isolation:isolate}
html[data-product="zkguard"] main.page-shell>[data-mo="helix"]{position:absolute;z-index:-1;pointer-events:none}
@keyframes zg-check-edge{from{outline:1px solid color-mix(in srgb,currentColor 45%,transparent);outline-offset:-1px}to{outline:1px solid transparent;outline-offset:-1px}}
@media (prefers-reduced-motion:no-preference){
html[data-product="zkguard"] .proof-panel[data-check-state="allowed"],html[data-product="zkguard"] .proof-panel[data-check-state="blocked"]{animation:zg-check-edge .6s ease-out 1}
html[data-product="zkguard"] #checks>li{animation:zg-check-edge .5s ease-out 1 backwards}
html[data-product="zkguard"] #checks>li:nth-child(2){animation-delay:.06s}
html[data-product="zkguard"] #checks>li:nth-child(3){animation-delay:.12s}
}

/* Fable motion-implement-zkballot */
/* zkBallot motion hooks: append to src/command-center.css. Site-scoped, no shell geometry. */
#app [data-check-state="passed"]{border-color:color-mix(in srgb,currentColor 34%,transparent)}
#app [data-check-state="failed"]{border-color:color-mix(in srgb,currentColor 52%,transparent)}
/* render() rebuilds the DOM: panels already mounted once stay static instead of replaying. */
#app [data-mo="reveal"][data-mo-seen]{opacity:1!important;transform:none!important;animation:none!important;transition:none!important}
/* In-markup proof markers remount on every render, so they are always static; only the persistent #app host plays a live transition. */
#app .verification-list [data-proof-state],#app .verification-list [data-proof-state]::before,#app .verification-list [data-proof-state]::after,#app .election-progress [data-proof-state],#app .election-progress [data-proof-state]::before,#app .election-progress [data-proof-state]::after,#app .notice[data-proof-state],#app .notice[data-proof-state]::before,#app .notice[data-proof-state]::after{animation:none!important}
#app [data-mo="strand"]{pointer-events:none}

/* Fable final sidebar uniformity, existing readable type scale and custom icons */
/* Shared sidebar product row and captions. Targets only the new data-shell-product / data-shell-caption hooks, so Banking, Sandbox and Vault are unaffected. The Banking stylesheet was not in the supplied source: the var() fallbacks are placeholders to map to its real tokens, and the rules must load after each site's own sidebar CSS. */
html[data-product] body [data-shell="root"] [data-shell="sidebar"] [data-shell-product]{display:flex;align-items:center;gap:12px;margin:0;padding:12px var(--shell-pad-x,24px);background:none;border:0;border-radius:0;box-shadow:none;color:inherit;font:inherit;letter-spacing:normal;text-transform:none;text-align:left}
html[data-product] body [data-shell="root"] [data-shell="sidebar"] [data-shell-product-icon]{display:inline-grid;place-items:center;flex:none;width:20px;height:20px}
html[data-product] body [data-shell="root"] [data-shell="sidebar"] [data-shell-product-icon] svg{width:20px;height:20px}
html[data-product] body [data-shell="root"] [data-shell="sidebar"] [data-shell-product]>div{min-width:0}
html[data-product] body [data-shell="root"] [data-shell="sidebar"] [data-shell-product] strong{display:block;font-size:var(--shell-product-title,18px);font-weight:600;line-height:1.25;overflow-wrap:anywhere}
html[data-product] body [data-shell="root"] [data-shell="sidebar"] [data-shell-product] small{display:block;margin-top:2px;font-size:var(--shell-product-sub,14px);font-weight:400;line-height:1.35;opacity:.72}
html[data-product] body [data-shell="root"] [data-shell="sidebar"] [data-shell-caption]{display:block;margin:0 0 8px;font-size:var(--shell-caption-size,12px);font-weight:600;line-height:1.4;letter-spacing:.08em;text-transform:uppercase}
html[data-product] [data-shell-product-icon]{position:relative}
html[data-product] [data-shell-product-icon]>svg{display:none!important}
html[data-product] [data-shell-product-icon]::before{content:"";display:block;width:20px;height:20px;background:currentColor;mask:var(--dp-product-icon) center/contain no-repeat;-webkit-mask:var(--dp-product-icon) center/contain no-repeat}
