/* Cross-journey accessibility and narrow-mobile hardening. Loaded last. */
:where(a,button,input,select,textarea,summary,[tabindex]:not([tabindex="-1"])):focus-visible{
  outline:3px solid var(--signal)!important;
  outline-offset:3px!important;
}
:where(input,select,textarea)[aria-invalid="true"]{
  border-color:var(--danger)!important;
  box-shadow:0 0 0 1px var(--danger)!important;
}
:where([aria-live],[role="status"],.console-status,.validation,.requirement-error){overflow-wrap:anywhere;word-break:normal}
:where(summary){cursor:pointer;min-height:44px;display:flex;align-items:center}
:where(a,button,.btn,.mkt-btn){touch-action:manipulation}
:where(main [id]){scroll-margin-top:96px}
:where(code,pre,.affiliate-link,.proof-fingerprint){overflow-wrap:anywhere;word-break:break-word}
:where(.proof-card__actions,.report-card__actions,.role-card__actions,.workspace-next__actions,.employer-next__actions,.stack-card__actions,.builder-actions,.arw__actions,.console-actions){min-width:0}

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

@media(forced-colors:active){
  :where(a,button,input,select,textarea,summary,[tabindex]):focus-visible{outline:2px solid CanvasText!important}
  :where(.workspace-private span,.employer-private span,.verify-live i){forced-color-adjust:auto}
  :where(.btn,.mkt-btn,input,select,textarea,.role-status,.network-card,.proof-card,.report-card){border-color:CanvasText!important}
}

@media(max-width:760px){
  :where(.workspace-shell,.employer-shell,.stack-shell,.arw__shell){width:calc(100% - 32px)!important;max-width:none!important;margin-inline:auto!important}
  :where(.workspace-hero__top,.workspace-section__head,.workspace-next,.employer-hero__head,.employer-section__head,.employer-next,.stack-hero__top,.stack-privacy,.arw__accounting,.verify-convert){grid-template-columns:minmax(0,1fr)!important;flex-direction:column!important;align-items:stretch!important;gap:18px!important}
  :where(.workspace-account-link,.employer-account-link){white-space:normal!important;overflow-wrap:anywhere!important}
  :where(.proof-card__meta,.role-card__top,.report-card__main,.stack-card__top){min-width:0!important}
  :where(.proof-card__meta>*,.role-card__top>*,.report-card__main>*,.stack-card__top>*){min-width:0!important;overflow-wrap:anywhere!important}
  :where(.proof-card__actions,.report-card__actions,.role-card__actions,.workspace-next__actions,.employer-next__actions,.stack-card__actions,.builder-actions,.arw__actions,.console-actions){display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%!important;gap:9px!important}
  :where(.proof-card__actions,.report-card__actions,.role-card__actions,.workspace-next__actions,.employer-next__actions,.stack-card__actions,.builder-actions,.arw__actions,.console-actions) :where(.btn,button,a){width:100%!important;min-width:0!important;min-height:48px!important;justify-content:center!important;text-align:center!important}
  :where(.report-controls,.stack-fields,.builder-grid,.arw__campaigns article,.arw__ledger article){min-width:0!important}
  :where(.report-controls select,.stack-fields input,.builder-controls input,.builder-controls select,.builder-controls textarea){font-size:16px!important}
  :where(.proof-v2__evidencegrid pre,.stack-share-kit pre,.application-output pre,.kit-output code){max-width:100%!important;white-space:pre-wrap!important;overflow-wrap:anywhere!important;word-break:break-word!important}
  :where(.network-strip,.launch-badges){overflow-x:auto!important;scrollbar-width:thin!important;-webkit-overflow-scrolling:touch!important}
  :where(.network-strip>span,.launch-badges>span){flex:0 0 auto!important;max-width:85vw!important;white-space:normal!important}
  :where(.builder-preview-wrap iframe){width:100%!important;max-width:100%!important;min-height:440px!important}
  :where(.affiliate-form label,.builder-controls label,.stack-form label){min-width:0!important}
}

@media(max-width:430px){
  :root{--journey-gutter:12px}
  :where(.workspace-shell,.employer-shell,.stack-shell,.arw__shell,.shell,.proof-v2__shell){width:calc(100% - (var(--journey-gutter) * 2))!important}
  :where(.workspace-page,.employer-workspace,.stack-workspace,.arw){padding-top:34px!important;padding-bottom:64px!important}
  :where(.workspace-hero h1,.employer-hero h1,.stack-hero h1,.arw__hero h1){font-size:clamp(2.35rem,12vw,3.25rem)!important;line-height:.98!important;letter-spacing:-.045em!important;max-width:none!important}
  :where(.workspace-section h2,.workspace-next h2,.employer-section h2,.employer-next h2,.stack-create h2,.stack-existing h2,.stack-privacy h2,.arw__section h2,.arw__payout h2,.arw__accounting h2){font-size:clamp(2rem,10vw,2.7rem)!important;max-width:none!important;overflow-wrap:break-word!important}
  :where(.workspace-stats,.employer-stats,.stack-stats,.arw__identity,.arw__metrics,.arw__funnel,.arw__payout-grid){grid-template-columns:minmax(0,1fr)!important}
  :where(.workspace-stats article,.employer-stats article,.stack-stats article,.arw__identity>div,.arw__metrics article,.arw__funnel article,.arw__payout-grid article){padding:16px 0!important;border-right:0!important;border-bottom:1px solid var(--line)!important}
  :where(.workspace-stats article:last-child,.employer-stats article:last-child,.stack-stats article:last-child,.arw__identity>div:last-child,.arw__metrics article:last-child,.arw__funnel article:last-child,.arw__payout-grid article:last-child){border-bottom:0!important}
  .proof-card__result{grid-template-columns:minmax(72px,82px) minmax(0,1fr)!important;gap:12px!important}
  .proof-card__result>strong{font-size:3.2rem!important}
  .proof-card__dimensions{grid-template-columns:minmax(0,1fr)!important}
  .role-card__facts{grid-template-columns:minmax(0,1fr)!important}
  .report-card,.stack-card{padding-left:0!important;padding-right:0!important;border-left:0!important;border-right:0!important;border-radius:0!important}
  .report-score{text-align:left!important}
  .report-gaps span{grid-template-columns:minmax(0,1fr)!important}
  .stack-proof-grid{grid-template-columns:minmax(0,1fr)!important}
  .stack-proof-option__body{grid-template-columns:minmax(0,1fr)!important;gap:8px!important}
  .arw__campaigns dl{grid-template-columns:minmax(0,1fr)!important}
  .arw__ledger article{grid-template-columns:minmax(0,1fr)!important}
  .builder-preview-wrap iframe{min-height:380px!important}
  :where(input,select,textarea){min-height:48px!important}
  textarea{min-height:132px!important}
}

@media(max-width:360px){
  :root{--journey-gutter:10px}
  :where(.workspace-hero h1,.employer-hero h1,.stack-hero h1,.arw__hero h1,.network-hero h1){font-size:clamp(2.1rem,11.5vw,2.75rem)!important;letter-spacing:-.035em!important}
  :where(.btn,.mkt-btn,button){padding-left:12px!important;padding-right:12px!important}
  :where(.proof-pass,.proof-v2__summary,.proof-v2__integrity,.proof-v2__next,.workspace-empty,.employer-empty,.arw__payout){padding:18px!important}
  .proof-pass__score strong{font-size:4.9rem!important}
}
