/* ATHRTY X-GLASS-320000 | BLACKLINE Authority Glass v1.0
   Shared byte-identical visual contract for first-party corporate controls.
   Tenant content, customer previews, editors and embedded sites are explicitly excluded.
   Component owners retain sizing and layout; this file owns action surface and states. */
:root {
  --athrty-control-radius: 12px;
  --athrty-glass-focus: #a7d6fb;
  --athrty-glass-ink: #f5f8fa;
  --athrty-glass-neutral: 20 30 39;
  --athrty-glass-blue: 29 65 94;
  --athrty-glass-red: 94 39 47;
  --athrty-glass-edge-neutral: 157 188 210;
  --athrty-glass-edge-blue: 154 206 244;
  --athrty-glass-edge-red: 239 154 163;
  --athrty-glass-duration: 180ms;
}
body :is(
  button,
  input[type="button"],
  input[type="submit"],
  [role="button"],
  a:is(.button,.btn,.pill,.primary,.secondary,.hero-cta,.continue,.xm-primary-button,.xm-workspace-link,.x704-btn,.x16020-cta,.athrty-pathways__cta,.cap-header-cta),
  [data-athrty-glass]
):not(:is(
  [role="switch"],[role="checkbox"],[role="tab"],[role="menuitem"],
  .link-button,.icon-only-text,[data-glass-exempt],
  [data-tenant-preview],[data-customer-preview],
  [data-tenant-preview] *,[data-customer-preview] *,
  [contenteditable] *, .x920-preview *, .studio-canvas *, .site-preview *,
  .tenant-preview *, .customer-preview *, .product-render-preview *
)) {
  --athrty-glass-rgb: var(--athrty-glass-neutral);
  --athrty-glass-edge: var(--athrty-glass-edge-neutral);
  --athrty-glass-opacity: .84;
  box-sizing: border-box;
  max-inline-size: 100%;
  border-radius: var(--athrty-control-radius);
  border: 1px solid rgb(var(--athrty-glass-edge) / .44) !important;
  background: linear-gradient(160deg,rgba(255,255,255,.13),transparent 55%),
              rgb(var(--athrty-glass-rgb) / var(--athrty-glass-opacity)) !important;
  color: var(--athrty-glass-ink) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.13),0 3px 12px rgba(0,0,0,.18) !important;
  -webkit-backdrop-filter: blur(9px) saturate(1.2);
  backdrop-filter: blur(9px) saturate(1.2);
  text-decoration: none !important;
  transition: background-color var(--athrty-glass-duration) ease,
              border-color var(--athrty-glass-duration) ease,
              box-shadow var(--athrty-glass-duration) ease,
              opacity var(--athrty-glass-duration) ease;
}
/* Primary-action emphasis (owner convergence 2026-11-22, supersedes the blue
   variant): the main action renders in the same teal glass system as the
   selected state below, at emphasis strength - 40% teal tint (double the
   selected state's 20%) and 72% teal border (1.5x its 48%), composited over
   the identical sheen gradient, so the hierarchy stays monotonic
   (neutral < selected 20%/48% < primary 40%/72%) while the surface remains
   translucent glass: never blue, never a solid fill. The teal rgb/edge
   variables keep derived states in the teal family (the hover border
   resolves to rgb(47 230 200 / .85)). This rule precedes the selected rule,
   so a control that is both primary and pressed renders the selected
   state: state beats emphasis. */
body :is(
  button, input[type="button"],input[type="submit"],[role="button"],
  a:is(.button,.btn,.pill,.primary,.secondary,.hero-cta,.continue,.xm-primary-button,.xm-workspace-link,.x704-btn,.x16020-cta,.athrty-pathways__cta,.cap-header-cta),
  [data-athrty-glass]
):not(:is([role="tab"],[role="switch"],[role="checkbox"],[role="menuitem"],
  .link-button,.icon-only-text,[data-glass-exempt],
  [data-tenant-preview],[data-customer-preview],
  [data-tenant-preview] *,[data-customer-preview] *,
  [contenteditable] *, .x920-preview *, .studio-canvas *, .site-preview *,
  .tenant-preview *, .customer-preview *, .product-render-preview *
)):is(.primary,.hero-cta,.continue,.xm-primary-button,.x704-btn-primary,.btn-primary,
  [type="submit"],[data-variant="primary"],
  [data-athrty-glass="primary"]) {
  --athrty-glass-rgb: 47 230 200;
  --athrty-glass-edge: 47 230 200;
  background: linear-gradient(160deg,rgba(255,255,255,.13),transparent 55%),
              color-mix(in srgb, var(--athrty-accent-teal,#2fe6c8) 40%, transparent) !important;
  border-color: color-mix(in srgb, var(--athrty-accent-teal,#2fe6c8) 72%, transparent) !important;
}
/* Selected / pressed state (WS7, converged estate-wide 2026-11-22): teal-tint glass.
   Declared values are identical to the component precedents
   (.xos30000-ol-tab[aria-pressed="true"] and .xos30000-sh-chip.is-on):
   20% teal tint composited over the contract's own sheen gradient,
   48% teal border, inherited text color. Primary-action emphasis above is
   teal as of the 2026-11-22 convergence; the blue variant is retired. */
body :is(
  button, input[type="button"],input[type="submit"],[role="button"],
  a:is(.button,.btn,.pill,.primary,.secondary,.hero-cta,.continue,.xm-primary-button,.xm-workspace-link,.x704-btn,.x16020-cta,.athrty-pathways__cta,.cap-header-cta),
  [data-athrty-glass]
):not(:is([role="tab"],[role="switch"],[role="checkbox"],[role="menuitem"],
  .link-button,.icon-only-text,[data-glass-exempt],
  [data-tenant-preview],[data-customer-preview],
  [data-tenant-preview] *,[data-customer-preview] *,
  [contenteditable] *, .x920-preview *, .studio-canvas *, .site-preview *,
  .tenant-preview *, .customer-preview *, .product-render-preview *
)):is([aria-pressed="true"],[aria-selected="true"],[data-variant="selected"]) {
  --athrty-glass-rgb: 47 230 200;
  --athrty-glass-edge: 47 230 200;
  background: linear-gradient(160deg,rgba(255,255,255,.13),transparent 55%),
              color-mix(in srgb, var(--athrty-accent-teal,#2fe6c8) 20%, transparent) !important;
  border-color: color-mix(in srgb, var(--athrty-accent-teal,#2fe6c8) 48%, transparent) !important;
  color: inherit !important;
}
body :is(
  button,input[type="button"],input[type="submit"],[role="button"],
  a:is(.button,.btn,.pill,.primary,.secondary,.hero-cta,.continue,.xm-primary-button,.xm-workspace-link,.x704-btn,.x16020-cta,.athrty-pathways__cta,.cap-header-cta),
  [data-athrty-glass]
):not(:is([role="tab"],[role="switch"],[role="checkbox"],[role="menuitem"],
  .link-button,.icon-only-text,[data-glass-exempt],
  [data-tenant-preview],[data-customer-preview],
  [data-tenant-preview] *,[data-customer-preview] *,
  [contenteditable] *, .x920-preview *, .studio-canvas *, .site-preview *,
  .tenant-preview *, .customer-preview *, .product-render-preview *
)):is(.danger,.destructive,.btn-danger,[data-variant="danger"],
  [data-variant="destructive"],[data-athrty-glass="danger"]) {
  --athrty-glass-rgb: var(--athrty-glass-red);
  --athrty-glass-edge: var(--athrty-glass-edge-red);
}
@media (hover: hover) {
  body :is(button,input[type="button"],input[type="submit"],[role="button"],
    a:is(.button,.btn,.pill,.primary,.secondary,.hero-cta,.continue,.xm-primary-button,.xm-workspace-link,.x704-btn,.x16020-cta,.athrty-pathways__cta,.cap-header-cta),
    [data-athrty-glass]):not(:is([role="tab"],[role="switch"],[role="checkbox"],[role="menuitem"],
    .link-button,.icon-only-text,[data-glass-exempt],
    [data-tenant-preview],[data-customer-preview],
    [data-tenant-preview] *,[data-customer-preview] *,
    [contenteditable] *, .x920-preview *, .studio-canvas *, .site-preview *,
    .tenant-preview *, .customer-preview *, .product-render-preview *)):hover:not(:disabled,[aria-disabled="true"]) {
    --athrty-glass-opacity: .98;
    border-color: rgb(var(--athrty-glass-edge) / .85) !important;
  }
}
body :is(button,input[type="button"],input[type="submit"],[role="button"],
    a:is(.button,.btn,.pill,.primary,.secondary,.hero-cta,.continue,.xm-primary-button,.xm-workspace-link,.x704-btn,.x16020-cta,.athrty-pathways__cta,.cap-header-cta),
    [data-athrty-glass]):not(:is([role="tab"],[role="switch"],[role="checkbox"],[role="menuitem"],
  .link-button,.icon-only-text,[data-glass-exempt],
  [data-tenant-preview],[data-customer-preview],
  [data-tenant-preview] *,[data-customer-preview] *,
  [contenteditable] *, .x920-preview *, .studio-canvas *, .site-preview *,
  .tenant-preview *, .customer-preview *, .product-render-preview *)):focus-visible {
  outline: 2px solid var(--athrty-glass-focus) !important;
  outline-offset: 3px !important;
}
body :is(button,input[type="button"],input[type="submit"],[role="button"],
    a:is(.button,.btn,.pill,.primary,.secondary,.hero-cta,.continue,.xm-primary-button,.xm-workspace-link,.x704-btn,.x16020-cta,.athrty-pathways__cta,.cap-header-cta),
    [data-athrty-glass]):not(:is([role="tab"],[role="switch"],[role="checkbox"],[role="menuitem"],
  .link-button,.icon-only-text,[data-glass-exempt],
  [data-tenant-preview],[data-customer-preview],
  [data-tenant-preview] *,[data-customer-preview] *,
  [contenteditable] *, .x920-preview *, .studio-canvas *, .site-preview *,
  .tenant-preview *, .customer-preview *, .product-render-preview *)):is(:disabled,[aria-disabled="true"],[aria-busy="true"]) {
  opacity: .5;
  cursor: not-allowed;
}
@media (pointer: coarse) {
  body :is(button,input[type="button"],input[type="submit"],[role="button"],
    a:is(.button,.btn,.pill,.primary,.secondary,.hero-cta,.continue,.xm-primary-button,.xm-workspace-link,.x704-btn,.x16020-cta,.athrty-pathways__cta,.cap-header-cta),
    [data-athrty-glass]):not(:is([data-glass-exempt],[data-tenant-preview],[data-customer-preview],
    [data-tenant-preview] *,[data-customer-preview] *,
    [contenteditable] *, .x920-preview *, .studio-canvas *, .site-preview *,
    .tenant-preview *, .customer-preview *, .product-render-preview *)) { min-block-size: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  body :is(button,input[type="button"],input[type="submit"],[role="button"],
    a:is(.button,.btn,.pill,.primary,.secondary,.hero-cta,.continue,.xm-primary-button,.xm-workspace-link,.x704-btn,.x16020-cta,.athrty-pathways__cta,.cap-header-cta),
    [data-athrty-glass]):not(:is([data-glass-exempt],[data-tenant-preview],[data-customer-preview],
    [data-tenant-preview] *,[data-customer-preview] *,
    [contenteditable] *, .x920-preview *, .studio-canvas *, .site-preview *,
    .tenant-preview *, .customer-preview *, .product-render-preview *)) { transition-duration: 0.01ms !important; }
}
@media (prefers-contrast: more) {
  body :is(button,input[type="button"],input[type="submit"],[role="button"],
    a:is(.button,.btn,.pill,.primary,.secondary,.hero-cta,.continue,.xm-primary-button,.xm-workspace-link,.x704-btn,.x16020-cta,.athrty-pathways__cta,.cap-header-cta),
    [data-athrty-glass]):not(:is([data-glass-exempt],[data-tenant-preview],[data-customer-preview],
    [data-tenant-preview] *,[data-customer-preview] *,
    [contenteditable] *, .x920-preview *, .studio-canvas *, .site-preview *,
    .tenant-preview *, .customer-preview *, .product-render-preview *)) {
    --athrty-glass-opacity: 1;
    border-width: 2px !important;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
@media (forced-colors: active) {
  body :is(button,input[type="button"],input[type="submit"],[role="button"],
    a:is(.button,.btn,.pill,.primary,.secondary,.hero-cta,.continue,.xm-primary-button,.xm-workspace-link,.x704-btn,.x16020-cta,.athrty-pathways__cta,.cap-header-cta),
    [data-athrty-glass]):not(:is([data-glass-exempt],[data-tenant-preview],[data-customer-preview],
    [data-tenant-preview] *,[data-customer-preview] *,
    [contenteditable] *, .x920-preview *, .studio-canvas *, .site-preview *,
    .tenant-preview *, .customer-preview *, .product-render-preview *)) {
    background: ButtonFace !important;
    color: ButtonText !important;
    border-color: ButtonText !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  body :is(button,input[type="button"],input[type="submit"],[role="button"],
    a:is(.button,.btn,.pill,.primary,.secondary,.hero-cta,.continue,.xm-primary-button,.xm-workspace-link,.x704-btn,.x16020-cta,.athrty-pathways__cta,.cap-header-cta),
    [data-athrty-glass]):not(:is([data-glass-exempt],[data-tenant-preview],[data-customer-preview],
    [data-tenant-preview] *,[data-customer-preview] *,
    [contenteditable] *, .x920-preview *, .studio-canvas *, .site-preview *,
    .tenant-preview *, .customer-preview *, .product-render-preview *)):focus-visible { outline-color: Highlight !important; }
}