/* ============================================================================
   Christian Ego CI v2 - component styles
   Token values live in tokens.json (compiled to tokens.css as --ce-*).
   This sheet only references them. Theme: <html data-theme="light|dark">.
   ========================================================================== */
/* Google Fonts @import removed for c-ego.net: fonts are self-hosted via /assets/fonts/fonts.css (no request to Google). */

/* ---- Derived variables (not tokens) ------------------------------------- */
:root {
  --ce-font-display: var(--font-display);
  --ce-font-sans: var(--font-sans);
  --ce-font-mono: var(--font-mono);
  --ce-font-wordmark: var(--font-wordmark);
  --ce-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ce-plexus-op: var(--ce-plexus-op-light);
}
[data-theme="dark"] { --ce-plexus-op: var(--ce-plexus-op-dark); }

/* ============================================================================
   BASE
   ========================================================================== */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--ce-font-sans);
  color: var(--ce-text);
  background: var(--ce-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5 { font-family: var(--ce-font-display); font-weight: 400; letter-spacing: -0.005em; margin: 0; color: var(--ce-text); }
p { margin: 0; }
.ce-mono { font-family: var(--ce-font-mono); }
a { color: var(--ce-primary-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: var(--ce-primary); color: var(--ce-on-primary); }

/* Full-bleed page background: gradient + plexus mount */
.ce-bg {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background: radial-gradient(130% 120% at 50% 36%,
              var(--ce-bg-grad-1) 0%, var(--ce-bg-grad-2) 52%, var(--ce-bg-grad-3) 100%);
}
.ce-bg svg, [data-ce-plexus] > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
[data-ce-plexus] { position: relative; overflow: hidden; }
[data-ce-mark] { display: inline-block; }
[data-ce-icon] { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 18px; height: 18px; }
[data-ce-icon] svg { width: 100%; height: 100%; display: block; }
.ce-btn [data-ce-icon] { width: 16px; height: 16px; }
.ce-nav-item [data-ce-icon] { width: 19px; height: 19px; opacity: .85; }

/* Kicker / eyebrow (NEW v2 as a class; style existed as .sg-h) */
.ce-kicker {
  font-family: var(--ce-font-mono); font-size: 11.5px; font-weight: 500; line-height: 1.4;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ce-primary-ink);
}

/* Wordmark (logo, unchanged from v1.0) */
.ce-wordmark { font-family: var(--ce-font-wordmark); font-weight: 700; letter-spacing: 0.01em; color: var(--ce-text); line-height: 1; white-space: nowrap; }
.ce-wordmark .ego { color: var(--ce-primary-ink); }
.ce-tagline { font-family: var(--ce-font-wordmark); font-weight: 400; color: var(--ce-text-3); letter-spacing: 0.06em; }
.ce-lockup { display: inline-flex; align-items: center; gap: 12px; }

/* ============================================================================
   DARK SCOPE - any element can switch to the dark palette (NEW v2)
   ========================================================================== */
.ce-dark {
  --ce-bg: var(--ce-band-bg);
  --ce-surface: var(--ce-band-surface);
  --ce-surface-2: var(--ce-band-surface-2);
  --ce-surface-3: var(--ce-band-surface-2);
  --ce-border: var(--ce-band-border);
  --ce-border-2: var(--ce-band-border);
  --ce-text: var(--ce-band-text);
  --ce-text-2: var(--ce-band-text-2);
  --ce-text-3: var(--ce-band-text-2);
  --ce-primary: var(--ce-brand-blue);
  --ce-primary-hover: var(--ce-brand-blue-bright);
  --ce-primary-soft: var(--ce-band-primary-soft);
  --ce-primary-ink: var(--ce-brand-blue-bright);
  --ce-on-primary: var(--ce-band-on-primary);
  --ce-mark: var(--ce-brand-blue-bright);
  --ce-plexus-node: var(--ce-band-plexus-node);
  --ce-plexus-line: var(--ce-brand-blue-bright);
  --ce-plexus-glow: var(--ce-brand-blue);
  --ce-plexus-op: var(--ce-plexus-op-dark);
  color: var(--ce-text);
  background: radial-gradient(130% 120% at 50% 36%,
              var(--ce-band-grad-1) 0%, var(--ce-band-bg) 52%, var(--ce-band-grad-3) 100%);
}

/* ============================================================================
   PAGE RHYTHM (NEW v2)
   ========================================================================== */
.ce-container { width: 100%; max-width: var(--ce-container); margin-inline: auto; padding-inline: var(--ce-space-8); }
.ce-section { position: relative; padding-block: var(--ce-section-m); }
.ce-section--s { padding-block: var(--ce-section-s); }
.ce-section--l { padding-block: var(--ce-section-l); }
.ce-section--tint { background: var(--ce-bg); }
.ce-section--white { background: var(--ce-surface); }
.ce-hero + .ce-section, .ce-hero + .ce-band { padding-top: calc(var(--ce-section-m) + var(--ce-overlap)); }
.ce-section-head { max-width: 640px; margin-bottom: 40px; }
.ce-section-head h2 { font-size: 32px; line-height: 1.15; margin-top: 10px; }
.ce-section-head p { margin-top: 12px; color: var(--ce-text-2); font-size: 15px; line-height: 1.6; }

/* Dark band: own surface, plexus behind content, optional slanted edges */
.ce-band { position: relative; overflow: hidden; padding-block: var(--ce-section-l); isolation: isolate; }
.ce-band > [data-ce-plexus] { position: absolute; inset: 0; z-index: -1; }
.ce-band--slant {
  clip-path: polygon(0 var(--ce-slant), 100% 0, 100% calc(100% - var(--ce-slant)), 0 100%);
  margin-block: calc(var(--ce-slant) * -1);
  padding-block: calc(var(--ce-section-l) + var(--ce-slant));
  z-index: 1;
}
.ce-band--slant-top { clip-path: polygon(0 var(--ce-slant), 100% 0, 100% 100%, 0 100%); margin-top: calc(var(--ce-slant) * -1); padding-top: calc(var(--ce-section-l) + var(--ce-slant)); z-index: 1; }

/* ============================================================================
   ASYMMETRIC HERO (NEW v2)
   Two identical content layers: the base layer in light colours, a copy
   (aria-hidden) clipped to the dark diagonal in band colours. Text that runs
   over the cut changes colour exactly at the edge.
   ========================================================================== */
.ce-hero { position: relative; z-index: 2; background: var(--ce-bg); min-height: 640px; }
.ce-hero__art, .ce-hero__clip {
  position: absolute; inset: 0;
  clip-path: polygon(var(--ce-hero-cut-top) 0, 100% 0, 100% 100%, var(--ce-hero-cut-bottom) 100%);
}
.ce-hero__art > [data-ce-plexus] { position: absolute; inset: 0; }
.ce-hero__clip { pointer-events: none; background: transparent; }
.ce-hero__layer { position: relative; padding-block: 120px 140px; }
.ce-hero > .ce-hero__layer { clip-path: polygon(0 0, var(--ce-hero-cut-top) 0, var(--ce-hero-cut-bottom) 100%, 0 100%); }
.ce-hero__clip .ce-hero__layer { position: absolute; inset: 0; }
.ce-hero__text { max-width: 760px; }
.ce-hero__title { font-family: var(--ce-font-display); font-size: 60px; line-height: 1.04; letter-spacing: -0.01em; margin-top: 18px; }
.ce-hero__lead { font-size: 18px; line-height: 1.55; color: var(--ce-text-2); margin-top: 22px; max-width: 520px; }
.ce-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

/* Floating figure card: crosses the hero's lower edge */
.ce-float {
  position: absolute; z-index: 3;
  right: max(var(--ce-space-8), calc((100% - var(--ce-container)) / 2 + var(--ce-space-8)));
  bottom: calc(var(--ce-overlap) * -1);
  width: 260px; padding: 22px 24px;
  background: var(--ce-surface); color: var(--ce-text);
  border: 1px solid var(--ce-border); border-radius: var(--ce-r-lg);
  box-shadow: var(--ce-shadow-lg);
}
.ce-float .v { font-family: var(--ce-font-mono); font-weight: 500; font-size: 34px; line-height: 1.05; letter-spacing: -0.02em; color: var(--ce-primary-ink); }
.ce-float .k { font-size: 13px; line-height: 1.45; color: var(--ce-text-2); margin-top: 8px; }

@media (max-width: 760px) {
  .ce-container { padding-inline: var(--ce-space-4); }
  .ce-hero { min-height: 0; }
  .ce-hero__art, .ce-hero__clip { clip-path: polygon(0 70%, 100% 58%, 100% 100%, 0 100%); }
  .ce-hero > .ce-hero__layer { clip-path: polygon(0 0, 100% 0, 100% 58%, 0 70%); }
  .ce-hero__layer { padding-block: 72px 260px; }
  .ce-hero__title { font-size: 38px; line-height: 1.08; }
  .ce-hero__lead { font-size: 16px; }
  .ce-float { right: var(--ce-space-4); left: var(--ce-space-4); width: auto; }
  .ce-section { padding-block: var(--ce-section-s); }
  .ce-hero + .ce-section, .ce-hero + .ce-band { padding-top: calc(var(--ce-section-s) + var(--ce-overlap)); }
  .ce-band, .ce-section--l { padding-block: 80px; }
  .ce-band--slant { --ce-slant: 32px; padding-block: calc(80px + var(--ce-slant)); }
  .ce-section-head h2 { font-size: 28px; }
}

/* v2.1: only the headline may cross the cut. Lead and actions stay on the
   light side (capped at the bottom x of the cut); on mobile the dark area sits
   fully below the content. --ce-hero-cut-bottom-n mirrors the token unitless. */
.ce-hero {
  --ce-hero-cut-bottom-n: 44;
  --ce-hero-edge: max(var(--ce-space-8), calc((100vw - var(--ce-container)) / 2 + var(--ce-space-8)));
}
.ce-hero .ce-hero__lead,
.ce-hero .ce-hero__actions { max-width: min(540px, calc(var(--ce-hero-cut-bottom-n) * 1vw - var(--ce-hero-edge) - 40px)); }
@media (max-width: 1200px) and (min-width: 761px) {
  .ce-hero { --ce-hero-cut-top: 62%; --ce-hero-cut-bottom: 50%; --ce-hero-cut-bottom-n: 50; }
}
@media (max-width: 760px) {
  .ce-hero .ce-hero__lead, .ce-hero .ce-hero__actions { max-width: none; }
  .ce-hero__layer { padding-block: 64px 250px; }
  .ce-hero__art, .ce-hero__clip { clip-path: polygon(0 calc(100% - 150px), 100% calc(100% - 210px), 100% 100%, 0 100%); }
  .ce-hero > .ce-hero__layer { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 210px), 0 calc(100% - 150px)); }
}

/* ============================================================================
   EDITORIAL GRID (NEW v2): one tall lead card, stacked satellites
   ========================================================================== */
.ce-editorial { display: grid; grid-template-columns: 1.35fr 1fr; gap: var(--ce-gap); }
.ce-editorial__lead { grid-row: span 2; position: relative; overflow: hidden; isolation: isolate; border-radius: var(--ce-r-lg); padding: 32px; min-height: 380px; display: flex; flex-direction: column; border: 1px solid var(--ce-band-border); }
.ce-editorial__lead > [data-ce-plexus] { position: absolute; inset: 0; z-index: -1; }
.ce-editorial__lead .v { margin-top: auto; font-family: var(--ce-font-mono); font-weight: 500; font-size: 56px; line-height: 1; letter-spacing: -0.03em; color: var(--ce-primary-ink); }
.ce-editorial__item { background: var(--ce-surface-2); border: 1px solid var(--ce-border); border-radius: var(--ce-r-lg); padding: 24px; }
.ce-editorial__item.is-soft { background: var(--ce-primary-soft); border-color: transparent; }
.ce-editorial h3 { font-size: 22px; line-height: 1.25; margin-top: 10px; }
.ce-editorial p { font-size: 13.5px; line-height: 1.5; color: var(--ce-text-2); margin-top: 8px; }
.ce-editorial__item .v { font-family: var(--ce-font-mono); font-weight: 500; font-size: 28px; color: var(--ce-primary-ink); margin-top: 16px; letter-spacing: -0.02em; }
@media (max-width: 760px) { .ce-editorial { grid-template-columns: 1fr; } .ce-editorial__lead { min-height: 300px; } }

/* ============================================================================
   METHOD STEPS (NEW v2): staggered staircase, hairline connector
   ========================================================================== */
.ce-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--ce-gap); position: relative; counter-reset: ce-step; }
.ce-step { position: relative; padding: 24px 24px 28px; border-top: 1px solid var(--ce-border-2); }
.ce-step:nth-child(2) { margin-top: 48px; }
.ce-step:nth-child(3) { margin-top: 96px; }
.ce-step::before {
  counter-increment: ce-step; content: "0" counter(ce-step);
  display: block; font-family: var(--ce-font-mono); font-weight: 500; font-size: 34px; letter-spacing: -0.02em; color: var(--ce-primary-ink);
}
.ce-step::after { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 99px; background: var(--ce-brand-blue); }
.ce-step h3 { font-size: 22px; line-height: 1.25; margin-top: 14px; }
.ce-step p { font-size: 13.5px; line-height: 1.5; color: var(--ce-text-2); margin-top: 8px; }
@media (max-width: 760px) { .ce-steps { grid-template-columns: 1fr; } .ce-step:nth-child(n) { margin-top: 0; margin-left: 0; } .ce-step:nth-child(2) { margin-left: 24px; } .ce-step:nth-child(3) { margin-left: 48px; } }

/* ============================================================================
   COMPONENTS (from CI v1.0, values unchanged)
   ========================================================================== */
.ce-card { background: var(--ce-surface); border: 1px solid var(--ce-border); border-radius: var(--ce-r-lg); box-shadow: var(--ce-shadow); }
.ce-card-flush { background: var(--ce-surface); border: 1px solid var(--ce-border); border-radius: var(--ce-r-lg); }
.ce-panel { background: var(--ce-surface-2); border: 1px solid var(--ce-border); border-radius: var(--ce-r); }
.ce-card-nested {
  background: color-mix(in srgb, var(--ce-surface) 98.5%, var(--ce-text) 1.5%);
  border: 1px solid var(--ce-border);
  border-left: 3px solid color-mix(in srgb, var(--ce-primary) 70%, var(--ce-border));
  border-radius: var(--ce-r);
  transition: border-color .18s var(--ce-ease), box-shadow .22s var(--ce-ease), transform .22s var(--ce-ease);
}
.ce-card-nested:hover, .ce-card-nested.is-focus, .ce-card-nested.is-feature {
  border-color: var(--ce-primary); border-left-color: var(--ce-primary);
  box-shadow: 0 0 0 1px var(--ce-primary), 0 10px 28px -10px color-mix(in srgb, var(--ce-primary) 45%, transparent);
  transform: translateY(-2px);
}
.ce-hr { height: 1px; background: var(--ce-border); border: none; margin: 0; }

/* Buttons */
.ce-btn {
  --_bg: var(--ce-surface); --_fg: var(--ce-text); --_bd: var(--ce-border-2);
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ce-font-sans); font-weight: 600; font-size: 14px; line-height: 1;
  padding: 10px 16px; border-radius: var(--ce-r-sm);
  background: var(--_bg); color: var(--_fg); border: 1px solid var(--_bd);
  cursor: pointer; white-space: nowrap; user-select: none; text-decoration: none;
  transition: background-color .18s var(--ce-ease), border-color .18s var(--ce-ease), transform .12s var(--ce-ease), box-shadow .18s var(--ce-ease);
}
.ce-btn:hover { transform: translateY(-1px); text-decoration: none; }
.ce-btn:active { transform: translateY(0); }
.ce-btn:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--ce-ring); }
.ce-btn svg { width: 16px; height: 16px; }
.ce-btn-primary { --_bg: var(--ce-primary); --_fg: var(--ce-on-primary); --_bd: var(--ce-primary); }
.ce-btn-primary:hover { --_bg: var(--ce-primary-hover); --_bd: var(--ce-primary-hover); }
.ce-btn-ghost { --_bg: transparent; --_fg: var(--ce-text-2); --_bd: transparent; }
.ce-btn-ghost:hover { --_bg: var(--ce-surface-3); --_fg: var(--ce-text); }
.ce-btn-soft { --_bg: var(--ce-primary-soft); --_fg: var(--ce-primary-ink); --_bd: transparent; }
.ce-btn-icon { padding: 9px; }
.ce-btn-sm { padding: 7px 12px; font-size: 13px; }

/* Badges */
.ce-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--ce-font-mono); font-weight: 500; font-size: 12px; letter-spacing: 0.02em;
  padding: 3px 9px; border-radius: var(--ce-r-pill); white-space: nowrap;
  background: var(--ce-surface-3); color: var(--ce-text-2); border: 1px solid var(--ce-border);
}
.ce-badge .dot { width: 6px; height: 6px; border-radius: 99px; background: currentColor; }
.ce-badge-primary { background: var(--ce-primary-soft); color: var(--ce-primary-ink); border-color: transparent; }
.ce-badge-success { background: var(--ce-success-soft); color: var(--ce-success-ink); border-color: transparent; }
.ce-badge-warning { background: var(--ce-warning-soft); color: var(--ce-warning-ink); border-color: transparent; }
.ce-badge-danger  { background: var(--ce-danger-soft);  color: var(--ce-danger-ink);  border-color: transparent; }

/* Inputs */
.ce-label { display: block; font-size: 13px; font-weight: 600; color: var(--ce-text-2); margin-bottom: 7px; }
.ce-input, .ce-select, .ce-textarea {
  width: 100%; font-family: var(--ce-font-sans); font-size: 14px; color: var(--ce-text);
  background: var(--ce-surface-2); border: 1px solid var(--ce-border-2); border-radius: var(--ce-r-sm);
  padding: 10px 12px; transition: border-color .18s var(--ce-ease), box-shadow .18s var(--ce-ease), background-color .18s var(--ce-ease);
}
.ce-input::placeholder, .ce-textarea::placeholder { color: var(--ce-text-3); }
.ce-input:focus, .ce-select:focus, .ce-textarea:focus { outline: none; border-color: var(--ce-primary); box-shadow: 0 0 0 4px var(--ce-ring); background: var(--ce-surface); }
.ce-select { appearance: none; 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='%238A95A3' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.ce-textarea { resize: vertical; min-height: 96px; }

/* Switch */
.ce-switch { position: relative; display: inline-flex; width: 42px; height: 24px; flex: none; cursor: pointer; }
.ce-switch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.ce-switch .track { position: absolute; inset: 0; border-radius: 99px; background: var(--ce-border-2); transition: background-color .2s var(--ce-ease); }
.ce-switch .thumb { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 99px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .22s var(--ce-ease); }
.ce-switch input:checked ~ .track { background: var(--ce-primary); }
.ce-switch input:checked ~ .thumb { transform: translateX(18px); }
.ce-switch:focus-within .track { box-shadow: 0 0 0 4px var(--ce-ring); }

/* Tables */
.ce-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ce-table thead th { text-align: left; font-family: var(--ce-font-mono); font-weight: 500; font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ce-text-3); padding: 12px 16px; border-bottom: 1px solid var(--ce-border); }
.ce-table tbody td { padding: 14px 16px; border-bottom: 1px solid var(--ce-border); color: var(--ce-text); vertical-align: middle; }
.ce-table tbody tr { transition: background-color .14s var(--ce-ease); }
.ce-table tbody tr:hover { background: var(--ce-surface-2); }
.ce-table tbody tr:last-child td { border-bottom: none; }

/* Alerts */
.ce-alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--ce-r); border: 1px solid var(--ce-border); background: var(--ce-surface-2); }
.ce-alert .ic { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.ce-alert-info    { background: var(--ce-primary-soft); border-color: transparent; color: var(--ce-primary-ink); }
.ce-alert-success { background: var(--ce-success-soft); border-color: transparent; color: var(--ce-success-ink); }
.ce-alert-warning { background: var(--ce-warning-soft); border-color: transparent; color: var(--ce-warning-ink); }
.ce-alert-danger  { background: var(--ce-danger-soft);  border-color: transparent; color: var(--ce-danger-ink); }
.ce-alert strong { font-weight: 600; }
.ce-alert p { margin: 2px 0 0; color: var(--ce-text-2); font-size: 13.5px; }

/* Tabs (Reiter) */
.ce-tabs { display: flex; align-items: flex-end; gap: 6px; padding: 0 10px 0 16px; }
.ce-tab { position: relative; font-family: var(--ce-font-sans); font-weight: 600; font-size: 14px; color: var(--ce-text-3); background: var(--ce-surface-2); border: 1px solid var(--ce-border); border-bottom: none; border-radius: 10px 10px 0 0; padding: 5px 20px; cursor: pointer; transition: color .16s var(--ce-ease), background-color .16s var(--ce-ease); }
.ce-tab:hover { color: var(--ce-text-2); background: var(--ce-surface-3); }
.ce-tab[aria-selected="true"] { color: var(--ce-primary-ink); background: var(--ce-surface); z-index: 2; margin-bottom: -1px; padding-bottom: 7px; }
.ce-tab:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--ce-ring); }

/* Stat tiles */
.ce-stat { padding: 20px; }
.ce-stat .k { font-family: var(--ce-font-mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ce-text-3); }
.ce-stat .v { font-family: var(--ce-font-mono); font-weight: 500; font-size: 34px; line-height: 1.05; margin-top: 8px; letter-spacing: -0.02em; color: var(--ce-primary-ink); }
.ce-stat .d { font-size: 13px; margin-top: 8px; color: var(--ce-text-2); display: flex; align-items: center; gap: 6px; }

/* Nav */
.ce-nav-item { display: flex; align-items: center; gap: 12px; width: 100%; font-family: var(--ce-font-sans); font-weight: 500; font-size: 14.5px; color: var(--ce-text-2); padding: 10px 12px; border-radius: var(--ce-r-sm); cursor: pointer; border: none; background: none; text-align: left; transition: background-color .16s var(--ce-ease), color .16s var(--ce-ease); }
.ce-nav-item svg { width: 19px; height: 19px; opacity: .85; }
.ce-nav-item:hover { background: var(--ce-surface-3); color: var(--ce-text); }
.ce-nav-item.active { background: var(--ce-primary-soft); color: var(--ce-primary-ink); font-weight: 600; }
.ce-nav-item:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--ce-ring); }
.ce-nav-group { font-family: var(--ce-font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ce-text-3); padding: 0 12px; margin: 22px 0 8px; }

/* Avatar */
.ce-avatar { width: 36px; height: 36px; border-radius: 99px; display: grid; place-items: center; font-family: var(--ce-font-sans); font-weight: 600; font-size: 14px; background: var(--ce-primary-soft); color: var(--ce-primary-ink); flex: none; }

/* Modal */
.ce-modal-scrim { position: fixed; inset: 0; background: rgba(8,12,20,.55); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 24px; z-index: 80; opacity: 0; pointer-events: none; transition: opacity .25s var(--ce-ease); }
.ce-modal-scrim.open { opacity: 1; pointer-events: auto; }
.ce-modal { width: 100%; max-width: 520px; background: var(--ce-surface); border: 1px solid var(--ce-border); border-radius: var(--ce-r-lg); box-shadow: var(--ce-shadow-lg); transform: translateY(12px) scale(.985); transition: transform .25s var(--ce-ease); }
.ce-modal-scrim.open .ce-modal { transform: none; }

/* Meter */
.ce-meter { height: 7px; border-radius: 99px; background: var(--ce-surface-3); overflow: hidden; }
.ce-meter > span { display: block; height: 100%; border-radius: 99px; background: var(--ce-primary); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
