/* ATHRTY X-230 | Motion system v1. Tokens and loader only; first-party UI.
   No editor canvas transforms, no speculative content hiding, no business state mutations. */
:root{
 --ath-motion-feedback:130ms;--ath-motion-fast:170ms;--ath-motion-base:230ms;
 --ath-motion-disclosure:260ms;--ath-motion-panel:310ms;--ath-motion-entry:400ms;
 --ath-motion-ease:cubic-bezier(.2,.8,.2,1);--ath-motion-exit:cubic-bezier(.4,0,1,1);
 --ath-motion-accent:var(--os-brand-accent,var(--accent,#a4f1e9));
}
@media (prefers-reduced-motion:no-preference){
 @view-transition{navigation:auto}
 ::view-transition-old(root){animation:ath-exit 160ms var(--ath-motion-exit) both}
 ::view-transition-new(root){animation:ath-enter 240ms var(--ath-motion-ease) both}
 @keyframes ath-enter{from{opacity:.76}to{opacity:1}}
 @keyframes ath-exit{to{opacity:.86}}
}
body[data-athrty-motion="on"] :is(button,a,summary,[role="button"]){
 -webkit-tap-highlight-color:transparent;touch-action:manipulation;
 transition-duration:var(--ath-motion-feedback);
 transition-timing-function:var(--ath-motion-ease);
}
body[data-athrty-motion="on"] :is(button,[role="button"],a,summary):not([disabled]):not([aria-disabled="true"]):not(:where(.native-stage *, .native-frame *, .native-canvas *, .canvas-world *, .site-preview *, [data-customer-site] *, [data-proposal-site] *)):where(:active,[data-athrty-pressing="true"]){
 scale:.988;
}
body[data-athrty-motion="on"] :is(button,a,summary,[role="button"]):focus-visible{
 outline:2px solid var(--ath-motion-accent);outline-offset:3px;
}
body[data-athrty-motion="on"] :where([data-athrty-interactive-card]){
 transition:border-color var(--ath-motion-base) var(--ath-motion-ease),background-color var(--ath-motion-base) var(--ath-motion-ease),box-shadow var(--ath-motion-base) var(--ath-motion-ease);
}
@media (hover:hover) and (pointer:fine){
 body[data-athrty-motion="on"] [data-athrty-interactive-card]:hover{
  border-color:color-mix(in srgb,var(--ath-motion-accent) 43%,currentColor);
 }
}
/* Native details, without max-height hacks or scripting open/close. */
@supports selector(details::details-content){
 @media(prefers-reduced-motion:no-preference){
  body[data-athrty-motion="on"] details:not(.px404-disclosable):not([data-athrty-motion-exempt])::details-content{
   block-size:0;overflow:clip;opacity:0;
   transition:block-size var(--ath-motion-disclosure) var(--ath-motion-ease),opacity var(--ath-motion-feedback) ease;
   interpolate-size:allow-keywords;
  }
  body[data-athrty-motion="on"] details[open]:not(.px404-disclosable):not([data-athrty-motion-exempt])::details-content{block-size:auto;opacity:1}
 }
}
@media(prefers-reduced-motion:no-preference){
 body[data-athrty-motion="on"] dialog[open]:not([data-athrty-motion-exempt]){
  animation:ath-modal var(--ath-motion-panel) var(--ath-motion-ease) both;
 }
 @keyframes ath-modal{from{opacity:.5;translate:0 7px}to{opacity:1;translate:0 0}}
 body[data-athrty-motion="on"] :is([role="menu"],[data-menu-content],[data-popover-content])[data-state="open"]{
  animation:ath-pop var(--ath-motion-base) var(--ath-motion-ease) both;
  transform-origin:top center;
 }
 @keyframes ath-pop{from{opacity:.5;scale:.985}to{opacity:1;scale:1}}
}
/* X-230.6 | Canonical five-region loading experience.
   One backdrop, one card, one identity, one readiness message, one honest progress state.
   Route readiness and authenticated state are owned by the companion runtime. */
#athrty-loading-screen{
 --loader-accent:#82e9c8;--loader-ink:#f4f8f6;--loader-secondary:#aec0b9;
 position:fixed;inset:0;z-index:2147483000;
 display:grid;place-items:center;isolation:isolate;
 box-sizing:border-box;overflow:auto;overscroll-behavior:contain;
 padding:max(16px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right))
         max(16px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left));
 background:
  radial-gradient(ellipse 55% 38% at 73% 12%,rgba(44,118,102,.12),transparent 86%),
  radial-gradient(ellipse 53% 48% at 10% 90%,rgba(21,104,88,.095),transparent 82%),
  linear-gradient(152deg,#081418 0%,#071214 58%,#08191b 100%);
 color:var(--loader-ink);
}
#athrty-loading-screen[hidden]{display:none!important}
/* X-230.7: The loader is a viewport overlay, not a dialog-sized panel.
   Shared enterprise [role=dialog] rules must never clamp its dimensions.
   100dvh follows mobile Safari's changing visual viewport. */
#athrty-loading-screen{
 inline-size:100%!important;block-size:100dvh!important;
 width:100%!important;height:100dvh!important;
 max-width:none!important;max-height:none!important;
 max-inline-size:none!important;max-block-size:none!important;
 margin:0!important;
}
/* The backdrop is not an interactive control: do not draw focus rectangles
   around either it or a programmatically focused page title.
   Interactive controls retain the enterprise keyboard focus indicator. */
#athrty-loading-screen:focus,
#athrty-loading-screen:focus-visible{outline:2px solid transparent!important;box-shadow:none!important}
body.v393-operator :is(h1,h2,h3)[tabindex="-1"]:focus,
body.v393-operator :is(h1,h2,h3)[tabindex="-1"]:focus-visible{
 outline-color:transparent!important;box-shadow:none!important;
}
#athrty-loading-screen::before{
 content:"";position:absolute;inset:0;pointer-events:none;
 background:radial-gradient(ellipse 88% 46% at 55% -24%,transparent 66%,rgba(123,217,186,.065) 85%,transparent 89%);
 opacity:.64;
}
#athrty-loading-screen::after{
 content:"";position:absolute;inset:0;pointer-events:none;
 background:radial-gradient(ellipse 88% 65% at 60% 132%,transparent 72%,rgba(101,214,179,.07) 89%,transparent 93%);
 opacity:.58;
}
#athrty-loading-screen .ath-loader-inner{
 width:min(100%,570px);min-width:0;min-height:0;box-sizing:border-box;
 display:flex;flex-direction:column;align-items:center;position:relative;
 text-align:center;isolation:isolate;overflow:hidden;
 padding:clamp(43px,6.4vw,65px) clamp(23px,5vw,54px) clamp(40px,5.7vw,58px);
 border:1px solid rgba(153,227,202,.27);border-radius:28px;
 background:
  radial-gradient(ellipse 85% 70% at 102% -16%,rgba(97,197,165,.085),transparent 81%),
  linear-gradient(153deg,rgba(25,46,45,.955),rgba(10,24,26,.985) 49%,rgba(11,29,29,.968));
 box-shadow:0 30px 95px rgba(0,0,0,.5),
  inset 0 1px 0 rgba(220,255,237,.13),
  inset 0 -1px 0 rgba(126,216,183,.06),
  0 0 58px rgba(82,219,176,.03);
}
#athrty-loading-screen .ath-loader-inner::before{
 content:"";position:absolute;inset:0;z-index:0;pointer-events:none;border-radius:inherit;
 background:linear-gradient(136deg,rgba(245,255,250,.044),transparent 30%,transparent 75%,rgba(103,232,180,.045));
}
#athrty-loading-screen .ath-loader-inner>*{position:relative;z-index:1;min-width:0}
#athrty-loading-screen .ath-loader-identity{display:flex;flex-direction:column;align-items:center;width:100%}
#athrty-loading-screen .ath-loader-brand{
 font:800 clamp(38px,6.8vw,62px)/1.04 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
 letter-spacing:-.082em;color:var(--loader-ink);white-space:nowrap;max-width:100%;
}
#athrty-loading-screen .ath-loader-brand span{color:var(--loader-accent);padding-left:.022em}
#athrty-loading-screen .ath-loader-eyebrow{
 margin:15px 0 0;font:650 10px/1.6 system-ui,sans-serif;
 letter-spacing:.3em;text-transform:uppercase;color:#b6cfc5;
}
#athrty-loading-screen .ath-loader-message{width:100%;margin-top:clamp(34px,5.2vw,51px)}
#athrty-loading-screen .ath-loader-title{
 margin:0 0 9px;max-width:100%;font:560 clamp(19px,3.5vw,25px)/1.32 system-ui,sans-serif;
 letter-spacing:-.035em;color:#edf6f2;text-wrap:balance;
}
#athrty-loading-screen .ath-loader-subtitle{
 margin:0 auto;max-width:42ch;
 font:400 clamp(12px,2vw,14px)/1.56 system-ui,sans-serif;
 letter-spacing:-.012em;color:var(--loader-secondary);text-wrap:pretty;
}
#athrty-loading-screen .ath-loader-progress{width:min(100%,420px);margin-top:clamp(30px,4vw,40px)}
#athrty-loading-screen .ath-loader-track{
 position:relative;display:block;width:100%;height:6px;overflow:hidden;
 border-radius:999px;background:rgba(149,185,175,.23);
 box-shadow:inset 0 0 0 1px rgba(209,255,236,.025);
}
#athrty-loading-screen .ath-loader-fill{
 display:block;height:100%;width:38%;border-radius:inherit;
 background:linear-gradient(90deg,#54d4ac,#93f3d5 75%,#bafde8);
 box-shadow:0 0 10px rgba(117,240,194,.24);
}
#athrty-loading-screen .ath-loader-actions{
 display:none;gap:10px;flex-wrap:wrap;justify-content:center;
 width:100%;margin-top:25px;
}
#athrty-loading-screen[data-status="error"] .ath-loader-actions{display:flex}
#athrty-loading-screen .ath-loader-actions button{
 appearance:none;cursor:pointer;min-height:44px;padding:11px 16px;border-radius:12px;
 border:1px solid rgba(145,225,199,.32);background:#1f4439;color:#f1f9f5;
 font:650 13px/1.25 system-ui,sans-serif;
}
#athrty-loading-screen .ath-loader-actions button:last-child{background:transparent;color:#bfd2ca}
#athrty-loading-screen .ath-loader-actions button:focus-visible{
 outline:2px solid var(--loader-accent);outline-offset:3px;
}
#athrty-loading-screen[data-status="ready"] .ath-loader-fill{
 width:100%;transform:none!important;box-shadow:0 0 14px rgba(111,237,190,.25)
}
#athrty-loading-screen[data-status="error"] .ath-loader-track{opacity:.42}
#athrty-loading-screen[data-status="error"] .ath-loader-fill{animation:none!important;transform:none!important}
@media(prefers-reduced-motion:no-preference){
 #athrty-loading-screen .ath-loader-inner{
  animation:ath-loader-card-enter 440ms cubic-bezier(.2,.82,.22,1) both;
 }
 #athrty-loading-screen .ath-loader-identity,
 #athrty-loading-screen .ath-loader-message,
 #athrty-loading-screen .ath-loader-progress{
  animation:ath-loader-content-enter 460ms cubic-bezier(.2,.82,.22,1) both;
 }
 #athrty-loading-screen .ath-loader-message{animation-delay:65ms}
 #athrty-loading-screen .ath-loader-progress{animation-delay:105ms}
 #athrty-loading-screen[data-status="loading"] .ath-loader-fill{
  animation:ath-loader-search 1.75s cubic-bezier(.58,.04,.42,.96) infinite alternate;
 }
 #athrty-loading-screen[data-status="ready"] .ath-loader-fill{
  animation:ath-loader-complete 240ms ease-out both;
 }
 #athrty-loading-screen[data-status="ready"]{
  animation:ath-loader-dismiss 230ms ease-in 150ms both;pointer-events:none;
 }
 @keyframes ath-loader-card-enter{
  from{opacity:0;transform:translateY(8px) scale(.992)}
  to{opacity:1;transform:translateY(0) scale(1)}
 }
 @keyframes ath-loader-content-enter{
  from{opacity:0;transform:translateY(6px)}
  to{opacity:1;transform:translateY(0)}
 }
 @keyframes ath-loader-search{
  from{transform:translateX(-105%)}
  to{transform:translateX(270%)}
 }
 @keyframes ath-loader-complete{from{width:38%}to{width:100%}}
 @keyframes ath-loader-dismiss{to{opacity:0;visibility:hidden}}
}
@media(max-width:680px){
 #athrty-loading-screen .ath-loader-inner{
  width:min(100%,440px);border-radius:24px;
  padding:clamp(38px,9vw,50px) clamp(21px,6vw,34px) clamp(37px,8vw,46px);
 }
 #athrty-loading-screen .ath-loader-brand{font-size:clamp(36px,10vw,52px)}
 #athrty-loading-screen .ath-loader-title{font-size:clamp(18px,5vw,23px)}
 #athrty-loading-screen .ath-loader-eyebrow{letter-spacing:.27em}
 #athrty-loading-screen .ath-loader-message{margin-top:clamp(30px,8vw,42px)}
 #athrty-loading-screen .ath-loader-progress{margin-top:30px}
}
@media(max-width:360px){
 #athrty-loading-screen{padding-inline:max(12px,env(safe-area-inset-left))}
 #athrty-loading-screen .ath-loader-inner{padding-inline:18px;border-radius:22px}
 #athrty-loading-screen .ath-loader-eyebrow{letter-spacing:.22em}
}
@media(max-height:590px){
 #athrty-loading-screen .ath-loader-inner{padding-block:20px}
 #athrty-loading-screen .ath-loader-message{margin-top:18px}
 #athrty-loading-screen .ath-loader-progress{margin-top:22px}
 #athrty-loading-screen .ath-loader-actions{margin-top:14px}
}
@media(prefers-reduced-motion:reduce){
 #athrty-loading-screen,#athrty-loading-screen *,#athrty-loading-screen::before,
 #athrty-loading-screen::after{animation:none!important;transition:none!important}
}

/* X-230.1 | Shared semantic interaction contracts. Do not animate editor canvas,
   data table geometry, customer previews, or persisted document state. */
@media(prefers-reduced-motion:no-preference){
 body[data-athrty-motion="on"] :is(
  .v33-button,.v591-action,.px404-toggle,.px406-mode-btn,
  .command-v23 .nav-item,.native-top-actions > button,
  .native-project > button,.v393-settings-link,.v33-toolbar button
 ):not(:disabled):not([aria-disabled="true"]){
  transition:background-color var(--ath-motion-fast) var(--ath-motion-ease),
   border-color var(--ath-motion-fast) var(--ath-motion-ease),
   color var(--ath-motion-fast) var(--ath-motion-ease),
   box-shadow var(--ath-motion-base) var(--ath-motion-ease);
 }
 body[data-athrty-motion="on"] :is(.px404-toggle,.px406-mode-btn)[aria-expanded="true"],
 body[data-athrty-motion="on"] :is(.px404-toggle,.px406-mode-btn)[aria-pressed="true"]{
  transition-duration:var(--ath-motion-disclosure);
 }
 body[data-athrty-motion="on"] :is(.v33-button,.native-top-actions > button,.v393-settings-link,.command-v23 .nav-item):hover:not(:disabled){
  border-color:color-mix(in srgb,var(--ath-motion-accent) 33%,currentColor);
 }
}
@media(prefers-reduced-motion:reduce){
 body[data-athrty-motion="on"] :is(.px404-toggle,.px406-mode-btn,.v33-button,.v591-action,.nav-item){animation:none!important;transition:none!important;scale:1!important}
}
/* X-230.2 | Shared action movement and transient overlay contract.
   One-pixel fine-pointer lift; canvas, previews and data rows remain unmoved. */
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
 body[data-athrty-motion="on"] :is(.v33-button,.v591-action,.os-button,.as03-primary,.athrty-primary-action):not(:disabled):not([aria-disabled="true"]):not(:where(.native-stage *, .native-frame *, [data-customer-site] *, [data-proposal-site] *)){
  transition:translate var(--ath-motion-fast) var(--ath-motion-ease),
   background-color var(--ath-motion-fast) var(--ath-motion-ease),
   border-color var(--ath-motion-fast) var(--ath-motion-ease),
   box-shadow var(--ath-motion-base) var(--ath-motion-ease);
 }
 body[data-athrty-motion="on"] :is(.v33-button,.v591-action,.os-button,.as03-primary,.athrty-primary-action):hover:not(:disabled):not([aria-disabled="true"]){translate:0 -1px}
 body[data-athrty-motion="on"] :is(.v33-button,.v591-action,.os-button,.as03-primary,.athrty-primary-action):active{translate:0 0}
}
@media(prefers-reduced-motion:no-preference){
 body[data-athrty-motion="on"] [popover]:popover-open:not([data-athrty-motion-exempt]){
  animation:ath-pop var(--ath-motion-base) var(--ath-motion-ease) both;
  transform-origin:top center;
 }
 body[data-athrty-motion="on"] :is([data-state="opening"],[data-athrty-enter="panel"]):not(:where(.native-frame *, .native-stage *, [data-customer-site] *, [data-proposal-site] *)){
  animation:ath-modal var(--ath-motion-panel) var(--ath-motion-ease) both;
 }
}
@media(prefers-reduced-motion:reduce){
 body[data-athrty-motion="on"] [popover]:popover-open,
 body[data-athrty-motion="on"] [data-athrty-enter]{animation:none!important}
}
/* X-230.3 | Converged first-party navigation surfaces, keyed to real open states.
   Canvas and data-row geometry remain unaffected. */
@media(prefers-reduced-motion:no-preference){
 body[data-athrty-motion="on"] :is(
  .v59-header .v59-solutions-panel:not([hidden]),
  #v17-public-nav.v17-open,
  .command-v23 #sidebar.open,
  .v451-jarvis:not([hidden])
 ){animation:ath-x2303-nav-enter var(--ath-motion-panel) var(--ath-motion-ease) both}
 @keyframes ath-x2303-nav-enter{
  from{opacity:.55;translate:0 6px}to{opacity:1;translate:0 0}
 }
 body[data-athrty-motion="on"] :is(
  .v64-drawer-link,.v61-nav-item,.v59-nav-actions a,.v33-sidebar a,
  .native-sidebar button,.native-inspector button,.as03-primary
 ):not(:disabled):not([aria-disabled="true"]){
  transition:background-color var(--ath-motion-fast) var(--ath-motion-ease),
   border-color var(--ath-motion-fast) var(--ath-motion-ease),
   color var(--ath-motion-fast) var(--ath-motion-ease);
 }
}
html[data-athrty-loading="true"]{overscroll-behavior:none}
@media(prefers-reduced-motion:reduce){
 body[data-athrty-motion="on"] :is(#v17-public-nav.v17-open,.command-v23 #sidebar.open,.v451-jarvis:not([hidden]),.v59-solutions-panel:not([hidden])){
  animation:none!important;transition:none!important;translate:none!important;
 }
}