/* Copyright © 2026 Cellogi, Inc. All rights reserved.
   Proprietary and confidential. Unauthorized copying, distribution, or use of this file, in whole or in part, is strictly prohibited.

   cg-design.css — the one look of every Cellogi website: colors, type, and the core components.
   Source: cellogi-shared/design. Each site keeps a synced copy (node ../cellogi-shared/design/sync.mjs <folder>) and
   links it before its own stylesheet; a site's own file adds only what is particular to that site.
   The components are the customer portal's; the colors come from the logo, the website and the films (owner
   decisions, 30 October 2026: green #47d463 from the logo, teal #087e80 and navy #062c45 from the website and films,
   text #1a2834 from the logo's wordmark; the main button is the logo-gradient pill and the face is Arimo, Arial's free
   twin, bundled in fonts/ so every device draws the same letters: owner, 30 October 2026). Every component is shown,
   with its markup, in design/standard-styles-examples.html. fonts/ travels with this file (sync.mjs copies both).

   Names: everything Cellogi defines starts with cg and is in camel case — classes (.cgButton, .cgPanel), modifiers as
   their own classes (.cgButton.cgSecondary), states (.cgStVerified) and tokens (--cgInk, --cgAccentInk).

   Contents: 0 the face  1 tokens (light, dark)  2 base elements  3 layout helpers  4 components  5 states  */

/* ================================================================== 0. The face
   Arimo (SIL Open Font License 1.1, fonts/LICENSE-arimo.txt) in five scripts for the EU's languages: Latin, Latin
   extended, Greek, Cyrillic, Cyrillic extended; a browser loads only the files a page's letters need. */
@font-face { font-family: "CgArimo"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/arimo-cyrillic-ext-400-normal.woff2") format("woff2"); unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }
@font-face { font-family: "CgArimo"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/arimo-cyrillic-ext-500-normal.woff2") format("woff2"); unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }
@font-face { font-family: "CgArimo"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/arimo-cyrillic-ext-600-normal.woff2") format("woff2"); unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }
@font-face { font-family: "CgArimo"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/arimo-cyrillic-ext-700-normal.woff2") format("woff2"); unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }
@font-face { font-family: "CgArimo"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/arimo-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "CgArimo"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/arimo-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "CgArimo"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/arimo-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "CgArimo"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/arimo-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "CgArimo"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/arimo-greek-400-normal.woff2") format("woff2"); unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF; }
@font-face { font-family: "CgArimo"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/arimo-greek-500-normal.woff2") format("woff2"); unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF; }
@font-face { font-family: "CgArimo"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/arimo-greek-600-normal.woff2") format("woff2"); unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF; }
@font-face { font-family: "CgArimo"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/arimo-greek-700-normal.woff2") format("woff2"); unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF; }
@font-face { font-family: "CgArimo"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/arimo-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "CgArimo"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/arimo-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "CgArimo"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/arimo-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "CgArimo"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/arimo-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "CgArimo"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/arimo-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "CgArimo"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/arimo-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "CgArimo"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/arimo-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "CgArimo"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/arimo-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* ================================================================== 1. Tokens
   Light values on :root. Dark follows the system unless the page sets data-theme="light"; data-theme="dark" forces it. */
:root {
  /* Brand teal and navy come from the website and films. Accent ink is darkened for small text on tinted surfaces.
     Logo green is for fills, icons and charts. */
  --cgGreen: #47d463; --cgTeal: #087e80; --cgNavy: #062c45;
  --cgNavWidth: 264px;   /* the side menu of the portals; 60 px when collapsed (html[data-nav-collapsed="1"]) */
  --cgGrad: linear-gradient(120deg, var(--cgGreen), var(--cgTeal) 55%, var(--cgNavy));
  /* text */
  --cgInk: #1a2834; --cgInk2: #3e4b58; --cgMuted: #5b6875; --cgOnInk: #ffffff;   /* --cgInk: the logo's wordmark */
  /* surfaces and lines */
  --cgBg: #f7f9fb; --cgPanel: #ffffff; --cgField: #ffffff; --cgSurface2: #f1f5f9; --cgSurface3: #f8fafc; --cgChipBg: #eef2f7;
  --cgLine: #e5e7eb; --cgLine2: #d1d5db;
  /* the brand tint: a band or panel that should stand out softly (the website's mint), and its edge */
  --cgTint: #eaf4f0; --cgTintLine: #d2e5db;
  /* interactive */
  /* charts (cg-charts.mjs): eight categorical series, a sequential and a diverging scale, the grid of a chart */
  --cgChartHeight: 300px; --cgChartHeightPhone: 280px;   /* a chart's drawing, on a wide screen and on a phone; a chart sets its own (cg-charts.mjs, CSSOM) */
  --cgSeries1: #179fa5; --cgSeries2: #ee9e10; --cgSeries3: #ba42a6; --cgSeries4: #d75928;   /* the default chart palette: Teal Signal (owner, 24 November 2026) */
  --cgSeries5: #4354c8; --cgSeries6: #5daf4a; --cgSeries7: #6250d6; --cgSeries8: #e34948;
  --cgSeq1: #cde2fb; --cgSeq2: #9ec5f4; --cgSeq3: #6da7ec; --cgSeq4: #3987e5; --cgSeq5: #256abf; --cgSeq6: #184f95; --cgSeq7: #0d366b;
  --cgDivLow: #2a78d6; --cgDivMid: #f0efec; --cgDivHigh: #e34948;
  --cgChartGrid: #e3e7ee; --cgChartAxis: #c3cad6; --cgChartEmpty: #eef1f5;
  --cgSeriesCount: 6; --cgChartHero1: #2bb3b8; --cgChartHero2: #0b7f86; --cgChartFont: "CgChartInter", var(--cgFont); --cgChartNumFont: "CgChartInter", var(--cgFont);   /* the organization's chart style (data-chart-palette, data-chart-font) sets these */
  --cgAccent: #087e80; --cgAccentInk: #087475; --cgFocusRing: rgba(8, 126, 128, .35); --cgCurrentHalo: rgba(8, 126, 128, .18);
  /* meaning */
  --cgOk: #15803d; --cgOkBg: #ecfdf5;
  --cgWarn: #b45309; --cgWarnBg: #fff7ed;
  --cgBad: #b91c1c; --cgBadBg: #fef2f2; --cgBadLine: #fecaca;
  --cgInfo: #1d5f9a; --cgInfoBg: #eaf2f9;
  --cgAttentionDot: #fbbf24; --cgAttentionDotInk: #0b1f2a;
  /* shape and depth */
  --cgRadius: 10px; --cgRadiusSm: 8px; --cgRadiusPill: 999px;
  --cgButtonSpace: 16px;   /* the space around a standard button (owner, 23 November 2026) */
  --cgControlSpace: 16px;   /* the space around a field: input, drop-down, text area (owner, 23 November 2026) */
  --cgFieldMax: max(320px, 33vw);   /* the widest a field gets on a wide screen: about a third (owner, 23 November 2026); phones: full width */
  --cgPlayerBarHeight: 45px;   /* the film player's bar (option F); 38px in the corner */
  --cgTranscriptWidth: 340px;   /* the transcript beside the film (option G); 300px in a home page's hero */
  --cgShadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  /* type */
  --cgFont: "CgArimo", Arial, Helvetica, sans-serif;   /* owner, 30 October 2026 */
  --cgFontMono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --cgText: 15px; --cgLeading: 1.5;
  /* one height for every one-line form control (text, number, date, select): one line of text, 7 px padding top and
     bottom, a 1 px border. Fixed, so a grid or flex row cannot stretch a select taller than the inputs beside it. */
  --cgControlHeight: calc(var(--cgText) * var(--cgLeading) + 16px);
  --cgH1: 1.7rem; --cgH2: 1.1rem; --cgH3: 1rem; --cgSmall: .82rem; --cgTiny: .72rem;
  /* space: 4 · 8 · 12 · 16 · 20 · 28 · 40 */
  --cgS1: 4px; --cgS2: 8px; --cgS3: 12px; --cgS4: 16px; --cgS5: 20px; --cgS6: 28px; --cgS7: 40px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --cgGreen: #5fe07a; --cgTeal: #45c4c0;
  --cgGrad: linear-gradient(120deg, #2fb34d, #087e80 55%, #1d6f9a);  --cgInk: #e6eef0; --cgInk2: #c0ccd1; --cgMuted: #9fb0b7; --cgOnInk: #0b1f2a;
  --cgBg: #111a1e; --cgPanel: #17252b; --cgField: #17252b; --cgSurface2: #1c2b31; --cgSurface3: #17252b; --cgChipBg: #213239;
  --cgLine: #2a3b43; --cgLine2: #3a4c54;
  --cgTint: #17302e; --cgTintLine: #2b4044;
  --cgSeries1: #179fa5; --cgSeries2: #c38323; --cgSeries3: #bb52a8; --cgSeries4: #c85b32;
  --cgSeries5: #6076de; --cgSeries6: #55a144; --cgSeries7: #9085e9; --cgSeries8: #e66767;
  --cgSeq1: #172a44; --cgSeq2: #1b3d66; --cgSeq3: #1c5cab; --cgSeq4: #2a78d6; --cgSeq5: #5598e7; --cgSeq6: #86b6ef; --cgSeq7: #cde2fb;
  --cgDivLow: #3987e5; --cgDivMid: #383835; --cgDivHigh: #e66767;
  --cgChartGrid: #243142; --cgChartAxis: #3a495d; --cgChartEmpty: #1d2936; --cgChartHero1: #3cc8c8; --cgChartHero2: #127f87;
  --cgAccent: #45c4c0; --cgAccentInk: #5fd4c4;
  --cgOk: #4ade80; --cgOkBg: #143126; --cgWarn: #fbbf24; --cgWarnBg: #3b2a14; --cgBad: #fca5a5; --cgBadBg: #3b1a1c; --cgBadLine: #7f1d1d;
  --cgInfo: #7db8e8; --cgInfoBg: #152a44;
  color-scheme: dark;
} }
:root[data-theme="dark"] {
  --cgGreen: #5fe07a; --cgTeal: #45c4c0;
  --cgGrad: linear-gradient(120deg, #2fb34d, #087e80 55%, #1d6f9a);  --cgInk: #e6eef0; --cgInk2: #c0ccd1; --cgMuted: #9fb0b7; --cgOnInk: #0b1f2a;
  --cgBg: #111a1e; --cgPanel: #17252b; --cgField: #17252b; --cgSurface2: #1c2b31; --cgSurface3: #17252b; --cgChipBg: #213239;
  --cgLine: #2a3b43; --cgLine2: #3a4c54;
  --cgTint: #17302e; --cgTintLine: #2b4044;
  --cgSeries1: #179fa5; --cgSeries2: #c38323; --cgSeries3: #bb52a8; --cgSeries4: #c85b32;
  --cgSeries5: #6076de; --cgSeries6: #55a144; --cgSeries7: #9085e9; --cgSeries8: #e66767;
  --cgSeq1: #172a44; --cgSeq2: #1b3d66; --cgSeq3: #1c5cab; --cgSeq4: #2a78d6; --cgSeq5: #5598e7; --cgSeq6: #86b6ef; --cgSeq7: #cde2fb;
  --cgDivLow: #3987e5; --cgDivMid: #383835; --cgDivHigh: #e66767;
  --cgChartGrid: #243142; --cgChartAxis: #3a495d; --cgChartEmpty: #1d2936; --cgChartHero1: #3cc8c8; --cgChartHero2: #127f87;
  --cgAccent: #45c4c0; --cgAccentInk: #5fd4c4;
  --cgOk: #4ade80; --cgOkBg: #143126; --cgWarn: #fbbf24; --cgWarnBg: #3b2a14; --cgBad: #fca5a5; --cgBadBg: #3b1a1c; --cgBadLine: #7f1d1d;
  --cgInfo: #7db8e8; --cgInfoBg: #152a44;
  color-scheme: dark;
}

/* ================================================================== 2. Base elements */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--cgBg); }
html, body { margin: 0; }
body { font: var(--cgText)/var(--cgLeading) var(--cgFont); color: var(--cgInk); background: var(--cgBg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; color: var(--cgInk); text-wrap: balance; }
h1 { font-size: var(--cgH1); } h2 { font-size: var(--cgH2); } h3 { font-size: var(--cgH3); } h4 { font-size: .92rem; }
p { margin: 0 0 var(--cgS3); }
small { font-size: var(--cgSmall); color: var(--cgMuted); }
a { color: var(--cgAccentInk); }
strong, b { font-weight: 600; }
ul, ol { margin: 0 0 var(--cgS3); padding-left: 1.3em; }
li + li { margin-top: 2px; }
hr { border: 0; border-top: 1px solid var(--cgLine); margin: var(--cgS5) 0; }
blockquote { margin: 0 0 var(--cgS3); padding: var(--cgS2) var(--cgS4); border-left: 3px solid var(--cgLine2); color: var(--cgInk2); }
code, kbd, samp { font: 13px var(--cgFontMono); background: var(--cgSurface2); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
kbd { border: 1px solid var(--cgLine2); border-bottom-width: 2px; }
pre { font: 13px/1.5 var(--cgFontMono); background: var(--cgSurface2); padding: var(--cgS3) var(--cgS4); border-radius: var(--cgRadiusSm); overflow-x: auto; margin: 0 0 var(--cgS3); }
pre code { background: none; padding: 0; }
mark { background: var(--cgWarnBg); color: var(--cgInk); padding: 0 2px; border-radius: 3px; }
img, video, svg { max-width: 100%; }
img, video { height: auto; }
table { border-collapse: collapse; }
fieldset { border: 1px solid var(--cgLine); border-radius: var(--cgRadiusSm); padding: var(--cgS3) var(--cgS4); margin: 0 0 var(--cgS3); min-width: 0; }
legend { padding: 0 6px; font-weight: 600; font-size: .88rem; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=password], input[type=number], input[type=date],
input[type=datetime-local], input[type=time], input[type=search], input[type=file], select, textarea {
  padding: 7px 9px; border: 1px solid var(--cgLine2); border-radius: var(--cgRadiusSm); background: var(--cgField); color: var(--cgInk); width: 100%; min-width: 0; }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--cgMuted); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--cgFocusRing); border-color: var(--cgTeal); }
input:disabled, select:disabled, textarea:disabled, button:disabled { opacity: .55; cursor: not-allowed; }
/* the standard height (--cgControlHeight). :where() keeps it at zero specificity: a component that sets its own height wins. */
:where(input[type=text], input[type=email], input[type=tel], input[type=url], input[type=password], input[type=number], input[type=date],
  input[type=datetime-local], input[type=time], input[type=search], select:not([multiple])) { height: var(--cgControlHeight); }
:where(input[type=file]) { min-height: var(--cgControlHeight); }
/* inputs drawn bare inside a search box keep the box's height */
:where(.cgNavSearch, .cgCmdSearch, .cgSearchInput, .cgSearchField, .cgFacetFind) input { height: auto; }
select:not([multiple]) { -webkit-appearance: none; appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'><path d='M3 5.5l5 5 5-5' fill='none' stroke='%23087e80' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px 16px; }
select:not([multiple]):hover { border-color: var(--cgAccent); }
/* the chevron in the dark accent (a data URL cannot read a token) */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) select:not([multiple]) { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'><path d='M3 5.5l5 5 5-5' fill='none' stroke='%2345c4c0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>"); } }
:root[data-theme="dark"] select:not([multiple]) { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'><path d='M3 5.5l5 5 5-5' fill='none' stroke='%2345c4c0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>"); }
input[type=checkbox], input[type=radio] { accent-color: var(--cgAccent); width: 16px; height: 16px; margin: 0; }
:focus-visible { outline: 2px solid var(--cgAccent); outline-offset: 2px; }
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; }   /* focus moved by the page for screen readers shows no ring */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ================================================================== 3. Layout helpers */
.cgMuted { color: var(--cgMuted); }
.cgEyebrow { font-size: var(--cgTiny); letter-spacing: .12em; text-transform: uppercase; color: var(--cgMuted); margin: 0 0 var(--cgS1); font-weight: 600; }
.cgEmpty { color: var(--cgMuted); font-style: italic; margin: 6px 0; }
.cgSkip { position: absolute; left: -999px; }
.cgSkip:focus { left: var(--cgS2); top: var(--cgS2); background: var(--cgPanel); padding: var(--cgS2); z-index: 10; }
.cgStack { display: grid; gap: var(--cgS4); }
.cgCluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cgS3); }

/* ================================================================== 4. Components */
/* Page heading: the eyebrow names the area, h1 the screen, one sentence what it is for. */
.cgPageHeading { margin-bottom: 18px; }
.cgPageHeading h1 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cgPageIntro { color: var(--cgInk2); margin: 6px 0 0; max-width: 72ch; }

/* Buttons (owner, 26 November 2026): one kind of button everywhere — the outlined pill of the customer portal ("Search
   Discover", "Open") — in the portals and on the websites alike. Only a website's call to action keeps the gradient: the
   header's button (.cgDesktopContact), the first button of a hero, the button of the closing call-to-action band (.cgCta),
   and any button marked .cgCallToAction. The portals have no gradient button at all. .cgSmall in tables and rows. */
.cgButton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: transparent; color: var(--cgAccentInk); border: 1px solid var(--cgLine2); border-radius: var(--cgRadiusPill); padding: 7px 14px;
  font-weight: 600; text-decoration: none; box-shadow: none; line-height: 1.5; text-align: center; cursor: pointer; }
.cgButton:hover { background: var(--cgTint, transparent); border-color: var(--cgAccent); }
.cgButton.cgSecondary { background: transparent; }
.cgButton.cgDanger { color: var(--cgBad); border-color: var(--cgBad); }
.cgButton:where(.cgCallToAction, .cgDesktopContact, .cgCta *, :is(.cgHomeHero, .cgCompactHero, .cgHero) .cgActions > :not(.cgSecondary):first-child) {
  background: var(--cgGrad); color: #fff; border: 0; padding: 8px 15px; box-shadow: var(--cgShadow); }   /* as specific as .cgButton: .cgSmall still sizes it */
.cgButton:where(.cgCallToAction, .cgDesktopContact, .cgCta *, :is(.cgHomeHero, .cgCompactHero, .cgHero) .cgActions > :not(.cgSecondary):first-child):hover { background: var(--cgGrad); filter: brightness(.97); }
body:has(.cgShell) .cgButton { background: transparent; color: var(--cgAccentInk); border: 1px solid var(--cgLine2); box-shadow: none; padding: 7px 14px; }   /* the portals: never a gradient */
body:has(.cgShell) .cgButton.cgDanger { color: var(--cgBad); border-color: var(--cgBad); }
.cgQuiet { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: transparent; color: var(--cgAccentInk); border: 1px solid var(--cgLine2); border-radius: var(--cgRadiusPill);
  padding: 7px 14px; text-decoration: none; line-height: 1.5; }
.cgButton.cgSmall, .cgQuiet.cgSmall { padding: 4px 10px; font-size: var(--cgSmall); }
.cgQuiet:hover { filter: brightness(.97); }
.cgButton:disabled, .cgQuiet:disabled { filter: none; }
/* The marks after a link's or a button's words (owner, 26 November 2026), the same in every website and portal:
   · .cgOpensNew — the box with an arrow to its top right (the cg-external icon): the link opens another website or a new
     tab ("Register your company", "dppmcx.com", "Open MCX-Supplier Portal"). Drawn here, so the words carry no symbol.
     Every link with target="_blank" gets it without the class; the portals' address links (.cgExternalLink) draw the
     same icon from the sprite.
   · "→" in the words — the link goes to another page of the same site or portal ("Read the paper →", "Next →").
   · No mark — a button that acts where you are ("Send", "Search", "Save roles") and a link within the same page.
   ↗, › and » are never written on a link or a button. */
.cgOpensNew::after, a[target="_blank"]:not(.cgExternalLink)::after { content: ""; display: inline-block; flex: none; width: .95em; height: .95em; margin-left: .4em; vertical-align: -.1em; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E") center / contain no-repeat; }
.cgButton:is(.cgOpensNew, [target="_blank"])::after, .cgOpensNew:empty::after { margin-left: 0; }
.cgTextLink { color: var(--cgAccentInk); text-decoration: none; background: none; border: 0; padding: 0; font: inherit; }
.cgTextLink:hover { text-decoration: underline; }

/* Panel: every group of content on a screen. */
.cgPanel { background: var(--cgPanel); border: 1px solid var(--cgLine); border-radius: var(--cgRadius); padding: 18px 20px; margin-bottom: var(--cgS4); box-shadow: var(--cgShadow); min-width: 0; }
.cgPanel > h2 { margin-bottom: 10px; overflow-wrap: anywhere; }
.cgPanel.cgError { border-color: var(--cgBadLine); }
.cgPanel.cgOverlay { border-color: var(--cgTeal); }
.cgPanel.cgNarrow { max-width: 720px; }
.cgPanel pre { max-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Note: a sentence of guidance; tones for success, warning and error. */
.cgNote { color: var(--cgInk2); margin: 4px 0 10px; font-size: .92rem; }
.cgNote.cgOk { color: var(--cgOk); }
.cgNote.cgWarn { color: var(--cgWarn); }
.cgNote.cgError { color: var(--cgBad); }
.cgNote a { text-decoration: underline; }

/* Callout: a block that must be noticed (a warning before an irreversible step). */
.cgCallout { border-radius: var(--cgRadiusSm); padding: var(--cgS3) var(--cgS4); background: var(--cgInfoBg); color: var(--cgInk); border: 1px solid transparent; margin: 0 0 var(--cgS3); }
.cgCallout.cgOk { background: var(--cgOkBg); } .cgCallout.cgWarn { background: var(--cgWarnBg); } .cgCallout.cgError { background: var(--cgBadBg); border-color: var(--cgBadLine); }

/* Chip: a record's state in a word. Tones: cgOk, cgInfo, cgWarn, cgBad, cgMuted; or a state class from section 5 (cgSt + the state in camel case). */
.cgChip { display: inline-block; border-radius: var(--cgRadiusPill); padding: 1px 9px; font-size: .76rem; font-weight: 600; background: var(--cgChipBg);
  color: var(--cgInk2); margin: 1px 4px 1px 0; white-space: nowrap; }
.cgChip.cgOk { background: var(--cgOkBg); color: var(--cgOk); }
.cgChip.cgInfo { background: var(--cgInfoBg); color: var(--cgInfo); }
.cgChip.cgWarn { background: var(--cgWarnBg); color: var(--cgWarn); }
.cgChip.cgBad { background: var(--cgBadBg); color: var(--cgBad); }
.cgChip.cgMuted { background: var(--cgSurface2); color: var(--cgInk2); font-weight: 500; }
a.cgChip { text-decoration: underline; }

/* Facts: label and value pairs of one record. */
.cgKv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 16px; margin: 6px 0 10px; font-size: .92rem; }
.cgKv dt { color: var(--cgMuted); }
.cgKv dd { margin: 0; overflow-wrap: anywhere; }

/* Table: records, one per row; the row action last, as a small quiet button. */
.cgTableWrap { overflow-x: auto; max-width: 100%; }
table.cgTable { width: 100%; border-collapse: collapse; font-size: .9rem; }
.cgTable th { text-align: left; font-weight: 600; color: var(--cgMuted); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; padding: 6px 10px; border-bottom: 1px solid var(--cgLine); }
.cgTable td { padding: 8px 10px; border-bottom: 1px solid var(--cgLine); vertical-align: top; }
.cgTable tr.cgClickable:hover td { background: var(--cgSurface3); }
.cgTable td button { margin-right: 4px; white-space: nowrap; }
.cgTable .cgNum { text-align: right; font-variant-numeric: tabular-nums; }

/* Forms: fields in a grid, the label above the field, one primary button, the result beside it. */
.cgFormGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--cgControlSpace); margin: var(--cgControlSpace) 0; }
.cgFormGrid > .cgFull { grid-column: 1 / -1; }
.cgField { display: flex; flex-direction: column; gap: 3px; font-size: .9rem; min-width: 0; }
.cgFieldLabel { color: var(--cgInk2); font-weight: 600; font-size: var(--cgSmall); }
.cgFieldHint { color: var(--cgInk2); font-size: .78rem; }
.cgFieldError { color: var(--cgBad); font-size: var(--cgSmall); font-weight: 600; }
.cgField [aria-invalid="true"] { border-color: var(--cgBad); box-shadow: 0 0 0 1px var(--cgBad); }
.cgFieldCheck { display: flex; flex-direction: row; align-items: flex-start; justify-content: flex-start; gap: 8px; }
.cgFieldCheck input { flex: none; order: -1; margin-top: 3px; }
.cgField.cgInline { flex-direction: row; align-items: center; gap: 8px; }
.cgFormActions { display: flex; align-items: center; justify-content: center; gap: var(--cgButtonSpace); flex-wrap: wrap; }
/* Spacing and alignment standard (owner, 23 November 2026), every site:
   - a field (input, drop-down, text area, or a labelled .cgField) keeps 16 px (--cgControlSpace) above and below it,
     and fields side by side in a grid 16 px apart; a field's left edge stays in line with the text above it;
   - a button keeps 16 px (--cgButtonSpace) above and below it and stands centred in its container; a row of buttons
     (.cgFormActions) is centred with 16 px between them.
   It applies to what sits straight in a form, fieldset, fold, panel, card or plain row; controls inside a table, a
   search box, a command bar or a menu keep their own spacing. */
:where(form, fieldset, details, section, .cgCmdForm, .cgRow, .cgPanel, .cgCard, .cgStack) > :where(input:not([type=checkbox], [type=radio], [type=hidden], [type=range], [type=color], [type=submit], [type=button]), select, textarea) { display: block; margin-block: var(--cgControlSpace); max-width: var(--cgFieldMax); }
:where(form, fieldset, details, section, .cgCmdForm, .cgRow, .cgPanel, .cgCard, .cgStack) > :where(.cgField) { margin-block: var(--cgControlSpace); max-width: var(--cgFieldMax); }
/* A drop-down never shows a value nobody chose (owner, 23 November 2026): until someone chooses, it reads "Choose…"
   (its first option, marked data-choose) in muted italics; the choices themselves are upright. */
/* No field wider than about a third of a wide screen (--cgFieldMax), wherever it sits; phones: full width. The bare
   input inside a search box takes the box's width. */
:where(input[type=text], input[type=email], input[type=tel], input[type=url], input[type=password], input[type=number], input[type=date],
  input[type=datetime-local], input[type=time], input[type=search], input:not([type]), select, textarea) { max-width: var(--cgFieldMax); }
:where(.cgNavSearch, .cgCmdSearch, .cgSearchInput, .cgSearchField, .cgFacetFind) input { max-width: none; }
/* Number fields have no steppers (owner, 23 November 2026): people type the value; the arrows are hidden, and the
   portals' frame (cg-frame.mjs) keeps the scroll wheel from changing a number. */
input[type=number] { -moz-appearance: textfield; appearance: textfield; }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; appearance: none; margin: 0; }
select:has(> option[data-choose]:checked) { font-style: italic; color: var(--cgMuted); }
select option { font-style: normal; color: var(--cgInk); }
:where(form, fieldset, details, section, .cgCmdForm, .cgRow, .cgPanel, .cgCard, .cgStack) > :where(.cgButton, .cgQuiet):not(.cgIconButton, .cgCmd) { display: flex; width: fit-content; margin: var(--cgButtonSpace) auto; }
.cgFormActions.cgCenter { justify-content: center; }
.cgFormStatus { margin: 0; font-size: .9rem; color: var(--cgMuted); }
.cgFormStatus.cgOk { color: var(--cgOk); }
.cgFormStatus.cgError { color: var(--cgBad); }

/* Switch: an on/off setting that applies at once. <label class="cgSwitch"><input type="checkbox"> Label</label> */
.cgSwitch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.cgSwitch input { -webkit-appearance: none; appearance: none; flex: none; width: 36px; height: 20px; margin: 0; border-radius: var(--cgRadiusPill); background: var(--cgMuted); position: relative; cursor: pointer; }
.cgSwitch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--cgPanel); transition: left .15s; }
.cgSwitch input:checked { background: var(--cgAccentInk); }
.cgSwitch input:checked::after { left: 18px; }
.cgSwitch input:focus-visible { outline: 2px solid var(--cgTeal); outline-offset: 2px; }

/* Country and region: the shared field of cellogi-shared/regions (cg-country-region.mjs), inside a .cgFormGrid. */
.cgCountryRegion { display: contents; }
.cgCountryRegionPart { display: flex; flex-direction: column; gap: 3px; font-size: .9rem; min-width: 0; }
.cgCountryRegionPart[hidden] { display: none; }
.cgCountryRegionLabel { color: var(--cgInk2); font-weight: 600; font-size: var(--cgSmall); }
.cgCountryRegionHint { font-weight: 400; color: var(--cgMuted); }
.cgCountryRegionHelp { font-size: .78rem; color: var(--cgInk2); }

/* Address and phone: the shared fields of cellogi-shared/regions (cg-address.mjs, cg-phone.mjs). The country first, then
   the street and the city, region and postcode in the country's own order; never JSON (owner, 24 November 2026). */
.cgAddress { display: flex; flex-direction: column; gap: var(--cgS3); min-width: 0; }
.cgAddress .cgCountryRegion { display: contents; }
.cgAddressLines { display: flex; flex-direction: column; gap: var(--cgS3); }
.cgAddressRow { display: grid; gap: var(--cgS3); grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); align-items: start; }
.cgAddressRowCountry, .cgAddressRow1 { grid-template-columns: minmax(0, 1fr); max-width: 30rem; }
.cgAddressRowStreet { grid-template-columns: minmax(0, 1fr); }
.cgAddressRow:empty, .cgAddressRow:has(> [hidden]:only-child) { display: none; }
.cgAddressPart { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: .9rem; }
.cgAddressLabel { color: var(--cgInk2); font-weight: 600; font-size: var(--cgSmall); }
.cgAddressNote, .cgPhoneNote { font-size: .78rem; color: var(--cgBad); }
.cgAddressNote[hidden], .cgPhoneNote[hidden] { display: none; }
.cgPhone { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: var(--cgS2); align-items: start; }
.cgPhone .cgPhoneNote { grid-column: 1 / -1; }
@media (max-width: 560px) { .cgPhone { grid-template-columns: minmax(0, 1fr); } }

/* Folded group: <details class="cgFold"><summary>Title <span class="cgFoldSummary">summary</span></summary>…</details> */
.cgFold { border: 1px solid var(--cgLine); border-radius: var(--cgRadius); background: var(--cgPanel); margin-bottom: var(--cgS4); }
.cgFold > summary { cursor: pointer; padding: 12px 16px; min-height: 44px; font-weight: 600; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.cgFoldSummary { color: var(--cgMuted); font-weight: 400; font-size: .88rem; }
.cgFold > :not(summary) { padding: 0 16px; }
.cgFold[open] > :last-child { padding-bottom: 14px; }

/* Step rail: steps of a task — done, current, attention, upcoming. */
.cgRail { list-style: none; margin: 4px 0 0; padding: 0 0 0 4px; position: relative; }
.cgRailStep { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 8px 8px 8px 6px; border-radius: var(--cgRadiusSm); align-items: start; margin: 0; }
.cgRailStep .cgRailLink { position: absolute; inset: 0; }
.cgRailStep + .cgRailStep::before { content: ""; position: absolute; left: 19px; top: -14px; height: 20px; border-left: 2px solid var(--cgLine2); }
.cgRailStep.cgDone + .cgRailStep::before { border-color: var(--cgGreen); }
.cgRailStep .cgDot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 700; border: 2px solid var(--cgLine2); background: var(--cgPanel); color: var(--cgMuted); z-index: 1; }
.cgRailStep.cgDone .cgDot { background: var(--cgGreen); border-color: var(--cgGreen); color: #fff; }
.cgRailStep.cgCurrent .cgDot { background: var(--cgGrad); border-color: transparent; color: #fff; box-shadow: 0 0 0 4px var(--cgCurrentHalo); }
.cgRailStep.cgAttention .cgDot { background: var(--cgAttentionDot); border-color: var(--cgAttentionDot); color: var(--cgAttentionDotInk); }
.cgRailStep.cgSelected { background: var(--cgSurface2); }
.cgRailText strong { display: block; font-size: .92rem; }
.cgRailText small { color: var(--cgMuted); font-size: .78rem; display: block; line-height: 1.3; }
.cgRailStep.cgUpcoming .cgRailText strong { color: var(--cgInk2); }

/* Meter: a number with its allowance. */
.cgMeters { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.cgMeter { padding: 12px 14px; border: 1px solid var(--cgLine); border-radius: var(--cgRadius); background: var(--cgPanel); display: flex; flex-direction: column; gap: 4px; }
.cgMeterLabel { font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--cgMuted); }
.cgMeterValue { font-size: 1.35rem; letter-spacing: -.01em; color: var(--cgInk); font-variant-numeric: tabular-nums; }
.cgMeterDetail { font-size: var(--cgSmall); color: var(--cgInk2); }
.cgMeterBar { height: 8px; background: var(--cgChipBg); border-radius: var(--cgRadiusPill); overflow: hidden; }
.cgMeterFill { display: block; height: 100%; background: var(--cgTeal); }
.cgMeterFill.cgFull { background: var(--cgBad); }
.cgMeter.cgWarn .cgMeterValue { color: var(--cgWarn); } .cgMeter.cgBad .cgMeterValue { color: var(--cgBad); }

/* Toast: the result of an action, for a few seconds. */
.cgToast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--cgInk); color: var(--cgOnInk); padding: 10px 16px;
  border-radius: var(--cgRadiusPill); font-size: .9rem; box-shadow: var(--cgShadow); z-index: 20; max-width: 90vw; }
.cgToast.cgOk { background: var(--cgOk); color: #fff; }
.cgToast.cgError { background: var(--cgBad); color: #fff; }
.cgToast.cgInline { position: static; transform: none; display: inline-block; }   /* for documentation pages */

/* Tabs: a few views of one thing. <div class="cgTabs" role="tablist"><button role="tab" aria-selected="true">…</button></div> */
.cgTabs { display: inline-flex; gap: 2px; border: 1px solid var(--cgLine); border-radius: var(--cgRadiusPill); padding: 2px; background: var(--cgPanel); }
.cgTabs > [role=tab] { font: inherit; font-size: .85rem; padding: 4px 12px; border: 0; border-radius: var(--cgRadiusPill); background: transparent; color: var(--cgInk2); cursor: pointer; }
.cgTabs > [role=tab][aria-selected="true"] { background: var(--cgAccentInk); color: var(--cgOnInk); }

/* ================================================================== 4b. The portal frame (design system step 3; owner, 30 October 2026)
   The components of the portals' frame with the look the owner chose in the portal sandbox: a white top bar with a
   hairline (mark, search, environment, the Guided button, Help), Lucide icons, a light-gray side menu that shows one level
   at a time (17 November 2026: areas are rows with ›, an area's pages a level of their own with ←, one organization row at
   its foot with a pop-up), lines between areas, a teal bar and pale fill on the current page, amber
   badges, the menu search above the menu, the record context in place of the menu; 1.7 rem titles, underlined view
   tabs, a plain command bar, 10 px cards with a line and a soft shadow, 44 px table rows, a 480 px side panel that dims
   the page. A person may change three things (Customize → Display): data-theme, data-density="compact" (36 px rows)
   and data-menu-background="white" on <html>. Shown in design/portal-sandbox.html. */
.cgIcon { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle; --cgIconFill: none; }
.cgIconSmall { width: 16px; height: 16px; }
.cgShell { min-height: 100vh; display: grid; grid-template-columns: var(--cgNavWidth, 264px) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "top top" "nav main"; }
html[data-nav-collapsed="1"] { --cgNavWidth: 60px; }
.cgTopBar { grid-area: top; position: sticky; top: 0; z-index: 12; display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); background: var(--cgPanel); border-bottom: 1px solid var(--cgLine); }
.cgBrand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cgInk); flex: none; }
.cgGlobalSearch { flex: 0 1 420px; margin: 0 auto; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border: 1px solid var(--cgLine2); border-radius: 8px; background: var(--cgField); color: var(--cgMuted); font: inherit; font-size: .9rem; cursor: text; text-align: left; }
.cgGlobalSearch kbd, .cgKbd { margin-left: auto; white-space: nowrap; font: 11px var(--cgFont); border: 1px solid var(--cgLine2); border-radius: 4px; padding: 0 5px; background: transparent; color: var(--cgMuted); }
.cgOrgSwitcher { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 8px; border: 0; background: none; font: inherit; color: var(--cgInk); text-align: left; min-width: 0; }
.cgOrgSwitcher strong { font-size: .9rem; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.cgOrgSwitcher small { font-size: .74rem; color: var(--cgMuted); display: block; }
.cgOrgLogo { width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; background: var(--cgGrad); color: #fff; font-weight: 700; font-size: .78rem; flex: none; }
.cgEnvTag { font-size: .72rem; border: 1px dashed var(--cgLine2); border-radius: var(--cgRadiusPill); padding: 1px 8px; color: var(--cgMuted); white-space: nowrap; }
.cgIconButton { position: relative; width: 34px; height: 34px; display: inline-grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--cgInk2); cursor: pointer; flex: none; padding: 0; font: inherit; }
.cgIconButton:hover { background: color-mix(in srgb, var(--cgInk) 6%, transparent); color: var(--cgInk); }
.cgIconButton[aria-pressed="true"] { color: var(--cgAttentionDot); }
.cgIconButton[aria-pressed="true"] .cgIcon { --cgIconFill: currentColor; }
.cgIconDot { position: absolute; top: 6px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--cgBad); box-shadow: 0 0 0 2px var(--cgPanel); }
.cgAvatar { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; font-size: .74rem; font-weight: 700; color: #fff; background: var(--cgNavy); flex: none; overflow: hidden; }
.cgAvatar img { width: 100%; height: 100%; object-fit: cover; }
.cgMenuButton { display: none; }
.cgShell.cgNoNav { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "main"; }   /* before sign-in: the frame without the menu */
.cgShell.cgNoNav > .cgNav, .cgShell.cgNoNav .cgMenuButton { display: none !important; }

/* the side menu */
.cgNav { grid-area: nav; position: sticky; top: 54px; height: calc(100vh - 54px); z-index: 11; display: flex; flex-direction: column; min-height: 0; background: color-mix(in srgb, var(--cgInk) 4%, var(--cgBg)); border-right: 1px solid var(--cgLine); }
html[data-menu-background="white"] .cgNav { background: var(--cgPanel); }
.cgNavScroll { flex: 1; overflow-y: auto; padding: 10px 10px 8px; display: flex; flex-direction: column; gap: 1px; }
.cgNavSearch { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 9px; border: 1px solid var(--cgLine2); border-radius: 8px; margin-bottom: 8px; color: var(--cgMuted); background: var(--cgField); }
.cgNavSearch input { border: 0; padding: 0; background: transparent; outline: none; font-size: .86rem; min-width: 0; width: 100%; }
.cgNavSearch input:focus { outline: none; }
.cgNavItem { position: relative; display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 6px 10px; border-radius: 8px; color: var(--cgInk); text-decoration: none; font-size: .93rem; cursor: pointer; border: 0; background: none; font-family: inherit; width: 100%; text-align: left; }
.cgNavItem:hover { background: color-mix(in srgb, var(--cgInk) 6%, transparent); text-decoration: none; }
.cgNavItem .cgIcon { color: var(--cgInk2); }
.cgNavText { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cgNavItem[aria-current="page"] { color: color-mix(in srgb, var(--cgAccentInk) 78%, var(--cgInk));   /* 4.5 : 1 on its tint, both themes */ font-weight: 600; background: color-mix(in srgb, var(--cgTeal) 11%, var(--cgPanel)); }
.cgNavItem[aria-current="page"] .cgIcon { color: inherit; }
.cgNavItem[aria-current="page"]::before { content: ""; position: absolute; left: 0; top: 7px; bottom: 7px; width: 3px; border-radius: 2px; background: var(--cgTeal); }
.cgNavBadge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--cgAttentionDot); color: var(--cgAttentionDotInk); font-size: .7rem; font-weight: 700; display: inline-grid; place-items: center; line-height: 1; flex: none; }
.cgNavTag { font-size: .66rem; border: 1px dashed var(--cgLine2); border-radius: var(--cgRadiusPill); padding: 0 6px; color: var(--cgMuted); flex: none; }
.cgNavPin { opacity: 0; width: 26px; height: 26px; margin: -4px -4px -4px 0; display: grid; place-items: center; border-radius: 6px; color: var(--cgMuted); flex: none; border: 0; background: none; padding: 0; cursor: pointer; }
.cgNavItem:hover .cgNavPin, .cgNavPin:focus-visible, .cgNavPin.cgPinned { opacity: 1; }
.cgNavPin.cgPinned .cgIcon { color: var(--cgAttentionDot); --cgIconFill: currentColor; }
.cgNavPin:hover { background: color-mix(in srgb, var(--cgInk) 8%, transparent); }
.cgNavItem:focus-within .cgNavPin { opacity: 1; }
@media (hover: none) { .cgNavPin { opacity: .7; } }   /* a touch screen has no hover: the star is always there to tap */
.cgNavFavs { display: flex; flex-direction: column; gap: 1px; }
.cgNavFavs > .cgNavItem { -webkit-touch-callout: none; user-select: none; }
.cgNavFavs > .cgNavItem.cgDragging { background: var(--cgPanel); box-shadow: 0 6px 18px rgba(4, 20, 30, .18); z-index: 2; cursor: grabbing; }
.cgNavFavs.cgReordering > .cgNavItem:not(.cgDragging) { opacity: .75; }
.cgSrOnly { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cgNavDivider { height: 1px; background: var(--cgLine); margin: 5px 8px; flex: none; }
.cgNavLabel { font-size: .74rem; color: var(--cgMuted); padding: 8px 10px 2px; }
.cgNavFoot { border-top: 1px solid var(--cgLine); padding: 8px 10px; display: flex; flex-direction: column; gap: 1px; }
.cgNavFoot .cgNavItem { font-size: .88rem; color: var(--cgInk2); min-height: 32px; }
.cgNavStage { margin-left: auto; font-size: .7rem; color: var(--cgMuted); white-space: nowrap; }
.cgNavFlyout { position: fixed; z-index: 30; min-width: 230px; max-height: 70vh; overflow-y: auto; background: var(--cgPanel); border: 1px solid var(--cgLine); border-radius: 10px; box-shadow: 0 12px 32px rgba(4, 20, 30, .18); padding: 6px; display: flex; flex-direction: column; gap: 1px; }
.cgNavFlyout .cgNavItem { min-height: 32px; font-size: .9rem; }
.cgNavFlyoutHead { font-weight: 600; font-size: .86rem; padding: 6px 10px 4px; color: var(--cgInk); text-decoration: none; }
/* collapsed to a column of icons (kept on the device) */
html[data-nav-collapsed="1"] .cgNav :is(.cgNavText, .cgNavPin, .cgNavSearch, .cgNavLabel, .cgNavStage, .cgNavRecord, .cgRailText) { display: none !important; }
html[data-nav-collapsed="1"] .cgNav :is(.cgNavScroll, .cgNavFoot) { padding-left: 8px; padding-right: 8px; }
html[data-nav-collapsed="1"] .cgNav .cgNavItem { justify-content: center; padding: 8px 0; }
html[data-nav-collapsed="1"] .cgNav .cgNavBadge { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; font-size: .62rem; padding: 0 4px; }
html[data-nav-collapsed="1"] .cgNav .cgRailStep { grid-template-columns: 28px; padding: 6px 4px; }
/* one level at a time (owner, 17 November 2026): the main level (search with collapse, favorites, the areas, each a row
   with ›), an area's own level (← and its name), and at the foot one row, the organization button with its pop-up */
.cgNavTop { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.cgNavTop .cgNavSearch { flex: 1; min-width: 0; margin-bottom: 0; }
.cgNavClose { display: none; }
.cgNavLevelHead { display: grid; grid-template-columns: 34px minmax(0, 1fr) 34px; align-items: center; gap: 4px; margin-bottom: 6px; }
.cgNavLevelHead strong { text-align: center; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cgNavItem.cgHere { background: color-mix(in srgb, var(--cgTeal) 7%, transparent); }
.cgNavArrow { color: var(--cgMuted); }
.cgNavWhere { margin-left: auto; font-size: .76rem; color: var(--cgMuted); white-space: nowrap; flex: none; }
.cgNavRecent { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 4px 2px 10px; font-size: .74rem; color: var(--cgMuted); }
.cgNavMore { display: inline-flex; align-items: center; gap: 2px; border: 0; background: none; border-radius: 6px; padding: 3px 4px 3px 8px; font: inherit; font-size: .8rem; font-weight: 600; color: color-mix(in srgb, var(--cgAccentInk) 80%, var(--cgInk)); cursor: pointer; text-decoration: none; }
.cgNavMore:hover { background: color-mix(in srgb, var(--cgTeal) 10%, transparent); text-decoration: none; }
.cgNavNew { display: flex; justify-content: center; padding: 8px 0 4px; }
.cgNavNew > a, .cgNavNew > button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 0 18px; border: 0; border-radius: var(--cgRadiusPill); background: var(--cgAccent); color: var(--cgOnInk); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; text-decoration: none; }
.cgNavNew > a:hover, .cgNavNew > button:hover { background: color-mix(in srgb, var(--cgAccent) 85%, var(--cgInk)); text-decoration: none; }
.cgNavFoot { flex: none; }
.cgNavOrg { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; border: 1px solid transparent; border-radius: 10px; background: none; font: inherit; color: var(--cgInk); text-align: left; cursor: pointer; }
.cgNavOrg:hover, .cgNavOrg.cgOpen { background: color-mix(in srgb, var(--cgInk) 6%, transparent); }
.cgNavOrg.cgOpen { border-color: var(--cgTeal); }
.cgNavOrgSquare { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--cgAccent); color: var(--cgOnInk); font-weight: 700; font-size: .95rem; }
.cgNavOrgText { flex: 1; min-width: 0; }
.cgNavOrgText strong { display: block; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cgNavOrgText small { display: block; font-size: .78rem; color: var(--cgMuted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cgNavOrgOpen { color: var(--cgMuted); }
.cgNavOrgSandbox .cgNavOrgSquare { background: var(--cgWarn); color: var(--cgPanel); }
.cgNavOrgSandbox .cgNavOrgText small { color: var(--cgWarn); font-weight: 600; }
/* the organization button's pop-up: rows, levels with ←, switches, a segmented choice, the role pill */
.cgOrgMenu { max-width: none; max-height: calc(100vh - 90px); overflow-y: auto; }
.cgOrgMenu :is([role=menuitem], [role=menuitemradio], [role=menuitemcheckbox]):not(.cgIconButton, .cgMenuChoice > button) { display: flex; gap: 10px; align-items: center; width: 100%; min-height: 34px; padding: 5px 10px; border-radius: 6px; border: 0; background: none; font: inherit; font-size: .9rem; color: var(--cgInk); text-align: left; cursor: pointer; text-decoration: none; }
.cgOrgMenu :is([role=menuitem], [role=menuitemradio], [role=menuitemcheckbox]):not(.cgIconButton, .cgMenuChoice > button):is(:hover, :focus) { background: color-mix(in srgb, var(--cgInk) 6%, transparent); outline: none; text-decoration: none; }
.cgOrgMenu .cgIcon { margin-top: 0; }
.cgMenu.cgOrgMenu [aria-checked="true"] { color: var(--cgInk); font-weight: 400; }
.cgOrgMenu [role=menuitemradio][aria-checked="true"] { font-weight: 600; }
.cgOrgMenu [role=menuitemradio][aria-checked="true"] .cgIcon:last-child { color: var(--cgAccentInk); }
.cgOrgMenuHead { display: grid; grid-template-columns: 30px minmax(0, 1fr) 30px; align-items: center; gap: 4px; padding: 0 0 5px; margin-bottom: 4px; border-bottom: 1px solid var(--cgLine); }
.cgOrgMenuHead .cgIconButton { width: 30px; height: 30px; }
.cgOrgMenuHead strong { text-align: center; font-size: .88rem; }
.cgMenuEnd { margin-left: auto; color: var(--cgMuted); font-size: .78rem; white-space: nowrap; }
.cgRolePill { margin-left: auto; flex: none; display: inline-block; min-width: 68px; padding: 2px 10px; border-radius: var(--cgRadiusPill); background: var(--cgTint); color: color-mix(in srgb, var(--cgAccentInk) 80%, var(--cgInk)); font-size: .74rem; font-weight: 700; text-align: center; }
.cgMenuSwitch { margin-left: auto; flex: none; position: relative; width: 32px; height: 18px; border-radius: var(--cgRadiusPill); background: var(--cgMuted); }
.cgMenuSwitch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--cgPanel); transition: left .15s; }
[aria-checked="true"] > .cgMenuSwitch { background: var(--cgAccentInk); }
[aria-checked="true"] > .cgMenuSwitch::after { left: 16px; }
.cgMenuChoice { display: flex; gap: 2px; margin: 2px 6px 4px; padding: 2px; border-radius: 8px; background: var(--cgSurface2); }
.cgMenuChoice > button, .cgMenu .cgMenuChoice > button { flex: 1; display: block; border: 0; background: none; border-radius: 6px; padding: 5px 0; font: inherit; font-size: .8rem; color: var(--cgInk2); text-align: center; cursor: pointer; }
.cgMenuChoice > button[aria-checked="true"], .cgMenu .cgMenuChoice > button[aria-checked="true"] { background: var(--cgPanel); color: var(--cgInk); font-weight: 600; box-shadow: var(--cgShadow); }
.cgMenuNote { margin: 2px 10px 6px; font-size: .8rem; line-height: 1.4; color: var(--cgMuted); }
.cgMenuRow { display: flex; align-items: center; gap: 2px; }
.cgMenuRow > [role^=menuitem] { flex: 1; min-width: 0; }
.cgMenuAction { width: 30px; height: 30px; }
html[data-nav-collapsed="1"] .cgNav :is(.cgNavOrgOpen, .cgNavWhere, .cgNavArrow, .cgNavRecent, .cgNavNew, .cgNavLevelHead) { display: none !important; }
html[data-nav-collapsed="1"] .cgNav .cgNavOrgText { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }   /* still the button's name */
html[data-nav-collapsed="1"] .cgNav .cgNavTop { justify-content: center; }
html[data-nav-collapsed="1"] .cgNav .cgNavOrg { justify-content: center; padding: 6px 0; }
html[data-nav-collapsed="1"] .cgNav .cgNavFoot { padding-left: 8px; padding-right: 8px; }

/* the record you are inside, in place of the menu */
.cgNavContext { display: flex; flex-direction: column; gap: 8px; }
.cgNavBack { display: inline-flex; align-items: center; gap: 6px; color: var(--cgMuted); font-size: .86rem; padding: 4px 8px; border-radius: 6px; text-decoration: none; align-self: flex-start; }
.cgNavBack:hover { color: var(--cgInk); background: color-mix(in srgb, var(--cgInk) 6%, transparent); text-decoration: none; }
.cgNavRecord { padding: 4px 10px; }
.cgNavRecord strong { display: block; font-size: 1rem; }
.cgNavRecord small { color: var(--cgMuted); font-size: .8rem; display: block; line-height: 1.35; }

/* the page: breadcrumb, header, view tabs, command bar */
.cgMain { grid-area: main; min-width: 0; display: flex; flex-direction: column; }
.cgPage { padding: 20px 28px 28px; width: 100%; max-width: 1320px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.cgAppFooter { margin-top: auto; padding: 12px 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--cgMuted); font-size: .78rem; border-top: 1px solid var(--cgLine); }
.cgBreadcrumb { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: .82rem; color: var(--cgMuted); }
.cgBreadcrumb a { color: var(--cgMuted); text-decoration: none; }
.cgBreadcrumb a:hover { color: var(--cgAccentInk); text-decoration: underline; }
.cgBreadcrumb [aria-current] { color: var(--cgInk2); }
.cgPageHeader { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.cgPageHeaderText { flex: 1 1 420px; min-width: 0; }
.cgPageHeader h1 { font-size: 1.7rem; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0; }
.cgPageHeader .cgPageIntro { margin: 6px 0 0; color: var(--cgInk2); max-width: 78ch; }
.cgPageActions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.cgPageActions .cgButton { white-space: nowrap; }
.cgViewTabs { display: flex; gap: 22px; border-bottom: 1px solid var(--cgLine); overflow-x: auto; scrollbar-width: none; }
.cgViewTabs [role=tab] { display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; border: 0; background: none; font: inherit; font-size: .93rem; color: var(--cgInk2); cursor: pointer; white-space: nowrap; box-shadow: inset 0 -2px 0 transparent; }
.cgViewTabs [role=tab]:hover { color: var(--cgInk); }
.cgViewTabs [role=tab][aria-selected="true"] { color: var(--cgInk); font-weight: 600; box-shadow: inset 0 -2px 0 var(--cgTeal); }
.cgTabCount { font-size: .78rem; color: var(--cgMuted); font-weight: 400; }
.cgTabCount.cgAttention { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--cgAttentionDot); color: var(--cgAttentionDotInk); font-weight: 700; font-size: .68rem; display: inline-grid; place-items: center; }
.cgViewPanel { display: flex; flex-direction: column; gap: 14px; }
.cgCommandBar { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; min-height: 40px; padding: 2px 0; border-bottom: 1px solid var(--cgLine); }
.cgCmd { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 9px; border: 0; border-radius: 6px; background: none; color: color-mix(in srgb, var(--cgAccentInk) 80%, var(--cgInk)); font: inherit; font-size: .88rem; cursor: pointer; white-space: nowrap; text-decoration: none; }   /* 4.5 : 1 on the page and on a panel */
.cgCmd .cgIcon { width: 18px; height: 18px; }
.cgCmd:hover { background: color-mix(in srgb, var(--cgInk) 6%, transparent); text-decoration: none; }
.cgCmd:disabled { color: var(--cgMuted); opacity: .6; cursor: not-allowed; }
.cgCmd.cgDanger { color: var(--cgBad); }
.cgCmdSep { width: 1px; height: 20px; background: var(--cgLine); margin: 0 4px; }
.cgCmdSpacer { flex: 1; }
.cgCmdCount { font-size: .8rem; color: var(--cgMuted); margin-right: 6px; white-space: nowrap; }
/* the list page (cg-frame.mjs commandBar, quickViews, filterChips, listTable): one table, its commands above it */
.cgCmd.cgCmdPrimary { color: var(--cgAccentInk); font-weight: 600; }
.cgCmd[aria-pressed="true"] { background: var(--cgTint); }
.cgCmdSearch { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; margin-left: 4px; border: 1px solid var(--cgLine2); border-radius: var(--cgRadiusSm); background: var(--cgField); color: var(--cgMuted); width: 220px; max-width: 100%; }
.cgCmdSearch input { border: 0; padding: 0; min-width: 0; flex: 1; background: transparent; font-size: .88rem; color: var(--cgInk); }
.cgCmdSearch input:focus { outline: none; }
.cgCmdSearch:focus-within { border-color: var(--cgAccent); box-shadow: 0 0 0 3px var(--cgFocusRing); }
.cgQuickViews { display: flex; flex-wrap: wrap; gap: 8px; }
.cgQuickView { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border: 1px solid var(--cgLine2); border-radius: var(--cgRadiusPill); background: var(--cgPanel); color: var(--cgInk); font: inherit; font-size: .88rem; cursor: pointer; text-decoration: none; white-space: nowrap; }
.cgQuickView:hover { border-color: var(--cgTeal); text-decoration: none; }
.cgQuickView[aria-current="true"] { border-color: var(--cgTeal); background: var(--cgTint); color: var(--cgInk); font-weight: 600; box-shadow: inset 0 0 0 1px var(--cgTeal); }
.cgQuickViewCount { font-size: .78rem; font-weight: 600; color: var(--cgMuted); }
.cgQuickView[aria-current="true"] .cgQuickViewCount { color: var(--cgInk2); }
.cgQuickViewCount.cgAttention { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--cgAttentionDot); color: var(--cgAttentionDotInk); display: inline-grid; place-items: center; font-size: .7rem; }
.cgFilterChips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cgFilterChip { display: inline-flex; align-items: center; gap: 2px; min-height: 32px; padding: 0 2px 0 12px; border-radius: var(--cgRadiusPill); background: var(--cgPanel); border: 1px solid var(--cgTintLine); color: var(--cgInk); font-size: .88rem; }
.cgFilterChipRemove { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 50%; background: none; color: var(--cgInk2); cursor: pointer; }
.cgFilterChipRemove:hover { background: color-mix(in srgb, var(--cgInk) 10%, transparent); }
.cgListTable { background: var(--cgPanel); border: 1px solid var(--cgLine); border-radius: var(--cgRadius); border-collapse: separate; border-spacing: 0; overflow: hidden; }
.cgListTable th, .cgListTable td { padding: 11px 12px; vertical-align: middle; }
.cgListTable thead th { border-bottom: 1px solid var(--cgLine); }
.cgListTable tbody tr:last-child > * { border-bottom: 0; }
.cgListTable tbody th { text-align: left; font-weight: 400; text-transform: none; letter-spacing: 0; font-size: inherit; color: var(--cgInk); border-bottom: 1px solid var(--cgLine); }
.cgListTable tbody tr:hover > * { background: var(--cgSurface3); }
.cgListTable tbody tr.cgSelected > * { background: var(--cgTint); }
.cgListTick { width: 40px; padding-right: 0 !important; }
.cgListTick input { width: 16px; height: 16px; accent-color: var(--cgAccent); margin: 0; vertical-align: middle; }
.cgListName { display: flex; align-items: center; gap: 10px; }
.cgListName > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.cgListOpen { border: 0; background: none; padding: 0; font: inherit; font-weight: 500; color: var(--cgAccentInk); text-align: left; cursor: pointer; }
.cgListOpen:hover { text-decoration: underline; }
.cgListLead { display: inline-flex; flex-shrink: 0; }
.cgListSub { color: var(--cgMuted); font-size: .8rem; }
.cgListEmpty { color: var(--cgMuted); font-style: italic; padding: 18px 12px !important; }
.cgAvatar { width: 30px; height: 30px; border-radius: 50%; background: var(--cgChipBg); color: var(--cgInk2); font-size: .74rem; font-weight: 700; display: inline-grid; place-items: center; flex-shrink: 0; }
.cgAvatar.cgLarge { width: 48px; height: 48px; font-size: 1rem; background: var(--cgNavy); color: #ffffff; }
.cgPanelChips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.cgPanelCommands { padding: 0 16px; border-top: 1px solid var(--cgLine); }
.cgTabbed { display: flex; flex-direction: column; gap: 14px; }
.cgTabbed > .cgTabs { align-self: flex-start; }
.cgTabbedBody > [role=tabpanel] { display: flex; flex-direction: column; gap: 14px; }
.cgMenu { position: fixed; z-index: 60; min-width: 200px; max-width: 340px; background: var(--cgPanel); border: 1px solid var(--cgLine); border-radius: 10px; box-shadow: 0 12px 32px rgba(4, 20, 30, .18); padding: 5px; display: flex; flex-direction: column; }
.cgMenu [role=menuitem], .cgMenu [role=menuitemradio] { display: flex; gap: 10px; align-items: flex-start; padding: 7px 10px; border-radius: 6px; border: 0; background: none; font: inherit; font-size: .9rem; color: var(--cgInk); text-align: left; cursor: pointer; text-decoration: none; }
.cgMenu [role=menuitem]:hover, .cgMenu [role=menuitem]:focus, .cgMenu [role=menuitemradio]:hover, .cgMenu [role=menuitemradio]:focus { background: color-mix(in srgb, var(--cgInk) 6%, transparent); outline: none; text-decoration: none; }
.cgMenu small { display: block; color: var(--cgMuted); font-size: .78rem; line-height: 1.35; }
.cgMenu .cgIcon { color: var(--cgInk2); margin-top: 1px; }
.cgMenu [aria-checked="true"] { color: var(--cgAccentInk); font-weight: 600; }
.cgMenu hr { margin: 4px 2px; border: 0; border-top: 1px solid var(--cgLine); }
.cgMenuHead { padding: 6px 10px 2px; font-size: .74rem; color: var(--cgMuted); letter-spacing: .06em; text-transform: uppercase; }

/* cards and layouts */
.cgCard { background: var(--cgPanel); border: 1px solid var(--cgLine); border-radius: 10px; padding: 18px 20px; box-shadow: var(--cgShadow); min-width: 0; display: flex; flex-direction: column; gap: 10px; color: inherit; }
.cgCardHeader { display: flex; align-items: center; gap: 8px; }
.cgCardHeader :is(h2, h3) { flex: 1; min-width: 0; font-size: 1.02rem; margin: 0; }
.cgCard.cgStat { gap: 2px; }
.cgStatLabel { font-size: .8rem; color: var(--cgMuted); }
.cgStatValue { font-size: 2rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cgCard.cgStat.cgAttention .cgStatValue { color: var(--cgWarn); }
.cgCard.cgLink { cursor: pointer; text-decoration: none; flex-direction: row; gap: 12px; align-items: flex-start; }
.cgCard.cgLink:hover { border-color: var(--cgTeal); text-decoration: none; }
.cgCard.cgLink > .cgIcon { width: 22px; height: 22px; color: var(--cgAccentInk); }
.cgCard.cgLink strong { display: block; color: var(--cgInk); }
.cgCard.cgLink p { margin: 2px 0 0; color: var(--cgMuted); font-size: .86rem; }
.cgCard.cgLink em { display: inline-block; margin-top: 6px; font-style: normal; font-size: .78rem; font-weight: 700; color: var(--cgWarn); }
.cgLayoutCards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.cgLayoutDashboard { display: grid; gap: 14px; }
.cgStatRow { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.cgLayoutAside { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }

/* side panel, help, search, empty state, banner, tooltip */
.cgShade { position: fixed; inset: 0; background: rgba(11, 31, 42, .28); z-index: 40; }
.cgSidePanel { position: fixed; z-index: 41; top: 0; right: 0; bottom: 0; width: min(480px, 100vw); background: var(--cgPanel); border-left: 1px solid var(--cgLine); box-shadow: -18px 0 40px rgba(4, 20, 30, .16); display: flex; flex-direction: column; animation: cgSlideIn .2s ease-out; }
.cgSidePanel.cgWide { width: min(640px, 100vw); }
@keyframes cgSlideIn { from { transform: translateX(40px); opacity: .4; } }
.cgSidePanelHeader { padding: 20px 22px 12px; display: flex; gap: 12px; align-items: flex-start; }
.cgSidePanelHeader > div { flex: 1; min-width: 0; }
.cgSidePanelHeader h2 { font-size: 1.25rem; margin: 0; }
.cgSidePanelHeader p { margin: 6px 0 0; color: var(--cgInk2); font-size: .9rem; }
.cgSidePanelBody { flex: 1; overflow-y: auto; padding: 6px 22px 18px; display: flex; flex-direction: column; gap: 14px; }
.cgSidePanelFooter { border-top: 1px solid var(--cgLine); padding: 12px 22px; display: flex; gap: 10px; align-items: center; }
.cgSearchDialog { position: fixed; z-index: 70; left: 50%; top: 12%; transform: translateX(-50%); width: min(560px, calc(100vw - 32px)); background: var(--cgPanel); border-radius: 12px; box-shadow: 0 24px 60px rgba(4, 20, 30, .3); overflow: hidden; }
.cgSearchInput { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--cgLine); }
.cgSearchInput input { border: 0; padding: 4px 0; font-size: 1rem; }
.cgSearchInput input:focus { outline: none; }
.cgSearchResults { list-style: none; margin: 0; padding: 6px; max-height: 55vh; overflow-y: auto; }
.cgSearchResults li { margin: 0; }
.cgSearchHit { width: 100%; display: flex; gap: 10px; align-items: center; padding: 8px 10px; border: 0; border-radius: 6px; background: none; font: inherit; text-align: left; cursor: pointer; color: var(--cgInk); text-decoration: none; }
.cgSearchHit small { margin-left: auto; color: var(--cgMuted); font-size: .78rem; white-space: nowrap; }
.cgSearchHit:hover, .cgSearchHit.cgSelected { background: color-mix(in srgb, var(--cgTeal) 11%, var(--cgPanel)); text-decoration: none; }
.cgEmptyState { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 40px 20px; color: var(--cgInk2); }
.cgEmptyArt { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--cgTint); color: var(--cgAccentInk); }
.cgEmptyArt .cgIcon { width: 26px; height: 26px; }
.cgBanner { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: 8px; background: var(--cgInfoBg); color: var(--cgInk); font-size: .9rem; }
.cgBanner > .cgIcon { color: var(--cgInfo); margin-top: 1px; }
.cgBanner.cgWarn { background: var(--cgWarnBg); } .cgBanner.cgWarn > .cgIcon { color: var(--cgWarn); }
.cgTooltip { position: fixed; z-index: 90; background: var(--cgInk); color: var(--cgOnInk); font-size: .78rem; padding: 4px 8px; border-radius: 6px; pointer-events: none; white-space: nowrap; }
.cgSettingRow { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 18px; border: 0; border-top: 1px solid var(--cgLine); background: none; font: inherit; color: var(--cgInk); text-align: left; cursor: pointer; text-decoration: none; }
.cgSettingRow:first-child { border-top: 0; }
.cgSettingRow:hover { background: color-mix(in srgb, var(--cgInk) 4%, transparent); text-decoration: none; }
.cgSegmented { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--cgLine2); border-radius: 8px; padding: 3px; gap: 3px; background: var(--cgField); align-self: flex-start; }
.cgSegmented label { position: relative; }
.cgSegmented input { position: absolute; opacity: 0; inset: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.cgSegmented span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 6px; font-size: .88rem; color: var(--cgInk2); }
.cgSegmented input:checked + span { background: color-mix(in srgb, var(--cgTeal) 11%, var(--cgPanel)); color: var(--cgAccentInk); font-weight: 600; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cgTeal) 40%, transparent); }
.cgSegmented input:focus-visible + span { outline: 2px solid var(--cgTeal); outline-offset: 1px; }

/* the film of a screen: a small player in the bottom-right corner, not modal — the page stays usable */
.cgVideoDock { position: fixed; z-index: 50; right: max(18px, env(safe-area-inset-right, 0px)); bottom: max(18px, env(safe-area-inset-bottom, 0px)); width: min(400px, calc(100vw - 36px)); background: var(--cgPanel); border: 1px solid var(--cgLine); border-radius: 12px; box-shadow: 0 16px 40px rgba(4, 20, 30, .24); overflow: hidden; display: flex; flex-direction: column; }
.cgVideoDockHead { display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 12px; border-bottom: 1px solid var(--cgLine); }
.cgVideoDockHead strong { flex: 1; min-width: 0; font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cgVideoDockHead .cgIconButton { width: 30px; height: 30px; }
.cgVideoDock > video, .cgVideoDock > img { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; object-fit: contain; }
.cgVideoDockPlaceholder { aspect-ratio: 16 / 9; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 16px; background: linear-gradient(135deg, var(--cgTint), var(--cgSurface2)); }
.cgVideoDockPlaceholder strong { font-size: 1.05rem; } .cgVideoDockPlaceholder span { font-size: .84rem; color: var(--cgInk2); }
.cgVideoDockNote { padding: 8px 12px 10px; font-size: .82rem; color: var(--cgInk2); display: flex; gap: 10px; flex-wrap: wrap; }
.cgVideoDock.cgMinimized :is(video, img, .cgVideoDockPlaceholder, .cgVideoDockNote) { display: none; }
.cgVideoDock.cgMinimized { width: min(300px, calc(100vw - 36px)); }
.cgVideoDock.cgLarge { width: min(680px, calc(100vw - 36px)); }
.cgVideoDock .cgPlayerStage { border-radius: 0; }
.cgVideoDock.cgMinimized .cgPlayer { display: none; }

/* The film player (owner, 11 November 2026: option F; cg-frame.mjs filmPlayer). One big play-and-pause button and a thin
   bar that show and hide together (paused: both; playing: both fade until the pointer, a tap or the keyboard brings
   them back), one continuous green line along the very bottom edge, always shown. Library mode: the film strip under
   the picture, the current film outlined in green. A film not released yet: its poster and "Coming soon". */
.cgPlayer { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cgPlayer.cgCompact { --cgPlayerBarHeight: 38px; gap: 0; }
.cgPlayer.cgCompact .cgPlayerStrip { display: none; }   /* the corner: the picture alone, the films still play on */
.cgPlayerMain { display: flex; align-items: stretch; min-width: 0; }
.cgPlayerMain > .cgPlayerStage { flex: 1 1 auto; min-width: 0; }
.cgPlayerStage { position: relative; aspect-ratio: 16 / 9; background: var(--cgNavy); border-radius: 14px; overflow: hidden; color: #ffffff; outline: none; }
.cgPlayerStage:fullscreen { aspect-ratio: auto; width: 100%; height: 100%; border-radius: 0; background: #000000; }
.cgPlayerVideo, .cgPlayerPoster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: #0b1f2a; cursor: pointer; }
.cgPlayerStage:fullscreen :is(.cgPlayerVideo, .cgPlayerPoster) { object-fit: contain; background: #000000; }
.cgPlayerCard { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 6% 7%; box-sizing: border-box; background: linear-gradient(135deg, var(--cgNavy), #087e80); font-size: clamp(1.05rem, 2.6vw, 2.1rem); font-weight: 700; line-height: 1.15; letter-spacing: -.3px; }
.cgPlayerSoon { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 10px 18px; border-radius: 999px; background: rgba(6, 44, 69, .82); font-weight: 700; white-space: nowrap; }
.cgPlayerProblem { white-space: normal; max-width: min(90%, 460px); text-align: center; border-radius: 12px; font-weight: 600; line-height: 1.4; z-index: 2; }
.cgPlayerBig { position: absolute; left: 50%; top: 50%; width: 66px; height: 66px; transform: translate(-50%, calc(-50% - var(--cgPlayerBarHeight) / 2)); border: 0; border-radius: 50%; background: rgba(6, 44, 69, .82); color: #ffffff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: opacity .3s; }
.cgPlayerBig svg { width: 40%; height: 40%; }
/* the film is loading (cg-frame.mjs filmPlayer): the big button shows a spinner and stays on screen */
.cgPlayerSpin { width: 42%; height: 42%; border-radius: 50%; border: 3px solid currentColor; border-right-color: transparent; animation: cgSpin .8s linear infinite; }
@media (prefers-reduced-motion: reduce) { .cgPlayerSpin { animation-duration: 2.4s; } }
.cgPlayer.cgCompact .cgPlayerBig { width: 48px; height: 48px; }
.cgPlayerBar { position: absolute; left: 0; right: 0; bottom: 0; height: var(--cgPlayerBarHeight); padding: 0 12px 5px; box-sizing: border-box; display: flex; align-items: center; gap: 8px; background: rgba(6, 44, 69, .35); transition: opacity .3s; }
.cgPlayer[data-bar="off"] :is(.cgPlayerBig, .cgPlayerBar) { opacity: 0; pointer-events: none; }
.cgPlayer[data-soon] :is(.cgPlayerBig, .cgPlayerBar) { display: none; }
.cgPlayer[data-loading][data-bar] .cgPlayerBig { opacity: 1; }   /* the spinner stays while the film loads */
.cgPlayerTime { font-size: .88rem; white-space: nowrap; padding-left: 4px; font-variant-numeric: tabular-nums; }
.cgPlayerSpacer { flex: 1 1 auto; min-width: 0; }
.cgPlayerCmd { position: relative; width: 32px; height: 32px; flex: none; border: 0; border-radius: 6px; background: rgba(255, 255, 255, .12); color: #ffffff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font: inherit; font-size: .75rem; font-weight: 700; padding: 0; }
.cgPlayerCmd::after { content: ""; position: absolute; inset: -6px; }   /* a finger-sized target around a 32-pixel button */
.cgPlayerCmd svg { width: 16px; height: 16px; }
.cgPlayer.cgCompact .cgPlayerCmd { width: 28px; height: 28px; }
.cgPlayerCC { width: auto; min-width: 32px; padding: 0 7px; }
.cgPlayerCC[aria-pressed="true"] { background: #ffffff; color: var(--cgNavy); }
:is(.cgPlayerCmd, .cgPlayerBig, .cgPlayerFilm):focus-visible { outline: 2px solid var(--cgGreen); outline-offset: 2px; }
.cgPlayerLine { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; pointer-events: none; }
.cgPlayerLine > span { display: block; height: 100%; width: 0; background: var(--cgGreen); }
.cgPlayer.cgCompact .cgPlayerLine { height: 4px; }
.cgPlayerStrip { display: flex; gap: 14px; overflow-x: auto; padding: 2px 2px 10px; scroll-snap-type: x proximity; }
.cgPlayerStrip > * { flex: 0 0 200px; scroll-snap-align: start; }
.cgPlayerFilm { display: flex; flex-direction: column; justify-content: flex-start; width: 100%; height: 100%; padding: 8px; box-sizing: border-box; border: 2px solid var(--cgLine); border-radius: 12px; background: var(--cgPanel); color: var(--cgInk); cursor: pointer; font: inherit; text-align: left; }
.cgPlayerFilm[aria-current="true"] { border-color: var(--cgGreen); background: var(--cgTint); }
.cgPlayerFilm img, .cgPlayerThumbCard { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.cgPlayerThumbCard { display: flex; align-items: flex-end; padding: 8px; box-sizing: border-box; background: linear-gradient(135deg, var(--cgNavy), #087e80); color: #ffffff; font-size: .78rem; font-weight: 700; line-height: 1.2; }
.cgPlayerFilmMeta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 2px 8px; margin-top: 8px; }
.cgPlayerFilmTitle { flex: 1 1 110px; font-size: .9rem; font-weight: 600; line-height: 1.3; }   /* the length moves under a long title */
.cgPlayerFilmLength { font-size: .78rem; color: var(--cgMuted); flex: none; }
.cgPlayerTsButton[aria-pressed="true"] { background: #ffffff; color: var(--cgNavy); }
/* The films of the websites (cg-films.mjs): a page's own film first on the page, the home page's library in its hero
   (class cgFilmHero: the player in place of the picture, the strip across below; on a phone the film first), the Videos page */
.cgFilmSection { position: relative; padding-block: 26px 10px; scroll-margin-top: 12px; }
.cgFilmSection .cgFilmSlot { max-width: 980px; }
.cgFilmAnchors { position: absolute; top: 0; left: 0; width: 0; height: 0; overflow: hidden; }
.cgFilmAnchors span { display: block; scroll-margin-top: 12px; }
.cgFilmFallback { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; background: var(--cgNavy); }
.cgFilmHero { position: relative; --cgTranscriptWidth: 300px; }
.cgFilmHero .cgFilmSlot, .cgFilmHero .cgPlayer { display: contents; }
.cgFilmHero .cgPlayerMain, .cgFilmHero > .cgFilmSlot > .cgFilmFallback { grid-column: 2; grid-row: 1; box-shadow: 0 24px 60px rgba(6, 44, 69, .16); border-radius: 14px; }
.cgFilmHero .cgPlayerStrip { grid-column: 1 / -1; grid-row: 2; }
.cgVideosHero { padding-block: 38px 24px; }
.cgVideosHero h1 { font-size: 46px; margin: 0 0 14px; }
.cgVideosHero h1 em { font-style: normal; color: var(--cgAccentInk); }
.cgVideosHero .cgLead { font-size: 16px; max-width: 790px; }
.cgVideosPlayer { padding-block: 0 34px; }
.cgVideosPlayer .cgFilmSlot { max-width: none; }
.cgVideoCards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; padding-bottom: 55px; }
.cgVideoCard { border: 1px solid var(--cgLine); border-radius: 12px; overflow: hidden; background: var(--cgPanel); }
.cgVideoCard > a { display: block; }
.cgVideoCard img, .cgVideoCard .cgFilmFallback { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0; }
.cgVideoCardCopy { padding: 18px; }
.cgVideoCardCopy .cgEyebrow { font-size: 9px; margin-bottom: 7px; letter-spacing: 1.2px; }
.cgVideoCardCopy h2 { font-size: 23px; letter-spacing: -.7px; margin: 0 0 9px; line-height: 1.2; }
.cgVideoCardCopy p { font-size: 13px; line-height: 1.6; margin: 0; }
@media (max-width: 850px) {
  /* On a phone the films come first: the eyebrow and the headline, then the film, its strip, and the rest of the
     intro. The intro's box steps aside (display: contents), so its lines and the film share one ordered column; the
     site's hero is one column here, with no row gap. */
  .cgFilmHero > div:not(.cgFilmSlot):not(.cgFilmAnchors) { display: contents; }
  .cgFilmHero > div:not(.cgFilmSlot):not(.cgFilmAnchors) > * { order: 5; }
  .cgFilmHero > div:not(.cgFilmSlot):not(.cgFilmAnchors) > :has(+ h1) { order: 1; }
  .cgFilmHero > div:not(.cgFilmSlot):not(.cgFilmAnchors) > h1 { order: 2; font-size: clamp(30px, 8.6vw, 40px); letter-spacing: -1px; margin-bottom: 18px; }
  .cgFilmHero .cgPlayerMain, .cgFilmHero > .cgFilmSlot > .cgFilmFallback { grid-column: 1; grid-row: auto; order: 3; }
  .cgFilmHero .cgPlayerStrip { grid-column: 1; grid-row: auto; order: 4; margin: 14px 0 30px; }
  .cgVideoCards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .cgFilmSection { padding-block: 16px 4px; }
  .cgVideoCards { grid-template-columns: minmax(0, 1fr); }
  .cgVideosHero h1 { font-size: 38px; }
}
@media print { .cgFilmHero .cgPlayerMain, .cgFilmHero .cgPlayerStrip, .cgFilmSection { display: none; } }
/* The transcript, to the right of the picture (option G): as tall as the film, following it line by line */
.cgPlayerTranscript { flex: 0 0 var(--cgTranscriptWidth); min-width: 0; contain: size; display: grid; grid-template-rows: auto minmax(0, 1fr); background: var(--cgPanel); color: var(--cgInk); border: 1px solid var(--cgLine); border-left: 0; border-radius: 0 14px 14px 0; }
.cgPlayerTranscript[hidden] { display: none; }
.cgPlayer[data-transcript="on"] .cgPlayerStage { border-radius: 14px 0 0 14px; }
.cgPlayerTsHead { display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 16px; border-bottom: 1px solid var(--cgLine); }
.cgPlayerTsTitle { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.cgPlayerTsTitle strong { font-size: .95rem; }
.cgPlayerTsName { font-size: .78rem; color: var(--cgMuted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cgPlayerTsClose { width: 32px; height: 32px; flex: none; border: 0; border-radius: 8px; background: var(--cgChipBg, var(--cgTint)); color: var(--cgInk); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.cgPlayerTsClose svg { width: 16px; height: 16px; }
.cgPlayerTsBody { position: relative; overflow-y: auto; padding: 4px 8px 14px; scroll-behavior: smooth; }
.cgPlayerTsChapter { margin: 14px 0 4px; padding: 0 10px; font-size: .74rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--cgAccentInk, var(--cgTeal)); }
.cgPlayerCue { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 8px; width: 100%; padding: 7px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--cgInk); font: inherit; font-size: .9rem; line-height: 1.5; text-align: left; cursor: pointer; }
.cgPlayerCue:hover { background: color-mix(in srgb, var(--cgTint) 60%, transparent); }
.cgPlayerCue[aria-current="true"] { background: var(--cgTint); font-weight: 600; }
.cgPlayerCueTime { font-size: .76rem; padding-top: 2px; color: var(--cgMuted); font-variant-numeric: tabular-nums; }
:is(.cgPlayerCue, .cgPlayerTsClose, .cgPlayerTsBody):focus-visible { outline: 2px solid var(--cgTeal); outline-offset: 1px; }
@media (max-width: 720px) {
  .cgPlayerTsButton, .cgPlayerTranscript { display: none !important; }   /* phones: no transcript */
  .cgPlayer[data-transcript="on"] .cgPlayerStage { border-radius: 14px; }
  .cgPlayerStrip > * { flex-basis: 160px; }
  .cgPlayerBig { width: 56px; height: 56px; }
}

/* a person's density (Customize → Display) */
html[data-density="compact"] .cgTable td { padding-top: 4px; padding-bottom: 4px; }
html[data-density="compact"] .cgNavItem { min-height: 30px; padding-top: 4px; padding-bottom: 4px; }
html[data-density="compact"] .cgCard { padding: 14px 16px; }

/* narrow screens: the menu slides in over the page */
@media (max-width: 960px) {
  .cgShell { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "main"; }
  html[data-nav-collapsed="1"] { --cgNavWidth: 264px; }
  .cgNav { position: fixed; top: 0; bottom: 0; left: 0; height: auto; width: 320px; max-width: 88vw; transform: translateX(-102%); transition: transform .2s; box-shadow: 0 0 40px rgba(0, 0, 0, .2); z-index: 45; }
  html[data-nav-open="1"] .cgNav { transform: none; }
  html[data-nav-collapsed="1"] .cgNav :is(.cgNavText, .cgNavSearch, .cgNavLabel, .cgNavRecord, .cgRailText, .cgNavOrgOpen, .cgNavWhere, .cgNavArrow, .cgNavPin) { display: revert !important; }
  html[data-nav-collapsed="1"] .cgNav .cgNavOrgText { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  html[data-nav-collapsed="1"] .cgNav :is(.cgNavRecent, .cgNavNew) { display: flex !important; }
  html[data-nav-collapsed="1"] .cgNav .cgNavLevelHead { display: grid !important; }
  html[data-nav-collapsed="1"] .cgNav .cgNavItem { justify-content: flex-start; padding: 6px 10px; }
  html[data-nav-collapsed="1"] .cgNav .cgNavOrg { justify-content: flex-start; padding: 6px 8px; }
  .cgNavCollapseButton { display: none; }
  .cgNavClose { display: inline-grid; }
  .cgNav .cgNavItem, .cgOrgMenu :is([role=menuitem], [role=menuitemradio], [role=menuitemcheckbox]):not(.cgIconButton, .cgMenuChoice > button) { min-height: 44px; }
  .cgNavSearch { height: 40px; }
  .cgMenuButton { display: inline-grid; }
  .cgGlobalSearch { flex: 0 0 auto; margin: 0 0 0 auto; width: 38px; padding: 0 9px; }
  .cgGlobalSearch :is(span, kbd) { display: none; }
  .cgOrgSwitcher small, .cgEnvTag { display: none; }
  .cgPage { padding: 16px max(16px, env(safe-area-inset-left, 0px)) 24px; }
  .cgLayoutAside { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .cgSidePanel, .cgNav { animation: none !important; transition: none !important; } }

/* ================================================================== 5. States — the chip tone of each record state */
.cgStDone, .cgStApproved, .cgStLive, .cgStVerified, .cgStSucceeded, .cgStSuccess, .cgStActive, .cgStAssigned, .cgStApplied, .cgStAccepted, .cgStReady,
.cgStComplete, .cgStOk, .cgStGood, .cgStReviewed, .cgStAcceptedAutomatically, .cgStConfirmed, .cgStResolved { background: var(--cgOkBg); color: var(--cgOk); }
.cgStCurrent, .cgStDraft, .cgStQueued, .cgStRunning, .cgStReserved, .cgStSent, .cgStOpen, .cgStPending, .cgStProcessing, .cgStInvited { background: var(--cgInfoBg); color: var(--cgInfo); }
.cgStAttention, .cgStHasErrors, .cgStAnswered, .cgStCorrectionPending, .cgStRequired, .cgStWithdrawn, .cgStAwaiting, .cgStHeld, .cgStRequested,
.cgStNoResponse, .cgStNew, .cgStSuspended, .cgStUnverified, .cgStAbandoned, .cgStWarning { background: var(--cgWarnBg); color: var(--cgWarn); }
.cgStFailed, .cgStFailure, .cgStRejected, .cgStRevoked, .cgStExpired, .cgStCeased, .cgStRetired, .cgStStop, .cgStBlocked { background: var(--cgBadBg); color: var(--cgBad); }
.cgStUpcoming, .cgStSuperseded, .cgStClosed, .cgStCanceled, .cgStDuplicate, .cgStSeen, .cgStDismissed, .cgStEnded, .cgStPurged, .cgStDeclined { background: var(--cgSurface2); color: var(--cgInk2); }

/* Help → Who does what (role-guide.js): the rule as four cards, then the page-by-page table; the reader's own role's column is marked */
.cgRoleRules { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-bottom: 10px; }
.cgRoleRule { background: var(--cgTint); border: 1px solid var(--cgTintLine); border-radius: var(--cgRadiusSm); padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.cgRoleRule span { color: var(--cgInk2); font-size: .88rem; }
.cgRoleGuideLink { margin: 0 0 12px; }
.cgRoleTableWrap { overflow-x: auto; }
.cgRoleTable { min-width: 960px; }
.cgRoleTable tr.cgRoleArea th { padding-top: 14px; color: var(--cgAccentInk); font-size: .82rem; text-transform: none; letter-spacing: 0; }
.cgRoleTable tbody th[scope=row] { font-weight: 500; white-space: nowrap; color: var(--cgInk); text-transform: none; letter-spacing: 0; font-size: .9rem; }
.cgRoleTable th.cgRoleMine, .cgRoleTable td.cgRoleMine { background: var(--cgTint); }
.cgRoleCell { text-align: center; }
.cgRoleKind { display: inline-block; min-width: 76px; padding: 2px 8px; border-radius: var(--cgRadiusPill); font-size: .76rem; font-weight: 600; background: var(--cgChipBg); color: var(--cgInk2); }
.cgRoleWorks { background: var(--cgOkBg); color: var(--cgOk); }
.cgRoleDecides { background: var(--cgInfoBg); color: var(--cgInfo); }
.cgRoleOrganizes, .cgRoleAll { background: var(--cgPanel); color: var(--cgInk); box-shadow: inset 0 0 0 1px var(--cgLine2); }
.cgRoleWhat { color: var(--cgInk2); font-size: .82rem; min-width: 260px; }
.cgRoleTable td, .cgRoleTable tbody th { vertical-align: middle; }
/* The phone top of every Cellogi website, the same on all four so that each line starts at the same height side by side
   (850 px and narrower): nothing above the top bar; the top bar (cgSiteBar) holds only the logo and the menu button and is
   64 px tall with its rule under it; the slug line (cgSlug, one line, hidden on wider screens) starts the main landmark; then a home
   page's headline (room for three lines kept, the eyebrow above it left out), the film and its strip. */
.cgSlug { display: none; }
@media (max-width: 850px) {
  .cgSiteBar { box-sizing: content-box; height: 64px !important; min-height: 0 !important; padding-block: 0 !important; display: flex; align-items: center; }
  .cgSiteBar .cgMobileMenu { margin-left: auto; }
  .cgSlug { display: block; box-sizing: border-box; margin-block: 16px 0 !important; height: 16px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 10.5px; font-weight: 700; line-height: 16px; letter-spacing: .05em; text-transform: uppercase; color: var(--cgAccentInk); }
  .cgFilmHero { padding-top: 22px !important; gap: 0 !important; }
  .cgFilmHero > div:not(.cgFilmSlot):not(.cgFilmAnchors) > :has(+ h1) { display: none !important; }
  .cgFilmHero > div:not(.cgFilmSlot):not(.cgFilmAnchors) > h1 { margin: 0 0 18px !important; font-size: clamp(28px, 8.6vw, 38px) !important; line-height: 1.1 !important; letter-spacing: -1px !important; min-height: 3.3em; }
  .cgFilmHero .cgPlayerMain, .cgFilmHero > .cgFilmSlot > .cgFilmFallback { margin: 0 !important; }
}
/* Phones read the text 2 pt larger: the root (the rem sizes of the portals and the shared components) and the body text.
   Each website adds the same 2 pt to the text sizes of its own stylesheet. */
@media (max-width: 600px) {
  html { font-size: calc(100% + 2pt); }
  :root { --cgText: calc(15px + 2pt); --cgFieldMax: none; }
}

/* ================================================================== The search kit (owner, 16 November 2026)
   One look for every searchable list of the portals and the public sites (cg-frame.mjs searchList): the search field
   (words go to the server, every page is searched), the Filters button with its count, the Sort menu, one row of
   quick tags (a tag with no results is disabled with its 0, never hidden), the filters in force, the result line,
   numbered pages, the filter sheet (a side panel; a bottom sheet on a phone) and its controls, sortable column
   headers, saved views (each person's own) and the empty result. Approved canvas "Deep search kit". */
.cgSearch { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cgSearchBar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px; background: var(--cgPanel); border: 1px solid var(--cgLine); border-radius: 12px; }
.cgSearchField { display: flex; align-items: center; gap: 8px; flex: 1 1 320px; min-width: 0; height: 44px; padding: 0 8px 0 12px; border: 1px solid var(--cgLine2); border-radius: var(--cgRadius); background: var(--cgField); color: var(--cgMuted); box-sizing: border-box; }
.cgSearchField:focus-within { border-color: var(--cgAccent); box-shadow: 0 0 0 3px var(--cgFocusRing); }
.cgSearchField input { flex: 1; min-width: 0; border: 0; padding: 0; background: transparent; font: inherit; font-size: .95rem; color: var(--cgInk); }
.cgSearchField input:focus { outline: none; }
.cgSearchField input::-webkit-search-cancel-button { display: none; }
.cgSearchBusy { font-size: .75rem; color: var(--cgMuted); white-space: nowrap; }
.cgSearchClear { display: inline-grid; place-items: center; width: 28px; height: 28px; flex: none; border: 0; border-radius: 50%; background: var(--cgChipBg); color: var(--cgInk2); cursor: pointer; }
.cgSearchClear[hidden] { display: none; }
/* phones (≤ 600 px, the phone standard): no clear button — too small to tap beside the words, and the phone's keyboard
   clears the box; desktops keep it (owner, 22 November 2026) */
@media (max-width: 600px) { .cgSearchClear { display: none; } }
.cgFilterButton, .cgSortButton { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border: 1px solid var(--cgTintLine); border-radius: var(--cgRadiusPill); background: var(--cgPanel); color: var(--cgInk); font: inherit; font-size: .95rem; cursor: pointer; white-space: nowrap; }
.cgFilterButton { font-weight: 700; }
.cgFilterButton[aria-pressed="true"] { border-color: var(--cgAccent); background: var(--cgTint); }
.cgFilterButton:focus-visible, .cgSortButton:focus-visible, .cgTag:focus-visible { outline: 3px solid var(--cgFocusRing); outline-offset: 2px; }
.cgFilterCount { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; box-sizing: border-box; border-radius: 11px; background: var(--cgAccentInk); color: var(--cgOnInk); font-size: .75rem; }
.cgSortButton strong { font-weight: 700; }
.cgTagRail { display: flex; flex: 1 1 100%; align-items: center; gap: 8px; overflow-x: auto; padding: 2px 0 4px; scroll-snap-type: x proximity; }
.cgTag { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: var(--cgRadiusPill); border: 1px solid var(--cgTintLine); background: var(--cgPanel); color: var(--cgInk); font: inherit; font-size: .88rem; cursor: pointer; scroll-snap-align: start; }
.cgTag[aria-pressed="true"] { border-color: var(--cgAccentInk); background: var(--cgAccentInk); color: var(--cgOnInk); font-weight: 700; }
.cgTag[aria-pressed="true"]::before { content: "✓"; }
.cgTag:disabled { border-style: dashed; border-color: var(--cgLine2); background: var(--cgSurface2); color: var(--cgMuted); cursor: not-allowed; }
.cgTagCount { color: var(--cgMuted); font-weight: 400; }
.cgTag[aria-pressed="true"] .cgTagCount { color: inherit; opacity: .85; }
/* one row under the search field: All and the views, the quick tags, the links to another set, the saved views */
.cgTag.cgTagLink { text-decoration: none; }
.cgTag.cgTagLink:hover { border-color: var(--cgTeal); text-decoration: none; }
.cgTag.cgTagLink[aria-current="true"] { border-color: var(--cgAccentInk); background: var(--cgAccentInk); color: var(--cgOnInk); font-weight: 700; }
.cgTag.cgTagLink[aria-current="true"]::before { content: "✓"; }
.cgTagSep { flex: none; width: 1px; height: 24px; background: var(--cgLine2); margin: 0 2px; }
.cgTagRail .cgSavedView, .cgTagRail .cgSaveView { flex: none; }
.cgTagRail .cgSaveView { height: 36px; }
.cgTag:disabled .cgTagCount { color: inherit; }
.cgChipsLabel { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cgAccentInk); margin-right: 4px; }
.cgResultLine { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 14px; margin: 4px 0 0; }
.cgResultLine p { margin: 0; }
.cgResultScope { font-size: .82rem; color: var(--cgMuted); }
.cgSortHead { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font: inherit; font-weight: inherit; color: inherit; cursor: pointer; }
.cgSortHead .cgIcon { width: 14px; height: 14px; color: var(--cgLine2); }
th[aria-sort="ascending"] .cgSortHead, th[aria-sort="descending"] .cgSortHead, th[aria-sort="ascending"] .cgSortHead .cgIcon, th[aria-sort="descending"] .cgSortHead .cgIcon { color: var(--cgAccentInk); }
.cgResultCards { display: none; flex-direction: column; gap: 10px; }
.cgResultCard { display: block; width: 100%; text-align: left; padding: 14px 16px; background: var(--cgPanel); border: 1px solid var(--cgLine); border-radius: 12px; color: var(--cgInk); font: inherit; cursor: pointer; }
.cgResultCardTitle { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; }
.cgResultCardTitle span { font-weight: 400; font-size: .85rem; color: var(--cgMuted); white-space: nowrap; }
.cgResultCardMeta { display: block; font-size: .9rem; color: var(--cgInk2); }
.cgResultCardChips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.cgPager { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; }
.cgPagerPages { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cgPagerPage, .cgPagerStep { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; box-sizing: border-box; border-radius: var(--cgRadiusPill); border: 1px solid var(--cgTintLine); background: var(--cgPanel); color: var(--cgInk); font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.cgPagerStep { padding: 0 16px; }
.cgPagerPage[aria-current="page"] { background: var(--cgNavy); border-color: var(--cgNavy); color: #ffffff; }
.cgPagerStep:disabled { opacity: .45; cursor: default; }
.cgPagerGap { color: var(--cgMuted); }
.cgPagerOf { display: none; color: var(--cgInk2); }
.cgSearchEmpty { border: 1px dashed var(--cgLine2); border-radius: 12px; padding: 20px; text-align: center; background: var(--cgPanel); }
.cgSearchEmpty p { margin: 0 0 4px; }
.cgSearchEmpty p:first-child { font-weight: 700; }
.cgSaveView { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px dashed var(--cgLine2); border-radius: var(--cgRadiusPill); background: transparent; color: var(--cgAccentInk); font: inherit; font-size: .88rem; cursor: pointer; }
.cgSavedView { display: inline-flex; align-items: center; gap: 2px; }
.cgSearchResults { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
/* the filter sheet: a side panel (sidePanel with the cgFilterSheet variant); a sheet from the bottom on a phone */
.cgFilterSheet .cgSidePanelBody { gap: 24px; padding-top: 14px; }
.cgFilterSheet .cgSidePanelFooter > * { flex: 1; }
.cgFilterSheet .cgSidePanelFooter > .cgButton { flex: 2; }
.cgFacet { border: 0; margin: 0; padding: 0; min-width: 0; }
.cgFacet legend { padding: 0; margin-bottom: 10px; font-size: 1rem; font-weight: 700; }
.cgFacetUnit { font-weight: 400; color: var(--cgMuted); }
.cgFacetChoices, .cgFacetPresets { display: flex; flex-wrap: wrap; gap: 8px; }
.cgFacetChoice { position: relative; display: inline-flex; }
.cgFacetChoice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cgFacetChoice > span { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: var(--cgRadiusPill); border: 1px solid var(--cgTintLine); background: var(--cgPanel); color: var(--cgInk); cursor: pointer; }
.cgFacetChoice input:checked + span { background: var(--cgAccentInk); border-color: var(--cgAccentInk); color: var(--cgOnInk); font-weight: 700; }
.cgFacetChoice input:checked + span::before { content: "✓"; }
.cgFacetChoice input:disabled + span { border-style: dashed; border-color: var(--cgLine2); background: var(--cgSurface2); color: var(--cgMuted); cursor: not-allowed; }
.cgFacetChoice input:focus-visible + span { outline: 3px solid var(--cgFocusRing); outline-offset: 2px; }
.cgFacetCount { color: var(--cgMuted); font-weight: 400; }
.cgFacetChoice input:checked + span .cgFacetCount { color: inherit; opacity: .85; }
.cgFacetList { display: flex; flex-direction: column; gap: 2px; }
.cgFacetList label { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 4px; }
.cgFacetList label > span:first-of-type { flex: 1; }
.cgFacetList input { width: 18px; height: 18px; accent-color: var(--cgAccentInk); }
.cgFacetList label:has(input:disabled) { color: var(--cgMuted); }
.cgFacetFind { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; margin-bottom: 8px; border: 1px solid var(--cgLine2); border-radius: var(--cgRadius); background: var(--cgField); color: var(--cgMuted); }
.cgFacetFind input { flex: 1; min-width: 0; border: 0; padding: 0; background: transparent; font: inherit; color: var(--cgInk); }
.cgFacetFind input:focus { outline: none; }
.cgFacetMore { align-self: flex-start; min-height: 36px; padding: 0 4px; border: 0; background: none; color: var(--cgAccentInk); font: inherit; font-weight: 700; cursor: pointer; }
.cgFacetRange { display: flex; gap: 10px; }
.cgFacetRange label { flex: 1; display: flex; flex-direction: column; gap: 4px; font-size: .82rem; color: var(--cgInk2); }
.cgFacetRange input, .cgFacet select { height: 46px; box-sizing: border-box; border: 1px solid var(--cgLine2); border-radius: var(--cgRadius); padding: 0 12px; font: inherit; font-size: 1rem; background: var(--cgField); color: var(--cgInk); width: 100%; }
.cgFacetPresets { margin-bottom: 10px; }
.cgFacetPresets button { min-height: 36px; padding: 0 12px; border-radius: var(--cgRadiusPill); border: 1px solid var(--cgTintLine); background: var(--cgPanel); color: var(--cgInk); font: inherit; font-size: .88rem; cursor: pointer; }
.cgFacetPresets button[aria-pressed="true"] { border-color: var(--cgAccentInk); background: var(--cgTint); font-weight: 700; }
.cgFacetToggle { display: inline-flex; border: 1px solid var(--cgLine2); border-radius: var(--cgRadiusPill); overflow: hidden; }
.cgFacetToggle label { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; cursor: pointer; }
.cgFacetToggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cgFacetToggle label:has(input:checked) { background: var(--cgNavy); color: #ffffff; font-weight: 700; }
.cgFacetToggle label:has(input:disabled) { color: var(--cgMuted); cursor: not-allowed; }
.cgFacetToggle label:has(input:focus-visible) { outline: 3px solid var(--cgFocusRing); outline-offset: -3px; }
@media (max-width: 600px) {
  .cgSearchBar { padding: 12px; }
  .cgSearchField { flex-basis: 100%; height: 48px; }
  .cgFilterButton, .cgSortButton { flex: 1 1 0; min-width: 0; justify-content: center; height: 48px; padding: 0 12px; }
  .cgSortButton > span { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cgTag { min-height: 40px; }
  .cgTableWrap:has(+ .cgResultCards) { display: none; }
  .cgResultCards { display: flex; }
  .cgPagerPages { display: none; }
  .cgPagerOf { display: inline; }
  .cgFilterSheet { top: auto; left: 0; right: 0; width: auto; height: min(86vh, 760px); border-left: 0; border-radius: 20px 20px 0 0; box-shadow: 0 -12px 40px rgba(6, 44, 69, .25); }
  .cgFilterSheet .cgFacetChoice > span { min-height: 44px; }
}

/* The language of a text (owner, 23 November 2026): cg-frame.mjs wraps a text field or text area that has its own
   `lang` attribute in cgLangInField and puts the code (cgLangCode) at its right end. cgLangText: the same code at the
   right of a text that is not a field (a read-only original beside its translation). */
.cgLangInField { position: relative; display: block; max-width: var(--cgFieldMax); }
.cgLangInField > input, .cgLangInField > textarea { width: 100%; max-width: none; padding-right: 48px; }
.cgLangCode { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 11px; font-weight: 700; letter-spacing: .04em; line-height: 1.6; text-decoration: none; color: var(--cgAccentInk); background: var(--cgTint); border-radius: 4px; padding: 0 6px; cursor: help; pointer-events: auto; }
.cgLangInArea > .cgLangCode { top: 10px; transform: none; }
.cgLangText[lang] { position: relative; padding-right: 48px; }
.cgLangText[lang]::after { content: attr(lang); position: absolute; right: 10px; top: 8px; font-size: 11px; font-weight: 700; letter-spacing: .04em; line-height: 1.6; text-transform: uppercase; color: var(--cgAccentInk); background: var(--cgTint); border-radius: 4px; padding: 0 6px; }

/* Charts (cg-charts.mjs, owner 24 November 2026: Oversight's chart kit shared by every portal and, when they want
   charts, the websites): a figure with its title, its facts, the drawing, a note, "Show as table" and "Download CSV". */
.cgChart { margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cgChartHead { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.cgChartHead h2 { flex: 1 1 260px; font-size: 1rem; margin: 0; }
.cgChartMeta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .8rem; color: var(--cgInk2); margin: 0; }
.cgChartMeta dt { display: inline; color: var(--cgMuted); }
.cgChartMeta dd { display: inline; margin: 0 0 0 4px; }
.cgChartMeta > div { display: inline; }
.cgChartCanvas { width: 100%; height: var(--cgChartHeight, 300px); min-height: 180px; position: relative; }
.cgChartCanvas[data-empty] { display: grid; place-items: center; background: var(--cgSurface2); border-radius: var(--cgRadiusSm); color: var(--cgInk2); font-size: .9rem; text-align: center; padding: 16px; }
.cgChartActions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.cgChartActions .cgQuiet { font-size: .8rem; padding: 3px 10px; }
.cgChartNote { font-size: .8rem; color: var(--cgInk2); margin: 0; }
.cgChartTable { max-height: 360px; overflow: auto; border: 1px solid var(--cgLine); border-radius: var(--cgRadiusSm); }
.cgChartTable table { font-size: .82rem; }
.cgChartTable caption { text-align: left; padding: 8px 10px 4px; font-size: .8rem; color: var(--cgInk2); caption-side: top; }
.cgChartTable thead th { position: sticky; top: 0; background: var(--cgPanel); }
.cgChartTable tbody th { text-align: left; font-weight: 500; text-transform: none; letter-spacing: 0; font-size: inherit; color: var(--cgInk); }   /* a row's name reads as text, not as a column header */
.cgWithheld { color: var(--cgMuted); font-style: italic; }
.cgChartGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 18px 22px; }
.cgChartGrid > .cgChart { background: var(--cgPanel); border: 1px solid var(--cgLine); border-radius: var(--cgRadius); padding: 16px 18px; box-shadow: var(--cgShadow); }
.cgPanel .cgChartGrid > .cgChart { box-shadow: none; }
.cgChartGrid > .cgChartWide { grid-column: 1 / -1; }
.cgChartGrid.cgChartSolo { grid-template-columns: minmax(0, 1fr); }
.cgChartGrid { margin: 0 0 var(--cgControlSpace); }
.cgChart .cgMeters { margin: 0; }
@media (max-width: 760px) { .cgChartCanvas { height: var(--cgChartHeightPhone); } }
@media print { .cgChartActions { display: none !important; } .cgChartTable { max-height: none; overflow: visible; } .cgChart { break-inside: avoid; box-shadow: none; } }

/* What a whole menu group is for, at the top of its overview: two or three sentences (owner, 24 November 2026) */
.cgAreaSummary { max-width: 78ch; margin: 0 0 calc(var(--cgControlSpace) * 1.25); color: var(--cgInk2); font-size: 1rem; line-height: 1.6; }
/* A wait (owner, 24 November 2026): work the server does while the person waits, such as an AI translation. A turning
   ring, what is happening, and what happens if they leave; it replaces the part of the page the work will fill. */
.cgWaitBox { display: grid; justify-items: center; gap: calc(var(--cgControlSpace) * .5); padding: 28px 16px; text-align: center; border: 1px dashed var(--cgLine); border-radius: var(--cgRadius); background: var(--cgBg); }
.cgWaitBox p { margin: 0; max-width: 46ch; }
.cgSpinner { width: 28px; height: 28px; border: 3px solid var(--cgLine); border-top-color: var(--cgAccent); border-radius: 50%; animation: cgSpin .9s linear infinite; }
@keyframes cgSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cgSpinner { animation-duration: 3s; } }

/* Gauges as rows (cg-charts.mjs meters with rows: true; the Usage page): the name, a long bar, the number; a note under them */
.cgMeterRows { grid-template-columns: minmax(0, 1fr); gap: 0; }
.cgMeterRows .cgMeter { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(120px, 2.4fr) minmax(90px, auto); align-items: center; gap: 4px 18px; padding: 12px 4px; border: 0; border-bottom: 1px solid var(--cgLine); border-radius: 0; background: none; }
.cgMeterRows .cgMeter:last-child { border-bottom: 0; }
.cgMeterRows .cgMeterLabel { grid-column: 1; grid-row: 1; text-transform: none; letter-spacing: 0; font-size: .95rem; color: var(--cgInk); }
.cgMeterRows .cgMeterBar { grid-column: 2; grid-row: 1; height: 10px; }
.cgMeterRows .cgMeterValue { grid-column: 3; grid-row: 1; text-align: right; font-size: 1rem; white-space: nowrap; }
.cgMeterRows .cgMeterDetail { grid-column: 1 / -1; grid-row: 2; }
@media (max-width: 600px) { .cgMeterRows .cgMeter { grid-template-columns: minmax(0, 1fr) auto; } .cgMeterRows .cgMeterBar { grid-column: 1 / -1; grid-row: 2; } .cgMeterRows .cgMeterDetail { grid-row: 3; } }
/* ---------------------------------------------------------------- chart palettes and typefaces (owner, 24 November 2026)
 An organization chooses the palette and the typeface of its charts (Settings → Charts). The choice is an attribute on <html>
 (data-chart-palette, data-chart-font) or on any element (the chooser's previews); these rules set the chart tokens
 cg-charts.mjs reads. Each palette has its own light and dark steps, checked for colour-blind readers and look-alike
 neighbours; --cgChartHero1/2 is the two-stop colour of a single-series chart. Generated with cg-charts.mjs's
 CG_CHART_PALETTES and CG_CHART_FONTS (test/charts.test.mjs keeps the two the same). */
[data-chart-palette="teal"] { --cgSeries1: #179fa5; --cgSeries2: #ee9e10; --cgSeries3: #ba42a6; --cgSeries4: #d75928; --cgSeries5: #4354c8; --cgSeries6: #5daf4a; --cgSeriesCount: 6; --cgChartHero1: #2bb3b8; --cgChartHero2: #0b7f86; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"])[data-chart-palette="teal"], :root:not([data-theme="light"]) [data-chart-palette="teal"] { --cgSeries1: #179fa5; --cgSeries2: #c38323; --cgSeries3: #bb52a8; --cgSeries4: #c85b32; --cgSeries5: #6076de; --cgSeries6: #55a144; --cgSeriesCount: 6; --cgChartHero1: #3cc8c8; --cgChartHero2: #127f87; } }
:root[data-theme="dark"][data-chart-palette="teal"], :root[data-theme="dark"] [data-chart-palette="teal"] { --cgSeries1: #179fa5; --cgSeries2: #c38323; --cgSeries3: #bb52a8; --cgSeries4: #c85b32; --cgSeries5: #6076de; --cgSeries6: #55a144; --cgSeriesCount: 6; --cgChartHero1: #3cc8c8; --cgChartHero2: #127f87; }
[data-chart-palette="classic"] { --cgSeries1: #2a78d6; --cgSeries2: #eb6834; --cgSeries3: #1baf7a; --cgSeries4: #eda100; --cgSeries5: #e87ba4; --cgSeries6: #008300; --cgSeries7: #6250d6; --cgSeries8: #e34948; --cgSeriesCount: 8; --cgChartHero1: #2a78d6; --cgChartHero2: #2a78d6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"])[data-chart-palette="classic"], :root:not([data-theme="light"]) [data-chart-palette="classic"] { --cgSeries1: #3987e5; --cgSeries2: #d95926; --cgSeries3: #199e70; --cgSeries4: #c98500; --cgSeries5: #d55181; --cgSeries6: #008300; --cgSeries7: #9085e9; --cgSeries8: #e66767; --cgSeriesCount: 8; --cgChartHero1: #3987e5; --cgChartHero2: #3987e5; } }
:root[data-theme="dark"][data-chart-palette="classic"], :root[data-theme="dark"] [data-chart-palette="classic"] { --cgSeries1: #3987e5; --cgSeries2: #d95926; --cgSeries3: #199e70; --cgSeries4: #c98500; --cgSeries5: #d55181; --cgSeries6: #008300; --cgSeries7: #9085e9; --cgSeries8: #e66767; --cgSeriesCount: 8; --cgChartHero1: #3987e5; --cgChartHero2: #3987e5; }
[data-chart-palette="aurora"] { --cgSeries1: #634cd4; --cgSeries2: #e36927; --cgSeries3: #0ca3be; --cgSeries4: #d6ab1b; --cgSeries5: #bf56b9; --cgSeries6: #1ea662; --cgSeriesCount: 6; --cgChartHero1: #8a73f0; --cgChartHero2: #4f3bc4; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"])[data-chart-palette="aurora"], :root:not([data-theme="light"]) [data-chart-palette="aurora"] { --cgSeries1: #7e72e7; --cgSeries2: #dc692e; --cgSeries3: #0ca3be; --cgSeries4: #b18e15; --cgSeries5: #bd60b6; --cgSeries6: #33a868; --cgSeriesCount: 6; --cgChartHero1: #a597ff; --cgChartHero2: #6552dc; } }
:root[data-theme="dark"][data-chart-palette="aurora"], :root[data-theme="dark"] [data-chart-palette="aurora"] { --cgSeries1: #7e72e7; --cgSeries2: #dc692e; --cgSeries3: #0ca3be; --cgSeries4: #b18e15; --cgSeries5: #bd60b6; --cgSeries6: #33a868; --cgSeriesCount: 6; --cgChartHero1: #a597ff; --cgChartHero2: #6552dc; }
[data-chart-palette="graphite"] { --cgSeries1: #3072c1; --cgSeries2: #d8953d; --cgSeries3: #179a8e; --cgSeries4: #ca5551; --cgSeries5: #9055a9; --cgSeries6: #77a246; --cgSeriesCount: 6; --cgChartHero1: #5b8fd0; --cgChartHero2: #2b64ab; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"])[data-chart-palette="graphite"], :root:not([data-theme="light"]) [data-chart-palette="graphite"] { --cgSeries1: #4682cc; --cgSeries2: #bd8130; --cgSeries3: #23a194; --cgSeries4: #bf534e; --cgSeries5: #9760af; --cgSeries6: #779e4b; --cgSeriesCount: 6; --cgChartHero1: #6b9be0; --cgChartHero2: #3a73bd; } }
:root[data-theme="dark"][data-chart-palette="graphite"], :root[data-theme="dark"] [data-chart-palette="graphite"] { --cgSeries1: #4682cc; --cgSeries2: #bd8130; --cgSeries3: #23a194; --cgSeries4: #bf534e; --cgSeries5: #9760af; --cgSeries6: #779e4b; --cgSeriesCount: 6; --cgChartHero1: #6b9be0; --cgChartHero2: #3a73bd; }
[data-chart-palette="circular"] { --cgSeries1: #20a04e; --cgSeries2: #0268a5; --cgSeries3: #d95544; --cgSeries4: #8951bf; --cgSeries5: #e49e22; --cgSeries6: #10a6ad; --cgSeriesCount: 6; --cgChartHero1: #3fbf5e; --cgChartHero2: #0b7f80; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"])[data-chart-palette="circular"], :root:not([data-theme="light"]) [data-chart-palette="circular"] { --cgSeries1: #2e9e52; --cgSeries2: #1f86cd; --cgSeries3: #ce5342; --cgSeries4: #9565c7; --cgSeries5: #c0851f; --cgSeries6: #10a6ad; --cgSeriesCount: 6; --cgChartHero1: #4fd06c; --cgChartHero2: #16999a; } }
:root[data-theme="dark"][data-chart-palette="circular"], :root[data-theme="dark"] [data-chart-palette="circular"] { --cgSeries1: #2e9e52; --cgSeries2: #1f86cd; --cgSeries3: #ce5342; --cgSeries4: #9565c7; --cgSeries5: #c0851f; --cgSeries6: #10a6ad; --cgSeriesCount: 6; --cgChartHero1: #4fd06c; --cgChartHero2: #16999a; }
[data-chart-palette="muted_blue"] { --cgSeries1: #2a6bae; --cgSeries2: #4d9351; --cgSeries3: #924b84; --cgSeries4: #dba751; --cgSeries5: #06adb2; --cgSeries6: #cd6c5d; --cgSeriesCount: 6; --cgChartHero1: #4a86c4; --cgChartHero2: #2a6bae; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"])[data-chart-palette="muted_blue"], :root:not([data-theme="light"]) [data-chart-palette="muted_blue"] { --cgSeries1: #407dbf; --cgSeries2: #569859; --cgSeries3: #9d598f; --cgSeries4: #b7893b; --cgSeries5: #11a6aa; --cgSeries6: #bd6254; --cgSeriesCount: 6; --cgChartHero1: #5a93d0; --cgChartHero2: #3a74b6; } }
:root[data-theme="dark"][data-chart-palette="muted_blue"], :root[data-theme="dark"] [data-chart-palette="muted_blue"] { --cgSeries1: #407dbf; --cgSeries2: #569859; --cgSeries3: #9d598f; --cgSeries4: #b7893b; --cgSeries5: #11a6aa; --cgSeries6: #bd6254; --cgSeriesCount: 6; --cgChartHero1: #5a93d0; --cgChartHero2: #3a74b6; }
[data-chart-palette="paper"] { --cgSeries1: #5c5fac; --cgSeries2: #bd5f69; --cgSeries3: #25a4b1; --cgSeries4: #d7ae52; --cgSeries5: #b879b2; --cgSeries6: #29885e; --cgSeriesCount: 6; --cgChartHero1: #7a7ec4; --cgChartHero2: #5c5fac; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"])[data-chart-palette="paper"], :root:not([data-theme="light"]) [data-chart-palette="paper"] { --cgSeries1: #6e71bd; --cgSeries2: #ba616a; --cgSeries3: #199eaa; --cgSeries4: #b18c39; --cgSeries5: #ab6da6; --cgSeries6: #389469; --cgSeriesCount: 6; --cgChartHero1: #8a8ed6; --cgChartHero2: #6266b8; } }
:root[data-theme="dark"][data-chart-palette="paper"], :root[data-theme="dark"] [data-chart-palette="paper"] { --cgSeries1: #6e71bd; --cgSeries2: #ba616a; --cgSeries3: #199eaa; --cgSeries4: #b18c39; --cgSeries5: #ab6da6; --cgSeries6: #389469; --cgSeriesCount: 6; --cgChartHero1: #8a8ed6; --cgChartHero2: #6266b8; }
[data-chart-font="inter"] { --cgChartFont: "CgChartInter", var(--cgFont); --cgChartNumFont: "CgChartInter", var(--cgFont); }
[data-chart-font="geist"] { --cgChartFont: "CgChartGeist", var(--cgFont); --cgChartNumFont: "CgChartGeistMono", ui-monospace, monospace; }
[data-chart-font="manrope"] { --cgChartFont: "CgChartManrope", var(--cgFont); --cgChartNumFont: "CgChartManrope", var(--cgFont); }
[data-chart-font="arimo"] { --cgChartFont: var(--cgFont); --cgChartNumFont: var(--cgFont); }

/* The Charts settings (cgChartStyleChooser): a card per palette and per typeface, each with its own preview, then the
   charts drawn in the choice. A card is a label around its radio button; the chosen one is outlined. */
.cgChartStyleChooser { display: grid; gap: calc(var(--cgControlSpace) * 1.5); }
.cgChartStyleSet { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: calc(var(--cgControlSpace) * .5); }
.cgChartStyleSet > legend, .cgChartStyleSet > h3 { font-size: 1.05rem; font-weight: 600; margin: 0 0 4px; padding: 0; color: var(--cgInk); }
.cgChartStyleOptions { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.cgChartStyleOption { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: start; padding: 14px 16px; border: 1px solid var(--cgLine); border-radius: var(--cgRadius); background: var(--cgPanel); cursor: pointer; }
.cgChartStyleOption:hover { border-color: var(--cgAccent); }
.cgChartStyleOption.cgSelected { border-color: var(--cgAccent); box-shadow: 0 0 0 1px var(--cgAccent) inset; }
.cgChartStyleOption:has(input:focus-visible) { outline: 2px solid var(--cgAccent); outline-offset: 2px; }
.cgChartStyleOption input { margin: 3px 0 0; accent-color: var(--cgAccent); }
.cgChartStyleText { display: grid; gap: 2px; }
.cgChartStyleName { font-weight: 600; color: var(--cgInk); }
.cgChartStyleCurrent { display: none; justify-self: start; font-size: .75rem; font-weight: 600; color: var(--cgAccentInk); }
.cgChartStyleOption.cgIsCurrent .cgChartStyleCurrent { display: inline; }
.cgChartStyleHint { font-size: .85rem; color: var(--cgMuted); line-height: 1.4; }
.cgChartStyleArt, .cgChartStyleSample { grid-column: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 6px; }
.cgChartStyleSwatches { display: flex; gap: 4px; }
.cgChartStyleSwatch { width: 22px; height: 22px; border-radius: 6px; }
.cgSw1 { background: var(--cgSeries1); } .cgSw2 { background: var(--cgSeries2); } .cgSw3 { background: var(--cgSeries3); }
.cgSw4 { background: var(--cgSeries4); } .cgSw5 { background: var(--cgSeries5); } .cgSw6 { background: var(--cgSeries6); }
.cgHeroStop1 { stop-color: var(--cgChartHero1); } .cgHeroStop2 { stop-color: var(--cgChartHero2); }
.cgChartStyleSample { display: grid; gap: 2px; justify-content: start; font-family: var(--cgChartFont); color: var(--cgInk); font-size: .95rem; }
.cgChartStyleSample b { font-family: var(--cgChartNumFont); font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.cgChartStyleAxis { font-family: var(--cgChartNumFont); font-size: .8rem; color: var(--cgMuted); font-variant-numeric: tabular-nums; }
.cgChartStylePreview .cgChartGrid { margin: 0; }
