/* Layout only: page frames and stacks. Tokens only; logical properties only. */

/* Web dashboard (owner 25 Nov, KEA-WEB-DASHBOARD-SPEC-v2.md): the same app at 1024 px and wider (web_dashboard.enabled):
   a left menu, the page in the middle, Ask KEAi on the right of Home. Flat, brand palette; phones are unchanged. */
.app.app--desk { max-inline-size: none; display: grid; grid-template-columns: var(--size-desk-side) minmax(0, 1fr);
  grid-template-rows: auto 1fr; margin: 0; }
.app--desk > .test-label { grid-column: 1 / -1; }
.app--desk > .tabbar { display: none; }
.desk__page { min-inline-size: 0; display: flex; flex-direction: column; }
.app--desk .app__main { padding: var(--space-8) var(--space-12); }
.app--desk .app__main--fill { block-size: auto; overflow: visible; }
.side { position: sticky; inset-block-start: 0; align-self: start; block-size: 100vh; display: flex; flex-direction: column;
  gap: var(--space-8); padding: var(--space-10) var(--space-6); background: var(--color-surface);
  border-inline-end: var(--border-width) solid var(--color-line); }
.side__logo { font-size: var(--text-3xl); font-weight: var(--logo-weight); color: var(--color-text); text-decoration: none;
  padding-inline: var(--space-4); }
.side__i { color: var(--color-accent); }
.side__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.side__item { display: block; padding: var(--space-4) var(--space-5); border-radius: var(--radius-tag); color: var(--color-text-muted);
  text-decoration: none; font-weight: var(--weight-semibold); border-inline-start: 3px solid transparent; }
.side__item[aria-current="page"] { background: var(--color-page); color: var(--color-text); border-inline-start-color: var(--color-accent); }
.side__out { margin-block-start: auto; font: inherit; color: var(--color-text-muted); background: none; border: 0; text-align: start;
  padding: var(--space-4) var(--space-5); cursor: pointer; }
.dash { display: grid; grid-template-columns: minmax(0, 1fr) var(--size-desk-chat); gap: var(--space-10); align-items: start; }
.dash-main { display: flex; flex-direction: column; gap: var(--space-8); min-inline-size: 0; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-8); }
.dash-head__actions { display: flex; align-items: center; gap: var(--space-6); }
.dash-card { display: flex; flex-direction: column; gap: var(--space-5); }
.dash-card__title { margin: 0; font-size: var(--text-xl); font-weight: var(--weight-bold); }
.dash-chat__input { flex: 1; min-inline-size: 0; font: inherit; padding: var(--space-5) var(--space-7);
  border: var(--border-width) solid var(--color-line); border-radius: var(--radius-pill); background: var(--color-surface); color: var(--color-text); }
.dash-chips { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.dash-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8); }
.dash-cards4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6); }
.dash-big { margin: 0; font-size: var(--text-4xl); font-weight: var(--weight-bold); }
.dash-kv { display: grid; grid-template-columns: auto auto; gap: var(--space-3) var(--space-6); margin: 0; }
.dash-kv dt { color: var(--color-text-muted); }
.dash-kv dd { margin: 0; text-align: end; font-variant-numeric: tabular-nums; }
.dash-up { color: var(--color-danger); }   /* spending up: red, with the ▲ word-mark (never shown as positive) */
/* Upcoming payment rows (owner 26 Nov): name and "type · date" on the left; the amount right-aligned on its own line
   with the status pill under it. Two columns that wrap, never overlap, from 1024 to 1920 px. */
.dash-pay { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-6); align-items: start;
  padding-block: var(--space-5); border-block-start: var(--border-width) solid var(--color-line); color: inherit; text-decoration: none; }
.dash-pay__left { display: flex; flex-direction: column; gap: var(--space-1); min-inline-size: 0; }
.dash-pay__name { overflow-wrap: anywhere; }
.dash-pay__right { display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-2); }
.dash-pay__amt { font-weight: var(--weight-semibold); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* status pills: icon + word, never colour alone (owner 25 Nov palette) */
.dash-pill { display: inline-flex; align-items: center; font-size: var(--text-sm); font-weight: var(--weight-semibold);
  padding: var(--space-1) var(--space-4); border-radius: var(--radius-pill); white-space: nowrap; }
.dash-pill--urgent { color: var(--color-danger); background: var(--color-danger-soft); }
.dash-pill--due { color: var(--color-due); background: var(--color-due-soft); }
.dash-pill--paid { color: var(--color-positive); background: var(--color-positive-soft); }
.dash-pill--muted { color: var(--color-text-muted); border: var(--border-width) solid var(--color-line); }
.dash-grid2--wide { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.dash-over { margin: 0; color: var(--color-danger); font-weight: var(--weight-semibold); }
.dash-big--md { font-size: var(--text-2xl); }
/* this month's cumulative line, the dashed budget pace, the dotted projection */
.dash-cum__box { display: flex; flex-direction: column; gap: var(--space-3); }
.dash-cum { inline-size: 100%; block-size: auto; overflow: visible; }
.dash-cum__grid { stroke: var(--color-line); stroke-width: 1; }
.dash-cum__axis { fill: var(--color-text-muted); font-size: 11px; }
.dash-cum__pace { stroke: var(--color-text-muted); stroke-width: 2; stroke-dasharray: 5 5; }
.dash-cum__area { fill: var(--color-text); opacity: .06; }
.dash-cum__line { fill: none; stroke: var(--color-text); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.dash-cum__proj { stroke: var(--color-text); stroke-width: 2; stroke-dasharray: 2 5; stroke-linecap: round; opacity: .5; }
.dash-cum__dot { fill: var(--color-text); stroke: var(--color-surface); stroke-width: 2; }
.dash-cum__today { fill: var(--color-text); font-size: 12px; font-weight: 600; }
.dash-legend { display: flex; gap: var(--space-8); font-size: var(--text-sm); color: var(--color-text-muted); }
.dash-legend span { display: inline-flex; align-items: center; gap: var(--space-3); }
.dash-sw { display: inline-block; inline-size: 16px; block-size: 0; border-block-start: 2px solid var(--color-text); }
.dash-sw--pace { border-block-start: 2px dashed var(--color-text-muted); }
.dash-chat .dash-chips { gap: var(--space-3); }
/* the web pages (owner 26 Nov, queue job 7): Purchases, Brands, Settings */
.web-page { gap: var(--space-8); }
.web-head .title { margin: 0; }
.web-tools { display: flex; flex-wrap: wrap; gap: var(--space-6); align-items: center; justify-content: space-between; }
.web-tabs { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.web-tabs .chip[aria-pressed="true"] { background: var(--color-text); color: var(--color-surface); border-color: var(--color-text); }
.web-search { flex: 0 1 18rem; }
.web-table-wrap { overflow-x: auto; background: var(--color-surface); border: var(--border-width) solid var(--color-line);
  border-radius: var(--radius-card); }
.web-table { inline-size: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.web-table th { text-align: start; font-weight: var(--weight-semibold); color: var(--color-text-muted); white-space: nowrap;
  padding: var(--space-5) var(--space-6); border-block-end: var(--border-width) solid var(--color-line); }
.web-table td { padding: var(--space-5) var(--space-6); border-block-end: var(--border-width) solid var(--color-line); vertical-align: top; }
.web-table .num { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.web-row--link { cursor: pointer; }
.web-row--link:hover, .web-row--link:focus-visible { background: var(--color-page); }
.web-sub { display: block; }
.web-note { margin: 0; }
/* the 5-step journey: dots on a line; done steps filled; declined in red with its word */
.web-steps { display: flex; gap: var(--space-2); list-style: none; margin: 0; padding: 0; min-inline-size: 12rem; }
.web-steps__s { flex: 1; display: flex; flex-direction: column; align-items: center; gap: var(--space-2); position: relative; }
.web-steps__dot { inline-size: 10px; block-size: 10px; border-radius: 50%; border: 2px solid var(--color-line); background: var(--color-surface); }
.web-steps__s.is-done .web-steps__dot { background: var(--color-positive); border-color: var(--color-positive); }
.web-steps--declined .web-steps__s.is-done:last-of-type .web-steps__dot,
.web-steps--declined .web-steps__s.is-done .web-steps__dot { background: var(--color-danger); border-color: var(--color-danger); }
.web-steps__label { font-size: 10px; color: var(--color-text-muted); text-align: center; line-height: 1.2; }
.web-brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: var(--space-6); }
.web-brand { display: flex; flex-direction: column; gap: var(--space-3); align-items: flex-start; }
.web-brand .dash-card__title, .web-brand p { margin: 0; }
.web-brand__logo { block-size: 40px; inline-size: 40px; object-fit: contain; border-radius: var(--radius-tag);
  border: var(--border-width) solid var(--palette-line); background: var(--palette-card); }
.web-brand--more { justify-content: center; align-items: center; border-style: dashed; color: var(--color-text-muted); }
.web-settings { max-inline-size: 36rem; }
/* the phone sign-in (owner 28 Nov, option A): centred. The dotted orb (breathing, slow turn: the CSS orb), the logo
   large in its exact colours with the dot's double pulse every 1.6 s, the tagline; logo and tagline rise once on
   open. Reduced motion: nothing moves. */
.signin { max-inline-size: 30rem; inline-size: 100%; margin-inline: auto; padding-block-start: calc(var(--space-8) + env(safe-area-inset-top, 0px)); }
.signin-hero { display: flex; flex-direction: column; align-items: center; gap: var(--space-4); text-align: center; }
.signin-hero__orb { display: flex; justify-content: center; }
.signin-hero__brand { display: flex; flex-direction: column; align-items: center; gap: var(--space-3);
  animation: signin-rise var(--signin-rise-ms) var(--ease-out) both; }
.signin-hero__brand.is-in { animation: none; }
.signin-hero__logo { margin: 0; font-size: inherit; line-height: 1; }
.signin-hero__logo .logo { color: var(--signin-logo-ink); }
.signin-hero__logo .logo__i { color: var(--signin-logo-accent); }
.signin-hero__logo .logo__dot { background: var(--signin-logo-accent); animation: signin-dot var(--signin-dot-beat-ms) ease-in-out infinite; }
.signin-hero__tagline { margin: 0; color: var(--color-text-muted); font-size: var(--text-lg); }
.signin .signin__know { align-self: center; font-size: var(--text-sm); }
@keyframes signin-rise { from { opacity: 0; transform: translateY(var(--signin-rise-shift)); } to { opacity: 1; transform: none; } }
@keyframes signin-dot { 0%, 30%, 100% { transform: scale(1); } 8% { transform: scale(1.45); } 16% { transform: scale(1); } 22% { transform: scale(1.3); } }
@media (prefers-reduced-motion: reduce) {
  .signin-hero__brand, .signin-hero__logo .logo__dot { animation: none; }
}
/* the desktop sign-in (owner 26 Nov, web Part 1): a dark panel on the left, the same form on the right */
.signin-desk { display: grid; grid-template-columns: 1.05fr 1fr; min-block-size: 100vh; }
.signin-desk__side { display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-12);
  padding: var(--space-16) var(--space-14, var(--space-12)); background: var(--palette-ink); color: var(--palette-paper); }
.signin-desk__logo { font-size: var(--text-3xl); font-weight: var(--logo-weight); }
.signin-desk__claim { margin: 0; font-size: var(--text-5xl); line-height: 1.08; letter-spacing: -.025em; font-weight: var(--weight-bold); }
.signin-desk__sub, .signin-desk__pts li, .signin-desk__foot { color: var(--palette-paper); opacity: .85; margin: 0; max-inline-size: 30rem; }
.signin-desk__pts { list-style: none; margin: var(--space-6) 0 0; padding: 0; display: grid; gap: var(--space-4); }
.signin-desk__pts li::before { content: '✓  '; }
.signin-desk__foot { font-size: var(--text-sm); }
.signin-desk__form { justify-content: center; max-inline-size: 30rem; inline-size: 100%; margin-inline: auto; padding: var(--space-16) var(--space-8); }
.signin-desk__safety { margin: 0; font-size: var(--text-sm); color: var(--color-text-muted);
  border-block-start: var(--border-width) solid var(--color-line); padding-block-start: var(--space-6); }
/* 1024-1279 px: one column of cards, a slimmer Ask KEAi, the four small cards two by two (no squeezed text) */
@media (max-width: 1279px) {
  .dash { grid-template-columns: minmax(0, 1fr) var(--size-desk-chat-narrow); gap: var(--space-8); }
  .dash-grid2, .dash-grid2--wide { grid-template-columns: minmax(0, 1fr); }
  .dash-cards4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-head { flex-wrap: wrap; }
  .app--desk .app__main { padding-inline: var(--space-8); }
}
.dash-link { color: var(--color-text); font-weight: var(--weight-semibold); }
.dash-table { inline-size: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.dash-table th, .dash-table td { text-align: start; padding: var(--space-2) 0; border-block-end: var(--border-width) solid var(--color-line); }
.dash-chat { position: sticky; inset-block-start: var(--space-8); display: flex; flex-direction: column; gap: var(--space-5);
  block-size: calc(100vh - var(--space-16)); padding: var(--space-8); background: var(--color-surface);
  border: var(--border-width) solid var(--color-line); border-radius: var(--radius-card); }
.dash-chat__head p { margin: 0; }
.dash-chat__scroll { flex: 1; min-block-size: 0; overflow-y: auto; display: flex; flex-direction: column; gap: var(--space-5); }
.dash-chat__msgs { display: flex; flex-direction: column; gap: var(--space-5); }
.dash-chat__bar { display: flex; gap: var(--space-4); }
.app {
  max-inline-size: var(--size-app-max); min-block-size: 100vh; min-block-size: 100dvh;
  margin-inline: auto; display: flex; flex-direction: column;
  overflow-x: clip; /* transient effects (stamp, sheet) never cause sideways scroll */
}
.app__main {
  flex: 1; display: flex; flex-direction: column; gap: var(--space-6); min-inline-size: 0;
  padding: var(--space-3) var(--gutter) calc(var(--size-tabbar) + var(--space-12));
}
.app__main--plain { padding-block-end: var(--space-16); }
.app__main--sub { padding-inline: var(--space-8); }
.stack { display: flex; flex-direction: column; gap: var(--space-6); }
.stack--tight { gap: var(--space-1); }
.stack--loose { gap: var(--space-12); }
.row { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.row--end { justify-content: flex-end; }
.row--between { justify-content: space-between; flex-wrap: nowrap; }

.admin { max-inline-size: var(--size-admin-max); margin-inline: auto; min-block-size: 100vh; overflow-x: clip; }
.admin__main { display: flex; flex-direction: column; gap: var(--space-12); padding: var(--space-3) var(--gutter) var(--space-16); }

.orbdemo { align-items: center; }
.orbdemo__stage { display: flex; justify-content: center; }
.orbdemo__fps, .orbdemo__state { font-family: var(--font-mono); font-size: var(--text-sm); }

/* Home + chat (design-v2 01/02): own header, a scrolling middle, the solid message bar above the tab bar. */
.app--fill { block-size: 100vh; block-size: 100dvh; min-block-size: 0; }
.app__main--fill { padding: 0 0 var(--size-tabbar); gap: 0; min-block-size: 0; overflow: hidden; }
.home { flex: 1; min-block-size: 0; display: flex; flex-direction: column; }
.home__bar { flex-shrink: 0; border-block-end: var(--border-width) solid transparent; }
.home--chat .home__bar { border-block-end-color: var(--color-line); }
.home__brand { display: flex; align-items: center; gap: var(--space-5); }
.home__bar-orb { display: none; }
.home--chat .home__bar-orb { display: block; }
/* Owner 22 Nov: on Home the bell sits in the far corner; NEW CHAT takes no space until chat mode */
.home__new { display: none; }
.home--chat .home__new { display: inline-flex; }
.home__scroll { flex: 1; min-block-size: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; }
.home__hero { display: flex; flex-direction: column; align-items: center; padding-block-end: var(--space-8); }
.home--chat .home__hero { display: none; }
/* Orb Live (owner 25 Nov): the living orb sits in its own slot above the conversation while chatting */
.home__live { display: none; }
.home--chat.home--live .home__live { display: flex; justify-content: center; flex: none; position: relative; }
.home--live.home--chat .home__bar-orb { display: none; }
.home__orb { display: flex; justify-content: center; }
.home__swap { display: grid; inline-size: 100%; min-block-size: var(--home-swap-block); margin-block-start: var(--home-hero-gap); }
/* owner 28 Nov: no "I'm listening…" / "KEAi IS READY" swap; the greeting stays put while typing */
.home__greeting {
  grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; gap: var(--space-4);
  text-align: center; padding-inline: var(--gutter);
}
.home__feed {
  align-self: stretch; padding: var(--space-5) var(--gutter) 0; display: flex; flex-direction: column; gap: var(--space-4);
  transition: opacity var(--motion-swap) var(--ease-out), transform var(--motion-swap) var(--ease-out);
}
.home__feed .section-label { letter-spacing: var(--tracking-caps-wide); }
.home__feed-list { gap: var(--space-4); }
.home--typing .home__feed { opacity: var(--home-feed-dim); transform: translateY(var(--home-feed-shift)); }
.home__msgs { display: none; flex-direction: column; gap: var(--space-5); padding: var(--space-7) var(--space-8) var(--space-8); }
.home--chat .home__msgs { display: flex; }
.home__usage:empty { display: none; }
@media (prefers-reduced-motion: reduce) {
  .home__feed { transition: none; }
}

/* Sub-screens have no tab bar: no tab-bar space below the content (a fill sub-screen too) */
.app--sub .app__main { padding-block-end: 0; }
.app--sub .app__main--fill { padding-block-end: 0; }

/* Money / Receipts / receipt (design-v2 04, 08, 07) */
.money-bar { align-items: flex-end; padding-block-start: var(--space-11); min-block-size: 0; }
.money, .receipts { gap: var(--space-6); }
.receipts { gap: var(--space-7); padding-block-start: var(--space-7); }
.receipt-screen { gap: var(--space-5); }

/* You, Upgrade (design-v2 05, 14) */
.you { gap: var(--space-6); padding-block-start: var(--space-9); padding-block-end: var(--space-8); }
.you .profile-head { margin-block-end: var(--space-1); }
.you__knows { gap: var(--space-5); }
.you__see-plans { align-self: flex-end; }
.upgrade { gap: var(--space-7); padding-inline: var(--space-1); padding-block-end: var(--space-12); } /* 20 + 2 = 22 px sides */
.upgrade__head { display: flex; flex-direction: column; align-items: center; gap: var(--space-4); text-align: center; }
.upgrade__title {
  margin: 0; font-family: var(--font-heading); font-size: var(--text-7xl); font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-title-tight); line-height: var(--leading-tight);
}
.upgrade__bills { display: flex; flex-direction: column; gap: var(--space-7); padding-block-start: var(--space-3); }
.upgrade__off, .upgrade__billing { text-align: center; margin: 0; }
.upgrade__off { margin-block-start: calc(-1 * var(--space-3)); }
.tracker-screen { gap: var(--space-7); padding-block-end: var(--space-12); }
.tracker-screen__foot { margin: 0; line-height: var(--leading-relaxed); }

/* Splash (owner 26 Nov 19:19, KEA-LOGIN-CONSENT-26NOV section 1): in index.html, so it is the first paint. Paper
   ground, the orb (a dotted sphere) fading in above the KEAi wordmark. splash.js fades it out once the first screen
   is ready (not before 0.9 s); the CSS cap fades it out at 1.2 s whatever happens, gone by 1.5 s. Reduced motion:
   no fades, a static logo for 0.5 s. */
.splash {
  position: fixed; inset: 0; z-index: var(--z-splash); background: var(--palette-paper);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-8);
  animation: splash-out var(--motion-splash-fade) var(--ease-out) var(--motion-splash-cap) forwards;
}
.splash.is-out { animation: splash-out var(--motion-splash-fade) var(--ease-out) forwards; }
.splash__orb {
  inline-size: 90px; block-size: 90px; border-radius: 50%;
  background: radial-gradient(circle, var(--palette-ink) 1.6px, transparent 2.2px) center / 9px 9px;
  -webkit-mask-image: radial-gradient(circle at 42% 38%, var(--splash-mask-solid) 30%, var(--splash-mask-soft) 62%, transparent 71%);
  mask-image: radial-gradient(circle at 42% 38%, var(--splash-mask-solid) 30%, var(--splash-mask-soft) 62%, transparent 71%);
  animation: splash-in var(--motion-splash-fade) var(--ease-out) both;
}
.splash .logo { font-size: var(--logo-size-lg); }
.splash .logo__dot { inline-size: var(--size-logo-dot-lg); block-size: var(--size-logo-dot-lg); margin-inline-start: var(--logo-dot-gap-lg); }
@keyframes splash-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes splash-out { to { opacity: 0; visibility: hidden; pointer-events: none; } }
@media (prefers-reduced-motion: reduce) {
  .splash { animation: splash-out 1ms linear 1.5s forwards; }   /* no fade; the same 1.5 s cap */
  .splash__orb { animation: none; }
  .splash.is-out { display: none; }
}

/* The login page's "Before you continue" card and its one box (owner 26 Nov 19:19, section 3) */
.accept { display: flex; flex-direction: column; gap: var(--space-4); }
.accept__points { margin: 0; padding-inline-start: var(--space-10); display: flex; flex-direction: column; gap: var(--space-2);
  font-size: var(--text-sm); }
.accept__learn { font-size: var(--text-sm); margin: 0; }
.accept__check { font-weight: var(--weight-semibold); }

/* You › Privacy › Let KEAi learn (owner 26 Nov 19:19, section 5): one switch row and its line */
.you__privacy-block { margin-block-start: var(--space-8); }
.switch-row {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); inline-size: 100%;
  min-block-size: var(--size-touch); padding: var(--space-4) 0; border: 0; background: none; font: inherit;
  color: var(--color-text); text-align: start; cursor: pointer;
}
.switch-row__title { font-weight: var(--weight-semibold); }
.switch { position: relative; flex: none; inline-size: 44px; block-size: 26px; border-radius: 26px; background: var(--color-line); }
.switch i { position: absolute; inset-block-start: 3px; inset-inline-start: 3px; inline-size: 20px; block-size: 20px;
  border-radius: 50%; background: var(--palette-card); }
.switch-row[aria-checked="true"] .switch { background: var(--palette-ink); }
.switch-row[aria-checked="true"] .switch i { transform: translateX(18px); }
[dir="rtl"] .switch-row[aria-checked="true"] .switch i { transform: translateX(-18px); }
@media (prefers-reduced-motion: no-preference) { .switch i { transition: transform .2s var(--ease-out); } }

/* Sign-in (owner 22 Nov) */
.country-list { max-block-size: 60vh; overflow-y: auto; overscroll-behavior: contain; }
.text-link { border: 0; background: none; padding: var(--space-3) 0; color: var(--color-text); text-decoration: underline;
  font: inherit; font-size: var(--text-sm); cursor: pointer; align-self: flex-start; }

/* Dev-only isolation switches (?dbg=… on a KEA_DEV=1 server; temporary, for the iPhone tab-switch flash) */
html.dbg-noanim *, html.dbg-noanim *::before, html.dbg-noanim *::after { animation: none !important; transition: none !important; }
html.dbg-nofilter *, html.dbg-nofilter *::before, html.dbg-nofilter *::after {
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important; filter: none !important; box-shadow: none !important;
}
html.dbg-nobg body { background-image: none !important; }
.dbg-stage { position: absolute; inset: 0; visibility: hidden; pointer-events: none; overflow: hidden; }

/* Tab skeleton (owner 22 Nov): only inside <main> while a tab's first data loads. Static: no shimmer, no pulse. */
.skeleton { display: flex; flex-direction: column; gap: var(--space-6); padding-block-start: var(--space-6); }
.skeleton__line { block-size: var(--space-6); inline-size: 60%; border-radius: var(--radius-tag); background: var(--color-line); }
.skeleton__line--title { block-size: var(--space-10); inline-size: 45%; }
.skeleton__card { block-size: calc(var(--space-16) * 2); border-radius: var(--radius-card); background: var(--color-surface);
  border: var(--border-width) solid var(--color-line); }
