﻿/* =============================================================================
   CognitixERP SaaS - AdminPortal surface layer
   -----------------------------------------------------------------------------
   Loaded AFTER MudBlazor.min.css so it can refine the components the theme
   already colours. Nothing here hardcodes a colour of its own except the brand
   ramp: every surface, border and text tone is read from a --mud-palette-*
   variable, so the same rules are correct in light mode and in dark mode.
   Class names are deliberately NOT the landing page's cgx-* vocabulary
   (landing.css owns cgx-btn / cgx-brand / cgx-hero â€¦) - this file only uses
   cgx-shell / cgx-logo / cgx-pagehead / cgx-stat / cgx-panel / cgx-empty.
============================================================================= */

:root {
  --cgx-brand-1: #6a5cff;
  --cgx-brand-2: #9b5cff;
  --cgx-brand-3: #c45cff;
  --cgx-grad: linear-gradient(120deg, var(--cgx-brand-1), var(--cgx-brand-2) 55%, var(--cgx-brand-3));
  --cgx-grad-soft: linear-gradient(135deg, rgba(106, 92, 255, .12), rgba(196, 92, 255, .10));
  --cgx-radius-lg: 18px;
  --cgx-radius-md: 14px;
  --cgx-radius-pill: 999px;
  --cgx-shadow-card: 0 1px 2px rgba(22, 19, 43, .04), 0 12px 28px -20px rgba(22, 19, 43, .28);
  --cgx-shadow-lift: 0 2px 4px rgba(22, 19, 43, .05), 0 22px 44px -24px rgba(22, 19, 43, .32);
  --cgx-tap: 180ms cubic-bezier(.2, .7, .3, 1);
}

html { scroll-behavior: smooth; }

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: color-mix(in srgb, var(--mud-palette-primary) 24%, transparent);
}

/* ---- slim, theme-aware scrollbars ---------------------------------------- */
* { scrollbar-width: thin; scrollbar-color: var(--mud-palette-lines-default) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--mud-palette-lines-default);
  border: 3px solid transparent;
  border-radius: 999px;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background-color: var(--mud-palette-text-disabled); }

/* ---- keyboard focus is always visible, mouse focus never ----------------- */
:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--mud-palette-primary) 70%, transparent);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  z-index: 2000;
  padding: .6rem 1rem;
  border-radius: 10px;
  background: var(--mud-palette-primary);
  color: var(--mud-palette-primary-text);
  font-weight: 700;
  transition: top var(--cgx-tap);
}
.skip-link:focus { top: 12px; }

/* =============================================================================
   Shell: app bar
   The bar is a hairline surface, not a slab of brand colour: the console is
   read all day, and a coloured chrome steals contrast from the status chips
   that actually carry meaning.
============================================================================= */
.mud-layout.cgx-shell .mud-appbar {
  background: color-mix(in srgb, var(--mud-palette-appbar-background) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  border-bottom: 1px solid var(--mud-palette-lines-default);
  box-shadow: none;
  padding-inline: 10px 16px;
}

.cgx-brand-lockup { display: flex; align-items: center; gap: 11px; min-width: 0; }

.cgx-logo {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--cgx-grad);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1;
  box-shadow: 0 6px 16px -8px rgba(106, 92, 255, .75);
  flex: 0 0 auto;
  overflow: hidden;
}

/* An uploaded brand mark fills the same circle the letter occupied, keeping its radius and shadow, so the
   lockup does not shift when an operator brands the console. Cover rather than contain: buyers export
   squares, and a logo letterboxed into a circle looks smaller than the platform's own mark beside it. */
.cgx-logo--mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =============================================================================
   Design pass 2026-11-15 - the console and the buyer portal read as one product
   -----------------------------------------------------------------------------
   Appended after every rule above so it refines them rather than fighting them.
   The intent, in the order it shows up on screen:

     1. Chrome (app bar + drawer) gets quieter and more precise: one brand hairline
        instead of a coloured slab, and a nav item that states "you are here" twice -
        tint and rail - because the nav list is long and skimming it is the norm.
     2. The hero and the page head stop being flat blocks of brand colour: a lit
        gradient with a fine mesh keeps contrast for the status chips on top of it.
     3. Tables, chips and buttons adopt one radius language and tabular figures, so a
        column of counts lines up and nothing shifts width while it is being read.
     4. The buyer's workspace cards gained a status rail: a tenant that is setting up,
        suspended or live is legible from across the room before any words are read.

   Presentation only - no rule here changes what any page renders or which value a
   tile shows, and everything keeps working in light and dark because the palette
   variables still decide every colour but the brand ramp.
============================================================================= */

/* ---- 1. App bar: glass, and one brand hairline --------------------------- */
.mud-layout.cgx-shell .mud-appbar::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg,
      color-mix(in srgb, var(--cgx-brand-1) 55%, transparent),
      color-mix(in srgb, var(--cgx-brand-2) 35%, transparent) 38%,
      transparent 72%);
  pointer-events: none;
}

.mud-layout.cgx-shell .mud-appbar .mud-icon-button {
  border-radius: 12px;
  transition: background var(--cgx-tap), transform var(--cgx-tap);
}

@media (hover: hover) {
  .mud-layout.cgx-shell .mud-appbar .mud-icon-button:hover { transform: translateY(-1px); }
}

.cgx-bar-group { gap: 2px; }

/* The "where am I" label beside the wordmark: quiet, tabular, and separated from the brand
   by a vertical rule so it reads as context rather than as part of the product name. */
.cgx-bar-context {
  align-items: center;
  gap: 8px;
  margin-inline-start: 18px;
  padding-inline-start: 18px;
  border-inline-start: 1px solid color-mix(in srgb, var(--mud-palette-appbar-text) 24%, transparent);
  color: var(--mud-palette-text-secondary);
  font-size: .78rem;
  font-weight: 600;
  min-width: 0;
}

.cgx-bar-context .mud-icon-root { color: color-mix(in srgb, var(--cgx-brand-2) 70%, var(--mud-palette-text-secondary)); }
.cgx-bar-context__section { color: var(--mud-palette-appbar-text); font-weight: 700; letter-spacing: -.005em; }
.cgx-bar-context__sep { opacity: .45; }
.cgx-bar-context__page { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 26ch; }

/* ---- 2. Drawer: the active item says it twice ---------------------------- */
.mud-layout.cgx-shell .mud-nav-item .mud-nav-link {
  position: relative;
  margin: 1px 8px 3px;
  border-radius: 11px;
  transition: background var(--cgx-tap), color var(--cgx-tap), transform var(--cgx-tap);
}

@media (hover: hover) {
  .mud-layout.cgx-shell .mud-nav-item .mud-nav-link:hover { transform: translateX(1px); }
}

.mud-layout.cgx-shell .mud-nav-item .mud-nav-link.active {
  background:
    linear-gradient(90deg,
      color-mix(in srgb, var(--mud-palette-primary) 16%, transparent),
      color-mix(in srgb, var(--cgx-brand-2) 7%, transparent));
  font-weight: 700;
}

.mud-layout.cgx-shell .mud-nav-item .mud-nav-link.active::before {
  inset-block: 22%;
  width: 3px;
  border-radius: 3px;
  background: var(--cgx-grad);
}

.cgx-navlabel {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  letter-spacing: .1em;
}

.cgx-navlabel::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, var(--mud-palette-lines-default), transparent);
  opacity: .8;
}

/* ---- 3. Hero: a lit surface, not a flat swatch --------------------------- */
.cgx-hero-console {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, .14);
}

.cgx-hero-console::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .5;
  background-image:
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(120% 90% at 12% 0%, #000 0%, transparent 62%);
  -webkit-mask-image: radial-gradient(120% 90% at 12% 0%, #000 0%, transparent 62%);
}

.cgx-hero-console__chip {
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(6px);
  font-variant-numeric: tabular-nums;
}

/* ---- 4. Page head ------------------------------------------------------- */
.cgx-pagehead__icon {
  border: 1px solid color-mix(in srgb, var(--mud-palette-primary) 22%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
}

/* ---- 5. Tables: a header that labels, and figures that line up --------- */
.mud-table-root .mud-table-head th {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--mud-palette-text-secondary);
  background: color-mix(in srgb, var(--mud-palette-background-grey) 55%, var(--mud-palette-surface));
  white-space: nowrap;
}

.mud-table-root .mud-table-body td { font-variant-numeric: tabular-nums; }

.mud-table-root .mud-table-hover .mud-table-body tr:hover {
  background: color-mix(in srgb, var(--mud-palette-primary) 6%, transparent);
}

/* A numeric column reads as a column, not as a list of words. */
.cgx-num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---- 6. Chips, buttons, dialogs: one language -------------------------- */
.mud-chip {
  border-radius: var(--cgx-radius-pill);
  font-weight: 700;
  letter-spacing: -.005em;
}

.mud-button-root {
  font-weight: 600;
  letter-spacing: -.005em;
  transition: transform var(--cgx-tap), box-shadow var(--cgx-tap), background var(--cgx-tap);
}

/* Only the primary filled button gets the brand gradient. A filled success/error/
   warning button keeps its flat severity colour, because on this surface the colour of
   a button is a verdict and a gradient makes verdicts look decorative. */
.mud-button-root.mud-button-filled.mud-button-primary {
  background-image: linear-gradient(120deg,
      color-mix(in srgb, var(--mud-palette-primary) 86%, #ffffff 14%),
      var(--mud-palette-primary) 55%,
      color-mix(in srgb, var(--mud-palette-primary) 82%, var(--cgx-brand-3) 18%));
  box-shadow: 0 8px 20px -12px color-mix(in srgb, var(--mud-palette-primary) 90%, transparent);
}

@media (hover: hover) {
  .mud-button-root.mud-button-filled:hover { transform: translateY(-1px); }
}

.mud-dialog { border-radius: 20px; overflow: hidden; }
.mud-dialog .mud-dialog-title { font-weight: 700; letter-spacing: -.015em; }
.mud-popover { border-radius: 14px; }

/* ---- 7. Buyer portal: the workspace tile and its status rail ----------- */
.cgx-tile {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: var(--mud-palette-surface);
  border: 1px solid var(--mud-palette-lines-default);
  box-shadow: var(--cgx-shadow-card);
  transition: transform var(--cgx-tap), box-shadow var(--cgx-tap), border-color var(--cgx-tap);
}

/* The rail is the state, painted where a glance lands: brand for live, amber while the
   workspace is still being built. Colour alone never carries it - the chip beside the
   name says the same thing in words. */
.cgx-tile::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 3px;
  background: var(--cgx-grad);
}

.cgx-tile--pending::before { background: linear-gradient(180deg, #c77700, #fbbf24); }

@media (hover: hover) {
  .cgx-tile:hover {
    transform: translateY(-2px);
    box-shadow: var(--cgx-shadow-lift);
    border-color: color-mix(in srgb, var(--mud-palette-primary) 30%, var(--mud-palette-lines-default));
  }
}

.cgx-tile__label {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--mud-palette-text-secondary);
}

.cgx-tile__value {
  font-weight: 700;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}

.cgx-avatar {
  font-weight: 800;
  letter-spacing: .02em;
  border: 1px solid rgba(255, 255, 255, .35);
}

/* A list of the two-figure facts a tile answers ("Plan / Price"), so the buyer's card
   reads as a table of its own without the chrome of a MudTable. */
.cgx-factgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}

@media (max-width: 420px) {
  .cgx-factgrid { grid-template-columns: 1fr; }
}

/* ---- 8. Motion discipline ---------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .mud-layout.cgx-shell .mud-nav-item .mud-nav-link,
  .mud-button-root,
  .cgx-tile { transition: none; }

  .mud-layout.cgx-shell .mud-nav-item .mud-nav-link:hover,
  .mud-button-root.mud-button-filled:hover,
  .cgx-tile:hover,
  .mud-layout.cgx-shell .mud-appbar .mud-icon-button:hover { transform: none; }
}

/* The brand-mark row on the Settings page: the circle shown at the size it is really used at, beside the
   picker, so an operator sees the mark they are about to publish rather than a filename. */
.cgx-brandicon { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.cgx-brandicon__preview { padding-top: 2px; }
.cgx-brandicon__fields { flex: 1 1 320px; min-width: 0; }

.cgx-wordmark { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.cgx-wordmark__name { font-weight: 800; font-size: 1rem; letter-spacing: -.01em; white-space: nowrap; }
.cgx-wordmark__role {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .62;
  white-space: nowrap;
}

/* A pill of quiet surface for the bar's action buttons, so they read as one group. */
.cgx-bar-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--mud-palette-action-default) 7%, transparent);
}

.cgx-avatar { cursor: pointer; box-shadow: 0 6px 14px -8px rgba(106, 92, 255, .8); }

/* =============================================================================
   Shell: the one menu button
   Show the navigation rail, or put it out of the way. That is the whole control.

   It replaces a three-segment width bar (hidden / icons / labels). The extra
   segment was not a feature people reached for: it asked which width they wanted
   before they had said whether they wanted a menu at all, and the middle state was
   a strip whose names only came back under the pointer. The glyph still changes
   with the state - MenuOpen while the rail is up, Menu while it is away - because
   the arrow pointing left is what says "this press takes it away", and the pressed
   tint says the same thing without needing the glyph read.
============================================================================= */
.cgx-railtoggle.mud-icon-button {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  margin-inline-start: 2px;
  border-radius: 12px;
  color: var(--mud-palette-appbar-text);
  transition: background var(--cgx-tap), color var(--cgx-tap), transform var(--cgx-tap);
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
  .cgx-railtoggle.mud-icon-button:hover {
    background: color-mix(in srgb, var(--mud-palette-appbar-text) 12%, transparent);
    transform: translateY(-1px);
  }
}

/* The rail is up: the button carries the brand tint, so the state is legible without
   reading the glyph - and without a filled block that would compete with it. */
.cgx-railtoggle[data-cgx-rail="open"] {
  background: color-mix(in srgb, var(--cgx-brand-1) 26%, transparent);
  color: var(--mud-palette-appbar-text);
}

/* The profile menu's activator is an icon-button carrying the avatar (ERP bell pattern): strip the button's
   own padding so the bar keeps its height and the avatar keeps its glow. */
.cgx-avatar-btn.mud-icon-button { padding: 2px; }
.cgx-avatar-btn .cgx-avatar { cursor: pointer; }

/* The account menu's header line, above the divider. */
.cgx-menu-head { display: flex; flex-direction: column; padding: 8px 14px 4px; }
.cgx-menu-head .mud-typography-caption { opacity: .65; }

/* A destructive entry in that menu. MudMenuItem has no Color parameter - the analyzer refuses one - so
   the danger tone is a class the palette colours. Two selectors deep, which is what it takes to
   out-specify MudBlazor's own .mud-menu-item rule without reaching for !important. */
.mud-menu-list .cgx-menuitem-danger { color: var(--mud-palette-error); }
.mud-menu-list .cgx-menuitem-danger .mud-icon-root { color: var(--mud-palette-error); }

/* =============================================================================
   Shell: drawer navigation
   The active route gets a tinted pill with a brand edge, which is legible at a
   glance and does not rely on the icon alone.
============================================================================= */
.mud-layout.cgx-shell .mud-drawer {
  border-right: 1px solid var(--mud-palette-lines-default);
  background: var(--mud-palette-drawer-background);
  box-shadow: none;
}

.cgx-navlabel {
  padding: 18px 20px 6px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--mud-palette-drawer-text) 55%, transparent);
}

.mud-layout.cgx-shell .mud-nav-item .mud-nav-link {
  position: relative;
  margin: 2px 12px;
  padding: 9px 14px;
  border-radius: 11px;
  color: var(--mud-palette-drawer-text);
  font-weight: 500;
  transition: background var(--cgx-tap), color var(--cgx-tap);
}

.mud-layout.cgx-shell .mud-nav-item .mud-nav-link .mud-nav-link-text { font-size: .875rem; }

.mud-layout.cgx-shell .mud-nav-item .mud-nav-link:hover {
  background: color-mix(in srgb, var(--mud-palette-primary) 9%, transparent);
}

.mud-layout.cgx-shell .mud-nav-item .mud-nav-link.active {
  background: color-mix(in srgb, var(--mud-palette-primary) 13%, transparent);
  color: var(--mud-palette-primary-darken);
  font-weight: 700;
}

.mud-layout.cgx-shell .mud-nav-item .mud-nav-link.active::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 22%;
  bottom: 22%;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--cgx-grad);
}

.mud-layout.cgx-shell .mud-nav-item .mud-nav-link.active .mud-icon-root {
  color: var(--mud-palette-primary);
}

.cgx-drawer-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: auto 12px 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--cgx-grad-soft);
  border: 1px solid color-mix(in srgb, var(--mud-palette-primary) 16%, transparent);
}

.cgx-drawer-foot__label { font-size: .72rem; font-weight: 700; line-height: 1.25; }
.cgx-drawer-foot__value { font-size: .68rem; opacity: .65; line-height: 1.3; }

/* The rail is a flex column so the "self-hosted" card rests at the bottom even when the
   nav is short, and a long nav scrolls inside the rail instead of pushing it off-screen. */
.mud-layout.cgx-shell .mud-drawer { display: flex; flex-direction: column; }
.mud-layout.cgx-shell .mud-nav-menu { flex: 1 1 auto; overflow-y: auto; }
.cgx-drawer-foot { flex: 0 0 auto; }

/* Nav-drawer build identity - the ERP drawer's product-version line, same idea: Directory.Build.props
   values read from the assembly, so "which build is this?" is one glance at the rail's foot (dark+light). */
.cgx-drawer-version {
  flex: 0 0 auto;
  margin: 0 12px 14px;
  padding-top: .65rem;
  border-top: 1px solid color-mix(in srgb, var(--mud-palette-primary) 16%, transparent);
  font-size: .68rem;
  text-align: center;
  letter-spacing: .02em;
  color: var(--cgx-text-secondary, rgba(128, 128, 128, 0.85));
}
.cgx-drawer-version__name { font-weight: 700; }
.cgx-drawer-version__company { opacity: .65; }

/* =============================================================================
   Shell: content area
   A tinted wash behind the pages gives the cards something to float on; the
   console was previously flat white-on-white. It sits on <main>, so the drawer
   and the bar keep their own clean surfaces.
============================================================================= */
.mud-layout.cgx-shell .mud-main-content { position: relative; }

.mud-layout.cgx-shell .mud-main-content::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 340px;
  pointer-events: none;
  background:
    radial-gradient(70% 100% at 85% 0%, rgba(196, 92, 255, .13), transparent 62%),
    radial-gradient(60% 90% at 8% 0%, rgba(106, 92, 255, .14), transparent 60%);
}

.cgx-content { position: relative; padding: 26px 22px 56px; }

/* =============================================================================
   Long forms (the settings page): a jump rail, section cards, a pinned save bar
   One settings row with a single Save at the bottom of ten screens of fields is
   easy to leave half-edited, so the page lets you jump, and never hides the Save.
============================================================================= */
.cgx-setnav {
  position: sticky;
  top: var(--mud-appbar-height, 64px);
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
  padding: 8px;
  border: 1px solid var(--mud-palette-lines-default);
  border-radius: var(--cgx-radius-pill);
  background: color-mix(in srgb, var(--mud-palette-surface) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cgx-setnav a {
  padding: 6px 14px;
  border-radius: var(--cgx-radius-pill);
  font-size: .84rem;
  font-weight: 600;
  color: var(--mud-palette-text-secondary);
  transition: background var(--cgx-tap), color var(--cgx-tap);
}

.cgx-setnav a:hover {
  background: color-mix(in srgb, var(--mud-palette-primary) 10%, transparent);
  color: var(--mud-palette-primary-darken);
}

/* An anchored section must stop below the sticky bar, not underneath it. */
.cgx-set-anchor { scroll-margin-top: calc(var(--mud-appbar-height, 64px) + 76px); }

.cgx-set { padding: 22px 24px 24px; }

.cgx-set__hint {
  font-size: .875rem;
  line-height: 1.6;
  color: var(--mud-palette-text-secondary);
  margin-top: 4px;
}
.cgx-set__hint code { font-size: .8125rem; }

/* A sub-group label inside a section: "Selling" and "Building the workspace" decide different things. */
.cgx-set__group {
  display: block;
  margin: 26px 0 10px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mud-palette-text-secondary);
}

/* A switch lined up with the outlined fields beside it, so a row reads as one row. */
.cgx-set__switch { display: flex; align-items: center; min-height: 56px; }

.cgx-savebar {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
  padding: 12px 16px;
  border: 1px solid color-mix(in srgb, var(--mud-palette-primary) 20%, var(--mud-palette-lines-default));
  border-radius: var(--cgx-radius-lg);
  background: color-mix(in srgb, var(--mud-palette-surface) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--cgx-shadow-card);
}

.cgx-savebar__status { display: flex; align-items: center; gap: 9px; min-width: 0; }
.cgx-savebar__actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }

/* =============================================================================
   Page header
============================================================================= */
.cgx-pagehead {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}

.cgx-pagehead__leading { display: flex; align-items: center; }

.cgx-pagehead__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: var(--cgx-grad);
  color: #fff;
  box-shadow: 0 10px 24px -14px rgba(106, 92, 255, .9);
  flex: 0 0 auto;
}

.cgx-pagehead__body { flex: 1 1 260px; min-width: 0; }
.cgx-pagehead__title { margin: 0; font-weight: 800; letter-spacing: -.02em; }

.cgx-pagehead__sub {
  margin: 4px 0 0;
  font-size: .875rem;
  color: var(--mud-palette-text-secondary);
  max-width: 76ch;
}

.cgx-pagehead__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-inline-start: auto; }

/* The explainer block a page already carried (safety notes, state machines). It stays on screen -
   a brand rail and a muted panel make it readable furniture instead of a wall of loose text. */
.cgx-lede {
  position: relative;
  border: 1px solid var(--mud-palette-lines-default);
  border-inline-start: 3px solid transparent;
  border-radius: var(--cgx-radius-md);
  background: color-mix(in srgb, var(--mud-palette-primary) 4%, var(--mud-palette-surface));
  padding: 14px 16px;
  margin-bottom: 18px;
  font-size: .875rem;
  line-height: 1.6;
  color: var(--mud-palette-text-secondary);
}

.cgx-lede strong { color: var(--mud-palette-text-primary); }
.cgx-lede code { font-size: .8125rem; }

/* =============================================================================
   Panels & cards
============================================================================= */
.mud-card {
  border: 1px solid var(--mud-palette-lines-default);
  border-radius: var(--cgx-radius-lg) !important;
  box-shadow: var(--cgx-shadow-card);
  transition: box-shadow var(--cgx-tap), transform var(--cgx-tap), border-color var(--cgx-tap);
}

/* Every MudPaper - the filter blocks, the funnel panel, the detail cards - is a surface with a
   hairline edge now. This one rule is what makes the console read as cards on a page instead of
   loose controls, across screens that were not individually edited. */
.mud-paper {
  border: 1px solid var(--mud-palette-lines-default);
  border-radius: var(--cgx-radius-lg);
  background-color: var(--mud-palette-surface);
}

/* A paper inside a paper (menu popover, dialog sheet, typeahead list) keeps only one edge. */
.mud-paper .mud-paper,
.mud-dialog .mud-paper,
.mud-menu-list .mud-paper { border: 0; box-shadow: none; }

.cgx-panel {
  border: 1px solid var(--mud-palette-lines-default);
  border-radius: var(--cgx-radius-lg);
  background: var(--mud-palette-background-gray);
  box-shadow: var(--cgx-shadow-card);
}

/* A tile that shares a MudGrid row fills its cell, so a short panel and a tall one end level.
   Its own class rather than a framework utility, so it does not depend on which utilities the
   MudBlazor build happens to ship. */
.cgx-panel-fill { height: 100%; }

.mud-card-header { padding: 14px 18px 0; }
.mud-card-content { padding: 16px 18px 18px; }
.mud-card-actions { padding: 10px 14px 14px; gap: 8px; }

/* =============================================================================
   KPI tiles
============================================================================= */
.cgx-stat {
  position: relative;
  overflow: hidden;
  height: 100%;
  border: 1px solid var(--mud-palette-lines-default);
  border-radius: var(--cgx-radius-lg);
  background: var(--mud-palette-surface);
  box-shadow: var(--cgx-shadow-card);
  padding: 16px 18px;
  transition: box-shadow var(--cgx-tap), transform var(--cgx-tap);
}

.cgx-stat::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: var(--cgx-grad);
  opacity: 0;
  transition: opacity var(--cgx-tap);
}

.cgx-stat:hover { box-shadow: var(--cgx-shadow-lift); transform: translateY(-2px); }
.cgx-stat:hover::after { opacity: 1; }

.cgx-stat__top { display: flex; align-items: center; gap: 10px; }

.cgx-stat__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--mud-palette-primary) 12%, transparent);
  color: var(--mud-palette-primary);
  flex: 0 0 auto;
}

.cgx-stat--success .cgx-stat__icon { background: color-mix(in srgb, var(--mud-palette-success) 13%, transparent); color: var(--mud-palette-success); }
.cgx-stat--warning .cgx-stat__icon { background: color-mix(in srgb, var(--mud-palette-warning) 14%, transparent); color: var(--mud-palette-warning); }
.cgx-stat--error .cgx-stat__icon { background: color-mix(in srgb, var(--mud-palette-error) 13%, transparent); color: var(--mud-palette-error); }
.cgx-stat--info .cgx-stat__icon { background: color-mix(in srgb, var(--mud-palette-info) 13%, transparent); color: var(--mud-palette-info); }

.cgx-stat__label {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--mud-palette-text-secondary);
}

.cgx-stat__value {
  margin-top: 6px;
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.025em;
  font-variant-numeric: tabular-nums;
}

.cgx-stat__note { margin-top: 4px; font-size: .78rem; color: var(--mud-palette-text-secondary); }
.cgx-stat__list { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--mud-palette-lines-default); }

/* =============================================================================
   Status chips - soft tint reads faster than a solid block of colour
============================================================================= */
.mud-chip {
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .01em;
}

.mud-chip.mud-chip-size-small { font-size: .72rem; padding: 2px 10px; height: auto; }

.mud-chip.mud-chip-outlined.mud-chip-color-default,
.mud-chip.mud-chip-filled.mud-chip-color-default {
  background: color-mix(in srgb, var(--mud-palette-action-default) 9%, transparent);
  color: var(--mud-palette-text-primary);
  border-color: transparent;
}

/* =============================================================================
   Buttons
============================================================================= */
.mud-button-root.mud-button-filled {
  border-radius: 11px;
  box-shadow: 0 8px 18px -12px color-mix(in srgb, var(--mud-palette-primary) 90%, transparent);
  transition: transform var(--cgx-tap), box-shadow var(--cgx-tap), filter var(--cgx-tap);
}

.mud-button-root.mud-button-filled:hover { transform: translateY(-1px); filter: saturate(1.1); }
.mud-button-root.mud-button-outlined, .mud-button-root.mud-button-text { border-radius: 11px; }

.mud-button-root.mud-button-outlined {
  border-color: color-mix(in srgb, var(--mud-palette-action-default) 26%, transparent);
  font-weight: 700;
}

/* =============================================================================
   Tables
============================================================================= */
.mud-table-wrapper { border-radius: var(--cgx-radius-lg); }

.mud-table {
  border: 1px solid var(--mud-palette-lines-default);
  border-radius: var(--cgx-radius-lg);
  overflow: hidden;
  font-size: .875rem;
}

.mud-table thead th, .mud-table .mud-table-head th {
  background: color-mix(in srgb, var(--mud-palette-background-gray) 70%, var(--mud-palette-surface));
  color: var(--mud-palette-text-secondary);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 1px solid var(--mud-palette-table-lines);
}

.mud-table .mud-table-cell { border-bottom: 1px solid var(--mud-palette-table-lines); }
.mud-table tbody tr { transition: background 120ms linear; }
.mud-table-hover tbody tr:hover { background: var(--mud-palette-table-hover); }

.mud-table-bordered .mud-table-cell { border-inline-start: 0; }
.mud-table tfoot td, .mud-table-pagination-actions .mud-button-root { border-radius: 9px; }

/* =============================================================================
   Inputs
============================================================================= */
.mud-input-control .mud-input.mud-input-outlined { border-radius: var(--cgx-radius-md); }
.mud-input-control .mud-input.mud-input-filled { border-radius: var(--cgx-radius-md) var(--cgx-radius-md) 0 0; }

.mud-input-outlined-with-label:not(.mud-input-outlined-focus):hover,
.mud-input-outlined:not(.mud-input-outlined-focus):hover {
  border-color: color-mix(in srgb, var(--mud-palette-primary) 45%, var(--mud-palette-lines-inputs));
}

.mud-input-label { font-size: .8125rem; font-weight: 600; }
.mud-input-helper-text { font-size: .75rem; }

/* =============================================================================
   Alerts, dialogs, tabs, lists
============================================================================= */
.mud-alert {
  border-radius: var(--cgx-radius-md);
  border: 1px solid transparent;
  font-size: .875rem;
}

.mud-dialog .mud-paper { border-radius: 20px; box-shadow: 0 40px 80px -40px rgba(15, 12, 41, .55); }
.mud-dialog-title { font-weight: 800; letter-spacing: -.01em; padding: 20px 22px 4px; }
.mud-dialog-content { padding: 12px 22px 18px; }
.mud-dialog-actions { padding: 12px 18px 18px; gap: 8px; }

.mud-tabs-panels { padding-top: 16px; }
.mud-tab { font-weight: 700; text-transform: none; letter-spacing: 0; border-radius: 10px 10px 0 0; }

.mud-list { border-radius: var(--cgx-radius-md); }
.mud-list-item { border-radius: 10px; }

.mud-tooltip { border-radius: 10px; font-weight: 500; }

.mud-progress-linear { border-radius: 999px; }
.mud-progress-linear .mud-progress-linear-bars { border-radius: 999px; }

/* =============================================================================
   Empty / loading states
============================================================================= */
.cgx-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 40px 22px;
  text-align: center;
}

.cgx-empty__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 6px;
  border-radius: 18px;
  background: var(--cgx-grad-soft);
  color: var(--mud-palette-primary);
}

.cgx-empty__title { font-size: 1rem; font-weight: 700; }
.cgx-empty__text { font-size: .875rem; color: var(--mud-palette-text-secondary); max-width: 52ch; }
.cgx-empty__actions { margin-top: 12px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* =============================================================================
   Buyer portal bar (checkout, account, handoff, legal - pages outside MainLayout)
============================================================================= */
.cgx-portalbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px 0;
}

.cgx-portalbar__brand { display: flex; align-items: center; gap: 11px; }
.cgx-portalbar__brand .cgx-wordmark__name,
.cgx-portalbar__brand .cgx-wordmark__role { color: var(--mud-palette-text-primary); }
.cgx-portalbar__trailing { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }

/* =============================================================================
   Buyer portal nav - Account / Billing / Security on one rail
   The buyer pages sit outside MainLayout, so they have no drawer to say where
   they are. Without this rail the three screens of one account are three
   separate URLs the customer has to remember.
============================================================================= */
.cgx-portalnav {
  position: sticky;
  top: 0;
  z-index: 20;
  margin-top: 14px;
  border-block: 1px solid var(--mud-palette-lines-default);
  background: color-mix(in srgb, var(--mud-palette-surface) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cgx-portalnav__inner {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-block: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.cgx-portalnav__inner::-webkit-scrollbar { display: none; }
.cgx-portalnav__grow { flex: 1 1 auto; }
.cgx-portalnav__trailing { display: flex; align-items: center; gap: 8px; padding-inline-start: 8px; }

.cgx-portalnav__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--cgx-radius-pill);
  font-size: .86rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--mud-palette-text-secondary);
  text-decoration: none;
  transition: background var(--cgx-tap), color var(--cgx-tap);
}

.cgx-portalnav__item:hover {
  color: var(--mud-palette-text-primary);
  background: color-mix(in srgb, var(--mud-palette-primary) 9%, transparent);
}

/* The current section wears the ramp, so "where am I" is answered without reading the URL. */
.cgx-portalnav__item--active {
  color: #fff;
  background: var(--cgx-grad);
  box-shadow: 0 8px 18px -12px color-mix(in srgb, var(--mud-palette-primary) 90%, transparent);
}

.cgx-portalnav__item--active:hover { color: #fff; }

@media (max-width: 600px) {
  .cgx-portalnav__item span { display: none; }
  .cgx-portalnav__item { padding: 9px 13px; }
}

/* =============================================================================
   Auth screens (login, MFA) - the same brand wash, centred
============================================================================= */
.cgx-auth {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 20px;
  background:
    radial-gradient(60% 60% at 85% 5%, rgba(196, 92, 255, .22), transparent 60%),
    radial-gradient(55% 55% at 8% 20%, rgba(106, 92, 255, .20), transparent 58%),
    var(--mud-palette-background);
}

.cgx-auth__card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  padding: 34px 32px 30px;
  border: 1px solid var(--mud-palette-lines-default);
  border-radius: 22px;
  background: var(--mud-palette-surface);
  box-shadow: 0 30px 70px -34px rgba(22, 19, 43, .45);
}

.cgx-auth__head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }

/* The two doors under the sign-in form: the public site and the buyer portal. */
.cgx-auth__foot {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--mud-palette-divider-light);
}

/* A one-time code reads as a block of digits, not as prose. */
.cgx-code .mud-input-control,
.cgx-code input { letter-spacing: .32em; font-weight: 700; }

/* =============================================================================
   Buyer sign-in surface (TenantLayout, no session)
   The same brand wash as the operator's auth screen, but a shell rather than a card: the buyer page inside
   brings its own paper. Nothing of the account area is drawn around it - no drawer, no account menu - so a
   visitor without a session cannot see the layout of somebody's dashboard.
============================================================================= */
.cgx-buyer-auth {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(60% 60% at 85% 5%, rgba(196, 92, 255, .22), transparent 60%),
    radial-gradient(55% 55% at 8% 20%, rgba(106, 92, 255, .20), transparent 58%),
    var(--mud-palette-background);
}

.cgx-buyer-auth__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--mud-palette-divider-light);
}

.cgx-buyer-auth__body {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 40px;
}

/* The page inside is a MudContainer, which sets its own max-width; it only needs the full width to sit in. */
.cgx-buyer-auth__body > * { width: 100%; }

.cgx-buyer-auth__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  padding: 16px 22px 26px;
  border-top: 1px solid var(--mud-palette-divider-light);
}

@media (max-width: 600px) {
  .cgx-buyer-auth__bar { padding: 10px 14px; }
  .cgx-buyer-auth__body { padding: 16px 12px 28px; }
}

/* =============================================================================
   Checkout: the buyer's own progress
   The stepper is drawn from the wizard's step counter and the journey panel from the order's own status -
   neither one guesses. Labels stay readable on a phone because a numbered dot without a name answers nothing.
============================================================================= */
.cgx-stepper { display: flex; margin: 0 0 26px; }

.cgx-stepper__item {
  position: relative;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
}

/* The connector belongs to the segment BEHIND each dot, so it is coloured when the step before it is done. */
.cgx-stepper__item:not(:first-child)::before {
  content: "";
  position: absolute;
  top: 15px;
  right: 50%;
  width: 100%;
  height: 2px;
  background: var(--mud-palette-lines-default);
}

.cgx-stepper__item--done::before,
.cgx-stepper__item--active::before { background: color-mix(in srgb, var(--mud-palette-primary) 55%, transparent); }

.cgx-stepper__dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--cgx-radius-pill);
  border: 2px solid var(--mud-palette-lines-default);
  background: var(--mud-palette-surface);
  color: var(--mud-palette-text-secondary);
  font-size: .78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: background var(--cgx-tap), border-color var(--cgx-tap), color var(--cgx-tap), box-shadow var(--cgx-tap);
}

.cgx-stepper__item--done .cgx-stepper__dot { border-color: transparent; background: var(--cgx-grad); color: #fff; }

.cgx-stepper__item--active .cgx-stepper__dot {
  border-color: var(--mud-palette-primary);
  color: var(--mud-palette-primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--mud-palette-primary) 16%, transparent);
}

.cgx-stepper__label { font-size: .76rem; font-weight: 600; line-height: 1.25; color: var(--mud-palette-text-secondary); }
.cgx-stepper__item--active .cgx-stepper__label,
.cgx-stepper__item--done .cgx-stepper__label { color: var(--mud-palette-text-primary); }

@media (max-width: 600px) {
  .cgx-stepper__dot { width: 27px; height: 27px; font-size: .7rem; }
  .cgx-stepper__item:not(:first-child)::before { top: 13px; }
  .cgx-stepper__label { font-size: .64rem; }
}

/* ---- the provisioning journey ------------------------------------------------ */
.cgx-journey {
  padding: 20px 20px 16px;
  border: 1px solid var(--mud-palette-lines-default);
  border-radius: var(--cgx-radius-lg);
  background: var(--mud-palette-surface);
  box-shadow: var(--cgx-shadow-card);
}

.cgx-journey--building { border-color: color-mix(in srgb, var(--mud-palette-primary) 34%, transparent); }
.cgx-journey--ready { border-color: color-mix(in srgb, var(--mud-palette-success) 38%, transparent); }
.cgx-journey--attention { border-color: color-mix(in srgb, var(--mud-palette-warning) 42%, transparent); }

.cgx-journey__head { display: flex; align-items: center; gap: 14px; }

.cgx-journey__badge {
  display: grid;
  place-items: center;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: var(--cgx-radius-pill);
  background: var(--cgx-grad-soft);
}

.cgx-journey--ready .cgx-journey__badge { background: color-mix(in srgb, var(--mud-palette-success) 14%, transparent); }
.cgx-journey--attention .cgx-journey__badge { background: color-mix(in srgb, var(--mud-palette-warning) 14%, transparent); }
.cgx-journey__titles { min-width: 0; }
.cgx-journey__title { margin-bottom: 2px; }

.cgx-journey__ring {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid color-mix(in srgb, var(--mud-palette-primary) 22%, transparent);
  border-top-color: var(--mud-palette-primary);
  animation: cgx-spin 1s linear infinite;
}

@keyframes cgx-spin { to { transform: rotate(360deg); } }

/* An indeterminate bar, not a fake percentage: the control plane reports no sub-step progress, and a number
   that was never measured is worse than no number at all. */
.cgx-journey__bar {
  position: relative;
  overflow: hidden;
  height: 6px;
  margin: 16px 0 4px;
  border-radius: var(--cgx-radius-pill);
  background: color-mix(in srgb, var(--mud-palette-primary) 12%, transparent);
}

.cgx-journey__bar > span {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -35%;
  width: 35%;
  border-radius: inherit;
  background: var(--cgx-grad);
  animation: cgx-slide 1.7s cubic-bezier(.5, 0, .5, 1) infinite;
}

@keyframes cgx-slide { from { left: -35%; } to { left: 100%; } }

.cgx-journey__steps { list-style: none; margin: 14px 0 0; padding: 0; }

.cgx-journey__step { position: relative; display: flex; gap: 12px; padding: 8px 0; }

.cgx-journey__step:not(:first-child)::before {
  content: "";
  position: absolute;
  left: 10px;
  top: -9px;
  width: 2px;
  height: 17px;
  background: var(--mud-palette-lines-default);
}

.cgx-journey__step--done::before,
.cgx-journey__step--active::before { background: color-mix(in srgb, var(--mud-palette-primary) 45%, transparent); }

.cgx-journey__marker { display: grid; place-items: center; flex: 0 0 22px; width: 22px; height: 22px; }
.cgx-journey__step--done .cgx-journey__marker { color: var(--mud-palette-success); }
.cgx-journey__step--active .cgx-journey__marker { color: var(--mud-palette-primary); }
.cgx-journey__step--todo .cgx-journey__marker { color: var(--mud-palette-text-disabled); }
.cgx-journey__step--attention .cgx-journey__marker { color: var(--mud-palette-warning); }

.cgx-journey__pulse {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--mud-palette-primary);
  animation: cgx-pulse 1.5s ease-in-out infinite;
}

@keyframes cgx-pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--mud-palette-primary) 42%, transparent); }
  60% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--mud-palette-primary) 0%, transparent); }
}

.cgx-journey__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cgx-journey__label { font-size: .88rem; font-weight: 600; }
.cgx-journey__step--todo .cgx-journey__label { font-weight: 500; color: var(--mud-palette-text-secondary); }
.cgx-journey__hint { font-size: .78rem; color: var(--mud-palette-text-secondary); }
.cgx-journey__step--todo .cgx-journey__hint { color: var(--mud-palette-text-disabled); }

.cgx-journey__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--mud-palette-divider-light);
}

.cgx-journey__live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--mud-palette-success);
}

.cgx-journey__live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mud-palette-success);
  animation: cgx-blink 1.6s ease-in-out infinite;
}

@keyframes cgx-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* Said in grey with a pause mark, never in green: this is the page admitting it stopped listening. */
.cgx-journey__paused {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .74rem;
  font-weight: 600;
  color: var(--mud-palette-text-secondary);
}

/* The check that draws itself. The journey panel's ready state and the success modal share one mark so the two
   cannot read as different products. */
.cgx-check { width: 40px; height: 40px; color: var(--mud-palette-success); }

.cgx-check__circle {
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: cgx-draw 700ms cubic-bezier(.2, .7, .3, 1) forwards;
}

.cgx-check__mark {
  stroke: currentColor;
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: cgx-draw 360ms 460ms ease-out forwards;
}

@keyframes cgx-draw { to { stroke-dashoffset: 0; } }

/* The order's own facts, restyled from a dense admin table into a definition list a buyer can scan. */
.cgx-facts {
  display: grid;
  grid-template-columns: minmax(88px, 34%) 1fr;
  gap: 9px 14px;
  margin: 0 0 18px;
  font-size: .88rem;
}

.cgx-facts dt { font-size: .78rem; color: var(--mud-palette-text-secondary); }
.cgx-facts dd { margin: 0; word-break: break-word; font-variant-numeric: tabular-nums; }

/* The two doors a buyer is waiting at, drawn as two named rows instead of one paragraph that had to be read
   twice to find out which secret opened what. */
.cgx-doors {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid var(--mud-palette-lines-default);
  border-radius: var(--cgx-radius-md);
  background: var(--mud-palette-background-gray);
}

.cgx-doors__item { display: flex; align-items: flex-start; gap: 10px; font-size: .82rem; line-height: 1.5; color: var(--mud-palette-text-secondary); }
.cgx-doors__item .mud-icon-root { flex: 0 0 auto; color: var(--mud-palette-primary); }
.cgx-doors__item strong { color: var(--mud-palette-text-primary); }

/* A labelled group inside the signup form. Billing details, the new account sign-in and anything else that is
   one decision rather than one field read better inside a box than as a caption floating above a field. */
.cgx-fieldset {
  padding: 14px 16px 12px;
  border: 1px solid var(--mud-palette-lines-default);
  border-radius: var(--cgx-radius-md);
  background: var(--mud-palette-background-gray);
}

.cgx-fieldset > .mud-text:first-child { color: var(--mud-palette-text-primary); }

/* The support desk, both sides (Ops Phase 21). A ticket row is a button-shaped thing the buyer can aim at on a
   phone, and a message is a bubble whose colour says who spoke - the two facts a support thread has to show
   without making anyone read the fine print. */
.cgx-ticket {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  padding: 14px 16px;
  border: 1px solid var(--mud-palette-lines-default);
  border-radius: var(--cgx-radius-lg);
  background: var(--mud-palette-surface);
  box-shadow: var(--cgx-shadow-card);
  cursor: pointer;
  transition: border-color var(--cgx-tap), box-shadow var(--cgx-tap), transform var(--cgx-tap);
}

@media (hover: hover) {
  .cgx-ticket:hover { border-color: color-mix(in srgb, var(--mud-palette-primary) 40%, transparent); box-shadow: var(--cgx-shadow-lift); transform: translateY(-1px); }
}

.cgx-ticket__main { min-width: 0; }
.cgx-ticket__side { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }

.cgx-thread { display: grid; gap: 10px; }

.cgx-message {
  padding: 12px 14px;
  border-radius: var(--cgx-radius-md);
  border: 1px solid var(--mud-palette-lines-default);
  background: var(--mud-palette-background-gray);
  border-left-width: 3px;
}

.cgx-message__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.cgx-message__body { white-space: pre-wrap; word-break: break-word; }

.cgx-message--buyer { border-left-color: var(--mud-palette-primary); }
.cgx-message--operator { border-left-color: var(--mud-palette-success); background: color-mix(in srgb, var(--mud-palette-success) 6%, var(--mud-palette-surface)); }
.cgx-message--system { border-left-color: var(--mud-palette-lines-default); opacity: .9; }

/* Files on a thread (Ops Phase 22). A chip, not a table: an attachment is read as "there is a thing here",
   and the name and size are the only two facts needed before deciding to open it. */
.cgx-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.cgx-file {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  padding: 5px 10px;
  border: 1px solid var(--mud-palette-lines-default);
  border-radius: var(--cgx-radius-pill);
  background: var(--mud-palette-surface);
  color: var(--mud-palette-text-primary);
  font: inherit;
  font-size: .78rem;
  cursor: pointer;
  transition: border-color var(--cgx-tap), background var(--cgx-tap);
}

button.cgx-file:hover { border-color: var(--mud-palette-primary); background: color-mix(in srgb, var(--mud-palette-primary) 7%, var(--mud-palette-surface)); }

.cgx-file .mud-icon-root { color: var(--mud-palette-primary); flex: 0 0 auto; }
.cgx-file__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.cgx-file__size, .cgx-file__by { color: var(--mud-palette-text-secondary); font-size: .7rem; white-space: nowrap; }

.cgx-file--pending { cursor: default; background: var(--mud-palette-background-gray); }
.cgx-file__remove {
  border: 0;
  background: transparent;
  color: var(--mud-palette-text-secondary);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}
.cgx-file__remove:hover { color: var(--mud-palette-error); }

/* The picker is deliberately plain: a styled fake button that hides the real input is how a buyer ends up
   attaching the wrong file and only finding out after sending. */
.cgx-picker { display: flex; flex-direction: column; gap: 4px; }
.cgx-picker__input { font-size: .8rem; }


@media (max-width: 600px) {
  .cgx-ticket { flex-direction: column; align-items: flex-start; gap: 10px; }
  .cgx-ticket__side { flex-direction: row; align-items: center; align-self: flex-end; }
}

/* The account home's hero: the buyer, their address and their standing, on the brand band - the same
   band the dashboards use, so the account area reads as one product. Text on it is always white; what
   changes between light and dark is the page behind it, not this card. */
.cgx-acct-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--cgx-radius-lg);
  background:
    radial-gradient(120% 180% at 100% -20%, color-mix(in srgb, var(--cgx-brand-3) 60%, transparent), transparent 62%),
    linear-gradient(118deg, color-mix(in srgb, var(--cgx-brand-1) 90%, #080718), color-mix(in srgb, var(--cgx-brand-2) 85%, #080718));
  box-shadow: var(--cgx-shadow-lift);
  color: #fff;
}

.cgx-acct-hero > * { position: relative; }

.cgx-acct-hero__sub { color: rgba(255, 255, 255, .78); }

/* The outlined button on the band reads white-on-transparent, like the dashboard hero's actions. */
.cgx-acct-hero .mud-button-root.mud-button-outlined {
  border-color: rgba(255, 255, 255, .38);
  color: #fff;
}

/* A verify / re-consent strip inside the hero: glass surface, filled button goes white so it never
   competes with the ramp. */
.cgx-acct-hero__verify {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--cgx-radius-md);
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .12);
}

.cgx-acct-hero .cgx-acct-hero__verify .mud-button-root.mud-button-filled {
  background: #fff;
  color: var(--mud-palette-black);
  box-shadow: none;
}

@media (max-width: 600px) {
  .cgx-acct-hero__verify .mud-button-root { flex: 1 1 auto; justify-content: center; }
}

/* A workspace the buyer owns, with the facts that prove it. The card reads left to right: what it is, what it
   cost, when it bills - and the door on the right edge, which is the only action they came for. */
.cgx-workspace {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding: 16px 18px;
  border: 1px solid var(--mud-palette-lines-default);
  border-radius: var(--cgx-radius-lg);
  background: var(--mud-palette-surface);
  box-shadow: var(--cgx-shadow-card);
  transition: border-color var(--cgx-tap), box-shadow var(--cgx-tap);
}

@media (hover: hover) {
  .cgx-workspace:hover { border-color: color-mix(in srgb, var(--mud-palette-primary) 34%, transparent); box-shadow: var(--cgx-shadow-lift); }
}

.cgx-workspace__body { min-width: 0; flex: 1 1 auto; }
.cgx-workspace__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cgx-workspace__action { flex: 0 0 auto; text-align: right; }

.cgx-workspace__role {
  padding: 2px 9px;
  border-radius: var(--cgx-radius-pill);
  background: color-mix(in srgb, var(--mud-palette-primary) 12%, transparent);
  color: var(--mud-palette-primary);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.cgx-workspace__facts { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px; font-size: .8rem; color: var(--mud-palette-text-secondary); }
.cgx-workspace__facts strong { color: var(--mud-palette-text-primary); }

@media (max-width: 600px) {
  .cgx-workspace { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px; }
  .cgx-workspace__action { text-align: left; }
}

/* ---- plan cards (the step a buyer actually decides on) ---------------------
   The price is the loudest thing on the card, a chosen plan is recognisable from across the room, and the
   button sits at the bottom so two cards of different description length still end level. */
.cgx-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding: 22px 22px 20px;
  border: 1px solid var(--mud-palette-lines-default);
  border-radius: var(--cgx-radius-lg);
  background: var(--mud-palette-surface);
  box-shadow: var(--cgx-shadow-card);
  transition: border-color var(--cgx-tap), box-shadow var(--cgx-tap), transform var(--cgx-tap);
}

@media (hover: hover) {
  .cgx-plan:hover { box-shadow: var(--cgx-shadow-lift); transform: translateY(-2px); }
}

.cgx-plan--chosen {
  border-color: var(--mud-palette-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--mud-palette-primary) 18%, transparent), var(--cgx-shadow-lift);
}

.cgx-plan__flag {
  position: absolute;
  top: -11px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 11px;
  border-radius: var(--cgx-radius-pill);
  background: var(--cgx-grad);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.cgx-plan__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cgx-plan__price { text-align: right; }
.cgx-plan__amount { display: block; font-size: 1.28rem; font-weight: 700; line-height: 1.15; color: var(--mud-palette-primary); }
.cgx-plan__cycle { display: block; font-size: .7rem; color: var(--mud-palette-text-secondary); }
/* Plan campaign on the /start cards: a green badge, the struck list price and the campaign price. */
.cgx-plan__sale {
  display: inline-block; margin-bottom: 4px; padding: 2px 10px;
  border-radius: var(--cgx-radius-pill); background: var(--mud-palette-success); color: #fff;
  font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.cgx-plan__was {
  display: block; font-size: .85rem; font-weight: 400;
  color: var(--mud-palette-text-secondary); text-decoration: line-through;
}
.cgx-plan__desc { font-size: .86rem; color: var(--mud-palette-text-secondary); }

.cgx-plan__facts { list-style: none; display: grid; gap: 7px; margin: 0; padding: 0; }
.cgx-plan__facts li { display: flex; align-items: center; gap: 8px; font-size: .82rem; }
.cgx-plan__facts li .mud-icon-root { color: var(--mud-palette-text-secondary); }
.cgx-plan__trial { font-weight: 600; color: var(--mud-palette-success); }
.cgx-plan__trial .mud-icon-root { color: var(--mud-palette-success); }
.cgx-plan .mud-button-root { margin-top: auto; }

/* =============================================================================
   The success modal - the one moment in the funnel worth celebrating, and the one moment a buyer most needs
   to be told what to do next. Scrim + centred card, so it reads as the page's own answer rather than a notice
   from somewhere else.
============================================================================= */
.cgx-success {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
  padding: 22px 16px;
}

.cgx-success__scrim {
  position: absolute;
  inset: 0;
  background: rgba(15, 13, 32, .55);
  backdrop-filter: blur(3px);
  animation: cgx-fade 200ms ease-out;
}

.cgx-success__card {
  position: relative;
  width: min(540px, 100%);
  max-height: min(88vh, 780px);
  overflow-y: auto;
  padding: 30px 28px 20px;
  border: 1px solid var(--mud-palette-lines-default);
  border-radius: 24px;
  background: var(--mud-palette-surface);
  box-shadow: 0 44px 96px -44px rgba(22, 19, 43, .62);
  animation: cgx-pop 340ms cubic-bezier(.2, .9, .3, 1);
}

.cgx-success__card:focus { outline: none; }

.cgx-success__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--mud-palette-text-secondary);
  cursor: pointer;
  transition: background var(--cgx-tap), color var(--cgx-tap);
}

.cgx-success__close:hover {
  background: color-mix(in srgb, var(--mud-palette-primary) 12%, transparent);
  color: var(--mud-palette-text-primary);
}

.cgx-success__art {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--mud-palette-success) 12%, transparent);
}

.cgx-success__art .cgx-check { width: 56px; height: 56px; }
.cgx-success__title {
  margin: 0 0 6px;
  font-size: 1.42rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  color: var(--mud-palette-text-primary);
}
.cgx-success__lede { text-align: center; margin-bottom: 20px; }
.cgx-success__host { font-weight: 700; color: var(--mud-palette-primary); word-break: break-all; }

.cgx-success__steps {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.cgx-success__steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--mud-palette-lines-default);
  border-radius: var(--cgx-radius-md);
  background: var(--mud-palette-background-gray);
  font-size: .84rem;
  line-height: 1.5;
  color: var(--mud-palette-text-secondary);
}

.cgx-success__steps li .mud-icon-root { flex: 0 0 auto; color: var(--mud-palette-primary); }
.cgx-success__steps strong { color: var(--mud-palette-text-primary); }

.cgx-success__actions { display: grid; gap: 8px; }

.cgx-success__help {
  margin-top: 16px;
  font-size: .8rem;
  color: var(--mud-palette-text-secondary);
}

.cgx-success__help summary { cursor: pointer; font-weight: 600; color: var(--mud-palette-text-primary); }
.cgx-success__help p { margin: 8px 0 2px; line-height: 1.55; }

.cgx-success__ref {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--mud-palette-divider-light);
  font-size: .74rem;
  letter-spacing: .03em;
  text-align: center;
  color: var(--mud-palette-text-disabled);
}

@keyframes cgx-fade { from { opacity: 0; } }
@keyframes cgx-pop { from { opacity: 0; transform: translateY(16px) scale(.97); } }

@media (max-width: 600px) {
  .cgx-success { padding: 14px 10px; }
  .cgx-success__card { padding: 24px 18px 16px; border-radius: 20px; }
  .cgx-journey { padding: 16px 14px 12px; }
}

/* Motion is a nicety, not information. A buyer who asks for less of it still sees every state, because the
   drawn check simply arrives drawn and the shimmer bar simply sits still. */
@media (prefers-reduced-motion: reduce) {
  .cgx-journey__ring,
  .cgx-journey__bar > span,
  .cgx-journey__pulse,
  .cgx-journey__live-dot,
  .cgx-check__circle,
  .cgx-check__mark,
  .cgx-success__scrim,
  .cgx-success__card { animation: none !important; }

  .cgx-check__circle,
  .cgx-check__mark { stroke-dashoffset: 0; }

  .cgx-journey__bar > span { left: 0; width: 100%; }
}




/* =============================================================================
   Cookie consent (EmptyLayout: the landing, pricing and buyer-portal pages)
   A floating card rather than a full-width bar, so it never reads as part of the
   page's own content.
============================================================================= */
.cgx-cookie {
  position: fixed;
  inset: auto 16px 16px 16px;
  z-index: 1200;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 980px;
  margin-inline: auto;
  padding: 14px 18px;
  border: 1px solid color-mix(in srgb, var(--mud-palette-primary) 22%, transparent);
  border-radius: var(--cgx-radius-lg);
  background: color-mix(in srgb, var(--mud-palette-surface) 92%, transparent);
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 50px -24px rgba(15, 12, 41, .5);
}

.cgx-cookie__text { flex: 1 1 340px; }
.cgx-cookie__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cgx-cookie__privacy { opacity: .7; }

@media (max-width: 600px) {
  .cgx-cookie { inset-inline: 10px; }
  .cgx-cookie__actions { width: 100%; justify-content: flex-start; }
}

/* =============================================================================
   Console hero - the dashboard's greeting band
   The one surface in the console that wears the brand ramp, so the landing page
   and the console open on the same colour story. The gradient is built from the
   brand stops rather than a literal, and the text on it is always white, so it
   reads identically in light and dark mode: what changes between the two is the
   page behind it, not this band.
============================================================================= */
.cgx-hero-console {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 26px;
  border-radius: var(--cgx-radius-lg);
  background:
    radial-gradient(120% 180% at 100% -20%, color-mix(in srgb, var(--cgx-brand-3) 60%, transparent), transparent 62%),
    linear-gradient(118deg, color-mix(in srgb, var(--cgx-brand-1) 90%, #080718), color-mix(in srgb, var(--cgx-brand-2) 85%, #080718));
  box-shadow: var(--cgx-shadow-lift);
  color: #fff;
}

/* A faint grid so the band has texture instead of a flat wash of colour. */
.cgx-hero-console::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(120% 120% at 90% 0%, #000 10%, transparent 70%);
  pointer-events: none;
}

.cgx-hero-console > * { position: relative; }
.cgx-hero-console__title { font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.cgx-hero-console__sub { color: rgba(255, 255, 255, .78); font-size: .9rem; }
.cgx-hero-console__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* Glass chips: the date and the instance, kept on-band but clearly secondary. */
.cgx-hero-console__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: var(--cgx-radius-pill);
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* The filled button on the band is white, so it never competes with the ramp. */
.cgx-hero-console .mud-button-root.mud-button-filled { background: #fff; color: var(--mud-palette-black); box-shadow: none; }
.cgx-hero-console .mud-button-root.mud-button-outlined { border-color: rgba(255, 255, 255, .38); color: #fff; }

/* =============================================================================
   Toolbar row - search, filters and a count on one hairline surface
   Pages previously restyled this row inline, which is how a filter bar ended up
   white in dark mode. One class, read from the palette, is the fix.
============================================================================= */
.cgx-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--mud-palette-lines-default);
  border-radius: var(--cgx-radius-md);
  background: var(--mud-palette-surface);
  box-shadow: var(--cgx-shadow-card);
}

.cgx-toolbar__grow { flex: 1 1 auto; }

/* =============================================================================
   Permission picker (the role editor)
   Twenty keys in three groups is a scrolling list, and a scrolling list needs an
   edge, a group rule and a per-group select-all - otherwise building a role is
   twenty clicks and a scroll wheel.
============================================================================= */
.cgx-picker {
  max-height: min(54vh, 420px);
  overflow: auto;
  padding: 12px 14px;
  border: 1px solid var(--mud-palette-lines-default);
  border-radius: var(--cgx-radius-md);
  background: var(--mud-palette-background-gray);
}

.cgx-picker__group + .cgx-picker__group {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--mud-palette-lines-default);
}

.cgx-picker__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 2px; }

/* The permission key itself is machine-readable text beside a human label. */
.cgx-picker__key { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; opacity: .6; font-size: .82em; }

/* A count that sits next to a label without competing with its weight. */
.cgx-count { font-size: .74rem; font-weight: 700; letter-spacing: .04em; color: var(--mud-palette-text-secondary); font-variant-numeric: tabular-nums; }

/* =============================================================================
   Tables - a wide table must scroll, not squash
   MudTable ships no responsive breakpoint; on a phone a six-column operator list
   squeezed its columns into unreadable slivers.
============================================================================= */
.cgx-table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cgx-table-scroll .mud-table .mud-table-root { min-width: 700px; }
.cgx-table-scroll .mud-table-cell { white-space: nowrap; }
.cgx-table-scroll .mud-table-cell:first-child,
.cgx-table-scroll .mud-table-cell:last-child { white-space: normal; }

/* The console-wide form of the same rule. Every list page except Users is a plain
   <MudTable> with no wrapper element, and adding one to eleven files to fix the same
   declaration is the kind of change that half-happens; this reaches all of them, and
   only inside .cgx-content, so the buyer portal and the landing page keep their own
   layout. The two rules agree, so a page that later adds the wrapper is unchanged. */
/* Scroll fallback retired (2026-11): below 960px the console tables render in MudBlazor's
   own stacked-card mode (MudTable Breakpoint="Breakpoint.Sm" plus the DataLabel on every
   cell). The old 640px floor fought that mode - flex cells inside a min-width table
   make 640px-wide swipeable cards, which is what read as "the data is not responsive"
   on a phone. Above the breakpoint the framework's own overflow container covers
   narrow windows; nothing console-wide is needed. */

/* Row actions stay one compact group instead of wrapping into the next row. */
.cgx-rowactions { display: inline-flex; align-items: center; gap: 2px; }

/* =============================================================================
   Skeleton - a load in progress should look like the shape that is arriving
   Replaces the bare indeterminate bar on list pages, which told you nothing about
   what was coming. Reduced motion stops the shimmer; the block stays.
============================================================================= */
.cgx-skeleton {
  position: relative;
  overflow: hidden;
  min-height: 14px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--mud-palette-action-default) 9%, transparent);
}

.cgx-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--mud-palette-surface) 70%, transparent), transparent);
  animation: cgx-shimmer 1.25s ease-in-out infinite;
}

@keyframes cgx-shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .cgx-skeleton::after { animation: none; } }

/* =============================================================================
   Inline hints - the "this is you" badge and a note that must not read as an error
============================================================================= */
.cgx-you {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 8px;
  border-radius: var(--cgx-radius-pill);
  background: color-mix(in srgb, var(--mud-palette-primary) 14%, transparent);
  color: var(--mud-palette-primary-darken);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.cgx-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--cgx-radius-md);
  background: color-mix(in srgb, var(--mud-palette-primary) 7%, transparent);
  border: 1px solid color-mix(in srgb, var(--mud-palette-primary) 16%, transparent);
  color: var(--mud-palette-text-secondary);
  font-size: .82rem;
  line-height: 1.5;
}

/* =============================================================================
   Buyer billing - workspace cards, the upgrade band and the plan picker
   The money page used to list workspaces as bare rows and hide the plan change
   in a dropdown. Each workspace is now a card with a face (initials avatar), a
   payment chip, its price stated loud, and its own upgrade door; the plan card
   carries an upgrade band; and the plan choice is a shelf of priced cards, not
   a select box. Every tone is read from the palette, so light and dark agree.
============================================================================= */
.cgx-ws {
  height: 100%;
  border: 1px solid var(--mud-palette-lines-default);
  border-radius: var(--cgx-radius-lg);
  background: var(--mud-palette-surface);
  box-shadow: var(--cgx-shadow-card);
  transition: border-color var(--cgx-tap), box-shadow var(--cgx-tap), transform var(--cgx-tap);
}

@media (hover: hover) {
  .cgx-ws:hover { box-shadow: var(--cgx-shadow-lift); transform: translateY(-2px); }
}

/* A workspace that owes money carries a red edge, so the eye finds it first. */
.cgx-ws--due {
  border-color: color-mix(in srgb, var(--mud-palette-error) 45%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--mud-palette-error) 12%, transparent), var(--cgx-shadow-card);
}

/* The current-plan band: a soft brand wash with the price and the upgrade door. */
.cgx-upgrade {
  border-radius: var(--cgx-radius-md);
  border: 1px solid color-mix(in srgb, var(--mud-palette-primary) 22%, transparent);
  background:
    radial-gradient(120% 200% at 100% -40%, color-mix(in srgb, var(--cgx-brand-3) 22%, transparent), transparent 60%),
    color-mix(in srgb, var(--mud-palette-primary) 7%, transparent);
}

/* A plan on the upgrade shelf: a clickable card, chosen state in brand. */
.cgx-planpick {
  height: 100%;
  border: 1px solid var(--mud-palette-lines-default);
  border-radius: var(--cgx-radius-md);
  background: var(--mud-palette-surface);
  box-shadow: var(--cgx-shadow-card);
  cursor: pointer;
  transition: border-color var(--cgx-tap), box-shadow var(--cgx-tap), transform var(--cgx-tap);
}

@media (hover: hover) {
  .cgx-planpick:hover { box-shadow: var(--cgx-shadow-lift); transform: translateY(-2px); }
}

.cgx-planpick--chosen {
  border-color: var(--mud-palette-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--mud-palette-primary) 18%, transparent), var(--cgx-shadow-lift);
}

/* =============================================================================
   Reports - the chip band above each table, and the print-only title.
   The chips are the report's own headline figures (the same ones the PDF carries);
   the title is hidden on screen because the page header already names the report,
   and it exists for the print window, which copies this element's HTML.
============================================================================= */
.cgx-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cgx-chip {
  min-width: 150px;
  padding: 8px 14px;
  border: 1px solid var(--mud-palette-lines-default);
  border-radius: var(--cgx-radius-md);
  background: var(--mud-palette-background-gray);
}

.cgx-report-print__title { display: none; }

@media print {
  .cgx-report-print__title { display: block; font-size: 18px; font-weight: 800; margin: 0 0 6px; }
}

/* =============================================================================
   Motion, density and small screens
============================================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}

@media (max-width: 900px) {
  .cgx-wordmark__role { display: none; }
  .cgx-pagehead__actions { width: 100%; margin-inline-start: 0; }
  .cgx-pagehead__actions .mud-button-root { flex: 1 1 auto; justify-content: center; }
  .cgx-hero-console { padding: 20px 18px; }
  .cgx-hero-console__actions { width: 100%; }
  .cgx-hero-console__actions .mud-button-root { flex: 1 1 auto; justify-content: center; }
}

@media (max-width: 600px) {
  .cgx-stat__value { font-size: 1.6rem; }
  .mud-card-content { padding: 14px; }
  .cgx-auth__card { padding: 24px 20px; border-radius: 18px; }
  /* A filter bar on a phone stacks: the search field takes the row, the count follows. */
  .cgx-toolbar { padding: 10px 12px; }
  .cgx-toolbar .mud-input-control { flex: 1 1 100%; max-width: none !important; }
  .cgx-picker { max-height: 46vh; }
}

/* =============================================================================
   Landing page editor
   The console draws a page that is not the console: the block list, its rows, and
   the preview that renders the real landing components inside the admin shell.
   Only the chrome is here - the words inside the preview are styled by
   landing.css, because they ARE the landing page.
============================================================================= */

/* One block in the list. Its header carries the metadata an operator scans for:
   which kind, which heading, which anchor, and how much of it is showing. */
.cgx-block {
  border: 1px solid var(--mud-palette-lines-default);
  border-radius: var(--cgx-radius-md);
  overflow: hidden;
}

.cgx-block__head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  width: 100%;
}

.cgx-block__num {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--cgx-grad);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
}

.cgx-block__kind {
  flex: 0 0 auto;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--mud-palette-primary) 78%, transparent);
}

.cgx-block__title {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cgx-block__anchor,
.cgx-block__count {
  flex: 0 0 auto;
  font-size: .68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--cgx-radius-pill);
  background: color-mix(in srgb, var(--mud-palette-action-default) 8%, transparent);
  color: color-mix(in srgb, var(--mud-palette-text-secondary) 80%, transparent);
}

/* The switch and the reorder buttons live on their own row inside the panel, so
   the panel header stays a single line that is entirely a click target. */
.cgx-block__tools {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--mud-palette-lines-default);
}

/* One row of a block, or one footer column. */
.cgx-row {
  padding: 12px 14px;
  margin-bottom: 10px;
  border: 1px solid var(--mud-palette-lines-default);
  border-radius: var(--cgx-radius-md);
  background: color-mix(in srgb, var(--mud-palette-background-gray) 55%, transparent);
}

.cgx-row--off { opacity: .55; }

.cgx-row__head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }

.cgx-row__num {
  flex: 0 0 auto;
  width: 20px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  opacity: .55;
}

.cgx-row__inline { flex: 1 1 auto; max-width: 320px; }

/* The glyph inside the mark picker is 24px of drawing in a 20px line. */
.cgx-row__iconpreview {
  display: inline-flex;
  width: 20px;
  margin-inline-end: 8px;
  vertical-align: middle;
  color: var(--mud-palette-primary);
}
.cgx-row__iconpreview svg { width: 20px; height: 20px; }

/* A colour box that is a swatch, not a text field with a dot in it. */
.cgx-colorfield { display: flex; align-items: flex-start; gap: 8px; }
.cgx-colorfield__text { flex: 1 1 auto; min-width: 0; }

.cgx-colorpick {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  margin-top: 2px;
  padding: 0;
  border: 1px solid var(--mud-palette-lines-default);
  border-radius: 10px;
  background: none;
  cursor: pointer;
}
.cgx-colorpick::-webkit-color-swatch-wrapper { padding: 4px; }
.cgx-colorpick::-webkit-color-swatch { border: 0; border-radius: 7px; }
.cgx-colorpick:focus-visible { outline: 2px solid color-mix(in srgb, var(--mud-palette-primary) 70%, transparent); outline-offset: 2px; }

/* Vertical alignment inside a MudGrid. MudBlazor 9's MudGrid has only Spacing and Justify, so the align
   that a form row wants - a button level with the field beside it - is a class on the grid. */
.cgx-grid--mid { align-items: center; }
.cgx-grid--end { align-items: flex-end; }

/* A destructive icon button in a row header. MudIconButton has no Color that reads
   as "this deletes your words" without also painting the whole thing, so the tone
   is a class and the palette supplies the colour. */
.mud-button-root.cgx-iconbtn-danger { color: var(--mud-palette-error); }

/* ---- the preview ----------------------------------------------------------- */
/* The frame scrolls; the page inside it is laid out at the device width chosen, so
   an operator sees the wrap points the visitor will actually hit rather than a
   shrunken screenshot of a desktop. */
.cgx-previewframe {
  margin-top: 14px;
  border: 1px solid var(--mud-palette-lines-default);
  border-radius: var(--cgx-radius-lg);
  background: var(--mud-palette-background-gray);
  padding: 16px;
  overflow: auto;
  max-height: 70vh;
  display: flex;
  justify-content: center;
}

.cgx-preview {
  border-radius: var(--cgx-radius-md);
  overflow: hidden;
  border: 1px solid var(--mud-palette-lines-default);
  flex: 0 0 auto;
}

.cgx-preview--desk { width: 1160px; }
.cgx-preview--tab { width: 780px; }
.cgx-preview--phone { width: 390px; }

.cgx-preview__title { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: .5rem 0 .6rem; }

.cgx-preview__empty {
  padding: 40px 24px;
  text-align: center;
  color: var(--ink-soft, #5c5676);
  font-size: .92rem;
}

@media (max-width: 900px) {
  .cgx-previewframe { padding: 8px; }
  .cgx-block__anchor, .cgx-block__count { display: none; }
}


/* =============================================================================
   MOBILE FOUNDATION — the responsive sweep (2026-11).

   Every surface in this app (operator console, buyer portal, public funnel)
   shares one truth: the components were authored desktop-first with per-page
   breakpoints, so a phone breaks at the seams — dialogs sized for desks,
   inline px floors wider than the viewport, header rows that refuse to wrap,
   and two fixed overlays fighting for the same bottom-right corner. The rules
   below fix the CLASS of failure once instead of the INSTANCE per page, at the
   600px breakpoint the rest of this stylesheet already speaks.

   Why attribute selectors and not just more classes: the offending widths live
   in inline style attributes scattered through 74 components (style="min-width:
   320px" and friends). A class sweep would mean touching every one of them and
   would silently miss the next one added tomorrow; the attribute clamp is the
   one rule that also covers files nobody has edited yet. !important is honest
   here — inline styles are exactly the specificity it exists to beat.
   ========================================================================== */
@media (max-width: 600px) {
  /* Dialogs fill the phone. MaxWidth.ExtraLarge etc. are desk vocabularies; a
     1260px dialog on a 390px viewport is only a scroll-trap with a bigger font
     inside. Width becomes the viewport minus the sheet margins, whatever the
     MaxWidth value the caller passed. */
  .mud-dialog {
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
  }

  /* Clamp every inline px width (min-width floors, width bars, max-width
     ceilings) to the viewport. Covers [min|max-]width:NNNpx and width:NNNpx
     alike; height-based inline styles and CSS-class widths (the landing
     preview frames) are deliberately untouched. */
  [style*="width:"] {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  /* Title/action and label/value rows: the ~46 "d-flex justify-space-between"
     pairs that read fine at 390px only until the left word gets long. Wrapping
     with a row gap turns them into stacked rows with breathing room, which is
     what every one of them wants on a phone. */
  .d-flex.justify-space-between,
  .d-flex.justify-end {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  /* The cookie consent banner and the floating action dock live in the same
     bottom-right corner; consent (z 1200) used to bury the dock (z 60). While
     consent is on screen, the dock lifts above it instead of hiding beneath. */
  body:has(.cgx-cookie) .cgx-dock {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 140px);
  }
  .cgx-cookie {
    left: 12px;
    right: 12px;
  }

  /* Table density: 640px is already the global overflow floor; at phone width
     the same table reads one notch smaller instead of one more screen wider. */
  .cgx-content .mud-table,
  .cgx-dash-page .mud-table { font-size: .82rem; }
  .cgx-content .mud-table .mud-table-cell,
  .cgx-dash-page .mud-table .mud-table-cell { padding: 8px 10px; }

  /* Long unbroken cells (domain names, gateway IDs, truncated audit strings)
     scroll inside their own cell instead of widening the whole row. */
  .cgx-content .mud-table-cell,
  .cgx-dash-page .mud-table-cell {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 600px) {
  /* The buyer shell carries three or four appbar icon buttons; 2px keeps them
     thumb-tappable at 360px without the brand lockup getting squeezed out. */
  .cgx-bar-group { gap: 2px; }

  /* Notched phones: the docked FAB and the consent banner lift off the home
     indicator. The consent-visible dock lift above wins by specificity. */
  .cgx-dock { bottom: calc(env(safe-area-inset-bottom, 0px) + 14px); }
  .cgx-cookie { bottom: calc(env(safe-area-inset-bottom, 0px) + 12px); }
}

/* =============================================================================
   RESPONSIVE SWEEP, PASS 2 — dialogs as containers, generic row wrapping, and
   the Settings page on a phone (jump rail, sticky save bar, card density).

   Pass 1 fixed the classes a designer breaks on purpose; pass 2 fixes the
   classes nobody thought about: the ~40 inline flex rows that were never
   justify-space-between and so slipped the first sweep, everything INSIDE a
   dialog (dialogs mount to the body portal — .cgx-content scoping simply
   never reaches them), and the two sticky elements on /settings that collide
   with the cookie banner exactly when a new operator first opens the page.
   ========================================================================== */

/* Dialogs are their own surface. Whatever lives inside — the provisioning
   panel's tables, a credentials block, an invoice detail — gets the same
   wrapping, density and long-string protection as the page beneath it.
   No media query here on purpose: a 600px dialog on a 900px tablet is still a
   600px dialog, and a 42-column audit cell overflows at every size. */
.mud-dialog .mud-dialog-content {
  overflow-wrap: anywhere;
}
.mud-dialog .d-flex:not(.flex-column):not(.flex-wrap) {
  flex-wrap: wrap;
  row-gap: 8px;
}
@media (max-width: 600px) {
  .mud-dialog .mud-dialog-content { padding-left: 14px; padding-right: 14px; }
  .mud-dialog .mud-table, .mud-dialog .mud-simple-table { font-size: .82rem; }

  /* Any inline flex row in the app content — filter bars, search+button
     pairs, chip bands — wraps on a phone unless it explicitly opted out.
     The appbar cluster keeps its row (it is the one place where wrapping
     would push buttons off the bar); stepper tracks and table action rows
     already carry their own narrow-screen rules. */
  .cgx-content .d-flex:not(.flex-column):not(.flex-wrap):not(.cgx-bar-group),
  .cgx-dash-page .d-flex:not(.flex-column):not(.flex-wrap),
  main .d-flex:not(.flex-column):not(.flex-wrap):not(.cgx-bar-group) {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  /* --- Settings: the jump rail becomes the strip the nav already is. ---
     Six pills that wrap make the sticky header taller than the content it
     jumps through; one scrolling line keeps the promise of "where am I"
     at the cost of nothing visible. */
  .cgx-setnav {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .cgx-setnav::-webkit-scrollbar { display: none; }
  .cgx-setnav a { flex: 0 0 auto; }

  /* The save bar sticks to viewport bottom, and until consent is given the
     cookie banner owns that same strip — at z 1200 it would bury Save under
     Accept. While the banner is on screen, the bar parks above it. */
  body:has(.cgx-cookie) .cgx-savebar {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 116px);
  }

  .cgx-set { padding: 14px 16px 18px; }
  .cgx-set-anchor { scroll-margin-top: calc(var(--mud-appbar-height, 64px) + 64px); }
}

/* =============================================================================
   CHECKOUT REFINEMENT + PORTAL-BAR HOME (2026-11) — the money page should feel
   like one: the chosen plan unmistakable, the progress legible, the density
   right on a phone. No behaviour changed; all of this sits on classes that
   already ship in Start.razor / CgxCheckoutStepper / CgxPortalBar.
   ========================================================================== */

/* The logo is a link now (CgxPortalBar) — it must read and behave like one. */
.cgx-portalbar__home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  border-radius: 10px;
  padding: 2px 6px 2px 2px;
  margin-left: -2px;
  transition: transform .16s ease, background-color .16s ease;
}
.cgx-portalbar__home:hover { transform: translateY(-1px); background: color-mix(in srgb, var(--mud-palette-primary) 7%, transparent); }
.cgx-portalbar__home:focus-visible { outline: 2px solid var(--mud-palette-primary); outline-offset: 2px; }

/* Plan cards: they are buttons in disguise — say so on hover, and make the
   chosen one impossible to mistake for the rest. */
.cgx-plan { cursor: pointer; }
.cgx-plan:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -18px rgba(15, 12, 41, .45), var(--cgx-shadow-card);
}
.cgx-plan--chosen {
  border-color: var(--mud-palette-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--mud-palette-primary) 15%, transparent), var(--cgx-shadow-card);
}
.cgx-plan--chosen::after {
  content: "Selected";
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--mud-palette-primary);
  color: var(--mud-palette-primary-contrast);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .02em;
}

/* Stepper: the done state should carry a little of the primary colour, and the
   active dot should read like the point of attention it is. */
.cgx-stepper__item--done .cgx-stepper__label { font-weight: 600; }
.cgx-stepper__item--active .cgx-stepper__dot {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--mud-palette-primary) 14%, transparent);
}

@media (max-width: 600px) {
  /* Cards on a phone are read at thumb distance: one grid of padding less, and
     the review table breathes without widening. */
  .mud-paper.pa-5 { padding: 18px !important; }
  .cgx-plan { padding: 18px 16px 16px; }
  .cgx-plan--chosen::after { top: 10px; right: 10px; }
  .cgx-facts { font-size: .9rem; }
}


/* =============================================================================
   DATA TABLES ON SMALL SCREENS - card mode, dressed to the console (2026-11).

   Below 960px a MudTable carrying Breakpoint.Sm hands itself to MudBlazor's
   stacked mode: the head is hidden and every cell becomes a flex line with its
   DataLabel printed as the left-hand term. The framework's look for that is
   deliberately bare, so this block styles it into the surface layer the rest of
   the console uses - one card per row, hairline dashes between fields, an
   overline label, chips and action buttons kept on the right edge of the row
   they belong to. Scoped to the two places tables actually mount: the console
   content column and the dialog portal.
   ========================================================================== */
@media (max-width: 960px) {
  .cgx-content .mud-sm-table .mud-table-row,
  .mud-dialog .mud-sm-table .mud-table-row {
    display: block;
    margin: 0 10px 12px;
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: var(--cgx-radius-md);
    box-shadow: var(--cgx-shadow-card);
    overflow: hidden;
  }

  .cgx-content .mud-sm-table .mud-table-cell,
  .mud-dialog .mud-sm-table .mud-table-cell {
    padding: 10px 14px;
    border-bottom: 1px dashed color-mix(in srgb, var(--mud-palette-lines-default) 70%, transparent);
    background: transparent;
    white-space: normal;
    overflow-wrap: anywhere;
    gap: 14px;
  }

  .cgx-content .mud-sm-table .mud-table-cell:last-child,
  .mud-dialog .mud-sm-table .mud-table-cell:last-child {
    border-bottom: 0;
  }

  .cgx-content .mud-sm-table .mud-table-cell::before,
  .mud-dialog .mud-sm-table .mud-table-cell::before {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--mud-palette-text-secondary);
  }

  /* The stacked sort control MudBlazor uncaps in this mode, if the table has one. */
  .cgx-content .mud-sm-table .mud-table-smalldevices-sortselect {
    padding: 10px 14px;
  }
}

/* ==========================================================================
   Buyer portal: the brand lockup is the front-door link (2026-11-22).
   The tenant shell draws the lockup as an <a href="/"> so a buyer can leave
   the account the same way they entered any site — by tapping the logo.
   The anchor must not read as prose: no underline, the inherited colour, and
   a hover/focus state that says "pressable" without turning the chrome into
   a button.
   ========================================================================== */
a.cgx-brand-lockup--link {
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
  padding: 4px 8px 4px 4px;
  margin: -4px -8px -4px -4px;
  transition: opacity var(--cgx-tap), box-shadow var(--cgx-tap);
}

a.cgx-brand-lockup--link:hover {
  opacity: .82;
}

a.cgx-brand-lockup--link:focus-visible {
  outline: 2px solid var(--mud-palette-primary);
  outline-offset: 2px;
}


