/* ==========================================================================
   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-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.cgp-plan { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 26px 24px 24px; }
.cgp-plan h3 { margin: 4px 0 0; font-family: 'Sora', sans-serif; font-weight: 600; font-size: 20px; letter-spacing: -0.01em; }
.cgp-plan p { margin: 0; flex: 1; font-size: 14.5px; line-height: 1.65; color: var(--text-muted); }
.cgp-plan .link { font-size: 14px; font-weight: 600; }
.cgp-plan.is-pilote { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--ceiling-card-shadow); }
.cgp-plans-note { margin: 24px auto 0; max-width: 720px; text-align: center; font-size: 14.5px; line-height: 1.6; color: var(--text-muted); }
@media (max-width: 760px) { .cgp-plans { grid-template-columns: minmax(0, 1fr); } }
.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; }
/* Not Pilote: the hangar and the documents are read-only previews (docs/ceiling-api.md, section 5k). */
.cgh-row.is-readonly { cursor: default; }
.cga-pilote-lock { margin: 4px 0 12px; padding: 14px 16px; border: 1px dashed var(--ceiling-line); border-radius: 14px; background: var(--bg-soft); }
.cga-pilote-lock p { margin: 0 0 10px; font-size: 13.5px; line-height: 1.55; color: var(--text-muted); overflow-wrap: anywhere; }
.cga-pilote-lock .cga-pilote-lock-t { margin-bottom: 4px; color: var(--text); }
.cga-pilote-lock .btn-outline { display: inline-flex; align-items: center; gap: 6px; }
.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-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; }
[data-kind="idle"] .cgs-svg, [data-kind="synced"] .cgs-svg { color: var(--ceiling-live-fg); }
[data-kind="syncing"] .cgs-svg { color: var(--accent); animation: cgs-pulse 1.4s ease-in-out infinite; }
[data-kind="offline"] .cgs-svg, [data-kind="paused"] .cgs-svg { color: var(--text-muted); }
[data-kind="error"] .cgs-svg { color: #C22828; }
[data-kind="conflict"] .cgs-svg { color: var(--ceiling-soon-fg); }
@keyframes cgs-pulse { 50% { opacity: .45; } }

/* 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; background: var(--ceiling-wash); color: var(--accent); }
.cgs-toast--ok .cgs-toast-ico { color: var(--ceiling-live-fg); }
.cgs-toast--warn .cgs-toast-ico { color: var(--ceiling-soon-fg); }
.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); }
@keyframes cgs-toast-drift { from { transform: translateX(-6px); } to { transform: translateX(5px); } }
@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; }
}

/* ---- Ceiling One mount points on /compte/ (modules bring their own stylesheet) ---- */
.cgo-host { margin: 0 0 26px; min-width: 0; }
.cgo-host[hidden] { display: none; }
.cgo-mount { min-width: 0; max-width: 100%; }
.cgo-error { padding: 16px 18px; font-size: 14px; color: var(--text-muted); }
.cgo-error p { margin: 0; }
.cgo-sections { margin-top: 12px; }
.cgo-plan-link { grid-template-columns: minmax(0, 1fr); margin-bottom: 14px; }
.cgo-plan-link .acc-quick-item > span:last-child { min-width: 0; }
.acc-panel[data-panel="roger"], .acc-panel[data-panel="profil"], .acc-panel[data-panel="applications"] { min-width: 0; }
#cgRestoreBlock { margin-top: 22px; }

/* Apps tab: "Contrôler la synchronisation" */
.cga-diag { display: flex; flex-direction: column; gap: 10px; }
.cga-diag-res { padding: 12px; border-radius: 12px; background: var(--ceiling-wash); font-size: 13px; line-height: 1.5; display: flex; flex-direction: column; gap: 8px; }
.cga-diag-res.is-ok { box-shadow: inset 3px 0 0 var(--ceiling-ok, #1a9b6c); }
.cga-diag-res.is-partial { box-shadow: inset 3px 0 0 #d99a1b; }
.cga-diag-steps, .cga-diag-recent { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cga-diag-steps li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
.cga-diag-steps li.is-ok > span { color: var(--ceiling-ok, #1a9b6c); font-weight: 700; }
.cga-diag-steps li.is-ko > span { color: var(--text-muted); }
.cga-diag-steps b { display: block; font-weight: 600; }
.cga-diag-steps em, .cga-diag-recent em, .cga-diag-note, .cga-diag-kinds, .cga-diag-sub { font-style: normal; color: var(--text-muted); font-size: 12px; margin: 0; overflow-wrap: anywhere; }
.cga-diag-sub { font-weight: 600; }

/* Overview, simplified: foldable currency block, Academy reduced to the plan card */
.cga-fold { border: 1px solid var(--ceiling-card-border); border-radius: 16px; background: var(--ceiling-card, var(--surface)); padding: 0; margin-bottom: 18px; }
.cga-fold > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; border-radius: 16px; }
.cga-fold > summary::-webkit-details-marker { display: none; }
.cga-fold > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cga-fold-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--ceiling-wash); color: var(--accent); flex: none; }
.cga-fold-t { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.cga-fold-t strong { font-size: 15px; }
.cga-fold-t em { font-style: normal; font-size: 12.5px; color: var(--text-muted); }
.cga-fold-chev { color: var(--text-faint); transition: transform .2s; flex: none; }
.cga-fold[open] > summary .cga-fold-chev { transform: rotate(180deg); }
.cga-fold > .cgo-mount { padding: 4px 16px 16px; }
.cga-fold .cv-title, .cga-fold .cv-sub { display: none; }
#panel-apercu .acc-overview { grid-template-columns: 1fr; }
#panel-apercu .acc-dbf-mini, #panel-apercu .acc-foryou, #panel-apercu .acc-quick { display: none !important; }

/* ===== Account redesign: one statement per fact, aligned rows, one icon language (Lucide, 1.8-2 stroke) ===== */
.cga-hero { align-items: stretch; margin-bottom: 18px; }
.cga-hero.is-solo { grid-template-columns: minmax(0, 1fr); }
.cga-pcard { min-height: 0; justify-content: flex-start; gap: 18px; }
.cga-pcard .cga-pc-chips { margin-top: auto; }
.cga-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; margin-bottom: 18px; }
@media (max-width: 900px) { .cga-duo { grid-template-columns: minmax(0, 1fr); } }
.cga-duo > .cga-block { display: flex; flex-direction: column; margin: 0; }
.cga-duo .cga-block-head { align-items: center; min-height: 28px; }
.cga-duo .acc-overview { flex: 1; display: flex; margin: 0; }
.cga-duo .acc-sub-hero { flex: 1; }
.cga-duo .cga-appsmini { flex: 1; display: flex; flex-direction: column; justify-content: flex-start; padding: 4px 16px; border: 1px solid var(--ceiling-card-border); border-radius: 16px; background: var(--ceiling-card-bg); }
.cga-duo .cga-mini { padding: 11px 0; border: 0; border-bottom: 1px solid var(--ceiling-card-border); border-radius: 0; background: none; transform: none; }
.cga-duo .cga-mini:last-of-type { border-bottom: 0; }
.cga-duo .cga-mini-note { padding: 14px 0; margin: 0; }
.cga-app-ico, .cga-mini-ico { object-fit: contain; padding: 5px; background: #fff; border: 1px solid var(--ceiling-card-border); border-radius: 11px; flex: none; box-sizing: border-box; }
.cga-app-ico { width: 40px; height: 40px; }
.cga-mini-ico { width: 34px; height: 34px; padding: 4px; }
.cga-app-ico.is-soon, .cga-mini-ico.is-soon { display: grid; place-items: center; padding: 0; background: var(--ceiling-wash); color: var(--accent); border-style: dashed; }

/* Applications tab */
.cga-vpanel { padding: 18px 20px; margin-bottom: 16px; }
.cga-vstat { display: flex; align-items: center; gap: 14px; }
.cga-vicon { width: 46px; height: 46px; border-radius: 13px; background: var(--ceiling-wash); display: grid; place-items: center; flex: none; }
.cga-vicon .cgs-svg { width: 24px; height: 24px; }
.cga-vtext { flex: 1; min-width: 0; }
.cga-vtext h2 { margin: 0; font: 700 16px/1.3 'Sora', sans-serif; }
.cga-vtext p { margin: 2px 0 0; font-size: 13px; line-height: 1.45; color: var(--text-muted); }
.cga-vtext .cga-vmeta { font-size: 12px; color: var(--text-faint); }
.cga-vnow { flex: none; }
@media (max-width: 600px) { .cga-vstat { flex-wrap: wrap; } .cga-vnow { width: 100%; } }
.cga-app-list { padding: 0 18px; display: block; }
.cga-app { border-bottom: 1px solid var(--ceiling-card-border); }
.cga-app:last-child { border-bottom: 0; }
.cga-app-d { display: block; }
.cga-app-sum { display: flex; align-items: center; gap: 12px; padding: 14px 0; list-style: none; cursor: pointer; }
.cga-app-sum::-webkit-details-marker { display: none; }
.cga-app.is-plain .cga-app-sum { cursor: default; }
.cga-app-sum:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.cga-app-id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.cga-app-id strong { font-size: 15px; }
.cga-app-id em { font-style: normal; font-size: 12.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cga-app-state { flex: none; font-size: 12px; color: var(--text-faint); white-space: nowrap; }
.cga-app-chev { flex: none; color: var(--text-faint); transition: transform .2s; }
.cga-app-d[open] .cga-app-chev { transform: rotate(180deg); }
.cga-app-body { display: flex; flex-direction: column; gap: 12px; padding: 0 0 16px 52px; }
@media (max-width: 600px) { .cga-app-body { padding-left: 0; } .cga-app-state { display: none; } }
.cga-app-hint { font-size: 13px; line-height: 1.5; color: var(--text-muted); }
.cga-app-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 16px; margin: 0; }
.cga-app-meta dt { font-size: 11.5px; color: var(--text-faint); }
.cga-app-meta dd { margin: 1px 0 0; font-size: 13.5px; overflow-wrap: anywhere; }
.cga-app-ctl { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--ceiling-card-border); }
.cga-app-erase { color: #C22828; font-size: 13px; }
.cga-app-erase:disabled { opacity: .5; }

/* Overview: pilot card across the full width, completion as one slim bar */
.cga-hero, .cga-hero.is-solo { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.cga-pcard { padding: 20px 24px 18px; gap: 16px; }
.cga-pc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 24px; margin: 0; }
@media (max-width: 760px) { .cga-pc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cga-pcard .cga-pc-chips { margin-top: 0; }
.cga-todo.is-bar { padding: 14px 18px; gap: 0; }
.cga-todo-row { display: flex; align-items: center; gap: 20px; }
.cga-todo-row .cga-todo-head { display: block; flex: none; }
.cga-todo-row h2 { margin: 0; font: 700 15px/1.3 'Sora', sans-serif; }
.cga-todo-row p { margin: 1px 0 0; font-size: 12.5px; color: var(--text-muted); }
.cga-todo-prog { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; }
.cga-todo-prog .cga-bar { flex: 1; margin: 0; }
.cga-todo-prog .cga-todo-pct { font: 700 15px 'Sora', sans-serif; color: var(--accent); white-space: nowrap; }
.cga-todo-row .cga-todo-cta { flex: none; width: auto; margin: 0; padding: 9px 18px; }
@media (max-width: 640px) { .cga-todo-row { flex-wrap: wrap; gap: 10px; } .cga-todo-row .cga-todo-head { flex: 1 1 100%; } .cga-todo-prog { flex: 1 1 100%; } .cga-todo-row .cga-todo-cta { width: 100%; } }
.cga-todo.is-bar .cga-todo-rec { margin-top: 10px; border-top: 1px solid var(--ceiling-card-border); padding-top: 8px; }
.cga-todo.is-bar .cga-todo-rec summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.cga-duo .cga-appsmini { flex: none; }
.cga-mini-t { flex: 1; }
.cga-mini .cga-app-state { margin-left: auto; }
.cga-diag-btn { align-self: flex-start; width: auto; padding: 8px 16px; font-size: 13px; }
.cga-app.is-plain .cga-app-body { padding-bottom: 14px; }
#cgRestore, .cgo-host#cgRestoreBlock { margin-top: 28px; }

.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-sw input:disabled + .set-switch-ui { opacity: .5; }

/* ===== Ceiling in the account: annual members and the owner only (compte.js sets <html data-ceiling="on">) ===== */
html:not([data-ceiling="on"]) [data-ceiling-only] { display: none !important; }
html:not([data-ceiling="on"]) .cga-duo { grid-template-columns: minmax(0, 1fr); }
.cga-brand-plain { font: 800 clamp(24px, 4vw, 30px)/1.1 'Sora', sans-serif; letter-spacing: -.02em; color: var(--text); }
.cga-ceiling-entry { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 22px; margin-bottom: 14px; border-radius: 18px; background: var(--ceiling-grad-sky); border: 1px solid var(--ceiling-card-border); }
.cga-ceiling-entry p { margin: 8px 0 0; font-size: 13.5px; color: var(--text-muted); max-width: 52ch; line-height: 1.5; }
.cga-ceiling-entry .btn-primary { flex: none; }
@media (max-width: 640px) { .cga-ceiling-entry { flex-direction: column; align-items: flex-start; } .cga-ceiling-entry .btn-primary { width: 100%; text-align: center; } }
.cgf-field.is-auto-none input { opacity: .55; }

/* Logbook: summary, duplicates, costs */
.cl-years { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 6px; }
.cl-years li { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; font-size: 13.5px; }
.cl-years__bar { height: 8px; border-radius: 999px; background: color-mix(in srgb, currentColor 12%, transparent); overflow: hidden; }
.cl-years__bar i { display: block; height: 100%; border-radius: 999px; background: var(--accent, #2F6FEB); }
.cl-years__v { font-variant-numeric: tabular-nums; white-space: nowrap; }
.cl-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 12px 0; }
.cl-tile { display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, currentColor 14%, transparent); }
.cl-tile__l { font-size: 12.5px; opacity: .75; }
.cl-tile__v { font-size: 17px; }
.cl-dup { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 10px 0 4px; padding: 12px; border-radius: 12px; border: 1px solid color-mix(in srgb, currentColor 14%, transparent); }
.cl-dup__side { display: grid; gap: 8px; align-content: space-between; }
@media (max-width: 640px) { .cl-dup { grid-template-columns: 1fr; } }

/* Sync health (Applications tab) */
.cga-health__h { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 16px; }
.cga-health__v { font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #E1F4E8; color: #14683A; }
.cga-health__v.is-attention { background: #FFEFD6; color: #8A4B00; }
.cga-health__v.is-error { background: #FDECEA; color: #B42318; }
.cga-health__l { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cga-health__l li { display: grid; gap: 2px; padding: 8px 12px; border-radius: 10px; border-left: 4px solid #1E9C5B; background: color-mix(in srgb, currentColor 5%, transparent); font-size: 14px; }
.cga-health__l li[data-tone="warn"] { border-left-color: #E08A00; }
.cga-health__l li[data-tone="bad"] { border-left-color: #D92D20; }
.cga-health__l li span { opacity: .8; font-size: 13px; }

/* Mon compte > Applications: TestFlight beta opt-in (assets/js/compte-beta.js) */
.tf-card { margin: 0 0 24px; padding: 22px 24px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.tf-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tf-logo { width: 44px; height: 44px; border-radius: 11px; background: var(--bg-soft); border: 1px solid var(--border); display: grid; place-items: center; overflow: hidden; flex: none; }
.tf-logo img { width: 100%; height: 100%; object-fit: cover; }
.tf-logo:not(.has-img)::before { content: ''; width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--accent); }
.tf-titles { flex: 1; min-width: 180px; }
.tf-kicker { font: 600 11px 'IBM Plex Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.tf-title { margin: 2px 0 0; font: 700 19px/1.25 'Sora', sans-serif; letter-spacing: -.01em; }
.tf-badge { padding: 4px 11px; border-radius: 100px; background: rgba(34,82,204,.1); color: var(--accent); font: 600 12px 'IBM Plex Mono', monospace; }
.tf-card[data-tone="on"] .tf-badge { background: rgba(28,124,74,.12); color: #1C7C4A; }
.tf-body { margin: 14px 0 0; font-size: 15px; line-height: 1.65; color: var(--text-muted); }
.tf-warn { margin: 14px 0 0; padding: 12px 16px; border-left: 3px solid #E8792B; border-radius: 0 12px 12px 0; background: rgba(232,121,43,.08); font-size: 14px; line-height: 1.6; color: var(--text); }
.tf-steps { margin: 14px 0 0; padding-left: 20px; font-size: 14px; line-height: 1.7; color: var(--text-muted); }
.tf-check { display: flex; gap: 12px; align-items: flex-start; margin: 18px 0 0; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-soft); cursor: pointer; font-size: 14.5px; line-height: 1.55; }
.tf-check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.tf-msg { min-height: 20px; margin: 8px 2px 0; font-size: 13px; color: var(--text-muted); }
.tf-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 6px 0 0; font-size: 13.5px; font-weight: 600; }
.tf-legal { margin: 14px 0 0; font-size: 12px; line-height: 1.6; color: var(--text-faint); }

/* ===== Mon compte › Aperçu: floating mosaic (bento). The blocks keep their ids and the scripts that fill them; only the layout changes. ===== */
#panel-apercu { position: relative; }
#panel-apercu::before { content: ""; position: absolute; inset: -24px 0 -40px; z-index: -1; pointer-events: none; background: radial-gradient(60% 40% at 15% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%), radial-gradient(50% 35% at 90% 40%, color-mix(in srgb, #7aa7ff 12%, transparent), transparent 70%); }
.cga-bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(130px, auto); grid-auto-flow: dense; gap: 16px; align-items: stretch; }
.cga-bento > .cga-hero { display: contents; }
.cga-bento > .cga-duo { display: contents; }
.cga-bento > * { margin: 0 !important; min-width: 0; }
.cga-bento > *, .cga-bento .cga-pcard, .cga-bento .cga-todo { animation: cgTileIn .55s cubic-bezier(.2, .8, .3, 1) backwards; }
.cga-bento > :nth-child(2) { animation-delay: .04s; } .cga-bento > :nth-child(3) { animation-delay: .08s; } .cga-bento > :nth-child(4) { animation-delay: .12s; }
.cga-bento > :nth-child(5) { animation-delay: .16s; } .cga-bento > :nth-child(6) { animation-delay: .2s; } .cga-bento > :nth-child(7) { animation-delay: .24s; }
@keyframes cgTileIn { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }

/* every tile floats: rounded, soft long shadow, lifts on hover */
.cga-tile, .cga-bento .cga-pcard, .cga-bento .cga-todo, .cga-bento .cga-panel, .cga-bento > .cga-fold { border-radius: 26px; box-shadow: 0 22px 44px -26px rgba(16, 36, 96, .42), 0 2px 6px rgba(16, 36, 96, .06); transition: transform .3s ease, box-shadow .3s ease; }

/* photo tiles: Ceiling and Planner entries, upsell */
.cga-tile--ceiling, .cga-tile--planner, .cga-tile--upsell { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 14px; min-height: 240px; padding: 26px; border: 0; color: #fff; text-decoration: none; background-size: cover; background-position: center; }
.cga-tile--ceiling::before, .cga-tile--planner::before, .cga-tile--upsell::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(200deg, rgba(8, 20, 60, .1) 0%, rgba(8, 24, 72, .62) 55%, rgba(6, 16, 50, .88) 100%); transition: opacity .3s; }
.cga-tile--ceiling { grid-column: span 7; grid-row: span 2; min-height: 360px; background-image: url('/assets/art/sky-dawn.svg'); }
.cga-tile--planner { grid-column: span 5; grid-row: span 2; background-image: url('/assets/art/route-map.svg'); background-position: center; background-size: cover; background-color: #0a1a4d; min-height: 0; }
.cga-tile--planner::before { background: linear-gradient(90deg, rgba(8, 20, 60, .97) 38%, rgba(8, 24, 72, .55) 100%); }
.cga-tile--upsell { grid-column: span 12; min-height: 200px; background-image: url('/assets/art/runway.svg'); }
html[data-ceiling="on"] .cga-tile--upsell { display: none; }
.cga-tile--ceiling > div, .cga-tile--planner > div { max-width: 46ch; }
.cga-tile--ceiling .cg-wordmark, .cga-tile--ceiling .cg-wordmark__a { color: #fff; }
.cga-tile--ceiling .cg-wordmark__c { color: #BFD4FF; }
.cga-tile--planner strong { color: #fff; }
.cga-tile--ceiling p, .cga-tile--planner p { color: rgba(255, 255, 255, .86); text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.cga-tile--ceiling .btn-primary, .cga-tile--planner .btn-primary { background: #fff; color: #17306f; box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .5); }
.cga-tile--ceiling .btn-primary:hover, .cga-tile--planner .btn-primary:hover { background: #E9F0FF; }
.cga-tile--ceiling { flex-direction: column; justify-content: flex-end; }
.cga-up-k { font: 600 11px 'IBM Plex Mono', monospace; letter-spacing: .1em; text-transform: uppercase; color: #BFD4FF; }
.cga-tile--upsell strong { font: 700 clamp(20px, 2.6vw, 28px)/1.2 'Sora', sans-serif; max-width: 22ch; }
.cga-up-t { max-width: 56ch; font-size: 14px; color: rgba(255, 255, 255, .85); }
.cga-up-c { padding: 9px 16px; border-radius: 99px; background: #fff; color: #17306f; font-weight: 700; font-size: 13.5px; }

/* pilot card and checklist */
.cga-bento .cga-pcard { grid-column: span 8; grid-row: span 2; min-height: 300px; }
.cga-bento .cga-todo { grid-column: span 5; }
.cga-bento > .cga-fold { grid-column: span 12; }

/* Apps and Academy: frosted tiles with a photo band */
.cga-bento .cga-panel { position: relative; isolation: isolate; overflow: hidden; margin: 0; padding: 22px; background: var(--surface); border: 1px solid var(--border); }
.cga-bento .cga-panel::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 96px; z-index: -1; background-size: cover; background-position: center; opacity: .22; mask-image: linear-gradient(#000, transparent); -webkit-mask-image: linear-gradient(#000, transparent); }
.cga-bento #cgAppsMiniBlock { grid-column: span 4; grid-row: span 2; }
.cga-bento #cgAppsMiniBlock::before { background-image: url('/assets/art/cloud-field.svg'); }
.cga-bento .cga-panel:not(#cgAppsMiniBlock) { grid-column: 1 / -1; }
.cga-bento .cga-panel:not(#cgAppsMiniBlock)::before { background-image: url('/assets/art/contours.svg'); }
html:not([data-ceiling="on"]) .cga-bento .cga-panel:not(#cgAppsMiniBlock) { grid-column: 1 / -1; }
.cga-bento .cga-block-head { margin-bottom: 14px; }
.cga-bento .cga-appsmini { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
@media (max-width: 1100px) {
  .cga-tile--ceiling, .cga-tile--planner { grid-column: span 6; grid-row: auto; min-height: 240px; }
  .cga-bento .cga-pcard, .cga-bento .cga-todo { grid-column: span 12; grid-row: auto; }
  .cga-bento #cgAppsMiniBlock, .cga-bento .cga-panel:not(#cgAppsMiniBlock) { grid-column: span 12; grid-row: auto; }
}
@media (max-width: 700px) {
  .cga-bento { gap: 12px; }
  .cga-tile--ceiling, .cga-tile--planner, .cga-tile--upsell { grid-column: span 12; grid-row: auto; min-height: 200px; padding: 20px; }
  .cga-tile, .cga-bento .cga-pcard, .cga-bento .cga-todo, .cga-bento .cga-panel { border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) { .cga-bento > *, .cga-bento .cga-pcard, .cga-bento .cga-todo { animation: none; } }

/* ---- Magnetic hover (assets/js/compte-widgets.js sets --tx/--ty/--rx/--ry/--sx/--sy), widgets and art ---- */
.cga-bento > [data-wdg-off] { display: none !important; }
.cga-bento > .cga-widgets { display: contents; }
.cga-bento > .cga-widgets[hidden] { display: none; }
.cga-tile, .cga-bento .cga-pcard, .cga-bento .cga-todo, .cga-bento .cga-panel, .cga-bento > .cga-fold {
  position: relative; --bloom: 79, 140, 255; --tx: 0px; --ty: 0px; --rx: 0deg; --ry: 0deg; --sx: 0px; --sy: 22px;
  transform: perspective(1100px) translate3d(var(--tx), var(--ty), 0) rotateX(var(--rx)) rotateY(var(--ry));
  box-shadow: var(--sx) var(--sy) 44px -26px rgba(16, 36, 96, .42), 0 2px 6px rgba(16, 36, 96, .06);
  transition: transform .7s cubic-bezier(.2, 1.5, .4, 1), box-shadow .7s cubic-bezier(.2, 1.5, .4, 1); will-change: transform;
}
.cga-tile.is-mag, .cga-bento .cga-pcard.is-mag, .cga-bento .cga-todo.is-mag, .cga-bento .cga-panel.is-mag, .cga-bento > .cga-fold.is-mag {
  transition: transform .14s ease-out, box-shadow .14s ease-out;
  box-shadow: var(--sx) var(--sy) 52px -20px rgba(var(--bloom), .55), calc(var(--sx) * .4) calc(var(--sy) * .5) 18px -10px rgba(16, 36, 96, .3), 0 0 0 1px rgba(var(--bloom), .16);
}
/* Soft specular glare that follows the cursor */
.cga-tile::after, .cga-bento .cga-pcard::after, .cga-bento .cga-todo::after, .cga-bento .cga-panel::after, .cga-bento > .cga-fold::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 70%);
}
.cga-tile.is-mag::after, .cga-bento .cga-pcard.is-mag::after, .cga-bento .cga-todo.is-mag::after, .cga-bento .cga-panel.is-mag::after, .cga-bento > .cga-fold.is-mag::after { opacity: 1; }
.cga-tile--ceiling, .cga-tile--planner, .cga-tile--upsell { --bloom: 255, 196, 128; }
.cga-tile--ceiling > *, .cga-tile--planner > *, .cga-tile--upsell > * { position: relative; z-index: 1; }

.dw { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; min-height: 230px; padding: 24px; color: #fff; text-decoration: none; background-size: cover; background-position: center; background-color: #0a1a4d; grid-column: span 4; }
.dw::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(200deg, rgba(8, 20, 60, .1) 0%, rgba(8, 24, 72, .7) 100%); }
.dw > * { position: relative; z-index: 1; }
.dw[data-art="compass"] { background-image: url('/assets/art/compass.svg'); }
.dw[data-art="route-map"] { background-image: url('/assets/art/route-map.svg'); }
.dw[data-art="sky-dawn"] { background-image: url('/assets/art/sky-dawn.svg'); }
.dw[data-art="cloud-field"] { background-image: url('/assets/art/cloud-field.svg'); }
.dw[data-art="contours"] { background-image: url('/assets/art/contours.svg'); background-color: #e6efff; color: #10245f; }
.dw[data-art="contours"]::before { background: linear-gradient(200deg, rgba(255, 255, 255, .15), rgba(222, 234, 255, .85)); }
.dw-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dw-k { font: 600 11.5px/1 'IBM Plex Mono', monospace; letter-spacing: .09em; text-transform: uppercase; opacity: .82; }
.dw-hic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 12px; background: rgba(255, 255, 255, .16); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.dw[data-art="contours"] .dw-hic { background: rgba(34, 82, 204, .12); color: #2252CC; }
.dw-t { font: 700 clamp(20px, 2.2vw, 26px)/1.15 'Sora', sans-serif; letter-spacing: -.01em; }
.dw-p { margin: 0; font-size: 14px; line-height: 1.5; opacity: .92; }
.dw-c { font-size: 13.5px; font-weight: 700; margin-top: auto; text-decoration: none; color: inherit; }
.dw-c:hover { text-decoration: underline; }
.dw-badge { display: inline-block; padding: 3px 11px; border-radius: 999px; font: 700 12px/1.4 'IBM Plex Mono', monospace; background: #fff; color: #17306f; }
.dw-badge.is-vfr { background: #bff0cf; color: #0b5a2a; } .dw-badge.is-mvfr { background: #e3d6ff; color: #4a1fa8; } .dw-badge.is-ifr { background: #ffc9c9; color: #8a1212; }
.dw--exam::before { background: linear-gradient(200deg, rgba(8, 20, 60, 0) 0%, rgba(8, 24, 72, .55) 100%); }
.dw-big { font: 800 clamp(54px, 7vw, 84px)/1 'Sora', sans-serif; letter-spacing: -.03em; text-shadow: 0 6px 30px rgba(0, 0, 0, .35); }

/* weather: full-bleed card whose sky follows the METAR */
.dw--wx { grid-column: span 5; min-height: 320px; transition: background .6s; }
.dw--wx::before { background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(5, 14, 40, .55)); }
.dw--wx.is-wx-clear { background: linear-gradient(170deg, #1d6fe0 0%, #5fb0ff 60%, #bfe4ff 100%); }
.dw--wx.is-wx-clear.is-night, .dw--wx.is-wx-partly.is-night { background: linear-gradient(170deg, #070f30 0%, #16286b 60%, #2f4aa0 100%); }
.dw--wx.is-wx-partly { background: linear-gradient(170deg, #2a73d8 0%, #78b7f2 70%, #cfe7fb 100%); }
.dw--wx.is-wx-cloud { background: linear-gradient(170deg, #4a5a78 0%, #7d8ca6 60%, #aebad0 100%); }
.dw--wx.is-wx-rain { background: linear-gradient(170deg, #1f2d48 0%, #3d5073 60%, #61779c 100%); }
.dw--wx.is-wx-storm { background: linear-gradient(170deg, #14122e 0%, #35305e 60%, #5a4e86 100%); }
.dw--wx.is-wx-snow { background: linear-gradient(170deg, #6f87aa 0%, #a9bdd6 60%, #e3ecf6 100%); }
.dw--wx.is-wx-fog { background: linear-gradient(170deg, #707b8b 0%, #a3acb8 60%, #d3d8de 100%); }
.dw--wx.is-wx-wind { background: linear-gradient(170deg, #1f6bd0 0%, #53a6f0 60%, #a9d6fa 100%); }
.dw--wx.is-night.is-wx-cloud, .dw--wx.is-night.is-wx-rain { filter: saturate(.85) brightness(.9); }
.dw-wx { display: flex; flex-direction: column; gap: 14px; }
.dw-wx-top { display: flex; align-items: center; gap: 16px; }
.dw-ic { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 24px; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .5); }
.dw-temp { display: block; font: 800 clamp(44px, 5vw, 62px)/1 'Sora', sans-serif; letter-spacing: -.03em; text-shadow: 0 4px 24px rgba(0, 0, 0, .3); }
.dw-temp sup { font-size: .38em; font-weight: 700; vertical-align: top; margin-left: 3px; position: relative; top: .35em; }
.dw-cond { display: block; margin-top: 4px; font: 600 15px/1.2 'Work Sans', sans-serif; opacity: .95; }
.dw-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.dw-stat { position: relative; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.dw-stat span { display: block; font: 600 10.5px/1 'IBM Plex Mono', monospace; text-transform: uppercase; letter-spacing: .08em; opacity: .8; }
.dw-stat b { display: block; margin-top: 5px; font: 700 15px/1.2 'Sora', sans-serif; }
.dw-arrow { position: absolute; right: 10px; top: 50%; margin-top: -10px; width: 20px; height: 20px; }
.dw-arrow::before { content: ""; position: absolute; left: 50%; top: 0; width: 0; height: 0; margin-left: -6px; border: 6px solid transparent; border-bottom: 14px solid #fff; border-top: 0; }
.dw-arrow::after { content: ""; position: absolute; left: 50%; top: 12px; width: 2px; height: 8px; margin-left: -1px; background: #fff; border-radius: 1px; }
.dw-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; font: 500 12px/1.2 'IBM Plex Mono', monospace; opacity: .95; }
.dw--wx .dw-t { text-shadow: 0 2px 14px rgba(0, 0, 0, .3); }

/* animated sky layers */
.dw-fx { position: absolute !important; inset: 0; z-index: -1 !important; overflow: hidden; pointer-events: none; }
.dw-fx i { position: absolute; display: block; }
.fx-sun { right: -40px; top: -50px; width: 190px; height: 190px; border-radius: 50%; background: radial-gradient(circle, #fff6c8 0%, #ffd66b 38%, rgba(255, 200, 90, 0) 70%); animation: fxPulse 6s ease-in-out infinite; }
.fx-rays { right: -90px; top: -90px; width: 290px; height: 290px; border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(255, 245, 200, .22) 0 6deg, transparent 6deg 18deg); -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 70%); mask-image: radial-gradient(circle, #000 20%, transparent 70%); animation: fxSpin 60s linear infinite; }
.fx-moon { right: 28px; top: 24px; width: 70px; height: 70px; border-radius: 50%; box-shadow: inset -20px 6px 0 0 #f4f1de; filter: drop-shadow(0 0 18px rgba(244, 241, 222, .55)); }
.fx-stars { inset: 0; background-image: radial-gradient(1.5px 1.5px at 12% 20%, #fff, transparent), radial-gradient(1px 1px at 30% 60%, #fff, transparent), radial-gradient(1.6px 1.6px at 55% 15%, #fff, transparent), radial-gradient(1px 1px at 72% 45%, #fff, transparent), radial-gradient(1.4px 1.4px at 88% 70%, #fff, transparent), radial-gradient(1px 1px at 40% 85%, #fff, transparent); animation: fxTwinkle 4s ease-in-out infinite; }
.fx-cl { height: 54px; border-radius: 60px; background: rgba(255, 255, 255, .82); filter: blur(1px); }
.fx-cl::before, .fx-cl::after { content: ""; position: absolute; background: inherit; border-radius: 50%; }
.fx-cl::before { width: 52%; height: 150%; left: 14%; top: -62%; } .fx-cl::after { width: 38%; height: 120%; right: 12%; top: -42%; }
.fx-cl1 { width: 180px; left: -30px; top: 56px; animation: fxDrift 32s linear infinite; }
.fx-cl2 { width: 140px; right: -20px; top: 120px; opacity: .75; animation: fxDrift 44s linear infinite reverse; }
.fx-cl3 { width: 110px; left: 30%; top: 22px; opacity: .6; animation: fxDrift 52s linear infinite; }
.is-wx-cloud .fx-cl, .is-wx-rain .fx-cl, .is-wx-storm .fx-cl { background: rgba(200, 210, 228, .5); } .is-wx-storm .fx-cl { background: rgba(70, 64, 110, .75); }
.is-night .fx-cl { background: rgba(140, 160, 210, .3); }
.fx-rain { inset: -20% 0 0 0; background-image: linear-gradient(105deg, transparent 46%, rgba(220, 235, 255, .55) 50%, transparent 54%); background-size: 22px 46px; animation: fxRain .55s linear infinite; opacity: .8; }
.fx-rain2 { background-size: 34px 70px; animation-duration: .8s; opacity: .45; }
.fx-snow { inset: -20% 0 0 0; background-image: radial-gradient(3px 3px at 20% 30%, #fff 60%, transparent 62%), radial-gradient(2.5px 2.5px at 70% 70%, #fff 60%, transparent 62%), radial-gradient(2px 2px at 45% 15%, #fff 60%, transparent 62%); background-size: 90px 90px; animation: fxSnow 7s linear infinite; }
.fx-snow2 { background-size: 140px 140px; animation-duration: 11s; opacity: .7; }
.fx-flash { inset: 0; background: rgba(210, 200, 255, .9); opacity: 0; animation: fxFlash 7s infinite; }
.fx-fog { left: -20%; width: 140%; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .35); filter: blur(10px); }
.fx-fog1 { top: 32%; animation: fxDrift 26s linear infinite alternate; } .fx-fog2 { top: 52%; animation: fxDrift 34s linear infinite alternate-reverse; } .fx-fog3 { top: 72%; animation: fxDrift 40s linear infinite alternate; }
.fx-wind { left: -30%; height: 2px; width: 60%; border-radius: 2px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .85), transparent); animation: fxGust 2.4s linear infinite; }
.fx-wind1 { top: 28%; } .fx-wind2 { top: 46%; animation-delay: .8s; width: 45%; } .fx-wind3 { top: 64%; animation-delay: 1.5s; }
@keyframes fxPulse { 50% { transform: scale(1.08); opacity: .9; } } @keyframes fxSpin { to { transform: rotate(360deg); } }
@keyframes fxTwinkle { 50% { opacity: .55; } } @keyframes fxDrift { from { transform: translateX(-30px); } to { transform: translateX(60px); } }
@keyframes fxRain { to { background-position: -10px 46px; } } @keyframes fxSnow { to { background-position: 30px 90px; } }
@keyframes fxFlash { 0%, 92%, 96%, 100% { opacity: 0; } 93% { opacity: .65; } 94.5% { opacity: .1; } 95.5% { opacity: .5; } }
@keyframes fxGust { from { transform: translateX(0); } to { transform: translateX(260%); } }

/* streak */
.dw--streak { grid-column: span 4; min-height: 270px; }
.dw-streak-row { display: flex; align-items: center; gap: 18px; }
.dw-ring { position: relative; flex: none; width: 116px; height: 116px; }
.dw-ring svg { width: 100%; height: 100%; display: block; }
.dw-ring .rt { fill: none; stroke: rgba(34, 82, 204, .16); stroke-width: 9; } .dw-ring .ra { fill: none; stroke: #2252CC; stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset 1s cubic-bezier(.3, .7, .3, 1); }
.dw-ring-n { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.dw-ring-n b { font: 800 30px/1 'Sora', sans-serif; } .dw-ring-n small { font: 600 10.5px/1 'IBM Plex Mono', monospace; text-transform: uppercase; letter-spacing: .08em; opacity: .7; margin-top: 3px; }
.dw-dots { display: flex; gap: 8px; }
.dw-dots span { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; font: 600 11px/1 'IBM Plex Mono', monospace; opacity: .85; }
.dw-dots i { width: 100%; height: 10px; border-radius: 99px; background: rgba(34, 82, 204, .16); } .dw-dots .on i { background: linear-gradient(90deg, #2252CC, #4f8cff); } .dw-dots .today i { box-shadow: 0 0 0 3px rgba(34, 82, 204, .22); }
.dw-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dw-chips span { padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .26); font-size: 12.5px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.dw-chips b { font-weight: 800; }
.dw[data-art="contours"] .dw-chips span { background: rgba(34, 82, 204, .1); border-color: rgba(34, 82, 204, .2); }
.dw--streak .dw-c { color: #2252CC; }

/* exam */
.dw--exam { grid-column: span 4; min-height: 270px; }

/* news */
.dw--news { grid-column: span 5; min-height: 300px; }
.dw-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; justify-content: space-around; }
.dw-list a { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, .62); color: #10245f; text-decoration: none; transition: background .2s, transform .2s; }
.dw-list a:hover { background: #fff; transform: translateX(3px); }
.dw-date { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(145deg, #2252CC, #4f8cff); color: #fff; font: 600 10px/1 'IBM Plex Mono', monospace; text-transform: uppercase; }
.dw-date b { font: 800 18px/1 'Sora', sans-serif; margin-bottom: 2px; }
.dw-news-t { min-width: 0; font-size: 14px; line-height: 1.35; font-weight: 600; }
.dw-news-t em { display: block; font: 600 10.5px/1 'IBM Plex Mono', monospace; text-transform: uppercase; letter-spacing: .06em; color: #2252CC; margin-bottom: 4px; font-style: normal; }
.dw--news .dw-c { color: #2252CC; }

/* offers */
.dw--offers { grid-column: span 4; min-height: 270px; }
.dw-offer { display: flex; flex-direction: column; gap: 8px; }
.dw-off { align-self: flex-start; font: 800 clamp(48px, 6vw, 72px)/1 'Sora', sans-serif; letter-spacing: -.03em; background: linear-gradient(135deg, #fff, #ffd9a8); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 6px 20px rgba(0, 0, 0, .3)); }
.dw-off small { font-size: .45em; }
.dw-end { align-self: flex-start; padding: 4px 12px; border-radius: 99px; background: rgba(255, 255, 255, .92); color: #7a3b00; font: 700 12px/1.4 'IBM Plex Mono', monospace; }

/* shortcuts */
.dw--links { grid-column: span 4; min-height: 270px; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 14px; }
.dw-grid { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dw-grid a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 12px 6px; border-radius: 18px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); color: #fff; font-size: 13px; font-weight: 600; text-align: center; text-decoration: none; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: transform .2s, background .2s; }
.dw-grid a span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: rgba(255, 255, 255, .92); color: #17306f; }
.dw-grid a:hover { background: rgba(255, 255, 255, .3); transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .dw-fx i { animation: none !important; } }
@media (max-width: 900px) { .dw, .dw--wx, .dw--news, .dw--links, .dw--streak, .dw--exam, .dw--offers { grid-column: span 6; } }
@media (max-width: 600px) { .dw, .dw--wx, .dw--news, .dw--links, .dw--streak, .dw--exam, .dw--offers { grid-column: span 12; min-height: 0; padding: 20px; } }
@media (prefers-reduced-motion: reduce) { .cga-tile, .cga-bento .cga-pcard, .cga-bento .cga-todo, .cga-bento .cga-panel, .cga-bento > .cga-fold { transform: none !important; transition: none; } .cga-tile::after, .cga-bento .cga-pcard::after, .cga-bento .cga-todo::after, .cga-bento .cga-panel::after, .cga-bento > .cga-fold::after { display: none; } }

/* ---- Pilot card: sky photo-like art, glass data panel, route line, initials ---- */
.cga-bento .cga-pcard { justify-content: space-between; background: linear-gradient(160deg, rgba(10, 26, 77, .55) 0%, rgba(24, 62, 160, .62) 55%, rgba(34, 82, 204, .45) 100%), url('/assets/art/sky-dawn.svg') center / cover; padding: 24px 26px 22px; gap: 20px; }
.cga-bento .cga-pcard .cga-pc-chips { margin-top: 0; }
.cga-pc-route { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 46%; z-index: -1; pointer-events: none; opacity: .9; }
.cga-pc-top { gap: 16px; }
.cga-pc-av { width: 68px; height: 68px; font-size: 24px; background: linear-gradient(145deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .1)); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .3); text-shadow: 0 1px 8px rgba(0, 0, 0, .25); }
.cga-bento .cga-pcard .cga-pc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 26px; padding: 18px 20px; border-radius: 20px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .24); -webkit-backdrop-filter: blur(10px) saturate(1.3); backdrop-filter: blur(10px) saturate(1.3); }
.cga-bento .cga-pcard .cga-pc-grid dd { font-size: 16px; }
.cga-bento .cga-pcard .cga-pc-grid dt { opacity: .85; }
@media (max-width: 560px) { .cga-bento .cga-pcard .cga-pc-grid { grid-template-columns: minmax(0, 1fr); padding: 14px 16px; } }

/* "Personnaliser mon tableau de bord" */
.cga-customize { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; padding: 0 22px; border-radius: 999px; border: 1.5px dashed color-mix(in srgb, var(--accent, #2252CC) 45%, transparent); background: color-mix(in srgb, var(--accent, #2252CC) 6%, var(--surface, #fff)); color: var(--accent, #2252CC); font: 600 15px/1.2 'Work Sans', system-ui, sans-serif; text-decoration: none; transition: background .2s, transform .2s, box-shadow .2s; }
.cga-customize:hover { background: color-mix(in srgb, var(--accent, #2252CC) 12%, var(--surface, #fff)); transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(34, 82, 204, .6); }
.cga-customize svg { flex: none; }
.set-card.is-target { animation: setPulse 1.2s ease 2; }
@keyframes setPulse { 50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent, #2252CC) 35%, transparent); } }

/* Rows are packed to 12 columns by assets/js/compte-widgets.js; align cards in a row to the same height */
.cga-bento .cga-pcard, .cga-bento .cga-todo, .cga-bento .cga-panel, .dw { align-self: stretch; }
.cga-bento .cga-todo { min-height: 0; }
.is-wx-rain .fx-cl1, .is-wx-storm .fx-cl1, .is-wx-snow .fx-cl1 { left: auto; right: -30px; top: 24px; opacity: .45; }
.is-wx-snow .fx-cl { background: rgba(255, 255, 255, .55); }

/* question of the day */
.dw--quiz { grid-column: span 5; min-height: 340px; justify-content: flex-start; }
.dw-quiz { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.dw-chip-s { align-self: flex-start; padding: 3px 11px; border-radius: 99px; background: rgba(255, 255, 255, .2); font: 600 11.5px/1.5 'IBM Plex Mono', monospace; text-transform: uppercase; letter-spacing: .05em; }
.dw-q { margin: 0; font: 700 clamp(16px, 1.6vw, 19px)/1.4 'Sora', sans-serif; }
.dw-opts { display: flex; flex-direction: column; gap: 8px; }
.dw-opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .13); color: #fff; font: 500 14px/1.35 'Work Sans', sans-serif; text-align: left; cursor: pointer; transition: transform .2s, background .2s, border-color .2s; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.dw-opt b { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: rgba(255, 255, 255, .9); color: #17306f; font: 800 13px/1 'Sora', sans-serif; }
.dw-opt:hover:not(:disabled) { background: rgba(255, 255, 255, .26); transform: translateX(3px); }
.dw-opt:disabled { cursor: default; }
.dw-opt.is-right { background: rgba(46, 184, 114, .45); border-color: #7EDDA4; } .dw-opt.is-right b { background: #7EDDA4; }
.dw-opt.is-wrong { background: rgba(224, 60, 60, .45); border-color: #FF9C9C; } .dw-opt.is-wrong b { background: #FF9C9C; }
.dw-opt.is-dim { opacity: .55; }
.dw-verdict { margin: 0; font-size: 13.5px; line-height: 1.5; } .dw-verdict span { opacity: .9; font-weight: 400; } .dw-verdict.is-ok { color: #BDF3D2; } .dw-verdict.is-ko { color: #FFD0D0; }
.dw-hint { font: 500 12px/1.3 'IBM Plex Mono', monospace; opacity: .75; margin-top: auto; }

/* app news */
.dw--appnews { grid-column: span 4; min-height: 300px; }
.dw-apps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; flex: 1; justify-content: space-around; }
.dw-apps a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 16px; background: rgba(255, 255, 255, .66); color: #10245f; text-decoration: none; transition: background .2s, transform .2s; }
.dw-apps a:hover { background: #fff; transform: translateX(3px); }
.dw-apps img { flex: none; border-radius: 10px; box-shadow: 0 6px 14px -8px rgba(16, 36, 96, .5); }
.dw-app-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.dw-app-t b { font: 700 14px/1.2 'Sora', sans-serif; } .dw-app-t small { font: 500 11px 'IBM Plex Mono', monospace; opacity: .7; }
.dw-app-t em { font-style: normal; font-size: 12.5px; line-height: 1.3; color: #3a4a78; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dw-new { font-style: normal; padding: 1px 7px; border-radius: 99px; background: #FF8A3D; color: #fff; font: 700 10px/1.5 'IBM Plex Mono', monospace; text-transform: uppercase; vertical-align: 1px; }
.dw-tag { flex: none; padding: 3px 9px; border-radius: 99px; font: 700 10.5px/1.4 'IBM Plex Mono', monospace; background: #dfe8ff; color: #17306f; } .dw-tag.is-ok { background: #bff0cf; color: #0b5a2a; } .dw-tag.is-warn { background: #ffe3b8; color: #7a3b00; } .dw-tag.is-off { background: #e6e8ef; color: #4a5160; }
.dw--appnews .dw-c { color: #2252CC; }
@media (max-width: 900px) { .dw--quiz, .dw--appnews { grid-column: span 6; } }
@media (max-width: 600px) { .dw--quiz, .dw--appnews { grid-column: span 12; min-height: 0; } }

/* Card sizes (Réglages › Tableau de bord › Taille des cartes) */
.cga-bento[data-dw-size="balanced"] .dw { min-height: 290px; }
.cga-bento[data-dw-size="balanced"] .dw--wx, .cga-bento[data-dw-size="balanced"] .dw--quiz, .cga-bento[data-dw-size="balanced"] .dw--news { min-height: 360px; }
.cga-bento[data-dw-size="large"] .dw { min-height: 380px; padding: 30px; }
.cga-bento[data-dw-size="large"] .dw--wx, .cga-bento[data-dw-size="large"] .dw--quiz { min-height: 440px; }
.cga-bento[data-dw-size="large"] .dw-t { font-size: clamp(24px, 2.6vw, 32px); }
.cga-bento[data-dw-size="large"] .dw-p { font-size: 15.5px; }
.cga-bento[data-dw-size="large"] .dw-ring { width: 140px; height: 140px; }
.cga-bento[data-dw-size="large"] .dw-big { font-size: clamp(72px, 9vw, 110px); }
.cga-bento[data-dw-size="large"] .dw-grid a span { width: 52px; height: 52px; }
.dw-apps a { flex-wrap: wrap; }
.dw-apps .dw-tag { margin-left: 52px; }
.dw-app-t em { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@media (min-width: 1100px) { .dw-apps a { flex-wrap: nowrap; } .dw-apps .dw-tag { margin-left: 0; } }
