/* Anime character list — glass panels, mesh background, Outfit + Noto Sans JP */

:root {
  color-scheme: dark;
  --bg-deep: #07080d;
  --bg-mid: #0e1018;
  --text: #f0f2f7;
  --text-soft: #c4cbe0;
  --muted: #8890a8;
  --accent: #a78bfa;
  --accent-dim: rgba(167, 139, 250, 0.35);
  --accent-glow: rgba(167, 139, 250, 0.22);
  --cyan: #22d3ee;
  --card-surface: rgba(18, 21, 34, 0.72);
  --card-border: rgba(255, 255, 255, 0.085);
  --card-shine: rgba(255, 255, 255, 0.06);
  --radius: 18px;
  --radius-sm: 12px;
  --font-ui: "Outfit", system-ui, sans-serif;
  --font-display: "M PLUS Rounded 1c", "Noto Sans JP", system-ui, sans-serif;
  --font-body: "Noto Sans JP", system-ui, sans-serif;
  --shadow-soft: 0 18px 48px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.agl-page {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.72;
  color: var(--text);
  background: var(--bg-deep);
  position: relative;
  overflow-x: hidden;
}

/* —— Layered background —— */
.agl-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.agl-bg__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: agl-float 22s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .agl-bg__orb {
    animation: none;
  }
}

.agl-bg__orb--a {
  width: min(72vw, 520px);
  height: min(72vw, 520px);
  background: radial-gradient(circle, #4c1d95 0%, transparent 70%);
  top: -12%;
  left: -8%;
  animation-delay: 0s;
}

.agl-bg__orb--b {
  width: min(60vw, 420px);
  height: min(60vw, 420px);
  background: radial-gradient(circle, #0e7490 0%, transparent 68%);
  top: 18%;
  right: -12%;
  animation-delay: -7s;
  opacity: 0.4;
}

.agl-bg__orb--c {
  width: min(90vw, 640px);
  height: min(90vw, 640px);
  background: radial-gradient(circle, #831843 0%, transparent 65%);
  bottom: -25%;
  left: 20%;
  animation-delay: -14s;
  opacity: 0.35;
}

@keyframes agl-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(2%, 3%) scale(1.04);
  }
  66% {
    transform: translate(-2%, 2%) scale(0.98);
  }
}

.agl-bg__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, black 20%, transparent 70%);
  opacity: 0.5;
}

body.agl-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
  color: var(--cyan);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

a:hover {
  color: #67e8f9;
}

/* —— Skip link —— */
.agl-skip {
  position: absolute;
  left: -9999px;
  z-index: 999;
}

.agl-skip:focus {
  left: 1rem;
  top: 1rem;
  padding: 0.55rem 1rem;
  background: var(--accent);
  color: #140d24;
  font-family: var(--font-ui);
  font-weight: 600;
  border-radius: var(--radius-sm);
  outline: none;
}

.agl-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* —— Shell —— */
.agl-shell {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.25rem) clamp(1.15rem, 4vw, 1.75rem) 4rem;
}

/* —— Header —— */
.agl-head {
  margin-bottom: 2.5rem;
}

.agl-head__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.35rem;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 1rem;
}

.agl-head__legal a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  font-family: var(--font-ui);
}

.agl-head__legal a:hover {
  text-decoration: underline;
}

/* —— Profile teaser & user profile form —— */
.agl-profile-teaser {
  margin: 1.25rem 0 0;
  text-align: center;
}

.agl-profile-teaser__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(244, 114, 182, 0.12));
  border: 1px solid rgba(34, 211, 238, 0.35);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.15);
  cursor: pointer;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.agl-profile-teaser__link:hover {
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 0 32px rgba(34, 211, 238, 0.25);
}

.agl-user-profile {
  margin: 0 0 2rem;
}

.agl-user-profile__inner {
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-soft), inset 0 1px 0 var(--card-shine);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.agl-user-profile__title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3.2vw, 1.45rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
  line-height: 1.35;
}

.agl-user-profile__lede {
  margin: 0 0 1.35rem;
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--text-soft);
  max-width: 62ch;
}

.agl-user-profile__lede a {
  color: var(--accent);
}

.agl-user-profile__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem 1.15rem;
}

@media (min-width: 560px) {
  .agl-user-profile__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .agl-user-profile__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.agl-field--span {
  grid-column: 1 / -1;
}

.agl-field__label {
  display: block;
  margin-bottom: 0.38rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-soft);
  letter-spacing: 0.02em;
}

.agl-field__control {
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 10, 18, 0.45);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 0.88rem;
}

.agl-field__control:focus {
  outline: 2px solid rgba(34, 211, 238, 0.45);
  outline-offset: 2px;
}

.agl-field__textarea {
  resize: vertical;
  min-height: 3.5rem;
  line-height: 1.5;
}

.agl-field__radios {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  margin-top: 0.35rem;
}

.agl-radio {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.84rem;
  color: var(--text-soft);
  cursor: pointer;
}

.agl-radio input {
  accent-color: var(--accent);
}

.agl-field__range {
  width: calc(100% - 3rem);
  max-width: 280px;
  vertical-align: middle;
  accent-color: var(--accent);
}

.agl-field__output {
  display: inline-block;
  min-width: 1.5rem;
  margin-left: 0.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.agl-field--checks {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-top: 0.35rem;
}

.agl-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-soft);
  cursor: pointer;
}

.agl-check input {
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.agl-check a {
  color: var(--accent);
}

.agl-user-profile__actions {
  margin-top: 1.35rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}

.agl-user-profile__submit {
  appearance: none;
  cursor: pointer;
  padding: 0.7rem 1.75rem;
  border-radius: 999px;
  border: none;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #0b0d12;
  background: linear-gradient(120deg, var(--cyan), #f472b6);
  box-shadow: 0 4px 24px rgba(34, 211, 238, 0.28);
}

.agl-user-profile__submit:hover {
  filter: brightness(1.06);
}

.agl-user-profile__thanks {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-soft);
  max-width: 52ch;
}

.agl-user-profile__thanks a {
  color: var(--accent);
}

.agl-user-profile__error {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: #fecaca;
  max-width: 52ch;
}

.agl-card__cta {
  margin: 0.55rem 0 0;
  padding: 0;
}

.agl-card__cta-link {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(34, 211, 238, 0.35);
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  padding: 0;
}

.agl-card__cta-link:hover {
  border-bottom-color: var(--accent);
}

.agl-foot-contact {
  margin: 0.85rem auto 0;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
  max-width: none;
}

.agl-foot-contact a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.agl-foot-profile-btn {
  font: inherit;
  font-weight: 600;
  color: var(--accent);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}

.agl-foot-profile-btn:hover {
  text-decoration: underline;
}

.agl-foot-contact a:hover {
  text-decoration: underline;
}

/* —— Profile modal (<dialog>) — themed like .agl-head__frame / cards — */
.agl-dialog {
  padding: 0;
  border: none;
  width: min(920px, calc(100vw - 2rem));
  max-width: 100%;
  background: transparent;
  color: var(--text);
  color-scheme: dark;
}

.agl-dialog::backdrop {
  background: linear-gradient(
    160deg,
    rgba(7, 8, 13, 0.92) 0%,
    rgba(15, 18, 32, 0.88) 45%,
    rgba(35, 15, 40, 0.55) 100%
  );
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
}

.agl-dialog__sheet {
  position: relative;
  max-height: min(92vh, 960px);
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: calc(var(--radius) + 10px);
  border: 1px solid var(--card-border);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.02) 42%, transparent 100%),
    linear-gradient(145deg, rgba(18, 21, 34, 0.92), rgba(10, 12, 22, 0.88));
  box-shadow: var(--shadow-soft), inset 0 1px 0 var(--card-shine), 0 0 0 1px rgba(167, 139, 250, 0.06);
  backdrop-filter: blur(22px) saturate(1.15);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
}

.agl-dialog__sheet::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: calc(var(--radius) + 10px) calc(var(--radius) + 10px) 0 0;
  background: linear-gradient(90deg, var(--cyan), var(--accent), #f472b6);
  opacity: 0.95;
  pointer-events: none;
  z-index: 1;
}

.agl-dialog__sheet::after {
  content: "";
  position: absolute;
  width: min(320px, 55vw);
  height: min(320px, 55vw);
  top: -140px;
  right: -100px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.agl-dialog__sheet > .agl-dialog__close {
  z-index: 6;
}

.agl-user-profile--modal .agl-user-profile__inner {
  position: relative;
  z-index: 2;
  padding: clamp(1.35rem, 3.5vw, 2rem) clamp(1.35rem, 3.5vw, 2rem) clamp(1.25rem, 3vw, 1.75rem);
  padding-top: clamp(2.35rem, 4vw, 2.85rem);
  margin: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 0;
}

.agl-user-profile--modal .agl-user-profile__title {
  background: linear-gradient(92deg, var(--text) 0%, rgba(196, 203, 224, 0.95) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

@supports not (background-clip: text) {
  .agl-user-profile--modal .agl-user-profile__title {
    background: none;
    color: var(--text);
    -webkit-text-fill-color: var(--text);
  }
}

.agl-user-profile--modal .agl-user-profile__lede a {
  color: var(--cyan);
}

.agl-user-profile--modal .agl-user-profile__lede a:hover {
  color: #67e8f9;
}

.agl-dialog__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(18, 21, 34, 0.75));
  color: var(--text-soft);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.agl-dialog__close:hover {
  border-color: rgba(34, 211, 238, 0.4);
  color: var(--cyan);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.agl-dialog__context {
  margin: 0 0 1.1rem;
  padding: 0.75rem 1.05rem 0.75rem 1rem;
  padding-right: 2.85rem;
  border-radius: 14px;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.015em;
  line-height: 1.58;
  color: rgba(226, 232, 255, 0.88);
  background: linear-gradient(
    118deg,
    rgba(167, 139, 250, 0.14) 0%,
    rgba(34, 211, 238, 0.07) 55%,
    rgba(244, 114, 182, 0.05) 100%
  );
  border: 1px solid rgba(167, 139, 250, 0.35);
  border-left: 3px solid var(--cyan);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 40px rgba(0, 0, 0, 0.2);
}

/* —— Multi-step wizard (profile form) — */
.agl-wizard {
  --agl-step: 1;
  --agl-steps-total: 7;
  margin-top: 0.35rem;
}

.agl-wizard__steps {
  counter-reset: agl-wiz-step 0;
}

.agl-wizard__step {
  counter-increment: agl-wiz-step;
}

.agl-wizard__head {
  margin-bottom: 1.05rem;
}

.agl-wizard__progress {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.72rem;
  padding: 0.42rem 1rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(226, 232, 245, 0.72);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(145deg, rgba(14, 16, 28, 0.75), rgba(8, 10, 18, 0.55));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 8px 28px rgba(0, 0, 0, 0.25);
}

.agl-wizard__progress::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--accent));
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.55);
}

.agl-wizard__track {
  position: relative;
  height: 6px;
  border-radius: 999px;
  margin: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
}

.agl-wizard__track-fill {
  height: 100%;
  width: calc(100% * (var(--agl-step) / var(--agl-steps-total)));
  max-width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22d3ee, #a78bfa 55%, #f472b6);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.35);
  transition: width 0.4s cubic-bezier(0.33, 1, 0.68, 1);
}

.agl-wizard__step-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.15rem;
  padding: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 1px 0 rgba(167, 139, 250, 0.12);
}

.agl-wizard__step-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.15rem;
  height: 2.15rem;
  padding: 0 0.45rem;
  border-radius: 12px;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #0a0c12;
  background: linear-gradient(135deg, var(--cyan), #c4b5fd);
  box-shadow:
    0 4px 16px rgba(34, 211, 238, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.agl-wizard__step-chip::before {
  content: counter(agl-wiz-step);
}

.agl-wizard__step-heading {
  flex: 1;
  min-width: 0;
  letter-spacing: 0.02em;
}

.agl-wizard__step--active {
  animation: agl-wiz-step-in 0.42s cubic-bezier(0.33, 1, 0.68, 1) both;
}

@keyframes agl-wiz-step-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.agl-user-profile--modal abbr[title] {
  text-decoration: none;
  font-weight: 800;
  color: #f9a8d4;
  margin-left: 0.12em;
}

.agl-user-profile--modal .agl-user-profile__grid {
  gap: 0.85rem 1rem;
}

.agl-user-profile--modal .agl-user-profile__grid > .agl-field {
  padding: 0.88rem 1rem 0.95rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.055) 0%,
    rgba(255, 255, 255, 0.02) 45%,
    rgba(10, 12, 22, 0.35) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 32px rgba(0, 0, 0, 0.18);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.agl-user-profile--modal .agl-user-profile__grid > .agl-field:focus-within {
  border-color: rgba(34, 211, 238, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(34, 211, 238, 0.1),
    0 14px 40px rgba(0, 0, 0, 0.22);
}

.agl-user-profile--modal .agl-guest-assign {
  margin: 0 0 0.15rem;
  font-size: 0.82rem;
  line-height: 1.62;
  color: rgba(226, 232, 245, 0.86);
}

.agl-user-profile--modal .agl-guest-assign strong {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 1rem;
  font-weight: 800;
  color: #fbcfe8;
  letter-spacing: 0.06em;
  text-shadow: 0 0 18px rgba(244, 114, 182, 0.35);
}

.agl-user-profile--modal .agl-field__label {
  margin-bottom: 0.48rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(226, 232, 245, 0.78);
}

.agl-user-profile--modal .agl-field__control,
.agl-user-profile--modal .agl-field__textarea {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 10, 20, 0.72);
  padding: 0.62rem 0.82rem;
  border-radius: 12px;
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.agl-user-profile--modal select.agl-field__control {
  appearance: none;
  cursor: pointer;
  padding-right: 2.4rem;
  background-color: rgba(8, 10, 20, 0.72);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a78bfa' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 14px;
}

.agl-user-profile--modal .agl-field__control::placeholder,
.agl-user-profile--modal .agl-field__textarea::placeholder {
  color: rgba(226, 232, 245, 0.32);
}

.agl-user-profile--modal .agl-field__control:focus,
.agl-user-profile--modal .agl-field__textarea:focus {
  outline: none;
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow:
    0 0 0 3px rgba(34, 211, 238, 0.14),
    inset 0 2px 4px rgba(0, 0, 0, 0.26);
}

.agl-user-profile--modal .agl-field__radios {
  gap: 0.6rem;
  margin-top: 0.42rem;
}

.agl-user-profile--modal .agl-radio {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.52rem;
  padding: 0.48rem 0.92rem;
  margin: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 10, 18, 0.55);
  font-size: 0.815rem;
  font-weight: 600;
  color: rgba(226, 232, 245, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease,
    box-shadow 0.2s ease;
}

.agl-user-profile--modal .agl-radio input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  flex-shrink: 0;
  accent-color: #22d3ee;
}

.agl-user-profile--modal .agl-radio:has(input:checked) {
  border-color: rgba(34, 211, 238, 0.45);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.15), rgba(167, 139, 250, 0.12));
  color: var(--text);
  box-shadow:
    0 0 20px rgba(34, 211, 238, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.agl-user-profile--modal .agl-radio:hover {
  border-color: rgba(167, 139, 250, 0.35);
}

.agl-user-profile--modal .agl-radio:has(input:focus-visible) {
  outline: 2px solid rgba(34, 211, 238, 0.55);
  outline-offset: 2px;
}

.agl-field__range-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.agl-user-profile--modal .agl-field__range {
  flex: 1;
  min-width: min(240px, 100%);
  max-width: 360px;
  height: 0.45rem;
  margin: 0;
  accent-color: #22d3ee;
  vertical-align: middle;
}

.agl-field__output--pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  margin-left: 0;
  padding: 0 0.65rem;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #0a0c12;
  background: linear-gradient(135deg, var(--cyan), #e9d5ff);
  box-shadow:
    0 6px 20px rgba(34, 211, 238, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.agl-user-profile--modal .agl-field--checks {
  gap: 0.75rem;
  padding: 0.25rem 0 0.15rem;
}

.agl-user-profile--modal .agl-check {
  padding: 0.75rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 10, 20, 0.45);
  font-size: 0.84rem;
  line-height: 1.55;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.agl-user-profile--modal .agl-check:has(input:checked) {
  border-color: rgba(34, 211, 238, 0.35);
  background: linear-gradient(120deg, rgba(34, 211, 238, 0.1), rgba(167, 139, 250, 0.08));
}

.agl-user-profile--modal .agl-check:hover {
  border-color: rgba(167, 139, 250, 0.25);
}

.agl-wizard__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem 0.9rem;
  margin-top: 1.45rem;
  padding: 1.2rem 1rem 1rem;
  margin-left: -0.25rem;
  margin-right: -0.25rem;
  padding-left: calc(0.25rem + 0.5rem);
  padding-right: calc(0.25rem + 0.5rem);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0 0 16px 16px;
  background: linear-gradient(
    175deg,
    rgba(167, 139, 250, 0.06) 0%,
    rgba(255, 255, 255, 0.02) 42%,
    transparent 100%
  );
}

.agl-wizard__back {
  margin-right: auto;
  cursor: pointer;
  padding: 0.58rem 1.22rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025));
  color: var(--text-soft);
  font-family: var(--font-ui);
  font-size: 0.86rem;
  font-weight: 600;
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.agl-wizard__back:hover {
  border-color: rgba(167, 139, 250, 0.5);
  color: var(--text);
  box-shadow: 0 0 22px rgba(167, 139, 250, 0.12);
}

.agl-wizard__back:focus-visible {
  outline: 2px solid rgba(34, 211, 238, 0.55);
  outline-offset: 3px;
}

.agl-wizard__next {
  cursor: pointer;
  padding: 0.65rem 1.75rem;
  border-radius: 999px;
  border: none;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #0a0c12;
  background: linear-gradient(120deg, #22d3ee 0%, #a78bfa 52%, #f472b6 100%);
  background-size: 140% auto;
  box-shadow:
    0 4px 26px rgba(34, 211, 238, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  transition: filter 0.2s ease, box-shadow 0.2s ease, background-position 0.35s ease;
}

.agl-wizard__next:hover {
  filter: brightness(1.06);
  background-position: 100% center;
  box-shadow:
    0 8px 32px rgba(34, 211, 238, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.14) inset;
}

.agl-wizard__next:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 3px;
}

.agl-user-profile--modal .agl-user-profile__submit,
.agl-wizard__submit.agl-user-profile__submit {
  padding: 0.68rem 1.85rem;
  border-radius: 999px;
  font-size: 0.92rem;
  box-shadow:
    0 4px 26px rgba(34, 211, 238, 0.36),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.agl-user-profile--modal .agl-user-profile__submit:focus-visible,
.agl-wizard__submit.agl-user-profile__submit:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.65);
  outline-offset: 3px;
}

.agl-user-profile--modal .agl-user-profile__submit:disabled,
.agl-wizard__submit.agl-user-profile__submit:disabled {
  cursor: wait;
  filter: saturate(0.65) brightness(0.92);
  opacity: 0.85;
}

#agl-profile-form-el > .agl-user-profile__thanks:not([hidden]) {
  margin-top: 1.05rem;
  padding: 0.92rem 1.15rem;
  border-radius: 14px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  background: linear-gradient(
    118deg,
    rgba(34, 211, 238, 0.1),
    rgba(167, 139, 250, 0.07)
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 32px rgba(0, 0, 0, 0.2);
}

#agl-profile-form-el > .agl-user-profile__error:not([hidden]) {
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(248, 113, 113, 0.42);
  background: rgba(248, 113, 113, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

@media (prefers-reduced-motion: reduce) {
  .agl-wizard__track-fill {
    transition: none;
  }
  .agl-wizard__step--active {
    animation: none;
  }
  .agl-wizard__next {
    transition: filter 0.2s ease, box-shadow 0.2s ease;
  }
  .agl-dialog::backdrop {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.agl-card--interactive {
  cursor: pointer;
}

.agl-card--interactive:focus-visible {
  outline: 2px solid rgba(34, 211, 238, 0.55);
  outline-offset: 3px;
}

.agl-head__frame {
  position: relative;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-soft), inset 0 1px 0 var(--card-shine);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
}

.agl-head__frame::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--accent), #f472b6);
  opacity: 0.9;
}

.agl-head__frame::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 68%);
  pointer-events: none;
}

.agl-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 1rem;
}

.agl-tag__dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--accent));
  box-shadow: 0 0 12px var(--accent-dim);
  animation: agl-pulse 2.4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .agl-tag__dot {
    animation: none;
  }
}

@keyframes agl-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.75;
    transform: scale(0.92);
  }
}

.agl-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.65rem, 4.8vw, 2.55rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.agl-title__main {
  display: block;
  color: var(--text);
  font-feature-settings: "palt" 1;
}

.agl-title__accent {
  display: block;
  margin-top: 0.2em;
  background: linear-gradient(105deg, #e879f9 0%, var(--cyan) 45%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 28px rgba(167, 139, 250, 0.25));
  font-feature-settings: "palt" 1;
}

.agl-lede {
  margin: 0;
  max-width: 54ch;
  font-size: 0.9375rem;
  color: var(--text-soft);
  line-height: 1.8;
}

.agl-lede strong {
  color: var(--text);
  font-weight: 600;
}

/* —— Search —— */
.agl-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  align-items: center;
  margin-bottom: 2rem;
}

.agl-search-wrap {
  flex: 1 1 min(100%, 360px);
  min-width: 0;
  position: relative;
  display: flex;
  align-items: center;
}

.agl-search__icon {
  position: absolute;
  left: 1.1rem;
  color: var(--muted);
  pointer-events: none;
  display: flex;
  opacity: 0.85;
  transition: color 0.2s ease;
}

.agl-search-wrap:focus-within .agl-search__icon {
  color: var(--accent);
}

.agl-search {
  width: 100%;
  padding: 0.92rem 1.1rem 0.92rem 3rem;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: var(--card-surface);
  color: var(--text);
  font: inherit;
  outline: none;
  box-shadow: var(--shadow-card), inset 0 1px 0 var(--card-shine);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.agl-search::placeholder {
  color: var(--muted);
}

.agl-search:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.agl-search:focus {
  border-color: var(--accent-dim);
  box-shadow: var(--shadow-card), inset 0 1px 0 var(--card-shine), 0 0 0 3px var(--accent-glow);
}

.agl-count {
  margin: 0;
  padding: 0.5rem 1rem;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  white-space: nowrap;
}

/* —— Grid & cards —— */
.agl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1.35rem;
}

@media (min-width: 900px) {
  .agl-grid {
    gap: 1.5rem;
  }
}

.agl-card {
  --h: 210;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  border-radius: var(--radius);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.25s ease,
    box-shadow 0.35s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .agl-card {
    animation: agl-card-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  }

  .agl-card:nth-child(1) {
    animation-delay: 0.02s;
  }
  .agl-card:nth-child(2) {
    animation-delay: 0.05s;
  }
  .agl-card:nth-child(3) {
    animation-delay: 0.08s;
  }
  .agl-card:nth-child(4) {
    animation-delay: 0.11s;
  }
  .agl-card:nth-child(5) {
    animation-delay: 0.14s;
  }
  .agl-card:nth-child(6) {
    animation-delay: 0.17s;
  }
  .agl-card:nth-child(7) {
    animation-delay: 0.2s;
  }
  .agl-card:nth-child(8) {
    animation-delay: 0.23s;
  }
  .agl-card:nth-child(9) {
    animation-delay: 0.26s;
  }
  .agl-card:nth-child(10) {
    animation-delay: 0.29s;
  }
  .agl-card:nth-child(11) {
    animation-delay: 0.32s;
  }
  .agl-card:nth-child(12) {
    animation-delay: 0.35s;
  }
  .agl-card:nth-child(13) {
    animation-delay: 0.38s;
  }
  .agl-card:nth-child(14) {
    animation-delay: 0.41s;
  }
  .agl-card:nth-child(15) {
    animation-delay: 0.44s;
  }
  .agl-card:nth-child(16) {
    animation-delay: 0.47s;
  }
  .agl-card:nth-child(17) {
    animation-delay: 0.5s;
  }
  .agl-card:nth-child(18) {
    animation-delay: 0.53s;
  }
  .agl-card:nth-child(19) {
    animation-delay: 0.56s;
  }
  .agl-card:nth-child(20) {
    animation-delay: 0.59s;
  }
  .agl-card:nth-child(21) {
    animation-delay: 0.62s;
  }
}

@keyframes agl-card-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.agl-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 4px 0 0 4px;
  background: linear-gradient(
    180deg,
    hsl(var(--h) 80% 62%),
    hsl(calc(var(--h) + 42) 70% 45%)
  );
  opacity: 0.85;
}

.agl-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 80% at 100% 0%, hsl(var(--h) 50% 50% / 0.09), transparent 45%);
  pointer-events: none;
}

.agl-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-card), 0 20px 40px rgba(0, 0, 0, 0.28), 0 0 0 1px hsl(var(--h) 70% 50% / 0.12);
}

.agl-card:hover .agl-profile {
  transform: scale(1.06);
}

.agl-card[hidden] {
  display: none;
}

.agl-card__media {
  position: relative;
  width: min(112px, 36%);
  align-self: center;
  margin-top: 0.75rem;
  margin-inline: auto;
  aspect-ratio: 1;
  flex: 0 0 auto;
  min-height: 0;
  min-width: 0;
  border-radius: 16px;
  background: radial-gradient(
      ellipse 90% 70% at 50% 25%,
      hsl(var(--h) 38% 22% / 0.85),
      #080a12
    ),
    linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.45));
  overflow: hidden;
  contain: layout style;
}

.agl-card__media::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    transparent 50%,
    rgba(8, 10, 18, 0.4) 88%,
    rgba(8, 10, 18, 0.75) 100%
  );
}

.agl-profile {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 28%;
  transform: scale(1.02);
  transform-origin: center center;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  .agl-profile {
    transition: none;
  }

  .agl-card:hover .agl-profile {
    transform: scale(1.02);
  }
}

.agl-card__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.7rem 1.2rem 1.25rem;
  margin-top: 0;
}

.agl-card__top {
  display: block;
}

.agl-card__intro {
  min-width: 0;
  padding: 0.75rem 0.95rem;
  border-radius: 14px;
  background: rgba(14, 16, 28, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.agl-roma {
  margin: 0.2rem 0 0;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(196, 203, 224, 0.72);
}

.agl-card h2,
.agl-card h3.agl-card-title {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.4;
}


.agl-series {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-style: normal;
  color: hsl(var(--h) 52% 70%);
}

.agl-role {
  margin: 0;
  position: relative;
  z-index: 1;
  font-size: 0.8525rem;
  color: var(--muted);
  line-height: 1.72;
}

.agl-note {
  margin-top: auto;
  padding-top: 0.55rem;
  position: relative;
  z-index: 1;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0;
  color: rgba(154, 163, 184, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  line-height: 1.5;
}

@keyframes agl-phone-blink {
  0%,
  100% {
    opacity: 1;
    filter: brightness(1.12);
  }
  50% {
    opacity: 0.22;
    filter: brightness(0.78);
  }
}

/* Phone promos — real <h2> for emphasis; blink on heading (reduced-motion disables below) */
h2.agl-phone {
  margin: 0.55rem 0 0;
  padding: 0;
  border: none;
  font-family: inherit;
  font-weight: unset;
  font-size: unset;
  line-height: 1.2;
  position: relative;
  z-index: 1;
  letter-spacing: 0;
  animation: agl-phone-blink 1.05s ease-in-out infinite;
}

h2.agl-phone a {
  white-space: nowrap;
  font-family: var(--font-ui);
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: clamp(1.52rem, 6vmin, 2.05rem);
  line-height: 1.15;
  text-shadow: 0 0 20px var(--cyan), 0 0 48px rgba(34, 211, 238, 0.42);
}

h2.agl-phone-bar {
  margin: 1.1rem auto 0;
  padding: 0;
  border: none;
  text-align: center;
  font-family: var(--font-ui);
  font-size: clamp(0.92rem, 3vmin, 1.06rem);
  font-weight: 500;
  color: var(--text-soft);
  line-height: 1.35;
  animation: agl-phone-blink 1.05s ease-in-out infinite;
}

h2.agl-phone-bar a {
  margin-left: 0.35rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  font-size: clamp(1.75rem, 7.5vmin, 3rem);
  line-height: 1.1;
  vertical-align: baseline;
  text-shadow: 0 0 24px var(--cyan), 0 0 54px rgba(34, 211, 238, 0.45);
}

h2.agl-phone-foot {
  margin: 0.85rem auto 0;
  padding: 0;
  border: none;
  font-family: var(--font-ui);
  font-size: clamp(0.88rem, 2.9vmin, 1.02rem);
  font-weight: 500;
  color: var(--text-soft);
  line-height: 1.35;
  max-width: none;
  animation: agl-phone-blink 1.05s ease-in-out infinite;
}

h2.agl-phone-foot a {
  margin-left: 0.35rem;
  font-weight: 800;
  letter-spacing: 0.048em;
  font-size: clamp(1.58rem, 6.6vmin, 2.65rem);
  line-height: 1.1;
  text-shadow: 0 0 20px var(--cyan), 0 0 50px rgba(34, 211, 238, 0.4);
}

@media (prefers-reduced-motion: reduce) {
  h2.agl-phone,
  h2.agl-phone-bar,
  h2.agl-phone-foot {
    animation: none;
    opacity: 1;
    filter: none;
  }
}

.agl-names {
  margin: 0.15rem 0 0;
  font-size: 0.84rem;
  color: var(--text-soft);
  font-weight: 500;
}

/* —— Empty state —— */
.agl-empty {
  display: none;
  text-align: center;
  padding: 2.75rem 1.25rem;
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: var(--radius);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.agl-empty.agl-empty--visible {
  display: block;
}

/* —— Footer —— */
.agl-foot {
  margin-top: 3.5rem;
}

.agl-foot__inner {
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  font-size: 0.82rem;
  font-family: var(--font-body);
  color: var(--muted);
  line-height: 1.6;
  text-align: center;
}

.agl-foot__inner p {
  margin: 0;
  max-width: 52ch;
  margin-inline: auto;
}

.agl-foot__inner p.agl-foot-attrib {
  margin-bottom: 0.85rem;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.agl-foot__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.35rem;
  justify-content: center;
  align-items: center;
  margin: 1.15rem auto 0;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  max-width: none;
}

.agl-foot__legal a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  font-family: var(--font-ui);
}

.agl-foot__legal a:hover {
  text-decoration: underline;
}

.agl-foot__inner p + .agl-foot__legal {
  margin-top: 1.25rem;
}

.agl-foot__inner p.agl-foot-attrib code {
  font-family: var(--font-ui);
  font-size: 0.78em;
  padding: 0.12rem 0.35rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-soft);
}
