/* ATHRTY PX-128 | Shared responsive integrity contract.
   Only shell chrome, cards, menus and content typography; never the builder canvas.
   No body overflow clipping. Protect real layout and let QA reveal remaining defects. */
:root{
 --px128-min-target:44px;
 --px128-mobile-gutter:clamp(14px,4vw,24px);
 --px128-panel-gap:clamp(12px,2vw,22px);
 --px128-safe-bottom:env(safe-area-inset-bottom,0px)
}
:is(body.v393-operator,body.command-v23,body.v62-shell) :is(main,section,article,nav,header,footer,.app-shell,.v33-frame,#workspace,#v33-content,.v33-hero,.v33-toolbar,.v393-toolbar-actions){
 min-width:0
}
:is(body.v393-operator,body.command-v23,body.v62-shell) :is(input,select,textarea){
 box-sizing:border-box;max-width:100%;min-width:0
}
:is(body.v393-operator,body.command-v23,body.v62-shell) :is(img,svg,video){max-width:100%}
:is(body.v393-operator,body.command-v23,body.v62-shell) :is(h1,h2,h3,p,.v33-card-head,.v33-fact,.v33-button,.v393-toolbar-actions){
 max-width:100%;overflow-wrap:break-word
}
body.v393-operator #v33-content{
 min-width:0;max-width:100%
}
body.v393-operator #v33-content>:not(dialog){
 min-width:0;max-width:100%
}
body.v393-operator :is(.v33-panel,.v35-panel,.v33-card,.v33-fact,.v35-work-summary,.v33-actions,.v33-card-head){
 min-width:0;max-width:100%
}
body.v393-operator .v33-hero h1{
 overflow-wrap:normal;text-wrap:balance
}
body.v393-operator :is(.v33-button,.v393-settings-link,.v451-jarvis-trigger,#v442-find-work){
 min-height:var(--px128-min-target);box-sizing:border-box
}
body.v393-operator .v393-toolbar-actions{
 min-width:0;max-width:100%
}
body.v393-operator #v442-find-dialog{
 box-sizing:border-box;max-width:min(92vw,760px);max-height:min(88dvh,900px)
}
body.v393-operator #v442-find-query{min-width:0;max-width:100%}
body.command-v23 :is(.app-shell,.sidebar,#workspace,.command-panel,.main-content,.content-area){
 min-width:0;max-width:100%
}
body.command-v23 :is(.panel,.card,.metric-card,.command-card){
 min-width:0;max-width:100%
}
body.v62-shell :is(.v62-hero,.v62-grid,.v62-section,.v62-card,.v62-module,.v62-shell){
 min-width:0;max-width:100%
}
body.v62-shell :is(h1,h2,h3){
 line-height:1.1;text-wrap:balance
}
@media(max-width:760px){
 body.v393-operator #workspace{
  min-width:0;max-width:100%;padding-bottom:calc(25px + var(--px128-safe-bottom))
 }
 body.v393-operator .v33-toolbar{
  min-width:0;max-width:100%;gap:10px 14px;align-items:center
 }
 body.v393-operator .v393-toolbar-actions{
  min-width:0;max-width:100%;gap:8px;row-gap:9px
 }
 body.v393-operator .v33-hero{
  min-width:0;max-width:100%;padding-block:clamp(20px,5vw,36px)
 }
 body.v393-operator .v33-hero h1{
  font-size:clamp(2rem,7.8vw,3.6rem);line-height:1.075;letter-spacing:-.06em
 }
 body.v393-operator .v33-hero p{line-height:1.55}
 body.v393-operator #v33-content{
  display:grid;grid-template-columns:minmax(0,1fr);gap:var(--px128-panel-gap)
 }
 body.v393-operator .v33-actions{
  display:flex;flex-wrap:wrap;gap:9px;align-items:stretch
 }
 body.v393-operator .v33-actions > :is(a,button){
  min-width:0;max-width:100%;white-space:normal;overflow-wrap:break-word
 }
 body.v393-operator :is(.v33-card,.v35-panel,.v35-work-summary,.v33-panel){
  min-width:0;max-width:100%
 }
 body.command-v23 :is(.app-shell,.main-content,.content-area,main){
  min-width:0
 }
 body.command-v23 :is(h1,h2,h3){
  overflow-wrap:break-word;text-wrap:balance
 }
 body.command-v23 :is(input,select,textarea,button){
  max-width:100%;box-sizing:border-box
 }
 body.v62-shell :is(.v62-grid,.v62-modules,.v62-cards){
  min-width:0
 }
}
@media(max-width:390px){
 body.v393-operator .v393-toolbar-actions{
  gap:7px
 }
 body.v393-operator .v33-hero h1{
  font-size:clamp(1.96rem,8vw,2.8rem)
 }
 body.v393-operator .v33-actions > :is(a,button){
  line-height:1.32
 }
 body.v393-operator #v442-find-dialog{
  width:calc(100vw - 20px);max-width:calc(100vw - 20px);max-height:calc(100dvh - 24px)
 }
}
/* Native Builder: constrain chrome only. Frame/iframe keep intentional fixed canvas sizing. */
body:has(.native-shell) .native-shell{width:100%;min-width:0;min-height:0}
body:has(.native-shell) .native-bar{min-width:0;max-width:100%;gap:clamp(6px,1.1vw,16px)}
body:has(.native-shell) .native-project{min-width:0;overflow:hidden}
body:has(.native-shell) .native-top-actions{min-width:0;max-width:100%;align-items:center}
body:has(.native-shell) .native-workspace,body:has(.native-shell) .native-center,body:has(.native-shell) .native-tools{min-width:0}
body:has(.native-shell) .native-inspector :is(input,select,textarea),body:has(.native-shell) .native-dialog :is(input,select,textarea){box-sizing:border-box;max-width:100%;min-width:0}
body:has(.native-shell) .native-dialog{box-sizing:border-box;max-width:min(94vw,650px);max-height:calc(100dvh - 32px);overflow:auto;overflow-wrap:break-word}
body:has(.native-shell) .native-property-actions{min-width:0;max-width:100%;flex-wrap:wrap}
body:has(.native-shell) .native-property-actions button{white-space:normal;min-width:0}
@media(max-width:750px){
 body:has(.native-shell) .native-bar{gap:7px;padding-inline:9px}
 body:has(.native-shell) .native-top-actions{flex:1;justify-content:flex-end;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin}
 body:has(.native-shell) .native-top-actions button{flex:none;min-height:40px}
 body:has(.native-shell) .native-tools{gap:5px;max-width:100%}
 body:has(.native-shell) .native-mobile-tabs{min-width:0;max-width:100%}
 body:has(.native-shell) .native-mobile-tabs button{min-width:0;min-height:42px}
 body:has(.native-shell) .native-sidebar,body:has(.native-shell) .native-inspector{
  top:49px;bottom:0;width:min(300px,calc(100vw - 28px));max-width:100%;overflow:auto
 }
 body:has(.native-shell) .native-stage{min-width:0;max-width:100%;overflow:auto}
 body:has(.native-shell) .native-frame{flex-shrink:0} /* preserve canvas; do not auto-shrink project preview */
}
@media(prefers-reduced-motion:reduce){
 body.v393-operator .v33-hero *,body.command-v23 .app-shell *{
  scroll-behavior:auto
 }
}
/* PX-43 | Converged layout/accessibility for authenticated first-party chrome only.
   No native canvas, rendered website, client preview, billing or identity mutations. */
:is(body.es-simple,body.athrty-owner-app) :is(.es-top,.es-top-actions,.es-controls,.es-workspace,.es-panel,.es-section-insert,.v16-card,.v16-section,.v18-panel,.v191-workspace-card,.v16-actions,.v18-actions){
 min-width:0;max-width:100%;box-sizing:border-box;
}
:is(body.es-simple,body.athrty-owner-app) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){
 box-sizing:border-box;min-width:0;max-width:100%;
}
:is(body.es-simple,body.athrty-owner-app) :is(.es-controls,.es-panel,.v16-card,.v18-panel,.v191-workspace-card) :is(h1,h2,h3,p,small,strong,label){
 max-width:100%;overflow-wrap:break-word;
}
body.es-simple :is(.es-top-actions,.es-section-insert,.es-order){min-width:0;max-width:100%}
body.es-simple :is(.es-top-actions,.es-section-insert,.es-order) > :is(button,a[href]){
 min-height:var(--px128-min-target);box-sizing:border-box;min-width:0;max-width:100%;
}
:is(body.es-simple,body.athrty-owner-app) :is(.es-top,.es-top-actions,.es-controls,.es-panel,.v16-actions,.v18-actions) :is(button,a[href],input,select,textarea):focus-visible{
 outline:3px solid var(--accent,#59cbb7);outline-offset:3px;
}
:is(body.es-simple,body.athrty-owner-app) :is(.es-card,.es-panel,.v16-card,.v18-panel,.v191-workspace-card){max-width:100%;min-width:0}
:is(body.es-simple,body.athrty-owner-app) :is(.es-meta,.v16-metric,.v18-metric){font-variant-numeric:tabular-nums}
@media(max-width:760px){
 body.es-simple :is(.es-top,.es-top-actions,.es-controls,.es-panel,.es-section-insert){min-width:0;max-width:100%}
 body.es-simple :is(.es-top-actions,.es-order){flex-wrap:wrap;gap:8px}
 body.es-simple :is(.es-top-actions,.es-order,.es-section-insert) > :is(button,a[href]){white-space:normal;overflow-wrap:break-word;min-height:44px}
 body.athrty-owner-app :is(.v16-actions,.v18-actions){min-width:0;max-width:100%;flex-wrap:wrap;gap:8px}
 body.athrty-owner-app :is(.v16-actions,.v18-actions) > :is(button,a[href]){min-height:44px;min-width:0;max-width:100%;white-space:normal;overflow-wrap:break-word}
}
@media(max-width:390px){
 body.es-simple :is(.es-panel,.es-section-insert){min-width:0}
 body.athrty-owner-app :is(.v16-card,.v18-panel,.v191-workspace-card){min-width:0;max-width:100%}
}
/* PX-128.2 | Scoped first-party interaction geometry. */
:is(body.v393-operator,body.command-v23,body.v62-shell,body.es-simple,body.athrty-owner-app) :is(details,summary,fieldset,legend){min-width:0;max-width:100%;box-sizing:border-box}
:is(body.v393-operator,body.command-v23,body.v62-shell,body.es-simple,body.athrty-owner-app) summary{cursor:pointer;touch-action:manipulation;overflow-wrap:anywhere}
:is(body.v393-operator,body.command-v23,body.v62-shell,body.es-simple,body.athrty-owner-app) summary:focus-visible{outline:3px solid var(--accent,#b8f5d5);outline-offset:3px;border-radius:6px}
:is(body.v393-operator,body.command-v23,body.v62-shell,body.es-simple,body.athrty-owner-app) :is(button,a[href],input,select,textarea,summary){scroll-margin-block:16px}
@media(prefers-reduced-motion:reduce){:is(body.v393-operator,body.command-v23,body.v62-shell,body.es-simple,body.athrty-owner-app) :is(.v33-card,.v35-panel,.command-panel,.metric-card,.v62-card,.es-panel,.v16-card,.v18-panel){transition-duration:0.01ms!important;animation-duration:0.01ms!important;animation-iteration-count:1!important}}
@media(prefers-reduced-motion:reduce){
 :is(body.es-simple,body.athrty-owner-app) :is(.es-top,.es-controls,.v16-actions,.v18-actions) *{scroll-behavior:auto!important}
}
/* PX-128.2: scoped dialog and mobile layout resilience, excluding native canvas. */
:is(body.v393-operator,body.command-v23,body.v62-shell) :is(dialog,[role=dialog]){box-sizing:border-box;max-inline-size:min(94vw,780px);max-block-size:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain}
:is(body.v393-operator,body.command-v23,body.v62-shell) :is(dialog,[role=dialog]) :is(input,textarea,select){box-sizing:border-box;min-inline-size:0;max-inline-size:100%}
@media(max-width:430px){:is(body.v393-operator,body.command-v23,body.v62-shell) :is(dialog,[role=dialog]){max-inline-size:calc(100vw - 20px);max-block-size:calc(100dvh - 20px)}:is(body.v393-operator,body.command-v23,body.v62-shell) :is(.v33-actions,.command-actions) > :is(button,a){min-inline-size:0;max-inline-size:100%}}
@media(prefers-reduced-motion:reduce){:is(body.v393-operator,body.command-v23,body.v62-shell) :is(dialog,[role=dialog]) *{scroll-behavior:auto!important}}
/* PX-128.1: layout containment and accessible interaction contract for app chrome. */
:is(body.v393-operator,body.command-v23,body.v62-shell) :is(.app-shell,.v33-frame,.v33-card,.v35-panel,.command-panel,.metric-card,.v62-card){box-sizing:border-box}
:is(body.v393-operator,body.command-v23,body.v62-shell) :is(.v33-card,.v35-panel,.command-panel,.metric-card,.v62-card) :is(h1,h2,h3,p,small,strong){min-width:0;overflow-wrap:anywhere}
:is(body.v393-operator,body.command-v23,body.v62-shell) :is(.v33-actions,.v393-toolbar-actions,.v33-card-head,.command-actions){min-width:0;flex-wrap:wrap}
:is(body.v393-operator,body.command-v23,body.v62-shell) :is(button,a,input,select,textarea):focus-visible{outline:3px solid #b8f5d5;outline-offset:3px}
:is(body.v393-operator,body.command-v23,body.v62-shell) :is(button,[role=button]):disabled{cursor:not-allowed;opacity:.65}
:is(body.v393-operator,body.command-v23,body.v62-shell) :is(.metric-card,.v33-fact,.v35-work-summary){font-variant-numeric:tabular-nums}
:is(body.v393-operator,body.command-v23,body.v62-shell) :is(.v33-actions,.v393-toolbar-actions) > :is(a,button){min-width:0;overflow-wrap:anywhere}
@media(max-width:430px){:is(body.v393-operator,body.command-v23,body.v62-shell) :is(.v33-card,.v35-panel,.command-panel,.metric-card,.v62-card){max-width:100%;min-width:0}:is(body.v393-operator,body.command-v23,body.v62-shell) :is(.v33-actions,.v393-toolbar-actions) > :is(a,button){white-space:normal}}
@media(prefers-reduced-motion:reduce){:is(body.v393-operator,body.command-v23,body.v62-shell) :is(.app-shell,.v33-frame) *{scroll-behavior:auto!important}}

/* PX-134 | Responsive geometry authority for first-party application chrome.
   Applies to existing shells. Excludes customer sites, checkout, authored
   builder canvases, rendered iframes and commercial state. */
:is(body.v393-operator,body.command-v23,body.athrty-sales-v14,body.es-simple,body.athrty-owner-app,body.as04-native){
  --px134-gap:clamp(12px,1.8vw,24px);
  --px134-panel-pad:clamp(16px,2vw,28px);
  --px134-inline:clamp(16px,3.8vw,44px);
  --px134-target:44px;
}
:is(body.v393-operator,body.command-v23,body.athrty-sales-v14,body.es-simple,body.athrty-owner-app,body.as04-native)
  :is(.v33-frame,#v33-content,.v33-grid,.v35-work-summary,.v393-toolbar-actions,.v32-opportunity,.v32-execution,.command-panel,.metric-card,.es-workspace,.es-panel,.native-bar,.native-top-actions){
  min-inline-size:0;box-sizing:border-box;
}
:is(body.v393-operator,body.command-v23,body.athrty-sales-v14,body.es-simple,body.athrty-owner-app,body.as04-native)
  :is(.v33-card,.v35-panel,.v32-opportunity,.v32-execution,.command-panel,.metric-card,.es-panel,.v16-card,.v18-panel)
  :is(h1,h2,h3,p,small,strong){min-inline-size:0;overflow-wrap:break-word}
:is(body.v393-operator,body.command-v23,body.athrty-sales-v14,body.es-simple,body.athrty-owner-app,body.as04-native)
  :is(.v33-actions,.command-actions,.es-top-actions,.native-top-actions)
  > :is(a[href],button){min-inline-size:0;box-sizing:border-box;min-block-size:var(--px134-target);max-inline-size:100%}
@media(max-width:940px){
  /* viewport-fit=cover on iOS must reserve the OS chrome in the document flow. */
  body.v393-operator .v33-frame{padding-block-start:env(safe-area-inset-top,0px)}
  body.v393-operator #workspace{scroll-margin-block-start:max(12px,env(safe-area-inset-top,0px))}
  body.v393-operator .v33-frame main{padding-inline:var(--px134-inline)}
}
@media(max-width:760px){
  :is(body.v393-operator,body.command-v23,body.athrty-sales-v14,body.es-simple,body.athrty-owner-app) 
    :is(.v33-grid,.v36-board,.v32-grid,.es-workspace-grid){min-inline-size:0;max-inline-size:100%}
  :is(body.command-v23,body.athrty-sales-v14,body.es-simple,body.athrty-owner-app)
    :is(.command-panel,.v32-opportunity,.v32-execution,.es-panel,.v16-card,.v18-panel){padding-inline:var(--px134-panel-pad)}
  body.as04-native :is(.native-bar,.native-top-actions,.native-inspector,.native-sidebar){min-inline-size:0}
  body.as04-native :is(.native-inspector,.native-sidebar) :is(input,select,textarea,button){max-inline-size:100%}
}
@media(max-width:430px){
  :is(body.v393-operator,body.command-v23,body.athrty-sales-v14,body.es-simple,body.athrty-owner-app)
    :is(.v33-actions,.command-actions,.es-top-actions)>:is(a[href],button){white-space:normal;text-wrap:pretty}
  body.v393-operator #workspace{min-inline-size:0}
  body.v393-operator .v33-frame main{padding-inline:16px;padding-block-end:max(30px,env(safe-area-inset-bottom,0px))}
}
@media(prefers-reduced-motion:reduce){
  :is(body.v393-operator,body.command-v23,body.athrty-sales-v14,body.es-simple,body.athrty-owner-app,body.as04-native)
    :is(.v33-card,.v33-button,.command-panel,.v32-opportunity,.es-panel,.native-bar){transition-duration:0.01ms;animation-duration:0.01ms;animation-iteration-count:1}
}
/* PX-135 | First-party responsive chrome consolidation. Never reach into rendered
   websites, hosted checkout, native artboards, or third-party previews. */
:is(body.v393-operator,body.command-v23,body.athrty-sales-v14,body.es-simple,body.athrty-owner-app)
 :is(.v33-card,.v35-panel,.v32-opportunity,.v32-execution,.command-panel,.metric-card,.es-panel,.v16-card,.v18-panel,.v53-connected-head){
 min-inline-size:0;max-inline-size:100%;box-sizing:border-box;
}
:is(body.v393-operator,body.command-v23,body.athrty-sales-v14,body.es-simple,body.athrty-owner-app)
 :is(.v33-actions,.command-actions,.v32-dialog-actions,.v16-actions,.v18-actions,.es-top-actions){
 min-inline-size:0;max-inline-size:100%;
}
:is(body.v393-operator,body.command-v23,body.athrty-sales-v14,body.es-simple,body.athrty-owner-app)
 :is(.v33-actions,.command-actions,.v32-dialog-actions,.v16-actions,.v18-actions,.es-top-actions)
 > :is(button,a[href]){
 box-sizing:border-box;min-inline-size:0;max-inline-size:100%;min-block-size:44px;overflow-wrap:break-word;
}
@media(max-width:560px){
 :is(body.v393-operator,body.command-v23,body.athrty-sales-v14,body.es-simple,body.athrty-owner-app)
  :is(.v33-actions,.command-actions,.v32-dialog-actions,.v16-actions,.v18-actions,.es-top-actions){
  flex-wrap:wrap;row-gap:9px;
 }
 body.v393-operator .v53-connected-head :is(h2,.v53-persisted){min-inline-size:0;overflow-wrap:break-word}
}
@media(prefers-reduced-motion:reduce){
 :is(body.v393-operator,body.command-v23,body.athrty-sales-v14,body.es-simple,body.athrty-owner-app)
  :is(.v33-actions,.command-actions,.v32-dialog-actions,.v16-actions,.v18-actions,.es-top-actions)>:is(button,a[href]){
  transition:none!important;
 }
}