/* ATHRTY BLACKLINE / FIELD activation. Single action-first commercial component.
   Reuses existing corporate tokens; no separate theme or transaction authority. */
.xf24{
 --xf-ink:var(--athrty-brand-ink,#f2f6f8);
 --xf-muted:var(--athrty-brand-muted,#b9c8d4);
 --xf-line:var(--athrty-brand-line,rgba(181,208,227,.24));
 --xf-surface:var(--athrty-brand-surface,#121d27);
 --xf-raised:var(--athrty-brand-surface-raised,#192734);
 --xf-bright:var(--athrty-brand-bright,#d4e3ed);
 color:var(--xf-ink);
 background:linear-gradient(148deg,var(--xf-raised),var(--xf-surface) 72%);
 border:1px solid var(--xf-line);
 border-radius:24px;
 padding:clamp(18px,3.2vw,34px);
 display:grid;
 gap:clamp(18px,2.4vw,26px);
 min-width:0;
 margin:20px 0 26px;
 font-family:Inter,-apple-system,BlinkMacSystemFont,"SF Pro Text",system-ui,sans-serif;
 font-synthesis:none;
 scroll-margin-top:24px
}
.xf24 *{box-sizing:border-box;min-width:0}
.xf24 [hidden]{display:none!important}
.xf24-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}
.xf24-heading-copy{max-width:690px}
.xf24 h2{font-size:clamp(23px,3vw,38px);font-weight:690;line-height:1.11;letter-spacing:-.048em;margin:9px 0 0;color:var(--xf-ink)}
.xf24-kicker,.xf24-section-heading{font-size:11px;font-weight:710;line-height:1.4;letter-spacing:.13em;color:var(--xf-muted);text-transform:uppercase}
.xf24-status{font-size:12px;line-height:1.6;color:var(--xf-muted);margin:-8px 0 0}
.xf24-refresh{border:1px solid var(--xf-line);background:transparent;color:var(--xf-ink);
 border-radius:999px;min-height:44px;min-width:44px;padding:10px 17px;font:650 12px/1.3 Inter,-apple-system,BlinkMacSystemFont,system-ui,sans-serif;
 cursor:pointer;white-space:nowrap;transition:background-color .22s ease,color .22s ease}
.xf24-refresh:hover{background:var(--xf-bright);color:var(--athrty-brand-on-primary,#0b1016)}
.xf24-refresh:disabled{opacity:.55;cursor:wait}
.xf24-focus{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:clamp(18px,3vw,32px);
 padding:clamp(20px,3vw,31px);border:1px solid rgba(200,225,240,.24);border-radius:20px;
 background:radial-gradient(ellipse at 100% 0%,rgba(156,178,194,.12),transparent 55%),rgba(10,17,24,.48)}
.xf24-focus-copy{max-width:660px}
.xf24-state-label{display:inline-flex;align-items:center;gap:9px;color:var(--xf-bright);
 font-size:11px;font-weight:760;letter-spacing:.12em}
.xf24-state-label:before{content:"";display:block;width:7px;height:7px;border-radius:50%;background:var(--athrty-brand-primary,#9cb2c2)}
.xf24-action-title{font-size:clamp(24px,3.6vw,39px)!important;font-weight:710;line-height:1.12;
 letter-spacing:-.054em;margin:14px 0 12px!important;color:var(--xf-ink)}
.xf24-action-detail{font-size:14px;line-height:1.6;color:var(--xf-muted);margin:0}
.xf24-action-caution{font-size:11px;line-height:1.6;color:var(--xf-muted);opacity:.78;margin:15px 0 0}
.xf24-action-side{display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between;gap:15px;max-width:265px}
.xf24-cert-status{color:var(--xf-muted);font-size:11px;line-height:1.45;text-align:right;
 font-weight:620;padding:7px 11px;border:1px solid var(--xf-line);border-radius:999px}
.xf24-next-link{display:inline-flex;align-items:center;justify-content:center;max-width:100%;
 min-height:48px;padding:13px 21px;background:var(--xf-bright);color:var(--athrty-brand-on-primary,#0b1016)!important;
 border:1px solid var(--xf-bright);border-radius:999px;text-align:center;
 text-decoration:none!important;font:730 13px/1.3 Inter,-apple-system,BlinkMacSystemFont,system-ui,sans-serif;
 transition:background-color .22s ease,transform .22s ease}
.xf24-next-link:hover{background:#fff;color:#0b1016!important;text-decoration:none!important;transform:translateY(-1px)}
.xf24-next-link:focus-visible,.xf24-refresh:focus-visible,.xf24-evidence-summary:focus-visible{
 outline:3px solid var(--xf-bright);outline-offset:4px}
.xf24-section-heading{margin:0 0 11px}
.xf24-phases{list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;padding:0;margin:0}
.xf24-phase{display:flex;flex-direction:column;gap:10px;padding:16px 16px 14px;
 border:1px solid var(--xf-line);border-radius:15px;background:rgba(0,0,0,.10);min-width:0}
.xf24-phase[data-state=current]{background:rgba(156,178,194,.12);border-color:var(--athrty-brand-primary,#9cb2c2)}
.xf24-phase-number{font-size:11px;font-weight:720;color:var(--xf-muted);font-variant-numeric:tabular-nums}
.xf24-phase-copy{display:grid;gap:6px}
.xf24-phase-copy strong{font-size:13px;line-height:1.28;letter-spacing:-.025em;color:var(--xf-ink)}
.xf24-phase-copy small{font-size:11px;line-height:1.5;color:var(--xf-muted)}
.xf24-phase-status{font-size:10px;letter-spacing:.04em;line-height:1.3;font-weight:700;color:var(--xf-muted);
 margin-top:auto;padding-top:5px}
.xf24-phase[data-state=current] .xf24-phase-status{color:var(--xf-bright)}
.xf24-evidence{border:1px solid var(--xf-line);border-radius:15px;padding:0 16px;overflow:hidden;background:rgba(0,0,0,.10)}
.xf24-evidence-summary{display:flex;justify-content:space-between;align-items:center;gap:15px;
 min-height:52px;cursor:pointer;padding:12px 0;list-style:none}
.xf24-evidence-summary::-webkit-details-marker{display:none}
.xf24-evidence-summary strong{font-size:12px;color:var(--xf-ink);font-weight:690}
.xf24-evidence-summary span{font-size:11px;color:var(--xf-muted);text-align:right}
.xf24-evidence-summary:after{content:"+";font-size:20px;font-weight:400;color:var(--xf-muted)}
.xf24-evidence[open] .xf24-evidence-summary:after{content:"−"}
.xf24-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;padding:8px 0 14px}
.xf24-metric{display:grid;gap:6px;border:1px solid var(--xf-line);border-radius:12px;padding:14px}
.xf24-metric strong{font-size:clamp(22px,2.8vw,30px);line-height:1.1;font-weight:720;
 font-variant-numeric:tabular-nums;letter-spacing:-.045em;color:var(--xf-ink)}
.xf24-metric span{font-size:11px;line-height:1.45;color:var(--xf-muted)}
.xf24-stages{list-style:none;margin:0;padding:0;border-top:1px solid var(--xf-line)}
.xf24-stage{display:flex;justify-content:space-between;align-items:center;gap:12px;
 padding:12px 0;border-bottom:1px solid var(--xf-line)}
.xf24-stage-name{font-size:12px;font-weight:570;line-height:1.5;color:var(--xf-ink)}
.xf24-stage-count{white-space:nowrap;font-size:11px;color:var(--xf-muted);font-variant-numeric:tabular-nums}
.xf24-note{font-size:11px;line-height:1.65;color:var(--xf-muted);margin:15px 0 16px}
@media(max-width:900px){.xf24-phases{grid-template-columns:repeat(2,minmax(0,1fr))}.xf24-focus{grid-template-columns:1fr}.xf24-action-side{max-width:none;align-items:flex-start;flex-direction:row;flex-wrap:wrap}.xf24-cert-status{text-align:left}}
@media(max-width:590px){.xf24{padding:17px;border-radius:18px;gap:16px}.xf24-heading{flex-wrap:wrap}.xf24-refresh{margin-top:0}.xf24-focus{padding:19px;border-radius:16px}.xf24-action-side{display:grid;grid-template-columns:1fr;justify-items:stretch}.xf24-next-link{width:100%}.xf24-phases{gap:8px}.xf24-phase{padding:13px}.xf24-evidence-summary{align-items:flex-start;flex-direction:column;gap:5px;padding-right:24px;position:relative}.xf24-evidence-summary span{text-align:left}.xf24-evidence-summary:after{position:absolute;right:0;top:11px}.xf24-metrics{grid-template-columns:1fr}.xf24-stage{align-items:start}.xf24-stage-count{white-space:normal;text-align:right}}
@media(max-width:370px){.xf24-phases{grid-template-columns:1fr}.xf24-stage{display:grid;gap:3px}.xf24-stage-count{text-align:left}}
@media(prefers-reduced-motion:reduce){.xf24 *{transition:none!important;transform:none!important;scroll-behavior:auto!important}}
/* BLACKLINE light-mode compatibility; the user and authenticated workspace own theme selection. */
html[data-athrty-appearance=light] .xf24,
body[data-athrty-appearance=light] .xf24{
 --xf-ink:#17242f;--xf-muted:#52636f;--xf-line:rgba(47,68,83,.2);
 --xf-surface:#f3f6f8;--xf-raised:#ffffff;--xf-bright:#253e52;
 background:linear-gradient(145deg,#fff,#f0f4f7);color:var(--xf-ink)}
html[data-athrty-appearance=light] .xf24 .xf24-focus,
body[data-athrty-appearance=light] .xf24 .xf24-focus{background:#eef3f6;border-color:rgba(36,63,80,.2)}
html[data-athrty-appearance=light] .xf24 .xf24-next-link,
body[data-athrty-appearance=light] .xf24 .xf24-next-link{color:#fff!important}
html[data-athrty-appearance=light] .xf24 .xf24-phase,
body[data-athrty-appearance=light] .xf24 .xf24-phase{background:rgba(52,79,98,.035)}
/* X-FOUNDRY-262000: one clear entry for signed-out principals.
   Presentation-only: the real owner endpoint still enforces auth/RLS.
   When the protected source verifies an owner, all canonical tools reappear. */
body.ath-commerce-activation[data-field-owner-gate="required"]
:is(.ath-activation-intro>.button,#xcommerce50000-journey,
#xfield240000-activation,.ath-activation-stage:not(:has(#owner-login)),
.legacy-commerce,#contractor-first-sale,main>.notice){display:none!important}
/* Keep the existing owner authority link as the one sign-in source.
   No parallel auth CTA, recovered owner role, or commercial access is created. */
body.ath-commerce-activation[data-field-owner-gate="required"]
.ath-activation-stage:has(#owner-login){display:block!important;max-width:780px;margin:16px 0}
body.ath-commerce-activation[data-field-owner-gate="required"]
.ath-activation-stage:has(#owner-login) .steps{grid-template-columns:minmax(0,1fr)}
body.ath-commerce-activation[data-field-owner-gate="required"]
.ath-activation-stage:has(#owner-login) .steps article:not(:has(#owner-login)){display:none!important}
body.ath-commerce-activation[data-field-owner-gate="required"]
.ath-activation-intro{max-width:780px}