/* Lax Account — brand-first identity UI */
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap");

/* —— Theme tokens (light default) —— */
:root,
html[data-theme="light"] {
  color-scheme: light;

  --blue: #3475ba;
  --blue-hover: #2b63a0;
  --blue-soft: #eaf2fa;
  --blue-ring: rgba(52, 117, 186, 0.3);
  --blue-hint: #2a5078;

  --ink: #0a0a0a;
  --ink-hover: #1c1c1c;
  --on-ink: #ffffff;
  --paper: #ffffff;
  --paper-soft: #f2f4f6;
  --paper-hover: #eceff2;

  /* --black = themed ink/text; --white = fixed on-accent contrast */
  --black: var(--ink);
  --white: #ffffff;

  --bg: #ffffff;
  --bg-muted: #f7f8fa;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --header-bg: rgba(255, 255, 255, 0.82);
  --header-border: rgba(227, 231, 235, 0.9);

  --text: #0a0a0a;
  --muted: #5f6974;
  --muted-soft: #8a939c;
  --placeholder: #9aa3ad;

  --border: #e3e7eb;
  --border-strong: #c9d0d7;
  --border-input-hover: #b7c0c8;

  --danger: #c62828;
  --danger-bg: #fdecec;
  --danger-border: #f3c4c4;

  --nav-hover-bg: rgba(10, 10, 10, 0.04);
  --btn-secondary-hover: #f4f6f8;
  --btn-nav-hover: #f2f4f6;
  --link-underline: rgba(10, 10, 10, 0.25);

  --glow-a: rgba(52, 117, 186, 0.22);
  --glow-b: rgba(10, 10, 10, 0.045);
  --grid-line: rgba(10, 10, 10, 0.035);
  --grid-mask: #000;

  --band: #0a0a0a;
  --band-fg: #ffffff;
  --band-muted: rgba(255, 255, 255, 0.62);
  --band-border: rgba(255, 255, 255, 0.08);
  --band-btn: #ffffff;
  --band-btn-fg: #0a0a0a;
  --band-btn-hover: #eceff2;

  --atom-core-bg: #ffffff;
  --atom-core-ring: rgba(52, 117, 186, 0.04);
  --orbit-1: rgba(52, 117, 186, 0.34);
  --orbit-2: rgba(52, 117, 186, 0.22);
  --orbit-3: rgba(52, 117, 186, 0.14);
  --electron-ring: rgba(52, 117, 186, 0.12);

  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(10, 10, 10, 0.04), 0 18px 40px rgba(10, 10, 10, 0.07);
  --shadow-header: 0 1px 0 rgba(10, 10, 10, 0.03), 0 10px 28px rgba(10, 10, 10, 0.06);
  --font: "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --theme-meta: #ffffff;
}

html[data-theme="dark"] {
  color-scheme: dark;

  --blue: #6ba3d9;
  --blue-hover: #8bb8e3;
  --blue-soft: rgba(91, 155, 212, 0.16);
  --blue-ring: rgba(107, 163, 217, 0.38);
  --blue-hint: #b7d0ea;

  --ink: #f2f4f6;
  --ink-hover: #ffffff;
  --on-ink: #0b0d10;
  --paper: #14181e;
  --paper-soft: #1a1f27;
  --paper-hover: #222833;

  --black: var(--ink);
  --white: #ffffff;

  --bg: #0b0d10;
  --bg-muted: #10141a;
  --surface: #14181e;
  --surface-glass: rgba(20, 24, 30, 0.78);
  --header-bg: rgba(11, 13, 16, 0.78);
  --header-border: rgba(42, 48, 56, 0.95);

  --text: #f0f2f4;
  --muted: #9aa3ad;
  --muted-soft: #7a8490;
  --placeholder: #6b7580;

  --border: #2a3038;
  --border-strong: #3a4250;
  --border-input-hover: #4a5360;

  --danger: #f07178;
  --danger-bg: rgba(192, 57, 57, 0.18);
  --danger-border: rgba(240, 113, 120, 0.35);

  --nav-hover-bg: rgba(255, 255, 255, 0.06);
  --btn-secondary-hover: #1a1f27;
  --btn-nav-hover: #1a1f27;
  --link-underline: rgba(242, 244, 246, 0.35);

  --glow-a: rgba(91, 155, 212, 0.2);
  --glow-b: rgba(255, 255, 255, 0.03);
  --grid-line: rgba(255, 255, 255, 0.045);
  --grid-mask: #000;

  --band: #12161c;
  --band-fg: #f0f2f4;
  --band-muted: rgba(240, 242, 244, 0.55);
  --band-border: rgba(255, 255, 255, 0.08);
  --band-btn: #f0f2f4;
  --band-btn-fg: #0b0d10;
  --band-btn-hover: #ffffff;

  --atom-core-bg: #161b22;
  --atom-core-ring: rgba(91, 155, 212, 0.08);
  --orbit-1: rgba(107, 163, 217, 0.42);
  --orbit-2: rgba(107, 163, 217, 0.28);
  --orbit-3: rgba(107, 163, 217, 0.16);
  --electron-ring: rgba(107, 163, 217, 0.18);

  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 18px 40px rgba(0, 0, 0, 0.35);
  --shadow-header: 0 1px 0 rgba(255, 255, 255, 0.04), 0 12px 32px rgba(0, 0, 0, 0.4);
  --theme-meta: #0b0d10;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.ui-glow,
.hero-glow {
  --mx: 62%;
  --my: 28%;
  position: fixed;
  inset: -20% -10% -30% -10%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(520px 420px at var(--mx) var(--my), var(--glow-a), transparent 58%),
    radial-gradient(700px 480px at 85% 75%, var(--glow-b), transparent 55%);
}

.ui-grid,
.hero-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 75% 70% at 50% 35%, #000 15%, transparent 78%);
}

.shell,
.auth-shell {
  position: relative;
  z-index: 1;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: var(--blue-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
}

.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* —— Header —— */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.35rem;
  border-bottom: 1px solid var(--header-border);
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.top.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-header);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--black);
  text-decoration: none;
  min-width: 0;
}

.brand:hover {
  color: var(--black);
  text-decoration: none;
}

.brand-text {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.logo {
  border-radius: 0;
  object-fit: contain;
  background: transparent;
  flex-shrink: 0;
  box-shadow: none;
}

.logo-nav {
  width: 32px;
  height: 32px;
}

.logo-card {
  width: 56px;
  height: 56px;
}

.logo-hero {
  width: 88px;
  height: 88px;
  animation: float-in 0.55s var(--ease) both;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-form {
  display: inline;
  margin: 0;
}

.nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  text-decoration: none;
}

.nav a:hover {
  color: var(--black);
  background: var(--nav-hover-bg);
  text-decoration: none;
}

.btn-nav {
  margin-left: 0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--paper);
  color: var(--black);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease);
}

.btn-nav:hover {
  background: var(--btn-nav-hover);
  border-color: var(--border-strong);
  color: var(--black);
  text-decoration: none;
}

.btn-nav-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-ink);
}

.btn-nav-primary:hover {
  background: var(--ink-hover);
  border-color: var(--ink-hover);
  color: var(--on-ink);
}

/* —— Main —— */
.main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.25rem 1.15rem 1.5rem;
}

.main:has(.landing) {
  display: block;
  padding: 0;
  align-items: stretch;
  justify-content: flex-start;
}


.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  padding: 1rem 1rem 1.4rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.footer .dot {
  opacity: 0.55;
}

/* —— Landing (editorial home) —— */
.landing {
  width: 100%;
  background: transparent;
}



.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  min-height: calc(100svh - 64px);
  width: 100%;
  overflow: hidden;
  padding: clamp(2.5rem, 7vh, 5rem) clamp(1.25rem, 5vw, 4.75rem);
  background: transparent;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-title {
  margin: 0;
  display: flex;
  flex-direction: column;
  font-size: clamp(4.2rem, 12vw, 8.5rem);
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 0.86;
  color: var(--black);
  animation: rise 0.65s var(--ease) both;
}

.hero-title span {
  display: block;
}

.hero-sub {
  margin: 1.6rem 0 0;
  max-width: 24ch;
  color: var(--muted);
  font-size: clamp(1.1rem, 2.1vw, 1.35rem);
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -0.02em;
  animation: rise 0.65s var(--ease) 0.08s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.35rem;
  margin-top: 2.5rem;
  animation: rise 0.65s var(--ease) 0.16s both;
}

.btn-hero {
  width: auto;
  min-width: 11.5rem;
  padding: 1rem 1.5rem;
  font-size: 1rem;
}

.hero-text-link {
  color: var(--black);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  border-bottom: 1px solid var(--link-underline);
  padding-bottom: 0.1rem;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
}

.hero-text-link:hover {
  color: var(--blue);
  border-bottom-color: var(--blue);
  text-decoration: none;
}

.hero-art {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: min(64vh, 560px);
  animation: art-in 0.9s var(--ease) 0.1s both;
}

/* —— Atom 2D — multi-orbit, multi-speed —— */
.atom {
  --atom-size: 500px;
  position: relative;
  width: min(100%, var(--atom-size));
  aspect-ratio: 1;
  margin: 0 auto;
  container-type: inline-size;
  container-name: atom;
}

.atom-core {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 34%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--atom-core-bg);
  border: 1px solid var(--border);
  box-shadow: 0 0 0 10px var(--atom-core-ring);
}

.atom-core-kicker {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
}

.atom-core-title {
  margin: 0.25rem 0 0;
  font-size: clamp(0.88rem, 2vw, 1.15rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--black);
  text-align: center;
  max-width: 11ch;
}

.atom-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--orbit-r);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--orbit-2);
  box-sizing: border-box;
  transform: translate(-50%, -50%);
  animation-name: atom-spin-z;
  animation-duration: var(--orbit-spin);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.atom-orbit-1 {
  --orbit-r: 54%;
  --orbit-spin: 26s;
  z-index: 3;
  border-color: var(--orbit-1);
}

.atom-orbit-2 {
  --orbit-r: 74%;
  --orbit-spin: 38s;
  z-index: 2;
  border-color: var(--orbit-2);
}

.atom-orbit-3 {
  --orbit-r: 94%;
  --orbit-spin: 52s;
  z-index: 1;
  border-color: var(--orbit-3);
}

/* Remplit l’orbite : le label / électron est collé au bord (top), puis tourné. */
.electron,
.atom-app {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(var(--a, 0deg));
  pointer-events: none;
}

.electron::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px var(--electron-ring);
  transform: translate(-50%, -50%);
}

.atom-app-label {
  position: absolute;
  left: 50%;
  top: 0;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--black);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transform: translate(-50%, -50%) rotate(calc(var(--a, 0deg) * -1));
  animation: atom-label-counter var(--orbit-spin) linear infinite;
}

@keyframes atom-spin-z {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes atom-label-counter {
  from {
    transform: translate(-50%, -50%) rotate(calc(var(--a, 0deg) * -1));
  }
  to {
    transform: translate(-50%, -50%) rotate(calc(var(--a, 0deg) * -1 - 360deg));
  }
}

.proof {
  width: 100%;
  margin: 0;
  padding: clamp(4.5rem, 10vh, 7rem) clamp(1.25rem, 5vw, 4.75rem);
  text-align: left;
  background: var(--bg-muted);
  border-top: 1px solid var(--border);
}

.proof-title {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.4rem, 5.5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.98;
  color: var(--black);
}

.proof-sub {
  margin: 1.2rem 0 0;
  max-width: 34ch;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.5;
  font-weight: 500;
}

.proof-line {
  list-style: none;
  width: min(100%, 980px);
  margin: 3.25rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border-strong);
}

.proof-line li {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.6rem 1.35rem 0 0;
  text-align: left;
}

.proof-line li + li {
  border-left: 1px solid var(--border-strong);
  padding-left: 1.35rem;
}

.proof-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

.proof-desc {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--black);
}

.home-cta {
  width: 100%;
  margin: 0;
  padding: clamp(4.5rem, 10vh, 7rem) 1.35rem;
  text-align: center;
  background: var(--band);
  color: var(--band-fg);
}

.home-cta-title {
  margin: 0 0 1.6rem;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--band-fg);
}

.home-cta-btn {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  padding: 1rem 1.35rem;
  background: var(--band-btn);
  color: var(--band-btn-fg);
}

.home-cta-btn:hover {
  background: var(--band-btn-hover);
  color: var(--band-btn-fg);
}

.home-cta-link {
  display: inline-block;
  margin-top: 1.15rem;
  color: var(--band-muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.home-cta-link:hover {
  color: var(--band-fg);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.shell:has(.landing) .footer {
  background: var(--band);
  color: var(--band-muted);
  border-top: 1px solid var(--band-border);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* —— Shared page panels —— */
.page-panel {
  width: min(100%, 560px);
  margin: 0 auto;
  padding: clamp(2rem, 5vh, 3rem) 0;
  animation: rise 0.55s var(--ease) both;
}

.page-panel-center {
  text-align: center;
}

.page-title {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.98;
  color: var(--black);
}

.page-title-sm {
  font-size: clamp(2rem, 5vw, 2.85rem);
}

.page-sub {
  margin: 0.85rem 0 0;
  max-width: 36ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.45;
  font-weight: 500;
}

.page-panel-center .page-sub {
  margin-left: auto;
  margin-right: auto;
}

.page-cta {
  width: auto;
  min-width: 12rem;
  max-width: 280px;
  margin: 1.75rem auto 0;
}

.page-panel .eyebrow {
  margin-bottom: 0.65rem;
}

.page-panel .profile-head {
  margin-top: 2.25rem;
}

.page-panel .profile {
  margin-top: 1.5rem;
}

.page-panel .scopes {
  margin-top: 1.75rem;
}

.page-panel .actions {
  margin-top: 0.5rem;
}

.page-panel .actions .btn {
  margin-top: 1rem;
}

/* —— Auth / cards —— */
.stage {
  width: 100%;
  max-width: 420px;
  animation: rise 0.45s var(--ease) both;
}

.stage-wide {
  max-width: 480px;
}

.card {
  width: 100%;
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.85rem 1.6rem 1.55rem;
  box-shadow: none;
}

.card-center {
  text-align: center;
}

.card-center .logo {
  margin: 0 auto 1rem;
}

.card-center .btn {
  margin-top: 1.1rem;
}

.card-brand {
  text-align: center;
  margin-bottom: 1.35rem;
}

.card-brand .logo {
  margin: 0 auto 1rem;
}

.card-brand-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-align: left;
  margin-bottom: 1.5rem;
}

.card-brand-row .logo {
  margin: 0;
}

.card-brand-row h1 {
  margin: 0;
  font-size: 1.35rem;
}

.eyebrow {
  margin: 0 0 0.15rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
}

.card h1 {
  margin: 0 0 0.35rem;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--black);
}

.card .sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
}

.form {
  display: flex;
  flex-direction: column;
}

.field {
  margin-top: 0.85rem;
}

.field:first-of-type {
  margin-top: 0;
}

label {
  display: block;
  margin: 0 0 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.01em;
}

input[type="email"],
input[type="password"],
input[type="text"],
input[type="tel"] {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--paper);
  color: var(--black);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

input::placeholder {
  color: var(--placeholder);
}

input:hover {
  border-color: var(--border-input-hover);
}

input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-ring);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0;
  padding: 0.85rem 1.15rem;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s var(--ease), transform 0.15s var(--ease);
}

.form .btn,
.actions .btn {
  margin-top: 1.25rem;
}

.btn:hover {
  background: var(--blue-hover);
  color: var(--white);
  text-decoration: none;
}

.btn:active {
  transform: scale(0.985);
}

.btn-secondary {
  background: var(--paper);
  color: var(--black);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  background: var(--btn-secondary-hover);
  color: var(--black);
  border-color: var(--border-input-hover);
}

.btn-black {
  background: var(--ink);
  color: var(--on-ink);
}

.btn-black:hover {
  background: var(--ink-hover);
  color: var(--on-ink);
}

.err {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger);
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
}

.foot {
  margin-top: 1.2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.foot a {
  font-weight: 600;
}

.scopes {
  list-style: none;
  padding: 0;
  margin: 0;
}

.scopes li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.95rem 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  margin-bottom: 0;
  background: transparent;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--black);
}

.scopes li::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-top: 1px;
  flex-shrink: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--white) 0 3px, transparent 4px),
    var(--blue);
}

.actions {
  display: flex;
  gap: 0.65rem;
}

.actions .btn {
  flex: 1;
  width: auto;
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  margin-bottom: 1.2rem;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--on-ink);
  font-weight: 700;
  font-size: 1.2rem;
  border: 0;
  flex-shrink: 0;
  overflow: hidden;
  object-fit: cover;
}

.avatar-img {
  display: block;
  padding: 0;
  background: var(--bg-muted);
}

.avatar-lg {
  width: 96px;
  height: 96px;
  font-size: 2rem;
}

.avatar-edit {
  margin: 0 0 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-strong);
}

.avatar-edit-title {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.avatar-edit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
}

.avatar-edit-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}

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

.avatar-file-btn {
  width: auto;
  margin: 0;
  cursor: pointer;
}

.avatar-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.avatar-upload-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.profile-head .meta h2 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.profile-head .meta p {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.profile {
  margin: 0;
  border-top: 1px solid var(--border-strong);
  border-radius: 0;
  overflow: hidden;
  background: transparent;
}

.profile .row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0.75rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.profile .row:last-child {
  border-bottom: 0;
}

.profile .row span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  align-self: center;
}

.profile .row strong {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--black);
  word-break: break-all;
}

.hint {
  margin: 1rem 0 0;
  padding: 0.85rem 0.95rem;
  border-radius: var(--radius-sm);
  background: var(--blue-soft);
  color: var(--blue-hint);
  font-size: 0.88rem;
  line-height: 1.4;
  border: 1px solid rgba(52, 117, 186, 0.12);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes art-in {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(18px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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


@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: 2.5rem;
  }

  .hero-art {
    order: -1;
    min-height: auto;
    padding: 0.5rem 0 0.25rem;
  }

  .atom {
    --atom-size: 380px;
    width: min(86vw, var(--atom-size));
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-hero {
    width: 100%;
    min-width: 0;
  }

  .proof-line {
    grid-template-columns: 1fr;
  }

  .proof-line li {
    padding: 1.25rem 0 0;
  }

  .proof-line li + li {
    border-left: 0;
    border-top: 1px solid var(--border-strong);
    padding-left: 0;
    margin-top: 1.1rem;
    padding-top: 1.1rem;
  }
}

@media (max-width: 520px) {
  .brand-text {
    font-size: 0.98rem;
  }

  .top {
    padding: 0.7rem 0.9rem;
  }

  .card {
    padding: 1.5rem 1.2rem 1.3rem;
  }

  .profile .row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .nav a:not(.btn-nav) {
    display: none;
  }

  .hero-title {
    font-size: clamp(3.4rem, 16vw, 4.8rem);
  }

  .atom {
    --atom-size: 320px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title,
  .hero-sub,
  .hero-actions,
  .hero-art,
  .atom,
  .atom-orbit,
  .atom-app-label,
  .stage,
  .logo-hero,
  .auth-panel,
  .reveal {
    animation: none !important;
    transition: none;
    opacity: 1;
  }


  .atom-app-label {
    transform: translate(-50%, -50%) rotate(calc(var(--a, 0deg) * -1));
  }

  .btn:active {
    transform: none;
  }
}


/* —— Theme toggle —— */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  margin-right: 0.15rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--paper);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease), transform 0.15s var(--ease);
}

.theme-toggle:hover {
  background: var(--btn-nav-hover);
  border-color: var(--border-strong);
  color: var(--text);
}

.theme-toggle:active {
  transform: scale(0.96);
}

.theme-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--blue-ring);
}

.theme-ico {
  display: none;
  line-height: 0;
}

html[data-theme="light"] .theme-ico-moon,
html:not([data-theme]) .theme-ico-moon {
  display: inline-flex;
}

html[data-theme="dark"] .theme-ico-sun {
  display: inline-flex;
}

.theme-toggle .icon {
  width: 18px;
  height: 18px;
}

.auth-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.auth-top .theme-toggle {
  margin-right: 0;
  flex-shrink: 0;
}

/* —— Immersive auth (login / register) —— */
.auth-body {
  position: relative;
  min-height: 100vh;
  background: var(--bg);
  overflow-x: hidden;
}

.auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 1rem 1.15rem 1.25rem;
}

.auth-home {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  align-self: flex-start;
  color: var(--black);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  padding: 0.35rem 0.2rem;
}

.auth-home:hover {
  color: var(--black);
  text-decoration: none;
  opacity: 0.85;
}

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 0 1rem;
}

.auth-panel {
  width: min(100%, 440px);
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0.5rem 0 0.25rem;
  box-shadow: none;
  backdrop-filter: none;
  animation: rise 0.55s var(--ease) both;
}

.auth-brand {
  text-align: left;
  margin-bottom: 1.5rem;
}

.logo-auth {
  width: 48px;
  height: 48px;
  margin: 0 0 1.15rem;
  border-radius: 0;
  box-shadow: none;
}

.auth-brand h1 {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.02;
  color: var(--black);
}

.auth-sub {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.4;
  font-weight: 500;
  max-width: 28ch;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
  margin-bottom: 1.45rem;
  border-radius: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border-strong);
}

.auth-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 0.5rem;
  border-radius: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.auth-tab:hover {
  color: var(--black);
  text-decoration: none;
}

.auth-tab.is-active {
  background: transparent;
  color: var(--black);
  box-shadow: none;
  border-bottom-color: var(--black);
}

.icon {
  display: block;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  overflow: visible;
  vector-effect: non-scaling-stroke;
}

.auth-tab-ico {
  display: inline-flex;
  color: inherit;
  opacity: 0.85;
}

.auth-tab-ico .icon {
  width: 16px;
  height: 16px;
}

.auth-err {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.err-ico {
  display: inline-flex;
  margin-top: 0.05rem;
  color: var(--danger);
}

.err-ico .icon {
  width: 18px;
  height: 18px;
}

.auth-form .field {
  margin-top: 0.95rem;
}

.auth-form .field:first-of-type {
  margin-top: 0;
}

.input-wrap {
  position: relative;
}

.input-wrap.has-leading input {
  padding-left: 2.7rem;
}

.input-wrap:has(.toggle-pass) input {
  padding-right: 2.85rem;
}

.field-ico {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  color: var(--muted-soft);
  pointer-events: none;
}

.field-ico .icon {
  width: 18px;
  height: 18px;
}

.input-wrap:focus-within .field-ico {
  color: var(--blue);
}

.toggle-pass {
  position: absolute;
  right: 0.3rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  cursor: pointer;
  padding: 0;
}

.toggle-pass:hover {
  background: var(--nav-hover-bg);
  color: var(--black);
}

.toggle-pass .icon {
  width: 18px;
  height: 18px;
}

.field-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.hint-ico {
  display: inline-flex;
  color: var(--blue);
}

.hint-ico .icon {
  width: 15px;
  height: 15px;
}

.auth-submit {
  margin-top: 1.45rem !important;
  min-height: 50px;
  font-size: 1.02rem;
  gap: 0.45rem;
  box-shadow: none;
}

.auth-submit:hover {
  box-shadow: none;
}

.btn-ico {
  display: inline-flex;
}

.btn-ico .icon {
  width: 18px;
  height: 18px;
}

.auth-switch {
  margin: 1.25rem 0 0;
  text-align: left;
  color: var(--muted);
  font-size: 0.95rem;
}

.auth-switch a {
  font-weight: 600;
  color: var(--black);
  border-bottom: 1px solid var(--link-underline);
  text-decoration: none;
}

.auth-switch a:hover {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.auth-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.55rem 1.15rem;
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.auth-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.trust-ico {
  display: inline-flex;
  color: var(--blue);
}

.trust-ico .icon {
  width: 15px;
  height: 15px;
}

.auth-legal {
  margin: 0;
  text-align: center;
  color: var(--muted-soft);
  font-size: 0.75rem;
  line-height: 1.4;
  max-width: 36ch;
  align-self: center;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"],
.auth-form input[type="tel"] {
  min-height: 50px;
  font-size: 1.02rem;
  border-radius: 14px;
  background: var(--paper);
  border-color: var(--border-strong);
}

.auth-form input:focus {
  background: var(--paper);
}

@media (max-width: 480px) {
  .auth-shell {
    padding: 0.75rem 0.9rem 1rem;
  }

  .auth-brand h1 {
    font-size: 2rem;
  }

  .logo-auth {
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  body,
  .top,
  .ui-glow,
  .ui-grid,
  .card,
  .proof,
  .home-cta,
  .footer,
  .atom-core,
  .atom-app-label,
  .auth-body,
  .btn-nav,
  .theme-toggle,
  input[type="email"],
  input[type="password"],
  input[type="text"],
  input[type="tel"] {
    transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  }
}

/* —— Admin OIDC apps —— */
.page-panel-wide {
  width: min(100%, 760px);
}

.admin-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 0.5rem;
}

.admin-head-btn {
  width: auto;
  min-width: 10rem;
  margin: 0;
}

.admin-empty {
  margin: 2rem 0 0;
  color: var(--muted);
  font-weight: 500;
}

.admin-apps {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  border-top: 1px solid var(--border-strong);
}

.admin-app-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}

.admin-app-name {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--black);
  text-decoration: none;
}

.admin-app-name:hover {
  color: var(--blue);
  text-decoration: none;
}

.admin-app-meta {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.admin-app-meta code {
  font-size: 0.84rem;
}

.admin-form textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--paper);
  color: var(--black);
  font: inherit;
  font-size: 0.98rem;
  line-height: 1.4;
  resize: vertical;
  min-height: 6rem;
}

.admin-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-ring);
}

.admin-form input[readonly] {
  opacity: 0.75;
  background: var(--bg-muted);
}

.admin-radio {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.admin-radio-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-weight: 500;
  color: var(--black);
  cursor: pointer;
}

.admin-radio-item input {
  margin-top: 0.2rem;
}

.admin-radio-item strong {
  display: block;
  margin-bottom: 0.15rem;
}

.admin-endpoints {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.admin-ep-list {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.admin-ep-list code {
  color: var(--black);
  font-size: 0.82rem;
  word-break: break-all;
}

.admin-danger {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.admin-danger .btn {
  width: auto;
  margin: 0;
}

.admin-btn-danger {
  border-color: var(--danger-border);
  color: var(--danger);
}

.admin-btn-danger:hover {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: var(--danger-border);
}

.admin-creds {
  margin: 1.75rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.admin-cred {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-muted);
}

.admin-cred span {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.admin-cred code {
  font-size: 0.95rem;
  color: var(--black);
  word-break: break-all;
}

.admin-cred-secret {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.admin-cred-uri {
  display: block;
  margin-top: 0.2rem;
}

@media (max-width: 520px) {
  .admin-app-row {
    flex-direction: column;
    align-items: stretch;
  }
}

/* —— Admin console (/admin_app) —— */
.main:has(.admin-layout) {
  display: block;
  padding: 1.5rem 1.15rem 2.5rem;
  align-items: stretch;
  justify-content: flex-start;
}

.admin-layout {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.75rem 2rem;
  align-items: start;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 0;
  position: sticky;
  top: 5rem;
}

.admin-nav-kicker {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.admin-nav a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.admin-nav a:hover {
  color: var(--black);
  background: var(--nav-hover-bg);
  text-decoration: none;
}

.admin-nav a.is-active {
  color: var(--black);
  background: var(--paper-soft);
}

.admin-content {
  min-width: 0;
}

.admin-content > .page-panel,
.admin-content > .page-panel-wide {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.admin-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1.75rem 0 1.5rem;
}

.admin-kpi {
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.admin-kpi-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.admin-kpi-value {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--black);
}

.admin-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-card {
  padding: 1.15rem 1.2rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  margin-bottom: 1rem;
}

.admin-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.admin-card-title {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--black);
}

.admin-card-head .admin-card-title {
  margin: 0;
}

.admin-bars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.admin-bars li {
  display: grid;
  grid-template-columns: 4.5rem 1fr 2rem;
  gap: 0.55rem;
  align-items: center;
}

.admin-bar-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-bar-track {
  height: 8px;
  border-radius: 999px;
  background: var(--bg-muted);
  overflow: hidden;
}

.admin-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
  min-width: 2px;
}

.admin-bar-count {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--black);
  text-align: right;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.admin-table th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.5rem 0.65rem 0.65rem 0;
  border-bottom: 1px solid var(--border-strong);
}

.admin-table td {
  padding: 0.85rem 0.65rem 0.85rem 0;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--black);
}

.admin-table a {
  font-weight: 600;
  color: var(--black);
  text-decoration: none;
}

.admin-table a:hover {
  color: var(--blue);
}

.admin-badge {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--blue-soft);
  color: var(--blue);
  vertical-align: middle;
}

.admin-status {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.admin-status.is-on {
  color: #2e7d32;
}

html[data-theme="dark"] .admin-status.is-on {
  color: #a5d6a7;
}

.admin-muted {
  color: var(--muted);
  font-size: 0.88rem;
}

.admin-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .admin-kpis {
    grid-template-columns: 1fr 1fr;
  }

  .admin-grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .admin-kpis {
    grid-template-columns: 1fr;
  }
}

/* —— Profile / register extras —— */
.auth-section-label {
  margin: 1.35rem 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.auth-section-label:first-of-type {
  margin-top: 0.25rem;
}

.auth-section-note {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  color: var(--muted-soft);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.auth-select,
.admin-form select,
select.auth-select {
  width: 100%;
  min-height: 50px;
  padding: 0.8rem 0.95rem;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: var(--paper);
  color: var(--black);
  font: inherit;
  font-size: 1.02rem;
}

.auth-select:focus,
.admin-form select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-ring);
}

.profile-complete {
  margin: 1.25rem 0 0.5rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.profile-complete-track {
  margin-top: 0.45rem;
  height: 6px;
  border-radius: 999px;
  background: var(--bg-muted);
  overflow: hidden;
}

.profile-complete-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.page-panel .page-cta + .page-cta {
  margin-top: 0.75rem;
}

@media (max-width: 520px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

/* —— Forgot / reset password —— */
.field-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.field-label-row label {
  margin-bottom: 0;
}

.field-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}

.field-link:hover {
  color: var(--blue);
}

.auth-hint {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: color-mix(in srgb, var(--blue) 10%, transparent);
  color: var(--black);
  font-size: 0.95rem;
  line-height: 1.45;
}

.dev-reset-link {
  margin: 0 0 1.25rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px dashed var(--border-strong);
  background: var(--bg-muted);
  font-size: 0.88rem;
  word-break: break-all;
}

.dev-reset-link p {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-weight: 600;
}

.dev-reset-link a {
  color: var(--blue);
}

/* —— Connected sessions / devices —— */
.sessions-block {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-strong);
}

.sessions-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.sessions-title {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--black);
}

.sessions-title-ico {
  display: inline-flex;
  color: var(--muted);
}

.sessions-title-ico .icon {
  width: 1.15rem;
  height: 1.15rem;
}

.sessions-sub {
  margin: 0.4rem 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.sessions-revoke-all {
  width: auto;
  margin: 0;
  padding: 0.55rem 0.95rem;
  font-size: 0.88rem;
}

.sessions-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.session-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--border);
}

.session-row:first-child {
  border-top: 1px solid var(--border);
}

.session-row.is-current {
  background: color-mix(in srgb, var(--blue) 6%, transparent);
  margin: 0 -0.75rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  border-radius: 12px;
  border-bottom-color: transparent;
}

.session-device {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-weight: 650;
  color: var(--black);
  letter-spacing: -0.02em;
}

.session-badge {
  display: inline-flex;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--blue) 16%, transparent);
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.session-meta {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.btn-session-revoke {
  flex-shrink: 0;
  margin: 0;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-session-revoke:hover {
  color: var(--black);
  border-color: var(--black);
}

.sessions-empty {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

@media (max-width: 520px) {
  .session-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-session-revoke {
    align-self: flex-start;
  }
}
