/* ATHRTY AX-121 | First-party infrastructure system.
   Does not touch exported websites, customer preview iframes or checkout.
   Existing token, permission and interaction systems remain authoritative. */
:where(body.v393-operator,body.command-v23,body.athrty-sales-v14,body.athrty-owner-app,body.as04-native,body.es-simple,body.bx30-body,body[data-ce05-mode]){
 --axi-ink:var(--os-ink,var(--athrty-text-primary,var(--ink,#eaf3f0)));
 --axi-muted:var(--os-muted,var(--athrty-text-secondary,var(--muted,#9fb8b0)));
 --axi-brand:var(--os-brand-accent,var(--athrty-accent,var(--accent,#62dacc)));
 --axi-surface:var(--os-surface-1,var(--panel,#152522));
 --axi-edge:color-mix(in srgb,var(--axi-ink) 14%,transparent);
 --axi-active:color-mix(in srgb,var(--axi-brand) 40%,var(--axi-edge));
 --axi-r-card:18px;--axi-r-metric:13px;
 --axi-ease:cubic-bezier(.22,.8,.26,1);
}
:where(body.v393-operator,body.command-v23,body.athrty-sales-v14,body.athrty-owner-app,body.as04-native,body.es-simple,body.bx30-body,body[data-ce05-mode])
:is(.v33-card,.v33-fact,.v33-lesson,.v32-brief,.v32-opportunity,.v32-execution,.atm-hero,.atm-block,.atm-metric,.stat,.module-card,.native-library-card,.v172-project-card,.ce05-card,.ce05-stat,.ce06-offer,.ce05-panel){
 box-sizing:border-box;min-width:0;max-width:100%;overflow-wrap:anywhere;border-radius:var(--axi-r-card);
}
:where(body.v393-operator,body.command-v23,body.athrty-sales-v14,body.athrty-owner-app,body.as04-native,body.es-simple,body.bx30-body,body[data-ce05-mode])
:is(.v33-card,.v32-opportunity,.v32-execution,.atm-block,.module-card,.native-library-card,.v172-project-card,.ce05-card,.ce06-offer){
 border-color:var(--axi-edge);
 background-image:linear-gradient(160deg,color-mix(in srgb,var(--axi-brand) 3%,transparent),transparent 53%);
 transition:border-color 180ms var(--axi-ease),background-color 180ms var(--axi-ease),box-shadow 180ms var(--axi-ease);
}
@media(hover:hover){
 :where(body.v393-operator,body.command-v23,body.athrty-sales-v14,body.athrty-owner-app,body.as04-native,body.es-simple,body.bx30-body,body[data-ce05-mode])
 :is(.v33-card,.v32-opportunity,.v32-execution,.atm-block,.module-card,.native-library-card,.v172-project-card,.ce05-card,.ce06-offer):hover{
  border-color:var(--axi-active);
 }
}
:where(body.v393-operator,body.command-v23,body.athrty-sales-v14,body.athrty-owner-app,body.as04-native,body.es-simple,body.bx30-body,body[data-ce05-mode])
:is(.v33-fact,.atm-metric,.stat,.ce05-stat,[data-px122-card="metric"]){
 border-radius:var(--axi-r-metric);border-color:var(--axi-edge);font-variant-numeric:tabular-nums;
}
:where(body.v393-operator,body.command-v23,body.athrty-sales-v14,body.athrty-owner-app,body.as04-native,body.es-simple,body.bx30-body,body[data-ce05-mode])
:is(.v33-fact,.atm-metric,.stat,.ce05-stat,[data-px122-card="metric"])
:is(strong,output,.metric-value,.stat-value,[data-value]){
 font-variant-numeric:tabular-nums;letter-spacing:-.035em;overflow-wrap:anywhere;
}
/* Branded decision surfaces, not decorative glow across the entire app. */
body.command-v23 .atm-hero,
body.athrty-sales-v14 .v32-brief{
 position:relative;isolation:isolate;overflow:hidden;
 border-color:var(--axi-active);
 background-image:radial-gradient(ellipse at 95% 12%,color-mix(in srgb,var(--axi-brand) 13%,transparent),transparent 46%),
 linear-gradient(120deg,color-mix(in srgb,var(--axi-brand) 4%,var(--axi-surface)),var(--axi-surface));
}
body.command-v23 .atm-hero::after,
body.athrty-sales-v14 .v32-brief::after{
 content:"";position:absolute;right:-65px;top:-92px;width:145px;height:145px;border-radius:50%;
 border:1px solid color-mix(in srgb,var(--axi-brand) 24%,transparent);
 box-shadow:0 0 0 30px color-mix(in srgb,var(--axi-brand) 3%,transparent);
 pointer-events:none;z-index:-1;
}
body[data-ce05-mode] .ce05-intro{
 position:relative;isolation:isolate;border:1px solid var(--axi-active);
 padding:17px clamp(16px,2vw,24px);border-radius:var(--axi-r-card);
 background:linear-gradient(114deg,color-mix(in srgb,var(--ce05-mint,#a0f1c6) 6%,var(--ce05-panel,#11201b)),var(--ce05-panel,#11201b));
}
body[data-ce05-mode] .ce05-header nav a[aria-current="page"]{
 background:color-mix(in srgb,var(--axi-brand) 10%,transparent);
 color:var(--axi-ink);box-shadow:inset 0 0 0 1px var(--axi-active);
}
:where(body.v393-operator,body.command-v23,body.athrty-sales-v14,body.athrty-owner-app,body.as04-native,body.es-simple,body.bx30-body,body[data-ce05-mode])
:is(.v33-toolbar,.v32-brief-actions,.header-actions,.native-tools,.ce05-toolbar,.admin-toolbar,.ce06-controlbar){
 min-width:0;max-width:100%;gap:clamp(7px,1.1vw,13px);
}
:where(body.v393-operator,body.command-v23,body.athrty-sales-v14,body.athrty-owner-app,body.as04-native,body.es-simple,body.bx30-body,body[data-ce05-mode])
:is(.v32-brief-actions,.ce05-toolbar,.admin-toolbar,.header-actions)
:is(button,[role="button"],a[href],select,input):not([type="checkbox"]):not([type="radio"]){
 min-width:0;max-width:100%;
}
:where(body.v393-operator,body.command-v23,body.athrty-sales-v14,body.athrty-owner-app,body.as04-native,body.es-simple,body.bx30-body,body[data-ce05-mode])
:is(.header-actions,.v32-brief-actions,.ce05-toolbar,.admin-toolbar,.native-tools)
:is(button,a[href],[role="button"]):focus-visible{
 outline:2px solid var(--axi-brand)!important;outline-offset:3px;
}
:where(body.v393-operator,body.command-v23,body.athrty-sales-v14,body.athrty-owner-app,body.as04-native,body.es-simple,body.bx30-body,body[data-ce05-mode])
:is(.eyebrow,.atm-kicker,.v171-context-kicker,.v32-section-kicker,.v16-kicker){
 font-weight:760;letter-spacing:.11em;
}
:where(body.v393-operator,body.command-v23,body.athrty-sales-v14,body.athrty-owner-app,body.as04-native,body.es-simple,body.bx30-body,body[data-ce05-mode])
:is(.v32-opportunity,.native-library-card,.ce06-offer,.v33-card,.module-card,.v172-project-card)
:is(h2,h3,h4,p,strong,small){overflow-wrap:anywhere}
@media(max-width:750px){
 body.command-v23 .atm-metrics,
 body.athrty-sales-v14 .v32-stat-grid,
 body[data-ce05-mode] .ce05-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:390px){
 body.command-v23 .atm-metrics,
 body[data-ce05-mode] .ce05-metrics{grid-template-columns:minmax(0,1fr)}
 body[data-ce05-mode] .ce05-header{flex-wrap:wrap;row-gap:12px}
 body[data-ce05-mode] .ce05-header nav{max-width:100%;overflow-x:auto;flex-wrap:nowrap}
}
@media(prefers-reduced-motion:reduce){
 :where(body.v393-operator,body.command-v23,body.athrty-sales-v14,body.athrty-owner-app,body.as04-native,body.es-simple,body.bx30-body,body[data-ce05-mode])
 :is(.v33-card,.v32-opportunity,.v32-execution,.atm-block,.module-card,.native-library-card,.v172-project-card,.ce05-card,.ce06-offer){transition:none!important;animation:none!important}
}
@media(forced-colors:active){
 :where(body.v393-operator,body.command-v23,body.athrty-sales-v14,body.athrty-owner-app,body.as04-native,body.es-simple,body.bx30-body,body[data-ce05-mode])
 :is(.v33-card,.atm-metric,.ce05-stat,.v32-opportunity){border-color:CanvasText;background:Canvas;color:CanvasText}
}
.factory-app:not([data-proposal-site]) .factory-top{
 border-bottom-color:color-mix(in srgb,var(--ath-os-ink,#eff5f3) 13%,transparent);
}
.factory-app:not([data-proposal-site]) .factory-logo{letter-spacing:-.045em;font-weight:830}
.factory-app:not([data-proposal-site]) :is(.v16-card,.v16-advisor-panel){min-width:0;max-width:100%;overflow-wrap:anywhere;border-radius:18px}
.factory-app:not([data-proposal-site]) .v16-kicker{letter-spacing:.11em;font-weight:750}
/* Company OS: lead lifecycle, tasks and recorded customer interactions.
   Existing V76 theme variables and BS06 operational data remain canonical. */
body.athrty-company-os{
 --axi-company-brand:var(--accent,#6ee4d4);
 --axi-company-edge:color-mix(in srgb,var(--ink,#edf7f3) 15%,transparent);
 --axi-company-strong:color-mix(in srgb,var(--axi-company-brand) 43%,var(--axi-company-edge));
}
body.athrty-company-os :is(.panel,.metric,.bs05-health,.ax120-activity){
 min-width:0;max-width:100%;overflow-wrap:anywhere;
 border-radius:18px;border-color:var(--axi-company-edge);
}
body.athrty-company-os :is(.metric,.bs05-metrics>div){
 font-variant-numeric:tabular-nums;
 background-image:linear-gradient(160deg,color-mix(in srgb,var(--axi-company-brand) 3%,transparent),transparent 60%);
}
body.athrty-company-os :is(.metric,.bs05-metrics>div) strong{
 font-variant-numeric:tabular-nums;letter-spacing:-.035em;
}
body.athrty-company-os :is(.tabs,.form-row,.grid,.bs05-metrics,.ax120-input-grid){min-width:0;max-width:100%}
body.athrty-company-os :is(.tabs [role="tab"],.button,.ax120-submit button):focus-visible{
 outline:2px solid var(--axi-company-brand)!important;outline-offset:3px;
}
body.athrty-company-os .hero{
 position:relative;isolation:isolate;max-width:min(100%,850px);
}
body.athrty-company-os .hero .eyebrow{font-weight:760;letter-spacing:.12em}
body.athrty-company-os .ax120-activity{border-color:var(--axi-company-strong)}
@media(max-width:750px){
 body.athrty-company-os :is(.grid,.grid.two){grid-template-columns:repeat(2,minmax(0,1fr))}
 body.athrty-company-os .form-row{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:480px){
 body.athrty-company-os :is(.grid,.grid.two){grid-template-columns:minmax(0,1fr)}
 body.athrty-company-os .top{flex-wrap:wrap;gap:12px}
 body.athrty-company-os main{padding-inline:clamp(14px,4vw,22px)}
}
/* AX-122: explicit enterprise operating chain on Operator Today. */
body.v393-operator .axi122-operating-flow{display:grid;gap:14px;margin:16px 0 20px;padding:clamp(16px,2.2vw,25px);border:1px solid var(--axi-active);border-radius:20px;background:linear-gradient(125deg,color-mix(in srgb,var(--axi-brand) 7%,var(--axi-surface)),var(--axi-surface));min-width:0;max-width:100%;overflow:hidden}
body.v393-operator .axi122-flow-intro{display:grid;gap:5px}
body.v393-operator .axi122-kicker{color:var(--axi-brand);font-size:10px;letter-spacing:.12em;font-weight:760}
body.v393-operator .axi122-flow-intro h3{font-size:clamp(17px,2.4vw,23px);line-height:1.2;letter-spacing:-.035em;margin:0;color:var(--axi-ink)}
body.v393-operator .axi122-flow-intro p{color:var(--axi-muted);font-size:12px;line-height:1.55;margin:0;max-width:62ch}
body.v393-operator .axi122-flow-links{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
body.v393-operator .axi122-flow-links a{min-width:0;min-height:78px;padding:13px 12px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:6px;border:1px solid var(--axi-edge);border-radius:12px;text-decoration:none;background:color-mix(in srgb,var(--axi-surface) 91%,var(--axi-brand));color:var(--axi-ink);transition:border-color 150ms var(--axi-ease),background-color 150ms var(--axi-ease)}
body.v393-operator .axi122-flow-links a:hover{border-color:var(--axi-active);background:color-mix(in srgb,var(--axi-brand) 11%,var(--axi-surface))}
body.v393-operator .axi122-flow-links a:focus-visible{outline:2px solid var(--axi-brand);outline-offset:3px}
body.v393-operator .axi122-flow-links strong{font-size:12px;font-weight:780;line-height:1.3}
body.v393-operator .axi122-flow-links small{font-size:11px;color:var(--axi-muted);line-height:1.4}
body.v393-operator .axi122-flow-note{margin:0;font-size:10px;line-height:1.5;color:var(--axi-muted)}
@media(max-width:850px){body.v393-operator .axi122-flow-links{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:390px){body.v393-operator .axi122-flow-links{grid-template-columns:minmax(0,1fr)}body.v393-operator .axi122-flow-links a{min-height:61px}}
@media(prefers-reduced-motion:reduce){body.v393-operator .axi122-flow-links a{transition:none!important}}