/* =========================================================================
   CR3X web foundation v4.5 · Carbon
   Less visible. More capable.

   Font: one family, two widths (free, Google Fonts, SIL OFL):
   <link rel="preconnect" href="https://fonts.googleapis.com">
   <link href="https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@62..125,100..900&display=swap" rel="stylesheet">
   Archivo Expanded (font-stretch 125%) for display, headings and overlines;
   Archivo standard width for everything you read. Licensed upgrade: swap
   --cx-font for "GT America" and --cx-wide for "GT America Extended".

   THE IDEA
   Built like a piece of hardware, not a sci-fi screen.
   - Materials: matte black, carbon fibre, brushed nickel. Used sparingly.
   - Borderless. Nothing has an outline: buttons, fields, controls, cards and
     overlays are all filled tones. Hairlines only divide rows of content
     (lists, tables, spec sheets, accordions).
   - Type: one family. Expanded width echoes the wordmark; standard width reads. Sentence case.
   - Geometry: one small radius everywhere (3 px), like a deburred machined
     edge. No pills, no large radii: the angles belong to the logo.
   - Colour: almost none. Violet only marks the private tier, never buttons, links or focus.
   Every class is prefixed `cx-`. Set --cx-carbon-tile to where you host assets/carbon-tile.png.
   ========================================================================= */

/* Self-hosted Archivo (variable: weight 100–900, width 62–125%). SIL OFL, see fonts/OFL.txt.
   Or skip this block and load it from Google Fonts with the link above. */
@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url("fonts/archivo-latin-ext.woff2") format("woff2-variations"), url("fonts/archivo-latin-ext.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: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url("fonts/archivo-latin.woff2") format("woff2-variations"), url("fonts/archivo-latin.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; }

:root {
  /* ---- Brand ---- */
  --cx-void: #08080A;
  --cx-carbon: #151518;
  --cx-concrete: #77777E;
  --cx-nickel: #D4D4D9;
  --cx-violet: #8F83A6;
  --cx-white: #FFFFFF;

  /* ---- Roles ---- */
  --cx-bg: var(--cx-void);
  --cx-surface: #101013;                       /* matte panel */
  --cx-surface-2: #16161A;                     /* raised / hover */
  --cx-edge: rgba(212, 212, 217, 0.10);        /* hairline */
  --cx-edge-2: rgba(212, 212, 217, 0.22);      /* stronger hairline: secondary buttons, fields on hover */
  --cx-highlight: rgba(255, 255, 255, 0.045);  /* top highlight on panels */
  --cx-control: #66666E;                       /* 3:1 on Void: icons and indicators */
  --cx-field: #17171B;                         /* field fill: fields are tone, not outline */
  --cx-field-hover: #1D1D22;
  --cx-control-fill: #3C3C44;                  /* unchecked checkbox, radio */
  --cx-fill: rgba(212, 212, 217, 0.09);        /* secondary buttons, kbd, chips */
  --cx-fill-hover: rgba(212, 212, 217, 0.15);
  --cx-text: #E2E2E6;                          /* 15.5:1 */
  --cx-text-2: #A6A6AD;                        /* 8.2:1 */
  --cx-text-3: #85858C;                        /* 5.4:1 */
  --cx-focus: rgba(226, 226, 230, 0.6);       /* neutral focus ring: no purple on interactive UI */
  --cx-violet-text: #A99FBD;
  --cx-positive: #8FB3A0;
  --cx-warning: #C9B37E;
  --cx-negative: #C98A8A;

  /* ---- Materials ---- */
  --cx-carbon-tile: url("assets/carbon-tile.png");
  --cx-brushed: #D4D4D9;                       /* primary fill: flat Nickel, no gradient */
  --cx-brushed-hover: #E6E6EA;
  --cx-sheen: none;
  --cx-panel: #111114;                          /* card / panel tone */
  --cx-panel-2: #16161A;                        /* hover, nested, menus */
  --cx-panel-3: #1C1C21;                        /* overlays: menus, toasts */

  /* ---- Type ---- */
  --cx-font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --cx-wide: "Archivo", "Helvetica Neue", Arial, sans-serif;   /* used with font-stretch: 125% */
  --cx-wide-stretch: 125%;
  --cx-mono: ui-monospace, "SFMono-Regular", Menlo, monospace; /* code only, no web font */
  --cx-display: clamp(2.75rem, 5.5vw + 0.5rem, 5.5rem);  /* 44 → 88, expanded */
  --cx-h1: clamp(2.25rem, 3.4vw + 0.5rem, 3.75rem);      /* 36 → 60, expanded */
  --cx-h2: clamp(1.75rem, 1.6vw + 1rem, 2.5rem);         /* 28 → 40, expanded */
  --cx-h3: 1.3125rem;                                    /* 21, standard */

  /* ---- Geometry ---- */
  --cx-radius: 3px;        /* one radius, everywhere. Never more. */

  /* ---- Space: 4 px base ---- */
  --cx-1: 4px;  --cx-2: 8px;  --cx-3: 12px; --cx-4: 16px; --cx-5: 24px;
  --cx-6: 32px; --cx-7: 48px; --cx-8: 64px; --cx-9: 96px; --cx-10: 128px;
  --cx-max: 1240px;
  --cx-gutter: clamp(20px, 5vw, 64px);

  /* ---- Motion ---- */
  --cx-ease: cubic-bezier(0.25, 0.1, 0.25, 1);     /* UI: hover, open, close */
  --cx-ease-settle: cubic-bezier(0.2, 0, 0, 1);     /* things arriving: logo, cards, panels */
  --cx-fast: 160ms;       /* hover, press */
  --cx-base: 280ms;       /* open, close, switch */
  --cx-slow: 600ms;       /* logo assembly, page-level moments, once per view */

  /* ---- Layers ---- */
  --cx-z-nav: 50; --cx-z-menu: 60; --cx-z-dialog: 90; --cx-z-toast: 100;

  /* ---- Breakpoints (for reference; CSS variables can't be used in media queries)
     mobile < 640 · tablet 640–1023 · desktop >= 1024 · nav collapses < 860
     Grid: 4 columns / 16 gutter / 20 margin (mobile), 8 / 20 / 40 (tablet), 12 / 24 / 64 (desktop) */

  /* ---- Data colours: greys first, one highlight ---- */
  --cx-data-1: #D4D4D9; --cx-data-2: #9A9AA1; --cx-data-3: #6A6A72; --cx-data-4: #45454C;
  --cx-data-grid: #1C1C21; --cx-data-axis: #85858C;
}

.cx-light {
  --cx-bg: #FFFFFF;
  --cx-surface: #F5F5F6;
  --cx-surface-2: #EDEDEF;
  --cx-edge: rgba(8, 8, 10, 0.10);
  --cx-edge-2: rgba(8, 8, 10, 0.24);
  --cx-highlight: rgba(255, 255, 255, 0.8);
  --cx-control: #8A8A92;
  --cx-field: #F0F0F2;
  --cx-field-hover: #E8E8EB;
  --cx-control-fill: #C9C9CF;
  --cx-fill: rgba(8, 8, 10, 0.06);
  --cx-fill-hover: rgba(8, 8, 10, 0.1);
  --cx-text: #0C0C0E;
  --cx-text-2: #4A4A50;
  --cx-text-3: #66666D;
  --cx-panel: #F3F3F5;
  --cx-panel-2: #EBEBEE;
  --cx-panel-3: #FFFFFF;
  --cx-brushed: #0C0C0E;
  --cx-brushed-hover: #232327;
  --cx-negative: #A34B4B;
  --cx-positive: #3F7A5B;
}

/* =========================================================================
   Base
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.cx, .cx-root {
  margin: 0; background: var(--cx-bg); color: var(--cx-text);
  font-family: var(--cx-font); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased;
  font-stretch: 100%;
}
:where(.cx-root, body.cx) a { color: var(--cx-text); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--cx-edge-2); text-underline-offset: 5px; transition: text-decoration-color var(--cx-fast) var(--cx-ease); }
:where(.cx-root, body.cx) a:hover { text-decoration-color: var(--cx-text); }
:where(.cx-root, body.cx) :focus-visible { outline: 2px solid var(--cx-focus); outline-offset: 3px; }
::selection { background: rgba(212, 212, 217, 0.3); color: var(--cx-white); }

/* =========================================================================
   Type : sentence case, tight, calm
   ========================================================================= */
.cx-display { font-family: var(--cx-wide); font-stretch: var(--cx-wide-stretch); font-size: var(--cx-display); font-weight: 300; letter-spacing: -0.015em; line-height: 1.02; margin: 0; }
.cx-h1 { font-family: var(--cx-wide); font-stretch: var(--cx-wide-stretch); font-size: var(--cx-h1); font-weight: 300; letter-spacing: -0.01em; line-height: 1.06; margin: 0; }
.cx-h2 { font-family: var(--cx-wide); font-stretch: var(--cx-wide-stretch); font-size: var(--cx-h2); font-weight: 300; letter-spacing: -0.005em; line-height: 1.12; margin: 0; }
.cx-h3 { font-size: var(--cx-h3); font-weight: 500; letter-spacing: -0.005em; line-height: 1.3; margin: 0; }
.cx-lead { font-size: 1.1875rem; line-height: 1.55; color: var(--cx-text-2); margin: 0; max-width: 34em; font-weight: 400; }
.cx-p { margin: 0; color: var(--cx-text-2); max-width: 38em; }
.cx-small { font-size: 0.875rem; color: var(--cx-text-2); }
/* Label: small Expanded text in sentence case. No uppercase, no letter-spaced caps. */
.cx-overline { font-family: var(--cx-wide); font-stretch: var(--cx-wide-stretch); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0; color: var(--cx-text-3); }
/* Data: numbers, codes, model names, specs. Same family, tabular figures. */
.cx-data { font-size: 0.875rem; letter-spacing: 0.02em; color: var(--cx-text-2); font-variant-numeric: tabular-nums; }
.cx-code { font-family: var(--cx-mono); font-size: 0.875em; color: var(--cx-text); background: var(--cx-surface-2); padding: 0.1em 0.45em; border-radius: 2px; }
.cx-kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 6px; font-size: 0.75rem; font-weight: 500; color: var(--cx-text-2); background: var(--cx-fill); border-radius: var(--cx-radius); }

/* Section heading: overline + fading hairline */
.cx-rule { display: flex; align-items: center; gap: 20px; }
.cx-rule::after { content: ""; flex: 1; height: 1px; background: var(--cx-edge); }
.cx-rule .cx-data { color: var(--cx-text-3); font-size: 0.75rem; }

/* Hairline divider with metal falloff at both ends */
.cx-hairline { height: 1px; border: 0; margin: 0; background: var(--cx-edge); }

/* =========================================================================
   Materials
   ========================================================================= */
.cx-carbon-fibre {
  background-color: #0D0D0F;
  background-image: var(--cx-sheen), linear-gradient(rgba(8,8,10,0.5), rgba(8,8,10,0.5)), var(--cx-carbon-tile);
  background-size: 100% 100%, 100% 100%, 32px 32px;
}
.cx-matte { border-radius: var(--cx-radius); background: var(--cx-panel); }
.cx-rounded { border-radius: var(--cx-radius); }

/* =========================================================================
   Layout
   ========================================================================= */
.cx-container { width: 100%; max-width: var(--cx-max); margin-inline: auto; padding-inline: var(--cx-gutter); }
.cx-section { padding-block: clamp(80px, 11vw, 160px); }
.cx-stack { display: flex; flex-direction: column; gap: var(--gap, var(--cx-4)); }
.cx-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap, var(--cx-4)); }
.cx-grid { display: grid; gap: var(--gap, var(--cx-5)); grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 260px)), 1fr)); }

/* =========================================================================
   Buttons
   ========================================================================= */
.cx-btn {
  appearance: none; border: 0; cursor: pointer; text-decoration: none !important;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 48px; padding: 0 26px; white-space: nowrap;
  font-family: var(--cx-font); font-size: 0.875rem; font-weight: 500; letter-spacing: 0.01em; line-height: 1;
  color: var(--cx-void) !important; background: var(--cx-brushed);
  border-radius: var(--cx-radius);
  transition: background var(--cx-fast) var(--cx-ease);
}
.cx-btn:hover { background: var(--cx-brushed-hover); }
.cx-btn:active { background: #C3C3C9; }
.cx-btn:focus-visible { box-shadow: 0 0 0 2px var(--cx-bg), 0 0 0 4px var(--cx-focus); }
.cx-btn:focus-visible { outline: none; }
.cx-btn svg { width: 16px; height: 16px; flex: none; transition: transform var(--cx-base) var(--cx-ease); }
.cx-btn:hover svg { transform: translateX(3px); }
.cx-light .cx-btn { color: var(--cx-white) !important; }

.cx-btn--secondary {
  color: var(--cx-text) !important; background: var(--cx-fill);
}
.cx-btn--secondary:hover { background: var(--cx-fill-hover); }
.cx-btn--secondary:active { background: rgba(212,212,217,0.2); }
.cx-light .cx-btn--secondary { color: var(--cx-text) !important; }

.cx-btn--text { color: var(--cx-text) !important; background: none; box-shadow: none; padding: 0; height: 40px; }
.cx-btn--text span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: 3px; transition: background-size var(--cx-base) var(--cx-ease); }
.cx-btn--text:hover { background: none; }
.cx-btn--text:hover span { background-size: 100% 1px; }
.cx-light .cx-btn--text { color: var(--cx-text) !important; box-shadow: none; }

.cx-btn--sm { height: 38px; padding: 0 18px; font-size: 0.875rem; }
.cx-btn--lg { height: 56px; padding: 0 32px; font-size: 1rem; }
.cx-btn--icon { width: 48px; padding: 0; }
.cx-btn--sm.cx-btn--icon { width: 38px; }
.cx-btn:disabled, .cx-btn[aria-disabled="true"] { background: rgba(212,212,217,0.05); color: var(--cx-text-3) !important; cursor: not-allowed; }

/* =========================================================================
   Fields: filled tone, no outline, label always above
   ========================================================================= */
.cx-field { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cx-field > label, .cx-field__label { font-size: 0.8125rem; color: var(--cx-text-2); }
.cx-field__hint { font-size: 0.8125rem; color: var(--cx-text-3); }
.cx-field__error { font-size: 0.8125rem; color: var(--cx-negative); }
.cx-input-wrap {
  position: relative; display: flex; align-items: center; border-radius: var(--cx-radius);
  background: var(--cx-field);
  transition: box-shadow var(--cx-fast) var(--cx-ease), background var(--cx-fast) var(--cx-ease);
}
.cx-input-wrap:hover { background: var(--cx-field-hover); }
.cx-input-wrap:focus-within { background: var(--cx-field-hover); box-shadow: 0 0 0 2px var(--cx-focus); }
.cx-input-wrap.is-invalid { background: rgba(201, 138, 138, 0.10); }
.cx-input, .cx-select, .cx-textarea {
  appearance: none; border: 0; background: transparent; outline: none; width: 100%; min-width: 0;
  height: 50px; padding: 0 16px; font-family: var(--cx-font); font-size: 1rem; color: var(--cx-text);
}
.cx-textarea { height: auto; min-height: 128px; padding-block: 14px; resize: vertical; line-height: 1.55; }
.cx-input::placeholder, .cx-textarea::placeholder { color: var(--cx-text-3); }
.cx-input-addon { padding-left: 16px; color: var(--cx-text-3); font-size: 0.9375rem; }
.cx-input-addon + .cx-input { padding-left: 6px; }
.cx-select { padding-right: 44px; cursor: pointer; }
.cx-input-wrap--select::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 7px; height: 7px; margin-top: -6px; pointer-events: none;
  border-right: 1px solid var(--cx-text-2); border-bottom: 1px solid var(--cx-text-2); transform: rotate(45deg);
}
.cx-select option { background: #101013; color: var(--cx-text); }

.cx-check { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; color: var(--cx-text); font-size: 0.9375rem; min-height: 32px; }
.cx-check input {
  appearance: none; margin: 0; flex: none; width: 18px; height: 18px; cursor: pointer; display: grid; place-content: center; border-radius: 2px;
  background: var(--cx-control-fill); transition: background var(--cx-fast) var(--cx-ease), box-shadow var(--cx-fast) var(--cx-ease);
}
.cx-check input:hover { background: #4C4C55; }
.cx-check input:checked { background: var(--cx-brushed); }
.cx-check input[type="checkbox"]:checked::after { content: ""; width: 9px; height: 5px; border-left: 1.5px solid var(--cx-void); border-bottom: 1.5px solid var(--cx-void); transform: translateY(-1px) rotate(-45deg); }
.cx-check input[type="radio"]:checked { background: var(--cx-brushed); }
.cx-check input[type="radio"] { border-radius: 50%; }
.cx-check input[type="radio"]:checked::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cx-bg); }
.cx-check input:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--cx-bg), 0 0 0 4px var(--cx-focus); }
.cx-light .cx-check input[type="checkbox"]:checked::after { border-color: var(--cx-white); }

.cx-switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; color: var(--cx-text); font-size: 0.9375rem; min-height: 32px; }
.cx-switch input {
  appearance: none; margin: 0; flex: none; position: relative; width: 40px; height: 22px; cursor: pointer; border-radius: var(--cx-radius);
  background: var(--cx-control-fill); transition: background var(--cx-base) var(--cx-ease), box-shadow var(--cx-base) var(--cx-ease);
}
.cx-switch input::after {
  content: ""; position: absolute; top: 4px; left: 4px; width: 14px; height: 14px; border-radius: 2px; background: var(--cx-text-2);
  transition: transform var(--cx-base) var(--cx-ease), background var(--cx-base) var(--cx-ease);
}
.cx-switch input:checked { background: var(--cx-brushed); }
.cx-switch input:checked::after { transform: translateX(18px); background: var(--cx-bg); }
.cx-switch input:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--cx-bg), 0 0 0 4px var(--cx-focus); }

/* =========================================================================
   Tags and status
   ========================================================================= */
.cx-tag {
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px;
  font-size: 0.8125rem; font-weight: 500; color: var(--cx-text-2);
  background: rgba(212, 212, 217, 0.08); border-radius: 2px;
}
.cx-tag--solid { color: var(--cx-void); background: var(--cx-brushed); }
.cx-tag--private { color: var(--cx-violet-text); background: rgba(143, 131, 166, 0.14); }
.cx-status { display: inline-flex; align-items: center; gap: 10px; font-size: 0.875rem; color: var(--cx-text-2); }
.cx-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cx-text-3); }
.cx-status--live::before { background: var(--cx-positive); }
.cx-status--warn::before { background: var(--cx-warning); }
.cx-status--off::before { background: var(--cx-negative); }

/* =========================================================================
   Navigation
   ========================================================================= */
.cx-nav { position: sticky; top: 0; z-index: 50; background: var(--cx-bg); }
.cx-nav__inner { display: flex; align-items: center; gap: var(--cx-8); min-height: 72px; }
.cx-nav__actions { display: flex; align-items: center; gap: 24px; }
.cx-nav__logo { display: inline-flex; color: var(--cx-text) !important; text-decoration: none !important; }
.cx-nav__logo svg { display: block; }
.cx-nav__links { display: flex; gap: var(--cx-6); flex-wrap: wrap; margin-right: auto; }
.cx-nav__link { position: relative; padding: 8px 0; font-size: 0.875rem; color: var(--cx-text-2) !important; text-decoration: none !important; transition: color var(--cx-fast) var(--cx-ease); }
.cx-nav__link:hover, .cx-nav__link[aria-current="page"] { color: var(--cx-text) !important; }
.cx-nav__link[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--cx-text); }

.cx-tabs { display: flex; gap: var(--cx-6); overflow-x: auto; }
.cx-tab { appearance: none; background: none; border: 0; cursor: pointer; position: relative; padding: 14px 0; font-family: var(--cx-font); font-size: 0.9375rem; color: var(--cx-text-3); transition: color var(--cx-fast) var(--cx-ease); }
.cx-tab:hover { color: var(--cx-text-2); }
.cx-tab[aria-selected="true"] { color: var(--cx-text); }
.cx-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; border-radius: 1px; background: var(--cx-text); }

.cx-breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 0.8125rem; color: var(--cx-text-3); }
.cx-breadcrumb a { color: var(--cx-text-2) !important; text-decoration: none !important; }
.cx-breadcrumb a:hover { color: var(--cx-text) !important; }
.cx-breadcrumb .cx-sep { width: 12px; height: 1px; background: var(--cx-edge-2); }

/* =========================================================================
   Cards
   Borderless. A card is a tone step above the page. Carbon for the private
   tier and hero moments only. The private tier is marked by its overline in
   Violet, not by an outline.
   ========================================================================= */
.cx-card {
  position: relative; display: flex; flex-direction: column; gap: var(--cx-4); padding: 36px; min-width: 0;
  background: var(--cx-panel); color: inherit !important; text-decoration: none !important;
  border-radius: var(--cx-radius);
  transition: background var(--cx-base) var(--cx-ease);
}
.cx-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.cx-card--link:hover { background: var(--cx-panel-2); }
.cx-card--flat { background: transparent; padding: 0; }
.cx-card--carbon {
  background-color: #0D0D0F; background-image: var(--cx-sheen), linear-gradient(rgba(8,8,10,0.5), rgba(8,8,10,0.5)), var(--cx-carbon-tile); background-size: 100% 100%, 100% 100%, 32px 32px;
}
.cx-card--private .cx-card__head .cx-overline, .cx-overline--private { color: var(--cx-violet-text); }

/* Spec list : like a watch spec sheet */
.cx-spec { display: grid; grid-template-columns: minmax(0, 1fr) auto; margin: 0; }
.cx-spec dt, .cx-spec dd { margin: 0; padding: 15px 0; box-shadow: inset 0 -1px 0 var(--cx-edge); }
.cx-spec dt { font-size: 0.875rem; color: var(--cx-text-2); }
.cx-spec dd { font-size: 0.875rem; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; color: var(--cx-text); text-align: right; }

/* =========================================================================
   Table
   ========================================================================= */
.cx-table-wrap { overflow-x: auto; }
.cx-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.cx-table th { text-align: left; font-size: 0.8125rem; font-weight: 500; color: var(--cx-text-3); padding: 0 16px 14px; box-shadow: inset 0 -1px 0 var(--cx-edge-2); white-space: nowrap; }
.cx-table td { padding: 18px 16px; box-shadow: inset 0 -1px 0 var(--cx-edge); color: var(--cx-text); }
.cx-table th:first-child, .cx-table td:first-child { padding-left: 0; }
.cx-table th:last-child, .cx-table td:last-child { padding-right: 0; }
.cx-table tbody tr { transition: background var(--cx-fast) var(--cx-ease); }
.cx-table tbody tr:hover { background: rgba(212,212,217,0.025); }
.cx-table .cx-num { font-size: 0.875rem; letter-spacing: 0.02em; text-align: right; font-variant-numeric: tabular-nums; }

/* =========================================================================
   Feedback
   ========================================================================= */
.cx-alert { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: var(--cx-radius); background: var(--cx-panel); font-size: 0.875rem; color: var(--cx-text-2); }
.cx-alert__icon { flex: none; width: 20px; height: 20px; color: var(--cx-text-2); margin-top: 1px; }
.cx-alert__title { font-size: 0.9375rem; color: var(--cx-text); margin-bottom: 2px; }
.cx-alert--private .cx-alert__icon { color: var(--cx-violet-text); }
.cx-alert--negative .cx-alert__icon { color: var(--cx-negative); }
.cx-alert--positive .cx-alert__icon { color: var(--cx-positive); }

.cx-progress { position: relative; height: 2px; background: var(--cx-edge); border-radius: 1px; overflow: hidden; }
.cx-progress > span { position: absolute; inset: 0 auto 0 0; width: var(--value, 0%); background: var(--cx-text); transition: width var(--cx-base) var(--cx-ease); }

.cx-tooltip { display: inline-flex; align-items: center; gap: 10px; height: 30px; padding: 0 12px; border-radius: var(--cx-radius); background: var(--cx-brushed); color: var(--cx-void); font-size: 0.8125rem; }

/* =========================================================================
   Footer
   ========================================================================= */
.cx-footer { padding-block: var(--cx-9) var(--cx-6); background: var(--cx-panel); }
.cx-footer__cols { display: grid; gap: var(--cx-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.cx-footer__col { display: flex; flex-direction: column; gap: var(--cx-3); }
.cx-footer__col a { color: var(--cx-text-2) !important; text-decoration: none !important; font-size: 0.875rem; }
.cx-footer__col a:hover { color: var(--cx-text) !important; }
.cx-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--cx-4); margin-top: var(--cx-9); padding-top: var(--cx-5); }

/* =========================================================================
   Mobile navigation : <details class="cx-nav__mobile"> inside .cx-nav__inner.
   No JavaScript needed. Shows below 860 px; desktop links and actions hide.
   ========================================================================= */
.cx-nav__mobile { display: none; margin-left: auto; }
.cx-nav__mobile > summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-content: center; gap: 6px; border-radius: var(--cx-radius); }
.cx-nav__mobile > summary::-webkit-details-marker { display: none; }
.cx-nav__mobile > summary::before, .cx-nav__mobile > summary::after { content: ""; width: 20px; height: 1.5px; background: var(--cx-text); transition: transform var(--cx-base) var(--cx-ease); }
.cx-nav__mobile[open] > summary::before { transform: translateY(3.75px) rotate(45deg); }
.cx-nav__mobile[open] > summary::after { transform: translateY(-3.75px) rotate(-45deg); }
.cx-nav__mobile > summary:focus-visible { outline: 2px solid var(--cx-focus); outline-offset: 2px; }
.cx-nav__panel { position: absolute; left: 0; right: 0; top: 100%; background: #0B0B0D; padding: 8px var(--cx-gutter) 32px; display: flex; flex-direction: column; min-height: calc(100vh - 72px); }
.cx-nav__panel--static { position: static; min-height: 0; }
.cx-nav__panel a.cx-nav__big { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; font-stretch: var(--cx-wide-stretch); font-weight: 300; font-size: 1.5rem; color: var(--cx-text) !important; text-decoration: none !important; box-shadow: inset 0 -1px 0 var(--cx-edge); }
.cx-nav__panel .cx-btn { margin-top: 32px; width: 100%; }
@media (max-width: 860px) {
  .cx-nav__links, .cx-nav__actions, .cx-hide-mobile { display: none; }
  .cx-nav__mobile { display: block; }
}

/* =========================================================================
   Overlays
   ========================================================================= */
/* Dialog: use on <dialog class="cx-dialog"> (showModal()), content in .cx-dialog__panel */
.cx-dialog { border: 0; padding: 0; background: transparent; color: var(--cx-text); width: min(520px, calc(100vw - 32px)); max-width: none; }
.cx-dialog::backdrop, .cx-scrim { background: rgba(8, 8, 10, 0.82); }
.cx-dialog__panel { display: flex; flex-direction: column; gap: 16px; padding: 32px; background: var(--cx-panel-2); border-radius: var(--cx-radius); }
.cx-dialog__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.cx-dialog__close { appearance: none; border: 0; background: none; color: var(--cx-text-2); width: 36px; height: 36px; margin: -8px -8px 0 0; display: grid; place-content: center; cursor: pointer; border-radius: var(--cx-radius); }
.cx-dialog__close:hover { background: rgba(212,212,217,0.07); color: var(--cx-text); }
.cx-dialog__actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px; padding-top: 12px; }

/* Dropdown menu: <details class="cx-dropdown"><summary class="cx-btn cx-btn--secondary">…</summary><div class="cx-menu">…</div></details> */
.cx-dropdown { position: relative; display: inline-block; }
.cx-dropdown > summary { list-style: none; }
.cx-dropdown > summary::-webkit-details-marker { display: none; }
.cx-dropdown > .cx-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 60; }
.cx-dropdown--end > .cx-menu { left: auto; right: 0; }
.cx-menu { min-width: 232px; display: flex; flex-direction: column; padding: 6px; background: var(--cx-panel-3); border-radius: var(--cx-radius); }
.cx-menu__label { padding: 10px 12px 6px; }
.cx-menu__item { appearance: none; border: 0; background: none; width: 100%; text-align: left; cursor: pointer; display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 12px; border-radius: 2px; font-family: var(--cx-font); font-size: 0.875rem; color: var(--cx-text-2) !important; text-decoration: none !important; }
.cx-menu__item svg { width: 16px; height: 16px; flex: none; }
.cx-menu__item:hover, .cx-menu__item:focus-visible { background: rgba(212,212,217,0.07); color: var(--cx-text) !important; outline: none; }
.cx-menu__item[aria-checked="true"] { color: var(--cx-text) !important; }
.cx-menu__hint { margin-left: auto; font-size: 0.75rem; color: var(--cx-text-3); font-variant-numeric: tabular-nums; }
.cx-menu__item--danger { color: var(--cx-negative) !important; }
.cx-menu__sep { height: 1px; margin: 6px 0; background: var(--cx-edge); }

/* Toast: stack in .cx-toasts (fixed, bottom right) */
.cx-toasts { position: fixed; right: 24px; bottom: 24px; z-index: 100; display: flex; flex-direction: column; gap: 8px; }
.cx-toast { display: flex; align-items: center; gap: 14px; width: min(400px, calc(100vw - 48px)); padding: 14px 14px 14px 18px; background: var(--cx-panel-3); border-radius: var(--cx-radius); font-size: 0.875rem; color: var(--cx-text); }
.cx-toast__icon { flex: none; width: 18px; height: 18px; color: var(--cx-text-2); }
.cx-toast--positive .cx-toast__icon { color: var(--cx-positive); }
.cx-toast--negative .cx-toast__icon { color: var(--cx-negative); }
.cx-toast__body { flex: 1; min-width: 0; }
.cx-toast__body span { display: block; color: var(--cx-text-2); font-size: 0.8125rem; }
.cx-toast__action { appearance: none; border: 0; background: none; cursor: pointer; padding: 8px 10px; border-radius: 2px; font-family: var(--cx-font); font-size: 0.8125rem; font-weight: 500; color: var(--cx-text); }
.cx-toast__action:hover { background: rgba(212,212,217,0.07); }

/* =========================================================================
   Navigation helpers
   ========================================================================= */
.cx-pagination { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.cx-page { min-width: 38px; height: 38px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--cx-radius); font-size: 0.875rem; color: var(--cx-text-2) !important; text-decoration: none !important; font-variant-numeric: tabular-nums; transition: background var(--cx-fast) var(--cx-ease); }
.cx-page:hover { background: rgba(212,212,217,0.06); color: var(--cx-text) !important; }
.cx-page[aria-current="page"] { background: rgba(212,212,217,0.12); color: var(--cx-text) !important; }
.cx-page svg { width: 16px; height: 16px; }
.cx-page--gap { pointer-events: none; color: var(--cx-text-3) !important; }

.cx-steps { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.cx-steps li { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding-top: 14px; box-shadow: inset 0 2px 0 var(--cx-edge-2); font-size: 0.875rem; color: var(--cx-text-3); }
.cx-steps li .cx-data { font-size: 0.75rem; color: inherit; }
.cx-steps li.is-done { color: var(--cx-text-2); box-shadow: inset 0 2px 0 var(--cx-text-3); }
.cx-steps li[aria-current="step"] { color: var(--cx-text); box-shadow: inset 0 2px 0 var(--cx-text); }

.cx-segmented { display: inline-flex; align-self: flex-start; gap: 2px; padding: 3px; background: var(--cx-panel); border-radius: var(--cx-radius); }
.cx-segmented label { position: relative; cursor: pointer; }
.cx-segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cx-segmented span { display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border-radius: 2px; font-size: 0.875rem; color: var(--cx-text-2); transition: background var(--cx-fast) var(--cx-ease), color var(--cx-fast) var(--cx-ease); }
.cx-segmented label:hover span { color: var(--cx-text); }
.cx-segmented input:checked + span { background: rgba(212,212,217,0.12); color: var(--cx-text); }
.cx-segmented input:focus-visible + span { outline: 2px solid var(--cx-focus); outline-offset: 1px; }

.cx-accordion { box-shadow: inset 0 -1px 0 var(--cx-edge); }
.cx-accordion:first-of-type { box-shadow: inset 0 1px 0 var(--cx-edge), inset 0 -1px 0 var(--cx-edge); }
.cx-accordion > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-size: 1.0625rem; color: var(--cx-text); }
.cx-accordion > summary::-webkit-details-marker { display: none; }
.cx-accordion > summary::after { content: ""; flex: none; width: 12px; height: 12px; background: linear-gradient(var(--cx-text-2), var(--cx-text-2)) center / 12px 1.5px no-repeat, linear-gradient(var(--cx-text-2), var(--cx-text-2)) center / 1.5px 12px no-repeat; transition: transform var(--cx-base) var(--cx-ease); }
.cx-accordion[open] > summary::after { transform: rotate(45deg); }
.cx-accordion > summary:focus-visible { outline: 2px solid var(--cx-focus); outline-offset: 4px; }
.cx-accordion__body { padding: 0 48px 24px 0; color: var(--cx-text-2); max-width: 44em; }

/* =========================================================================
   Inputs, extra
   ========================================================================= */
.cx-range { --value: 50%; appearance: none; -webkit-appearance: none; width: 100%; height: 24px; margin: 0; background: transparent; cursor: pointer; }
.cx-range::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(to right, var(--cx-text) var(--value), var(--cx-edge-2) var(--value)); border-radius: 1px; }
.cx-range::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -7px; border-radius: 2px; background: var(--cx-brushed); }
.cx-range::-moz-range-track { height: 2px; background: var(--cx-edge-2); }
.cx-range::-moz-range-progress { height: 2px; background: var(--cx-text); }
.cx-range::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 2px; background: var(--cx-brushed); }
.cx-range:focus-visible { outline: none; }
.cx-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--cx-focus); }

/* =========================================================================
   Commerce: tiers
   ========================================================================= */
.cx-price { display: flex; align-items: baseline; gap: 8px; font-stretch: var(--cx-wide-stretch); font-weight: 300; font-size: 2.5rem; letter-spacing: -0.01em; line-height: 1; font-variant-numeric: tabular-nums; }
.cx-price small { font-stretch: 100%; font-size: 0.875rem; font-weight: 400; color: var(--cx-text-3); letter-spacing: 0; }
.cx-checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 0.9375rem; color: var(--cx-text-2); }
.cx-checklist li { display: flex; gap: 12px; align-items: baseline; }
.cx-checklist li::before { content: ""; flex: none; width: 9px; height: 5px; border-left: 1.5px solid var(--cx-text); border-bottom: 1.5px solid var(--cx-text); transform: translateY(-3px) rotate(-45deg); }

/* =========================================================================
   Identity and states
   ========================================================================= */
.cx-avatar { flex: none; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--cx-radius); background: var(--cx-panel-3); font-stretch: var(--cx-wide-stretch); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.04em; color: var(--cx-text); overflow: hidden; }
.cx-avatar--lg { width: 56px; height: 56px; font-size: 1rem; }
.cx-avatar img { width: 100%; height: 100%; object-fit: cover; }

.cx-skeleton { display: block; border-radius: 2px; background: var(--cx-panel-3); animation: cx-pulse 1.6s ease-in-out infinite; }
@keyframes cx-pulse { 50% { opacity: 0.5; } }

.cx-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 56px 24px; background: var(--cx-panel); border-radius: var(--cx-radius); }
.cx-empty__icon { width: 48px; height: 48px; display: grid; place-content: center; border-radius: var(--cx-radius); background: var(--cx-panel-3); color: var(--cx-text-2); }
.cx-empty p { margin: 0; color: var(--cx-text-2); max-width: 30em; font-size: 0.9375rem; }

/* =========================================================================
   Icons: 24 px grid, stroke 1.5, square caps, mitred joins (icon set in 12-icons)
   <svg class="cx-icon" viewBox="0 0 24 24"><use href="cr3x-icons.svg#search"/></svg>
   ========================================================================= */
.cx-icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; stroke-linejoin: miter; }
.cx-icon--sm { width: 16px; height: 16px; }
.cx-icon--lg { width: 24px; height: 24px; }

/* Counts and notification dots */
.cx-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 2px; background: var(--cx-fill); font-size: 0.75rem; font-weight: 500; color: var(--cx-text); font-variant-numeric: tabular-nums; }
.cx-count--strong { background: var(--cx-nickel); color: var(--cx-void); }
.cx-notify { position: relative; }
.cx-notify::after { content: ""; position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--cx-nickel); }

/* =========================================================================
   App shell (desktop software)
   ========================================================================= */
.cx-app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; background: var(--cx-bg); }
.cx-sidebar { display: flex; flex-direction: column; gap: 4px; padding: 20px 12px; background: var(--cx-panel); }
.cx-sidebar__brand { display: flex; align-items: center; height: 44px; padding: 0 12px; margin-bottom: 16px; }
.cx-sidebar__label { padding: 18px 12px 6px; font-stretch: var(--cx-wide-stretch); font-size: 0.75rem; font-weight: 500; color: var(--cx-text-3); }
.cx-side-item { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 12px; border-radius: var(--cx-radius); font-size: 0.875rem; color: var(--cx-text-2) !important; text-decoration: none !important; transition: background var(--cx-fast) var(--cx-ease), color var(--cx-fast) var(--cx-ease); }
.cx-side-item:hover { background: var(--cx-fill); color: var(--cx-text) !important; }
.cx-side-item[aria-current="page"] { background: var(--cx-fill-hover); color: var(--cx-text) !important; }
.cx-side-item .cx-count { margin-left: auto; }
.cx-sidebar__foot { margin-top: auto; display: flex; align-items: center; gap: 12px; padding: 12px; }
.cx-main { display: flex; flex-direction: column; min-width: 0; }
.cx-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; padding: 0 40px; }
.cx-toolbar__actions { display: flex; align-items: center; gap: 8px; }
.cx-content { padding: 8px 40px 48px; display: flex; flex-direction: column; gap: 24px; }
.cx-panel { background: var(--cx-panel); border-radius: var(--cx-radius); padding: 24px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cx-panel__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
@media (max-width: 860px) { .cx-app { grid-template-columns: 1fr; } .cx-sidebar { display: none; } .cx-toolbar, .cx-content { padding-inline: 20px; } }

/* Search trigger in a toolbar: opens the command palette */
.cx-search-trigger { display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 8px 0 12px; min-width: 260px; border-radius: var(--cx-radius); background: var(--cx-field); color: var(--cx-text-3); font-family: var(--cx-font); font-size: 0.875rem; border: 0; cursor: pointer; }
.cx-search-trigger .cx-kbd { margin-left: auto; }

/* Command palette */
.cx-command { width: min(600px, calc(100vw - 32px)); background: var(--cx-panel-3); border-radius: var(--cx-radius); overflow: hidden; display: flex; flex-direction: column; }
.cx-command__input { display: flex; align-items: center; gap: 12px; padding: 0 18px; height: 56px; color: var(--cx-text-2); }
.cx-command__input input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-family: var(--cx-font); font-size: 1rem; color: var(--cx-text); }
.cx-command__input input::placeholder { color: var(--cx-text-3); }
.cx-command__list { display: flex; flex-direction: column; padding: 6px; box-shadow: inset 0 1px 0 var(--cx-edge); }
.cx-command__group { padding: 10px 12px 6px; font-stretch: var(--cx-wide-stretch); font-size: 0.75rem; font-weight: 500; color: var(--cx-text-3); }
.cx-command__item { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: 2px; font-size: 0.875rem; color: var(--cx-text-2); cursor: pointer; }
.cx-command__item[aria-selected="true"], .cx-command__item:hover { background: rgba(212,212,217,0.08); color: var(--cx-text); }
.cx-command__item .cx-kbds { margin-left: auto; }
.cx-command__foot { display: flex; gap: 20px; padding: 10px 18px; font-size: 0.75rem; color: var(--cx-text-3); box-shadow: inset 0 1px 0 var(--cx-edge); }
.cx-kbds { display: inline-flex; gap: 4px; }

/* Keyboard shortcut list */
.cx-shortcuts { display: grid; grid-template-columns: minmax(0, 1fr) auto; margin: 0; }
.cx-shortcuts dt, .cx-shortcuts dd { margin: 0; padding: 12px 0; box-shadow: inset 0 -1px 0 var(--cx-edge); font-size: 0.875rem; }
.cx-shortcuts dt { color: var(--cx-text-2); }
.cx-shortcuts dd { display: flex; gap: 4px; justify-content: flex-end; }

/* Stat: one number with its label, used inside panels only, never as a banner row */
.cx-stat { display: flex; flex-direction: column; gap: 6px; }
.cx-stat__value { font-stretch: var(--cx-wide-stretch); font-weight: 300; font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; color: var(--cx-text); }
.cx-stat__label { font-size: 0.8125rem; color: var(--cx-text-3); }
.cx-delta { font-size: 0.8125rem; font-variant-numeric: tabular-nums; color: var(--cx-text-2); }
.cx-delta--up { color: var(--cx-positive); }
.cx-delta--down { color: var(--cx-negative); }

/* Charts: inline SVG with these classes */
.cx-chart { display: block; width: 100%; height: auto; overflow: visible; }
.cx-chart .grid { stroke: var(--cx-data-grid); stroke-width: 1; }
.cx-chart .axis { fill: var(--cx-data-axis); font-family: var(--cx-font); font-size: 11px; font-variant-numeric: tabular-nums; }
.cx-chart .s1 { stroke: var(--cx-data-1); fill: none; stroke-width: 1.5; }
.cx-chart .s2 { stroke: var(--cx-data-3); fill: none; stroke-width: 1.5; }
.cx-chart .bar { fill: var(--cx-data-4); }
.cx-chart .bar--hi { fill: var(--cx-data-1); }
.cx-chart .pt { fill: var(--cx-data-1); }

/* =========================================================================
   System
   ========================================================================= */
/* Cookie consent: bottom-left, never a full-width banner, never blocks the page */
.cx-consent { position: fixed; left: 24px; bottom: 24px; z-index: var(--cx-z-toast); width: min(420px, calc(100vw - 48px)); padding: 24px; background: var(--cx-panel-3); border-radius: var(--cx-radius); display: flex; flex-direction: column; gap: 16px; font-size: 0.875rem; color: var(--cx-text-2); }
.cx-consent__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Loading splash */
.cx-splash { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 32px; background: var(--cx-bg); }
.cx-splash__bar { width: 160px; height: 2px; background: var(--cx-edge); border-radius: 1px; overflow: hidden; position: relative; }
.cx-splash__bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 40%; background: var(--cx-text); animation: cx-load 1.4s var(--cx-ease) infinite; }
@keyframes cx-load { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* Logo assembly: wrap the two symbol pieces in .cx-assemble with .c and .r paths */
.cx-assemble .c { animation: cx-in-c var(--cx-slow) var(--cx-ease-settle) both; }
.cx-assemble .r { animation: cx-in-r var(--cx-slow) var(--cx-ease-settle) 80ms both; }
@keyframes cx-in-c { from { transform: translate(-6px, 6px); opacity: 0; } }
@keyframes cx-in-r { from { transform: translate(6px, -6px); opacity: 0; } }

/* =========================================================================
   Client menu (cx-gui)
   The in-game menu: category rail on the left, modules in two columns.
   Filled tones only: active modules are raised, inactive ones recede.
   Nickel is the only accent. No glow, no blur, no outlines.
   ========================================================================= */
.cx-gui { --gui-bg: #0B0B0D; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; padding: 8px; background: var(--gui-bg); border-radius: var(--cx-radius); font-family: var(--cx-font); color: var(--cx-text); font-variant-numeric: tabular-nums; }
.cx-gui__rail { background: var(--cx-panel); border-radius: var(--cx-radius); display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 0; }
.cx-gui__logo { padding: 4px 0 14px; margin-bottom: 8px; box-shadow: inset 0 -1px 0 var(--cx-edge); width: 32px; display: flex; justify-content: center; }
.cx-gui__cat { width: 40px; height: 40px; display: grid; place-content: center; border-radius: var(--cx-radius); color: var(--cx-control); background: none; border: 0; cursor: pointer; transition: background var(--cx-fast) var(--cx-ease), color var(--cx-fast) var(--cx-ease); }
.cx-gui__cat:hover { color: var(--cx-text-2); background: var(--cx-fill); }
.cx-gui__cat[aria-current="true"] { color: var(--cx-brushed); background: var(--cx-fill); }
.cx-gui__rail-end { margin-top: auto; }
.cx-gui__body { background: var(--cx-panel); border-radius: var(--cx-radius); padding: 12px; columns: 2; column-gap: 12px; overflow: auto; }
.cx-mod { break-inside: avoid; margin-bottom: 12px; background: var(--cx-surface); border-radius: var(--cx-radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.cx-mod.is-on { background: var(--cx-panel-2); box-shadow: inset 0 1px 0 var(--cx-highlight); }
.cx-mod__head { display: flex; align-items: center; gap: 10px; min-height: 24px; }
.cx-mod__name { flex: 1; font-size: 1rem; font-weight: 500; }
.cx-mod:not(.is-on) .cx-mod__name { color: var(--cx-text-3); font-weight: 400; }
.cx-mod:not(.is-on) .cx-mod__settings { opacity: 0.45; pointer-events: none; }
.cx-mod__settings { display: flex; flex-direction: column; gap: 12px; }
.cx-key { min-width: 22px; height: 22px; padding: 0 6px; box-sizing: border-box; display: inline-grid; place-content: center; border-radius: 2px; background: var(--cx-fill); color: var(--cx-text-2); font-size: 0.6875rem; font-weight: 500; }
.cx-key.is-listening { color: var(--cx-text); background: var(--cx-fill-hover); }
.cx-toggle { width: 32px; height: 18px; border-radius: 2px; background: var(--cx-control-fill); position: relative; border: 0; padding: 0; cursor: pointer; transition: background var(--cx-fast) var(--cx-ease); }
.cx-toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 1px; background: #85858C; transition: transform var(--cx-fast) var(--cx-ease), background var(--cx-fast) var(--cx-ease); }
.cx-toggle[aria-checked="true"] { background: var(--cx-brushed); }
.cx-toggle[aria-checked="true"]::after { transform: translateX(14px); background: var(--cx-void); }
.cx-set { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 0.875rem; color: var(--cx-text-2); }
.cx-set__value { color: var(--cx-text); }
.cx-tick { width: 16px; height: 16px; border-radius: 2px; background: var(--cx-control-fill); display: grid; place-content: center; color: var(--cx-void); }
.cx-tick.is-on { background: var(--cx-brushed); }
.cx-gauge { height: 3px; background: #2A2A30; border-radius: 1px; position: relative; margin-top: -4px; }
.cx-gauge__fill { position: absolute; inset: 0 auto 0 0; background: var(--cx-brushed); border-radius: 1px; }
.cx-gauge__thumb { position: absolute; top: 50%; width: 4px; height: 12px; margin: -6px 0 0 -2px; background: var(--cx-brushed); border-radius: 1px; }
.cx-pick { background: var(--cx-field); border-radius: var(--cx-radius); font-size: 0.875rem; }
.cx-pick__value { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; color: var(--cx-text); }
.cx-pick__list { background: var(--cx-panel-3); border-radius: 0 0 var(--cx-radius) var(--cx-radius); padding: 4px 0; }
.cx-pick__opt { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; color: var(--cx-text-2); }
.cx-pick__opt.is-on { color: var(--cx-text); }
.cx-pick__opt:hover { background: var(--cx-fill); }

/* Embossed symbol: black on black, for hero and packaging-style moments */
.cx-emboss { color: #121215; filter: drop-shadow(0 -1px 0 rgba(255,255,255,0.06)) drop-shadow(0 1px 0 rgba(0,0,0,0.9)); }

/* =========================================================================
   Accessibility
   ========================================================================= */
.cx-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
