/* skeleton.css - shared skeleton loaders (owner 11-05: "Skeleton-Loader dort, wo Content noch nicht geladen
   wurde"). Until a screen's FIRST response arrived it shows these placeholders in the shape of its final layout,
   never an empty state ("0 ...", "Nothing here yet."). Own file next to mobile.css / finding-feedback.css (not in
   mobile.css, which is the responsive layer, and not in index.html's inline <style>, which the iframe pages cannot
   reach): linked by index.html (console SPA; AthorionDataTable renders in the same document). An iframe page
   (sales, outreach, workflows, infra, remediation, finding-triage, graph) that gets a skeleton links the same
   file, so there is one shimmer everywhere.

   Rules
   - Class based. React re-serialises inline styles, so [style*=...] selectors never match; per-use sizes (width,
     height, grid-template-columns) may still be set inline.
   - No text: nothing to translate. The skeleton container carries aria-busy="true" (the harness reports a skeleton
     that is still up after the page settled as "stuck on loading skeleton").
   - One shimmer (aeSkWave), only under prefers-reduced-motion: no-preference. Reduced motion = static bars.
   - Theme: the tokens are the dark palette. The console's light theme is a filter on its root
     (invert(1) hue-rotate(180deg), index.html themeFilter) that also covers every iframe, so the same greys render
     light there. A page or card on another background re-points the tokens, e.g. .page{--ae-sk:var(--t-1a1816ff-fg,#1a1816)}.
   - Mobile: no fixed widths beyond what the caller sets; skeleton rows/grids reuse the screen's own
     grid-template-columns, so they collapse exactly like the real content.
   Linked by index.html, sales, outreach, workflows, remediation, infra and finding-triage.
   Bump ?v= in every page that links this file when it changes (nginx and Cloudflare cache .css for 7 days). */

:root{
  --ae-sk:var(--t-24221fff-fg,#24221f);                     /* bar */
  --ae-sk-hi:var(--t-ffffff0e-fg,rgba(255,255,255,.055));   /* travelling highlight */
  --ae-sk-card:var(--t-161514ff-bg,#161514);                /* card / table body (the console card colour) */
  --ae-sk-bd:var(--t-2a2825ff-ln,#2a2825);                  /* card border */
  --ae-sk-rule:var(--t-1f1d1bff-ln,#1f1d1b);                /* row divider */
}

/* the bar: a block 10px high (= one line of 12-14px text); width / height inline or via the modifiers below */
.ae-skel{display:block;position:relative;overflow:hidden;flex:none;box-sizing:border-box;max-width:100%;height:10px;background:var(--ae-sk);pointer-events:none}
.ae-skel::after{content:"";position:absolute;inset:0;transform:translateX(-100%);background:linear-gradient(90deg,transparent,var(--ae-sk-hi) 50%,transparent)}
@media (prefers-reduced-motion:no-preference){.ae-skel::after{animation:aeSkWave 1.9s cubic-bezier(.4,0,.2,1) infinite}}
@keyframes aeSkWave{0%{transform:translateX(-100%)}62%,100%{transform:translateX(100%)}}
@media (forced-colors:active){.ae-skel{background:GrayText}}

.ae-skel-line{height:10px}                /* body text, 12-14px */
.ae-skel-sm{height:8px}                   /* mono captions, eyebrows, sub lines (10.5-11px) */
.ae-skel-h{height:26px}                   /* H1, big KPI value */
.ae-skel-block{width:100%;height:120px}   /* chart / image / preview area: set the real height inline */
.ae-skel-circle{border-radius:50%}
.ae-skel-chip{width:64px;height:22px}     /* pill, badge */
.ae-skel-box{width:14px;height:14px}      /* checkbox */

/* one text line: the zero-width character gives the holder the real line box of its font, so a skeleton row is
   exactly as tall as the loaded row (set the font-size / font-family of the text it stands for on the holder);
   the bar inside sits centred on the line like the glyphs */
.ae-skel-tl{display:block;min-width:0;white-space:nowrap;overflow:hidden}
.ae-skel-tl::before{content:"\200b"}
.ae-skel-tl>.ae-skel{display:inline-block;vertical-align:middle;height:.66em}
/* a button / action: same box as the console's small mono buttons (11px, padding 5px 9px, 1px border) */
.ae-skel.ae-skel-btn{display:inline-block;height:auto;padding:5px 9px;border:1px solid transparent;font:11px 'Geist Mono',monospace}
.ae-skel-btn::before{content:"\200b"}

/* containers */
.ae-skel-card{border:1px solid var(--ae-sk-bd);background:var(--ae-sk-card);box-shadow:inset 0 1px 0 var(--t-ffffff0b-sh,rgba(255,255,255,.045))}
.ae-skel-kpi{display:flex;flex-direction:column;gap:12px;min-width:0;padding:15px 16px;border:1px solid var(--ae-sk-bd);background:var(--ae-sk-card);box-shadow:inset 0 1px 0 var(--t-ffffff0b-sh,rgba(255,255,255,.045))}
.ae-skel-row{display:grid;gap:14px;align-items:center;min-width:0;padding:12px;border-bottom:1px solid var(--ae-sk-rule)}
.ae-skel-stack{display:flex;flex-direction:column;gap:3px;min-width:0}

/* an embedded owner page (iframe) that has not painted yet: the console puts .ae-skel-frame behind the iframe inside
   an .ae-skel-fwrap; the iframe is transparent until its document paints its own (opaque) background, so the
   placeholder shows through exactly until then and is covered afterwards. The iframe's load event sets [hidden] on
   it, which also stops the shimmer. Padding = the iframe pages' own main padding, so their skeleton takes over in place. */
.ae-skel-fwrap{position:relative}
.ae-skel-fwrap>iframe{position:relative}   /* positioned and later in the tree = painted above the placeholder, no z-index */
.ae-skel-frame{position:absolute;inset:0;overflow:hidden;display:flex;flex-direction:column;gap:22px;padding:28px clamp(16px,3vw,40px);pointer-events:none}
.ae-skel-frame[hidden]{display:none}
