/* GevAI design language «Activity» v2.1.2: tokens, the v1 bridge and the shared base, in one file.
   Served by the GevAI portal from gevai-portal/design-language/. Do not copy it by hand: an app links
   /gevai-design/activity.css on its own origin (gevai_design.py), which fetches this file. */
@layer gevai.tokens, gevai.compat, gevai.base;
/* GevAI design language «Activity», v2: design tokens, light and dark.
   Canonical copy: gevai-portal/design-language/tokens.css. Apps never copy it by hand; they consume it through
   the shared source (GUIDELINES.md, «The single source of truth»).

   Built from: payment-dashboard PR #8, branch cursor/v14-design-build-ef28, head 2c69303 (static/style.css), staging
   revision payments-staging-00013-s9r, approved by Omer on 15 Nov 2026. Palette: palettes.json, entry "activity".
   Two values differ from that file on purpose and are marked "changed"; where they disagree, this file wins.

   Light is the default and the lead. Dark mode: set data-theme="dark" on <html>; every colour below is redefined.
   Every series hue has a deep tone (--blue) for dots, lines, legend marks and coloured text, and a light tone
   (--blue-l) that gradients run toward. To colour one element, give it a hue-* class (bottom of the file); it sets
   --c (deep) and --cl (light), and the recipe tokens (--swatch, --card-wash, ...) read them. */

@layer gevai.tokens {

:root {
  color-scheme: light;

  /* ---- surfaces: Apple's greys */
  --page: #F5F5F7;            /* the page behind everything */
  --surface: #FFFFFF;         /* panels, cards, tooltips, tiles, the raised segment */
  --sunk: #EDEDF0;            /* segmented-control tracks, inputs, the range track, empty donut ring */
  --line: #E5E5EA;            /* hairlines, unpressed chip edges, table rules */
  --grid: #F0F0F3;            /* chart grid lines */
  --line-control: #86868B;    /* an edge a control needs to be seen by (3:1) */

  /* ---- text */
  --ink: #1D1D1F;             /* primary text and big numbers */
  --text-2: #5E5E63;          /* secondary text, unselected tabs */
  --muted: #69696E;           /* labels, axis text, currency signs. changed: palettes.json #6E6E73 (4.5:1 on --sunk) */
  --faint: #AEAEB2;           /* decoration only, never text */

  /* ---- the one accent: graphite, not a colour */
  --accent: #1D1D1F;          /* primary button, pressed solid segment, active tab underline, focus ring, range edges */
  --accent-tint: #E8E8ED;     /* pressed chip (outside the overview), drop target, avatar, icon tile */
  --on-accent: #FFFFFF;

  /* ---- series hues, deep / light. Assign in this order within a view:
     blue, purple, red, yellow, green, teal, orange, magenta. Neutral grey is only for «לא משויך» and «אחר». */
  --blue: #0A64F0;    --blue-l: #4C9BFF;
  --purple: #8338EC;  --purple-l: #B37BFF;
  --red: #F2224F;     --red-l: #FF6B88;
  --yellow: #BD8500;  --yellow-l: #EBB517;   /* changed: palettes.json #E5A500/#FFD23F, lowered to the other hues' lightness */
  --green: #14A44D;   --green-l: #4FD67F;
  --teal: #0096C7;    --teal-l: #3CCBEB;
  --orange: #F56A00;  --orange-l: #FFA235;
  --magenta: #D1309E; --magenta-l: #F173CF;
  --gray: #8E8E93;    --gray-l: #C7C7CC;     /* neutral */

  /* ---- fixed meanings (always win over the order above) */
  --provider-openai: var(--purple);
  --provider-google: var(--green);
  --provider-anthropic: var(--orange);
  --track-psychometric: var(--blue);   /* פסיכומטרי */
  --track-bagrut: var(--red);          /* בגרות */
  --track-amirnet: var(--green);       /* אמירנט */
  --track-shared: var(--yellow);       /* משותף */
  --unassigned: var(--gray);           /* לא משויך, אחר */

  /* ---- states: a soft fill with a darker ink of the same family */
  --bad-ink: #C0123A;   --bad-fill: #FDECEF;
  --warn-ink: #8A5A00;  --warn-fill: #FCF4DC;
  --good-ink: #0F7A3A;  --good-fill: #E5F6EB;
  --badge: var(--red);                 /* the count on a nav tab, white text */

  /* ---- state tints (v2.1): the only fill a plain row ever gets, never with a border. 3.5-5% of the hue.
     They follow the theme because data-theme sits on <html>, where these resolve. */
  --tint-selected: color-mix(in srgb, var(--accent) 5%, transparent);    /* a picked option / row */
  --tint-correct: color-mix(in srgb, var(--green) 5%, transparent);      /* a right answer */
  --tint-wrong: color-mix(in srgb, var(--red) 4%, transparent);          /* a wrong answer */
  --tint-warn: color-mix(in srgb, var(--yellow) 5%, transparent);        /* a row that differs, needs a look */
  --tint-neutral: color-mix(in srgb, var(--ink) 3.5%, transparent);      /* an unavailable item, a quiet group */

  /* ---- elevation: four steps, all neutral, never coloured */
  --shadow: 0 0 0 1px var(--line), 0 30px 60px -44px rgba(0, 0, 0, 0.18);       /* panels, KPI tiles */
  --shadow-pop: 0 0 0 1px var(--line), 0 24px 60px -18px rgba(0, 0, 0, 0.24);   /* popovers, tooltips, calendar */
  --shadow-tile: 0 1px 2px rgba(20, 24, 50, 0.05);                              /* tiles and rows on a tinted column */
  --shadow-tile-hover: 0 6px 18px -10px rgba(20, 24, 50, 0.28);                 /* a tile lifting under the pointer */
  --shadow-segment: 0 1px 2px rgba(20, 22, 30, 0.10);                           /* the raised item in a segmented control */
  --shadow-primary: 0 4px 12px -5px var(--accent);                              /* the primary button */

  /* ---- radii */
  --radius-column: 28px;      /* board columns, login card */
  --radius-panel: 26px;       /* the big panels (22px on phones) */
  --radius-filters: 22px;     /* the filter bar */
  --radius-card: 20px;        /* cards inside a panel, KPI tiles, menus, calendar */
  --radius-row: 16px;         /* rows inside a column */
  --radius-tile: 14px;        /* draggable tiles, notices, icon tiles */
  --radius-control: 12px;     /* buttons, segmented-control track, tooltips */
  --radius-chip: 10px;        /* filter chips, inputs */
  --radius-segment: 9px;      /* the item inside a segmented control */
  --radius-tag: 8px;          /* pills and tags */
  --radius-pill: 999px;       /* badges, trend pills, deltas */

  /* ---- type: one family (Rubik 300/400/500), light weights for numbers */
  --font: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text-base: 15px;          /* body, line-height 1.5 */
  --text-sm: 14px;            /* controls, chips, tables, buttons */
  --text-xs: 13px;            /* labels, legends, tooltips */
  --text-2xs: 12px;           /* pills, captions */
  --text-axis: 11px;          /* chart axes and ticks */
  --text-title: 17px;         /* panel titles, weight 500 */
  --text-board-title: 18px;   /* board column titles, weight 500, in the column's hue */
  --num-hero: 72px;           /* the page's one big number, weight 300, -1.8px tracking; 60px on short screens, 56px on phones */
  --num-lg: 34px;             /* card amounts, cycle counts, weight 300 */
  --num-forecast: 30px;       /* the forecast beside the big number; 26px on short screens */
  --num-md: 28px;             /* KPI tile values, weight 300 */
  --num-sm: 20px;             /* legend amounts, row stats, weight 300 or 400 */
  --weight-number: 300;
  --weight-body: 400;
  --weight-strong: 500;       /* never heavier than 500 */

  /* ---- space and layout */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 56px;
  --page-max: 1680px;         /* content width cap */
  --page-gutter: 56px;        /* 16px below 640px */
  --bar-h: 76px;              /* the top bar (60px on phones) */
  --btn-h: 34px;              /* buttons, inputs, icon buttons */
  --segment-h: 28px;          /* items inside a segmented control (24px in the mini variant) */
  --chip-h: 28px;
  --panel-pad: 20px 24px 18px; /* 14px on phones */
  --gap-cards: 12px;          /* between cards in a row */
  --gap-columns: 20px;        /* between board columns */
  --chart-h: clamp(260px, calc(100vh - 610px), 400px);  /* shrinks so the time control stays in view; 280px on phones */
  --chart-h-short: clamp(200px, calc(100vh - 552px), 400px); /* below 820px of screen height */
  --spark-h: 80px;            /* sparkline in a side-by-side card; 44px on short screens */
  --filter-label-w: 112px;    /* the track-name column in the opened project rows (own line on phones) */
  --filter-row-h: 30px;       /* min height of a project row (28px on short screens); no gap between rows */

  /* ---- charts */
  --bar-min-w: 3px;           /* bars are thin pills, 3 to 10px wide */
  --bar-max-w: 10px;
  --bar-group-gap: 2.5px;     /* between side-by-side bars (up to 3 series); 4+ series stack with 2px gaps */
  --donut-ring: 18px;         /* 26px for the hovered slice */
  --donut-ring-hot: 26px;
  --donut-gap: 16px;          /* gap between segments, round caps */
  --area-line: 2px;
  --dim-chart: 0.2;           /* what everything else fades to when one series is hovered */
  --dim-donut: 0.28;
  --dim-legend: 0.55;

  /* ---- motion: one curve */
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --t-fast: 0.16s;            /* hovers, presses */
  --t-float: 0.22s;
  --t-med: 0.4s;              /* entrances: rise 10px and fade, staggered 50ms */
}

/* ---- the gradient recipe, for an element that carries --c (deep) and --cl (light).
   Declared on the hued element itself, not on :root: a custom property resolves its var() where it is declared,
   and :root has no --c, so a :root recipe would reach every element empty. Any element with a hue-* class gets
   it (and its descendants inherit the resolved values); an element that sets --c by other means adds gv-hued. */
:where([class*="hue-"], .gv-hued) {
  --swatch: linear-gradient(135deg, var(--c), var(--cl, var(--c)));                       /* dots and legend marks */
  --bar-fill: linear-gradient(180deg, var(--cl, var(--c)), var(--c));                     /* light top, deep bottom */
  --area-stroke: linear-gradient(90deg, var(--c), var(--cl, var(--c)));                   /* deep to light, left to right */
  --area-fill: linear-gradient(180deg, color-mix(in srgb, var(--cl, var(--c)) 34%, transparent), transparent);
  --card-wash: color-mix(in srgb, var(--c) 5%, var(--surface));                           /* a card's tint */
  /* The edges below are kept for the few places an edge is truly needed (v2.1: no outlined rows or boxes by
     default). A card, a column or a row is set apart by its wash and by spacing, not by a line. */
  --card-edge: inset 0 0 0 1px color-mix(in srgb, var(--c) 12%, transparent);
  --card-edge-hot: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 45%, transparent);
  --column-wash: color-mix(in oklab, var(--c) 3.5%, var(--surface));                     /* a board column: white, a whisper of hue */
  --column-edge: 0 0 0 1px color-mix(in oklab, var(--c) 9%, var(--line));                 /* its 1px edge, only if needed */
  --column-row-edge: 0 0 0 1px color-mix(in oklab, var(--c) 7%, var(--line));             /* a row's edge, only if needed */
  --row-tint: color-mix(in srgb, var(--c) 4%, transparent);                               /* a selected row of this hue */
  --chip-on: color-mix(in srgb, var(--c) 11%, transparent);                               /* a pressed value chip */
  --row-hot: color-mix(in srgb, var(--c) 8%, transparent);                                /* a hovered table row */
  --tag-wash: color-mix(in srgb, var(--c) 12%, transparent);                              /* a hue-coloured tag */
}

[data-theme="dark"] {
  color-scheme: dark;

  --page: #000000;
  --surface: #1C1C1E;
  --sunk: #2C2C2E;
  --line: #2C2C2E;
  --grid: #242426;
  --line-control: #7C7C80;

  --ink: #F5F5F7;
  --text-2: #AEAEB2;
  --muted: #98989D;
  --faint: #636366;

  --accent: #F5F5F7;          /* the accent flips to near-white */
  --accent-tint: #2C2C2E;
  --on-accent: #000000;

  --blue: #2F7BFF;    --blue-l: #6FB2FF;
  --purple: #A15CFF;  --purple-l: #C79BFF;
  --red: #FF375F;     --red-l: #FF8099;
  --yellow: #EBAB00;  --yellow-l: #F7C747;   /* changed: palettes.json #FFC21A/#FFE066 */
  --green: #30D158;   --green-l: #7AE89A;
  --teal: #22B8E0;    --teal-l: #64D9F2;
  --orange: #FF8A1F;  --orange-l: #FFB65C;
  --magenta: #EE4FBF; --magenta-l: #FF8EDB;
  --gray: #8E8E93;    --gray-l: #636366;     /* in dark the neutral's "light" tone is the darker one, so it recedes */

  --bad-ink: #FF8099;   --bad-fill: #3A1820;
  --warn-ink: #FFC21A;  --warn-fill: #352A0E;
  --good-ink: #7AE89A;  --good-fill: #12301C;

  /* in dark, panels separate by surface and hairline only; the long soft shadow is dropped */
  --shadow: 0 0 0 1px var(--line);
  --shadow-pop: 0 0 0 1px var(--line), 0 24px 60px -18px rgba(0, 0, 0, 0.7);
}

/* one class per hue sets both tones on an element; children read var(--c) and var(--cl) */
.hue-blue    { --c: var(--blue);    --cl: var(--blue-l); }
.hue-purple  { --c: var(--purple);  --cl: var(--purple-l); }
.hue-red     { --c: var(--red);     --cl: var(--red-l); }
.hue-yellow  { --c: var(--yellow);  --cl: var(--yellow-l); }
.hue-green   { --c: var(--green);   --cl: var(--green-l); }
.hue-teal    { --c: var(--teal);    --cl: var(--teal-l); }
.hue-orange  { --c: var(--orange);  --cl: var(--orange-l); }
.hue-magenta { --c: var(--magenta); --cl: var(--magenta-l); }
.hue-gray    { --c: var(--gray);    --cl: var(--gray-l); }
/* graphite: the chrome's own tone, for the one item that is not data (a technical door, a plain link).
   Not a ninth hue: it never marks a series. */
.hue-graphite { --c: var(--ink); --cl: var(--text-2); }

@media (prefers-reduced-motion: reduce) {
  :root { --t-fast: 0s; --t-float: 0s; --t-med: 0s; }
}

}

/* GevAI design language «Activity», v2: the bridge from the v1 kit's names.
   Canonical copy: gevai-portal/design-language/compat.css.

   Every --gv-* name the v1 kit (teal and brass, Heebo) defined points at its Activity token here, so an app that
   still reads var(--gv-teal) restyles the moment it loads the shared source, before its own rules are rewritten.
   It is a bridge, not a second palette: new rules read the Activity names (--page, --ink, --accent, --blue, ...).
   An app that still defines its own --gv-* values (an unlayered :root block copied from the v1 kit) overrides
   this layer; delete that block when the app moves to the shared source.

   The v1 tone names map to the nearest Activity hue family. Where a product has a fixed meaning (GUIDELINES.md,
   «Fixed meanings»), use that hue directly instead of the bridge. */

@layer gevai.compat {

:root {
  /* surfaces and text */
  --gv-canvas: var(--page);
  --gv-card: var(--surface);
  --gv-ink: var(--ink);
  --gv-gray: var(--text-2);
  --gv-gray-soft: var(--muted);
  --gv-hairline: var(--line);
  --gv-border: var(--line);

  /* the v1 lead colour becomes the graphite accent: chrome is never coloured in Activity */
  --gv-teal: var(--accent);
  --gv-teal-bright: var(--accent);
  --gv-teal-deep: var(--accent);
  --gv-teal-container: var(--accent-tint);

  /* the v1 tones, onto the nearest hue */
  --gv-gold: var(--yellow);
  --gv-plum: var(--purple);
  --gv-slate: var(--blue);
  --gv-moss: var(--green);
  --gv-rose: var(--magenta);
  --gv-umber: var(--red);

  /* the teal-to-brass keyline has no successor: a hairline */
  --gv-grad: linear-gradient(90deg, var(--line), var(--line));

  /* icon tiles: the two-tone recipe of the matching hue; graphite for the v1 "ink" anchor */
  --gv-tile-teal: linear-gradient(135deg, var(--teal), var(--teal-l));
  --gv-tile-gold: linear-gradient(135deg, var(--yellow), var(--yellow-l));
  --gv-tile-ink: linear-gradient(135deg, var(--ink), var(--text-2));
  --gv-tile-terra: linear-gradient(135deg, var(--orange), var(--orange-l));
  --gv-tile-plum: linear-gradient(135deg, var(--purple), var(--purple-l));
  --gv-tile-slate: linear-gradient(135deg, var(--blue), var(--blue-l));
  --gv-tile-moss: linear-gradient(135deg, var(--green), var(--green-l));
  --gv-tile-rose: linear-gradient(135deg, var(--magenta), var(--magenta-l));
  --gv-tile-umber: linear-gradient(135deg, var(--red), var(--red-l));

  /* coloured shadows are gone: every tile shadow is the same neutral lift */
  --gv-tile-shadow-teal: var(--shadow-tile);
  --gv-tile-shadow-gold: var(--shadow-tile);
  --gv-tile-shadow-ink: var(--shadow-tile);
  --gv-tile-shadow-terra: var(--shadow-tile);
  --gv-tile-shadow-plum: var(--shadow-tile);
  --gv-tile-shadow-slate: var(--shadow-tile);
  --gv-tile-shadow-moss: var(--shadow-tile);
  --gv-tile-shadow-rose: var(--shadow-tile);
  --gv-tile-shadow-umber: var(--shadow-tile);

  /* shape and elevation */
  --gv-radius-xl: var(--radius-column);
  --gv-radius-lg: var(--radius-card);
  --gv-radius-md: var(--radius-tile);
  --gv-shadow-1: var(--shadow);
  --gv-shadow-3: var(--shadow-pop);
  --gv-shadow-float: var(--shadow-pop);

  /* type: one family */
  --gv-font-ui: var(--font);
  --gv-font-latin: var(--font);

  /* motion */
  --gv-ease: var(--ease);
  --gv-t-fast: var(--t-fast);
  --gv-t-float: var(--t-float);
  --gv-t-med: var(--t-med);

  /* the v1 login wash is gone: the page grey */
  --gv-login-wash: var(--page);

  /* names some apps added on top of the v1 kit */
  --gv-error-bg: var(--bad-fill);
  --gv-error-text: var(--bad-ink);
}

}

/* GevAI design language «Activity», v2: shared base styles.
   Canonical copy: gevai-portal/design-language/base.css. Reads only the tokens in tokens.css.

   Two parts:
   1. Element defaults: the page grey, Rubik, ink text, links, the focus ring, selection.
   2. Components, every class prefixed gv-, so nothing here touches markup that did not ask for it:
      top bar, logo, nav, panels, cards, icon tiles, KPI tiles, buttons, segmented controls, chips, dots, fields,
      tables, pills, deltas, badges, notices, popovers, tooltips, empty states, the entrance rise.

   No stripes, no boxes (v2.1, Omer): a list, a set of answer options or a group of items is plain rows on the
   panel, separated by spacing (a hairline divider at most). Only a selected / correct / wrong / differing state
   gets a soft 3.5-5% tint, never a border. Nothing inside a panel draws a second box: cards, KPI tiles, notices
   and panels nested in a panel lose their edge and shadow. Edges stay only where they are truly needed: buttons,
   inputs on focus, the panel itself, popovers.

   Everything sits in the cascade layer gevai.base. An app's own (unlayered) CSS always wins over it, whatever the
   order or specificity, so an app can keep a local rule while it migrates, and a change here can never break an
   app's deliberate local rule. Modifiers are BEM-style (gv-btn--primary) so they cannot collide with app classes.
   RTL: every margin, padding and alignment is logical (start / end, inline / block). */

@layer gevai.base {

/* ---------------------------------------------------------------- 1. element defaults */

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--text-base);
  font-weight: var(--weight-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--ink); text-decoration-color: var(--line-control); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--blue) 22%, transparent); }

/* ---------------------------------------------------------------- 2. small helpers */

/* numbers, amounts and dates stay left-to-right inside the RTL page, in equal-width figures */
.gv-num { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gv-muted { color: var(--muted); }
.gv-secondary { color: var(--text-2); }
.gv-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- page frame and top bar */

.gv-wrap { max-width: var(--page-max); margin-inline: auto; padding: 0 var(--page-gutter) var(--space-7); }

.gv-bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2) 40px;
  min-height: var(--bar-h);
}
.gv-bar-end { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.gv-bar-end form { display: flex; margin: 0; }

/* The Yoeli logo: the only brand mark, always a link back to the portal (in the portal: to /dashboard). */
.gv-logo-link { display: inline-flex; align-items: center; text-decoration: none; }
/* yoeli-logo.png carries wide transparent margins: a 34px box shows the mark at about 24px, and the negative
   block margins keep the box from pushing the bar taller. */
.gv-logo { display: block; width: auto; height: 34px; margin-block: -4px; }
.gv-logo--lg { height: 56px; margin-block: -6px; }
[data-theme="dark"] .gv-logo { filter: brightness(0) invert(0.92); }

.gv-nav { display: flex; align-items: center; gap: 40px; min-width: 0; }
.gv-nav a, .gv-nav-link {
  position: relative; display: inline-flex; align-items: center; padding: 4px 0;
  font-size: var(--text-base); color: var(--text-2); text-decoration: none; white-space: nowrap;
}
.gv-nav a:hover, .gv-nav-link:hover { color: var(--ink); }
.gv-nav a[aria-current="page"], .gv-nav-link.is-active { color: var(--ink); font-weight: var(--weight-strong); }
.gv-nav a[aria-current="page"]::after, .gv-nav-link.is-active::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -8px; height: 2px; border-radius: 2px; background: var(--accent);
}

/* a second, underlined tab row on a hairline (sub-pages) */
.gv-subnav { display: flex; flex-wrap: wrap; gap: 28px; margin: 4px 0 22px; border-bottom: 1px solid var(--line); }
.gv-subnav a {
  position: relative; padding: 10px 0 12px; color: var(--text-2); text-decoration: none; font-size: var(--text-base);
}
.gv-subnav a:hover { color: var(--ink); }
.gv-subnav a[aria-current="page"], .gv-subnav a.is-active { color: var(--ink); font-weight: var(--weight-strong); }
.gv-subnav a[aria-current="page"]::after, .gv-subnav a.is-active::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent);
}

.gv-count {
  display: inline-block; min-width: 18px; margin-inline-start: 6px; padding: 0 5px; border-radius: var(--radius-pill);
  background: var(--badge); color: #FFFFFF; font-size: 11px; font-weight: var(--weight-strong); line-height: 18px; text-align: center;
}
[data-theme="dark"] .gv-count { color: var(--on-accent); }

/* staging and local are visibly not production */
.gv-env {
  display: inline-block; padding: 2px 10px; border-radius: var(--radius-pill);
  background: var(--warn-fill); color: var(--warn-ink);
  font-size: var(--text-2xs); font-weight: var(--weight-strong); line-height: 1.5; white-space: nowrap; text-decoration: none;
}

.gv-avatar {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent-tint); color: var(--accent); font-size: var(--text-sm); font-weight: var(--weight-strong);
}
.gv-user { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); color: var(--text-2); }

/* ---------------------------------------------------------------- titles */

.gv-page-title { margin: 0; font-size: var(--num-lg); font-weight: var(--weight-number); letter-spacing: -0.02em; line-height: 1.15; }
.gv-hero-number { margin: 0; font-size: var(--num-hero); font-weight: var(--weight-number); letter-spacing: -1.8px; line-height: 1; }
.gv-panel-title {
  margin: 0; display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-title); font-weight: var(--weight-strong); letter-spacing: -0.01em;
}
.gv-label { font-size: var(--text-xs); color: var(--muted); }

/* ---------------------------------------------------------------- panels, cards, KPI tiles */

/* Each part of a page is its own surface: white on the grey page, a hairline and one long, very soft shadow. */
.gv-panel { padding: var(--panel-pad); background: var(--surface); border-radius: var(--radius-panel); box-shadow: var(--shadow); }
.gv-panel + .gv-panel { margin-top: 18px; }
.gv-panel-head {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-2) 14px;
  margin: 0 0 var(--space-3); min-height: 30px;
}

/* A card inside a panel: a group set apart by spacing, not a box. With a hue-* class it carries a 5% wash of its
   hue, and still no edge. */
.gv-card { padding: 16px 18px; border-radius: var(--radius-card); background: transparent; }
.gv-card[class*="hue-"] { background: var(--card-wash); }

/* No nested boxes: anything boxed that sits inside a panel goes flat. */
.gv-panel .gv-panel,
.gv-panel .gv-kpi,
.gv-panel .gv-notice:not(.gv-notice--warn):not(.gv-notice--bad):not(.gv-notice--good) {
  background: transparent; box-shadow: none;
}
.gv-panel .gv-panel { padding: 0; border-radius: 0; }
.gv-card-name { margin: 0; font-size: var(--text-sm); font-weight: var(--weight-strong); color: var(--c, var(--ink)); }
.gv-card-amount { margin: 0; font-size: var(--num-lg); font-weight: var(--weight-number); letter-spacing: -0.02em; line-height: 1.15; }

/* An icon tile: graphite on accent tint by default; with a hue-* class, the hue's two-tone gradient with a white icon. */
.gv-icon-tile {
  flex: none; display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: var(--radius-control); background: var(--accent-tint); color: var(--accent);
}
.gv-icon-tile[class*="hue-"] { background: var(--swatch); color: #FFFFFF; box-shadow: var(--shadow-tile); }
.gv-icon-tile svg { width: 18px; height: 18px; }

.gv-kpi {
  display: flex; align-items: center; gap: var(--space-3); min-width: 0; padding: 14px 18px;
  background: var(--surface); border-radius: var(--radius-card); box-shadow: var(--shadow);
}
.gv-kpi-label { margin: 0; font-size: var(--text-xs); color: var(--text-2); line-height: 1.3; }
.gv-kpi-value { margin: 0; font-size: var(--num-md); font-weight: var(--weight-number); letter-spacing: -0.02em; line-height: 1.15; }

/* ---------------------------------------------------------------- buttons */

/* One button shape everywhere: 34px, 12px radius, 14px at 500. Primary is graphite, at most one per area. */
.gv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: var(--btn-h); margin: 0; padding: 0 16px;
  border: 0; border-radius: var(--radius-control); box-shadow: inset 0 0 0 1px var(--line);
  background: var(--surface); color: var(--ink);
  font-family: inherit; font-size: var(--text-sm); font-weight: var(--weight-strong); line-height: 1; white-space: nowrap;
  text-decoration: none; cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}
.gv-btn:hover { background: var(--sunk); }
.gv-btn:active { background: var(--accent-tint); }
.gv-btn svg { width: 16px; height: 16px; }
.gv-btn--primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-primary); }
.gv-btn--primary:hover { background: var(--accent); opacity: 0.92; }
.gv-btn--primary:active { background: var(--accent); opacity: 0.85; }
.gv-btn--danger { color: var(--bad-ink); }
.gv-btn--danger:hover { background: var(--bad-fill); }
.gv-btn--ghost { box-shadow: none; background: transparent; color: var(--text-2); }
.gv-btn--ghost:hover { background: var(--sunk); color: var(--ink); }
.gv-btn--add { box-shadow: none; }
.gv-btn--add:hover { background: var(--surface); box-shadow: var(--shadow-tile-hover); }
.gv-btn--block { display: flex; width: 100%; min-height: 44px; font-size: var(--text-base); }
.gv-btn[disabled], .gv-btn[aria-disabled="true"] {
  cursor: not-allowed; background: var(--sunk); box-shadow: none; color: var(--muted); opacity: 1;
}

/* a 34px circle holding only an icon; always give it aria-label and title */
.gv-icon-btn {
  display: grid; place-items: center; width: var(--btn-h); height: var(--btn-h); padding: 0;
  border: 0; border-radius: 50%; background: none; color: var(--text-2); cursor: pointer; text-decoration: none;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.gv-icon-btn:hover { background: var(--sunk); color: var(--ink); }

/* ---------------------------------------------------------------- segmented controls */

.gv-seg-group {
  display: inline-flex; align-items: stretch; gap: 2px; margin: 0; padding: 3px;
  border: 0; border-radius: var(--radius-control); background: var(--sunk);
}
.gv-seg {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 24px; min-height: var(--segment-h);
  padding: 0 14px; border: 0; border-radius: var(--radius-segment); background: transparent; color: var(--text-2);
  font-family: inherit; font-size: var(--text-sm); font-weight: var(--weight-body); line-height: 1; white-space: nowrap;
  text-decoration: none; cursor: pointer;
}
.gv-seg:hover { color: var(--ink); }
.gv-seg.is-active, .gv-seg[aria-pressed="true"], .gv-seg[aria-current="true"], .gv-seg[aria-current="page"], .gv-seg[aria-selected="true"] {
  background: var(--surface); color: var(--ink); font-weight: var(--weight-strong); box-shadow: var(--shadow-segment);
}
.gv-seg-group--solid .gv-seg.is-active, .gv-seg-group--solid .gv-seg[aria-pressed="true"], .gv-seg-group--solid .gv-seg[aria-selected="true"] {
  background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-primary);
}
.gv-seg-group--mini .gv-seg { min-height: 24px; padding: 0 10px; font-size: var(--text-xs); }
.gv-seg svg { width: 16px; height: 16px; }

/* ---------------------------------------------------------------- chips and dots */

/* Filters are toggles on the name itself, never checkboxes. A plain word with its dot, no edge (v2.1); sunk on
   hover. Pressed = 11% of the value's hue behind ink text; without a hue, accent tint. */
.gv-chip {
  display: inline-flex; align-items: center; gap: 7px; min-height: var(--chip-h); padding: 5px 11px;
  border: 0; border-radius: var(--radius-chip); box-shadow: none;
  background: transparent; color: var(--muted);
  font-family: inherit; font-size: var(--text-sm); line-height: 1.2; white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.gv-chip:hover { color: var(--ink); background: var(--sunk); }
.gv-chip[aria-pressed="true"], .gv-chip.is-on { background: var(--accent-tint); color: var(--ink); }
.gv-chip[class*="hue-"][aria-pressed="true"], .gv-chip[class*="hue-"].is-on { background: var(--chip-on); }
.gv-chip .gv-dot { opacity: 0.45; }
.gv-chip[aria-pressed="true"] .gv-dot, .gv-chip.is-on .gv-dot { opacity: 1; }
.gv-chips { display: flex; flex-wrap: wrap; gap: 6px; }

.gv-dot {
  display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(135deg, var(--c, var(--gray)), var(--cl, var(--c, var(--gray))));
}

/* ---------------------------------------------------------------- fields */

/* inputs are sunk grey with no border; on focus they turn white with a 1.5px graphite inside edge */
.gv-field { display: flex; flex-direction: column; gap: 6px; }
.gv-field > span, .gv-field > label { font-size: 12.5px; color: var(--muted); }
.gv-input,
.gv-field input:not([type="checkbox"]):not([type="radio"]),
.gv-field select,
.gv-field textarea {
  width: 100%; min-height: var(--btn-h); padding: 6px 12px;
  border: 0; border-radius: var(--radius-chip); background: var(--sunk); color: var(--ink); box-shadow: none;
  font-family: inherit; font-size: var(--text-sm); outline: none;
  transition: background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
textarea.gv-input, .gv-field textarea { min-height: 96px; padding-block: 10px; line-height: 1.5; resize: vertical; }
.gv-input:focus,
.gv-field input:not([type="checkbox"]):not([type="radio"]):focus,
.gv-field select:focus,
.gv-field textarea:focus { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--accent); outline: none; }
.gv-input::placeholder, .gv-field input::placeholder, .gv-field textarea::placeholder { color: var(--muted); }
.gv-check { accent-color: var(--accent); }

/* ---------------------------------------------------------------- lists, rows and answer options */

/* Plain rows on the panel, separated by spacing. No border, no outline, no box per item. */
.gv-list { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.gv-list--divided { gap: 0; }
.gv-list--divided > * + * { border-top: 1px solid var(--line); }   /* the one stripe allowed: a hairline */
.gv-row {
  display: flex; align-items: center; gap: var(--space-3); min-height: 36px; padding: 8px 12px;
  border: 0; border-radius: var(--radius-chip); background: transparent; color: var(--ink);
  font: inherit; text-align: start; text-decoration: none;
}
.gv-list--divided > .gv-row { border-radius: 0; }
a.gv-row, button.gv-row, label.gv-row { cursor: pointer; transition: background var(--t-fast) var(--ease); }
a.gv-row:hover, button.gv-row:hover, label.gv-row:hover { background: var(--sunk); }

/* An answer option (or any pickable row): a plain row; only its state is tinted. Mark the state with a word or
   an icon too (colour is never the only signal); .gv-option-mark holds it, in the state's ink. */
.gv-options { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
.gv-option {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 9px 14px;
  border: 0; border-radius: var(--radius-control); background: transparent; color: var(--ink);
  font: inherit; font-size: var(--text-base); line-height: 1.45; text-align: start; box-shadow: none;
}
button.gv-option, label.gv-option, a.gv-option { cursor: pointer; transition: background var(--t-fast) var(--ease); }
button.gv-option:hover, label.gv-option:hover, a.gv-option:hover { background: var(--sunk); }
.gv-option.is-selected, .gv-option[aria-pressed="true"], .gv-option[aria-checked="true"], .gv-option[aria-selected="true"],
.gv-row.is-selected, .gv-row[aria-selected="true"], .gv-row[aria-current="true"] { background: var(--tint-selected); }
.gv-option.is-correct, .gv-row.is-correct { background: var(--tint-correct); }
.gv-option.is-wrong, .gv-row.is-wrong { background: var(--tint-wrong); }
.gv-row.is-warn, .gv-option.is-warn { background: var(--tint-warn); }
.gv-option-mark { flex: none; margin-inline-start: auto; font-size: var(--text-xs); font-weight: var(--weight-strong); }
.gv-option.is-correct .gv-option-mark { color: var(--good-ink); }
.gv-option.is-wrong .gv-option-mark { color: var(--bad-ink); }

/* ---------------------------------------------------------------- tables */

.gv-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.gv-table th, .gv-table td { padding: 10px 12px; text-align: start; border-bottom: 1px solid var(--line); }
.gv-table thead th { font-size: var(--text-xs); font-weight: var(--weight-body); color: var(--muted); white-space: nowrap; }
.gv-table tbody tr:last-child th, .gv-table tbody tr:last-child td { border-bottom: 0; }
.gv-table tbody tr:hover > * { background: var(--sunk); }
.gv-table tbody tr[class*="hue-"]:hover > * { background: var(--row-hot); }
.gv-table tbody tr:hover > :first-child { border-start-start-radius: 10px; border-end-start-radius: 10px; }
.gv-table tbody tr:hover > :last-child { border-start-end-radius: 10px; border-end-end-radius: 10px; }
.gv-table .gv-amount, .gv-table td.gv-num { text-align: end; }
.gv-table tfoot td, .gv-table tr.gv-total > * { font-weight: var(--weight-strong); border-top: 1px solid var(--line); }

/* ---------------------------------------------------------------- pills, tags, deltas, badges */

.gv-pill {
  display: inline-block; padding: 2px 9px; border-radius: var(--radius-tag);
  background: var(--sunk); color: var(--ink); font-size: 12.5px; line-height: 1.5; white-space: nowrap;
}
.gv-pill--warn { background: var(--warn-fill); color: var(--warn-ink); }
.gv-pill--bad { background: var(--bad-fill); color: var(--bad-ink); }
.gv-pill--good { background: var(--good-fill); color: var(--good-ink); }
.gv-pill--accent { background: var(--accent-tint); color: var(--ink); }
.gv-pill[class*="hue-"] { background: var(--tag-wash); color: var(--c); }
.gv-pills { display: flex; flex-wrap: wrap; gap: 6px; }

.gv-delta {
  display: inline-flex; align-items: center; gap: 3px; padding: 0 8px; border-radius: var(--radius-pill);
  background: var(--sunk); color: var(--ink); font-size: var(--text-2xs); font-weight: var(--weight-strong);
}
/* for spend, up is bad */
.gv-delta--up { background: var(--bad-fill); color: var(--bad-ink); }
.gv-delta--down { background: var(--good-fill); color: var(--good-ink); }

.gv-badge {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--radius-pill);
  background: var(--accent); color: var(--on-accent); font-size: 11.5px; font-weight: var(--weight-strong);
}

/* the «?» behind which explanations sit */
.gv-tip {
  display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%;
  background: var(--sunk); color: var(--text-2); font-size: 11px; font-weight: var(--weight-strong); line-height: 1; cursor: help;
}

/* ---------------------------------------------------------------- notices and messages */

/* a one-line strip: white on the page, no edge; the state variants are their soft fill */
.gv-notice {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px;
  margin: 0 0 var(--space-3); padding: 10px 16px; border-radius: var(--radius-tile);
  background: var(--surface); box-shadow: none; color: var(--ink); font-size: var(--text-sm);
}
.gv-notice p { margin: 0; }
.gv-notice--warn { background: var(--warn-fill); box-shadow: none; }
.gv-notice--bad { background: var(--bad-fill); box-shadow: none; color: var(--bad-ink); font-weight: var(--weight-strong); }
.gv-notice--good { background: var(--good-fill); box-shadow: none; color: var(--good-ink); font-weight: var(--weight-strong); }

/* one muted sentence that says what to do, and the one button that does it */
.gv-empty { margin: 0; padding: var(--space-6) var(--space-4); text-align: center; color: var(--muted); font-size: var(--text-sm); }

/* ---------------------------------------------------------------- popovers and tooltips */

.gv-popover { padding: var(--space-4); background: var(--surface); border-radius: var(--radius-card); box-shadow: var(--shadow-pop); }
.gv-tooltip {
  padding: 8px 12px; background: var(--surface); border-radius: var(--radius-control); box-shadow: var(--shadow-pop);
  color: var(--ink); font-size: var(--text-xs); pointer-events: none;
}

/* ---------------------------------------------------------------- motion */

@keyframes gv-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.gv-rise { animation: gv-rise var(--t-med) var(--ease) both; }
.gv-rise--d1 { animation-delay: 0.05s; }
.gv-rise--d2 { animation-delay: 0.1s; }
.gv-rise--d3 { animation-delay: 0.15s; }
.gv-rise--d4 { animation-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  .gv-rise { animation: none; }
  .gv-btn, .gv-chip, .gv-icon-btn { transition: none; }
}

/* ---------------------------------------------------------------- phones */

@media (max-width: 640px) {
  .gv-wrap { padding-inline: 16px; }
  .gv-bar { min-height: 60px; gap: var(--space-2) var(--space-4); }
  .gv-logo { height: 28px; margin-block: -3px; }
  .gv-nav { gap: var(--space-5); }
  .gv-panel { padding: 14px; border-radius: 22px; }
  .gv-hero-number { font-size: 56px; }
}

/* touch screens: what appears on hover elsewhere is always visible */
@media (hover: none) {
  .gv-hover-only { opacity: 1 !important; visibility: visible !important; }
}

}
