/* ADL-WEB tokens (ADL v2.1 palette, ADL v3 type, motion and layers). Keep in sync with
   ../adl-web/tokens.css. The site deploys this folder alone, so it carries its own copy. */
:root {
  --adl-bg: #09090b;
  --adl-surface: #121215;
  --adl-card: #18181b;
  --adl-card-hi: #27272a;
  --adl-border: #27272a;
  --adl-ring: #a1a1aa;
  --adl-text: #f4f4f5;
  --adl-muted: #a1a1aa;
  --adl-disabled: #71717a;
  --adl-success: #10b981;
  --adl-warning: #f59e0b;
  --adl-danger: #ef4444;
  --adl-code: #d4d4d8;
  --adl-selection: #3f3f46;
  --adl-font-ui: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --adl-font-body: "Noto Sans", Inter, system-ui, sans-serif;
  --adl-font-mono: "Fira Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --adl-radius-sm: 6px;
  --adl-radius-md: 8px;
  --adl-radius-lg: 12px;
  --adl-radius-pill: 9999px;
  /* ADL v3 motion (ADL-V3.md section 4). */
  --adl-instant: 90ms;
  --adl-fast: 160ms;
  --adl-base: 240ms;
  --adl-screen: 280ms;
  --adl-slow: 320ms;
  --adl-tooltip-delay: 500ms;
  --adl-stagger: 40ms;
  --adl-ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --adl-ease-in: cubic-bezier(0.32, 0, 0.67, 0);
  --adl-spring: cubic-bezier(0.33, 1, 0.68, 1);
  --adl-shadow-overlay: 0 8px 24px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.3);
  /* Layers (v3 section 3.4). */
  --adl-z-floating: 100;
  /* Glass (v3 section 3.5). */
  --adl-glass-card: rgba(24, 24, 27, 0.8);
  --adl-glass-card-hi: rgba(39, 39, 42, 0.8);
  --adl-glass-bg: rgba(9, 9, 11, 0.8);
  --adl-blur: 12px;
  --adl-z-top: 200;
}

/* SPRING (260, 23): 4.0% overshoot, played over SLOW. */
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --adl-spring: linear(0, 0.046, 0.154, 0.292, 0.438, 0.576, 0.699, 0.801, 0.882, 0.942, 0.985, 1.014, 1.03, 1.038, 1.04, 1.038, 1);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--adl-bg);
  color: var(--adl-text);
  font-family: var(--adl-font-ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Arrow everywhere by default. Pointer only on controls, text cursor only in fields. */
  cursor: default;
}

a,
button,
.btn,
[role="button"] {
  cursor: pointer;
}

input,
textarea,
[contenteditable="true"] {
  cursor: text;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

code {
  font-family: var(--adl-font-mono);
  font-weight: 500;
  font-size: 13px;
  color: var(--adl-code);
}

::selection {
  background: var(--adl-selection);
  color: var(--adl-text);
}

/* SemiBold is for display sizes (22px and up). Smaller headings are Medium (v3 section 2.1). */
.w500 {
  font-weight: 500;
}

.w600 {
  font-weight: 600;
}

:focus-visible {
  outline: 1px solid var(--adl-ring);
  outline-offset: 2px;
}

/* Layout: 16px gutter on phones, wider on larger screens. */
.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px;
}

.muted {
  color: var(--adl-muted);
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--adl-border);
  position: sticky;
  top: 0;
  background-color: var(--adl-bg);
  z-index: 10;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand img {
  height: 40px;
  width: auto;
}

nav {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: var(--adl-muted);
}

nav a {
  transition: color var(--adl-instant) var(--adl-ease-out);
}

nav a:hover {
  color: var(--adl-text);
}

/* Hero */
.hero {
  padding-top: 72px;
  padding-bottom: 56px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 500;
  color: var(--adl-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.1;
  max-width: 18ch;
}

.lede {
  margin-top: 20px;
  max-width: 56ch;
  font-size: clamp(16px, 2.2vw, 18px);
  color: var(--adl-muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* Buttons: 1px border, 8px radius, no shadows. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--adl-border);
  border-radius: var(--adl-radius-md);
  background-color: var(--adl-card);
  color: var(--adl-text);
  font-size: 15px;
  font-weight: 500;
  transition:
    background-color var(--adl-instant) var(--adl-ease-out),
    border-color var(--adl-instant) var(--adl-ease-out),
    transform var(--adl-slow) var(--adl-spring);
}

.btn:hover {
  background-color: var(--adl-card-hi);
}

/* Press: scale 0.965 with a spring back on release (ADL button rule). */
.btn:active {
  transform: scale(0.965);
  transition-duration: var(--adl-instant);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
  transition: transform var(--adl-slow) var(--adl-spring);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-primary {
  background-color: var(--adl-text);
  border-color: var(--adl-text);
  color: var(--adl-card);
}

.btn-primary:hover {
  background-color: #d4d4d8;
  border-color: #d4d4d8;
}

/* Sections */
.section {
  padding-top: 56px;
  padding-bottom: 56px;
  border-top: 1px solid var(--adl-border);
}

.section h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.section > .muted {
  margin-bottom: 28px;
}

.section > h2 + .grid {
  margin-top: 28px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* Static cards: no hover state, so nothing reacts to the pointer. */
.card {
  background-color: var(--adl-card);
  border: 1px solid var(--adl-border);
  border-radius: var(--adl-radius-lg);
  padding: 24px;
  animation: rise var(--adl-base) var(--adl-ease-out) both;
}

/* Entrance stagger: STAGGER x index, capped at 5 items. */
.card:nth-child(2) {
  animation-delay: var(--adl-stagger);
}

.card:nth-child(3) {
  animation-delay: calc(var(--adl-stagger) * 2);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border: 1px solid var(--adl-border);
  border-radius: var(--adl-radius-sm);
  color: var(--adl-text);
}

.card-icon svg {
  width: 20px;
  height: 20px;
}

.card h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 8px;
}

.card p {
  color: var(--adl-muted);
  font-size: 15px;
}

/* Design swatches */
.swatches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.swatch {
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  padding: 12px;
  background-color: var(--adl-surface);
  border: 1px solid var(--adl-border);
  border-radius: var(--adl-radius-md);
  font-size: 14px;
  min-width: 0;
}

.chip {
  grid-row: span 2;
  width: 40px;
  height: 40px;
  border: 1px solid var(--adl-border);
  border-radius: var(--adl-radius-sm);
}

.swatch code {
  overflow-wrap: anywhere;
}

.radii {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.radius {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 64px;
  border: 1px solid var(--adl-ring);
  background-color: var(--adl-card);
  font-size: 13px;
  color: var(--adl-muted);
}

.radius span {
  padding: 0 4px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--adl-border);
  padding: 28px 0;
}

.footer-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

/* Page backdrop: the wave image sits behind the top of the page and fades into the canvas. */
main {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
}

.hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 720px;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background-color: var(--adl-bg);
}

.hero-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Fade the shader into the page: dim the left for copy, dissolve the bottom edge. */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, var(--adl-bg) 0%, rgba(9, 9, 11, 0.4) 45%, transparent 75%),
    linear-gradient(180deg, transparent 55%, var(--adl-bg) 100%);
}

@media (max-width: 899px) {
  .hero-bg {
    height: 560px;
  }

  .hero-bg::after {
    background-image: linear-gradient(180deg, rgba(9, 9, 11, 0.6) 0%, rgba(9, 9, 11, 0.8) 55%, var(--adl-bg) 100%);
  }
}

/* Hero layout. Positioned above the backdrop so the copy always paints on top of the shader. */
.hero {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 40px;
  align-items: center;
}

.hero-copy h1 {
  margin: 0;
}

.small {
  font-size: 13px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  padding: 8px 12px;
  background-color: var(--adl-card);
  border: 1px solid var(--adl-border);
  border-radius: var(--adl-radius-md);
  color: var(--adl-text);
  box-shadow: var(--adl-shadow-overlay);
  z-index: 20;
}

.skip-link:focus {
  top: 12px;
}

/* Releases page */
.page-head {
  padding-top: 56px;
  padding-bottom: 8px;
}

.page-head h1 {
  font-size: clamp(32px, 5vw, 44px);
  margin-bottom: 12px;
}

.release {
  padding: 24px;
  background-color: var(--adl-card);
  border: 1px solid var(--adl-border);
  border-radius: var(--adl-radius-lg);
}

.release-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.release-head h2 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 4px;
}

.install-notes {
  margin: 20px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  line-height: 1.5;
}

.builds {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.build {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px 16px;
  padding: 16px;
  background-color: var(--adl-surface);
  border: 1px solid var(--adl-border);
  border-radius: var(--adl-radius-md);
}

.build-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--adl-border);
  border-radius: var(--adl-radius-sm);
}

.build-meta {
  display: grid;
  min-width: 0;
}

.build-name {
  font-weight: 500;
}

.build-file {
  overflow-wrap: anywhere;
}

.build .btn {
  grid-column: 1 / -1;
  width: 100%;
}

.build .btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (min-width: 640px) {
  .build {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .build .btn {
    grid-column: auto;
    width: auto;
  }
}

/* Design: type, motion and elevation demos (ADL v3 sections 2, 3.3 and 4). */
.sub {
  margin: 40px 0 16px;
  font-size: 18px;
  font-weight: 500;
}

.type-grid,
.layers {
  display: grid;
  gap: 12px;
}

.type-card,
.motion,
.layer {
  padding: 20px;
  background-color: var(--adl-surface);
  border: 1px solid var(--adl-border);
  border-radius: var(--adl-radius-md);
  min-width: 0;
}

.type-card {
  display: grid;
  gap: 8px;
}

.type-sample {
  font-size: 22px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.type-sample.body {
  font-family: var(--adl-font-body);
  font-size: 17px;
  line-height: 1.5;
}

.type-sample code {
  font-size: 15px;
}

.motion-rows {
  display: grid;
  gap: 10px;
}

.motion-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 56px;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.motion-row code {
  text-align: right;
}

.track {
  position: relative;
  height: 24px;
  border-radius: var(--adl-radius-pill);
  background-color: var(--adl-card);
  border: 1px solid var(--adl-border);
}

/* The dot crosses the track in the row's duration, eased out; the spring row overshoots. */
.dot {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--adl-text);
  transition: left var(--d) var(--adl-ease-out);
}

.spring .dot {
  transition-timing-function: var(--adl-spring);
}

.at-end .dot {
  left: calc(100% - 19px);
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 20px 0 12px;
}

.icon-btn {
  width: 44px;
  padding: 0;
}

.icon-btn svg,
.btn.icon-btn:hover svg {
  transform: none;
}

/* Tooltip: shows after the pointer rests for TOOLTIP_DELAY, and never on touch. */
.tip-anchor {
  position: relative;
  display: inline-flex;
}

.tooltip {
  position: absolute;
  left: 50%;
  top: calc(100% + 6px);
  padding: 5px 8px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  background-color: var(--adl-card-hi);
  border: 1px solid var(--adl-border);
  border-radius: var(--adl-radius-md);
  box-shadow: var(--adl-shadow-overlay);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -4px);
  transition:
    opacity var(--adl-fast) var(--adl-ease-out),
    transform var(--adl-fast) var(--adl-ease-out);
  z-index: var(--adl-z-top);
}

.tip-anchor:hover .tooltip,
.tip-anchor:focus-within .tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
  transition-delay: var(--adl-tooltip-delay);
}

@media (hover: none) {
  .tooltip {
    display: none;
  }
}

.layer p {
  margin-top: 6px;
  font-size: 15px;
  color: var(--adl-muted);
}

.layer-0 {
  background-color: var(--adl-card);
}

.layer-1 {
  background-color: var(--adl-card);
  box-shadow: var(--adl-shadow-overlay);
}

/* Toasts (v3 section 8.10): bottom right, newest at the bottom, at most three. */
.toast-region {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: var(--adl-z-top);
  display: grid;
  justify-items: end;
  gap: 8px;
  pointer-events: none;
}

.toast {
  position: relative;
  display: grid;
  grid-template-columns: 3px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: min(360px, 100%);
  min-height: 68px;
  padding: 12px 12px 12px 10px;
  background-color: var(--adl-card);
  border: 1px solid var(--adl-border);
  border-radius: var(--adl-radius-lg);
  box-shadow: var(--adl-shadow-overlay);
  overflow: hidden;
  pointer-events: auto;
  animation: toast-in var(--adl-base) var(--adl-ease-out) both;
}

.toast[data-leaving] {
  animation: toast-out 200ms var(--adl-ease-in) both;
}

.toast-bar {
  align-self: stretch;
  border-radius: 2px;
  background-color: var(--adl-danger);
}

.toast-text {
  display: grid;
  min-width: 0;
}

.toast-text strong {
  font-size: 15px;
  font-weight: 500;
}

.toast-text span {
  font-size: 14px;
  color: var(--adl-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toast-action {
  min-height: 32px;
  padding: 0 12px;
  background-color: var(--adl-card-hi);
}

.toast-time {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 1px;
  background-color: rgba(239, 68, 68, 0.5);
  transform-origin: left;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* Error shake (v3 section 4.5): 4px, three swings that die away, over SLOW. */
.adl-shake {
  animation: shake var(--adl-slow) linear;
}

@keyframes shake {
  17% { transform: translateX(4px); }
  33% { transform: translateX(-2.67px); }
  50% { transform: translateX(2px); }
  67% { transform: translateX(-1.33px); }
  83% { transform: translateX(0.67px); }
}

/* Glass: floating surfaces blur what is beneath. Opaque without backdrop-filter, or when the
   user asks to reduce transparency. */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .toast,
  .site-header {
    -webkit-backdrop-filter: blur(var(--adl-blur));
    backdrop-filter: blur(var(--adl-blur));
  }

  .toast {
    background-color: var(--adl-glass-card);
  }

  .site-header {
    background-color: var(--adl-glass-bg);
  }

  .tooltip {
    background-color: var(--adl-glass-card-hi);
    -webkit-backdrop-filter: blur(var(--adl-blur));
    backdrop-filter: blur(var(--adl-blur));
  }
}

@media (prefers-reduced-transparency: reduce) {
  .toast,
  .tooltip,
  .site-header {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .toast {
    background-color: var(--adl-card);
  }

  .tooltip {
    background-color: var(--adl-card-hi);
  }

  .site-header {
    background-color: var(--adl-bg);
  }
}

/* Design swatches and radii read their values from inline custom properties. */
.chip {
  background-color: var(--c);
}

.radius {
  border-radius: var(--r);
}

/* Wider screens */
@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .swatches,
  .type-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .layers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 479px) {
  nav {
    gap: 14px;
  }

  .brand img {
    height: 32px;
  }

  .hero {
    padding-top: 48px;
  }
}

/* Entrance (v3 section 4.3): rise 12px and fade in over BASE, staggered. Opacity and position only. */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.hero-copy > * {
  animation: rise var(--adl-base) var(--adl-ease-out) both;
}

.hero-copy > h1 {
  animation-delay: var(--adl-stagger);
}

.hero-copy > .lede {
  animation-delay: calc(var(--adl-stagger) * 2);
}

.hero-copy > .actions {
  animation-delay: calc(var(--adl-stagger) * 3);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}


/* Minimal, high-impact Releases Hero Banner & App Row Cards */
.releases-top {
  padding-top: 48px;
  padding-bottom: 12px;
}

.launcher-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 32px;
  background: linear-gradient(135deg, rgba(24, 24, 27, 0.96) 0%, rgba(18, 18, 21, 0.98) 100%);
  border: 1px solid var(--adl-border);
  border-radius: var(--adl-radius-lg);
}

.launcher-banner-left {
  max-width: 580px;
}

.launcher-badge-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.launcher-mark {
  flex: none;
  border-radius: 10px;
}

.launcher-tag {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--adl-muted);
  margin-bottom: 4px;
}

.launcher-banner h1 {
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.15;
}

.launcher-desc {
  color: var(--adl-muted);
  font-size: 16px;
  line-height: 1.5;
}

.launcher-banner-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

@media (min-width: 720px) {
  .launcher-banner-right {
    align-items: flex-end;
  }
}

.btn-lg {
  min-height: 48px;
  padding: 0 24px;
  font-size: 16px;
}

.apps-heading {
  font-size: 13px !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--adl-muted);
  margin-bottom: 16px !important;
}

.app-row-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  background-color: var(--adl-card);
  border: 1px solid var(--adl-border);
  border-radius: var(--adl-radius-lg);
}

.app-row-info {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 560px;
}

.app-title-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.app-title-line h3 {
  font-size: 18px;
  font-weight: 600;
}

.ver-pill {
  padding: 2px 7px;
  background-color: var(--adl-card-hi);
  border: 1px solid var(--adl-border);
  border-radius: var(--adl-radius-sm);
  font-size: 12px;
}

.app-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Account control in the header (account.js). */
nav { align-items: center; }
.acct { position: relative; display: flex; align-items: center; min-width: 32px; min-height: 32px; }
.acct-signin {
  display: inline-flex; align-items: center; height: 32px; padding: 0 14px;
  border: 1px solid var(--adl-border); border-radius: 999px; color: var(--adl-text); font-weight: 500; white-space: nowrap;
}
.acct-signin:hover { background: var(--adl-card-hi); }
.acct-button { padding: 0; border: 0; background: none; border-radius: 50%; cursor: pointer; line-height: 0; }
.acct-button:focus-visible { outline: 1px solid var(--adl-ring); outline-offset: 3px; }
.acct-avatar {
  position: relative; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  overflow: hidden; background: var(--adl-text); color: var(--adl-card); font-size: 13px; font-weight: 600;
  box-shadow: 0 0 0 1px var(--adl-border); transition: box-shadow var(--adl-instant) var(--adl-ease-out);
}
.acct-button:hover .acct-avatar, .acct-button[aria-expanded="true"] .acct-avatar { box-shadow: 0 0 0 2px var(--adl-muted); }
.acct-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.acct-avatar-lg { width: 40px; height: 40px; font-size: 15px; flex: none; }
.acct-menu {
  position: absolute; top: calc(100% + 10px); right: 0; width: 280px; padding: 6px; z-index: 20;
  background: var(--adl-card); border: 1px solid var(--adl-border); border-radius: var(--adl-radius-lg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45); color: var(--adl-text);
  animation: acct-pop 140ms var(--adl-ease-out) both; transform-origin: top right;
}
@keyframes acct-pop { from { transform: translateY(-4px) scale(0.98); } }
.acct-head { display: flex; align-items: center; gap: 12px; padding: 10px 10px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--adl-border); }
.acct-who { min-width: 0; display: grid; }
.acct-who strong { font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-who span { font-size: 12px; color: var(--adl-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-item {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 0 10px;
  border: 0; border-radius: var(--adl-radius-md); background: none; color: var(--adl-text);
  font: inherit; font-size: 14px; text-align: left; cursor: pointer;
}
.acct-item:hover, .acct-item:focus-visible { background: var(--adl-card-hi); outline: none; }
.acct-item svg { color: var(--adl-muted); flex: none; }
.acct-chev { margin-left: auto; color: var(--adl-muted); transition: transform var(--adl-instant) var(--adl-ease-out); }
.acct-item[aria-expanded="true"] .acct-chev { transform: rotate(90deg); }
.acct-downloads { display: grid; gap: 4px; padding: 4px 4px 6px 30px; }
.acct-file {
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center;
  padding: 8px 10px; border: 1px solid var(--adl-border); border-radius: var(--adl-radius-md); color: var(--adl-text);
}
.acct-file:hover { background: var(--adl-card-hi); }
.acct-file-name { font-size: 13px; font-weight: 500; }
.acct-file-meta { grid-row: 2; font-size: 12px; color: var(--adl-muted); }
.acct-file svg { grid-row: 1 / 3; grid-column: 2; color: var(--adl-muted); }
.acct-empty { margin: 0; padding: 6px 4px; font-size: 13px; color: var(--adl-muted); }
.acct-sep { height: 1px; margin: 4px 0; background: var(--adl-border); }

/* Animated backdrop (backdrop.js) behind every page but the home page. Content sits above it;
   the header turns to frosted glass so the bands show through as you scroll. */
.page-backdrop { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
body:has(.page-backdrop) main,
body:has(.page-backdrop) .docs-shell,
body:has(.page-backdrop) .site-footer { position: relative; z-index: 1; }
body:has(.page-backdrop) .site-header {
  background-color: rgba(9, 9, 11, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
