/* ════════════════════════════════════════════════════════════════════════════
   Sentinel Cloud — feuille de style

   Même direction artistique que Sentinel : fond #0b0d0f, texte #f2f4f5,
   cyan #17cfef comme seule couleur d'appel. Les tons vert / orange / rouge
   sont réservés aux états des machines (en ligne, transition, arrêt, alerte)
   et ne servent à rien d'autre.
   ════════════════════════════════════════════════════════════════════════════ */

:root {
  --ink: #0b0d0f;
  --paper: #f2f4f5;
  --accent: #17cfef;

  --surface-0: #0b0d0f;
  --surface-1: #101317;
  --surface-2: #151920;
  --surface-3: #1c222a;
  --surface-hover: #222831;

  --line: #232a33;
  --line-soft: #1a2027;
  --line-strong: #333c47;

  --text: #f2f4f5;
  --text-muted: #9aa4b0;
  --text-dim: #6b7683;

  --accent-dim: #0f9cb8;
  --accent-glow: rgba(23, 207, 239, 0.14);
  --accent-line: rgba(23, 207, 239, 0.35);

  --tone-critical: #ff5f56;
  --tone-critical-bg: rgba(255, 95, 86, 0.11);
  --tone-critical-line: rgba(255, 95, 86, 0.32);
  --tone-warning: #ffa94d;
  --tone-warning-bg: rgba(255, 169, 77, 0.11);
  --tone-warning-line: rgba(255, 169, 77, 0.3);
  --tone-ok: #51cf87;
  --tone-ok-bg: rgba(81, 207, 135, 0.1);
  --tone-ok-line: rgba(81, 207, 135, 0.28);
  --tone-unknown: #7d8896;
  --tone-unknown-bg: rgba(125, 136, 150, 0.11);
  --tone-unknown-line: rgba(125, 136, 150, 0.28);

  --font-sans: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'Cascadia Mono', 'JetBrains Mono', Menlo, Consolas, 'Liberation Mono', monospace;

  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --gutter: 24px;
  --page-max: 1240px;

  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -12px rgba(0, 0, 0, 0.6);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.4), 0 16px 48px -18px rgba(0, 0, 0, 0.75);

  color-scheme: dark;
}

/* ── Socle ────────────────────────────────────────────────────────────────── */

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--surface-0);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  letter-spacing: -0.02em;
  line-height: 1.2;
  font-weight: 640;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  color: #4fdcf5;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.mono {
  font-family: var(--font-mono);
}
.muted {
  color: var(--text-muted);
}
.dim {
  color: var(--text-dim);
}

.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }
}

[hidden] {
  display: none !important;
}

/* ── En-tête ──────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 13, 15, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 640;
  font-size: 16px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.brand:hover {
  color: var(--text);
}
.brand img {
  width: 26px;
  height: 26px;
  display: block;
}
.brand__sub {
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight: 500;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.site-nav a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  transition: color 0.14s ease, background 0.14s ease;
}
.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--text);
  background: var(--surface-2);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--text-muted);
}
.user-chip__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-glow);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .site-header__inner {
    gap: 12px;
  }
  .brand__sub,
  .user-chip__name {
    display: none;
  }
}
@media (max-width: 520px) {
  .brand__text,
  .user-chip {
    display: none;
  }
  .site-header__inner {
    gap: 8px;
  }
  .site-nav a {
    padding: 7px 7px;
    font-size: 13px;
  }
  .header-actions .btn {
    padding: 6px 9px;
    font-size: 12px;
  }
}

/* ── Boutons ──────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 560;
  line-height: 1;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  color: var(--text);
  background: transparent;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease, transform 0.1s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn--primary {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}
.btn--primary:hover:not(:disabled) {
  background: #4fdcf5;
  border-color: #4fdcf5;
}
.btn--ghost {
  border-color: var(--line-strong);
}
.btn--ghost:hover:not(:disabled) {
  background: var(--surface-2);
  border-color: var(--accent-line);
}
.btn--quiet {
  background: var(--surface-2);
  color: var(--text-muted);
  border-color: var(--line);
}
.btn--quiet:hover:not(:disabled) {
  background: var(--surface-3);
  color: var(--text);
}
.btn--danger {
  color: var(--tone-critical);
  border-color: var(--tone-critical-line);
}
.btn--danger:hover:not(:disabled) {
  background: var(--tone-critical-bg);
}
.btn--sm {
  font-size: 13px;
  padding: 7px 12px;
}
.btn--lg {
  font-size: 15px;
  padding: 13px 24px;
}
.btn--block {
  width: 100%;
}
.btn--icon {
  padding: 7px;
}

.btn.is-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.btn.is-loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-color: var(--ink) var(--ink) transparent transparent;
  animation: spin 0.7s linear infinite;
}
.btn--ghost.is-loading::after,
.btn--quiet.is-loading::after {
  border-color: var(--text) var(--text) transparent transparent;
}

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

/* ── Cartes, badges ───────────────────────────────────────────────────────── */

.card {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}
.card__head h2 {
  font-size: 14px;
  font-weight: 600;
}
.card__body {
  padding: 20px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
  border: 1px solid var(--tone-unknown-line);
  background: var(--tone-unknown-bg);
  color: var(--tone-unknown);
  white-space: nowrap;
}
.badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.badge--running {
  color: var(--tone-ok);
  background: var(--tone-ok-bg);
  border-color: var(--tone-ok-line);
}
.badge--running .dot {
  box-shadow: 0 0 0 0 currentColor;
  animation: pulse 2s ease-out infinite;
}
.badge--starting,
.badge--stopping,
.badge--installing {
  color: var(--tone-warning);
  background: var(--tone-warning-bg);
  border-color: var(--tone-warning-line);
}
.badge--suspended,
.badge--error {
  color: var(--tone-critical);
  background: var(--tone-critical-bg);
  border-color: var(--tone-critical-line);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(81, 207, 135, 0.55);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(81, 207, 135, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(81, 207, 135, 0);
  }
}

/* ── Formulaires ──────────────────────────────────────────────────────────── */

.field {
  display: block;
  margin-bottom: 16px;
}
.field__label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-weight: 560;
  margin-bottom: 6px;
}

.field__link {
  font-weight: 400;
  font-size: 12.5px;
}

input[type='text'],
input[type='email'],
input[type='password'],
input[type='search'] {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--surface-0);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  transition: border-color 0.14s ease, background 0.14s ease, box-shadow 0.14s ease;
}
input::placeholder {
  color: var(--text-dim);
}
input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface-1);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.alert {
  border: 1px solid var(--tone-critical-line);
  border-left: 3px solid var(--tone-critical);
  background: var(--tone-critical-bg);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13.5px;
  margin-bottom: 16px;
}
.alert--ok {
  border-color: var(--tone-ok-line);
  border-left-color: var(--tone-ok);
  background: var(--tone-ok-bg);
}

/* ── Connexion ────────────────────────────────────────────────────────────── */

.auth {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 48px var(--gutter);
  position: relative;
  overflow: hidden;
}
.auth::before {
  /* Halo cyan et trame fine, comme la bannière Sentinel. */
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 380px at 50% 20%, rgba(23, 207, 239, 0.13), transparent 70%),
    linear-gradient(var(--line-soft) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px) 0 0 / 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 35%, #000 20%, transparent 75%);
  pointer-events: none;
}

.auth__card {
  position: relative;
  width: 100%;
  max-width: 410px;
  background: rgba(16, 19, 23, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 32px 28px;
  box-shadow: var(--shadow-lift);
}
@media (max-width: 480px) {
  .auth__card {
    padding: 28px 20px 22px;
  }
}

.auth__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}
.auth__logo img {
  width: 40px;
  height: 40px;
}
.auth__logo strong {
  display: block;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.auth__logo span {
  font-size: 12.5px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.auth h1 {
  font-size: 22px;
  margin-bottom: 6px;
}
.auth__lead {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}
.auth__foot {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
}
.auth__switch {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--accent);
  cursor: pointer;
}
.captcha-note {
  font-size: 11.5px;
  color: var(--text-dim);
  margin-top: 14px;
  text-align: center;
}
.captcha-note a {
  color: var(--text-muted);
}
.grecaptcha-badge {
  visibility: hidden;
}

.code-input {
  font-family: var(--font-mono) !important;
  font-size: 22px !important;
  letter-spacing: 0.4em;
  text-align: center;
}

/* ── Pages ────────────────────────────────────────────────────────────────── */

main {
  flex: 1;
  padding: 36px 0 64px;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.page-head h1 {
  font-size: 26px;
}
.page-head p {
  color: var(--text-muted);
  margin-top: 6px;
  font-size: 14px;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.crumbs {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.crumbs a {
  color: var(--text-muted);
}
.crumbs a:hover {
  color: var(--text);
}

/* ── Liste des machines ───────────────────────────────────────────────────── */

.machines {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 18px;
}
@media (max-width: 400px) {
  .machines {
    grid-template-columns: 1fr;
  }
}

.machine-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}
.machine-card:hover {
  color: var(--text);
  border-color: var(--accent-line);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft), 0 0 0 1px var(--accent-glow);
}
.machine-card__top {
  padding: 18px 20px 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.machine-card__name {
  font-size: 16px;
  font-weight: 620;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.machine-card__desc {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.machine-card__addr {
  margin: 0 20px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--surface-0);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 13px;
}
.machine-card__addr .label {
  font-family: var(--font-sans);
  font-size: 11.5px;
  color: var(--text-dim);
}
.machine-card__meters {
  padding: 16px 20px 18px;
  display: grid;
  gap: 11px;
}
.machine-card__foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 20px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: var(--text-dim);
}
.machine-card__open {
  color: var(--accent);
  font-weight: 560;
}

.meter__row {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  margin-bottom: 5px;
}
.meter__row span:first-child {
  color: var(--text-muted);
}
.meter__row span:last-child {
  font-family: var(--font-mono);
  color: var(--text);
}
.meter__track {
  height: 5px;
  background: var(--surface-3);
  border-radius: 999px;
  overflow: hidden;
}
.meter__fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.5s ease;
}
.meter__fill.is-high {
  background: var(--tone-warning);
}
.meter__fill.is-full {
  background: var(--tone-critical);
}

.empty {
  text-align: center;
  padding: 64px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--text-muted);
}
.empty h2 {
  font-size: 17px;
  color: var(--text);
  margin-bottom: 8px;
}

.skeleton {
  height: 250px;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: linear-gradient(100deg, var(--surface-1) 40%, var(--surface-2) 50%, var(--surface-1) 60%) 0 0 / 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

/* ── Page machine ─────────────────────────────────────────────────────────── */

.machine-title {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.machine-title h1 {
  font-size: 26px;
}

.power {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.machine-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}
@media (max-width: 1000px) {
  .machine-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.side {
  display: grid;
  gap: 18px;
}

.console {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.console__screen {
  height: 480px;
  padding: 12px 6px 6px 14px;
  background: #07090b;
}
@media (max-width: 640px) {
  .console__screen {
    height: 360px;
  }
}
.console__screen .xterm-viewport {
  background: transparent !important;
}
.console__state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}
.console__state::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tone-unknown);
}
.console__state[data-state='live']::before {
  background: var(--tone-ok);
}
.console__state[data-state='connecting']::before {
  background: var(--tone-warning);
}
.console__input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: var(--surface-1);
}
.console__input span {
  font-family: var(--font-mono);
  color: var(--accent);
}
.console__input input {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 6px 0 !important;
  font-family: var(--font-mono) !important;
  font-size: 13px !important;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
}
.stat {
  background: var(--surface-1);
  padding: 14px 16px;
  min-width: 0;
}
.stat--wide {
  grid-column: 1 / -1;
}
.stat__label {
  font-size: 12px;
  color: var(--text-muted);
}
.stat__value {
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 560;
  letter-spacing: -0.02em;
  margin-top: 2px;
}
.stat__sub {
  font-size: 11.5px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.spark {
  position: relative;
  margin-top: 10px;
  height: 54px;
}
.spark svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.spark__line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.spark__area {
  fill: url(#spark-fill);
}
.spark__grid {
  stroke: var(--line-soft);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.spark__cross {
  stroke: var(--text-dim);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.spark__dot {
  position: absolute;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--surface-1);
  pointer-events: none;
}
.spark__tip {
  position: absolute;
  top: -34px;
  transform: translateX(-50%);
  background: var(--surface-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 3px 8px;
  font-size: 11.5px;
  font-family: var(--font-mono);
  color: var(--text);
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
}

.kv {
  display: grid;
  gap: 12px;
}
.kv__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.kv__key {
  font-size: 12.5px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.kv__val {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  min-width: 0;
}
.kv__val code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: none;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.14s ease, background 0.14s ease;
}
.copy:hover {
  color: var(--text);
  background: var(--surface-3);
}
.copy.is-done {
  color: var(--tone-ok);
}
.copy svg {
  width: 14px;
  height: 14px;
}

.specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.spec {
  text-align: center;
  padding: 12px 6px;
  border-radius: var(--radius-sm);
  background: var(--surface-0);
  border: 1px solid var(--line-soft);
}
.spec strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 15px;
}
.spec span {
  font-size: 11.5px;
  color: var(--text-dim);
}

/* ── Compte ───────────────────────────────────────────────────────────────── */

.account-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
@media (max-width: 860px) {
  .account-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.profile {
  text-align: center;
  padding: 28px 20px;
}
.profile .user-chip__avatar {
  width: 64px;
  height: 64px;
  font-size: 22px;
  margin: 0 auto 14px;
}
.profile h2 {
  font-size: 18px;
}
.profile p {
  color: var(--text-muted);
  font-size: 13.5px;
  margin-top: 4px;
  word-break: break-all;
}
.form-narrow {
  max-width: 420px;
}

/* ── Notifications ────────────────────────────────────────────────────────── */

.toasts {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: grid;
  gap: 10px;
  z-index: 100;
  max-width: calc(100vw - 40px);
}
.toast {
  background: var(--surface-3);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 11px 16px;
  font-size: 13.5px;
  box-shadow: var(--shadow-lift);
  animation: toast-in 0.2s ease-out;
}
.toast--error {
  border-left-color: var(--tone-critical);
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 20px 0;
  font-size: 12.5px;
  color: var(--text-dim);
}

.badge--accent {
  color: var(--accent);
  background: var(--accent-glow);
  border-color: var(--accent-line);
}
