/* ATHRTY X-207 | Enterprise interface contract, first-party chrome only.
   Extends X-194 accent, PX-122 cards, X-206 spacing. Never alters customer
   websites, proposal themes, native preview, canvas, or exported documents. */
:where(body.v70-ui:not([data-customer-site]),body.v16-site,
body[data-px122-surface]:not([data-customer-site]),body.athrty-owner-app,
body.athrty-sales-v14,body.command-v23,body.v393-operator,body.as04-native){
 --x207-accent:var(--athrty-accent,var(--x194-accent,var(--accent,#acd9c9)));
 --x207-ink:var(--athrty-text-primary,var(--athrty-ink,var(--text,#f2f5f3)));
 --x207-muted:var(--athrty-text-secondary,var(--athrty-subtle,var(--muted,#afbbb5)));
 --x207-base:var(--athrty-surface,var(--panel,#1b2422));
 --x207-raised:var(--athrty-surface-raised,var(--panel2,var(--x207-base)));
 --x207-edge:var(--athrty-border,var(--athrty-edge,var(--border,#44534d)));
 --x207-glass:color-mix(in srgb,var(--x207-raised) 84%,transparent);
 --x207-glass-hover:color-mix(in srgb,var(--x207-accent) 11%,var(--x207-glass));
 --x207-selected:color-mix(in srgb,var(--x207-accent) 10%,var(--x207-raised));
 --x207-selected-edge:color-mix(in srgb,var(--x207-accent) 52%,var(--x207-edge));
 --x207-focus:var(--x207-accent);
 --x207-ease:cubic-bezier(.22,.78,.19,1);
 --x207-control-radius:13px;
 --x207-card-gap:clamp(12px,1.5vw,20px);
}
/* Preserve the current surface geometry and site-owned media. */
:where(body.v70-ui:not([data-customer-site]),body.v16-site,
body[data-px122-surface]:not([data-customer-site]))
:is([data-px122-card],.ath-c-card,.v33-card,.v32-opportunity,
.px452-card,.px409-stage,.ladder-card,.module-card,.v191-workspace-card)
:not(:where(.native-frame *,#nativePreview *,[data-customer-site] *,
[data-proposal-site] *,.cs-site *,[data-site-canvas] *,.preview-stage *)){
 min-inline-size:0;max-inline-size:100%;box-sizing:border-box;background-clip:padding-box;
}
:where(body.v70-ui:not([data-customer-site]),body.v16-site,
body[data-px122-surface]:not([data-customer-site]))
:is([data-px122-card],.ath-c-card,.v33-card,.v32-opportunity,
.px452-card,.px409-stage,.ladder-card,.module-card,.v191-workspace-card)
:not(:where(.native-frame *,#nativePreview *,[data-customer-site] *,
[data-proposal-site] *,[data-site-canvas] *,.preview-stage *)):focus-within{
 border-color:var(--x207-selected-edge);
 /* The focused control owns its own ring, never its parent surface. */
 outline:none!important;
}
/* First-party informational containers never draw a second ring when controls are focused. */
:where(body.v70-ui:not([data-customer-site]),body.v16-site,
body.v393-operator:not([data-customer-site]),body.athrty-owner-app,
body.athrty-sales-v14,body.command-v23,
body[data-px122-surface]:not([data-customer-site]))
:is(.v16-card,.px452-card,.px409-stage,.px453-ladder,.px453-module,
.v33-card,.v32-opportunity,.v191-workspace-card,.ath-c-card,[data-px122-card])
:not(:where([tabindex],[role="button"],[aria-pressed],[aria-selected],
.native-frame *,#nativePreview *,[data-customer-site] *,[data-proposal-site] *,
[data-site-canvas] *,.preview-stage *,.px455-viewport *)):focus-within{
 outline:none!important;
 outline-offset:0!important;
}
/* Select the button itself, never put the selected treatment on its row. */
:where(body.v70-ui:not([data-customer-site]),body.v16-site,
body[data-px122-surface]:not([data-customer-site]))
:is(.ath-c-button.secondary,.ath-c-button[data-variant="secondary"],
.v32-opportunity-actions button.secondary,.v33-action.secondary,
.v64-search-launch,.v64-nav-toggle,.v64-join-theme,
[data-variant="glass"],[data-athrty-surface="glass"]):not(:where(
.native-frame *,#nativePreview *,[data-customer-site] *,[data-proposal-site] *,
[data-site-canvas] *,.preview-stage *,[data-destructive],.danger,.primary)){
 background-color:var(--x207-glass);color:var(--x207-ink);
 border-color:color-mix(in srgb,var(--x207-edge) 74%,transparent);
 border-radius:var(--x207-control-radius);
 box-shadow:inset 0 1px 0 color-mix(in srgb,var(--x207-ink) 7%,transparent),0 2px 12px rgb(0 0 0 / .04);
 transition:background-color .18s var(--x207-ease),border-color .18s var(--x207-ease),box-shadow .18s var(--x207-ease);
}
:where(body.v70-ui:not([data-customer-site]),body.v16-site,
body[data-px122-surface]:not([data-customer-site]))
:is(.ath-c-button.secondary,.ath-c-button[data-variant="secondary"],
.v32-opportunity-actions button.secondary,.v33-action.secondary,
.v64-search-launch,.v64-nav-toggle,.v64-join-theme,
[data-variant="glass"],[data-athrty-surface="glass"])
:not(:disabled):not([aria-disabled="true"]):hover{
 background-color:var(--x207-glass-hover);border-color:var(--x207-selected-edge);
}
@supports(backdrop-filter:blur(12px)){
 :where(body.v70-ui:not([data-customer-site]),body.v16-site,
 body[data-px122-surface]:not([data-customer-site]))
 :is(.ath-c-button.secondary,.v64-search-launch,.v64-nav-toggle,
 [data-variant="glass"],[data-athrty-surface="glass"]):not(:where(
 .native-frame *,#nativePreview *,[data-site-canvas] *,.preview-stage *)){
  backdrop-filter:blur(12px) saturate(1.08);
 }
}
/* Native disclosure behavior: content owns the height, icons never do. */
:where(body.v70-ui:not([data-customer-site]),body.v16-site,
body[data-px122-surface]:not([data-customer-site]))
:is(.px452-card,.px409-stage,.ladder-card,.module-card,[data-px122-card])
:not(:where(.native-frame *,#nativePreview *,[data-site-canvas] *))
 details>summary{cursor:pointer;scroll-margin-block:90px;}
:where(body.v70-ui:not([data-customer-site]),body.v16-site,
body[data-px122-surface]:not([data-customer-site]))
:is(.px452-card,.px409-stage,.ladder-card,.module-card,[data-px122-card])
:not(:where(.native-frame *,#nativePreview *,[data-site-canvas] *))
 details[open]>summary{margin-block-end:clamp(8px,1vw,13px);}
:where(body.v70-ui:not([data-customer-site]),body.v16-site,
body[data-px122-surface]:not([data-customer-site]))
:is(.px452-card,.ladder-card,.module-card,[data-px122-card],.v33-card,.v32-opportunity)
:not(:where(.native-frame *,#nativePreview *,[data-site-canvas] *))
 :is(h2,h3,h4,p,small){overflow-wrap:break-word}
:where(body.v70-ui:not([data-customer-site]),body.v16-site,
body[data-px122-surface]:not([data-customer-site]))
:is(.module-actions,.v32-opportunity-actions,.v191-workspace-links,.ath-c-actions,.plan-actions){
 min-inline-size:0;max-inline-size:100%;flex-wrap:wrap;gap:clamp(8px,1vw,12px);
}
:where(body.v70-ui:not([data-customer-site]),body.v16-site,
body[data-px122-surface]:not([data-customer-site]))
:is(.module-actions,.v32-opportunity-actions,.v191-workspace-links,.ath-c-actions,.plan-actions)>:is(a,button){
 max-inline-size:100%
}
/* The ring belongs to the focused control, not the parent card. */
:where(body.v70-ui:not([data-customer-site]),body.v16-site,
body[data-px122-surface]:not([data-customer-site]))
:is(a[href],button,summary,[role="button"],input,select,textarea,[tabindex="0"])
:not(:where(.native-frame *,#nativePreview *,[data-customer-site] *,
[data-proposal-site] *,.preview-stage *,[data-site-canvas] *)):focus-visible{
 outline:2px solid var(--x207-focus);outline-offset:3px;
}
:where(body.v70-ui:not([data-customer-site]),body.v16-site,
body[data-px122-surface]:not([data-customer-site])) :is(section[id],article[id],[data-scroll-target][id]){
 scroll-margin-block-start:clamp(78px,9vh,112px);
}
@media(max-width:700px){
 :where(body.v70-ui:not([data-customer-site]),body.v16-site,
 body[data-px122-surface]:not([data-customer-site]))
 :is(.module-actions,.v32-opportunity-actions,.v191-workspace-links,.ath-c-actions,.plan-actions)
 :is(a,button){min-height:44px}
 :where(body.v70-ui:not([data-customer-site]),body.v16-site,
 body[data-px122-surface]:not([data-customer-site]))
 :is(dialog,.modal,[role="dialog"]):not(:where(.native-frame *,#nativePreview *)){
  max-width:calc(100vw - 20px)
 }
}
@media(prefers-reduced-motion:reduce){
 :where(body.v70-ui:not([data-customer-site]),body.v16-site,
 body[data-px122-surface]:not([data-customer-site]))
 :is([data-variant="glass"],[data-athrty-surface="glass"],.ath-c-button.secondary){transition:none!important}
}
@media(prefers-reduced-transparency:reduce){
 :where(body.v70-ui:not([data-customer-site]),body.v16-site,
 body[data-px122-surface]:not([data-customer-site]))
 :is([data-variant="glass"],[data-athrty-surface="glass"],.ath-c-button.secondary){
  backdrop-filter:none;background:var(--x207-raised)
 }
}
@media(forced-colors:active){
 :where(body.v70-ui:not([data-customer-site]),body.v16-site,
 body[data-px122-surface]:not([data-customer-site]))
 :is(a,button,summary):focus-visible{outline:2px solid Highlight}
}