/* ==========================================================================
   AETHER CEILING — brand tokens, utilities and the /ceiling/ page.
   Dedicated stylesheet: linked AFTER /assets/site.css, with a content hash
   (?v=<hash>, rewritten by scripts/stamp-ceiling-assets.js), from /ceiling/ and
   from every page that uses .cg-* classes (home, Academy, later /compte/).
   It lives apart from the shared site.css on purpose: a visitor holding an
   older cached site.css must never get an unstyled Ceiling page.
   "Ceiling" = the cloud base: your data stays above the clouds, available on
   every screen. See docs/ceiling-brand.md for usage rules, minimum sizes and
   contrast ratios. Everything below is prefixed so it never collides:
     --ceiling-*   design tokens (light + dark)
     .cg-*         reusable utilities (the /compte/ redesign reuses these)
     .cgp-*        page-specific styles of /ceiling/ only
   Depends on the site tokens --bg, --bg-soft, --text, --text-muted, --text-faint,
   --border, --accent, --gutter (site.css).
   ========================================================================== */

/* Script face of the wordmark: Playwrite FR Moderne Light (300), SIL OFL 1.1,
   subset to Latin (assets/fonts/README.md). Only the "Ceiling" word uses it. */
@font-face {
  font-family: 'Playwrite FR Moderne';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/playwrite-fr-moderne-300-latin.woff2') format('woff2');
  unicode-range: U+0020-007E, U+00A0-00FF, U+2018-201D, U+2026, U+0152-0153;
}

:root {
  /* Sky ramp. 600 is the site accent (--accent #2252CC) on purpose. */
  --ceiling-sky-50: #F3F8FF;
  --ceiling-sky-100: #E4EEFF;
  --ceiling-sky-200: #CDE0FF;
  --ceiling-sky-300: #A9C8FB;
  --ceiling-sky-400: #7BA3F2;
  --ceiling-sky-500: #4C7BE0;
  --ceiling-sky-600: #2252CC;
  --ceiling-sky-700: #163A94;
  --ceiling-sky-800: #102A6B;
  --ceiling-sky-900: #0A1428;
  /* Warm accent: the low sun on the cloud layer. Decorative only, never for text. */
  --ceiling-sun: #F5A04A;
  --ceiling-sun-glow: rgba(255, 196, 140, 0.55);

  /* Semantic tokens (these are the ones components should use). */
  --ceiling-accent: var(--accent);
  --ceiling-ink: #0F1E3F;            /* headings on sky surfaces */
  --ceiling-ink-soft: #34456B;       /* body copy on sky surfaces */
  --ceiling-sky-top: #BFD5FF;
  --ceiling-sky-mid: #E6EFFF;
  --ceiling-sky-bottom: #FFF3E6;
  --ceiling-grad-sky: linear-gradient(180deg, var(--ceiling-sky-top) 0%, var(--ceiling-sky-mid) 58%, var(--ceiling-sky-bottom) 100%);
  --ceiling-grad-brand: linear-gradient(135deg, #3A68E0 0%, #2252CC 55%, #163A94 100%);
  --ceiling-grad-night: linear-gradient(180deg, #0C1830 0%, #0A1428 100%);
  --ceiling-cloud-far: #FFFFFF;      --ceiling-cloud-far-o: 0.5;
  --ceiling-cloud-mid: #FFFFFF;      --ceiling-cloud-mid-o: 0.78;
  --ceiling-cloud-front: var(--bg);
  --ceiling-line: rgba(34, 82, 204, 0.22);
  --ceiling-wash: #F3F8FF;           /* quiet section background */

  /* Surfaces */
  --ceiling-card-bg: #FFFFFF;
  --ceiling-card-border: #DCE6F7;
  --ceiling-card-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 14px 34px -20px rgba(34, 82, 204, 0.35);
  --ceiling-glass-bg: rgba(255, 255, 255, 0.66);
  --ceiling-glass-border: rgba(255, 255, 255, 0.8);
  --ceiling-glass-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 20px 44px -22px rgba(34, 82, 204, 0.4);
  --ceiling-blur: 14px;

  /* Status badges (text / background) */
  --ceiling-live-fg: #14683A;  --ceiling-live-bg: #E1F4E8;
  --ceiling-soon-fg: #8A4B00;  --ceiling-soon-bg: #FFEFD6;
  --ceiling-plan-fg: #4B5565;  --ceiling-plan-bg: #EDF0F6;
  --ceiling-new-fg: #163A94;   --ceiling-new-bg: #E4EEFF;
}
html[data-theme="dark"] {
  --ceiling-ink: #EAF0FF;
  --ceiling-ink-soft: #B4C2E0;
  --ceiling-sky-top: #0A1530;
  --ceiling-sky-mid: #112553;
  --ceiling-sky-bottom: #223664;
  --ceiling-sun: #FFC98A;
  --ceiling-sun-glow: rgba(255, 170, 110, 0.28);
  --ceiling-grad-brand: linear-gradient(135deg, #3A66D8 0%, #2252CC 55%, #163A94 100%);
  --ceiling-cloud-far: #A0BEFF;      --ceiling-cloud-far-o: 0.1;
  --ceiling-cloud-mid: #A0BEFF;      --ceiling-cloud-mid-o: 0.16;
  --ceiling-cloud-front: #15233F;
  --ceiling-line: rgba(126, 160, 255, 0.28);
  --ceiling-wash: #121A2A;
  --ceiling-card-bg: #171D25;
  --ceiling-card-border: #2A3342;
  --ceiling-card-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 16px 34px -22px rgba(0, 0, 0, 0.8);
  --ceiling-glass-bg: rgba(23, 29, 37, 0.62);
  --ceiling-glass-border: rgba(255, 255, 255, 0.12);
  --ceiling-glass-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 20px 44px -22px rgba(0, 0, 0, 0.8);
  --ceiling-live-fg: #7EDDA4;  --ceiling-live-bg: #12301F;
  --ceiling-soon-fg: #FFC98A;  --ceiling-soon-bg: #3A2C0B;
  --ceiling-plan-fg: #A9B3C4;  --ceiling-plan-bg: #212A37;
  --ceiling-new-fg: #A9C0FF;   --ceiling-new-bg: #1B2A52;
}
@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] {
    --ceiling-ink: #EAF0FF;
    --ceiling-ink-soft: #B4C2E0;
    --ceiling-sky-top: #0A1530;
    --ceiling-sky-mid: #112553;
    --ceiling-sky-bottom: #223664;
    --ceiling-sun: #FFC98A;
    --ceiling-sun-glow: rgba(255, 170, 110, 0.28);
    --ceiling-grad-brand: linear-gradient(135deg, #3A66D8 0%, #2252CC 55%, #163A94 100%);
    --ceiling-cloud-far: #A0BEFF;      --ceiling-cloud-far-o: 0.1;
    --ceiling-cloud-mid: #A0BEFF;      --ceiling-cloud-mid-o: 0.16;
    --ceiling-cloud-front: #15233F;
    --ceiling-line: rgba(126, 160, 255, 0.28);
    --ceiling-wash: #121A2A;
    --ceiling-card-bg: #171D25;
    --ceiling-card-border: #2A3342;
    --ceiling-card-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 16px 34px -22px rgba(0, 0, 0, 0.8);
    --ceiling-glass-bg: rgba(23, 29, 37, 0.62);
    --ceiling-glass-border: rgba(255, 255, 255, 0.12);
    --ceiling-glass-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 20px 44px -22px rgba(0, 0, 0, 0.8);
    --ceiling-live-fg: #7EDDA4;  --ceiling-live-bg: #12301F;
    --ceiling-soon-fg: #FFC98A;  --ceiling-soon-bg: #3A2C0B;
    --ceiling-plan-fg: #A9B3C4;  --ceiling-plan-bg: #212A37;
    --ceiling-new-fg: #A9C0FF;   --ceiling-new-bg: #1B2A52;
  }
}

/* ---- Utilities (reusable) ---------------------------------------------- */

/* Wordmark: "Aether" in Sora 600 + "Ceiling" in the script face. Size it with
   font-size only. Min size 16 px. The script descender (g) overflows the box
   on purpose: leave ~0.25em below it. */
.cg-wordmark { display: inline-flex; align-items: baseline; gap: 0.14em; margin: 0; font-size: 1em; font-weight: 400; line-height: 1; white-space: nowrap; color: var(--text); }
.cg-wordmark__a { font-family: 'Sora', ui-sans-serif, system-ui, sans-serif; font-weight: 600; letter-spacing: -0.02em; }
.cg-wordmark__c { font-family: 'Playwrite FR Moderne', cursive; font-weight: 300; letter-spacing: 0; line-height: 1; color: var(--accent); }
.cg-wordmark--sm { font-size: 20px; }
.cg-wordmark--md { font-size: 32px; }
.cg-wordmark--on-dark { color: #F5F6F7; }
.cg-wordmark--on-dark .cg-wordmark__c { color: #A9C0FF; }
/* The script face on its own (one word, never a paragraph). */
.cg-script { font-family: 'Playwrite FR Moderne', cursive; font-weight: 300; color: var(--accent); }

/* Cloud-base mark, inline SVG (see docs/ceiling-brand.md for the markup). */
.cg-mark { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.28em; }
.cg-mark .l { stroke: var(--accent); }
.cg-mark .s { fill: var(--ceiling-sun); }
.cg-mark--white .l { stroke: #fff; }
.cg-mark--white .s { fill: #FFC98A; }

.cg-eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }

/* Status badges: live / soon / planned / new. Always pair the colour with the text. */
.cg-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 100px;
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 600; letter-spacing: 0.03em; line-height: 1.3; white-space: nowrap;
  background: var(--ceiling-plan-bg); color: var(--ceiling-plan-fg);
}
.cg-badge { margin: 0; border: 0; }
.cg-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.cg-badge--live { background: var(--ceiling-live-bg); color: var(--ceiling-live-fg); }
.cg-badge--soon { background: var(--ceiling-soon-bg); color: var(--ceiling-soon-fg); }
.cg-badge--planned { background: var(--ceiling-plan-bg); color: var(--ceiling-plan-fg); }
.cg-badge--planned::before { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.cg-badge--new { background: var(--ceiling-new-bg); color: var(--ceiling-new-fg); }

/* Surfaces. .cg-card on plain pages, .cg-card--glass over a sky gradient. */
.cg-card { margin: 0; position: relative; background: var(--ceiling-card-bg); border: 1px solid var(--ceiling-card-border); border-radius: 18px; box-shadow: var(--ceiling-card-shadow); padding: 24px; }
.cg-card--glass { background: var(--ceiling-glass-bg); border-color: var(--ceiling-glass-border); box-shadow: var(--ceiling-glass-shadow); -webkit-backdrop-filter: blur(var(--ceiling-blur)) saturate(1.2); backdrop-filter: blur(var(--ceiling-blur)) saturate(1.2); }
.cg-gradient { background: var(--ceiling-grad-sky); color: var(--ceiling-ink); }
.cg-gradient--brand { background: var(--ceiling-grad-brand); color: #fff; }
.cg-gradient--night { background: var(--ceiling-grad-night); color: #F5F6F7; }
.cg-wash { background: var(--ceiling-wash); }

/* App chip: small icon + name, used to say "which apps use this". */
.cg-chip { margin: 0; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border-radius: 100px; border: 1px solid var(--ceiling-card-border); background: var(--bg); font-size: 12px; font-weight: 500; color: var(--text-muted); line-height: 1.2; }
.cg-chip img, .cg-chip .cg-chip__ico { width: 18px; height: 18px; border-radius: 5px; object-fit: cover; flex: none; display: block; }
.cg-chip__ico { background: var(--ceiling-new-bg); display: grid; place-items: center; color: var(--ceiling-new-fg); }
.cg-chip__ico svg { width: 12px; height: 12px; }
.cg-chip--soon { border-style: dashed; }

/* Teaser band ("Nouveau : Aether Ceiling") on the home and Academy pages. */
.cg-teaser {
  display: flex; align-items: center; gap: 18px; padding: 18px 22px; border-radius: 18px; color: var(--ceiling-ink);
  background: var(--ceiling-grad-sky); border: 1px solid var(--ceiling-card-border); position: relative; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.cg-teaser:hover { transform: translateY(-2px); box-shadow: var(--ceiling-card-shadow); color: var(--ceiling-ink); }
.cg-teaser__mark { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--ceiling-grad-brand); display: grid; place-items: center; }
.cg-teaser__mark .cg-mark { width: 28px; height: 28px; vertical-align: 0; }
.cg-teaser__body { min-width: 0; flex: 1; }
.cg-teaser__title { margin: 0; font-family: 'Sora', sans-serif; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.cg-teaser__title .cg-script { font-size: 1.15em; color: var(--ceiling-sky-700); }
html[data-theme="dark"] .cg-teaser__title .cg-script { color: #A9C0FF; }
.cg-teaser__text { margin: 3px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--ceiling-ink-soft); }
.cg-teaser__cta { flex: none; font-size: 13.5px; font-weight: 700; color: var(--ceiling-sky-700); white-space: nowrap; }
html[data-theme="dark"] .cg-teaser__cta { color: #A9C0FF; }
.cg-teaser-wrap { padding-top: 28px; padding-bottom: 8px; }
.cg-teaser--inline { margin-top: 32px; }
@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] .cg-teaser__title .cg-script, html[data-theme="auto"] .cg-teaser__cta { color: #A9C0FF; }
}
@media (max-width: 640px) {
  .cg-teaser { flex-wrap: wrap; padding: 16px; gap: 12px 14px; }
  .cg-teaser__cta { width: 100%; }
}

/* ---- /ceiling/ page ------------------------------------------------------ */

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

/* Reveal on scroll. Content is visible by default; it is only hidden while <html>
   carries .cg-js (set inline in <head>, removed again if the page script never
   starts) and revealed by assets/js/ceiling-page.js. Overrides the global
   [data-reveal] rule of site.css, which hides first. */
.cgp-main [data-reveal] { opacity: 1; transform: none; }
.cg-js .cgp-main [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.cg-js .cgp-main [data-reveal].is-visible { opacity: 1; transform: none; }
/* Decorative blocks that the inline critical style hides in the no-CSS case. */
.cgp-gauge { display: block; }
.cgp-clouds, .cgp-phone, .cgp-browser { display: block; }
.cgp-alt { display: flex; }
.cgp-phone { display: block; }

/* Hero: full-bleed cockpit video (poster first), a soft veil behind the copy for
   legibility, altitude scale. Light theme: airy white veil + navy text. Dark theme:
   navy veil + white text. The veil, not the footage, guarantees the contrast. */
:root { --cgp-veil: 243, 248, 255; --cgp-m1: 0.52; --cgp-m2: 0.46; --cgp-m3: 0.32; --cgp-a1: 0.60; --cgp-a2: 0.50; --cgp-a3: 0.22; --cgp-ink: #0F1E3F; --cgp-ink-soft: #26365C; --cgp-accent: #1B46B5; --cgp-glass: rgba(255, 255, 255, 0.62); --cgp-btn: rgba(255, 255, 255, 0.78); --cgp-glass-line: rgba(255, 255, 255, 0.85); }
html[data-theme="dark"] { --cgp-veil: 7, 16, 36; --cgp-m1: 0.70; --cgp-m2: 0.62; --cgp-m3: 0.44; --cgp-a1: 0.88; --cgp-a2: 0.78; --cgp-a3: 0.50; --cgp-ink: #F5F8FF; --cgp-ink-soft: #E1EAFB; --cgp-accent: #E0EAFF; --cgp-glass: rgba(10, 20, 44, 0.76); --cgp-btn: rgba(10, 20, 44, 0.9); --cgp-glass-line: rgba(255, 255, 255, 0.24); }
@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] { --cgp-veil: 7, 16, 36; --cgp-m1: 0.70; --cgp-m2: 0.62; --cgp-m3: 0.44; --cgp-a1: 0.88; --cgp-a2: 0.78; --cgp-a3: 0.50; --cgp-ink: #F5F8FF; --cgp-ink-soft: #E1EAFB; --cgp-accent: #E0EAFF; --cgp-glass: rgba(10, 20, 44, 0.76); --cgp-btn: rgba(10, 20, 44, 0.9); --cgp-glass-line: rgba(255, 255, 255, 0.24); }
}
.cgp-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: clamp(560px, 84vh, 780px); padding: 64px 0 clamp(84px, 13vh, 130px);
  color: var(--cgp-ink); background: #6f9bd6 linear-gradient(180deg, #2c5aa8 0%, #6f9bd6 52%, #cfe0f4 80%, #0c1830 100%); }
.cgp-media { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -3; background: #6f9bd6; }
.cgp-video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 66% 80%; background: #6f9bd6; }
html[data-theme="dark"] .cgp-hero .cgp-video { filter: brightness(0.82) saturate(1.05); }
@media (prefers-color-scheme: dark) { html[data-theme="auto"] .cgp-hero .cgp-video { filter: brightness(0.82) saturate(1.05); } }
.cgp-hero .cgp-scrim { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(var(--cgp-veil), 0.5) 0%, rgba(var(--cgp-veil), 0) 22%),
    linear-gradient(90deg, rgba(var(--cgp-veil), var(--cgp-a1)) 0%, rgba(var(--cgp-veil), var(--cgp-a2)) 30%, rgba(var(--cgp-veil), var(--cgp-a3)) 56%, rgba(var(--cgp-veil), 0) 80%);
  /* keep the glare shield and the window frame of the footage clean */
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 66%, transparent 90%), linear-gradient(90deg, transparent 0, #000 2.4%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, #000 0%, #000 66%, transparent 90%), linear-gradient(90deg, transparent 0, #000 2.4%);
  mask-composite: intersect; }

.cgp-gauge { position: absolute; right: max(22px, calc(50% - 600px)); top: 112px; height: 336px; width: 64px; z-index: 0; pointer-events: none; color: #fff; font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.06em; display: block; filter: drop-shadow(0 1px 6px rgba(8, 18, 40, 0.55)); }
.cgp-gauge-scale { position: absolute; right: 0; top: 0; bottom: 0; width: 20px;
  background:
    repeating-linear-gradient(180deg, currentColor 0 1px, transparent 1px 56px) 100% 0 / 20px 100% no-repeat,
    linear-gradient(currentColor, currentColor) 100% 100% / 20px 1px no-repeat,
    repeating-linear-gradient(180deg, currentColor 0 1px, transparent 1px 14px) 100% 0 / 9px 100% no-repeat;
  opacity: .75; }
.cgp-gauge-scale::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 1px; background: currentColor; opacity: .8; }
.cgp-gauge b { position: absolute; right: 28px; font-weight: 500; transform: translateY(-50%); }
.cgp-gauge-marker { position: absolute; right: 22px; top: 38%; width: 12px; display: flex; align-items: center; justify-content: flex-end; color: #FFC98A; font-weight: 600; animation: cgp-bob 7s ease-in-out infinite; }
.cgp-gauge-marker::before { content: ""; width: 0; height: 0; border-right: 9px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; flex: none; margin-right: 8px; }
@keyframes cgp-bob { 0%, 100% { transform: translateY(-10px); } 50% { transform: translateY(14px); } }
@media (max-width: 1260px) { .cgp-gauge { display: none; } }

.cgp-hero-inner { position: relative; z-index: 1; width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 20px; }
.cgp-hero-inner > * { max-width: 600px; }
.cgp-hero-inner > h1 { max-width: none; }
.cgp-hero .cgp-pill { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 7px 16px 7px 8px; border-radius: 100px; font-size: 13px; font-weight: 500; line-height: 1.4; color: var(--cgp-ink); text-align: left;
  background: var(--cgp-glass); border: 1px solid var(--cgp-glass-line); -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2); }
.cgp-hero h1 { margin: 6px 0 0; display: flex; flex-direction: column; align-items: flex-start; gap: 0; font-weight: 400; color: var(--cgp-ink); }
.cgp-hero .cg-wordmark { font-size: clamp(44px, 11.4vw, 92px); padding-bottom: .46em; color: var(--cgp-ink); }
.cgp-hero .cg-wordmark__c { color: var(--cgp-accent); }
.cgp-hero .cgp-headline { text-wrap: balance; font-family: 'Sora', ui-sans-serif, system-ui, sans-serif; font-weight: 600; font-size: clamp(22px, 3.6vw, 38px); letter-spacing: -0.02em; line-height: 1.15; color: var(--cgp-ink); }
.cgp-hero .cgp-lead { margin: 0; max-width: 540px; font-size: 17px; line-height: 1.6; color: var(--cgp-ink-soft); }
.cgp-hero .hero-cta { justify-content: flex-start; margin-top: 8px; }
.cgp-hero .btn-primary { background: var(--cgp-accent); color: #fff; box-shadow: 0 12px 28px -12px rgba(34, 82, 204, 0.75); }
.cgp-hero .btn-primary:hover { background: #163A94; color: #fff; }
html[data-theme="dark"] .cgp-hero .btn-primary { background: #fff; color: #0F1E3F; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.7); }
html[data-theme="dark"] .cgp-hero .btn-primary:hover { background: #E4EEFF; color: #0F1E3F; }
@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] .cgp-hero .btn-primary { background: #fff; color: #0F1E3F; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.7); }
  html[data-theme="auto"] .cgp-hero .btn-primary:hover { background: #E4EEFF; color: #0F1E3F; }
}
.cgp-hero .cgp-btn-ghost { display: inline-flex; align-items: center; gap: 6px; padding: 13px 22px; border-radius: 100px; font-size: 15px; font-weight: 600; color: var(--cgp-ink); border: 1px solid var(--cgp-glass-line); background: var(--cgp-btn); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.cgp-hero .cgp-btn-ghost:hover { color: var(--cgp-ink); border-color: var(--cgp-accent); }
.cgp-main a:focus-visible, .cgp-main summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
html[data-theme="dark"] .cgp-hero a:focus-visible { outline-color: #fff; }
@media (prefers-color-scheme: dark) { html[data-theme="auto"] .cgp-hero a:focus-visible { outline-color: #fff; } }
@media (max-width: 700px) {
  .cgp-hero { min-height: clamp(560px, 92vh, 720px); padding-top: 48px; align-items: flex-end; }
  .cgp-hero .cgp-scrim { background: linear-gradient(180deg, rgba(var(--cgp-veil), var(--cgp-m1)) 0%, rgba(var(--cgp-veil), var(--cgp-m2)) 62%, rgba(var(--cgp-veil), var(--cgp-m3)) 100%); -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 92%); mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 92%); }
  .cgp-hero .cgp-lead { font-size: 16px; }
}

/* Pause control of the moving background (WCAG 2.2.2). Shown by the page script only. */
.cgp-pause { display: inline-flex; align-items: center; justify-content: center; position: absolute; z-index: 2; right: max(16px, calc(50% - 600px)); bottom: clamp(96px, 15vh, 142px); width: 40px; height: 40px; padding: 0; border-radius: 50%; cursor: pointer; color: #fff;
  background: rgba(8, 18, 40, 0.5); border: 1px solid rgba(255, 255, 255, 0.45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background .2s ease; }
.cgp-pause[hidden] { display: none; }
.cgp-pause:hover { background: rgba(8, 18, 40, 0.72); }
.cgp-pause:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.cgp-pause .cgp-ico-play, .cgp-pause.is-paused .cgp-ico-pause { display: none; }
.cgp-pause.is-paused .cgp-ico-play { display: inline; }

/* Generic sections */
.cgp-section { padding: 96px 0 0; }
.cgp-section.is-last { padding-bottom: 96px; }
.cgp-head { max-width: 640px; }
.cgp-head.center { margin: 0 auto; text-align: center; }
.cgp-head h2 { text-wrap: balance; margin: 12px 0 0; font-family: 'Sora', sans-serif; font-weight: 600; font-size: clamp(25px, 4vw, 34px); letter-spacing: -0.015em; line-height: 1.2; }
.cgp-head p { margin: 16px 0 0; font-size: 15.5px; line-height: 1.7; color: var(--text-muted); }

/* Hub and spoke */
.cgp-hub-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.cgp-legend { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.cgp-legend li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; font-size: 14px; line-height: 1.55; color: var(--text-muted); }
.cgp-legend .cg-badge { margin-top: 1px; min-width: 112px; justify-content: flex-start; }
.cgp-hub { position: relative; width: 100%; max-width: 580px; margin: 0 auto; aspect-ratio: 1; border-radius: 28px; background: radial-gradient(closest-side, var(--ceiling-sky-100), transparent 100%); }
html[data-theme="dark"] .cgp-hub { background: radial-gradient(closest-side, rgba(76, 123, 224, 0.22), transparent 100%); }
@media (prefers-color-scheme: dark) { html[data-theme="auto"] .cgp-hub { background: radial-gradient(closest-side, rgba(76, 123, 224, 0.22), transparent 100%); } }
.cgp-hub-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cgp-spoke { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.cgp-spoke--live { opacity: .85; }
.cgp-spoke--soon { stroke-dasharray: 3 7; opacity: .75; }
.cgp-spoke--planned { stroke-dasharray: 1 8; opacity: .45; }
.cgp-hub.is-live .cgp-spoke--soon { animation: cgp-flow 1.6s linear infinite; }
.cgp-hub.is-live .cgp-spoke--live { stroke-dasharray: 3 7; animation: cgp-flow 1.1s linear infinite; }
@keyframes cgp-flow { to { stroke-dashoffset: -20; } }
.cgp-core { position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: var(--ceiling-grad-brand); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #fff; z-index: 2; box-shadow: 0 0 0 6px var(--bg), 0 18px 40px -12px rgba(34, 82, 204, 0.65); }
.cgp-core::before, .cgp-core::after { content: ""; position: absolute; inset: -8%; border-radius: 50%; border: 1.5px solid var(--accent); opacity: 0; animation: cgp-ping 4.5s ease-out infinite; }
.cgp-core::after { animation-delay: 2.25s; }
@keyframes cgp-ping { 0% { transform: scale(.9); opacity: .55; } 100% { transform: scale(1.5); opacity: 0; } }
.cgp-core .cg-mark { width: 38%; height: 38%; vertical-align: 0; }
.cgp-core span { font-family: 'Playwrite FR Moderne', cursive; font-weight: 300; font-size: clamp(14px, 3.6vw, 22px); line-height: 1; padding-bottom: 2px; }
.cgp-node { margin: 0; position: absolute; z-index: 1; width: 26%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: var(--text); }
.cgp-node img, .cgp-node .cgp-node-ico { width: clamp(46px, 11vw, 74px); height: auto; aspect-ratio: 1; border-radius: 22%; object-fit: cover; display: block; border: 1px solid var(--ceiling-card-border); box-shadow: 0 10px 22px -12px rgba(16, 24, 48, 0.55); background: var(--ceiling-card-bg); }
.cgp-node b { font-family: 'Sora', sans-serif; font-weight: 600; font-size: clamp(11.5px, 2.8vw, 15px); line-height: 1.2; }
.cgp-node small { font-family: 'IBM Plex Mono', monospace; font-size: clamp(9px, 2.3vw, 11px); line-height: 1.25; color: var(--text-muted); letter-spacing: 0.02em; }
a.cgp-node:hover b { color: var(--accent); }
a.cgp-node:hover img { transform: translateY(-2px); }
.cgp-node img { transition: transform .2s ease; }
.cgp-node--planned .cgp-node-ico { border-style: dashed; border-color: var(--accent); background: var(--ceiling-new-bg); color: var(--ceiling-new-fg); display: grid; place-items: center; box-shadow: none; }
.cgp-node--planned .cgp-node-ico svg { width: 52%; height: 52%; }
.cgp-n1 { left: 50%; top: 12%; } .cgp-n2 { left: 85%; top: 31%; } .cgp-n3 { left: 85%; top: 69%; }
.cgp-n4 { left: 50%; top: 88%; } .cgp-n5 { left: 15%; top: 69%; } .cgp-n6 { left: 15%; top: 31%; }

/* What follows you */
.cgp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.cgp-data { display: flex; flex-direction: column; gap: 10px; padding: 22px 20px; transition: transform .2s ease, border-color .2s ease; }
.cgp-data:hover { transform: translateY(-3px); border-color: var(--ceiling-sky-400); }
.cgp-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--ceiling-new-bg); color: var(--ceiling-new-fg); }
.cgp-ico svg { width: 22px; height: 22px; }
.cgp-data h3 { margin: 4px 0 0; font-family: 'Sora', sans-serif; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.cgp-data p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--text-muted); }
.cgp-uses { margin-top: auto; padding-top: 6px; display: flex; flex-direction: column; gap: 8px; }
.cgp-uses > span { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-faint); }
.cgp-uses > div { display: flex; flex-wrap: wrap; gap: 6px; }
.cgp-data--cta { background: var(--ceiling-grad-brand); border-color: transparent; color: #fff; justify-content: space-between; }
.cgp-data--cta h3 { color: #fff; font-size: 19px; }
.cgp-data--cta p { color: rgba(255, 255, 255, 0.86); }
.cgp-data--cta .btn-outline-light { align-self: flex-start; margin-top: 8px; padding: 10px 18px; font-size: 13.5px; }
.cgp-data--cta:hover { color: #fff; border-color: transparent; }

/* Split screen: phone + web account */
.cgp-split { position: relative; margin-top: 56px; padding: 56px 32px; border-radius: 28px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: 48px; align-items: center; justify-content: center; }
.cgp-split::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(0deg, var(--ceiling-cloud-mid), transparent); pointer-events: none; }
.cgp-phone { position: relative; width: 100%; max-width: 300px; margin: 0 auto; aspect-ratio: 300 / 600; border-radius: 44px; padding: 10px; background: #0E1118; box-shadow: 0 0 0 2px #2B3140, 0 34px 60px -24px rgba(10, 20, 50, 0.65); }
.cgp-phone::before { content: ""; position: absolute; top: 20px; left: 50%; width: 30%; height: 22px; transform: translateX(-50%); border-radius: 12px; background: #0E1118; z-index: 3; }
.cgp-screen { height: 100%; border-radius: 34px; overflow: hidden; background: #F4F7FD; color: #101317; display: flex; flex-direction: column; font-size: 12px; }
.cgp-status { display: flex; justify-content: space-between; padding: 14px 24px 6px; font-weight: 600; font-size: 12px; }
.cgp-appbar { display: flex; align-items: center; gap: 8px; padding: 10px 16px 8px; font-family: 'Sora', sans-serif; font-weight: 600; font-size: 15px; }
.cgp-appbar img { width: 26px; height: 26px; border-radius: 7px; }
.cgp-screen-body { padding: 4px 14px 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.cgp-tabbar { display: flex; justify-content: space-around; padding: 10px 0 14px; border-top: 1px solid #DDE5F4; background: #fff; color: #6B7280; font-size: 10px; }
.cgp-tabbar span { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.cgp-tabbar span.on { color: #2252CC; font-weight: 600; }
.cgp-tabbar i { width: 18px; height: 18px; border-radius: 6px; background: currentColor; opacity: .25; }
.cgp-tabbar .on i { opacity: 1; }

.cgp-pcard { background: #fff; border: 1px solid #DCE6F7; border-radius: 16px; padding: 14px; color: #101317; box-shadow: 0 10px 24px -16px rgba(34, 82, 204, 0.5); }
.cgp-pcard-head { display: flex; align-items: center; gap: 12px; }
.cgp-avatar { width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: 'Sora', sans-serif; font-weight: 600; font-size: 16px; color: #fff; background: var(--ceiling-grad-brand); }
.cgp-pcard-name { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 15px; line-height: 1.2; }
.cgp-pcard-sub { margin-top: 2px; font-size: 12px; color: #55607A; line-height: 1.35; }
.cgp-pcard dl { margin: 12px 0 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px 12px; font-size: 12px; }
.cgp-pcard dt { color: #55607A; }
.cgp-pcard dd { margin: 0; font-weight: 600; text-align: right; }
.cgp-pcard-foot { margin-top: 12px; padding-top: 10px; border-top: 1px dashed #DCE6F7; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11px; color: #55607A; }
.cgp-pcard .cg-badge { font-size: 10px; padding: 3px 8px; background: #E4EEFF; color: #163A94; }

.cgp-browser { width: 100%; max-width: 640px; border-radius: 16px; overflow: hidden; background: var(--ceiling-card-bg); border: 1px solid var(--ceiling-card-border); box-shadow: 0 34px 60px -30px rgba(10, 20, 50, 0.55); }
.cgp-browser-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.cgp-dots { display: flex; gap: 6px; } .cgp-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.cgp-url { flex: 1; min-width: 0; margin-left: 8px; padding: 5px 12px; border-radius: 100px; background: var(--bg); border: 1px solid var(--border); font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cgp-browser-body { display: grid; grid-template-columns: 150px minmax(0, 1fr); min-height: 340px; }
.cgp-side { padding: 16px 12px; border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; background: var(--bg-soft); font-size: 12.5px; }
.cgp-side b { font-family: 'Sora', sans-serif; font-size: 12.5px; padding: 0 8px 8px; display: flex; align-items: center; gap: 6px; }
.cgp-side span { padding: 7px 10px; border-radius: 8px; color: var(--text-muted); }
.cgp-side span.on { background: var(--ceiling-new-bg); color: var(--ceiling-new-fg); font-weight: 600; }
.cgp-web-main { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.cgp-web-main h3 { margin: 0; font-family: 'Sora', sans-serif; font-size: 15px; font-weight: 600; }
.cgp-web-main .cgp-pcard { max-width: 380px; }
.cgp-sync { position: absolute; left: 50%; top: 50%; z-index: 3; }
.cgp-mini { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid #DCE6F7; font-size: 11px; color: #55607A; }
.cgp-mini b { margin-right: 4px; font-weight: 600; color: #101317; }
.cgp-mini i { font-style: normal; font-family: 'IBM Plex Mono', monospace; font-size: 11px; padding: 3px 8px; border-radius: 100px; background: #E4EEFF; color: #163A94; }
.cgp-split-caption { position: relative; z-index: 1; grid-column: 1 / -1; margin: 8px 0 0; text-align: center; font-size: 13px; line-height: 1.55; color: var(--ceiling-ink-soft); }
.cgp-split-labels { grid-column: 1 / -1; display: none; }

/* Steps */
.cgp-steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: cgp; }
.cgp-step { position: relative; padding: 26px 24px 24px; }
.cgp-step-n { font-family: 'Playwrite FR Moderne', cursive; font-weight: 300; font-size: 46px; line-height: 1; color: var(--accent); display: block; padding-bottom: 6px; }
.cgp-step h3 { margin: 6px 0 8px; font-family: 'Sora', sans-serif; font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.cgp-step p { margin: 0 0 14px; font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.cgp-step:not(:last-child)::after { content: ""; position: absolute; top: 46px; right: -20px; width: 20px; border-top: 1.5px dashed var(--ceiling-line); }

/* Control band (dark) */
.cgp-control { margin-top: 96px; padding: 96px 0; color: #F5F6F7; background: linear-gradient(180deg, #0C1830 0%, #0A1428 55%, #091223 100%); position: relative; overflow: hidden; }
.cgp-control .cgp-head { color: #F5F6F7; }
.cgp-control .cgp-head p { color: #A7B4D2; }
.cgp-control .cg-eyebrow { color: #A9C0FF; }
.cgp-control-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 48px; background: #1E3155; border: 1px solid #1E3155; border-radius: 18px; overflow: hidden; }
.cgp-control-cell { background: #101E38; padding: 26px 24px; display: flex; flex-direction: column; gap: 10px; }
.cgp-control-cell svg { width: 26px; height: 26px; color: #6E93FF; }
.cgp-control-cell h3 { margin: 4px 0 0; font-family: 'Sora', sans-serif; font-weight: 600; font-size: 16px; color: #F5F6F7; }
.cgp-control-cell p { margin: 0; font-size: 13.5px; line-height: 1.6; color: #A7B4D2; }
.cgp-control-cell .cg-badge { align-self: flex-start; margin-top: auto; }
.cgp-control .cg-badge--live { background: #12301F; color: #7EDDA4; }
.cgp-control .cg-badge--soon { background: #3A2C0B; color: #FFC98A; }
.cgp-control .cg-badge--new { background: #1B2A52; color: #A9C0FF; }
.cgp-control-note { margin: 22px 0 0; font-size: 13px; line-height: 1.6; color: #8D9BBD; }
.cgp-control-note a { color: #A9C0FF; text-decoration: underline; text-underline-offset: 3px; }

/* Video card: the same sky clip as the hero, with a "plafond" altitude read-out. */
.cgp-control-top { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.cgp-vcard { margin: 0; }
.cgp-vcard-media { position: relative; isolation: isolate; aspect-ratio: 16 / 11; border-radius: 26px; overflow: hidden; background: #1b4287; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 34px 60px -30px rgba(0, 0, 0, 0.75); }
.cgp-vcard-media::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(8, 18, 40, 0.12) 0%, rgba(8, 18, 40, 0) 40%, rgba(8, 18, 40, 0.5) 100%); }
.cgp-vcard .cgp-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-position: 64% 78%; }
.cgp-alt { position: absolute; left: 16px; bottom: 16px; z-index: 2; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 16px; color: #fff; font-family: 'IBM Plex Mono', monospace;
  background: rgba(10, 20, 44, 0.46); border: 1px solid rgba(255, 255, 255, 0.24); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); }
.cgp-alt-label { font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #CFE0FF; }
.cgp-alt-fl { font-size: 22px; font-weight: 600; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.cgp-alt-ft { font-size: 12px; color: rgba(255, 255, 255, 0.82); font-variant-numeric: tabular-nums; }
.cgp-vcard figcaption { margin: 14px 4px 0; font-size: 13.5px; line-height: 1.55; color: #A7B4D2; }
@media (max-width: 900px) {
  .cgp-control-top { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .cgp-vcard-media { aspect-ratio: 4 / 3; }
}

/* Availability strip */
.cgp-road { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; position: relative; }
.cgp-road::before { content: ""; position: absolute; left: 12%; right: 12%; top: 19px; border-top: 2px dashed var(--ceiling-line); }
.cgp-road li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.cgp-road-dot { position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 2px solid var(--ceiling-line); color: var(--text-muted); }
.cgp-road-dot svg { width: 18px; height: 18px; }
.cgp-road .is-live .cgp-road-dot { background: var(--ceiling-live-bg); border-color: var(--ceiling-live-fg); color: var(--ceiling-live-fg); }
.cgp-road .is-wip .cgp-road-dot { background: var(--ceiling-new-bg); border-color: var(--accent); color: var(--ceiling-new-fg); }
.cgp-road .is-soon .cgp-road-dot { background: var(--ceiling-soon-bg); border-color: var(--ceiling-soon-fg); color: var(--ceiling-soon-fg); }
.cgp-road h3 { margin: 2px 0 0; font-family: 'Sora', sans-serif; font-weight: 600; font-size: 15.5px; }
.cgp-road p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--text-muted); max-width: 240px; }
.cgp-road-note { margin: 32px auto 0; max-width: 640px; text-align: center; font-size: 13.5px; line-height: 1.65; color: var(--text-muted); }

/* FAQ */
.cgp-faq { max-width: 760px; margin: 44px auto 0; display: flex; flex-direction: column; gap: 10px; }
.cgp-faq details { border: 1px solid var(--ceiling-card-border); border-radius: 16px; background: var(--ceiling-card-bg); transition: border-color .2s ease, box-shadow .2s ease; }
.cgp-faq details[open] { border-color: var(--ceiling-sky-400); box-shadow: var(--ceiling-card-shadow); }
.cgp-faq summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 20px; position: relative; font-family: 'Sora', sans-serif; font-weight: 600; font-size: 15.5px; line-height: 1.4; }
.cgp-faq summary::-webkit-details-marker { display: none; }
.cgp-faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--ceiling-new-bg); color: var(--ceiling-new-fg); font-size: 16px; line-height: 1; font-family: 'Work Sans', sans-serif; font-weight: 500; }
.cgp-faq details[open] summary::after { content: "−"; }
.cgp-faq details p { margin: 0; padding: 0 20px 18px; font-size: 14.5px; line-height: 1.7; color: var(--text-muted); }
.cgp-faq details a { font-weight: 600; }

/* Drifting cloud layers (final call to action) */
.cgp-final::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; z-index: -1; pointer-events: none; background: linear-gradient(180deg, transparent, var(--bg-soft)); }
.cgp-clouds { position: absolute; left: 0; right: 0; bottom: 0; height: 100%; z-index: -1; pointer-events: none; overflow: hidden; }
.cgp-layer { position: absolute; left: 0; width: 3600px; animation: cgp-drift linear infinite; will-change: transform; }
.cgp-layer svg { display: block; width: 100%; height: auto; }
.cgp-layer--mid { bottom: 6%; animation-duration: 110s; opacity: var(--ceiling-cloud-mid-o); fill: var(--ceiling-cloud-mid); animation-name: cgp-drift-r; }
.cgp-layer--front { bottom: -2px; animation-duration: 80s; fill: var(--ceiling-cloud-front); }
@keyframes cgp-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-1200px, 0, 0); } }
@keyframes cgp-drift-r { from { transform: translate3d(-1200px, 0, 0); } to { transform: translate3d(0, 0, 0); } }

/* Final CTA */
.cgp-final { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: 96px var(--gutter) 150px; background: var(--ceiling-grad-sky); color: var(--ceiling-ink); }
.cgp-final .cgp-clouds { height: 100%; }
.cgp-final .cgp-layer--front { fill: var(--bg-soft); }
.cgp-final-inner { position: relative; max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cgp-final .cg-wordmark { font-size: clamp(32px, 8vw, 54px); padding-bottom: .26em; color: var(--ceiling-ink); }
.cgp-final h2 { margin: 0; font-family: 'Sora', sans-serif; font-weight: 600; font-size: clamp(24px, 4vw, 34px); letter-spacing: -0.02em; line-height: 1.2; }
.cgp-final p { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--ceiling-ink-soft); }
.cgp-final .hero-cta { justify-content: center; }

/* Reveal helpers */
.cgp-stagger > * { transition-delay: calc(var(--i, 0) * 60ms); }

@media (max-width: 1100px) {
  .cgp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cgp-control-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .cgp-hub-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .cgp-split { grid-template-columns: minmax(0, 1fr); gap: 36px; padding: 40px 20px 56px; }
  .cgp-browser { margin: 0 auto; }
  .cgp-steps { grid-template-columns: minmax(0, 1fr); }
  .cgp-step:not(:last-child)::after { display: none; }
  .cgp-road { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .cgp-road::before { display: none; }
}
@media (max-width: 640px) {
  .cgp-section { padding-top: 72px; }
  .cgp-section.is-last { padding-bottom: 72px; }
  .cgp-lead { font-size: 16px; }
  .cgp-grid { grid-template-columns: minmax(0, 1fr); }
  .cgp-control { padding: 72px 0; margin-top: 72px; }
  .cgp-control-grid { grid-template-columns: minmax(0, 1fr); }
  .cgp-browser-body { grid-template-columns: minmax(0, 1fr); }
  .cgp-side { display: none; }
  .cgp-road { grid-template-columns: minmax(0, 1fr); }
  .cgp-legend li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .cgp-faq summary { padding: 16px 52px 16px 16px; font-size: 15px; }
  .cgp-faq details p { padding: 0 16px 16px; }
  .cgp-final { padding-bottom: 120px; }
}

html[data-motion="reduce"] .cgp-layer, html[data-motion="reduce"] .cgp-gauge-marker, html[data-motion="reduce"] .cgp-core::before, html[data-motion="reduce"] .cgp-core::after, html[data-motion="reduce"] .cgp-hub .cgp-spoke { animation: none !important; }
html[data-motion="reduce"] .cg-js .cgp-main [data-reveal] { opacity: 1; transform: none; transition: none; }
@media (prefers-reduced-motion: reduce) {
  .cg-js .cgp-main [data-reveal] { opacity: 1; transform: none; transition: none; }
  .cgp-layer, .cgp-gauge-marker, .cgp-core::before, .cgp-core::after, .cgp-hub.is-live .cgp-spoke { animation: none !important; }
  .cgp-core::before, .cgp-core::after { opacity: 0; }
  .cgp-data, .cg-teaser, .cgp-node img { transition: none; }
}


/* ACCOUNT */
/* ==========================================================================
   ACCOUNT — /compte/ with Aether Ceiling (sky header, pilot card, profile forms,
   wizard, applications, sync visuals). Prefixes:
     .cga-*  account page        .cgf-*  form fields        .cgh-* .cgl-* .cgc-*  hangar / places / documents
     .cgd-*  side drawer         .cgw-*  completion wizard   .cgk-*  conflict dialog
     .cgs-*  sync pill, sky overlay, toasts (assets/js/ceiling-sync-ui.js)
   Colours come from the --ceiling-* tokens and the site tokens, so light, dark and
   auto themes follow. Motion is cut by prefers-reduced-motion and data-motion="reduce".
   ========================================================================== */

.cga-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.cga-req { color: #C22828; font-weight: 700; }
html[data-theme="dark"] .cga-req { color: #FF9C9C; }
.cga-ic { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.cga-lock { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .75; vertical-align: -1px; }
.cga [id] { scroll-margin-top: 78px; }
.cga-ver { display: inline-block; font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 600; line-height: 1.2; padding: 3px 9px; border-radius: 100px; background: var(--ceiling-new-bg); color: var(--ceiling-new-fg); white-space: nowrap; }
.cga-chip { display: inline-block; font-size: 11.5px; font-weight: 600; line-height: 1.3; padding: 3px 10px; border-radius: 100px; white-space: nowrap; background: var(--ceiling-plan-bg); color: var(--ceiling-plan-fg); }
.cga-chip.is-ok { background: var(--ceiling-live-bg); color: var(--ceiling-live-fg); }
.cga-chip.is-warn { background: var(--ceiling-soon-bg); color: var(--ceiling-soon-fg); }
.cga-opt { font-family: 'Work Sans', sans-serif; font-size: 11.5px; font-weight: 500; color: var(--text-faint); margin-left: 6px; }
.cga-count { display: inline-block; min-width: 18px; padding: 0 6px; border-radius: 9px; background: var(--ceiling-new-bg); color: var(--ceiling-new-fg); font-size: 11px; text-align: center; margin-left: 4px; }

/* ---- sky header --------------------------------------------------------- */
.cga-head { position: relative; isolation: isolate; overflow: hidden; border-radius: 24px; padding: 18px 22px 22px; margin-bottom: 12px; color: var(--ceiling-ink); background: var(--ceiling-grad-sky); border: 1px solid var(--ceiling-card-border); }
.cga-sky { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.cga-cloudrow { position: absolute; left: 0; will-change: transform; fill: var(--ceiling-cloud-mid); opacity: var(--ceiling-cloud-mid-o); animation: cga-drift 90s linear infinite; }
.cga-cloudrow svg { display: block; }
.cga-c1 { bottom: -30px; animation-delay: -40s; }
.cga-c2 { top: 10px; animation-duration: 120s; animation-delay: -90s; opacity: calc(var(--ceiling-cloud-far-o) + .1); fill: var(--ceiling-cloud-far); }
.cga-c3 { bottom: -10px; animation-duration: 75s; animation-delay: -10s; }
@keyframes cga-drift { from { transform: translate3d(-380px, 0, 0); } to { transform: translate3d(1200px, 0, 0); } }
.cga-sun { position: absolute; right: 56px; top: -46px; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, var(--ceiling-sun-glow) 0%, transparent 68%); }
.cga-head-row { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 14px; }
.cga-brand { color: var(--ceiling-ink); font-size: 28px; padding-bottom: .22em; }
.cga-brand .cg-wordmark__a { color: var(--ceiling-ink); }
html[data-theme="dark"] .cga-brand .cg-wordmark__c { color: #A9C0FF; }
.cga-head-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; min-width: 0; }
.cga-head .acc-plan-chip { background: var(--ceiling-glass-bg); border-color: var(--ceiling-glass-border); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--ceiling-ink-soft); }
.cga-head .acc-plan-chip.is-premium { background: linear-gradient(135deg, #FDE68A, #FACC15); border-color: #EAB308; color: #78350F; }
.cga-pill-slot { display: inline-flex; justify-content: flex-end; min-width: 0; max-width: 100%; }
@media (min-width: 900px) { .cga-pill-slot { min-width: 330px; } }
.cga-id { display: flex; align-items: center; gap: 16px; min-width: 0; }
.cga-id h1 { margin: 0; font-family: 'Sora', sans-serif; font-weight: 700; font-size: clamp(21px, 3.2vw, 28px); letter-spacing: -0.01em; color: var(--ceiling-ink); }
.cga-id p { margin: 3px 0 0; font-size: 13px; color: var(--ceiling-ink-soft); overflow-wrap: anywhere; }
.cga-id .dash-avatar { border-color: rgba(255, 255, 255, .9); box-shadow: 0 8px 20px -10px rgba(10, 20, 50, .5); }
html[data-theme="dark"] .cga-id .dash-avatar { color: #0E1217; }
@media (prefers-color-scheme: dark) { html[data-theme="auto"] .cga-id .dash-avatar { color: #0E1217; } }

/* ---- tabs ----------------------------------------------------------------- */
.cga-tabs a { display: inline-flex; align-items: center; gap: 7px; }
.cga-tabs a:focus-visible, .cga-subnav a:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; border-radius: 10px; }
.cga-ti { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; opacity: .85; }
.cga-tab-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #B45309; color: #fff; font-size: 11px; font-weight: 700; font-style: normal; line-height: 1; }
.cga-tab-badge.is-dot { min-width: 9px; width: 9px; height: 9px; padding: 0; margin-left: -3px; align-self: center; position: relative; top: -7px; }
.cga-tab-badge[hidden] { display: none; }
.cga-subnav { display: flex; gap: 4px; padding: 4px; margin: 0 0 20px; width: fit-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; border: 1px solid var(--border); border-radius: 100px; background: var(--bg-soft); }
.cga-subnav::-webkit-scrollbar { display: none; }
.cga-subnav a { flex: none; padding: 8px 16px; border-radius: 100px; font-size: 13.5px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.cga-subnav a:hover { color: var(--text); }
.cga-subnav a.active { background: var(--accent); color: #fff; }
html[data-theme="dark"] .cga-subnav a.active { color: #0E1217; }
.cga-sub[hidden] { display: none; }
@media (prefers-color-scheme: dark) { html[data-theme="auto"] .cga-subnav a.active { color: #0E1217; } html[data-theme="auto"] .cga-req { color: #FF9C9C; } }
.acc-panel:focus { outline: none; }

/* ---- incomplete banner ------------------------------------------------------ */
.cga-banner { display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin: 0 0 18px; border-radius: 14px; background: var(--ceiling-soon-bg); color: var(--ceiling-soon-fg); border: 1px solid color-mix(in srgb, var(--ceiling-soon-fg) 28%, transparent); }
.cga-banner[hidden] { display: none; }
.cga-banner p { margin: 0; font-size: 13.5px; line-height: 1.45; }
.cga-banner-ic { flex: none; }
.cga-banner-ic .c { fill: var(--ceiling-soon-bg); stroke: currentColor; stroke-width: 1.6; }
.cga-banner-ic .e { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.cga-banner-cta { margin-left: auto; flex: none; border: 0; border-radius: 100px; padding: 9px 18px; font: 700 13px 'Work Sans', sans-serif; cursor: pointer; background: var(--ceiling-soon-fg); color: var(--ceiling-soon-bg); }
.cga-banner-cta:hover { filter: brightness(1.08); }

/* ---- Aperçu: pilot card and "À compléter" ------------------------------------- */
.cga-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; margin-bottom: 26px; align-items: stretch; }
.cga-pcard { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; min-height: 280px; padding: 20px 22px 14px; border-radius: 24px; color: #fff; background: var(--ceiling-grad-brand); box-shadow: 0 26px 48px -28px rgba(34, 82, 204, .75); }
.cga-pcard > .acc-skeleton { min-height: 240px; background: rgba(255, 255, 255, .12); }
.cga-pc-sky { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; pointer-events: none; }
.cga-pc-c1, .cga-pc-c2 { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .11); }
.cga-pc-c1 { width: 300px; height: 96px; right: -60px; bottom: -34px; }
.cga-pc-c2 { width: 200px; height: 70px; left: -50px; bottom: 30px; background: rgba(255, 255, 255, .07); }
.cga-pc-sun { position: absolute; right: 26px; top: -50px; width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 201, 138, .5), transparent 68%); }
.cga-pc-eyebrow { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.cga-pcard .cg-eyebrow { color: rgba(255, 255, 255, .88); font-size: 11px; }
.cga-pc-brand { font-family: 'Sora', sans-serif; font-size: 13.5px; font-weight: 600; white-space: nowrap; padding-bottom: .2em; }
.cga-pc-brand .cg-wordmark__c { color: #CFE0FF; font-size: 1.1em; }
.cga-pc-top { display: flex; align-items: center; gap: 14px; }
.cga-pc-av { width: 58px; height: 58px; flex: none; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: rgba(255, 255, 255, .18); border: 2px solid rgba(255, 255, 255, .75); font-family: 'Sora', sans-serif; font-weight: 700; font-size: 20px; }
.cga-pc-av img { width: 100%; height: 100%; object-fit: cover; }
.cga-pc-who { min-width: 0; flex: 1; }
.cga-pc-name { font-family: 'Sora', sans-serif; font-weight: 700; font-size: clamp(20px, 3.4vw, 26px); line-height: 1.15; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.cga-pc-call { margin-top: 4px; font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; color: rgba(255, 255, 255, .9); }
.cga-ring { position: relative; flex: none; width: 64px; height: 64px; margin-left: auto; }
.cga-ring svg { display: block; transform: rotate(-90deg); }
.cga-ring .rt { fill: none; stroke: rgba(255, 255, 255, .24); stroke-width: 6; }
.cga-ring .ra { fill: none; stroke: #fff; stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset .9s cubic-bezier(.3, .7, .3, 1); }
.cga-ring.is-complete .ra { stroke: #7EDDA4; }
.cga-ring .rn { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: center; font: 700 15px 'Sora', sans-serif; }
.cga-ring .rn small { font-size: 9px; margin-left: 1px; align-self: center; margin-top: 3px; }
.cga-ring .rn .cga-ic { stroke-width: 2.6; color: #7EDDA4; width: 24px; height: 24px; }
.cga-pc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; margin: 0; }
.cga-pc-grid dt { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .86); }
.cga-pc-grid dd { margin: 3px 0 0; font-size: 14.5px; font-weight: 500; overflow-wrap: anywhere; }
.cga-pc-grid dd b { font-weight: 700; }
.cga-icao { font-family: 'IBM Plex Mono', monospace; letter-spacing: .06em; }
.cga-sub2 { color: rgba(255, 255, 255, .86); font-size: 13px; }
.cga-none { font-style: italic; color: rgba(255, 255, 255, .9); }
.cga-miss { display: inline-flex; align-items: center; padding: 2px 11px; border-radius: 100px; background: #FFEFD6; color: #8A4B00; font-size: 12.5px; font-weight: 700; line-height: 1.5; }
.cga-miss:hover { color: #6B3A00; background: #FFE3B8; }
.cga-pc-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.cga-pchip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 100px; font-size: 12.5px; font-weight: 600; line-height: 1.3; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); color: #fff; }
.cga-pchip .d { width: 8px; height: 8px; border-radius: 50%; background: #fff; flex: none; }
.cga-pchip .d.ok { background: #7EDDA4; } .cga-pchip .d.expiring { background: #FFC98A; } .cga-pchip .d.expired { background: #FF9C9C; }
.cga-pchip.is-miss { background: #FFEFD6; color: #8A4B00; border-color: transparent; }
.cga-pchip.is-miss .d { background: #B45309; }
.cga-pchip.is-plan { background: rgba(255, 255, 255, .92); color: #163A94; border-color: transparent; }
.cga-pc-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-top: auto; padding-top: 10px; border-top: 1px dashed rgba(255, 255, 255, .34); font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, .92); }
.cga-pc-rev { font-weight: 700; padding: 2px 9px; border-radius: 100px; background: rgba(255, 255, 255, .2); color: #fff; }
.cga-pc-sync { margin-left: auto; }
.cga-pc-sync[data-kind="error"], .cga-pc-sync[data-kind="conflict"] { color: #FFC98A; }

.cga-todo { display: flex; flex-direction: column; gap: 4px; padding: 22px; }
.cga-todo > .acc-skeleton { min-height: 240px; }
.cga-todo-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cga-todo-head h2 { margin: 0; font-family: 'Sora', sans-serif; font-size: 18px; }
.cga-todo-head p { margin: 4px 0 0; font-size: 13.5px; color: var(--text-muted); }
.cga-todo-pct { font: 800 30px/1 'Sora', sans-serif; color: var(--accent); }
.cga-todo-pct small { font-size: 14px; margin-left: 1px; }
.cga-bar { height: 6px; border-radius: 6px; background: var(--ceiling-new-bg); overflow: hidden; margin: 12px 0 14px; }
.cga-bar i { display: block; height: 100%; border-radius: 6px; background: var(--ceiling-grad-brand); transition: width .6s cubic-bezier(.3, .7, .3, 1); }
.cga-todo-list { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cga-todo-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--ceiling-card-border); background: var(--bg-soft); color: var(--text); font: inherit; cursor: pointer; transition: border-color .15s ease, transform .15s ease; }
.cga-todo-item:hover { border-color: var(--accent); }
.cga-todo-item:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.cga-todo-item .cga-ic { color: var(--text-faint); }
.cga-todo-dot { width: 9px; height: 9px; border-radius: 50%; background: #E5A23B; flex: none; }
.cga-todo-dot.is-rec { background: var(--ceiling-sky-400); }
.cga-todo-t { font-size: 14px; font-weight: 600; }
.cga-todo-g { margin-left: auto; font-size: 12px; color: var(--text-faint); text-align: right; }
.cga-todo-more { font-size: 12.5px; color: var(--text-faint); padding: 2px 4px; }
.cga-todo-cta { display: block; width: 100%; text-align: center; border: 0; cursor: pointer; font-family: inherit; font-size: 14.5px; padding: 13px 20px; }
.cga-todo-rec { margin-top: 12px; }
.cga-todo-rec summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text-muted); list-style: none; }
.cga-todo-rec summary::-webkit-details-marker { display: none; }
.cga-todo-rec .cga-todo-list { margin: 10px 0 0; }
.cga-todo.is-complete { justify-content: center; background: linear-gradient(160deg, var(--ceiling-live-bg), var(--ceiling-card-bg) 70%); }
.cga-done { display: flex; align-items: center; gap: 14px; }
.cga-done h2 { margin: 0; font-family: 'Sora', sans-serif; font-size: 18px; }
.cga-done p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--text-muted); }
.cga-done-svg { flex: none; }
.cga-done-svg .s { fill: var(--ceiling-sun); }
.cga-done-svg .c { fill: var(--ceiling-card-bg); stroke: var(--accent); stroke-width: 2; }
.cga-done-svg .t { fill: none; stroke: var(--ceiling-live-fg); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 0; animation: cga-draw .8s .2s both; }
@keyframes cga-draw { from { stroke-dashoffset: 40; } to { stroke-dashoffset: 0; } }

.cga-block { margin: 0 0 26px; }
.cga-block[hidden] { display: none; }
.cga-block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.cga-block-head h2 { margin: 0; font-family: 'Sora', sans-serif; font-size: 18px; }
.cga-block-head .link { font-size: 13px; font-weight: 600; }
.cga-appsmini { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 980px) { .cga-appsmini { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
.cga-mini { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--ceiling-card-border); border-radius: 14px; background: var(--ceiling-card-bg); color: var(--text); transition: border-color .15s ease, transform .15s ease; }
.cga-mini:hover { border-color: var(--accent); color: var(--text); transform: translateY(-1px); }
.cga-mini-ico { width: 34px; height: 34px; border-radius: 9px; flex: none; object-fit: cover; }
.cga-mini-ico.is-soon { display: grid; place-items: center; background: var(--ceiling-new-bg); color: var(--ceiling-new-fg); border: 1px dashed var(--accent); }
.cga-mini-ico.is-soon svg { width: 18px; height: 18px; }
.cga-mini-t { min-width: 0; display: flex; flex-direction: column; }
.cga-mini-t strong { font-size: 13.5px; }
.cga-mini-t em { font-style: normal; font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.cga-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ceiling-plan-fg); flex: none; }
.cga-dot.is-live { background: var(--ceiling-live-fg); } .cga-dot.is-soon { background: var(--ceiling-soon-fg); } .cga-dot.is-new { background: var(--accent); }
.cga-mini-note { grid-column: 1 / -1; margin: 2px 0 0; font-size: 12.5px; color: var(--text-faint); }
.cga-block .acc-overview, .cga-block .acc-foryou, .cga-block .acc-quick { margin-bottom: 14px; }
.cga-block .acc-quick { margin-bottom: 0; }

/* ---- Profil pilote ------------------------------------------------------------ */
.cga-panel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 18px; }
.cga-panel-head h2 { margin: 0; font-family: 'Sora', sans-serif; font-size: 22px; }
.cga-panel-head p { margin: 5px 0 0; font-size: 14px; line-height: 1.55; color: var(--text-muted); max-width: 560px; }
.cga-panel-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cga-panel-meta .cga-legend { margin: 0; font-size: 12.5px; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.cga-sep { opacity: .5; }

.cga-acc { border: 1px solid var(--ceiling-card-border); border-radius: 16px; background: var(--ceiling-card-bg); margin: 0 0 12px; overflow: hidden; }
.cga-acc > summary { position: relative; display: block; padding: 16px 52px 16px 18px; cursor: pointer; list-style: none; }
.cga-acc > summary::-webkit-details-marker { display: none; }
.cga-acc > summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border: solid var(--text-faint); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s ease; }
.cga-acc[open] > summary::after { transform: rotate(-135deg); margin-top: -2px; }
.cga-acc > summary:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; border-radius: 16px; }
.cga-acc[open] > summary { border-bottom: 1px solid var(--ceiling-card-border); }
.cga-acc-t { display: block; font-family: 'Sora', sans-serif; font-weight: 600; font-size: 15.5px; }
.cga-acc-s { display: block; margin-top: 2px; font-size: 12.5px; color: var(--text-faint); line-height: 1.4; overflow-wrap: anywhere; }
.cga-acc > .dash-grid { margin: 0; padding: 14px; gap: 12px; }
.cga-acc .dash-card { box-shadow: none; background: var(--bg-soft); }
.cga-sec > summary { display: flex; align-items: center; gap: 12px; }
.cga-sec-ic { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--ceiling-new-bg); color: var(--ceiling-new-fg); }
.cga-sec-main { min-width: 0; flex: 1; }
.cga-sec-end { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex: none; }
.cga-sec-body { padding: 18px; }
.cga-sec-h { margin: 22px 0 10px; padding-top: 16px; border-top: 1px dashed var(--ceiling-line); font-family: 'Sora', sans-serif; font-size: 14px; font-weight: 700; }
.cga-block-host + .cga-block-host { margin-top: 4px; }
.cga-profile-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin-top: 18px; }
.cga-profile-foot .btn-outline { cursor: pointer; background: transparent; font-family: inherit; }
.cga-hint-inline { margin: 0; font-size: 12.5px; color: var(--text-faint); line-height: 1.5; }
.cgf-status { font-size: 12px; font-weight: 600; min-width: 84px; text-align: right; color: var(--ceiling-live-fg); }
.cgf-status[data-state="idle"] { visibility: hidden; }
.cgf-status[data-state="saving"], .cgf-status[data-state="dirty"] { color: var(--text-muted); }
.cgf-status[data-state="error"] { color: #B42318; }
html[data-theme="dark"] .cgf-status[data-state="error"] { color: #FF9C9C; }

/* ---- form fields ---------------------------------------------------------------- */
.cgf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; margin-bottom: 14px; align-items: start; }
.cgf-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cgf-field { min-width: 0; }
.cgf-wide { grid-column: 1 / -1; flex-basis: 100%; }
.cgf-field > label { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; margin-bottom: 6px; font-size: 12.5px; font-weight: 600; color: var(--text-muted); }
.cgf-field input[type="text"], .cgf-field input[type="date"], .cgf-field input[type="tel"], .cgf-field select, .cgf-field textarea {
  display: block; width: 100%; min-height: 44px; padding: 10px 12px; font: inherit; font-size: 15px; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 11px; box-sizing: border-box; transition: border-color .15s ease, box-shadow .15s ease;
}
.cgf-field textarea { min-height: 84px; resize: vertical; }
.cgf-field input:focus, .cgf-field select:focus, .cgf-field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.cgf-field.is-invalid input, .cgf-field.is-invalid select, .cgf-field.is-invalid textarea { border-color: #C22828; }
.cgf-icao, .cgf-field input.cgf-icao { text-transform: uppercase; font-family: 'IBM Plex Mono', monospace; letter-spacing: .08em; }
.cgf-hint { margin: 6px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--text-faint); }
.cga-readers { display: block; font-style: italic; }
.cgf-err { margin: 6px 0 0; font-size: 12.5px; font-weight: 600; line-height: 1.4; color: #B42318; }
html[data-theme="dark"] .cgf-err { color: #FF9C9C; }
@media (prefers-color-scheme: dark) { html[data-theme="auto"] .cgf-err, html[data-theme="auto"] .cgf-status[data-state="error"] { color: #FF9C9C; } }
.cgf-err[hidden] { display: none; }
.cgf-h { margin: 16px 0 10px; font-family: 'Sora', sans-serif; font-size: 13.5px; font-weight: 700; }
.cgf-sub + .cgf-sub { margin-top: 8px; padding-top: 4px; border-top: 1px dashed var(--ceiling-line); }
.cgf-fold.is-off { display: none; }
.cgf-switch { position: relative; display: flex; align-items: center; gap: 10px; margin: 2px 0 10px; cursor: pointer; font-size: 14px; }
.cgf-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cgf-switch-ui { flex: none; width: 38px; height: 22px; border-radius: 100px; background: var(--border); position: relative; transition: background .18s ease; }
.cgf-switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .18s ease; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.cgf-switch input:checked + .cgf-switch-ui { background: var(--accent); }
.cgf-switch input:checked + .cgf-switch-ui::after { transform: translateX(16px); }
.cgf-switch input:focus-visible + .cgf-switch-ui { outline: 2px solid var(--accent); outline-offset: 2px; }
.cgf-units .cgf-field > label { margin-bottom: 4px; }
.cgf-status-line { font-size: 12px; }

/* ---- hangar, places, documents ------------------------------------------------------ */
.cgh-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.cgh-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--ceiling-card-border); border-radius: 14px; background: var(--bg-soft); }
.cgh-row.is-default { border-color: color-mix(in srgb, var(--ceiling-sun) 70%, var(--ceiling-card-border)); }
.cgh-star { flex: none; width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--border); background: var(--bg); color: var(--text-faint); display: grid; place-items: center; cursor: pointer; padding: 0; }
.cgh-star:hover { color: var(--ceiling-soon-fg); border-color: var(--ceiling-soon-fg); }
.cgh-star[aria-pressed="true"] { color: var(--ceiling-soon-fg); background: var(--ceiling-soon-bg); border-color: transparent; }
.cgh-star[aria-pressed="true"] .cga-ic { fill: currentColor; }
.cgh-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.cgh-main strong { font-size: 14.5px; overflow-wrap: anywhere; }
.cgh-main span { font-size: 12.5px; color: var(--text-muted); overflow-wrap: anywhere; }
.cgh-main em { font-style: normal; font-size: 12px; color: var(--text-faint); }
.cgh-ic { flex: none; min-width: 38px; height: 38px; padding: 0 8px; border: 0; border-radius: 11px; background: transparent; color: var(--text-muted); display: inline-grid; place-items: center; cursor: pointer; font: 600 12.5px 'Work Sans', sans-serif; }
.cgh-ic:hover { background: var(--ceiling-new-bg); color: var(--ceiling-new-fg); }
.cgh-del.confirming, .cgh-del.confirming:hover { background: #A31E1E; color: #fff; }
.cgh-ic:disabled { opacity: .5; cursor: default; }
.cgh-empty { margin: 0 0 12px; font-size: 13.5px; line-height: 1.5; color: var(--text-muted); }
.cgh-actions { margin: 4px 0 12px; }
.cgh-actions .btn-outline { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; background: transparent; font-family: inherit; }
.cgh-actions .btn-outline:hover { background: var(--accent); color: #fff; }
html[data-theme="dark"] .cgh-actions .btn-outline:hover { color: #0E1217; }
.cgh-quick { padding: 14px; margin: 4px 0 8px; border: 1px dashed var(--ceiling-line); border-radius: 14px; }
.cgh-quick[hidden] { display: none; }
.cgh-none { margin-top: 8px; }
.cgl-list { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cgl-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 5px 5px 5px 12px; border-radius: 100px; border: 1px solid var(--ceiling-card-border); background: var(--bg-soft); font-size: 13px; }
.cgl-icao { font-family: 'IBM Plex Mono', monospace; font-weight: 700; letter-spacing: .06em; }
.cgl-name { color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cgl-kind { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 100px; background: var(--ceiling-new-bg); color: var(--ceiling-new-fg); }
.cgl-x { width: 26px; height: 26px; border: 0; border-radius: 50%; background: transparent; color: var(--text-faint); cursor: pointer; display: grid; place-items: center; padding: 0; }
.cgl-x:hover { background: var(--border); color: var(--text); }
.cgl-x .cga-ic { width: 14px; height: 14px; }
.cgl-empty { font-size: 13.5px; color: var(--text-muted); }
.cgc-badge { flex: none; font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 100px; white-space: nowrap; }
.cgc-badge.is-valid { background: var(--ceiling-live-bg); color: var(--ceiling-live-fg); }
.cgc-badge.is-expiring { background: var(--ceiling-soon-bg); color: var(--ceiling-soon-fg); }
.cgc-badge.is-expired { background: #FDE4E4; color: #A31E1E; }
html[data-theme="dark"] .cgc-badge.is-expired { background: #3B1414; color: #FF9C9C; }
@media (prefers-color-scheme: dark) { html[data-theme="auto"] .cgc-badge.is-expired { background: #3B1414; color: #FF9C9C; } }
.cgc-badge.is-none { background: var(--ceiling-plan-bg); color: var(--ceiling-plan-fg); }

/* ---- drawer (aircraft, documents) ------------------------------------------------------ */
html.cgd-lock, html.cgw-lock { overflow: hidden; }
.cgd, .cgk { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1100; }
.cgd-back, .cgk-back, .cgw-back { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(8, 16, 36, .52); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity .22s ease; }
.cgd.is-on .cgd-back, .cgk.is-on .cgk-back, .cgw.is-on .cgw-back { opacity: 1; }
.cgd-panel { position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(540px, 100%); background: var(--bg); box-shadow: -24px 0 60px -30px rgba(8, 16, 36, .6); transform: translateX(28px); opacity: 0; transition: transform .26s cubic-bezier(.2, .8, .2, 1), opacity .2s ease; }
.cgd.is-on .cgd-panel { transform: none; opacity: 1; }
.cgd.is-out .cgd-panel { transform: translateX(28px); opacity: 0; }
.cgd-head { display: flex; align-items: flex-start; gap: 12px; padding: 18px 18px 14px; background: var(--ceiling-grad-sky); color: var(--ceiling-ink); border-bottom: 1px solid var(--ceiling-card-border); }
.cgd-head > div { flex: 1; min-width: 0; }
.cgd-head h3 { margin: 0; font-family: 'Sora', sans-serif; font-size: 18px; overflow-wrap: anywhere; }
.cgd-head p { margin: 4px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--ceiling-ink-soft); }
.cgd-x { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--ceiling-glass-bg); color: var(--ceiling-ink); cursor: pointer; display: grid; place-items: center; padding: 0; }
.cgd-body { flex: 1; overflow-y: auto; padding: 8px 18px 18px; }
.cgd-set { border: 0; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 14px; min-width: 0; }
.cgd-set > .cgf-field { flex: 1 1 calc(50% - 8px); }
.cgd-set > .cgf-wide { flex-basis: 100%; }
.cgd-set legend { float: left; width: 100%; padding: 0; margin: 14px 0 0; font-family: 'Sora', sans-serif; font-size: 13.5px; font-weight: 700; }
.cgd-set legend + * { clear: both; }
.cgd-note { flex-basis: 100%; margin: 0; }
.cgd-formerr { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: #FDE4E4; color: #A31E1E; }
html[data-theme="dark"] .cgd-formerr { background: #3B1414; color: #FF9C9C; }
.cgd-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--border); background: var(--bg); }
.cgd-foot .btn-primary { border: 0; cursor: pointer; font-family: inherit; font-size: 14.5px; padding: 12px 24px; }
.cgd-foot .btn-primary:disabled { opacity: .6; cursor: default; }
.cgd-foot .btn-outline { cursor: pointer; background: transparent; font-family: inherit; padding: 11px 20px; }
@media (max-width: 640px) {
  .cgd-panel { top: auto; left: 0; width: 100%; max-height: 94vh; max-height: 94dvh; border-radius: 22px 22px 0 0; transform: translateY(40px); box-shadow: 0 -20px 50px -24px rgba(8, 16, 36, .6); }
  .cgd.is-out .cgd-panel { transform: translateY(40px); }
  .cgd-set > .cgf-field { flex-basis: 100%; }
  .cgd-head { border-radius: 22px 22px 0 0; }
}

/* ---- completion wizard ---------------------------------------------------------------------- */
.cgw { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.cgw-back { background: radial-gradient(120% 90% at 50% 0%, rgba(34, 82, 204, .55), rgba(8, 16, 36, .78)); }
.cgw-card { position: relative; width: min(660px, 100%); max-height: min(94vh, 820px); max-height: min(94dvh, 820px); display: flex; flex-direction: column; overflow: hidden; border-radius: 26px; background: var(--bg); box-shadow: 0 40px 90px -30px rgba(4, 10, 26, .8); transform: translateY(18px) scale(.985); opacity: 0; transition: transform .32s cubic-bezier(.2, .8, .2, 1), opacity .24s ease; }
.cgw.is-on .cgw-card { transform: none; opacity: 1; }
.cgw.is-out .cgw-card { transform: translateY(14px); opacity: 0; }
.cgw.is-out .cgw-back { opacity: 0; }
.cgw-head { position: relative; isolation: isolate; overflow: hidden; flex: none; padding: 16px 22px 18px; background: var(--ceiling-grad-sky); color: var(--ceiling-ink); }
.cgw-sky { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.cgw-sky span { position: absolute; border-radius: 50%; background: var(--ceiling-cloud-mid); opacity: var(--ceiling-cloud-mid-o); animation: cgw-drift 18s ease-in-out infinite alternate; }
.cgw-sky .c1 { width: 190px; height: 56px; right: -30px; top: 8px; }
.cgw-sky .c2 { width: 140px; height: 42px; right: 140px; top: 40px; animation-duration: 24s; animation-delay: -6s; opacity: calc(var(--ceiling-cloud-far-o) + .1); }
.cgw-sky .c3 { width: 220px; height: 60px; left: -60px; bottom: -22px; animation-duration: 28s; }
@keyframes cgw-drift { from { transform: translate3d(-16px, 0, 0); } to { transform: translate3d(22px, 0, 0); } }
.cgw-head-row { display: flex; align-items: center; gap: 12px; }
.cgw-head .cg-wordmark { color: var(--ceiling-ink); padding-bottom: .24em; }
.cgw-head .cg-wordmark__a { color: var(--ceiling-ink); }
.cgw-pill { margin-left: auto; min-width: 0; }
.cgw-later { flex: none; border: 1px solid var(--ceiling-glass-border); background: var(--ceiling-glass-bg); color: var(--ceiling-ink); border-radius: 100px; padding: 8px 16px; font: 600 13px 'Work Sans', sans-serif; cursor: pointer; }
.cgw-later:hover { border-color: var(--accent); }
.cgw-steps { display: flex; list-style: none; margin: 14px 0 0; padding: 0; gap: 6px; }
.cgw-st { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; position: relative; min-width: 0; }
.cgw-st:not(:last-child)::after { content: ""; position: absolute; top: 15px; left: calc(50% + 20px); right: calc(-50% + 20px); border-top: 2px dashed var(--ceiling-line); }
.cgw-st.is-done:not(:last-child)::after, .cgw-st.is-all:not(:last-child)::after { border-top-style: solid; border-top-color: var(--ceiling-live-fg); opacity: .6; }
.cgw-dot { position: relative; width: 31px; height: 31px; border-radius: 50%; border: 2px solid var(--ceiling-line); background: var(--ceiling-glass-bg); color: var(--ceiling-ink-soft); font: 700 13px 'Sora', sans-serif; cursor: pointer; display: grid; place-items: center; padding: 0; z-index: 1; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.cgw-dot:disabled { cursor: default; opacity: .7; }
.cgw-ck { display: none; }
.cgw-ck .cga-ic { width: 15px; height: 15px; stroke-width: 2.6; }
.cgw-st.is-cur .cgw-dot { background: var(--accent); border-color: var(--accent); color: #fff; transform: scale(1.1); }
html[data-theme="dark"] .cgw-st.is-cur .cgw-dot { color: #0E1217; }
.cgw-st.is-done .cgw-dot, .cgw-st.is-all .cgw-dot { background: var(--ceiling-live-bg); border-color: var(--ceiling-live-fg); color: var(--ceiling-live-fg); }
.cgw-st.is-done .cgw-n, .cgw-st.is-all .cgw-n { display: none; }
.cgw-st.is-done .cgw-ck, .cgw-st.is-all .cgw-ck { display: grid; }
.cgw-st em { font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--ceiling-ink-soft); text-align: center; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cgw-st.is-cur em { color: var(--ceiling-ink); }
.cgw-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--ceiling-line); }
.cgw-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .4s ease; }
.cgw-body { flex: 1; overflow-y: auto; padding: 22px 24px 10px; overscroll-behavior: contain; }
.cgw-h { margin: 0; font-family: 'Sora', sans-serif; font-size: clamp(21px, 3.4vw, 25px); letter-spacing: -0.015em; outline: none; }
.cgw-lede { margin: 6px 0 18px; font-size: 14px; line-height: 1.55; color: var(--text-muted); min-height: 1px; }
.cgw-step.in-fwd { animation: cgw-in-f .3s cubic-bezier(.2, .8, .2, 1); }
.cgw-step.in-back { animation: cgw-in-b .3s cubic-bezier(.2, .8, .2, 1); }
@keyframes cgw-in-f { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
@keyframes cgw-in-b { from { opacity: 0; transform: translateX(-22px); } to { opacity: 1; transform: none; } }
.cgw-foot { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 24px; border-top: 1px solid var(--border); background: var(--bg); }
.cgw-legend { margin: 0; font-size: 12.5px; color: var(--text-muted); }
.cgw-btns { display: flex; gap: 10px; margin-left: auto; }
.cgw-btns .btn-primary { border: 0; cursor: pointer; font-family: inherit; font-size: 14.5px; padding: 12px 26px; }
.cgw-btns .btn-primary:disabled { opacity: .6; cursor: default; }
.cgw-btns .btn-outline { cursor: pointer; background: transparent; font-family: inherit; padding: 11px 20px; }
.cgw-btns [hidden] { display: none; }
.cgw-recap { margin-bottom: 8px; }
.cgw.is-done-view .cgw-foot { display: none; }
.cgw-win { text-align: center; padding: 6px 0 16px; }
.cgw-win-art { position: relative; display: inline-block; padding: 14px 34px 0; border-radius: 22px; overflow: hidden; background: var(--ceiling-grad-sky); }
.cgw-win-art svg { display: block; }
.cgw-win-art .s { fill: var(--ceiling-sun); }
.cgw-win-art .g { animation: cgw-pulse 3s ease-in-out infinite; transform-origin: 150px 46px; }
.cgw-win-art .rays { stroke: var(--ceiling-sun); stroke-width: 3; stroke-linecap: round; fill: none; transform-origin: 150px 46px; animation: cgw-spin 30s linear infinite; }
.cgw-win-art .cl { fill: #fff; animation: cgw-float 5s ease-in-out infinite alternate; }
html[data-theme="dark"] .cgw-win-art .cl { fill: var(--ceiling-cloud-front); }
@media (prefers-color-scheme: dark) { html[data-theme="auto"] .cgw-win-art .cl { fill: var(--ceiling-cloud-front); } }
.cgw-win-art .ok circle { fill: var(--ceiling-live-bg); stroke: var(--ceiling-live-fg); stroke-width: 3; transform-origin: 108px 82px; animation: cgw-pop .5s .15s cubic-bezier(.3, 1.6, .5, 1) both; }
.cgw-win-art .ok path { fill: none; stroke: var(--ceiling-live-fg); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: cga-draw .6s .5s forwards; }
.cgw-win-art::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none; background:
  radial-gradient(circle 3px at 12% 70%, #fff 98%, transparent) , radial-gradient(circle 2.5px at 22% 30%, var(--ceiling-sun) 98%, transparent), radial-gradient(circle 3px at 86% 64%, #fff 98%, transparent), radial-gradient(circle 2px at 74% 20%, var(--ceiling-sun) 98%, transparent), radial-gradient(circle 2.5px at 40% 12%, #fff 98%, transparent); animation: cgw-spark 2.4s ease-in-out infinite; opacity: .9; }
@keyframes cgw-pulse { 50% { transform: scale(1.08); } }
@keyframes cgw-spin { to { transform: rotate(360deg); } }
@keyframes cgw-float { to { transform: translateX(8px); } }
@keyframes cgw-pop { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes cgw-spark { 0%, 100% { opacity: .2; transform: translateY(4px); } 50% { opacity: 1; transform: translateY(-4px); } }
.cgw-win-t { margin: 18px 0 4px; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 18px; }
.cgw-win-s { margin: 0 auto 18px; max-width: 420px; font-size: 14px; line-height: 1.55; color: var(--text-muted); }
.cgw-win-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.cgw-win-btns .btn-primary { border: 0; cursor: pointer; font-family: inherit; font-size: 14.5px; padding: 12px 24px; }
.cgw-win-btns .btn-outline { cursor: pointer; background: transparent; font-family: inherit; padding: 11px 22px; }
@media (max-width: 640px) {
  .cgw { padding: 0; align-items: flex-end; }
  .cgw-card { width: 100%; max-height: 100vh; max-height: 100dvh; height: 100vh; height: 100dvh; border-radius: 0; }
  .cgw-head { padding: 12px 16px 14px; }
  .cgw-body { padding: 18px 16px 8px; }
  .cgw-foot { padding: 12px 16px; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .cgw-st em { display: none; }
  .cgw-st.is-cur em { display: block; position: absolute; top: 36px; white-space: nowrap; }
  .cgw-steps { margin-bottom: 18px; }
  .cgw-pill .cgs-ago, .cgw-pill .cgs-main { display: none; }
  .cgw-legend { font-size: 12px; }
  .cgw-later { padding: 8px 14px; }
}

/* ---- conflicts ----------------------------------------------------------------------------- */
.cgk { display: flex; align-items: center; justify-content: center; padding: 16px; }
.cgk-card { position: relative; width: min(620px, 100%); max-height: 92vh; max-height: 92dvh; display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: var(--bg); box-shadow: 0 40px 90px -30px rgba(4, 10, 26, .8); transform: translateY(14px); opacity: 0; transition: transform .28s cubic-bezier(.2, .8, .2, 1), opacity .2s ease; }
.cgk.is-on .cgk-card { transform: none; opacity: 1; }
.cgk.is-out .cgk-card { opacity: 0; }
.cgk-head { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px; background: var(--ceiling-soon-bg); color: var(--ceiling-soon-fg); }
.cgk-head h2 { margin: 0; font-family: 'Sora', sans-serif; font-size: 18px; }
.cgk-head p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.5; }
.cgk-ic { flex: none; }
.cgk-ic .cs { fill: var(--ceiling-soon-bg); stroke: currentColor; stroke-width: 1.5; }
.cgk-ic .cl { transform: translateX(1px); } .cgk-ic .cr { transform: translateX(-1px); }
.cgk-body { overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.cgk-row { margin: 0; padding: 0; border: 0; min-width: 0; }
.cgk-row legend { padding: 0; margin-bottom: 6px; font-size: 13px; font-weight: 700; }
.cgk-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cgk-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--bg-soft); color: var(--text); font: inherit; cursor: pointer; min-width: 0; }
.cgk-opt:hover { border-color: var(--accent); }
.cgk-opt.is-on { border-color: var(--accent); background: var(--ceiling-new-bg); }
.cgk-who { font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--text-faint); }
.cgk-val { font-size: 14.5px; font-weight: 600; overflow-wrap: anywhere; }
.cgk-act { font-size: 12px; color: var(--accent); font-weight: 600; }
.cgk-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; padding: 14px 20px; border-top: 1px solid var(--border); }
.cgk-all { display: flex; gap: 14px; flex-wrap: wrap; }
.cgk-btns { display: flex; gap: 10px; margin-left: auto; }
.cgk-btns .btn-primary { border: 0; cursor: pointer; font-family: inherit; padding: 11px 22px; }
.cgk-btns .btn-primary:disabled { opacity: .5; cursor: default; }
.cgk-btns .btn-outline { cursor: pointer; background: transparent; font-family: inherit; padding: 10px 18px; }
@media (max-width: 520px) { .cgk-opts { grid-template-columns: minmax(0, 1fr); } .cgk-head { padding: 16px; } .cgk-body { padding: 14px 16px; } .cgk-foot { padding: 12px 16px; } }

/* ---- Applications ---------------------------------------------------------------------------- */
.cga-apps-intro { margin-bottom: 16px; }
.cga-apps-intro h2 { margin: 0 0 6px; font-family: 'Sora', sans-serif; font-size: 22px; }
.cga-apps-intro p { margin: 0; max-width: 680px; font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.cga-vpanel { display: grid; gap: 18px; padding: 22px 24px; margin-bottom: 16px; }
.cga-vpanel > div { display: grid; gap: 18px; }
.cga-vstat { display: flex; align-items: center; gap: 16px; }
.cga-vstat h2 { margin: 0; font-family: 'Sora', sans-serif; font-size: 20px; }
.cga-vstat.is-ok h2 { color: var(--ceiling-live-fg); }
.cga-vstat.is-attention h2, .cga-vstat.is-offline h2 { color: var(--ceiling-soon-fg); }
.cga-vstat p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--text-muted); }
.cga-vstat .cga-vwhen { font-size: 12.5px; color: var(--text-faint); }
.cga-vicon { flex: none; width: 66px; height: 66px; border-radius: 20px; display: grid; place-items: center; background: var(--ceiling-grad-sky); border: 1px solid var(--ceiling-card-border); }
.cga-vicon .cgs-svg { width: 46px; height: 46px; }
.cga-vgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 0; }
.cga-vgrid > div { padding: 12px 14px; border: 1px solid var(--ceiling-card-border); border-radius: 12px; background: var(--bg-soft); }
.cga-vgrid dt { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--text-faint); }
.cga-vgrid dd { margin: 4px 0 0; font-family: 'Sora', sans-serif; font-size: 17px; font-weight: 700; }
.cga-vgrid em { display: block; margin-top: 2px; font-style: normal; font-size: 12px; color: var(--text-faint); }
.cga-vgrid .is-key { background: var(--ceiling-new-bg); border-color: transparent; }
.cga-vgrid .is-key dd { font-size: 24px; color: var(--ceiling-new-fg); }
.cga-vact { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
.cga-vnow { border: 0; cursor: pointer; font-family: inherit; font-size: 14px; padding: 12px 22px; }
.cga-vnow:disabled { opacity: .65; cursor: default; }
.cga-vnote { font-size: 12.5px; color: var(--text-faint); }
.cga-app-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.cga-app { display: flex; flex-direction: column; gap: 12px; padding: 18px; }
.cga-app.is-soon { border-style: dashed; background: transparent; box-shadow: none; }
.cga-app-head { display: flex; align-items: flex-start; gap: 12px; }
.cga-app-ico { width: 46px; height: 46px; flex: none; border-radius: 12px; object-fit: cover; border: 1px solid var(--ceiling-card-border); }
.cga-app-ico.is-soon { display: grid; place-items: center; background: var(--ceiling-new-bg); color: var(--ceiling-new-fg); border: 1px dashed var(--accent); }
.cga-app-id { flex: 1; min-width: 0; }
.cga-app-id h3 { margin: 0; font-family: 'Sora', sans-serif; font-size: 16px; }
.cga-app-id p { margin: 3px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--text-muted); }
.cga-app-head .cg-badge { flex: none; align-self: flex-start; white-space: normal; text-align: left; max-width: 46%; }
.cga-app-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; margin: 0; }
.cga-app-meta dt { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--text-faint); }
.cga-app-meta dd { margin: 2px 0 0; font-size: 13px; overflow-wrap: anywhere; }
.cga-app-note { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--ceiling-wash); color: var(--text-muted); font-size: 12.5px; line-height: 1.5; }
.cga-app-ctl { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 12px; margin-top: auto; border-top: 1px solid var(--ceiling-card-border); }
.cga-app-sw input:disabled + .set-switch-ui { opacity: .5; }
.cga-app-erase { text-align: left; }
.cga-app-erase:disabled { opacity: .5; cursor: default; text-decoration: none; }
.cga-journal { padding: 22px 24px; }
.cga-j-head h2 { margin: 0; font-family: 'Sora', sans-serif; font-size: 18px; }
.cga-j-head p { margin: 4px 0 0; font-size: 13px; color: var(--text-muted); }
.cga-j-list { list-style: none; margin: 18px 0 0; padding: 0 0 0 7px; border-left: 2px solid var(--ceiling-line); }
.cga-j-item { position: relative; padding: 0 0 16px 20px; }
.cga-j-item:last-child { padding-bottom: 2px; }
.cga-j-dot { position: absolute; left: -9px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 3px solid var(--ceiling-card-bg); box-sizing: border-box; }
.cga-j-item[data-app="web"] .cga-j-dot { background: var(--ceiling-sky-400); }
.cga-j-item strong { display: block; font-size: 14px; line-height: 1.35; }
.cga-j-meta { display: block; margin-top: 2px; font-size: 12.5px; color: var(--text-faint); }
.cga-j-empty { margin: 14px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--text-muted); }
.cga-j-more { margin-top: 6px; }
.cga-unavail { padding: 22px 24px; }
.cga-unavail h2 { margin: 0 0 6px; font-family: 'Sora', sans-serif; font-size: 18px; }
.cga-unavail p { margin: 0 0 12px; font-size: 14px; line-height: 1.55; color: var(--text-muted); }
.cga-unavail .btn-outline { cursor: pointer; background: transparent; font-family: inherit; }

/* ---- sign-up form ------------------------------------------------------------------------------ */
.auth-row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.auth-legend { margin: 0 0 12px; font-size: 12.5px; line-height: 1.5; color: var(--text-muted); }

/* ---- sync visuals (assets/js/ceiling-sync-ui.js) -------------------------------------------------- */
.cgs-wrap { position: relative; display: inline-flex; min-width: 0; max-width: 100%; }
.cgs-pill { display: inline-flex; align-items: center; gap: 8px; height: 38px; max-width: 100%; padding: 0 14px 0 5px; border-radius: 100px; border: 1px solid var(--ceiling-glass-border); background: var(--ceiling-glass-bg); -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2); color: var(--ceiling-ink); font: 600 12.5px/1 'Work Sans', sans-serif; cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.cgs-pill:hover { border-color: var(--accent); }
.cgs-pill:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.cgs-ico { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; }
.cgs-txt { display: inline-flex; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cgs-main { overflow: hidden; text-overflow: ellipsis; }
.cgs-rev { font-family: 'IBM Plex Mono', monospace; font-weight: 600; font-variant-numeric: tabular-nums; }
.cgs-ago { font-weight: 500; color: var(--ceiling-ink-soft); font-variant-numeric: tabular-nums; }
.cgs-act { margin-left: 2px; font-weight: 700; color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.cgs-act[hidden] { display: none; }
.cgs-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.cgs-pill[data-kind="error"] { border-color: color-mix(in srgb, #C22828 55%, transparent); }
.cgs-pill[data-kind="conflict"] { border-color: color-mix(in srgb, var(--ceiling-soon-fg) 55%, transparent); }
.cgs-pill[data-kind="offline"], .cgs-pill[data-kind="paused"] { color: var(--ceiling-ink-soft); }
.cgs-pill.is-fresh { animation: cgs-fresh 1.4s ease-out; }
@keyframes cgs-fresh { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ceiling-live-fg) 45%, transparent); } 100% { box-shadow: 0 0 0 12px transparent; } }

/* The icon: one <g> per state, shown by [data-kind] on the pill (or on the big icon of the versions panel). */
.cgs-svg g { display: none; }
[data-kind="idle"] .k-sun, [data-kind="synced"] .k-sun, [data-kind="syncing"] .k-sync, [data-kind="offline"] .k-off, [data-kind="error"] .k-err, [data-kind="conflict"] .k-conf, [data-kind="paused"] .k-pause { display: inline; }
.cgs-svg { overflow: visible; }
.cgs-cloud { fill: var(--ceiling-card-bg); stroke: var(--accent); stroke-width: 1.5; stroke-linejoin: round; }
.cgs-sun { fill: var(--ceiling-sun); }
.cgs-rays { fill: none; stroke: var(--ceiling-sun); stroke-width: 1.5; stroke-linecap: round; transform-origin: 23px 9.5px; }
.cgs-tick { fill: none; stroke: var(--ceiling-live-fg); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[data-kind="idle"] .cgs-tick { opacity: 0; }
.cgs-pill.is-fresh .cgs-tick { stroke-dasharray: 14; animation: cga-draw-s .6s ease-out; }
.cgs-pill.is-fresh .cgs-rays { animation: cgs-spin 1.2s ease-out; }
@keyframes cga-draw-s { from { stroke-dashoffset: 14; } to { stroke-dashoffset: 0; } }
@keyframes cgs-spin { to { transform: rotate(90deg); } }
.cgs-dot { fill: var(--accent); opacity: 0; animation: cgs-rise 1.5s ease-in infinite; }
.cgs-dot.d2 { animation-delay: .25s; } .cgs-dot.d3 { animation-delay: .5s; }
@keyframes cgs-rise { 0% { opacity: 0; transform: translateY(2px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-12px); } }
.cgs-cloud-a { animation: cgs-bob 2.2s ease-in-out infinite alternate; }
.cgs-cloud-b { animation: cgs-drift 3.2s ease-in-out infinite alternate; }
@keyframes cgs-bob { to { transform: translateY(-1.5px); } }
@keyframes cgs-drift { from { transform: translateX(-3px); } to { transform: translateX(3px); } }
.cgs-dash { fill: none; stroke: var(--text-muted); stroke-width: 1.6; stroke-dasharray: 2.5 3; stroke-linecap: round; }
.cgs-slash { fill: none; stroke: var(--text-muted); stroke-width: 1.6; stroke-linecap: round; }
.cgs-storm { fill: #D9DFEC; stroke: #566079; }
html[data-theme="dark"] .cgs-storm { fill: #38415A; stroke: #A9B3C4; }
@media (prefers-color-scheme: dark) { html[data-theme="auto"] .cgs-storm { fill: #38415A; stroke: #A9B3C4; } }
.cgs-bolt { fill: var(--ceiling-sun); stroke: #B45309; stroke-width: .8; stroke-linejoin: round; animation: cgs-flicker 2.4s steps(1) infinite; }
@keyframes cgs-flicker { 0%, 100% { opacity: 1; } 46% { opacity: 1; } 48% { opacity: .35; } 52% { opacity: 1; } }
.cgs-cl { animation: cgs-merge-l 1.8s ease-in-out infinite alternate; }
.cgs-cr { animation: cgs-merge-r 1.8s ease-in-out infinite alternate; }
@keyframes cgs-merge-l { to { transform: translateX(3px); } }
@keyframes cgs-merge-r { to { transform: translateX(-3px); } }
.cgs-excl { fill: none; stroke: var(--ceiling-soon-fg); stroke-width: 2; stroke-linecap: round; }
.cgs-bars { fill: none; stroke: var(--ceiling-ink-soft); stroke-width: 2.2; stroke-linecap: round; }

/* Sky overlay */
.cgs-ov { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(8, 16, 36, .46); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity .22s ease; }
.cgs-ov.is-on { opacity: 1; }
.cgs-ov.is-out { opacity: 0; pointer-events: none; }
.cgs-ov--inline { position: absolute; z-index: 40; border-radius: inherit; background: color-mix(in srgb, var(--bg) 62%, transparent); }
.cgs-host { position: relative; }
.cgs-ov[data-state="done"] { pointer-events: none; }
.cgs-sheet { width: min(360px, 100%); border-radius: 24px; overflow: hidden; background: var(--ceiling-card-bg); border: 1px solid var(--ceiling-card-border); box-shadow: 0 30px 80px -24px rgba(6, 14, 34, .7); transform: translateY(12px) scale(.98); transition: transform .3s cubic-bezier(.2, .8, .2, 1); outline: none; }
.cgs-ov.is-on .cgs-sheet { transform: none; }
.cgs-scene { position: relative; height: 170px; background: var(--ceiling-grad-sky); }
.cgs-scene-svg { display: block; width: 100%; height: 100%; }
.cgs-scene-svg .s0 { stop-color: var(--ceiling-sky-top); } .cgs-scene-svg .s1 { stop-color: var(--ceiling-sky-mid); } .cgs-scene-svg .s2 { stop-color: var(--ceiling-sky-bottom); }
.cgs-layer { will-change: transform; animation: cgs-pan 36s linear infinite; }
.cgs-l1 { fill: var(--ceiling-cloud-far); opacity: calc(var(--ceiling-cloud-far-o) + .25); animation-duration: 52s; }
.cgs-l2 { fill: var(--ceiling-cloud-mid); opacity: calc(var(--ceiling-cloud-mid-o) + .1); animation-duration: 30s; }
@keyframes cgs-pan { to { transform: translate3d(-320px, 0, 0); } }
.cgs-sundisc { fill: var(--ceiling-sun); }
.cgs-glint { fill: #fff; opacity: 0; transform-origin: 262px 34px; }
.cgs-ov[data-state="done"] .cgs-glint { animation: cgs-glint 1s ease-out; }
@keyframes cgs-glint { 0% { opacity: .95; transform: scale(1); } 100% { opacity: 0; transform: scale(5); } }
.cgs-ceil-line { fill: none; stroke: var(--accent); stroke-width: 1.2; stroke-dasharray: 5 5; opacity: .75; }
.cgs-ceil-txt { font: 600 8px 'IBM Plex Mono', monospace; letter-spacing: .14em; fill: var(--accent); }
.cgs-plane { transform: translate(calc(30px + var(--p, 0) * 200px), calc(146px - var(--p, 0) * 94px)); transition: transform .55s cubic-bezier(.3, .7, .3, 1); }
.cgs-plane-in { transform: rotate(-11deg); animation: cgs-fly 1.6s ease-in-out infinite alternate; }
@keyframes cgs-fly { to { transform: rotate(-7deg) translateY(-2px); } }
.cgs-plane .pl-b { fill: #fff; stroke: var(--accent); stroke-width: 1.2; }
.cgs-plane .pl-w { fill: var(--accent); } .cgs-plane .pl-t { fill: var(--accent); } .cgs-plane .pl-c { fill: var(--ceiling-sun); }
html[data-theme="dark"] .cgs-plane .pl-b { fill: #E9ECF1; }
@media (prefers-color-scheme: dark) { html[data-theme="auto"] .cgs-plane .pl-b { fill: #E9ECF1; } }
.cgs-front rect { fill: var(--ceiling-card-bg); opacity: 0; }
.cgs-bigcheck, .cgs-bolt-big { position: absolute; left: 50%; top: 50%; margin: -24px 0 0 -24px; opacity: 0; transform: scale(.4); transition: opacity .25s ease, transform .4s cubic-bezier(.3, 1.6, .5, 1); pointer-events: none; }
.cgs-bigcheck circle { fill: var(--ceiling-live-bg); stroke: var(--ceiling-live-fg); stroke-width: 2.5; }
.cgs-bigcheck path { fill: none; stroke: var(--ceiling-live-fg); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 36; stroke-dashoffset: 36; }
.cgs-ov[data-state="done"] .cgs-bigcheck { opacity: 1; transform: none; }
.cgs-ov[data-state="done"] .cgs-bigcheck path { animation: cga-draw .5s .25s ease-out forwards; stroke-dashoffset: 0; }
.cgs-bolt-big path { fill: var(--ceiling-sun); stroke: #B45309; stroke-width: 1.5; stroke-linejoin: round; }
.cgs-ov[data-state="error"] .cgs-bolt-big { opacity: 1; transform: none; }
.cgs-ov[data-state="error"] .cgs-scene::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(34, 40, 66, .38); }
.cgs-ov[data-state="error"] .cgs-plane-in, .cgs-ov[data-state="error"] .cgs-layer { animation-play-state: paused; }
.cgs-body { display: flex; align-items: center; gap: 14px; padding: 16px 18px 18px; }
.cgs-ring { flex: none; transform: rotate(-90deg); }
.cgs-ring circle { fill: none; stroke-width: 4; }
.cgs-ring .r0 { stroke: var(--ceiling-line); }
.cgs-ring .r1 { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .45s ease, stroke .3s ease; }
.cgs-ov[data-state="done"] .cgs-ring .r1 { stroke: var(--ceiling-live-fg); }
.cgs-ov[data-state="error"] .cgs-ring .r1 { stroke: #C22828; }
.cgs-words { min-width: 0; }
.cgs-title { margin: 0; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 16px; line-height: 1.25; color: var(--text); }
.cgs-text { margin: 3px 0 0; font-size: 13px; line-height: 1.45; color: var(--text-muted); }
.cgs-btns { display: flex; gap: 10px; padding: 0 18px 18px; }
.cgs-btns[hidden], .cgs-btns [hidden] { display: none; }
.cgs-btns .btn-primary { border: 0; cursor: pointer; font-family: inherit; font-size: 14px; padding: 11px 22px; }
.cgs-btns .btn-outline { cursor: pointer; background: transparent; font-family: inherit; padding: 10px 18px; }
.cgs-ov--inline .cgs-sheet { box-shadow: 0 20px 50px -20px rgba(6, 14, 34, .55); }

/* Toasts */
.cgs-toasts { position: fixed; left: 50%; bottom: 20px; z-index: 1300; display: flex; flex-direction: column; gap: 8px; width: min(440px, calc(100% - 24px)); transform: translateX(-50%); pointer-events: none; }
.cgs-toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; border-radius: 16px; background: var(--ceiling-card-bg); border: 1px solid var(--ceiling-card-border); box-shadow: 0 18px 40px -18px rgba(6, 14, 34, .6); color: var(--text); font-size: 13.5px; line-height: 1.4; opacity: 0; transform: translateY(16px); transition: opacity .25s ease, transform .3s cubic-bezier(.2, .8, .2, 1); }
.cgs-toast.is-on { opacity: 1; transform: none; }
.cgs-toast.is-out { opacity: 0; transform: translateY(10px); }
.cgs-toast-ico { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; overflow: hidden; background: var(--ceiling-grad-sky); }
.cgs-toast-ico svg { overflow: visible; }
.cgs-toast-t { flex: 1; min-width: 0; font-weight: 600; }
.cgs-toast-a { flex: none; border: 0; background: var(--ceiling-new-bg); color: var(--ceiling-new-fg); border-radius: 100px; padding: 6px 12px; font: 700 12.5px 'Work Sans', sans-serif; cursor: pointer; }
.cgs-toast-x { flex: none; width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: var(--text-faint); font-size: 18px; line-height: 1; cursor: pointer; }
.cgs-toast-x:hover { background: var(--border); }
.cgs-toast-cloud { animation: cgs-bob 2.2s ease-in-out infinite alternate; }
.cgs-toast-cloud2 { animation: cgs-toast-drift 3.4s ease-in-out infinite alternate; }
@keyframes cgs-toast-drift { from { transform: translateX(-6px); } to { transform: translateX(5px); } }
.cgs-toast--ok .cgs-tick { stroke-dasharray: 14; animation: cga-draw-s .6s .15s ease-out both; }
@media (max-width: 640px) { .cgs-toasts { bottom: 76px; } }

/* A field that was just changed elsewhere */
.cgs-flash { animation: cgs-flash 2.4s ease-out; border-radius: 10px; }
@keyframes cgs-flash { 0% { background-color: color-mix(in srgb, var(--accent) 24%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 24%, transparent); } 100% { background-color: transparent; box-shadow: 0 0 0 4px transparent; } }

/* ---- responsive ------------------------------------------------------------------------------------ */
@media (max-width: 860px) {
  .cga-hero { grid-template-columns: minmax(0, 1fr); }
  .cga-app-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .cga-head { padding: 14px 16px 18px; border-radius: 20px; }
  .cga-brand { font-size: 24px; }
  .cga-head-tools { width: 100%; justify-content: flex-start; }
  .cgf-grid, .cgf-grid-3 { grid-template-columns: minmax(0, 1fr); }
  .cgf-field input[type="text"], .cgf-field input[type="date"], .cgf-field input[type="tel"], .cgf-field select, .cgf-field textarea { font-size: 16px; }
  .cga-sec > summary { flex-wrap: wrap; padding-right: 44px; }
  .cga-sec-end { flex-basis: 100%; justify-content: flex-start; padding-left: 50px; margin-top: -2px; }
  .cgf-status { min-width: 0; text-align: left; }
  .cga-sec-body { padding: 14px; }
  .cga-pcard { padding: 18px 16px 12px; border-radius: 20px; }
  .cga-pc-grid { gap: 10px 14px; }
  .cga-todo { padding: 18px 16px; }
  .cga-vpanel, .cga-journal { padding: 18px 16px; }
  .cga-vstat { align-items: flex-start; }
  .cga-app-meta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cga-app-head { flex-wrap: wrap; }
  .cga-app-head .cg-badge { max-width: 100%; margin-left: 58px; }
  .cga-panel-meta { align-items: flex-start; }
  .cgh-row { flex-wrap: wrap; }
  .cgh-main { flex-basis: calc(100% - 60px); }
  .cgs-ago { display: none; }
  .cgs-pill { height: 36px; }
  .cga-banner { flex-wrap: wrap; }
  .cga-banner-cta { margin-left: 0; }
}
@media (max-width: 400px) {
  .auth-row2 { grid-template-columns: minmax(0, 1fr); }
  .cga-pc-top { flex-wrap: wrap; }
}

/* ---- motion ------------------------------------------------------------------------------------------ */
html[data-motion="reduce"] .cga-cloudrow, html[data-motion="reduce"] .cgw-sky span, html[data-motion="reduce"] .cgs-layer, html[data-motion="reduce"] .cgs-plane-in,
html[data-motion="reduce"] .cgs-dot, html[data-motion="reduce"] .cgs-cloud-a, html[data-motion="reduce"] .cgs-cloud-b, html[data-motion="reduce"] .cgs-cl, html[data-motion="reduce"] .cgs-cr,
html[data-motion="reduce"] .cgs-bolt, html[data-motion="reduce"] .cgs-toast-cloud, html[data-motion="reduce"] .cgs-toast-cloud2, html[data-motion="reduce"] .cgw-win-art *, html[data-motion="reduce"] .cgw-win-art::before,
html[data-motion="reduce"] .cgs-pill.is-fresh, html[data-motion="reduce"] .cgs-flash { animation: none !important; }
html[data-motion="reduce"] .cgs-plane, html[data-motion="reduce"] .cgs-ring .r1, html[data-motion="reduce"] .cga-ring .ra, html[data-motion="reduce"] .cga-bar i, html[data-motion="reduce"] .cgw-card, html[data-motion="reduce"] .cgd-panel, html[data-motion="reduce"] .cgs-sheet, html[data-motion="reduce"] .cgs-toast, html[data-motion="reduce"] .cgk-card { transition: none !important; }
html[data-motion="reduce"] .cgs-dot { opacity: 1; }
html[data-motion="reduce"] .cgw-win-art .ok path, html[data-motion="reduce"] .cgs-ov[data-state="done"] .cgs-bigcheck path, html[data-motion="reduce"] .cga-done-svg .t { stroke-dashoffset: 0 !important; }
@media (prefers-reduced-motion: reduce) {
  .cga-cloudrow, .cgw-sky span, .cgs-layer, .cgs-plane-in, .cgs-dot, .cgs-cloud-a, .cgs-cloud-b, .cgs-cl, .cgs-cr, .cgs-bolt, .cgs-toast-cloud, .cgs-toast-cloud2, .cgw-win-art *, .cgw-win-art::before, .cgs-pill.is-fresh, .cgs-flash, .cgw-step { animation: none !important; }
  .cgs-plane, .cgs-ring .r1, .cga-ring .ra, .cga-bar i, .cgw-card, .cgd-panel, .cgs-sheet, .cgs-toast, .cgk-card, .cgd-back, .cgw-back { transition: none !important; }
  .cgs-dot { opacity: 1; }
  .cgw-win-art .ok path, .cgs-ov[data-state="done"] .cgs-bigcheck path, .cga-done-svg .t { stroke-dashoffset: 0 !important; }
}
