
/* /src/shared/ui/overlay-page.css */
/* OverlayShell's surface is only the lifecycle: the child owns its own frame,
   so Gaia's card treatment and width would fight it. */
.gaia-dialog__surface.control-overlay-bare {
  width: auto;
  max-width: calc(100vw - 48px);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* A dialog that holds its top: a fixed way down the window, growing downward as its content
   does, and never past the window's bottom margin. */
.gaia-dialog__viewport.control-modal-hold-top {
  --control-modal-top: 14vh;
  align-items: flex-start;
  padding-top: var(--control-modal-top);
}
.control-modal-hold-top .gaia-dialog__surface {
  max-height: calc(100vh - var(--control-modal-top) - 24px);
}

/* The page modal starts at the navigation's right edge: the shell publishes the sidebar's live
   width as --gaia-shell-sidebar-width on the document root, which portalled layers inherit. */
/* A page's actions sit top right, beside its title, while they fit there. Narrower, they become
   Gaia's ordinary dialog footer, a bordered bar along the bottom, and wrap, so every action stays
   on screen, clear of the navigation and clickable. Gaia anchors them by their right edge only,
   so a long row ran off the left edge instead. */
.gaia-dialog__viewport.gaia-page-modal .gaia-dialog__foot {
  left: calc(var(--gaia-shell-sidebar-width) + 220px);
  flex-wrap: wrap;
  justify-content: flex-end;
  pointer-events: none;
}
.gaia-dialog__viewport.gaia-page-modal .gaia-dialog__foot > * {
  pointer-events: auto;
}
@media (max-width: 1180px) {
  .gaia-dialog__viewport.gaia-page-modal .gaia-dialog__foot {
    top: auto;
    right: 0;
    bottom: 0;
    left: var(--gaia-shell-sidebar-width);
    padding: 14px 20px;
    border-top: 1px solid var(--gaia-border);
    background: var(--gaia-background);
    pointer-events: auto;
  }
  /* Room to scroll the last card above two rows of actions. */
  .gaia-dialog__viewport.gaia-page-modal .gaia-dialog__body {
    padding-bottom: 72px;
  }
}

.scenario-create-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.scenario-create-seed {
  border-top: 1px solid var(--gaia-border);
  padding-top: 14px;
}

/* A page flow with its own page bar: the bar sits where the app's page bar does (12px down, 12px
   in from the right) and stays while the page scrolls; the steps and the scroll targets follow
   its height rather than Gaia's 80px title row. */
.control-page-modal-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 12px 12px 0 0;
  background: var(--gaia-background);
}
.gaia-page-modal:has(.control-page-modal-bar) .gaia-dialog__aside {
  top: 85px;
}
.gaia-page-modal:has(.control-page-modal-bar) [data-slot='flow-card'] {
  scroll-margin-top: 83px;
}


/* /src/features/act/actions/screens/actions-screen.css */
.actions-toolbar__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}
.actions-toolbar__tabs button {
  padding: 6px 8px;
  border: 1px solid oklch(var(--input));
  border-radius: 8px;
  background: white;
  color: oklch(var(--muted));
  font-size: 11px;
  cursor: pointer;
}
.actions-toolbar__tabs button[aria-pressed='true'] {
  background: oklch(var(--primary));
  color: white;
}
.actions-toolbar__tabs span {
  margin-left: 4px;
  opacity: 0.7;
}
.actions-toolbar button.btn-action {
  background: oklch(var(--action));
  color: white;
  padding: 7px 12px;
  border-radius: 999px;
}
.actions-toolbar button.btn-outline {
  background: white;
  border: 1px solid oklch(var(--primary));
  color: oklch(var(--primary));
  padding: 7px 12px;
  border-radius: 999px;
}
.actions-table-detail__panel {
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 0;
  display: flex;
}
.actions-table-detail__empty {
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: oklch(var(--muted));
  font-size: 12px;
  text-align: center;
}
.actions-advanced summary {
  color: oklch(var(--muted));
  font-size: 12px;
  cursor: pointer;
}
.actions-advanced > *:not(summary) {
  margin-top: 10px;
}

/* WHILE NOTHING IS PICKED the empty detail column is a slim strip, not a
   quarter of the page: at Gaia's 3:1 split a 1440px window with the sidebar
   open left the table 819px for columns that need ~860px, so the last ones
   sat past its edge [DEV-3571]. Picking a row still opens Gaia's 2:2 split.
   Under 1024px Gaia pins both halves to one track each (and stacks them under
   720px), which this two-track template keeps working. */
.actions-table-detail .gaia-table-detail__grid[data-open='false'] {
  grid-template-columns: minmax(0, 1fr) 160px;
}
.actions-table-detail .gaia-table-detail__grid[data-open='false'] > .gaia-table-detail__table,
.actions-table-detail .gaia-table-detail__grid[data-open='false'] > .gaia-table-detail__rail {
  grid-column: auto;
}


/* /src/features/act/dashboard/components/dashboard-card.css */
/* NO CARD IN A CARD. The built-in charts draw their own `.card` frame for a screen of their own;
 * inside a graph card that frame is the card's, so it goes. Unlayered and more specific than
 * `.card`, so it wins without !important. Inline padding still wins, as it should. */
[data-slot='graph-card-body'] .card {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  padding: 0;
}


/* /src/features/carbon-intelligence/chat/public/ci-theme.css */
/* Cozero Intelligence's surfaces, spacing, radius, type and motion, as aliases of Gaia.
 *
 * Two layers only: the soft canvas every CI page sits on, and white raised surfaces (composer,
 * cards, menus, the panel frame) with a 1px hairline. The composer and the insight sheet also lift
 * off the canvas with one soft ambient shadow; nothing else casts one at rest. CI styling reads
 * these names and never a hex value or a legacy channel triplet.
 *
 * The names are defined on :root rather than on .ci-root so a menu or dialog portalled out of a
 * CI screen still resolves them; .ci-root is what puts a screen on the canvas. */

:root {
  --ci-canvas: var(--gaia-background);
  --ci-surface: var(--gaia-card);
  --ci-fill: var(--gaia-muted);
  --ci-line: var(--gaia-border);
  --ci-shadow-lift:
    0 1px 2px oklch(from var(--gaia-foreground) l c h / 0.05),
    0 10px 30px oklch(from var(--gaia-foreground) l c h / 0.06);

  --ci-space-1: 4px;
  --ci-space-2: 8px;
  --ci-space-3: 12px;
  --ci-space-4: 16px;
  --ci-space-5: 24px;
  --ci-space-6: 32px;
  --ci-space-7: 48px;

  --ci-width-chat: 760px;
  --ci-width-list: 1120px;
  --ci-width-sheet: 860px;
  --ci-width-reading: 680px;

  --ci-radius-control: var(--gaia-radius-md);
  --ci-radius-card: var(--gaia-radius-xl);
  --ci-radius-pill: var(--gaia-radius-pill);

  --ci-type-question: var(--gaia-font-weight-normal) 1.875rem/2.25rem var(--gaia-font-sans);
  --ci-type-insight-title: var(--gaia-font-weight-semibold) 1.875rem/2.25rem var(--gaia-font-sans);
  --ci-type-figure: var(--gaia-font-weight-semibold) 1.5rem/2rem var(--gaia-font-sans);
  --ci-type-asked: var(--gaia-font-weight-semibold) 1.125rem/1.75rem var(--gaia-font-sans);
  --ci-type-title: var(--gaia-font-weight-semibold) 1rem/1.5rem var(--gaia-font-sans);
  --ci-type-body: var(--gaia-font-weight-normal) 1rem/1.5rem var(--gaia-font-sans);
  --ci-type-control: var(--gaia-font-weight-normal) 0.875rem/1.25rem var(--gaia-font-sans);
  --ci-type-label: var(--gaia-font-weight-semibold) 0.875rem/1.25rem var(--gaia-font-sans);
  --ci-type-caption: var(--gaia-font-weight-normal) 0.75rem/1rem var(--gaia-font-sans);
  --ci-type-kicker: var(--gaia-font-weight-semibold) 0.625rem/0.875rem var(--gaia-font-sans);

  /* Reporting a problem: its text, and the line round what is being reported. */
  --ci-report-ink: var(--gaia-badge-destructive-foreground, var(--gaia-destructive));
  --ci-report-outline: oklch(from var(--gaia-destructive) l c h / 0.5);

  --ci-ease: cubic-bezier(0.2, 0, 0, 1);
  --ci-duration-press: 120ms;
  --ci-duration-pop: 140ms;
  --ci-duration-open: 200ms;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --ci-duration-press: 0ms;
    --ci-duration-pop: 0ms;
    --ci-duration-open: 0ms;
  }
}

.ci-root {
  background: var(--ci-canvas);
  color: var(--gaia-foreground);
}

.ci-scroll {
  scrollbar-gutter: stable;
}


/* /src/features/carbon-intelligence/chat/components/ci-state.css */
/* The one shape every Cozero Intelligence state takes. Page: centred in the content column, in
   its top third, on the canvas. Inline: a white card with a hairline, left aligned, in the
   transcript or the panel. */

.ci-state {
  --ci-state-tint: var(--gaia-muted-foreground);
  --ci-state-ink: var(--gaia-muted-foreground);
  display: flex;
  gap: var(--ci-space-4);
  color: var(--gaia-foreground);
}

.ci-state[data-tone='warning'] {
  --ci-state-tint: var(--gaia-warning);
  --ci-state-ink: var(--gaia-badge-warning-foreground);
}

.ci-state[data-tone='danger'] {
  --ci-state-tint: var(--gaia-destructive);
  --ci-state-ink: var(--gaia-badge-destructive-foreground);
}

.ci-state[data-placement='page'] {
  flex-direction: column;
  align-items: center;
  width: min(100%, 480px);
  margin: 0 auto;
  padding: 12vh var(--ci-space-5) var(--ci-space-6);
  text-align: center;
}

.ci-state[data-placement='inline'] {
  align-items: flex-start;
  margin: var(--ci-space-3) 0 var(--ci-space-4);
  padding: var(--ci-space-4);
  border: 1px solid var(--ci-line);
  border-radius: var(--ci-radius-card);
  background: var(--ci-surface);
}

.ci-state-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--gaia-radius-pill);
  color: var(--ci-state-ink);
  background: oklch(from var(--ci-state-tint) l c h / 0.12);
}

.ci-state-body {
  min-width: 0;
}

/* The page state is as wide as it will ever be, whatever it says, so a title that changes (a
   search being typed) never moves the box it sits in. */
.ci-state[data-placement='page'] .ci-state-body {
  width: 100%;
}

.ci-state-title,
.ci-state-sentence {
  overflow-wrap: anywhere;
}

.ci-state-title {
  margin: 0;
  font: var(--ci-type-title);
  color: var(--gaia-foreground);
}

.ci-state-sentence {
  margin: var(--ci-space-1) 0 0;
  font: var(--ci-type-control);
  color: var(--gaia-muted-foreground);
}

.ci-state-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ci-space-2);
  margin-top: var(--ci-space-4);
}

/* An action's words wrap inside the card rather than running past its edge. */
.ci-state-actions [data-slot='button'] {
  max-width: 100%;
  height: auto;
  min-height: var(--ci-space-6);
  padding-block: var(--ci-space-1);
  white-space: normal;
  text-align: center;
}

.ci-state[data-placement='page'] .ci-state-actions {
  justify-content: center;
}

.ci-state-detail {
  margin: var(--ci-space-3) 0 0;
  font: var(--ci-type-caption);
  color: var(--gaia-muted-foreground);
  font-variant-numeric: tabular-nums;
}

/* An action at work keeps its mark turning; a reader who asked for less motion keeps the words. */
.ci-state-working {
  animation: ci-state-working 1s linear infinite;
}

@keyframes ci-state-working {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ci-state-working {
    animation: none;
  }
}

/* Gaia's ghost button carries no resting background and the app's button reset skips Gaia buttons,
   so without this the browser's own grey shows through. */
.ci-state-actions button[data-variant='ghost']:not(:hover) {
  background: transparent;
}


/* /src/features/carbon-intelligence/chat/sections/command-box.css */
/* The command box: one field and grouped results, a fifth of the way down the window. The
   results area holds one height, so results arriving while typing never move the frame. */

.gaia-dialog__viewport.ci-command-viewport {
  align-items: flex-start;
  padding-top: 20vh;
}

.ci-command {
  display: flex;
  flex-direction: column;
  width: min(560px, calc(100vw - 48px));
  overflow: hidden;
  border: 1px solid var(--ci-line);
  border-radius: var(--ci-radius-card);
  background: var(--ci-surface);
  box-shadow: var(--shadow-md);
  color: var(--gaia-foreground);
}

.ci-command__search {
  position: relative;
  flex-shrink: 0;
  border-bottom: 1px solid var(--ci-line);
}

.ci-command__search-icon {
  position: absolute;
  top: 50%;
  left: var(--ci-space-4);
  color: var(--gaia-muted-foreground);
  transform: translateY(-50%);
  pointer-events: none;
}

.ci-command__input {
  width: 100%;
  height: 56px;
  padding: 0 var(--ci-space-4) 0 48px;
  border: 0;
  background: transparent;
  color: var(--gaia-foreground);
  font: var(--ci-type-body);
  outline: none;
}

.ci-command__results {
  height: min(368px, 50vh);
  padding: var(--ci-space-1) var(--ci-space-2) var(--ci-space-2);
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.ci-command__group {
  height: 28px;
  padding: 10px var(--ci-space-2) 0;
  color: var(--gaia-muted-foreground);
  font: var(--ci-type-caption);
}

.ci-command__row {
  display: flex;
  gap: var(--ci-space-3);
  align-items: center;
  width: 100%;
  height: 40px;
  padding: 0 var(--ci-space-2);
  border-radius: var(--ci-radius-control);
  text-align: left;
  font: var(--ci-type-control);
}

.ci-command__row[aria-selected='true'] {
  background: oklch(from var(--ci-fill) l c h / 0.7);
}

.ci-command__mark {
  flex-shrink: 0;
  color: var(--gaia-ai);
}

.ci-command__glyph {
  flex-shrink: 0;
  color: var(--gaia-muted-foreground);
}

.ci-command__label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ci-command__muted {
  color: var(--gaia-muted-foreground);
}

.ci-command__meta {
  flex-shrink: 0;
  color: var(--gaia-muted-foreground);
  font: var(--ci-type-caption);
  font-variant-numeric: tabular-nums;
}

.ci-command__foot {
  display: flex;
  flex-shrink: 0;
  gap: var(--ci-space-4);
  align-items: center;
  height: 36px;
  padding: 0 var(--ci-space-4);
  border-top: 1px solid var(--ci-line);
  color: var(--gaia-muted-foreground);
  font: var(--ci-type-caption);
}

.ci-command__foot kbd {
  display: inline-block;
  min-width: 18px;
  margin-right: 2px;
  padding: 0 4px;
  border: 1px solid var(--ci-line);
  border-radius: 4px;
  font: inherit;
  text-align: center;
}


/* /src/features/carbon-intelligence/chat/components/ci-page-header.css */
/* The same box as the shell's AppHeader: 96px, bottom-aligned, title 32px in from the content's
   edge, actions in a 40px row 32px from the right. */

.ci-page-header {
  display: flex;
  flex-shrink: 0;
  gap: 16px;
  align-items: flex-end;
  height: 96px;
  padding: 0 32px 28px calc(32px + var(--shell-header-inset, 0px));
}

.ci-page-header__title {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.ci-page-header__kicker {
  color: var(--gaia-muted-foreground);
  font: var(--ci-type-caption);
}

.ci-page-header__name {
  display: flex;
  align-items: center;
  min-width: 0;
  height: 40px;
}

.ci-page-header__name h1 {
  margin: 0;
}

.ci-page-header__actions {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
  align-items: center;
  height: 40px;
}

/* A secondary action: icon and label, no border, navy text; a quiet fill on hover and while
   what it toggles is open. The blue filled button is kept for the one primary action. */
.ci-page-header__quiet {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--ci-radius-pill);
  background: transparent;
  color: var(--gaia-foreground);
  font: var(--ci-type-label);
  white-space: nowrap;
  transition: background var(--ci-duration-press) ease-out;
}

.ci-page-header__quiet > svg {
  color: var(--gaia-muted-foreground);
}

.ci-page-header__quiet:hover,
.ci-page-header__quiet[aria-pressed='true'] {
  background: oklch(from var(--ci-fill) l c h / 0.7);
}

.ci-page-header__quiet:focus-visible {
  outline: 2px solid var(--gaia-ring);
  outline-offset: 2px;
}

/* The rename field keeps the width of the name it replaces. */
.ci-thread-title-rename .ci-thread-title-rename__field {
  width: 420px;
}

@media (max-width: 700px) {
  .ci-page-header {
    flex-wrap: wrap;
    align-content: flex-end;
    gap: var(--ci-space-2) 0;
    height: auto;
    min-height: 96px;
    padding: var(--ci-space-4);
    padding-left: calc(var(--ci-space-4) + var(--shell-header-inset, 0px));
  }

  .ci-thread-title-rename {
    width: min(420px, 100%);
  }

  .ci-thread-title-rename .ci-thread-title-rename__field {
    flex: 1;
    width: auto;
    min-width: 0;
  }

  .ci-page-header__title {
    flex: 1 1 100%;
  }

  .ci-page-header__kicker {
    white-space: nowrap;
  }

  .ci-page-header__actions {
    flex: 1 1 100%;
    flex-wrap: wrap;
  }

  .ci-page-header__label {
    display: none;
  }
}


/* /src/features/carbon-intelligence/chat/components/ci-list-page.css */
/* A list page, under the shell's page bar and in its scrolling: the column is as wide as a list
   gets and centred on the page; where the page is narrower than that, it takes the page's width.
   The assistant opens in a column of its own beside the page, so the page simply narrows. */

.ci-list-page {
  min-width: 0;
}

.ci-list-page__column {
  max-width: var(--ci-width-list);
  margin: 0 auto;
}

/* The filters first, the search at the row's end: the one order of every list page's toolbar.
   The row never wraps. The search takes the room the filters leave and folds into a button when
   that room runs out (see ci-list-toolbar.css); while it is open in that state it takes the row and
   the filters step aside. Filters that still do not fit scroll sideways on their one row. */
.ci-list-toolbar {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--ci-space-4);
  align-items: center;
  min-height: 40px;
  margin-bottom: var(--ci-space-5);
}

.ci-list-toolbar > .ci-segmented {
  flex: 0 1 auto;
  flex-wrap: nowrap;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

/* Filters that do not fit scroll sideways on their one row, faded at the edge they run past: the
   fade follows the row's own scroll, so a row that fits, and so cannot scroll, shows none. */
@supports (animation-timeline: scroll()) {
  .ci-list-toolbar > .ci-segmented {
    animation: ci-list-filters-fade linear both;
    animation-timeline: scroll(self inline);
  }
}

@keyframes ci-list-filters-fade {
  from {
    mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
  }

  to {
    mask-image: linear-gradient(to right, transparent, #000 32px);
  }
}

.ci-list-toolbar:has(> .ci-search-room[data-open]) > .ci-segmented {
  display: none;
}

.ci-list-group + .ci-list-group {
  margin-top: var(--ci-space-5);
}

.ci-list-group__label {
  display: block;
  margin: 0 0 var(--ci-space-2) 2px;
  color: var(--gaia-muted-foreground);
  font: var(--ci-type-caption);
}

.ci-list-card {
  margin: 0;
  padding: 0;
  overflow: hidden;
  /* Gaia's card edge: none on the grey page, the hairline on white (DEV-3571). */
  border: 1px solid var(--gaia-card-border);
  border-radius: var(--ci-radius-card);
  background: var(--ci-surface);
  background-clip: padding-box;
  list-style: none;
}

/* One row: a glyph, two lines of text, when, and the row's menu. Every row is the same
   height, whatever it holds, so a list never jumps as rows change. */
.ci-list-row {
  position: relative;
  display: flex;
  gap: var(--ci-space-3);
  align-items: center;
  height: 64px;
  padding: 0 var(--ci-space-2) 0 var(--ci-space-4);
  transition: background var(--ci-duration-press) ease-out;
}

.ci-list-row + .ci-list-row {
  border-top: 1px solid var(--ci-line);
}

.ci-list-row:hover,
.ci-list-row:focus-within,
.ci-list-row[data-open='true'] {
  background: oklch(from var(--ci-fill) l c h / 0.45);
}

/* The part of the row that opens it: the glyph, the text and the time, edge to edge. */
.ci-list-row__open {
  display: flex;
  flex: 1;
  gap: var(--ci-space-3);
  align-items: center;
  align-self: stretch;
  min-width: 0;
  color: inherit;
  text-align: left;
  text-decoration: none;
  outline: none;
}

.ci-list-row__open:focus-visible {
  border-radius: var(--ci-radius-control);
  box-shadow: inset 0 0 0 2px var(--gaia-ring);
}

/* What the row stands for, as one quiet 16px line glyph with no tile behind it. */
.ci-list-glyph {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 20px;
  color: var(--gaia-muted-foreground);
}

.ci-list-row__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ci-list-row__title {
  display: flex;
  gap: var(--ci-space-2);
  align-items: center;
  min-width: 0;
  font: var(--ci-type-label);
}

.ci-list-row__title-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ci-list-row__line {
  min-width: 0;
  overflow: hidden;
  color: var(--gaia-muted-foreground);
  font: var(--ci-type-control);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ci-list-row__line-lead {
  color: var(--gaia-foreground);
}

/* A short word beside the title: "Shared with you", "Archived". */
.ci-list-badge {
  flex-shrink: 0;
  padding: 0 var(--ci-space-2);
  border-radius: var(--ci-radius-pill);
  background: oklch(from var(--ci-fill) l c h / 0.8);
  color: var(--gaia-muted-foreground);
  font: var(--ci-type-caption);
  line-height: 20px;
}

/* When: the reader's own clock, so it is written once the page is live; its place is held. */
.ci-list-row__when {
  flex-shrink: 0;
  min-width: 56px;
  color: var(--gaia-muted-foreground);
  font: var(--ci-type-caption);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* The row's menu: there on hover, on keyboard focus and while open, its place always kept. */
.ci-list-row__menu {
  display: inline-flex;
  flex-shrink: 0;
  width: 32px;
  opacity: 0;
  transition: opacity var(--ci-duration-press) ease-out;
}

.ci-list-row:hover .ci-list-row__menu,
.ci-list-row:focus-within .ci-list-row__menu,
.ci-list-row[data-open='true'] .ci-list-row__menu {
  opacity: 1;
}

@media (hover: none) {
  .ci-list-row__menu {
    opacity: 1;
  }
}

/* ---- while the list is read: Gaia's placeholder blocks in the row's place ---- */

.ci-list-placeholder__label {
  margin: 0 0 var(--ci-space-2) 2px;
}

.ci-list-placeholder__lines {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
}

/* A row with nothing to manage keeps the row's right edge at the card's padding. */
.ci-list-row[data-menu='none'] {
  padding-right: var(--ci-space-4);
}

@media (max-width: 700px) {
  /* The row's glyph, gaps and timestamp give way so the title keeps a readable width. */
  .ci-list-row {
    gap: var(--ci-space-2);
    padding-right: var(--ci-space-1);
    padding-left: var(--ci-space-2);
  }

  .ci-list-row[data-menu='none'] {
    padding-right: var(--ci-space-2);
  }

  .ci-list-glyph {
    width: var(--ci-space-4);
  }

  .ci-list-row__open {
    gap: var(--ci-space-2);
  }

  .ci-list-row__when {
    min-width: 40px;
  }
}


/* /src/features/carbon-intelligence/chat/components/floating-menu.css */
/* Rich popovers and the slash-command list: white on the page, a hairline and one menu shadow,
   above everything but dialogs. The popover outer box is positioned by Floating UI; its inner
   box carries the open transition, so the two transforms never fight. */

.ci-floating {
  z-index: 60;
  display: flex;
  flex-direction: column;
  min-width: 0;
  outline: none;
}

.ci-floating__body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: inherit;
  overflow: auto;
  border: 1px solid var(--ci-line);
  border-radius: var(--ci-radius-card);
  background: var(--ci-surface);
  box-shadow: var(--shadow-md);
  color: var(--gaia-foreground);
  font: var(--ci-type-control);
  transition-timing-function: var(--ci-ease);
}

/* The slash-command suggestion list is a separate listbox, not CiMenu. */
.ci-menu {
  min-width: 220px;
  padding: 6px;
}

.ci-menu__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border-radius: var(--ci-radius-control);
  color: var(--gaia-foreground);
  font: var(--ci-type-control);
  text-align: left;
  outline: none;
  cursor: pointer;
  transition: background var(--ci-duration-press) ease-out;
}

.ci-menu__item[data-ci-active='true'] {
  background: oklch(from var(--ci-fill) l c h / 0.7);
}

/* A command that cannot run yet greys; the line saying why stays readable. */
.ci-menu__item[aria-disabled='true'] {
  cursor: not-allowed;
}

.ci-menu__item[aria-disabled='true'] :is(.ci-menu__icon, .ci-menu__label) {
  opacity: 0.4;
}

.ci-menu__icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 20px;
  color: var(--gaia-muted-foreground);
}

.ci-menu__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.ci-menu__label {
  flex: 1;
  min-width: 0;
}

.ci-menu__description {
  color: var(--gaia-muted-foreground);
  font: var(--ci-type-caption);
}

.ci-menu__heading {
  padding: 8px 10px 4px;
  color: var(--gaia-muted-foreground);
  font: var(--ci-type-caption);
}

/* A tooltip: one short label in navy on the page's text colour, above everything but dialogs. */
.ci-tooltip {
  z-index: 60;
  pointer-events: none;
}

.ci-tooltip__body {
  padding: 4px 8px;
  border-radius: var(--ci-radius-control);
  background: var(--gaia-foreground);
  color: var(--gaia-background);
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
  transition-timing-function: var(--ci-ease);
}

/* Icon-only controls: 32 px in rows and headers, 28 px inside a card. Quiet until hovered. */
.ci-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: var(--ci-radius-control);
  color: var(--gaia-muted-foreground);
  background: transparent;
  transition:
    background var(--ci-duration-press) ease-out,
    color var(--ci-duration-press) ease-out;
}
.ci-icon-button[data-size='card'] {
  width: 28px;
  height: 28px;
}
.ci-icon-button:hover:not(:disabled) {
  background: oklch(from var(--ci-fill) l c h / 0.7);
  color: var(--gaia-foreground);
}
.ci-icon-button[aria-pressed='true'] {
  color: var(--gaia-foreground);
  background: oklch(from var(--ci-fill) l c h / 0.7);
}
.ci-icon-button:focus-visible {
  outline: 2px solid var(--gaia-ring);
  outline-offset: 1px;
}
.ci-icon-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}


/* /src/features/carbon-intelligence/chat/components/ci-list-toolbar.css */
/* The toolbar of a list page: pill choices on the canvas, then one white search field.

   The search sits in the room the filters leave (`.ci-search-room`, which grows into it and is a
   size container). The field is up to 320px wide and shrinks with the room down to 220px; below
   that only the search button shows, and pressing it opens the field in the row, the
   filters stepping aside until the search is closed empty. */

.ci-search-room {
  display: flex;
  flex: 1 1 0;
  justify-content: flex-end;
  min-width: 32px;
  container: ci-search-room / inline-size;
}

.ci-search-room__toggle {
  display: none;
}

@container ci-search-room (width < 220px) {
  .ci-search-room:not([data-open]) .ci-search-field {
    display: none;
  }

  .ci-search-room:not([data-open]) .ci-search-room__toggle {
    display: inline-flex;
    align-items: center;
    height: 40px;
  }
}

.ci-search-field {
  position: relative;
  display: flex;
  flex: 0 1 320px;
  align-items: center;
  min-width: 220px;
  height: 40px;
  color: var(--gaia-muted-foreground);
}

.ci-search-field > svg {
  position: absolute;
  left: 12px;
  pointer-events: none;
}

.ci-search-field input {
  width: 100%;
  height: 100%;
  padding: 0 36px;
  border: 1px solid var(--ci-line);
  border-radius: var(--ci-radius-control);
  background: var(--ci-surface);
  color: var(--gaia-foreground);
  font: var(--ci-type-control);
  outline: none;
  appearance: none;
  transition: border-color var(--ci-duration-press) ease-out;
}

.ci-search-field input::placeholder {
  color: var(--gaia-muted-foreground);
}

/* The browser's own clear cross would sit beside ours. */
.ci-search-field input::-webkit-search-cancel-button {
  appearance: none;
}

.ci-search-field input:focus-visible {
  border-color: var(--gaia-ring);
}

.ci-search-field__clear {
  position: absolute;
  right: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--ci-radius-control);
  background: transparent;
  color: var(--gaia-muted-foreground);
  transition: background var(--ci-duration-press) ease-out;
}

.ci-search-field__clear:hover {
  background: oklch(from var(--ci-fill) l c h / 0.7);
  color: var(--gaia-foreground);
}

.ci-search-field__clear:focus-visible {
  outline: 2px solid var(--gaia-ring);
  outline-offset: 1px;
}

.ci-segmented {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ci-space-1);
}

.ci-segmented__option {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: var(--ci-radius-pill);
  background: transparent;
  color: var(--gaia-muted-foreground);
  font: var(--ci-type-label);
  white-space: nowrap;
  transition:
    background var(--ci-duration-press) ease-out,
    color var(--ci-duration-press) ease-out;
}

.ci-segmented__option:hover {
  background: oklch(from var(--ci-fill) l c h / 0.7);
  color: var(--gaia-foreground);
}

.ci-segmented__option[aria-checked='true'] {
  background: var(--gaia-foreground);
  color: var(--gaia-card);
}

.ci-segmented__option:focus-visible {
  outline: 2px solid var(--gaia-ring);
  outline-offset: 2px;
}


/* /src/features/carbon-intelligence/chat/components/library/component-content.css */
/* What sits inside an answer card, below its header: one row of view controls, the rows or the
   chart, a fold that says what it hides, and at most one line under it. The content measures its
   own width (a container), so the same card reads in the 760 px chat column and the 400 px panel.
   Colours come from Gaia through the CI aliases; one series is chart colour 1. */

.ci-content {
  container: ci-content / inline-size;
  /* The two numeric columns take the width of the widest figure they hold; the name gives way. */
  --ci-row-columns: minmax(0, 13rem) minmax(48px, 1fr) auto auto;
  color: var(--gaia-foreground);
  font-size: 14px;
  line-height: 20px;
}

/* A button never keeps the browser's own type (13.33 px, normal): names, focus links and the
   fold's Show read as the content's 14/20. */
.ci-content button {
  font-family: inherit;
  font-size: 14px;
  line-height: 20px;
}

.ci-content sub {
  font-size: 0.72em;
  line-height: 0;
  vertical-align: -0.2em;
}

/* ---- the control row: a caption on the left, at most two segmented controls on the right ---- */

.ci-control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  min-height: 28px;
  margin: 0 0 8px;
}

.ci-control-row__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  min-width: 0;
  font-size: 12px;
  line-height: 16px;
  color: var(--gaia-muted-foreground);
}
.ci-control-row__caption b {
  font-weight: 500;
  color: var(--gaia-foreground);
}

.ci-control-row__controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex-shrink: 0;
  gap: 8px;
  max-width: 100%;
}

@container ci-content (max-width: 520px) {
  .ci-control-row {
    flex-wrap: wrap;
  }
}

.ci-segmented {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border-radius: var(--ci-radius-control);
  background: oklch(from var(--ci-fill) l c h / 0.6);
}
.ci-segmented button {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
  color: var(--gaia-muted-foreground);
  transition:
    background var(--ci-duration-press) ease-out,
    color var(--ci-duration-press) ease-out;
}
.ci-segmented button:hover {
  color: var(--gaia-foreground);
}
.ci-segmented button[aria-checked='true'],
.ci-segmented button[aria-selected='true'] {
  background: var(--ci-surface);
  box-shadow: 0 0 0 1px var(--ci-line);
  color: var(--gaia-foreground);
  font-weight: 500;
}
.ci-segmented button:disabled {
  cursor: default;
  opacity: 0.4;
}
.ci-segmented button:disabled:hover {
  color: var(--gaia-muted-foreground);
}
.ci-segmented button:focus-visible {
  outline: 2px solid var(--gaia-ring);
  outline-offset: 1px;
}
/* In a card a long option, such as a side's name, shortens; its full name shows on hover. */
.ci-content .ci-segmented {
  max-width: 100%;
}
.ci-content .ci-segmented button {
  min-width: 0;
}
.ci-segmented__label {
  overflow: hidden;
  text-overflow: ellipsis;
}
/* A keyboard user reads a long option in full: while it holds focus its whole name wraps. */
.ci-content .ci-segmented button:focus-visible {
  height: auto;
  min-height: 24px;
  white-space: normal;
}
.ci-content .ci-segmented button:focus-visible .ci-segmented__label {
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: start;
}

/* A series key: a swatch and its word, never a colour alone. */
.ci-key {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-width: 0;
  white-space: nowrap;
}
/* A key's word wraps to two lines before it shortens, so its name reads without hover. */
.ci-key__label {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  white-space: normal;
}
.ci-key i {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  flex-shrink: 0;
}
.ci-key i[data-shape='ring'] {
  border: 1.5px solid var(--gaia-muted-foreground);
  border-radius: 50%;
  background: var(--ci-surface);
}
.ci-key i[data-shape='dot'] {
  border-radius: 50%;
}
.ci-key i[data-shape='hollow'] {
  border: 1.5px solid var(--gaia-chart-1);
  background: var(--ci-surface);
}
/* A line series: a short stroke through its dot, as the chart draws it. */
.ci-key i[data-shape='line'] {
  position: relative;
  width: 14px;
  height: 2px;
  border-radius: 1px;
}
.ci-key i[data-shape='line']::after {
  content: '';
  position: absolute;
  top: -3px;
  left: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: inherit;
}

/* ---- column heads: aligned with their values, the unit written once ---- */

.ci-heads {
  display: grid;
  grid-template-columns: var(--ci-row-columns);
  column-gap: 12px;
  align-items: end;
  padding: 0 0 4px;
  border-bottom: 1px solid var(--ci-line);
  font-size: 12px;
  line-height: 16px;
  color: var(--gaia-muted-foreground);
}
.ci-heads > span:not(:first-child) {
  text-align: right;
}

/* ---- ranked rows: name, bar, tonnes, share, read left to right in one line ---- */

.ci-ranked {
  display: grid;
  grid-template-columns: var(--ci-row-columns);
  column-gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* The heads and the rows share one grid, so every figure, bar and head of a list ends at one x.
   The name and the bar share the spare width two to three: a cap on the name cuts real ones. */
.ci-ranked-frame {
  display: grid;
  --ci-row-columns: minmax(0, 2fr) minmax(48px, 3fr) auto auto;
  grid-template-columns: var(--ci-row-columns);
  column-gap: 12px;
}
.ci-ranked-frame > .ci-heads,
.ci-ranked-frame > .ci-ranked,
.ci-ranked > .ci-ranked-row {
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
}

@container ci-content (max-width: 520px) {
  .ci-ranked-frame,
  .ci-heads,
  .ci-ranked {
    --ci-row-columns: minmax(0, 1fr) 40px auto auto;
  }
}

.ci-ranked-row {
  position: relative;
  display: grid;
  grid-template-columns: var(--ci-row-columns);
  column-gap: 12px;
  align-items: center;
  min-height: 28px;
  border-bottom: 1px solid oklch(from var(--ci-line) l c h / 0.6);
  font-variant-numeric: tabular-nums;
}
.ci-ranked-row[data-pickable] {
  cursor: pointer;
}
.ci-ranked-row[data-pickable]:hover {
  background: oklch(from var(--ci-fill) l c h / 0.25);
}

.ci-ranked-row__label {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
/* A name too long for one line takes a second, and only past it ends in an ellipsis. */
.ci-ranked-row__label > span:not(.ci-unit-tree__name),
.ci-ranked-row__label > .ci-row-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

/* A drilling row's name is its button: it looks like the name, and shows where focus is. */
.ci-row-name {
  min-width: 0;
  overflow: hidden;
  border-radius: 4px;
  text-align: left;
  text-overflow: ellipsis;
}
.ci-row-name:hover {
  text-decoration: underline;
  text-decoration-color: var(--ci-line);
  text-underline-offset: 3px;
}
.ci-row-name:focus-visible {
  outline: 2px solid var(--gaia-ring);
  outline-offset: 1px;
}
.ci-ranked-row__label .ci-quote {
  flex-shrink: 0;
}

.ci-ranked-row__value {
  text-align: right;
}
.ci-ranked-row__share {
  text-align: right;
  color: var(--gaia-muted-foreground);
}

/* A bar's lane: the track, and the share of the largest row filled in the series colour. */
.ci-track {
  display: flex;
  overflow: hidden;
  height: 8px;
  border-radius: var(--ci-radius-pill);
  background: oklch(from var(--ci-line) calc(l + 0.04) c h);
}
.ci-track > span {
  height: 100%;
  background: var(--gaia-chart-1);
}
.ci-track > span:last-child {
  border-radius: 0 var(--ci-radius-pill) var(--ci-radius-pill) 0;
}
.ci-track[data-thin] {
  height: 6px;
}

/* Where the running share passes the Pareto mark: a hairline under the row; the caption says it. */
.ci-pareto {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 0;
  border-top: 1px solid oklch(from var(--gaia-foreground) l c h / 0.45);
}

/* ---- the fold: how many are hidden, how many tonnes, what share, and Show ---- */

.ci-fold {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 30px;
  border-bottom: 1px solid oklch(from var(--ci-line) l c h / 0.6);
  font-size: 12px;
  line-height: 16px;
  color: var(--gaia-muted-foreground);
  font-variant-numeric: tabular-nums;
}
.ci-fold button {
  flex-shrink: 0;
  height: 28px;
  font-size: 14px;
  line-height: 20px;
  padding: 0 8px;
  border-radius: 6px;
  font-weight: 500;
  color: var(--gaia-foreground);
  transition: background var(--ci-duration-press) ease-out;
}
.ci-fold button:hover {
  background: oklch(from var(--ci-fill) l c h / 0.7);
}
.ci-fold button:focus-visible {
  outline: 2px solid var(--gaia-ring);
  outline-offset: 1px;
}

/* One line under the content: what is not drawn and why. */
.ci-content-note {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 16px;
  color: var(--gaia-muted-foreground);
}

/* What a card says when it has nothing to draw: one line at the card's table size. */
.ci-nothing-recorded {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--gaia-muted-foreground);
}

/* The one sentence a card says when the drawing failed and the figures follow as a table. */
.ci-content-failed {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 16px;
  color: var(--gaia-muted-foreground);
}
.ci-content-failed b {
  font-weight: 500;
  color: var(--gaia-foreground);
}

@media (prefers-reduced-motion: reduce) {
  .ci-segmented button,
  .ci-fold button {
    transition: none;
  }
}

/* ---- the table view of ranked rows: the header over its column, a total row at the foot ---- */

.ci-ranked-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.ci-ranked-table th {
  padding: 0 12px 4px 0;
  border-bottom: 1px solid var(--ci-line);
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  color: var(--gaia-muted-foreground);
  text-align: left;
}
.ci-ranked-table td {
  height: 28px;
  padding: 0 12px 0 0;
  border-bottom: 1px solid oklch(from var(--ci-line) l c h / 0.6);
}
.ci-ranked-table th:last-child,
.ci-ranked-table td:last-child {
  padding-right: 0;
}
.ci-ranked-table .ci-ranked-table__number {
  text-align: right;
  white-space: nowrap;
}
.ci-ranked-table__name {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.ci-ranked-table__name > span:first-child,
.ci-ranked-table__name > .ci-row-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ci-ranked-table tr[data-pickable] {
  cursor: pointer;
}
/* A fixed table reads its column widths from the header row: the name takes what is left. */
.ci-ranked-table th:nth-child(2),
.ci-ranked-table td:nth-child(2) {
  width: 7rem;
}
.ci-ranked-table th:last-child,
.ci-ranked-table td:last-child {
  width: 12.5rem;
}
.ci-ranked-table__share .ci-track {
  display: inline-flex;
  width: 8rem;
  margin-right: 8px;
  vertical-align: middle;
}
.ci-ranked-table__share > span:last-child {
  display: inline-block;
  width: 3.5rem;
  color: var(--gaia-muted-foreground);
}
/* The rows a folded table ends with are rows of the list: the cells' 14/20 and tabular digits,
   in the muted colour that tells them from the ranked rows. */
.ci-ranked-table__fold td {
  color: var(--gaia-muted-foreground);
}
.ci-ranked-table__fold .ci-fold {
  border-bottom: 0;
  font-size: 14px;
  line-height: 20px;
}
.ci-ranked-table__total td {
  border-top: 1px solid var(--ci-line);
  border-bottom: 0;
  font-weight: 500;
}

@container ci-content (max-width: 520px) {
  /* A fallback table's columns take their figures' width, so a narrow card keeps them inside it. */
  .ci-ranked-table[data-figures-table] {
    table-layout: auto;
  }
  .ci-ranked-table[data-figures-table] th:nth-child(2),
  .ci-ranked-table[data-figures-table] td:nth-child(2),
  .ci-ranked-table[data-figures-table] th:last-child,
  .ci-ranked-table[data-figures-table] td:last-child {
    width: auto;
  }
  .ci-ranked-table[data-figures-table] th,
  .ci-ranked-table[data-figures-table] td {
    padding-right: 8px;
  }
  /* A heading may wrap; the figures under it never do. */
  .ci-ranked-table[data-figures-table] th.ci-ranked-table__number {
    white-space: normal;
  }
  /* A fallback table's last column is a figure, not a share, so it keeps the width it needs. */
  .ci-ranked-table:has(.ci-ranked-table__share) th:last-child,
  .ci-ranked-table:has(.ci-ranked-table__share) td:last-child {
    width: 3.5rem;
  }
  .ci-ranked-table__share .ci-track {
    display: none;
  }
  /* A narrow table's columns take the width their content needs, so a long figure stays whole. */
  .ci-ranked-table {
    table-layout: auto;
  }
  .ci-ranked-table th:nth-child(2),
  .ci-ranked-table td:nth-child(2) {
    width: 1%;
  }
  .ci-ranked-table__name {
    padding-block: 4px;
  }
  .ci-ranked-table__name > span:first-child,
  .ci-ranked-table__name > .ci-row-name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* ---- the expanded table view: the same rows as a table, the name giving way first ---- */

.ci-rows-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 20px;
}
.ci-rows-table th {
  padding: 6px 10px;
  border-bottom: 1px solid var(--ci-line);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  color: var(--gaia-muted-foreground);
  /* A heading names its column in the room it is given, on two lines rather than cut off. */
  white-space: normal;
  overflow-wrap: anywhere;
}
.ci-rows-table td {
  padding: 6px 10px;
  border-bottom: 1px solid var(--ci-line);
  color: var(--gaia-foreground);
}
/* A figure keeps one line and its digits; a name may break rather than push the table out. */
.ci-rows-table th[data-numeric],
.ci-rows-table td[data-numeric] {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.ci-rows-table td[data-numeric] {
  white-space: nowrap;
}
/* A heading says what its column holds, in as many lines as the column needs. */
.ci-rows-table th {
  overflow-wrap: anywhere;
}
.ci-rows-table td:not([data-numeric]) {
  overflow-wrap: anywhere;
}
.ci-rows-table__quote {
  width: 1px;
  padding: 2px 4px 2px 0;
  border-bottom: 1px solid var(--ci-line);
}

/* Narrow, the figures keep their digits and the name gives way to them. */
@container ci-content (max-width: 520px) {
  .ci-rows-table th,
  .ci-rows-table td {
    padding-inline: 4px;
  }
}

/* The figure card under the pointer keeps its share whole; the name gives way first. */
.ci-figure-card [data-ci='figure-share'] {
  flex-shrink: 0;
}

/* The unit of a chart's values, written once above it rather than on every tick. */
.ci-axis-title {
  margin: 0 0 2px;
  font-size: 12px;
  line-height: 16px;
  color: oklch(from var(--gaia-muted-foreground) calc(l + 0.22) c h);
}

/* A fallback table's words clamp to two lines like the card's labels; the full text is on hover. */
.ci-figures-table__words {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}


/* /src/features/carbon-intelligence/chat/sections/message-actions.css */
/* The action row under an answer, the overflow menu it opens, and the affordance that carries
   one figure out of a view into the next question — the controls a person acts on an answer
   with, wherever on the answer they sit.

   The row's reveal-on-hover is chat.css's (`.ci-turn:hover .ci-actions > *`). What is here are the
   two cases where hovering is not how it gets found: a touch screen, which has no hover at all,
   and the last answer, which is the one being acted on. */

/* Both selectors are written against `.ci-turn` so they outweigh the single-class rule in
   chat.css that hides the row. Bundlers are free to order two stylesheets either way, and at
   equal specificity the later one wins — which would leave the row hidden on a touch screen
   half the time. */
@media (hover: none) {
  .ci-turn .ci-actions > * {
    opacity: 1;
  }
}

/* The newest answer keeps its row on screen: it is where a rating, a retry or a follow-up is
   most likely, and nothing above it is competing for the same attention. */
.ci-turn .ci-actions-last > * {
  opacity: 1;
}

/* Under a settled answer: what it stands on as a trace line, then the icon row (DEV-3572). The
   row's 24px ghost buttons sit 2px apart, the first one's glyph on the answer's left edge. */
.ci-answer-row-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.ci-answer-row {
  min-height: 24px;
  margin-left: -5px;
  padding-inline: 0;
}

.ci-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

/* The sources inside their trace line: 12px rows on the line's own left rule. */
.gaia-trace__detail .ci-source-list__row {
  padding: 4px 6px;
  margin-left: -6px;
  font-size: inherit;
}

.gaia-trace__detail .ci-source-list__title,
.gaia-trace__detail .ci-source-list__label--outside {
  line-height: 16px;
}

.gaia-trace__detail .ci-answer-sources__as-of {
  margin: 6px 0 0;
  padding-top: 6px;
}

/* Where the figures came from and when, as a button: its popover names the sources. */
.ci-answer-source {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  min-height: 28px;
  padding: 0 6px;
  margin-left: -6px;
  border-radius: var(--ci-radius-control);
  font-size: 12px;
  line-height: 16px;
  color: var(--gaia-muted-foreground);
  transition: background var(--ci-duration-press) ease-out;
}
button.ci-answer-source:hover,
button.ci-answer-source[aria-expanded='true'] {
  background: oklch(from var(--ci-fill) l c h / 0.7);
  color: var(--gaia-foreground);
}

/* What an answer stands on, in the popover the source line opens. */
.ci-answer-sources {
  padding: 12px;
}
.ci-answer-sources__heading {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--gaia-muted-foreground);
}
.ci-answer-sources__as-of {
  margin: 8px 0 0;
  padding-top: 8px;
  border-top: 1px solid var(--ci-line);
  font-size: 12px;
  color: var(--gaia-muted-foreground);
}
.ci-source-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ci-source-list__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 6px 8px;
  border-radius: var(--ci-radius-control);
  font-size: 14px;
  text-align: left;
}
button.ci-source-list__row:hover {
  background: oklch(from var(--ci-fill) l c h / 0.7);
}
.ci-source-list__label {
  min-width: 0;
  color: var(--gaia-foreground);
}
/* A file read: its name on one line, the note about it under, where a wiki row puts the wiki. */
.ci-source-list__row--outside {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.ci-source-list__row--outside .ci-source-list__label {
  width: 100%;
  overflow: hidden;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ci-source-list__row--outside .ci-source-list__detail {
  line-height: 16px;
}
.ci-source-list__detail {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--gaia-muted-foreground);
  font-variant-numeric: tabular-nums;
}

/* A help article the answer was read from: its title over the wiki's name, opening in a new tab. */
a.ci-source-list__link {
  align-items: center;
  color: inherit;
  text-decoration: none;
}
a.ci-source-list__link:hover {
  background: oklch(from var(--ci-fill) l c h / 0.7);
}
a.ci-source-list__link:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--gaia-ring);
}
.ci-source-list__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ci-source-list__title {
  display: -webkit-box;
  overflow: hidden;
  line-height: 20px;
  color: var(--gaia-foreground);
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
.ci-source-list__link .ci-source-list__detail {
  line-height: 16px;
}
.ci-source-list__external {
  flex-shrink: 0;
  color: var(--gaia-muted-foreground);
  transition: color 120ms;
}
a.ci-source-list__link:hover .ci-source-list__external,
a.ci-source-list__link:focus-visible .ci-source-list__external {
  color: var(--gaia-foreground);
}

/* Quoting one figure out of a view. The control belongs to the row or tile it sits in and
   surfaces when that is hovered or holds focus — a table of thirty rows showing thirty of these
   at once would be louder than the figures. Opacity only: it stays in the tab order unhovered,
   so a keyboard finds it, and it lights up as soon as it takes focus. */
.ci-quote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  color: var(--gaia-muted-foreground);
  opacity: 0;
  transition:
    opacity 120ms,
    background 120ms;
}
.ci-quote-host:hover .ci-quote,
.ci-quote-host:focus-within .ci-quote,
.ci-quote:focus-visible {
  opacity: 1;
}
.ci-quote:hover {
  background: oklch(from var(--ci-fill) l c h / 0.7);
  color: var(--gaia-foreground);
}

/* Under a chart, where the figure being pointed at has to be named for the control to mean
   anything — the bar itself cannot hold a button the pointer could reach. */
.ci-quote-inline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 8px;
  border-radius: 7px;
  font-size: 12px;
  color: var(--gaia-muted-foreground);
  transition: background 120ms;
}
.ci-quote-inline:hover {
  background: oklch(from var(--ci-fill) l c h / 0.7);
  color: var(--gaia-foreground);
}

/* On a tile the control has no column of its own, so it sits in the corner over the figure. */
.ci-quote-corner {
  position: absolute;
  top: 6px;
  right: 6px;
}

/* A tile is the positioning context for the corner control above. */
.ci-quote-host-tile {
  position: relative;
}

@media (hover: none) {
  .ci-quote {
    opacity: 1;
  }
}

/* The fold under a long table: the rows past the first eight open in place, under it. */
.ci-rows-show-all {
  display: inline-flex;
  align-items: center;
  height: 28px;
  margin-top: 4px;
  padding: 0 10px;
  border-radius: var(--gaia-radius-md);
  font-size: 12px;
  color: var(--gaia-muted-foreground);
  transition: background 120ms ease-out;
}
.ci-rows-show-all:hover {
  background: oklch(from var(--ci-fill) l c h / 0.7);
  color: var(--gaia-foreground);
}

/* The mark on a row that quotes itself when pressed: smaller than a button, same reveal. */
.ci-quote-mark {
  width: 16px;
  height: 16px;
}

/* A chart and the card naming the figure under the pointer or the focus. The card is placed by a
   transform from the frame's corner, so following the pointer never moves anything in the flow. */
.ci-chart-frame {
  position: relative;
}

.ci-figure-card {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--ci-line);
  border-radius: var(--ci-radius-control);
  background: var(--ci-surface);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  animation: ci-figure-card-in 140ms var(--ci-ease);
}
@keyframes ci-figure-card-in {
  from {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ci-figure-card {
    animation: none;
  }
}
/* In a narrow chart (the assistant panel's) the card takes two lines: the name on the first, the
   figure, its share and the question on the second, never wider than the chart. */
.ci-figure-card[data-lines='2'] {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  align-items: baseline;
  column-gap: 8px;
  row-gap: 2px;
  height: auto;
  padding: 6px 12px;
}
.ci-figure-card[data-lines='2'] [data-ci='figure-name'] {
  grid-column: 1 / -1;
  line-height: 16px;
}
.ci-figure-card[data-lines='2'] .ci-figure-card__value {
  line-height: 20px;
}
.ci-figure-card__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  color: var(--gaia-muted-foreground);
}
.ci-figure-card__value {
  font-size: 14px;
  font-weight: 500;
  color: var(--gaia-foreground);
  font-variant-numeric: tabular-nums;
}
.ci-figure-card__why {
  flex-shrink: 0;
  font-size: 12px;
  line-height: 16px;
  color: var(--gaia-foreground);
  text-decoration: underline;
  text-decoration-color: var(--ci-line);
  text-underline-offset: 3px;
}
.ci-figure-card__why:hover {
  text-decoration-color: currentColor;
}


/* /src/features/carbon-intelligence/chat/components/library/factor-table.css */
/* The factor table: a stored label of at most two lines, its unit and year beside it, the entries
   that use it and its share as a bar. Laid out to the card's width, never a sideways scroll. */

/* The editions line wraps under the caption sentence, held to it by the caption's own row gap. */
.ci-factors__editions {
  flex-basis: 100%;
  margin: 0;
}

.ci-factors__table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.ci-factors__table th {
  padding: 0 12px 4px 0;
  border-bottom: 1px solid var(--ci-line);
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  color: var(--gaia-muted-foreground);
  text-align: left;
  white-space: nowrap;
}
.ci-factors__table th:nth-last-child(2) {
  width: 4rem;
}
.ci-factors__table th[data-column='detail'] {
  width: 8.5rem;
}
.ci-factors__table th[data-column='share'] {
  width: 12rem;
}
.ci-factors__table td {
  height: 40px;
  padding: 3px 12px 3px 0;
  border-bottom: 1px solid oklch(from var(--ci-line) l c h / 0.6);
  vertical-align: middle;
}
.ci-factors__table th:last-child,
.ci-factors__table td:last-child {
  padding-right: 0;
}
.ci-factors__table [data-numeric] {
  text-align: right;
}

.ci-factors__name {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}
.ci-factors__name > span:first-child {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 14px;
  line-height: 20px;
}

/* A factor's name is its source's whole description: its tooltip wraps instead of running on. */
body:has(.ci-factors__name:hover) .ci-tooltip__body {
  max-width: 360px;
  white-space: normal;
}

.ci-factors__table td[data-column='detail'] {
  font-size: 12px;
  line-height: 16px;
  color: var(--gaia-muted-foreground);
}
.ci-factors__table td[data-column='detail'] > * {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ci-factors__share {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.ci-factors__share .ci-track {
  flex: 1 1 auto;
}
.ci-factors__share > span:last-child {
  flex-shrink: 0;
  width: max(3rem, var(--ci-factors-share, 0px));
  color: var(--gaia-muted-foreground);
}

@container ci-content (max-width: 520px) {
  .ci-factors__table [data-column='detail'] {
    display: none;
  }
  .ci-factors__table th[data-column='share'] {
    width: max(3.75rem, var(--ci-factors-share, 0px));
  }
  .ci-factors__share .ci-track,
  .ci-factors__table th [data-wide] {
    display: none;
  }
}

/* The years beside a factor's unit: a caption, never the browser's smaller size. */
.ci-factors small {
  font-size: 12px;
  line-height: 16px;
}


/* /src/features/carbon-intelligence/chat/components/library/activity-trend.css */
/* The activity trend: unit tabs that wrap on a narrow card. */

.ci-unit-tabs {
  flex-wrap: wrap;
  align-content: flex-start;
  max-width: 100%;
}


/* /src/features/carbon-intelligence/chat/components/library/comparison.css */
/* A comparison: the two totals lead, then one row per unit with a dot for each period. */

.ci-comparison__totals {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 4px 12px;
  margin: 0 0 8px;
  font-variant-numeric: tabular-nums;
}
.ci-comparison__totals small {
  display: block;
  font-size: 12px;
  line-height: 16px;
  color: var(--gaia-muted-foreground);
}
.ci-comparison__totals b {
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
}
.ci-comparison__arrow {
  padding-bottom: 2px;
  color: var(--gaia-muted-foreground);
}
.ci-comparison__change {
  padding-bottom: 3px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

.ci-comparison__rows {
  --ci-row-columns: minmax(0, 1fr) minmax(48px, 1fr) auto auto;
  display: grid;
  grid-template-columns: var(--ci-row-columns);
  column-gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ci-line);
}

/* Narrow, the two figures go one above the other: the name keeps 40% of the row and the
   figures take what they need beside it. */
@container ci-content (max-width: 520px) {
  .ci-comparison__rows {
    --ci-row-columns: 42% minmax(0, 1fr);
  }
  .ci-comparison__rows .ci-dumbbell {
    display: none;
  }
  .ci-comparison__rows > .ci-comparison__row {
    grid-template-columns: var(--ci-row-columns);
    grid-template-areas:
      'name values'
      'name difference';
    align-items: baseline;
    padding-block: 2px;
  }
  .ci-comparison__row > .ci-ranked-row__label {
    grid-area: name;
  }
  .ci-comparison__rows .ci-comparison__values {
    grid-area: values;
    white-space: normal;
  }
  .ci-comparison__difference {
    grid-area: difference;
  }
}

.ci-comparison__row {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  column-gap: 12px;
  align-items: center;
  min-height: 26px;
  border-bottom: 1px solid oklch(from var(--ci-line) l c h / 0.6);
  font-variant-numeric: tabular-nums;
}

.ci-comparison__values {
  font-size: 14px;
  line-height: 20px;
  text-align: right;
  white-space: nowrap;
  color: var(--gaia-muted-foreground);
}
.ci-comparison__values i {
  font-style: normal;
  color: oklch(from var(--gaia-muted-foreground) calc(l + 0.22) c h);
}

.ci-comparison__difference {
  font-weight: 500;
  text-align: right;
  white-space: nowrap;
}

/* The two dots of one unit on one scale, joined by a line when both periods hold tonnes. */
.ci-dumbbell {
  position: relative;
  height: 12px;
  margin: 0 6px;
  border-top: 1px solid transparent;
  background: linear-gradient(var(--ci-line), var(--ci-line)) center / 100% 1px no-repeat;
}
.ci-dumbbell__span {
  position: absolute;
  top: 4.5px;
  height: 3px;
  border-radius: var(--ci-radius-pill);
  background: oklch(from var(--ci-line) calc(l - 0.08) c h);
}
.ci-dumbbell__first,
.ci-dumbbell__second {
  position: absolute;
  top: 1px;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
}
.ci-dumbbell__first {
  border: 1.5px solid var(--gaia-muted-foreground);
  background: var(--ci-surface);
}
.ci-dumbbell__second {
  background: var(--gaia-foreground);
}


/* /src/features/carbon-intelligence/chat/components/library/coverage-grid.css */
/* The coverage grid: a label, a month strip and the tonnes per row, read left to right. The strip
   keeps one slot per month at any width, so 12 or 36 months fit without a sideways scroll. The
   figure column is one width for the whole grid, so every strip lines up with its own heading. */

.ci-coverage {
  --ci-coverage-columns: minmax(0, 1fr) 180px var(--ci-coverage-value);
}

/* The content is its own container, so the narrower columns are set on its rows. The strip gives
   way to the figures and to the name, which are read whole; the heads follow the same columns. */
@container ci-content (max-width: 520px) {
  .ci-coverage__heads,
  .ci-coverage__row {
    --ci-coverage-columns: minmax(0, 1fr) minmax(48px, 64px) var(--ci-coverage-value);
    column-gap: 8px;
  }
  /* Twelve initials overlap a 64 px strip: the quarters' first months stand for them. Every month
     keeps its slot, and only the letters the strip cannot hold make way, so each surviving initial
     stays over the month it names. */
  .ci-coverage__months[data-initials] > span:not(:nth-child(3n + 1)) .ci-coverage__month-head {
    visibility: hidden;
  }
}

.ci-coverage__heads,
.ci-coverage__row {
  display: grid;
  grid-template-columns: var(--ci-coverage-columns);
  column-gap: 16px;
  align-items: center;
}

.ci-coverage__heads {
  padding: 0 0 4px;
  border-bottom: 1px solid var(--ci-line);
  font-size: 12px;
  line-height: 16px;
  color: var(--gaia-muted-foreground);
}
.ci-coverage__heads > span:last-child {
  text-align: right;
}
.ci-coverage__months {
  display: flex;
}
.ci-coverage__months > span {
  flex: 1 1 0;
  min-width: 0;
  overflow: visible;
  text-align: center;
  white-space: nowrap;
}
/* A head is written in a box of its own, centred on the month it names: a letter wider than a
   narrow month's slot is drawn whole instead of being cut by the slot it stands for. */
.ci-coverage__month-head {
  position: relative;
  left: 50%;
  display: block;
  width: max-content;
  transform: translateX(-50%);
}

.ci-coverage__rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ci-coverage__row {
  min-height: 28px;
  padding: 4px 0;
  border-bottom: 1px solid oklch(from var(--ci-line) l c h / 0.6);
  font-variant-numeric: tabular-nums;
}
.ci-coverage__row[data-ci='coverage-group'] {
  min-height: 48px;
}

.ci-coverage__label {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.ci-coverage__label > span,
.ci-coverage__label > button,
.ci-coverage__label small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ci-coverage__label > button {
  text-align: left;
  border-radius: 4px;
}
.ci-coverage__label > button:hover {
  text-decoration: underline;
  text-decoration-color: var(--ci-line);
  text-underline-offset: 3px;
}
.ci-coverage__label > button:focus-visible {
  outline: 2px solid var(--gaia-ring);
  outline-offset: 1px;
}
.ci-coverage__pattern {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 8px;
  row-gap: 2px;
}
/* A flex line draws no ellipsis: a narrow pattern wraps its words instead of cutting one. */
.ci-coverage__label > .ci-coverage__pattern {
  overflow: visible;
  white-space: normal;
}
.ci-coverage__pattern b {
  font-weight: 500;
}
.ci-coverage__pattern span,
.ci-coverage__label small {
  font-size: 12px;
  line-height: 16px;
  color: var(--gaia-muted-foreground);
}

.ci-coverage__value {
  text-align: right;
}

/* One month strip: an equal slot per month, a bar sized by its tonnes, a gap a low dash. */
.ci-strip {
  display: flex;
  align-items: flex-end;
  height: 22px;
}
.ci-strip__slot {
  display: flex;
  flex: 1 1 0;
  align-items: flex-end;
  justify-content: center;
  min-width: 0;
  height: 100%;
}
.ci-strip__bar {
  width: 72%;
  min-width: 1px;
  border-radius: 2px;
  background: var(--gaia-chart-1);
}
.ci-strip__bar[data-negative] {
  border: 1.25px solid var(--gaia-chart-1);
  background: var(--ci-surface);
}
.ci-strip__bar[data-gap] {
  border-radius: 1.5px;
}
.ci-strip__bar[data-gap='due'],
.ci-coverage__swatch[data-gap='due'] {
  background: oklch(from var(--gaia-warning) l c h / 0.8);
}
.ci-strip__bar[data-gap='none'],
.ci-coverage__swatch[data-gap='none'] {
  background: var(--ci-line);
}
/* A month no log reaches at all: neither due nor recorded, so it is drawn dashed and apart from
   the light grey a covered month with nothing in it leaves. */
.ci-strip__bar[data-gap='uncovered'],
.ci-coverage__swatch[data-gap='uncovered'] {
  background: repeating-linear-gradient(
    to right,
    var(--gaia-muted-foreground) 0 2px,
    transparent 2px 4px
  );
}

.ci-coverage__swatch {
  display: inline-block;
  width: 12px;
  height: 3px;
  margin: 0 4px 0 0;
  border-radius: 1.5px;
  vertical-align: middle;
}

/* With the third mark, the keys sit in a row of their own, each swatch held to its word. */
.ci-coverage__keys {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}
.ci-coverage__keys .ci-coverage__swatch {
  flex-shrink: 0;
  margin: 0;
}
.ci-coverage__keys-note {
  flex-basis: 100%;
}


/* /src/features/carbon-intelligence/chat/components/library/entries-table.css */
/* The entries table: two-line rows, five columns that fit the card, never a sideways scroll. */

.ci-entries__core {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 8px;
  border: 1px solid var(--ci-line);
  border-radius: var(--ci-radius-control);
  font-size: 12px;
  line-height: 16px;
  color: var(--gaia-muted-foreground);
  white-space: nowrap;
  transition: background var(--ci-duration-press) ease-out;
}
.ci-entries__core:hover {
  background: oklch(from var(--ci-fill) l c h / 0.5);
  color: var(--gaia-foreground);
}

.ci-entries__table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

/* The period and the amount are figures, so their columns take the width of the widest one they
   hold, plus the cell's own padding: a ten-digit amount and a period across two years read whole.
   Every other column shares what is left, so the name gives way first and no card scrolls. */
.ci-entries__table col[data-column='period'] {
  width: min(calc(var(--ci-entries-period, 100%) + 12px), 10rem);
}
.ci-entries__table col[data-column='tonnes'] {
  width: min(calc(var(--ci-entries-tonnes, 100%) + 12px), 9rem);
}
.ci-entries__table th {
  padding: 0 12px 4px 0;
  border-bottom: 1px solid var(--ci-line);
  vertical-align: bottom;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  color: var(--gaia-muted-foreground);
  text-align: left;
  /* A header names its column in the width the table gives it, on two lines rather than cut. */
  white-space: normal;
  overflow-wrap: anywhere;
}
.ci-entries__table td {
  padding: 4px 12px 4px 0;
  border-bottom: 1px solid oklch(from var(--ci-line) l c h / 0.6);
  vertical-align: top;
  font-size: 14px;
  line-height: 20px;
  color: var(--gaia-muted-foreground);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* A period and an amount wrap at their own spaces rather than run past their column. */
.ci-entries__table td[data-column='period'],
.ci-entries__table td[data-column='input'] {
  white-space: normal;
}
.ci-entries__table th:last-child,
.ci-entries__table td:last-child {
  padding-right: 0;
}
.ci-entries__table [data-numeric] {
  text-align: right;
}
.ci-entries__table td:last-child {
  font-size: 14px;
  line-height: 20px;
  color: var(--gaia-foreground);
}
.ci-entries__table td:last-child b {
  font-weight: 500;
}

/* The title line keeps its 20 px when the 22 px quote button sits in it. */
.ci-entries__title {
  display: flex;
  align-items: center;
  height: 20px;
  gap: 6px;
  min-width: 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--gaia-foreground);
}
.ci-entries__title b {
  overflow: hidden;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ci-entries__table small {
  display: block;
  overflow: hidden;
  font-size: 12px;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* A repeated entry: the one amber mark on the card, with its words. */
.ci-entries__repeat {
  flex-shrink: 0;
  padding: 0 7px;
  border-radius: var(--ci-radius-pill);
  background: oklch(from var(--gaia-warning) l c h / 0.13);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  color: var(--gaia-badge-warning-foreground, var(--gaia-foreground));
  white-space: nowrap;
}

.ci-control-row__caption .ci-entries__repeat {
  margin-left: 8px;
}

/* A calculation that did not complete: its word beside the title, red when it failed. */
.ci-entries__state {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  color: var(--gaia-muted-foreground);
  white-space: nowrap;
}
.ci-entries__state[data-state='failed'] {
  color: var(--gaia-destructive);
}

/* In the panel the entry keeps its period and tonnes, or its activity source and tonnes; the
   card draws none of the columns `SECONDARY_COLUMNS` names, and expanded their values join the
   entry's second line. */
@container ci-content (max-width: 520px) {
  .ci-entries__table col[data-column='period'] {
    width: min(calc(var(--ci-entries-period, 100%) + 12px), 7.5rem);
  }
}

/* A wide card holds a period across two years on one line beside a ten-digit amount. */
@container ci-content (min-width: 900px) {
  .ci-entries__table col[data-column='period'] {
    width: min(calc(var(--ci-entries-period, 100%) + 12px), 13rem);
  }
}


/* /src/features/carbon-intelligence/chat/components/library/import-timeline.css */
/* The import timeline: the period's months as one strip with each import a bar at its day, then
   the imports as one-line rows. Every position is a share of the width, so nothing scrolls. */

.ci-imports__strip {
  margin: 0 0 8px;
}
.ci-imports__plot {
  position: relative;
  height: 36px;
  border-bottom: 1px solid var(--ci-line);
}
.ci-imports__month {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  border-left: 1px solid oklch(from var(--ci-line) l c h / 0.6);
}
.ci-imports__mark {
  position: absolute;
  bottom: 0;
  width: 3px;
  margin-left: -1.5px;
  border-radius: 1.5px 1.5px 0 0;
  background: var(--gaia-chart-1);
}
.ci-imports__mark[data-empty] {
  bottom: 2px;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  border: 1.25px solid var(--gaia-muted-foreground);
  border-radius: 50%;
  background: var(--ci-surface);
}
.ci-imports__mark[data-failed] {
  background: var(--gaia-destructive);
}
.ci-imports__mark[data-failed][data-empty] {
  border-color: var(--gaia-destructive);
  background: var(--ci-surface);
}
.ci-imports__heads {
  position: relative;
  height: 16px;
  font-size: 12px;
  line-height: 16px;
  color: var(--gaia-muted-foreground);
}
.ci-imports__heads span {
  position: absolute;
  top: 0;
  padding-left: 4px;
  white-space: nowrap;
}

.ci-imports {
  --ci-imports-columns: minmax(0, 1fr) 4.5rem 12rem 3.5rem;
}
/* The content is its own container, so the narrower columns are set on its rows. */
@container ci-content (max-width: 520px) {
  .ci-imports__row {
    --ci-imports-columns: minmax(0, 1fr) 4rem 3rem;
  }
  .ci-imports__row .ci-track {
    display: none;
  }
}

.ci-imports__columns {
  display: flex;
  justify-content: space-between;
  padding: 0 0 4px;
  border-bottom: 1px solid var(--ci-line);
  font-size: 12px;
  line-height: 16px;
  color: var(--gaia-muted-foreground);
}

.ci-imports__rows {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ci-imports__row {
  position: relative;
  display: grid;
  grid-template-columns: var(--ci-imports-columns);
  column-gap: 12px;
  align-items: center;
  min-height: 28px;
  border-bottom: 1px solid oklch(from var(--ci-line) l c h / 0.6);
  font-variant-numeric: tabular-nums;
}
.ci-imports__day {
  font-size: 12px;
  line-height: 16px;
  color: var(--gaia-muted-foreground);
  text-align: right;
  white-space: nowrap;
}
.ci-imports__count {
  text-align: right;
}
.ci-imports__failed {
  flex-shrink: 0;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  color: var(--gaia-destructive);
}


/* /src/features/carbon-intelligence/chat/components/library/intensity-chart.css */
/* A company chart: both panels keep one width, with the figure they divide by written beside them. */

.ci-company {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  column-gap: var(--ci-space-4);
  align-items: start;
}

.ci-company__panels {
  min-width: 0;
}

/* Rows share the list's columns, so periods, figures and month notes line up down the list. */
.ci-company__figures {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content max-content;
  column-gap: var(--ci-space-3);
  margin: 0;
  padding: 0;
  list-style: none;
  font: var(--ci-type-caption);
  font-variant-numeric: tabular-nums;
}

.ci-company__row {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  align-items: baseline;
  padding: var(--ci-space-1) 0;
  border-bottom: 1px solid oklch(from var(--ci-line) l c h / 0.6);
}

.ci-company__period {
  overflow: hidden;
  color: var(--gaia-muted-foreground);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ci-company__figure,
.ci-company__months {
  text-align: right;
}

.ci-company__figure {
  font-weight: var(--gaia-font-weight-semibold);
  white-space: nowrap;
}

/* A long note wraps instead of widening the list, so the charts and the periods keep their room. */
.ci-company__months {
  max-width: 26ch;
}

.ci-company__months,
.ci-company__row[data-missing] .ci-company__figure {
  color: var(--gaia-muted-foreground);
  font-weight: var(--gaia-font-weight-normal);
}

/* Under both panels the list is too narrow for three columns: the month note takes a second line. */
@container ci-content (max-width: 520px) {
  .ci-company {
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--ci-space-2);
  }
  .ci-company__figures {
    grid-template-columns: minmax(0, 1fr) max-content;
  }
  .ci-company__months {
    grid-column: 2;
  }
}

.ci-intensity__keys {
  display: grid;
  row-gap: var(--ci-space-1);
  margin: var(--ci-space-1) 0 0;
  padding: 0;
  list-style: none;
  font: var(--ci-type-caption);
  color: var(--gaia-muted-foreground);
}

.ci-intensity__keys li {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

/* A part left out of the intensity keeps a dashed edge, so a wholly light year still shows its height. */
.ci-content[data-ci='intensity-chart'] rect[data-ts-key*=':uncounted:'] {
  stroke: var(--gaia-muted-foreground);
  stroke-width: 1;
  stroke-dasharray: 2 1.5;
}

.ci-intensity__swatch {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border: 1px dashed var(--gaia-muted-foreground);
  border-radius: 2px;
}


/* /src/features/carbon-intelligence/chat/components/library/key-figures.css */
/* Key figures: the total leads, one share bar divides it, the parts follow in one row. */

.ci-key-figures__lead {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 12px;
}

.ci-key-figures__total {
  font-size: 24px;
  line-height: 32px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.ci-key-figures__total span {
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: var(--gaia-muted-foreground);
}

.ci-key-figures__caption {
  font-size: 12px;
  line-height: 16px;
  color: var(--gaia-muted-foreground);
}

.ci-key-figures__previous {
  margin-left: auto;
  text-align: right;
}

.ci-key-figures__change {
  display: block;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  text-wrap: balance;
  font-variant-numeric: tabular-nums;
}

.ci-key-figures__bar {
  display: flex;
  gap: 2px;
  height: 10px;
  overflow: hidden;
  border-radius: var(--ci-radius-pill);
}

.ci-key-figures__parts {
  display: grid;
  /* Each part keeps the width of its own figure and share; the row holds as many as fit. */
  grid-template-columns: repeat(
    auto-fit,
    minmax(min(100%, var(--ci-key-figures-value, 8rem)), 1fr)
  );
  gap: 16px;
  margin-top: 12px;
}

.ci-key-figures__part[data-pickable] {
  cursor: pointer;
}

.ci-key-figures__name {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 22px;
  font-size: 14px;
  line-height: 20px;
  color: var(--gaia-muted-foreground);
}

.ci-key-figures__value {
  margin: 2px 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.ci-key-figures__value small {
  margin-left: 6px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  color: var(--gaia-muted-foreground);
}

/* A figure and its unit stay on one line; the line may break between figures, never inside one. */
@media (max-width: 700px) {
  .ci-key-figures__lead {
    flex-wrap: wrap;
  }

  .ci-key-figures__change {
    white-space: normal;
  }

  .ci-key-figures__total,
  .ci-key-figures__value small,
  .ci-key-figures__delta {
    white-space: nowrap;
  }
}

@container ci-content (max-width: 340px) {
  .ci-key-figures__lead {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .ci-key-figures__previous {
    margin-left: 0;
    text-align: left;
  }
  .ci-key-figures__parts {
    row-gap: 8px;
  }
}


/* /src/features/carbon-intelligence/chat/components/library/location-map.css */
/* The location map: a map fitted to where the tonnes are, the ranked locations beside it, and one line
   under both saying what the view leaves out. In the panel the list moves under the map. */

.ci-locations__body {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(13rem, 1fr);
  column-gap: 24px;
  align-items: start;
}
@container ci-content (max-width: 560px) {
  .ci-locations__body {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 12px;
  }
}
/* The map keeps the card inside its height: at most this tall in a wide card, lower in the panel,
   where it draws centred at its own proportions. */
.ci-locations__map svg,
.ci-locations__loading {
  max-height: 260px;
}
@container ci-content (max-width: 520px) {
  .ci-locations__map svg,
  .ci-locations__loading {
    max-height: 180px;
  }
}

.ci-locations__map svg,
.ci-locations__loading {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 430 / 250;
}
.ci-locations__loading {
  border-radius: 8px;
  background: oklch(from var(--ci-fill) l c h / 0.4);
}
.ci-locations__sea {
  fill: oklch(from var(--ci-fill) l c h / 0.35);
}
.ci-locations__land {
  fill: oklch(from var(--ci-line) l c h / 0.7);
  stroke: var(--ci-surface);
  stroke-width: 0.6;
}
.ci-locations__bubble {
  fill: var(--gaia-chart-1);
  fill-opacity: 0.78;
  stroke: var(--ci-surface);
  stroke-width: 1.5;
  cursor: pointer;
  transition: fill-opacity var(--ci-duration-press) ease-out;
}
.ci-locations__bubble[data-aimed] {
  fill-opacity: 1;
  stroke: var(--gaia-foreground);
}
.ci-locations__bubble[data-empty] {
  fill: none;
  stroke: var(--gaia-muted-foreground);
  stroke-width: 1;
}
.ci-locations__label {
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  fill: var(--gaia-foreground);
  paint-order: stroke;
  stroke: oklch(from var(--ci-fill) l c h / 0.9);
  stroke-width: 3px;
  stroke-linejoin: round;
}

.ci-locations__heads {
  display: flex;
  justify-content: space-between;
  padding: 0 0 4px;
  border-bottom: 1px solid var(--ci-line);
  font-size: 12px;
  line-height: 16px;
  color: var(--gaia-muted-foreground);
}

.ci-locations__list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ci-locations__row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  column-gap: 8px;
  align-items: center;
  min-height: 28px;
  border-bottom: 1px solid oklch(from var(--ci-line) l c h / 0.6);
  font-variant-numeric: tabular-nums;
}
.ci-locations__value,
.ci-locations__share {
  text-align: right;
}
.ci-locations__share {
  color: var(--gaia-muted-foreground);
}

@media (prefers-reduced-motion: reduce) {
  .ci-locations__bubble {
    transition: none;
  }
}

.ci-map__graticule {
  fill: none;
  stroke: var(--chart-map-graticule);
  stroke-width: 0.6;
  pointer-events: none;
}
.ci-map__land {
  filter: drop-shadow(0 1px 1.2px oklch(from var(--chart-map-relief) l c h / 0.2));
}


/* /src/features/carbon-intelligence/chat/components/library/outlier-table.css */
/* The outlier table: four columns where the card is wide, a block of lines per month where it is
   narrow. A verdict, a ratio and a usual level are never cut short; long names wrap. */

.ci-outliers {
  --ci-outliers-marker: 6px;
}

.ci-outliers__note {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 16px;
  color: var(--gaia-muted-foreground);
}

.ci-outliers__table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.ci-outliers__table th {
  padding: 0 12px 4px 0;
  border-bottom: 1px solid var(--ci-line);
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  color: var(--gaia-muted-foreground);
  text-align: left;
}
.ci-outliers__table th button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: inherit;
  font: inherit;
}
.ci-outliers__table th[data-column='place'] {
  width: 30%;
}
.ci-outliers__table th[data-column='month'] {
  width: 5.5rem;
}
.ci-outliers__table td {
  padding: 4px 12px 4px 0;
  border-bottom: 1px solid oklch(from var(--ci-line) l c h / 0.6);
  vertical-align: top;
  font-size: 14px;
  line-height: 20px;
  color: var(--gaia-muted-foreground);
  overflow-wrap: anywhere;
}
.ci-outliers__table th:last-child,
.ci-outliers__table td:last-child {
  padding-right: 0;
}
.ci-outliers__table small {
  display: block;
  font-size: 12px;
  line-height: 16px;
}

/* The site's line keeps its 20 px when the 22 px quote button sits in it; a long name wraps. */
.ci-outliers__title {
  display: flex;
  align-items: flex-start;
  min-height: 20px;
  gap: 6px;
  color: var(--gaia-foreground);
}
/* The 22 px quote button sits in the 20 px line without growing it. */
.ci-outliers__title > :not(b) {
  margin: -1px 0;
}
.ci-outliers__title b {
  min-width: 0;
  font-weight: 500;
}

.ci-outliers__verdict-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 8px;
}

/* A verdict is its words first; the arrow, the weight and the track only repeat them. */
.ci-outliers__verdict {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  line-height: 20px;
  color: var(--gaia-foreground);
  white-space: nowrap;
}
.ci-outliers__verdict[data-verdict='high'],
.ci-outliers__verdict[data-verdict='low'] {
  font-weight: 500;
}
.ci-outliers__verdict[data-verdict='usual'],
.ci-outliers__verdict[data-verdict='not-enough-history'],
.ci-outliers__verdict[data-verdict='no-value'] {
  color: var(--gaia-muted-foreground);
}

/* How far from usual: the ranked rows' thin track, usual at its centre, one marker on it. */
.ci-outliers__distance {
  position: relative;
  flex-shrink: 0;
  width: 44px;
}
.ci-outliers__distance > i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 0.5px);
  width: 1px;
  background: oklch(from var(--gaia-muted-foreground) l c h / 0.5);
}
.ci-outliers__distance > span,
.ci-outliers__distance > span:last-child {
  position: absolute;
  top: 0;
  width: var(--ci-outliers-marker);
  height: 100%;
  border-radius: var(--ci-radius-pill);
  background: var(--gaia-muted-foreground);
}
.ci-outliers__distance > span[data-flagged] {
  background: var(--gaia-chart-1);
}

/* Narrow: each month is a block, where and when over the input and the emissions, each on a line
   of its own under its word. The column heads give way to one compact row of sort buttons. */
.ci-outliers[data-layout='stacked'] .ci-outliers__table,
.ci-outliers[data-layout='stacked'] .ci-outliers__table tbody,
.ci-outliers[data-layout='stacked'] .ci-outliers__table tbody tr,
.ci-outliers[data-layout='stacked'] .ci-outliers__table td {
  display: block;
  width: 100%;
}
.ci-outliers__sort {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ci-line);
  font-size: 12px;
  line-height: 16px;
  color: var(--gaia-muted-foreground);
}
.ci-outliers__sort button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--gaia-foreground);
  font: inherit;
}
.ci-outliers__sort button[aria-pressed='true'] {
  font-weight: 500;
}
.ci-outliers[data-layout='stacked'] .ci-outliers__table tbody tr {
  padding: 8px 0;
  border-bottom: 1px solid oklch(from var(--ci-line) l c h / 0.6);
}
.ci-outliers[data-layout='stacked'] .ci-outliers__table td {
  padding: 0;
  border-bottom: 0;
}
.ci-outliers[data-layout='stacked'] .ci-outliers__table td + td {
  margin-top: 6px;
}
.ci-outliers__side {
  display: flex;
  gap: 8px;
}
.ci-outliers__side-label {
  flex-shrink: 0;
  width: 4.75rem;
  padding-top: 2px;
  font-size: 12px;
  line-height: 16px;
  color: var(--gaia-muted-foreground);
}
.ci-outliers__side-body {
  min-width: 0;
}


/* /src/features/carbon-intelligence/chat/components/library/period-bridge.css */
/* A period bridge as a horizontal waterfall: name, lane, signed tonnes, a tag for units that only
   one period holds. Rises are filled, falls hollow, totals solid; one colour throughout. */

.ci-bridge {
  --ci-row-columns: minmax(0, 1fr) minmax(80px, 1fr) auto minmax(0, 7.5rem);
  --ci-bridge-row: 22px;
}

/* In a narrow card the tag column goes: a short tag sits beside the name instead, so each unit
   with no later data stays marked and every row keeps one line. */
@container ci-content (max-width: 520px) {
  .ci-bridge__rows,
  .ci-bridge__axis {
    /* The lane labels its two ends, and the two ends' figures need more than a fourteenth of a
       390 px card between them. */
    --ci-row-columns: minmax(0, 1fr) minmax(56px, 14%) auto 0;
  }
  .ci-bridge__tag {
    display: none;
  }
}

.ci-bridge__split {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 16px;
  color: var(--gaia-muted-foreground);
  font-variant-numeric: tabular-nums;
}
.ci-bridge__split > b {
  font-size: 14px;
  line-height: 20px;
  color: var(--gaia-foreground);
}
.ci-bridge__split b {
  font-weight: 500;
  color: var(--gaia-foreground);
}

.ci-bridge__why {
  flex-basis: 100%;
}

.ci-bridge__rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ci-bridge__row,
.ci-bridge__axis {
  display: grid;
  grid-template-columns: var(--ci-row-columns);
  column-gap: 12px;
  align-items: center;
}
.ci-bridge__row {
  min-height: var(--ci-bridge-row);
  font-variant-numeric: tabular-nums;
}
.ci-bridge__row[data-kind='total'] {
  font-weight: 500;
}

.ci-bridge__lane {
  position: relative;
  align-self: stretch;
  border-left: 1px solid var(--ci-line);
}
/* Bars sit on the row's first line, so a wrapped name never stretches them. */
.ci-bridge__bar {
  position: absolute;
  top: 6px;
  height: calc(var(--ci-bridge-row) - 12px);
  border-radius: 2px;
}
.ci-bridge__bar[data-kind='total'] {
  top: 4px;
  height: calc(var(--ci-bridge-row) - 8px);
  background: var(--gaia-foreground);
}
.ci-bridge__row:first-child .ci-bridge__bar[data-kind='total'] {
  background: oklch(from var(--ci-line) calc(l - 0.08) c h);
}
.ci-bridge__bar[data-kind='rise'] {
  background: var(--gaia-chart-1);
}
.ci-bridge__bar[data-kind='fall'] {
  border: 1.5px solid var(--gaia-chart-1);
  background: var(--ci-surface);
}

.ci-bridge__value {
  text-align: right;
  white-space: nowrap;
}

/* A total's bar starts on the lane's first tick, and the scale it rides starts above zero. */
.ci-bridge__break {
  position: absolute;
  top: 2px;
  width: 7px;
  height: calc(var(--ci-bridge-row) - 4px);
  translate: -50% 0;
  background:
    linear-gradient(
        to bottom right,
        transparent calc(50% - 1px),
        var(--ci-surface) calc(50% - 1px),
        var(--ci-surface) calc(50% + 1px),
        transparent calc(50% + 1px)
      )
      no-repeat 0 0 / 50% 100%,
    linear-gradient(
        to top right,
        transparent calc(50% - 1px),
        var(--ci-surface) calc(50% - 1px),
        var(--ci-surface) calc(50% + 1px),
        transparent calc(50% + 1px)
      )
      no-repeat 100% 0 / 50% 100%;
}

.ci-bridge__mark {
  flex-shrink: 0;
}

.ci-bridge__tag span,
.ci-bridge__mark {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  padding: 0 7px;
  border-radius: var(--ci-radius-pill);
  background: oklch(from var(--ci-fill) l c h / 0.7);
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  color: var(--gaia-muted-foreground);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ci-bridge__axis {
  height: 20px;
  margin-top: 2px;
  font-size: 12px;
  line-height: 16px;
  color: oklch(from var(--gaia-muted-foreground) calc(l + 0.22) c h);
  font-variant-numeric: tabular-nums;
}
.ci-bridge__ticks {
  position: relative;
  align-self: stretch;
  border-top: 1px solid var(--ci-line);
}
.ci-bridge__ticks span {
  position: absolute;
  top: 2px;
  transform: translateX(-50%);
}
.ci-bridge__ticks span:first-child {
  transform: none;
}
.ci-bridge__ticks span:last-child {
  transform: translateX(-100%);
}
.ci-bridge__unit {
  text-align: right;
}


/* /src/features/carbon-intelligence/chat/components/library/profile-card.css */
/* One entity in full: name and kind, a row of figures, a short attribute list, its quality. */

.ci-profile__name {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 8px;
}
.ci-profile__name span {
  display: block;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
}
.ci-profile__name small {
  display: block;
  font-size: 12px;
  line-height: 16px;
  color: var(--gaia-muted-foreground);
}

.ci-profile__figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 8px 0 12px;
  border-top: 1px solid oklch(from var(--ci-line) l c h / 0.6);
  border-bottom: 1px solid oklch(from var(--ci-line) l c h / 0.6);
  font-variant-numeric: tabular-nums;
}
.ci-profile__figures b {
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
}
.ci-profile__figures span {
  font-size: 12px;
  line-height: 16px;
  color: var(--gaia-muted-foreground);
}
/* The line under a figure says what the figure is; it wraps rather than ending in an ellipsis. */
.ci-profile__figures small {
  display: block;
  font-size: 12px;
  line-height: 16px;
  color: var(--gaia-muted-foreground);
  white-space: normal;
}

/* Narrow, two figures to a row keep their lines whole. */
@container ci-content (max-width: 520px) {
  .ci-profile__figures {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Attributes run on as one wrapping line: short ones share a row, a long one takes its own. */
.ci-profile__attributes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 16px;
}
.ci-profile__attributes > div {
  display: flex;
  gap: 8px;
  min-width: 0;
}
.ci-profile__attributes dt {
  color: var(--gaia-muted-foreground);
}
.ci-profile__attributes dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.ci-profile__section {
  margin-top: 12px;
}

.ci-profile__kicker {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  line-height: 16px;
  color: var(--gaia-muted-foreground);
}

.ci-profile__quality {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid oklch(from var(--ci-line) l c h / 0.6);
  font-size: 12px;
  line-height: 16px;
}
.ci-profile__quality .ci-profile__kicker {
  margin: 0;
  width: 6rem;
}
.ci-profile__quality-bar {
  display: flex;
  gap: 2px;
  width: 10rem;
  height: 6px;
  overflow: hidden;
  border-radius: var(--ci-radius-pill);
}
.ci-profile__quality-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  color: var(--gaia-muted-foreground);
}

@container ci-content (max-width: 520px) {
  .ci-profile__attributes {
    flex-direction: column;
  }
}


/* /src/features/carbon-intelligence/chat/components/library/route-map.css */
.ci-routes .ci-locations__body {
  grid-template-columns: minmax(0, 420px) minmax(15rem, 1fr);
}
@container ci-content (max-width: 560px) {
  .ci-routes .ci-locations__body {
    grid-template-columns: minmax(0, 1fr);
  }
}

.ci-routes__map {
  position: relative;
  min-width: 0;
}

/* Sized to the drawing, never letterboxed: 244 px tall at most in a wide card, 180 in the panel. */
.ci-routes__map svg,
.ci-routes__loading {
  display: block;
  width: min(100%, 420px);
  height: auto;
  aspect-ratio: 430 / 250;
  border-radius: 8px;
  clip-path: inset(0 round 8px);
}
@container ci-content (max-width: 520px) {
  .ci-routes__map svg,
  .ci-routes__loading {
    width: min(100%, 310px);
    margin-inline: auto;
  }
}
.ci-routes__loading {
  background: oklch(from var(--ci-fill) l c h / 0.4);
}

.ci-routes .ci-locations__sea {
  fill: var(--chart-map-sea);
}
.ci-routes .ci-locations__land {
  fill: var(--chart-map-land);
  stroke: var(--chart-map-border);
}

.ci-routes__route {
  transition: opacity var(--ci-duration-press) ease-out;
}
.ci-routes__casing {
  fill: none;
  stroke: var(--chart-map-border);
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.ci-routes__arrow {
  stroke: var(--chart-map-border);
  stroke-width: 0.8;
  stroke-linejoin: round;
  pointer-events: none;
}

/* A few passes when the map appears and while a route is aimed at; never endless on its own. */
.ci-routes__flow {
  fill: none;
  stroke: var(--chart-map-border);
  stroke-opacity: 0;
  stroke-linecap: round;
  stroke-dasharray: 1.5 11;
  pointer-events: none;
  animation: ci-routes-flow 1.4s linear 3;
}
.ci-routes__route[data-raised] .ci-routes__flow,
[data-ci='route-raised'] .ci-routes__flow {
  animation-iteration-count: infinite;
}
@keyframes ci-routes-flow {
  from {
    stroke-opacity: 0.85;
  }
  to {
    stroke-opacity: 0.85;
    stroke-dashoffset: -12.5;
  }
}

.ci-routes__arc {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  transition: opacity var(--ci-duration-press) ease-out;
}
.ci-routes__outline {
  fill: none;
  stroke: var(--gaia-foreground);
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.ci-routes__hit {
  fill: none;
  stroke: transparent;
  stroke-linecap: round;
  pointer-events: stroke;
  cursor: pointer;
}

.ci-routes__end {
  fill: oklch(from var(--gaia-foreground) l c h / 0.78);
  stroke: var(--ci-surface);
  stroke-width: 1;
  pointer-events: none;
  transition: opacity var(--ci-duration-press) ease-out;
}
.ci-routes__label {
  pointer-events: none;
}

svg[data-aiming] .ci-routes__route:not([data-raised]) {
  opacity: 0.22;
}
svg[data-aiming] .ci-routes__end:not([data-linked]) {
  opacity: 0.35;
}

.ci-routes__tip {
  pointer-events: none;
}

.ci-routes__heads,
.ci-routes__row {
  display: grid;
  /* The figures' columns take the width of the widest figure the list holds. */
  grid-template-columns:
    minmax(0, 1fr) var(--ci-routes-value, 3.75rem)
    var(--ci-routes-entries, 3.25rem);
  column-gap: 8px;
}
.ci-routes__heads {
  align-items: end;
  padding: 0 0 4px;
  border-bottom: 1px solid var(--ci-line);
  font-size: 12px;
  line-height: 16px;
  color: var(--gaia-muted-foreground);
}
.ci-routes__heads > span:not(:first-child) {
  text-align: right;
}

.ci-routes__row {
  position: relative;
  align-items: center;
  min-height: 32px;
  border-bottom: 1px solid oklch(from var(--ci-line) l c h / 0.6);
  font-variant-numeric: tabular-nums;
  outline: none;
  transition: background var(--ci-duration-press) ease-out;
}
.ci-routes__row[data-aimed] {
  background: oklch(from var(--ci-fill) l c h / 0.45);
}
.ci-routes__row:focus-visible {
  box-shadow: inset 0 0 0 2px var(--gaia-ring);
  border-radius: 4px;
}

.ci-routes__name {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 3px 0 4px;
}

.ci-routes__bar {
  display: block;
  height: 3px;
}
.ci-routes__bar > span {
  display: block;
  height: 100%;
  border-radius: var(--ci-radius-pill);
  background: oklch(from var(--gaia-muted-foreground) l c h / 0.4);
}

@media (prefers-reduced-motion: reduce) {
  .ci-routes__flow {
    animation: none;
  }
  .ci-routes__route,
  .ci-routes__arc,
  .ci-routes__end,
  .ci-routes__row {
    transition: none;
  }
}


/* /src/shared/charts/map-theme.css */
/* Read by BROWSER_CHART_THEME.map; themes.test.ts keeps them equal to PDF_CHART_THEME.map. */
:root {
  --chart-map-step-1: #f6c272;
  --chart-map-step-2: #ed8946;
  --chart-map-step-3: #d04c42;
  --chart-map-step-4: #972550;
  --chart-map-step-5: #521648;
  --chart-map-land: #e7e2d7;
  --chart-map-sea: #edf2f5;
  --chart-map-border: #ffffff;
  --chart-map-graticule: #dbe3e9;
  /* On screen only: the PDF converter draws no filter. */
  --chart-map-relief: #5a3c12;
}


/* /src/features/carbon-intelligence/chat/components/library/territory-map.css */
.ci-territories .ci-locations__body {
  grid-template-columns: minmax(0, 447px) minmax(13rem, 1fr);
}
@container ci-content (max-width: 560px) {
  .ci-territories .ci-locations__body {
    grid-template-columns: minmax(0, 1fr);
  }
}

.ci-territories__map {
  position: relative;
  min-width: 0;
}

/* Sized to the drawing, never letterboxed: 260 px tall at most in a wide card, 180 in the panel. */
.ci-territories__map svg,
.ci-territories__loading {
  display: block;
  width: min(100%, 447px);
  height: auto;
  aspect-ratio: 430 / 250;
  border-radius: 8px;
  clip-path: inset(0 round 8px);
}
@container ci-content (max-width: 520px) {
  .ci-territories__map svg,
  .ci-territories__loading {
    width: min(100%, 310px);
    margin-inline: auto;
  }
}
.ci-territories__loading {
  background: oklch(from var(--ci-fill) l c h / 0.4);
}

.ci-territories .ci-locations__sea {
  fill: var(--chart-map-sea);
}
.ci-territories .ci-locations__land {
  fill: var(--chart-map-land);
  stroke: var(--chart-map-border);
}
.ci-territories__country {
  fill: var(--chart-map-land);
  stroke: var(--chart-map-border);
  stroke-width: 0.7;
  cursor: pointer;
  transition: opacity var(--ci-duration-press) ease-out;
}
.ci-territories__country[data-negative] {
  stroke: var(--gaia-muted-foreground);
  stroke-width: 0.9;
  stroke-dasharray: 2 1.5;
}

.ci-territories__outline {
  fill: none;
  stroke: var(--gaia-foreground);
  stroke-width: 1.5;
  stroke-linejoin: round;
  pointer-events: none;
}

.ci-territories__dot {
  cursor: pointer;
  transition: opacity var(--ci-duration-press) ease-out;
}
.ci-territories__dot circle + circle {
  fill: var(--chart-map-land);
  stroke: oklch(from var(--gaia-foreground) l c h / 0.75);
  stroke-width: 1.25;
}
.ci-territories__dot[data-negative] circle + circle {
  stroke: var(--gaia-muted-foreground);
  stroke-width: 1;
  stroke-dasharray: 2 1.5;
}
.ci-territories__dot[data-aimed] circle + circle {
  r: 5px;
  stroke: var(--gaia-foreground);
  stroke-width: 1.5;
}

.ci-territories__label {
  pointer-events: none;
  transition: opacity var(--ci-duration-press) ease-out;
}
.ci-territories__label-leader {
  stroke: var(--gaia-muted-foreground);
  stroke-width: 1;
  stroke-opacity: 0.7;
}
.ci-territories__label rect {
  fill: oklch(from var(--ci-surface) l c h / 0.88);
}
.ci-territories__label text {
  text-anchor: middle;
  font-size: 12px;
  line-height: 16px;
  font-variant-numeric: tabular-nums;
}
.ci-territories__label-name {
  fill: var(--gaia-foreground);
  font-weight: var(--gaia-font-weight-semibold);
}
.ci-territories__label-figure {
  fill: var(--gaia-muted-foreground);
}
/* Too small to read in a narrow card, where the list beside the map carries the names. */
@container ci-content (max-width: 520px) {
  .ci-territories__label {
    display: none;
  }
}

/* While a country is aimed at, from the map or from its row, the other shaded ones step back. */
svg[data-aiming] .ci-territories__country:not([data-aimed]),
svg[data-aiming] .ci-territories__dot:not([data-aimed]) {
  opacity: 0.32;
}
svg[data-aiming] .ci-territories__label {
  opacity: 0;
}

.ci-territories__tip {
  pointer-events: none;
}

.ci-territories__negative-key {
  border: 1px dashed var(--gaia-muted-foreground);
  background: var(--chart-map-land);
}

.ci-territories__strip {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 16px;
  color: var(--gaia-muted-foreground);
  font-variant-numeric: tabular-nums;
}
.ci-territories__strip-item {
  color: var(--gaia-foreground);
  border-radius: 2px;
  transition: background var(--ci-duration-press) ease-out;
}
.ci-territories__strip-item[data-aimed] {
  background: oklch(from var(--ci-fill) l c h / 0.8);
  box-shadow: 0 0 0 2px oklch(from var(--ci-fill) l c h / 0.8);
}

.ci-territories__heads,
.ci-territories__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  column-gap: 8px;
}
.ci-territories__heads {
  align-items: end;
  padding: 0 0 4px;
  border-bottom: 1px solid var(--ci-line);
  font-size: 12px;
  line-height: 16px;
  color: var(--gaia-muted-foreground);
}
.ci-territories__heads > span:not(:first-child) {
  text-align: right;
}

.ci-territories__row {
  position: relative;
  align-items: center;
  min-height: 32px;
  border-bottom: 1px solid oklch(from var(--ci-line) l c h / 0.6);
  font-variant-numeric: tabular-nums;
  outline: none;
  transition: background var(--ci-duration-press) ease-out;
}
.ci-territories__row[data-aimed] {
  background: oklch(from var(--ci-fill) l c h / 0.45);
}
.ci-territories__row[data-pickable] {
  cursor: pointer;
}
.ci-territories__row:focus-visible {
  box-shadow: inset 0 0 0 2px var(--gaia-ring);
  border-radius: 4px;
}

.ci-territories__name {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 3px 0 4px;
}

.ci-territories__bar {
  display: block;
  height: 3px;
}
.ci-territories__bar > span {
  display: block;
  height: 100%;
  border-radius: var(--ci-radius-pill);
  background: oklch(from var(--gaia-muted-foreground) l c h / 0.4);
}

@media (prefers-reduced-motion: reduce) {
  .ci-territories__country,
  .ci-territories__dot,
  .ci-territories__row,
  .ci-territories__label,
  .ci-territories__strip-item {
    transition: none;
  }
}


/* /src/features/carbon-intelligence/chat/components/library/unit-tree.css */
/* The unit tree: the path to the unit in focus, a caret per branch, a name that focuses. */

.ci-unit-path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.ci-unit-path__step {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ci-unit-path button {
  color: var(--gaia-muted-foreground);
  text-decoration: underline;
  text-decoration-color: var(--ci-line);
  text-underline-offset: 3px;
}
.ci-unit-path button:hover {
  color: var(--gaia-foreground);
}

.ci-unit-tree__caret {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  color: var(--gaia-muted-foreground);
}
button.ci-unit-tree__caret:hover {
  background: oklch(from var(--ci-fill) l c h / 0.7);
  color: var(--gaia-foreground);
}

/* The name keeps its full width where it fits; the note follows it, or wraps under it in full. */
.ci-unit-tree__name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 6px;
  min-width: 0;
}
/* Beats the ranked row's clipping on this wrapper, which would cut the note with no ellipsis. */
.ci-unit-tree .ci-ranked-row__label > .ci-unit-tree__name {
  overflow: visible;
  white-space: normal;
}
.ci-unit-tree__name > span,
.ci-unit-tree__name > .ci-unit-tree__focus {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

.ci-unit-tree__focus {
  overflow: hidden;
  min-width: 0;
  text-align: left;
  text-overflow: ellipsis;
}
.ci-unit-tree__focus:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* The note keeps at least its longest word, so the row wraps it under the name whole. */
.ci-unit-tree__direct {
  min-width: min-content;
  font-size: 12px;
  line-height: 16px;
  color: var(--gaia-muted-foreground);
}

/* A row with a note keeps a one-line row's space above its name, and its caret on the name. */
.ci-unit-tree .ci-ranked-row:has(.ci-unit-tree__direct) {
  padding-block: 4px;
}
.ci-unit-tree .ci-ranked-row:has(.ci-unit-tree__direct) > .ci-ranked-row__label {
  align-items: flex-start;
}

.ci-ranked-row[data-level]:not([data-level='0']) .ci-track > span {
  opacity: 0.6;
}

/* In a narrow card the tree keeps its names: the bar goes, the share column says the same. */
@container ci-content (max-width: 520px) {
  .ci-unit-tree .ci-ranked-frame,
  .ci-unit-tree .ci-heads,
  .ci-unit-tree .ci-ranked {
    --ci-row-columns: minmax(0, 1fr) auto auto;
  }
  .ci-unit-tree .ci-heads > span:nth-child(2),
  .ci-unit-tree .ci-track {
    display: none;
  }
}


/* /src/features/carbon-intelligence/chat/components/component-card.css */
/* An answer card: a header with the title over one muted line, icon buttons on the right; the
   body; and the footer with what it covers. 16 px inside, on the card's white. */

.ci-card {
  outline: none;
}

.ci-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px 8px 16px;
}

.ci-card-head__text {
  min-width: 0;
  padding-top: 2px;
}

/* A title wraps rather than end in an ellipsis: its last words often name the year. */
.ci-card-title {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  color: var(--gaia-foreground);
}

/* A sentence a card says in place of its drawing: it could not be drawn. */
.ci-card-note {
  margin: 8px 0;
  font: var(--ci-type-control);
  color: var(--gaia-muted-foreground);
}

.ci-card-subtitle {
  margin: 0;
  font-size: 12px;
  line-height: 16px;
  color: var(--gaia-muted-foreground);
  font-variant-numeric: tabular-nums;
}

/* The line breaks between its parts, never inside one that fits: a figure keeps its unit. */
.ci-card-subtitle__part {
  display: inline-block;
  max-width: 100%;
}
.ci-card-subtitle__keep {
  white-space: nowrap;
}

.ci-card-head__actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

/* Tools on hover: there under the pointer, with the focus inside, while one of them has
   something open, and on an expanded card; their place is kept the whole time. */
.ci-card[data-ci-tools='hover'] .ci-card-head__actions {
  opacity: 0;
  transition: opacity var(--ci-duration-press) ease-out;
}

.ci-card[data-ci-tools='hover']:hover .ci-card-head__actions,
.ci-card[data-ci-tools='hover']:focus-within .ci-card-head__actions,
.ci-card[data-ci-tools='hover'][data-ci-expanded] .ci-card-head__actions,
.ci-card[data-ci-tools='hover'] .ci-card-head__actions:has([aria-expanded='true']) {
  opacity: 1;
}

@media (hover: none) {
  .ci-card[data-ci-tools='hover'] .ci-card-head__actions {
    opacity: 1;
  }
}

.ci-card-drill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px 8px;
  font-size: 12px;
  color: var(--gaia-muted-foreground);
}
.ci-card-drill span {
  font-weight: 500;
  color: var(--gaia-foreground);
}
.ci-card-drill button {
  margin: 0 -4px;
  padding: 0 4px;
  border-radius: var(--ci-radius-control);
  color: var(--gaia-muted-foreground);
  text-underline-offset: 2px;
  transition: color var(--ci-duration-press) ease-out;
}
.ci-card-drill button:hover {
  color: var(--gaia-foreground);
  text-decoration: underline;
}
.ci-card-drill button:focus-visible {
  outline: 2px solid var(--gaia-ring);
  outline-offset: 1px;
}

.ci-card-body {
  padding: 0 16px 12px;
}

/* Chart (or Map) or table, in an expanded card: the segmented control the card's own views use. */
.ci-card-view-switch {
  display: inline-flex;
  gap: 2px;
  margin: 0 0 8px;
  padding: 2px;
  border-radius: var(--ci-radius-control);
  background: oklch(from var(--ci-fill) l c h / 0.6);
}
.ci-card-view-switch button {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
  color: var(--gaia-muted-foreground);
  transition:
    background var(--ci-duration-press) ease-out,
    color var(--ci-duration-press) ease-out;
}
.ci-card-view-switch button:hover {
  color: var(--gaia-foreground);
}
.ci-card-view-switch button[aria-pressed='true'] {
  background: var(--ci-surface);
  box-shadow: 0 0 0 1px var(--ci-line);
  color: var(--gaia-foreground);
  font-weight: 500;
}
.ci-card-view-switch button:disabled {
  cursor: default;
  opacity: 0.4;
}
.ci-card-view-switch button:disabled:hover {
  color: var(--gaia-muted-foreground);
}
.ci-card-view-switch button:focus-visible {
  outline: 2px solid var(--gaia-ring);
  outline-offset: 1px;
}


/* /src/features/carbon-intelligence/chat/components/artifacts.css */
/* Artifacts: the panel beside the conversation, the list inside it, the modal it expands into,
   and the page that lists everything across conversations. All three share the row and the
   viewer, so their styles live together rather than in chat.css, which is about the thread. */

.ci-artifact-panel {
  position: relative;
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  width: var(--ci-artifact-panel-width);
  min-height: 0;
  border-left: 1px solid var(--ci-line);
  background: var(--ci-surface);
}

/* A phone has no room beside the conversation for the panel, so it takes the page, rail included. */
@media (max-width: 700px) {
  .ci-artifact-panel {
    position: fixed;
    inset: 0;
    z-index: 55;
    width: auto;
    border-left: 0;
  }
}

/* Sits over the border, wide enough to grab without hunting for it. */
.ci-artifact-resize {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -3px;
  z-index: 5;
  width: 6px;
  cursor: col-resize;
}
.ci-artifact-resize:hover,
.ci-artifact-resize:focus-visible {
  background: oklch(from var(--gaia-ai) l c h / 0.25);
}

.ci-artifact-header {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  padding: 12px 14px 11px 16px;
  border-bottom: 1px solid var(--ci-line);
}

.ci-artifact-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* The way back to the list, named, where the open artifact's header begins. */
.ci-artifact-back {
  display: inline-flex;
  flex: 1;
  gap: 4px;
  align-items: center;
  min-width: 0;
  min-height: 26px;
  color: var(--gaia-foreground);
  font: var(--ci-type-label);
}
.ci-artifact-back:hover {
  color: var(--gaia-primary);
}
.ci-artifact-back > svg {
  flex-shrink: 0;
  color: var(--gaia-muted-foreground);
}
@media (max-width: 700px) {
  .ci-artifact-back {
    min-height: 40px;
  }
}

/* What the open artifact is, over its name; a chart's own header names it below. */
.ci-artifact-intro {
  flex-shrink: 0;
  padding: 16px 16px 0;
}
.ci-artifact-intro__kind {
  margin: 0;
  color: var(--gaia-muted-foreground);
}
.ci-artifact-intro__title {
  margin: 2px 0 10px;
  overflow-wrap: anywhere;
  font: var(--ci-type-title);
  color: var(--gaia-foreground);
}

/* A chart read in the panel scrolls as one page: what it is, the chart, then what to do with it. */
.ci-artifact-detail {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}
.ci-artifact-detail [data-ci-artifact] {
  flex: none;
}

.ci-artifact-header-btn {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  color: var(--gaia-muted-foreground);
}
@media (max-width: 700px) {
  .ci-artifact-header-btn {
    width: 40px;
    height: 40px;
  }
}

.ci-artifact-header-btn:hover {
  background: oklch(from var(--ci-fill) l c h / 0.7);
  color: var(--gaia-foreground);
}

.ci-artifact-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}
.ci-artifact-body-scroll {
  overflow-y: auto;
}

/* ---- the list ---- */

.ci-artifact-list {
  padding: 12px 14px 18px;
}

.ci-artifact-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.ci-artifact-filters .btn-pill {
  height: 26px;
  padding: 0 11px;
  font-size: 12px;
}

.ci-artifact-empty {
  margin: 0;
  padding: 6px 2px;
  line-height: 1.5;
}

.ci-artifact-family + .ci-artifact-family {
  margin-top: 16px;
}

.ci-artifact-family-label {
  margin: 0 0 6px 2px;
}

.ci-artifact-rows {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ci-artifact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  text-align: left;
  transition:
    background-color 140ms,
    border-color 140ms;
}
.ci-artifact-row:hover {
  background: oklch(from var(--ci-fill) l c h / 0.45);
}
.ci-artifact-row[data-open='true'] {
  border-color: oklch(from var(--gaia-ai) l c h / 0.35);
  background: oklch(from var(--gaia-ai) l c h / 0.08);
}

/* Uploaded and generated are told apart by the glyph's tint, not by a word on every row. */
.ci-artifact-glyph {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: oklch(from var(--ci-fill) l c h / 0.8);
  color: var(--gaia-muted-foreground);
}
.ci-artifact-glyph[data-origin='generated'] {
  background: oklch(from var(--gaia-ai) l c h / 0.12);
  color: var(--gaia-ai);
}

.ci-artifact-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.ci-artifact-name {
  overflow: hidden;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ci-artifact-kind,
.ci-artifact-thread {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ci-artifact-time {
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

/* ---- the modal ---- */

.ci-artifact-modal {
  display: flex;
  flex-direction: column;
  width: min(1200px, 100vw - 48px);
  height: calc(100vh - 48px);
  overflow: hidden;
  border-radius: var(--ci-radius-card);
  background: var(--ci-surface);
}

.ci-artifact-modal-title {
  gap: 0;
}

/* ---- the page ---- */

.ci-artifacts-page {
  max-width: 900px;
  margin: 0 auto;
}

.ci-artifacts-search {
  margin-bottom: 14px;
}
.ci-artifacts-search .input {
  padding-left: 32px;
}
.ci-artifacts-search-icon {
  position: absolute;
  top: 50%;
  left: 10px;
  color: var(--gaia-muted-foreground);
  pointer-events: none;
  transform: translateY(-50%);
}
.ci-artifacts-page .ci-artifact-list {
  padding: 0;
}
.ci-artifacts-page .ci-artifact-row {
  border-color: var(--ci-line);
  background: var(--ci-surface);
}
.ci-artifacts-page .ci-artifact-row:hover {
  border-color: var(--gaia-muted-foreground);
}

/* ---- the actions row, shared by panel and modal ---- */

.ci-artifact-actions {
  flex-shrink: 0;
  padding: 10px 14px;
  border-top: 1px solid var(--ci-line);
  background: var(--ci-surface);
}

.ci-artifact-actions[data-inline] {
  padding: 4px 16px 20px;
  border-top: 0;
}

.ci-artifact-origin {
  margin: 14px 0 0;
  color: var(--gaia-muted-foreground);
}

.ci-artifact-origin__link {
  color: var(--gaia-primary);
  font: inherit;
  font-weight: 500;
}
.ci-artifact-origin__link:hover {
  text-decoration: underline;
}

/* The card an artifact came from, lit for a moment after "Show in conversation" found it. */
[data-ci-found='true'] {
  border-radius: var(--ci-radius-card);
  outline: 2px solid oklch(from var(--gaia-ai) l c h / 0.55);
  outline-offset: 3px;
  transition: outline-color 300ms ease;
}


/* /src/features/carbon-intelligence/chat/sections/problem-report-composer.css */
/* The composer turned into a report: one card in the composer's place, tinted with the danger
   colour so it reads as a different mode, and the transcript's side of the same mode — the line
   round what is being reported, the rest of the conversation held back while it is open, and the
   line a sent report leaves. The `--ci-report-*` colours live in `ci-theme.css`. */

.ci-report {
  display: flex;
  flex-direction: column;
  gap: var(--ci-space-2);
  padding: var(--ci-space-3) var(--ci-space-4) var(--ci-space-3);
  border: 1px solid var(--ci-report-outline);
  border-radius: var(--ci-radius-card);
  background: var(--ci-surface);
  box-shadow: var(--ci-shadow-lift);
}

.ci-report__head {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ci-report-ink);
  font: var(--ci-type-caption);
  font-weight: var(--gaia-font-weight-semibold);
}

.ci-report__cancel {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
  color: var(--gaia-muted-foreground);
  font-weight: var(--gaia-font-weight-normal);
}

.ci-report__cancel:hover {
  color: var(--gaia-foreground);
}

.ci-report__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.ci-report__label {
  min-width: 40px;
  color: var(--gaia-muted-foreground);
  font: var(--ci-type-caption);
}

.ci-report__hint {
  margin-left: 4px;
  color: var(--gaia-muted-foreground);
  font: var(--ci-type-caption);
}

/* What the report is about: a rounded rectangle, the selected one tinted like the outline. */
.ci-report__choice {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 220px;
  padding: 3px 9px;
  border: 1px solid var(--ci-line);
  border-radius: var(--ci-radius-control);
  color: var(--gaia-muted-foreground);
  font: var(--ci-type-caption);
  font-weight: var(--gaia-font-weight-semibold);
}

.ci-report__choice > svg {
  flex-shrink: 0;
}

.ci-report__choice-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ci-report__choice:hover {
  color: var(--gaia-foreground);
}

.ci-report__choice[aria-checked='true'] {
  border-color: var(--ci-report-outline);
  background: oklch(from var(--gaia-destructive) l c h / 0.06);
  color: var(--ci-report-ink);
}

.ci-report__note {
  width: 100%;
  min-height: 60px;
  max-height: 152px;
  padding: 4px 0;
  border: 0;
  outline: none;
  resize: none;
  background: transparent;
  color: var(--gaia-foreground);
  font: var(--ci-type-control);
  line-height: 1.5;
}

.ci-report__note::placeholder {
  color: var(--gaia-muted-foreground);
}

/* The kind: a pill; the suggested one is outlined in the AI colour, the picked one filled. */
.ci-report__kind {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border: 1px solid var(--ci-line);
  border-radius: var(--ci-radius-pill);
  color: var(--gaia-muted-foreground);
  font: var(--ci-type-caption);
  font-weight: var(--gaia-font-weight-semibold);
}

.ci-report__kind:hover {
  color: var(--gaia-foreground);
}

.ci-report__kind[data-suggested] {
  border-color: oklch(from var(--gaia-ai) l c h / 0.6);
  background: oklch(from var(--gaia-ai) l c h / 0.08);
  color: var(--gaia-foreground);
}

.ci-report__kind[data-suggested] > svg {
  color: var(--gaia-ai);
}

.ci-report__kind[aria-pressed='true'] {
  border-color: var(--gaia-foreground);
  background: var(--gaia-foreground);
  color: var(--gaia-card);
}

.ci-report__error {
  margin: 0;
  color: var(--gaia-destructive);
  font: var(--ci-type-caption);
}

.ci-report__foot {
  display: flex;
  align-items: center;
  gap: var(--ci-space-2);
  margin-top: 2px;
  padding-top: var(--ci-space-2);
  border-top: 1px solid var(--ci-line);
}

.ci-report__attached {
  margin: 0;
  color: var(--gaia-muted-foreground);
  font: var(--ci-type-caption);
}

/* Whether a picture goes with the report, and the picture itself, small; it opens full size. */
.ci-report__picture-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gaia-foreground);
  font: var(--ci-type-caption);
  cursor: pointer;
}
.ci-report__picture-toggle input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--gaia-primary);
  cursor: pointer;
}

.ci-report__thumb {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 36px;
  overflow: hidden;
  border: 1px solid var(--ci-line);
  border-radius: var(--ci-radius-control);
  background: var(--ci-fill);
  color: var(--gaia-muted-foreground);
  transition:
    border-color var(--ci-duration-press) ease-out,
    box-shadow var(--ci-duration-press) ease-out;
}
.ci-report__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}
.ci-report__thumb:not(:disabled) {
  cursor: zoom-in;
}
.ci-report__thumb:not(:disabled):hover {
  border-color: var(--gaia-primary);
  box-shadow: 0 0 0 2px oklch(from var(--gaia-primary) l c h / 0.15);
}
.ci-report__thumb:focus-visible {
  outline: 2px solid var(--gaia-ring);
  outline-offset: 1px;
}
.ci-report__thumb[data-state='taking'] {
  animation: ci-report-thumb-taking 1s ease-in-out infinite alternate;
}
@keyframes ci-report-thumb-taking {
  from {
    opacity: 0.5;
  }
  to {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ci-report__thumb[data-state='taking'] {
    animation: none;
  }
}

.ci-report__picture-missing {
  color: var(--gaia-muted-foreground);
  font: var(--ci-type-caption);
}

.ci-report__picture-full {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--ci-line);
  border-radius: var(--ci-radius-control);
}

/* Send keeps to the right, whatever the picture controls take. */
.ci-report__foot > [data-ci='problem-report-send'] {
  margin-left: auto;
}

.ci-report__enter {
  margin-left: 6px;
  opacity: 0.6;
}

/* While the form is open the conversation is read for what to report: it can be clicked, and the
   rows of actions under the answers stand back. */
[data-ci-reporting] {
  cursor: pointer;
}

[data-ci-reporting] .ci-answer-row {
  opacity: 0.35;
  pointer-events: none;
}

/* The line a sent report leaves under what it was about. */
.ci-report-sent {
  display: flex;
  align-items: flex-start;
  gap: var(--ci-space-2);
  margin: var(--ci-space-2) 0 14px;
  font-size: 13px;
}

.ci-report-sent__icon {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--gaia-ai);
}

.ci-report-sent__text {
  flex: 1;
  min-width: 0;
  margin: 0;
  color: var(--gaia-muted-foreground);
  line-height: 1.5;
}

.ci-report-sent__note {
  color: var(--gaia-foreground);
}


/* /src/shared/ui/ai-elements/ai-elements.css */
/* The ported AI Elements. Tokens only, every colour a Gaia token, and every animation degrades
   to a static, legible resting state under prefers-reduced-motion. */

/* Text that is still being worked on: a bright band crossing the glyphs, clipped to the text,
   so a running line reads as live without a spinner anywhere on screen.

   Two stacked layers. Underneath, a flat muted fill is the text's resting colour. Above it, a
   250%-wide band travelling right to left whose centre is the full-contrast ink — on a light
   surface the sweep therefore reads as the sentence brightening rather than as a pale wash,
   which is what a page-background highlight would give here. The band's half-width comes from
   `--ci-shimmer-spread`, which the component sets from the length of the sentence, so a short
   step and a long one sweep at the same apparent speed. */
@keyframes ci-shimmer-sweep {
  0% {
    background-position:
      100% center,
      0 0;
  }
  100% {
    background-position:
      0% center,
      0 0;
  }
}

.ci-shimmer {
  --ci-shimmer-spread: 24px;
  --ci-shimmer-duration: 2s;
  position: relative;
  display: inline-block;
  background-image:
    linear-gradient(
      90deg,
      transparent calc(50% - var(--ci-shimmer-spread)),
      var(--gaia-foreground),
      transparent calc(50% + var(--ci-shimmer-spread))
    ),
    linear-gradient(var(--gaia-muted-foreground), var(--gaia-muted-foreground));
  background-size:
    250% 100%,
    auto;
  background-repeat: no-repeat, padding-box;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: ci-shimmer-sweep var(--ci-shimmer-duration) linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .ci-shimmer {
    animation: none;
    color: var(--gaia-foreground);
    background-image: none;
    -webkit-text-fill-color: currentColor;
  }
}

/* A disclosure whose body slides rather than snapping. The height is animated by the component;
   this only carries the easing and the reduced-motion opt-out. */
.ci-disclosure-body {
  overflow: hidden;
}

/* One step of a chain of thought: a 16px mark column, then the sentence and its result as one
   run of text. Status shows in the mark and in contrast; only a failed step takes a colour. */
.ci-step {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 2px 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--gaia-muted-foreground);
}

.ci-step-mark {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 20px;
}

.ci-step-complete .ci-step-mark {
  color: var(--gaia-success);
}

.ci-step-error .ci-step-mark,
.ci-step-error .ci-step-label,
.ci-step-error .ci-step-result {
  color: var(--gaia-destructive);
}

.ci-step-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  border: 1.5px solid var(--gaia-muted-foreground);
}

@keyframes ci-step-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 oklch(from var(--gaia-ai) l c h / 0.35);
  }
  50% {
    box-shadow: 0 0 0 4px oklch(from var(--gaia-ai) l c h / 0);
  }
}

.ci-step-active .ci-step-dot {
  border: none;
  background: var(--gaia-ai);
  animation: ci-step-pulse 1.4s ease-in-out infinite;
}

.ci-step-pending {
  opacity: 0.6;
}

.ci-step-text {
  min-width: 0;
}

.ci-step-active .ci-step-label {
  color: var(--gaia-foreground);
}

.ci-step-result {
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  .ci-step-active .ci-step-dot {
    animation: none;
  }
}


/* /src/features/carbon-intelligence/chat/sections/composer.css */
/* The chat box [DEV-3572 spec 4] on Gaia's Input Group, in its two looks.

   home  — one fully round pill, no border, a small shadow on white: attach, the question,
           Filters, the model selector, send, every control on the question's last line.
   panel — a rounded box with the hairline: the question over a row of tools.

   Every control is a 32px circle with a 16px glyph, 4px apart; tools are ghost circles (muted
   glyph, the muted ground on hover), Send is the one filled control in AI green, and anything
   disabled is at 45%. No focus outline: the caret is the focus state. */

.ci-composer {
  position: relative;
  flex-direction: column;
  align-items: stretch;
  background: var(--gaia-card);
  transition: border-color var(--ci-duration-press) ease-out;
}

.ci-composer[data-variant='home'] {
  /* `rounded-full`: the ends stay semicircles however tall the question grows. */
  border-color: transparent;
  border-radius: var(--gaia-radius-pill, 9999px);
  padding: 6px;
  box-shadow: var(--shadow-sm);
}

.ci-composer[data-variant='panel'] {
  border-radius: var(--gaia-radius-xl);
  padding: 8px;
}

/* Square-topped under the selected chart's strip: the two are one shape. */
.ci-composer[data-chart] {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.ci-composer[data-dragging] {
  border-color: var(--gaia-ai);
}

.ci-composer__row {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  width: 100%;
  min-width: 0;
}

.ci-composer__input {
  display: flex;
  flex: 1 1 auto;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.ci-composer__textarea {
  overflow-y: auto;
}

/* Home's question is one 32px line, the controls' height: 24px of leading and 4px either side. */
.ci-composer[data-variant='home'] .ci-composer__textarea {
  min-height: 32px;
  max-height: 160px;
  padding: 4px 8px;
  font-size: 16px;
  line-height: 24px;
}

.ci-composer[data-variant='panel'] .ci-composer__textarea {
  min-height: 40px;
  max-height: 140px;
  padding: 4px 8px 0;
}

.ci-composer__textarea::placeholder {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* A suggested next question wraps, so it can be read whole in a narrow box; so does the reason a
   box cannot be asked from. */
.ci-composer__textarea[data-ci-suggestion]::placeholder,
.ci-composer[data-disabled] .ci-composer__textarea::placeholder {
  white-space: normal;
}

.ci-composer__top {
  padding: 2px 4px 6px;
}

.ci-composer__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}

.ci-composer[data-variant='home'] .ci-composer__top {
  padding: 4px 16px 2px;
}

.ci-composer__tools {
  padding: 8px 0 0;
}

.ci-composer__group {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 4px;
}

.ci-composer__spacer {
  flex: 1;
}

/* The tools: ghost circles, with no fill at rest (Gaia's ghost button sets none, so the
   browser's own button face would show). */
.ci-composer__control {
  position: relative;
  border: 0;
  background: transparent;
  color: var(--gaia-muted-foreground);
}

.ci-composer__control:hover:not(:disabled),
.ci-composer__control[data-open],
.ci-composer__control[data-popup-open] {
  background: var(--gaia-muted);
  color: var(--gaia-muted-foreground);
}

.ci-composer__control:disabled {
  opacity: 0.45;
}

.ci-composer__send {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  background: var(--gaia-ai);
  color: var(--gaia-ai-foreground);
  transition: opacity var(--ci-duration-press) ease-out;
}

.ci-composer__send:hover:not(:disabled) {
  opacity: 0.9;
}

.ci-composer__send:focus-visible {
  outline: 2px solid var(--gaia-ring);
  outline-offset: 2px;
}

.ci-composer__send:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ci-composer__token {
  display: inline-flex;
  flex-shrink: 0;
  gap: 6px;
  align-items: center;
  height: 32px;
  padding-left: 8px;
  color: var(--gaia-foreground);
  font: var(--ci-type-label);
}

.ci-composer__token-close {
  display: inline-flex;
  color: var(--gaia-muted-foreground);
}

/* The selected chart, the panel box's header: solid AI green, white glyph, title and ×. */
.ci-composer__chart {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--gaia-ai);
  border-bottom: 0;
  border-radius: var(--gaia-radius-xl) var(--gaia-radius-xl) 0 0;
  background: var(--gaia-ai);
  color: var(--gaia-ai-foreground);
}

.ci-composer__chart > svg {
  flex-shrink: 0;
}

.ci-composer__chart-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: var(--gaia-text-xs);
  font-weight: var(--gaia-font-weight-semibold);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ci-composer__chart-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 9999px;
  color: inherit;
}

.ci-composer__chart-clear:hover {
  background: oklch(from var(--gaia-ai-foreground) l c h / 0.12);
}

.ci-composer__chart-clear:focus-visible {
  outline: 2px solid var(--gaia-ai-foreground);
  outline-offset: 1px;
}

.ci-composer__files {
  margin-bottom: 8px;
}

.ci-composer__context {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 8px;
}

.ci-composer__error {
  color: var(--gaia-badge-destructive-foreground);
  font: var(--ci-type-caption);
}

.ci-composer__usage {
  display: block;
  padding: var(--ci-space-1) var(--ci-space-3) 0;
  color: var(--gaia-muted-foreground);
}

.ci-composer__usage[data-warning] {
  color: var(--gaia-badge-warning-foreground, var(--gaia-warning));
}

/* The Filters popover: the part of the business over the timeframe, scrolling as one when the two
   are taller than the room above the box. */
.ci-composer-filters {
  width: 320px;
  max-height: min(560px, var(--available-height, 560px));
  gap: 4px;
}

.ci-composer-filters__value {
  display: block;
  padding: 0 9px 4px;
  color: var(--gaia-foreground);
}

/* The model selector's dialog: a search box over a grouped list. */
.ci-model__body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: min(560px, calc(100dvh - 96px));
}

.ci-model__search {
  padding: 12px 12px 8px;
  border-bottom: 1px solid var(--gaia-border);
}

.ci-model__list {
  overflow-y: auto;
  padding: 4px 8px 8px;
}

.ci-model__heading {
  padding: 10px 8px 4px;
  color: var(--gaia-muted-foreground);
  font-size: var(--gaia-text-xs);
  font-weight: var(--gaia-font-weight-semibold);
}

.ci-model__row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 32px;
  padding: 6px 8px;
  border-radius: var(--gaia-radius-md);
  color: var(--gaia-foreground);
  font-size: var(--gaia-text-xs);
  text-align: left;
}

.ci-model__row[data-active] {
  background: var(--gaia-muted);
}

.ci-model__row:focus-visible {
  outline: 2px solid var(--gaia-ring);
  outline-offset: -2px;
}

.ci-model__row:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ci-model__row[data-destructive] {
  color: var(--gaia-destructive);
}

.ci-model__icon {
  flex-shrink: 0;
  color: var(--gaia-muted-foreground);
}

.ci-model__row[data-destructive] .ci-model__icon {
  color: inherit;
}

.ci-model__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ci-model__description {
  color: var(--gaia-muted-foreground);
}

.ci-model__check {
  flex-shrink: 0;
}

.ci-model__empty {
  margin: 0;
  padding: 16px 8px;
  color: var(--gaia-muted-foreground);
  font-size: var(--gaia-text-xs);
}

/* While an answer is on its way, a soft light sweeps along the frame over a faint green border:
   the box is working, and the progress rail above says on what. It is drawn over the border and
   takes no input. */
.ci-composer[data-answering]::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  padding: 1.5px;
  border-radius: inherit;
  background:
    linear-gradient(90deg, transparent, var(--gaia-ai), transparent) no-repeat -40% 0 / 40% 100%,
    oklch(from var(--gaia-ai) l c h / 0.3);
  mask:
    linear-gradient(#000 0 0) content-box exclude,
    linear-gradient(#000 0 0);
  pointer-events: none;
  animation: ci-sweep 2.2s ease-in-out infinite;
}

@keyframes ci-sweep {
  to {
    background-position:
      140% 0,
      0 0;
  }
}

/* Without motion the working box keeps a still green border instead. */
@media (prefers-reduced-motion: reduce) {
  .ci-composer[data-answering]::before {
    background: oklch(from var(--gaia-ai) l c h / 0.6);
    animation: none;
  }
}


/* /src/features/carbon-intelligence/chat/sections/empty-chat.css */
/* The empty chat fills the room it is given, in three bands: room above, the question with the
   starters, then the box with what sits under it. The first and last bands share what is left equally, so the
   question's place depends only on the room, never on the box: the box grows downward on focus,
   into a command's form or past the room's foot (the conversation column then scrolls), and the
   question stays where it is.

   The room under the box is counted from the resting box's foot (the bottom padding adds the
   gap and the resting box's 52 px), so at rest the question and the box are centred together. */

.ci-empty {
  --ci-empty-resting-box: calc(16px + 52px);

  /* Exactly the room, whatever the box holds: a taller box overflows into the scrolling column
     rather than making the room taller, which would hand the band above more space. */
  flex: 1 0 0;
  min-height: 0;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 0 var(--ci-space-5) calc(16px + var(--ci-empty-resting-box));
  /* The glow fills the room; the room clips it at the sides. */
  overflow-x: clip;
}

.ci-empty::before {
  content: '';
  flex: 1 1 0;
  min-height: var(--ci-space-7);
}

.ci-empty__question-row {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 100%;
  max-width: 760px;
}

/* The one soft green glow the product allows (DEV-3572, the prototype's AiGlow, its gradient
   exactly): a still field of the AI colour behind the question, the starters and the box,
   strongest a little under the middle and gone well before the edges, so it reads as light
   rather than as a shape. Nothing animates, so reduced motion has nothing to turn off. */
.ci-empty__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    ellipse 55% 45% at 50% 55%,
    oklch(from var(--gaia-ai) l c h / 0.28) 0%,
    oklch(from var(--gaia-ai) l c h / 0.12) 40%,
    transparent 72%
  );
  filter: blur(8px);
  pointer-events: none;
}

.ci-empty__question {
  margin: 0;
  color: var(--gaia-foreground);
  text-align: center;
  text-wrap: balance;
}

.ci-empty__below {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  /* The band keeps its equal share even when the box outgrows it; the box overflows the band
     instead of taking room from the band above. */
  min-height: 0;
  align-items: center;
  width: 100%;
  max-width: 760px;
  padding-top: 16px;
}

.ci-empty__composer {
  width: 100%;
}

/* On the start screen everything under the question is centred, the AI note under the box too;
   docked, it keeps to the column's left with the box's text. */
.ci-empty__composer .ci-composer__disclosure {
  text-align: center;
}

/* The starters: Gaia's small button in the chip's look, white with a hairline, the muted ground
   on hover; they wrap and centre so every one is seen at once (the prototype's suggestion row). */
.ci-empty__starters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  width: 100%;
}

.ci-empty__starter[data-slot='button'] {
  border: 1px solid var(--gaia-border);
  background: var(--gaia-card);
  color: var(--gaia-foreground);
  font-weight: var(--gaia-font-weight-normal);
}

.ci-empty__starter[data-slot='button']:hover:not(:disabled) {
  background: var(--gaia-muted);
}

/* The one quiet line a page may put under the box: when the data was read (staging's). */
.ci-empty__note {
  margin: var(--ci-space-5) 0 0;
  color: var(--gaia-muted-foreground);
  font: var(--ci-type-caption);
  text-align: center;
}

.ci-empty__note:not([data-ready]) {
  visibility: hidden;
}


/* /src/features/carbon-intelligence/chat/components/source-note.css */
/* A page state: one line and the mark that says which data it is about. Only unreachable data
   takes the caution ink; data still loading reads as quiet as the lines around it. */

.ci-source-note {
  display: flex;
  align-items: center;
  gap: var(--ci-space-1);
  color: var(--gaia-muted-foreground);
  font: var(--ci-type-caption);
}

.ci-source-note[data-note='unreachable'] {
  color: var(--gaia-badge-warning-foreground, var(--gaia-warning));
}

.ci-source-note[data-align='center'] {
  justify-content: center;
  text-align: center;
}

.ci-source-note__mark {
  flex-shrink: 0;
}

.ci-source-note[data-note='unreachable'] .ci-source-note__mark {
  color: var(--gaia-warning);
}


/* /src/features/carbon-intelligence/chat/sections/chat.css */
/* Carbon Intelligence — the few animations and scroll behaviours the chat needs.
   Everything else comes from the design system's tokens and component classes. */

/* A page change that carries the conversation with it: the rest of the page crossfades while
   the conversation itself glides from where it was to where it is now. */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 240ms;
}

::view-transition-group(ci-conversation) {
  animation-duration: 480ms;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

::view-transition-old(ci-conversation) {
  animation: ci-vt-leave 200ms ease-out both;
}

::view-transition-new(ci-conversation) {
  animation: ci-vt-arrive 280ms ease-out 140ms both;
}

@keyframes ci-vt-leave {
  to {
    opacity: 0;
  }
}

@keyframes ci-vt-arrive {
  from {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation-duration: 0.01ms !important;
  }
}

@keyframes ci-caret {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* A card that grows above the reading position must not push what is being read.
   `overflow-anchor` keeps the browser's scroll anchor pinned to the content below. Once the
   person scrolls up, that anchor would carry them down with every line that arrives, so the
   stream holds no anchor until they are back at the bottom. */
.ci-stream {
  overflow-anchor: auto;
}
/* Gaia keeps the scrollbar's gutter on the right only, which centres the thread half a gutter left
   of the docked box under it. On the page the gutter sits on both sides, so the two share one
   760px column (spec 2.4); the panel keeps its edges flush. */
.ci-stream--page {
  scrollbar-gutter: stable both-edges;
}

.ci-stream[data-ci-following='false'] {
  overflow-anchor: none;
}
.ci-stream > * {
  overflow-anchor: none;
}
.ci-anchor {
  overflow-anchor: auto;
  height: 1px;
}

/* One turn component at two sizes (DEV-3572; DEV-3571 Paz 3.13): Home's turns read in body
   16/24 and stand 32px apart, the side panel's in 12px and 24px apart. A long transcript draws
   its turns one per positioned row, so there each row carries the gap as its own padding. */
.ci-turns {
  --ci-turn-gap: 32px;
  display: flex;
  flex-direction: column;
  gap: var(--ci-turn-gap);
}
.ci-turns[data-ci-size='panel'] {
  --ci-turn-gap: 24px;
}
.ci-turns[data-ci-virtual] > [style] > [data-index] {
  padding-bottom: var(--ci-turn-gap);
}
/* What follows the turns (a failure, a sent report) keeps the same distance from them. */
.ci-turns + * {
  margin-top: var(--ci-turn-gap);
}
.ci-turns[data-ci-size='home'] [data-ci='prose'] {
  --ci-prose-leading: 1.5rem;
  font-size: var(--gaia-text-base);
}
/* At body size the answer's own headings are no smaller than its words. */
.ci-turns[data-ci-size='home'] [data-ci='prose'] :is(.h3, .body-bold) {
  font-size: inherit;
  line-height: inherit;
}
/* The shortcut and the passages a question was asked about, on the question's side. */
.ci-asked__context {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

/* A step being worked on turns while motion is allowed; otherwise its glyph stands still. */
@media (prefers-reduced-motion: no-preference) {
  .ci-trace-spin {
    animation: ci-trace-spin 1s linear infinite;
  }
}
@keyframes ci-trace-spin {
  to {
    rotate: 360deg;
  }
}

.ci-fade-in {
  animation: ci-fade-in 260ms ease both;
}
@keyframes ci-fade-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* The message action row appears on hover or when anything inside it has focus. It keeps its
   height either way — a row that collapses when unhovered makes the whole thread jump under
   the pointer — but its height is the only space it takes. Its controls fade one by one rather
   than the row as a whole, so one of them (a rating that is set) can stay in sight. */
.ci-actions > * {
  opacity: 0;
  transition: opacity 140ms;
}
.ci-turn:hover .ci-actions > *,
.ci-turn:focus-within .ci-actions > * {
  opacity: 1;
}

/* Streaming prose ends with a caret AFTER the last word. Markdown's final block is a `<p>` (or
   an `<li>`), so a caret rendered as its sibling would drop onto a line of its own underneath.
   It is drawn instead as an `::after` on that final block, which puts it in the same inline
   flow as the text it is trailing — no measurement, no negative margins, correct on a wrapped
   line and on a list. */
.ci-streaming > div > :last-child::after,
.ci-streaming > div > :last-child > li:last-child::after {
  content: '';
  display: inline-block;
  width: 7px;
  height: 0.92em;
  margin-left: 3px;
  vertical-align: text-bottom;
  border-radius: 1px;
  background: var(--gaia-ai);
  animation: ci-caret 1s steps(2, start) infinite;
}

/* A list's own `::after` would double up with its last item's. */
.ci-streaming > div > ul:last-child::after,
.ci-streaming > div > ol:last-child::after {
  content: none;
}

@media (prefers-reduced-motion: reduce) {
  .ci-streaming > div > :last-child::after,
  .ci-streaming > div > :last-child > li:last-child::after {
    animation: none;
  }
}

/* A placeholder for something the server is still writing, such as the sources under an
   answer. It carries the shape of the real thing (a pill of about the
   right width) so nothing jumps when the content replaces it, and a slow sheen crossing it says
   the wait is expected rather than broken. */
.ci-skeleton {
  position: relative;
  overflow: hidden;
  border-radius: 7px;
  background: oklch(from var(--ci-fill) l c h / 0.55);
}

.ci-skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    transparent,
    oklch(from var(--ci-surface) l c h / 0.75),
    transparent
  );
  animation: ci-sheen 1.5s ease-in-out infinite;
}

@keyframes ci-sheen {
  100% {
    transform: translateX(100%);
  }
}

/* Motion is decoration here: the placeholder still reserves the space without it. */
@media (prefers-reduced-motion: reduce) {
  .ci-skeleton::after {
    animation: none;
  }
}

/* The files travelling with the next turn, inside the composer frame above the box. Two abreast
   so a card can carry a real name and a state sentence; the rest collapse into one tile rather
   than wrapping the frame into a second panel. */
/* Two cards abreast, wrapping to the next line rather than narrowing further. A grid of
   `auto-fill` columns takes as many as the composer is wide and squeezes every name into an
   ellipsis; a card has to be wide enough to show a name and a size at once. */
.ci-file-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 10px 0 12px;
}

.ci-file-cards > .ci-file-card {
  flex: 1 1 240px;
  min-width: 0;
  max-width: 100%;
}

/* The overflow tile is a marker, not a card: it takes only the width of its own label. */
.ci-file-cards > .ci-file-more {
  flex: 0 0 auto;
  min-width: 56px;
}

.ci-composer__block {
  padding: var(--ci-space-2) var(--ci-space-3) 0;
  color: var(--gaia-badge-destructive-foreground);
}

/* A waiting question is answered from the box, so its line guides rather than refuses. */
.ci-composer__block[data-tone='hint'] {
  color: var(--gaia-muted-foreground);
}

.ci-composer__disclosure {
  padding: var(--ci-space-1) var(--ci-space-3) 0;
  color: var(--gaia-muted-foreground);
}

.ci-shared-reader {
  padding: var(--ci-space-1) var(--ci-space-3) var(--ci-space-2);
  color: var(--gaia-muted-foreground);
}

.ci-file-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ci-space-1) var(--ci-space-2);
  min-width: 0;
  padding: 7px 8px 7px 9px;
  border: 1px solid var(--ci-line);
  border-radius: var(--ci-radius-control);
  background: oklch(from var(--ci-canvas) l c h / 0.6);
  text-align: left;
  transition:
    border-color 140ms,
    background 140ms;
}

.ci-file-card[role='button'] {
  cursor: pointer;
}
.ci-file-card[role='button']:hover {
  border-color: oklch(from var(--gaia-ai) l c h / 0.5);
  background: var(--ci-surface);
}

.ci-file-card[data-status='failed'] {
  border-color: oklch(from var(--gaia-destructive) l c h / 0.45);
  background: oklch(from var(--gaia-destructive) l c h / 0.1);
}

/* One tile standing in for the cards past the second. */
.ci-file-more {
  justify-content: center;
  min-height: 44px;
  color: var(--gaia-muted-foreground);
  cursor: pointer;
}
.ci-file-more:hover {
  border-color: oklch(from var(--gaia-muted-foreground) l c h / 0.5);
}

/* A tile standing in front of a file that could not be read stacks its count over the reason,
   so a failure is never hidden behind a number. */
.ci-file-more[data-status='failed'] {
  flex-direction: column;
  gap: 1px;
}
.ci-file-more-failed {
  color: var(--gaia-badge-destructive-foreground);
  white-space: normal;
}

.ci-file-glyph {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: oklch(from var(--ci-fill) l c h / 0.7);
  color: var(--gaia-muted-foreground);
}
.ci-file-card[data-status='failed'] .ci-file-glyph {
  background: oklch(from var(--gaia-destructive) l c h / 0.1);
  color: var(--gaia-destructive);
}
.ci-file-card[data-status='ready'] .ci-file-glyph {
  color: var(--gaia-ai);
}

.ci-file-body {
  display: flex;
  flex: 1 1 8rem;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.ci-file-name {
  display: flex;
  min-width: 0;
  color: var(--gaia-foreground);
}

.ci-file-name-head,
.ci-file-name-tail {
  white-space: pre;
}

.ci-file-name-head {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ci-file-name-tail {
  flex-shrink: 0;
}

.ci-file-state {
  overflow: hidden;
  color: var(--gaia-muted-foreground);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ci-file-state-failed {
  color: var(--gaia-badge-destructive-foreground);
  white-space: normal;
}

.ci-file-controls {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  margin-left: auto;
  gap: 2px;
}

.ci-file-action {
  padding: 3px 7px;
  border-radius: 6px;
  color: var(--gaia-primary);
  white-space: nowrap;
}
.ci-file-action:hover {
  background: oklch(from var(--ci-fill) l c h / 0.7);
}

.ci-file-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* The smallest target a pointer is promised. */
  width: var(--ci-space-5);
  height: var(--ci-space-5);
  border-radius: 6px;
  color: var(--gaia-muted-foreground);
}
.ci-file-remove:hover {
  background: var(--ci-fill);
  color: var(--gaia-foreground);
}

/* ---- Quotes: the floating control, the chip row, and the marks they light ---- */

/* A quoted span, painted back inside the answer it came from. The browser's own highlight
   registry does this without a wrapper element, so the rendered markdown is never touched. */
::highlight(ci-quote) {
  background: oklch(from var(--gaia-ai) l c h / 0.18);
  color: var(--gaia-foreground);
}

/* The card a reference chip points at, lit while the chip is hovered. Matches the focused
   surface a card takes in the transcript. */
[data-ci-quote-focus='true'] > * {
  border-color: oklch(from var(--gaia-ai) l c h / 0.45);
  box-shadow: 0 6px 24px oklch(from var(--gaia-foreground) l c h / 0.08);
}

.ci-quote-float {
  z-index: 45;
  width: max-content;
}

/* Styled in full here rather than on top of `.btn`: the shared button's own hover paints the
   background and leaves the colour to the variant, so a float button carrying `.btn` with no
   variant went invisible under the pointer. It owns every property it needs instead. */
.ci-quote-float-btn {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid var(--ci-line);
  border-radius: 9999px;
  background: var(--ci-surface);
  box-shadow: 0 6px 20px oklch(from var(--gaia-foreground) l c h / 0.14);
  color: var(--gaia-foreground);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  transition:
    background 140ms,
    border-color 140ms;
}
.ci-quote-float-btn:hover,
.ci-quote-float-btn:focus-visible {
  border-color: oklch(from var(--gaia-ai) l c h / 0.45);
  background: oklch(from var(--ci-fill) l c h / 0.6);
  color: var(--gaia-foreground);
}

.ci-ask-choices {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: max-content;
  min-width: 200px;
  margin-top: 6px;
  padding: 5px;
  border: 1px solid var(--ci-line);
  border-radius: 10px;
  background: var(--ci-surface);
  box-shadow: 0 8px 24px oklch(from var(--gaia-foreground) l c h / 0.12);
}

.ci-ask-choice {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 7px 9px;
  border-radius: 7px;
  color: var(--gaia-foreground);
  font-size: 12.5px;
  text-align: left;
  white-space: nowrap;
}
.ci-ask-choice:hover,
.ci-ask-choice:focus-visible {
  background: oklch(from var(--ci-fill) l c h / 0.7);
  outline: none;
}

.ci-quote-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
  padding: var(--ci-space-2) var(--ci-space-3) 0;
  list-style: none;
}

.ci-quote-chip {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  height: 26px;
  padding: 0 4px 0 8px;
  border: 1px solid var(--ci-line);
  border-radius: 7px;
  background: var(--ci-surface);
  color: var(--gaia-foreground);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    border-color 140ms,
    background 140ms;
}
.ci-quote-chip:hover,
.ci-quote-chip:focus-within {
  border-color: oklch(from var(--gaia-ai) l c h / 0.45);
  outline: none;
}

/* A chip carrying a note says so without spending a word on it. */
.ci-quote-chip[data-ci-noted='true'] {
  border-color: oklch(from var(--gaia-ai) l c h / 0.45);
  background: oklch(from var(--gaia-ai) l c h / 0.06);
}

/* The chip's body is the button that opens its note; the remove control sits beside it. */
.ci-quote-chip-open {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-width: 0;
  color: inherit;
  font: inherit;
}

.ci-quote-chip-numeral {
  color: var(--gaia-ai);
  font-size: 13px;
}

.ci-quote-chip-label {
  overflow: hidden;
  max-width: 220px;
  color: var(--gaia-muted-foreground);
  text-overflow: ellipsis;
}

.ci-quote-chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  color: var(--gaia-muted-foreground);
}
.ci-quote-chip-remove:hover {
  background: var(--ci-fill);
  color: var(--gaia-foreground);
}

/* What a chip opens: the words in full, and a field for what to say about them. Anchored over
   the chip, above it, because the row sits at the bottom of the screen. */
.ci-quote-note {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 300px;
  padding: 11px 12px;
  border: 1px solid var(--ci-line);
  border-radius: 12px;
  background: var(--ci-surface);
  box-shadow: 0 14px 40px oklch(from var(--gaia-foreground) l c h / 0.14);
}

/* The quoted words, readable in full and wrapping — the chip is the truncated form, not this. */
.ci-quote-note-text {
  max-height: 108px;
  overflow-y: auto;
  padding-left: 9px;
  border-left: 2px solid oklch(from var(--gaia-ai) l c h / 0.4);
  color: var(--gaia-foreground);
  font-size: 12.5px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.ci-quote-note-field {
  min-height: 54px;
  resize: vertical;
  font-family: inherit;
}

/* How much of the note is left, shown only near the cap. */
.ci-quote-note-count {
  margin: 4px 0 0;
  color: var(--gaia-muted-foreground);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* The chip numbers, painted beside the words each one was taken from. The layer never takes the
   pointer: the answer underneath stays selectable straight through it. */
.ci-quote-marks {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 30;
  pointer-events: none;
}

.ci-quote-mark {
  position: absolute;
  transform: translate(-100%, -2px);
  padding-right: 3px;
  color: var(--gaia-ai);
  font-size: 12px;
  line-height: 1;
}

/* ---- The header row ---- */

/* A control in the header. Quiet at rest, on a surface of its own when hovered or when it is the
   one that is on, so the state reads from the lift rather than from a second colour. */
.ci-header-action {
  display: inline-flex;
  flex-shrink: 0;
  gap: 6px;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 9999px;
  color: var(--gaia-muted-foreground);
  font-size: 12.5px;
  white-space: nowrap;
  transition:
    background 140ms,
    border-color 140ms,
    color 140ms;
}
.ci-header-action:hover {
  border-color: var(--ci-line);
  background: var(--ci-surface);
  color: var(--gaia-foreground);
}
.ci-header-action[data-ci-active='true'] {
  border-color: var(--ci-line);
  background: oklch(from var(--ci-fill) l c h / 0.7);
  color: var(--gaia-foreground);
}

/* How many artifacts the conversation has. A numeral riding the control, not a badge stuck to
   it: the count is part of what the control says. */
.ci-header-count {
  min-width: 16px;
  padding: 0 4px;
  border-radius: 9999px;
  background: oklch(from var(--gaia-ai) l c h / 0.14);
  color: var(--gaia-ai);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  line-height: 16px;
  text-align: center;
}

.ci-header-count[aria-hidden='true'] {
  visibility: hidden;
}

/* ---- The panel beside an insight, before the first question ---- */

/* The assistant introducing itself as a co-author: a mark, an invitation in the app's own voice,
   and three ways in. It sits at the top of the room rather than floating in the middle, so the
   panel reads as ready rather than as empty. */
.ci-insight-welcome {
  padding: 4px 0 8px;
}

.ci-insight-welcome-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: oklch(from var(--gaia-ai) l c h / 0.12);
  color: var(--gaia-ai);
}

.ci-insight-welcome-starters {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* One way in. A card rather than a line in a list, so the three read as offers and the pointer
   has something to land on. */
.ci-insight-starter {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 11px;
  border-radius: 11px;
  border: 1px solid var(--ci-line);
  background: var(--ci-surface);
  text-align: left;
  font-size: 13px;
  line-height: 1.45;
  color: var(--gaia-foreground);
  transition:
    border-color 160ms ease,
    box-shadow 200ms ease,
    transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
  animation: ci-fade-in 340ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ci-insight-starter:hover,
.ci-insight-starter:focus-visible {
  transform: translateY(-1px);
  border-color: oklch(from var(--gaia-ai) l c h / 0.45);
  box-shadow: 0 8px 20px -10px oklch(from var(--gaia-foreground) l c h / 0.35);
}

.ci-insight-starter-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 8px;
  background: oklch(from var(--ci-fill) l c h / 0.6);
  color: var(--gaia-muted-foreground);
  transition:
    background 180ms ease,
    color 180ms ease;
}

.ci-insight-starter:hover .ci-insight-starter-mark,
.ci-insight-starter:focus-visible .ci-insight-starter-mark {
  background: oklch(from var(--gaia-ai) l c h / 0.14);
  color: var(--gaia-ai);
}

.ci-insight-starter-go {
  flex-shrink: 0;
  color: var(--gaia-ai);
  opacity: 0;
  transform: translateX(-4px);
  transition:
    opacity 180ms ease,
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.ci-insight-starter:hover .ci-insight-starter-go,
.ci-insight-starter:focus-visible .ci-insight-starter-go {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .ci-insight-starter {
    animation: none;
  }
  .ci-insight-starter:hover,
  .ci-insight-starter:focus-visible {
    transform: none;
  }
  .ci-insight-starter-go {
    transform: none;
  }
}

/* An answer a failed run cut off: still readable, visibly not the whole of it. */
.ci-turn[data-ci-incomplete='true'] [data-ci-quotable] {
  color: var(--gaia-muted-foreground);
}

.ci-incomplete-label {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 var(--ci-space-2);
  border-radius: var(--ci-radius-pill);
  font: var(--ci-type-caption);
  color: var(--gaia-muted-foreground);
  background: oklch(from var(--ci-fill) l c h / 0.7);
}

/* The quiet lines under an answer: a spent allowance, a chart that could not be drawn, a stop. */
.ci-turn-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 12.5px;
  color: var(--gaia-muted-foreground);
}

.ci-turn-note > svg {
  flex-shrink: 0;
}

.ci-turn-note--allowance {
  margin-top: var(--ci-space-2);
}

.ci-turn-note--chart {
  margin: var(--ci-space-1) 0 14px;
}

.ci-turn__card {
  margin: var(--ci-space-1) 0 var(--ci-space-4);
}

/* A stopped mark sits one fixed gap under whatever came before it, or under the turn's top. */
.ci-turn[data-ci-stopped='true'] {
  display: flow-root;
}

/* The markdown blocks set their margins inline, so only !important clears the last one. */
.ci-turn > :has(+ .ci-turn-note--stopped),
.ci-turn > :has(+ .ci-turn-note--stopped) :last-child {
  margin-bottom: 0 !important;
}

.ci-turn-note--stopped {
  margin-top: var(--ci-space-2);
}

/* The one thing a stopped turn offers, at the note's own size so the line stays one line. */
.ci-turn-note__action {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 500;
  color: var(--gaia-foreground);
  text-decoration: underline;
  cursor: pointer;
}

/* Words only a screen reader gets: out of the flow and clipped to nothing, so a live region can
   change without moving anything on screen. */
.ci-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* The steps of a running answer sit at its tail, under what has arrived. */
.ci-live-steps {
  margin: 4px 0 0;
}

/* The quiet line a settled answer keeps, between the answer and its actions. */
.ci-settled-steps {
  margin: 12px 0 0;
}

/* Several cards of one answer: one calm column, the same gap between every two. */
.ci-card-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

/* A card with nothing to draw, said in the answer's flow instead of drawn around nothing. */
.ci-empty-card {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--gaia-muted-foreground);
}
.ci-empty-card__title {
  font-weight: 500;
  color: var(--gaia-foreground);
}

/* A table folded to one row: the whole row opens it. */
.ci-folded-card {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  padding: 0 16px;
  border-radius: inherit;
  font-size: 14px;
  text-align: left;
  color: var(--gaia-muted-foreground);
  transition: background 120ms ease-out;
}
.ci-folded-card:hover {
  background: oklch(from var(--ci-fill) l c h / 0.5);
}
.ci-folded-card__title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
  color: var(--gaia-foreground);
}
.ci-folded-card__rows {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

/* Content laid out beside its placeholder until its frame comes: full width, out of the flow,
   invisible, and clipped so it adds nothing to the column's scroll height. */
.ci-reveal {
  position: relative;
}
.ci-reveal:has(> [data-ci-waiting]) {
  overflow: clip;
}
.ci-reveal > [data-ci-waiting] {
  position: absolute;
  inset: 0 0 auto;
  visibility: hidden;
}

/* An answer whose data has moved since: an amber bar on top, the answer under it faded but still
   readable and selectable. The bar and the action row stay at full strength. */
.ci-stale-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 0 0 12px;
  padding: 6px 6px 6px 12px;
  border-radius: var(--ci-radius-control);
  background: oklch(from var(--gaia-warning) l c h / 0.12);
  color: var(--gaia-badge-warning-foreground);
  font-size: 14px;
  line-height: 20px;
}
.ci-stale-bar__icon {
  flex-shrink: 0;
  color: var(--gaia-warning);
}
.ci-stale-bar__text {
  flex: 1;
  min-width: 0;
  margin: 0;
}
.ci-stale-bar__text strong {
  font-weight: 500;
}
.ci-stale-bar__action {
  flex-shrink: 0;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--ci-line);
  border-radius: var(--ci-radius-control);
  background: var(--ci-surface);
  font-size: 14px;
  font-weight: 500;
  color: var(--gaia-foreground);
  transition: background var(--ci-duration-press) ease-out;
}
.ci-stale-bar__action:hover {
  background: oklch(from var(--ci-fill) l c h / 0.7);
}
.ci-turn[data-ci-stale='true'] > :not(.ci-stale-slot, .ci-answer-row-wrap) {
  opacity: 0.6;
}

/* The thread inside Gaia's message scroller (DEV-3572): the column runs the scroller's full height
   so the welcome can centre in it, and the scroller's fade at the foot stays off the composer. */
.ci-stream__content {
  min-height: 100%;
}

/* The AI-green glow behind the docked box, as the prototype's conversation view has it: the start
   screen's gradient, lifted 40px so it rises behind the foot of the thread. */
.ci-docked-glow {
  position: absolute;
  inset: -40px 0 0;
  background: radial-gradient(
    ellipse 55% 45% at 50% 55%,
    oklch(from var(--gaia-ai) l c h / 0.28) 0%,
    oklch(from var(--gaia-ai) l c h / 0.12) 40%,
    transparent 72%
  );
  filter: blur(8px);
  pointer-events: none;
}

/* Gaia's scroller hides its viewport until its first scroll to the end has run, which on a page
   painted by the server means until the script arrives. The chat keeps what the server drew in
   sight; the stream's own hook takes the conversation to its end once the client runs. */
.ci-stream[data-pending-scroll] {
  visibility: visible;
}


/* /src/features/carbon-intelligence/chat/sections/assistant-panel.css */
/* The assistant beside a page [DEV-3572, spec 6.1]: a column of its own at the canvas's right
   edge, Gaia's L module (324px) wide with P (12px) from the page card and the canvas edges, full
   height beside the page bar too. The page narrows to make room for it, so nothing on the page
   sits under it. No card of its own: no border, radius or fill, it sits on the white canvas. The
   column widens from the right edge as it opens and the panel inside keeps its width, so its
   contents never reflow while it moves. Whether it fits beside the page comes from `panelFit`. */

.ci-panel-dock {
  display: flex;
  flex-shrink: 0;
  justify-content: flex-end;
  height: 100%;
  overflow: hidden;
}

/* Where the page card would get narrower than 720px beside it, the panel floats over the page's
   right edge instead, so the page keeps its width. Floating, it brings the canvas under it and
   staging's one raised shadow, or the page would show through. */
.ci-panel-dock[data-placement='over'] {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: var(--gaia-canvas);
  box-shadow: var(--shadow-md);
}

.ci-panel {
  position: relative;
  flex-shrink: 0;
  margin: var(--gaia-grid-p) var(--gaia-grid-p) var(--gaia-grid-p) 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  outline: none;

  /* The panel size of a turn: 12px text throughout (spec 6.3). */
  --ci-type-asked: var(--gaia-font-weight-semibold) 0.75rem/1rem var(--gaia-font-sans);
  --ci-type-body: var(--gaia-font-weight-normal) 0.75rem/1rem var(--gaia-font-sans);
  --ci-type-control: var(--gaia-font-weight-normal) 0.75rem/1rem var(--gaia-font-sans);
}

/* The conversation sits on the panel's canvas, not on a grey ground of its own. */
.ci-panel .ci-root {
  background: transparent;
}

/* Turns 24px apart in the panel (32px on the chat page; spec 6.3). */
.ci-panel * + .ci-asked,
.ci-panel [data-index]:not([data-index='0']) > .ci-asked {
  margin-top: 24px;
  padding-top: 0;
  border-top: 0;
}

.ci-panel [data-ci='turn'][data-ci-role='assistant'] {
  margin-bottom: 0 !important;
}

/* The page bar, mirrored (spec 6.2): S tall with the hairline under it, the title set like the
   breadcrumb's page, and close as the bar's 30px control centred in an S slot. */
.ci-panel__head {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  height: var(--gaia-grid-s);
  padding-left: var(--gaia-grid-p);
  border-bottom: 1px solid var(--gaia-border);
}

.ci-panel__title-slot {
  display: flex;
  flex: 1;
  align-items: center;
  min-width: 0;
}

.ci-panel__title {
  display: inline-flex;
  flex: 0 1 auto;
  gap: 4px;
  align-items: center;
  max-width: 100%;
  min-width: 0;
  height: 30px;
  margin-left: -6px;
  padding: 0 6px;
  border: 0;
  border-radius: var(--gaia-radius-md);
  background: transparent;
  color: var(--gaia-foreground);
  font-size: var(--gaia-text-xs);
  font-weight: var(--gaia-font-weight-normal);
  line-height: var(--gaia-text-xs--line-height);
  cursor: pointer;
  outline: none;
  transition: background 120ms;
}

.ci-panel__title:hover,
.ci-panel__title[data-popup-open] {
  background: var(--gaia-accent);
}

.ci-panel__title:focus-visible {
  outline: 2px solid var(--gaia-ring);
  outline-offset: 2px;
}

.ci-panel__title-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ci-panel__chevron {
  flex-shrink: 0;
  color: var(--gaia-muted-foreground);
  transition: transform 120ms;
}

.ci-panel__title[data-popup-open] .ci-panel__chevron {
  transform: rotate(180deg);
}

.ci-panel__menu {
  width: 280px;
}

.ci-panel__menu-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ci-panel__menu-empty {
  margin: 0;
  padding: 8px;
  color: var(--gaia-muted-foreground);
  font-size: var(--gaia-text-xs);
  line-height: var(--gaia-text-xs--line-height);
}

.ci-panel__close-slot {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: var(--gaia-grid-s);
  height: var(--gaia-grid-s);
}

.ci-panel__close {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--gaia-radius-md);
  background: transparent;
  color: var(--gaia-foreground);
  cursor: pointer;
  outline: none;
  transition: background 120ms;
}

.ci-panel__close:hover {
  background: var(--gaia-accent);
}

.ci-panel__close:active {
  background: var(--gaia-muted);
}

.ci-panel__close:focus-visible {
  outline: 2px solid var(--gaia-ring);
  outline-offset: 2px;
}

/* What the screen says about where the reader is (the prototype's guidance box): AI green at 6%
   with a 25% edge. */
.ci-panel__guidance {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 4px;
  margin: var(--gaia-grid-p) var(--gaia-grid-p) 0;
  padding: var(--gaia-grid-p);
  border: 1px solid oklch(from var(--gaia-ai) l c h / 0.25);
  border-radius: var(--gaia-radius-lg);
  background: oklch(from var(--gaia-ai) l c h / 0.06);
}

.ci-panel__guidance-title {
  color: var(--gaia-muted-foreground);
  font-size: var(--gaia-text-xs);
  font-weight: var(--gaia-font-weight-semibold);
  line-height: var(--gaia-text-xs--line-height);
}

.ci-panel__guidance-body {
  margin: 0;
  color: var(--gaia-foreground);
  font-size: var(--gaia-text-xs);
  line-height: var(--gaia-text-xs--line-height);
}

.ci-panel__body {
  display: flex;
  flex: 1;
  min-height: 0;
}

.ci-panel__chart-preview {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  overflow-y: auto;
  padding: var(--gaia-grid-p);
}

.ci-panel__chart-preview p {
  color: var(--gaia-muted-foreground);
  font: var(--ci-type-control);
}

/* Before the first question (spec 6.3): the prompt, centred above the box, with the page's own
   questions under it; both sit at the foot of the column, next to the box. */

.ci-panel-welcome {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--gaia-grid-p);
}

.ci-panel-welcome__prompt {
  margin: 0;
  color: var(--gaia-foreground);
  font-size: var(--gaia-text-xl);
  font-weight: var(--gaia-font-weight-normal);
  line-height: var(--gaia-text-xl--line-height);
  text-align: center;
}

.ci-panel-welcome__suggestions {
  display: flex;
  flex-direction: column;
  gap: var(--ci-space-2);
}

.ci-panel-welcome__suggestion {
  display: flex;
  gap: var(--ci-space-3);
  align-items: flex-start;
  width: 100%;
  padding: 10px var(--ci-space-3);
  border: 1px solid var(--ci-line);
  border-radius: var(--ci-radius-control);
  background: var(--ci-surface);
  color: var(--gaia-foreground);
  font: var(--ci-type-control);
  text-align: left;
  transition: border-color var(--ci-duration-press) ease-out;
}

.ci-panel-welcome__suggestion:hover:not(:disabled) {
  border-color: oklch(from var(--gaia-foreground) l c h / 0.24);
}

.ci-panel-welcome__suggestion:focus-visible {
  outline: 2px solid var(--gaia-ring);
  outline-offset: 1px;
}

.ci-panel-welcome__suggestion:disabled {
  opacity: 0.4;
  cursor: default;
}

.ci-panel-welcome__mark {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--gaia-ai);
}


/* /src/features/carbon-intelligence/chat/sections/ask-next.css */
.ci-ask-next {
  margin: 18px 0 0;
}

.ci-ask-next__heading {
  margin: 0 0 6px;
  font: var(--ci-type-caption);
  color: var(--gaia-muted-foreground);
}

.ci-ask-next__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ci-line);
}

.ci-ask-next__list > li {
  border-bottom: 1px solid var(--ci-line);
}

.ci-ask-next__row {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 40px;
  padding: 8px 4px;
  font: var(--ci-type-control);
  color: var(--gaia-foreground);
  text-align: left;
  transition: background var(--ci-duration-pop) var(--ci-ease);
}

.ci-ask-next__row:hover,
.ci-ask-next__row:focus-visible {
  background: oklch(from var(--ci-fill) l c h / 0.5);
  outline: none;
}

.ci-ask-next__row:focus-visible {
  box-shadow: inset 0 0 0 2px oklch(from var(--gaia-primary) l c h / 0.5);
}

.ci-ask-next__mark {
  flex-shrink: 0;
  color: var(--gaia-ai);
}

.ci-ask-next__text {
  flex: 1;
  min-width: 0;
}

.ci-ask-next__go {
  flex-shrink: 0;
  color: var(--gaia-muted-foreground);
  transition: transform var(--ci-duration-pop) var(--ci-ease);
}

.ci-ask-next__row:hover .ci-ask-next__go,
.ci-ask-next__row:focus-visible .ci-ask-next__go {
  transform: translateX(2px);
  color: var(--gaia-foreground);
}


/* /src/features/carbon-intelligence/chat/sections/edit-report.css */
/* The panel's one line about a suggestion: waiting in the page, then kept or not. */
.ci-edit-report {
  display: flex;
  align-items: baseline;
  gap: var(--ci-space-2);
  margin: 0 0 var(--ci-space-3);
  color: var(--gaia-muted-foreground);
  font: var(--ci-type-control);
}

.ci-edit-report[data-waiting] {
  color: var(--gaia-foreground);
}

.ci-edit-report__mark {
  flex-shrink: 0;
  align-self: center;
  color: var(--gaia-ai);
}


/* /src/features/carbon-intelligence/chat/components/conversion-note.css */
/* The line under an answer that was saved into an insight. Its height is fixed so running, done
   and failed read the same size, and it only ever appears under the person's own click, so it
   pushes nothing the person was not already moving. */

.ci-conversion-note {
  display: flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  height: 40px;
  margin-top: 8px;
  padding: 0 8px 0 12px;
  border-radius: var(--ci-radius-control);
  background: oklch(from var(--ci-fill) l c h / 0.55);
  color: var(--gaia-foreground);
  font: var(--ci-type-control);
}

.ci-conversion-note[data-state='suggested'],
.ci-conversion-note[data-state='kept'] {
  background: oklch(from var(--gaia-success) l c h / 0.12);
}

.ci-conversion-note[data-state='failed'] {
  background: oklch(from var(--gaia-destructive) l c h / 0.1);
}

.ci-conversion-note__icon {
  flex-shrink: 0;
  color: var(--gaia-muted-foreground);
}

.ci-conversion-note[data-state='running'] .ci-conversion-note__icon {
  color: var(--gaia-ai);
  animation: ci-conversion-working 1.4s ease-in-out infinite;
}

.ci-conversion-note[data-state='suggested'] .ci-conversion-note__icon,
.ci-conversion-note[data-state='kept'] .ci-conversion-note__icon {
  color: var(--gaia-success);
}

.ci-conversion-note[data-state='failed'] .ci-conversion-note__icon {
  color: var(--gaia-destructive);
}

.ci-conversion-note__words {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Gaia's outline button is transparent at rest; the note's own tint would show through it. */
.ci-conversion-note__action:not(:hover) {
  background: var(--ci-surface);
}

@keyframes ci-conversion-working {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ci-conversion-note[data-state='running'] .ci-conversion-note__icon {
    animation: none;
  }
}


/* /src/features/carbon-intelligence/chat/components/rating-thumbs.css */
/* The two thumbs under an answer: the set one on the navy 6% ground and a little bolder, a pop
   when it is set, and a short thanks just above them. */

.ci-rating {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

[data-ci-thumb] {
  --ci-thumb-ink: var(--gaia-foreground);
  position: relative;
}
[data-ci-thumb='good'] {
  --ci-thumb-tilt: -14deg;
}
[data-ci-thumb='bad'] {
  --ci-thumb-tilt: 14deg;
}
[data-ci-thumb][aria-pressed='true'] svg {
  stroke-width: 2.25;
}

/* Setting a thumb: it tips and grows for a beat, and a ring goes out from it. */
[data-ci-thumb][data-popped] svg {
  animation: ci-thumb-pop 380ms var(--ci-ease);
}
[data-ci-thumb][data-popped]::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  animation: ci-thumb-ring 480ms ease-out forwards;
}
@keyframes ci-thumb-pop {
  0% {
    transform: scale(1) rotate(0deg);
  }
  40% {
    transform: scale(1.3) rotate(var(--ci-thumb-tilt));
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}
@keyframes ci-thumb-ring {
  from {
    box-shadow: 0 0 0 0 oklch(from var(--ci-thumb-ink) l c h / 0.35);
  }
  to {
    box-shadow: 0 0 0 8px oklch(from var(--ci-thumb-ink) l c h / 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  [data-ci-thumb][data-popped] svg,
  [data-ci-thumb][data-popped]::after {
    animation: none;
  }
}

/* The thanks sits above the thumbs, in place of their tooltip, and takes no room in the row. */
.ci-rating__bubble {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  pointer-events: none;
}
.ci-rating__thanks {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 3px 9px;
  border: 1px solid var(--ci-line);
  border-radius: var(--ci-radius-pill);
  background: var(--ci-surface);
  box-shadow: var(--ci-shadow-lift);
  color: var(--gaia-foreground);
  font: var(--ci-type-caption);
  white-space: nowrap;
}

/* On an older answer the row waits for a hover, but a rating that is set stays in sight, so
   the answers already rated can be told apart at a glance. The thumb not chosen waits with the
   rest of the row. */
.ci-turn .ci-actions > .ci-rating[data-rated] {
  opacity: 1;
}
.ci-turn:not(:hover):not(:focus-within)
  .ci-actions:not(.ci-actions-last)
  .ci-rating
  > button:not([aria-pressed='true']) {
  opacity: 0;
}
@media (hover: none) {
  .ci-turn:not(:hover):not(:focus-within)
    .ci-actions:not(.ci-actions-last)
    .ci-rating
    > button:not([aria-pressed='true']) {
    opacity: 1;
  }
}
.ci-rating > button {
  transition:
    background var(--ci-duration-press) ease-out,
    color var(--ci-duration-press) ease-out,
    opacity 140ms;
}


/* /src/features/carbon-intelligence/chat/components/save-as-insight.css */
/* "Save" under an answer opens Gaia's dropdown menu (DEV-3572). What is here: the menu's width,
   its height before it scrolls, and the rows naming a document with the time it was last edited. */

.ci-save-menu {
  width: 264px;
  max-height: min(360px, var(--available-height, 360px));
  overflow-y: auto;
}

.ci-save-menu__name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ci-save-menu__note {
  flex-shrink: 0;
  color: var(--gaia-muted-foreground);
}

.ci-save-menu__icon {
  color: var(--gaia-muted-foreground);
}

.ci-save-menu__waiting {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
}

.ci-save-menu__skeleton {
  display: block;
  height: 16px;
  border-radius: var(--gaia-radius-md);
}

.ci-save-menu__note-line {
  margin: 0;
  padding: 8px;
  color: var(--gaia-muted-foreground);
  font: var(--ci-type-caption);
}


/* /src/features/carbon-intelligence/chat/sections/sent-quotes.css */
/* What a question was asked about, above the person's own words, quiet enough that the question
   is still what the eye lands on. */
.ci-sent-quotes {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 0 6px;
  padding: 0;
  list-style: none;
}

.ci-sent-quote {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  max-width: 320px;
  height: 22px;
  padding: 0 8px;
  border: 1px solid var(--ci-line);
  border-radius: 7px;
  color: var(--gaia-muted-foreground);
  font-size: 11.5px;
  line-height: 1;
  white-space: nowrap;
  transition:
    color 140ms,
    border-color 140ms;
}
.ci-sent-quote:hover,
.ci-sent-quote:focus-visible {
  border-color: oklch(from var(--gaia-ai) l c h / 0.45);
  color: var(--gaia-foreground);
  outline: none;
}

.ci-sent-quote-text {
  overflow: hidden;
  text-overflow: ellipsis;
}

.ci-quote-numeral {
  flex-shrink: 0;
  color: var(--gaia-ai);
  font-size: 12px;
}


/* /src/features/carbon-intelligence/chat/components/share-access-dialog.css */
.ci-share {
  display: flex;
  flex-direction: column;
  gap: var(--ci-space-3);
  container-type: inline-size;
}

.ci-share__lists {
  display: flex;
  flex-direction: column;
  gap: var(--ci-space-2);
}

.ci-share__results {
  display: flex;
  flex: none;
  flex-direction: column;
  max-height: calc(3 * 48px + var(--ci-space-2));
  padding-bottom: var(--ci-space-2);
  overflow-y: auto;
  border-bottom: 1px solid var(--ci-line);
  scrollbar-gutter: stable;
}

.ci-share__results > * {
  flex: none;
}

.ci-share__label {
  flex: none;
  margin: 0;
  color: var(--gaia-foreground);
  font: var(--ci-type-label);
}

.ci-share__list {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  max-height: calc(5 * 48px);
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.ci-share__list > * {
  flex: none;
}

/* Where the engine shares the list's columns, labels end at one edge and the action fits its widest word. */
@supports (grid-template-columns: subgrid) {
  .ci-share__list {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto auto;
    column-gap: var(--ci-space-3);
    align-content: start;
    padding: 0 var(--ci-space-2);
  }

  .ci-share__list > *,
  .ci-share__list .ci-share__row {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: subgrid;
  }

  .ci-share__list .ci-share__row {
    column-gap: normal;
    padding: 0;
  }

  .ci-share__list .ci-share__trailing {
    display: contents;
  }
}

/* One anatomy for the owner, a reader and a colleague to add: avatar, who, then the row's end. */
.ci-share__row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  column-gap: var(--ci-space-3);
  align-items: center;
  box-sizing: border-box;
  height: 48px;
  padding: 0 var(--ci-space-2);
}

.ci-share__avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--ci-radius-pill);
  background: var(--ci-fill);
  color: var(--gaia-foreground);
  font: var(--ci-type-caption);
  font-weight: var(--gaia-font-weight-semibold);
}

.ci-share__who {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ci-share__name {
  overflow: hidden;
  color: var(--gaia-foreground);
  font: var(--ci-type-label);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ci-share__email {
  overflow: hidden;
  color: var(--gaia-muted-foreground);
  font: var(--ci-type-caption);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ci-share__trailing {
  display: flex;
  align-items: center;
  gap: var(--ci-space-3);
  white-space: nowrap;
}

.ci-share__access {
  color: var(--gaia-muted-foreground);
  font: var(--ci-type-control);
  text-align: right;
}

.ci-share__action {
  display: flex;
  justify-content: flex-end;
  min-width: 80px;
}

/* The button keeps its width while its request runs. Gaia's ghost button carries no resting
   background and the app's button reset skips Gaia buttons, so the browser's grey shows unless it
   is cleared here. */
.ci-share__remove {
  min-width: 80px;
  transition:
    background-color var(--ci-duration-press) ease-out,
    color var(--ci-duration-press) ease-out;
}

.ci-share__remove:not(:hover) {
  background: transparent;
}

/* Gaia's button pairs outline-none with its focus outline, which leaves that outline no style. */
.ci-share__remove:focus-visible {
  outline-style: solid;
}

/* A colleague to add. The wrapper is the listbox option; the active one is the row Enter adds. */
.ci-share__option {
  border-radius: var(--ci-radius-control);
  cursor: pointer;
  transition: background-color var(--ci-duration-press) ease-out;
}

.ci-share__option--active {
  background: var(--ci-fill);
}

/* While one colleague is being added no other Add can be pressed, and every row says so. */
.ci-share__option[aria-disabled='true'] {
  opacity: 0.4;
  cursor: not-allowed;
}

/* The avatar's fill is the active row's fill, so it turns to paper to stay visible. */
.ci-share__option--active .ci-share__avatar {
  background: var(--ci-surface);
}

.ci-share__add {
  color: var(--gaia-primary);
  font: var(--ci-type-label);
}

.ci-share__no-match {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  height: 48px;
  margin: 0;
  padding: 0 var(--ci-space-2);
  color: var(--gaia-muted-foreground);
  font: var(--ci-type-control);
}

/* Placeholder rows hold the 48px geometry of the real ones. */
.ci-share__skeleton-avatar {
  display: grid;
  width: 32px;
  height: 32px;
}

.ci-share__skeleton-avatar .ci-skeleton {
  border-radius: var(--ci-radius-pill);
}

.ci-share__skeleton-text {
  gap: var(--ci-space-1);
}

.ci-share__notes {
  display: flex;
  flex-direction: column;
  gap: var(--ci-space-1);
  color: var(--gaia-muted-foreground);
  font: var(--ci-type-caption);
}

.ci-share__notes p {
  margin: 0;
}

/* What a caller adds under the notes keeps their rhythm and takes its own type. */
.ci-share__extra {
  display: flex;
  flex-direction: column;
  gap: var(--ci-space-2);
  margin-top: var(--ci-space-2);
  color: var(--gaia-foreground);
}

.ci-share__error {
  color: var(--gaia-destructive);
}

/* A text action inside a sentence: it reads as a link and takes the sentence's type. */
.ci-share__retry {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gaia-link-foreground);
  font: inherit;
  font-weight: var(--gaia-font-weight-semibold);
  cursor: pointer;
}

.ci-share__retry:hover {
  text-decoration: underline;
}

/* On a phone the avatars give their room to the names, so a reader can still be told apart. */
@container (max-width: 360px) {
  .ci-share__row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .ci-share__avatar,
  .ci-share__skeleton-avatar {
    display: none;
  }

  .ci-share__trailing {
    gap: var(--ci-space-2);
  }

  @supports (grid-template-columns: subgrid) {
    .ci-share__list {
      grid-template-columns: minmax(0, 1fr) auto auto;
      column-gap: var(--ci-space-2);
    }

    .ci-share__remove {
      padding-inline: var(--ci-space-2);
    }
  }

  .ci-share__results,
  .ci-share__list {
    scrollbar-gutter: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ci-share__option,
  .ci-share__remove {
    transition: none;
  }
}


/* /src/features/act/dashboard/sections/driver-chart.css */
/* Gaia v0.8 and v0.9 use the same row slots; v0.9 nests the label and fixes the value's width. */
[data-slot='tooltip-graph'].driver-indexed-tooltip {
  box-sizing: border-box;
  min-width: min(196px, 100%);
  max-width: 100%;
}

.driver-indexed-tooltip > span {
  flex-wrap: wrap;
  row-gap: 2px;
}

.driver-indexed-tooltip > span > span:first-child,
.driver-indexed-tooltip > span > span:first-child > span:not([aria-hidden]) {
  min-width: 0;
  overflow-wrap: anywhere;
}

.driver-indexed-tooltip > span > span:first-child {
  /* Gaia v0.9 uses flex-1 (a zero basis). Reserve room for the label and swatch;
     a value that cannot share the row wraps onto the next line instead. */
  flex: 1 1 8rem;
}

.driver-indexed-tooltip > span > span:last-child {
  min-width: 0;
  flex-shrink: 1;
  white-space: normal;
  overflow-wrap: anywhere;
}

.driver-tooltip-viewport:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}


/* /src/features/act/dashboard/sections/action-waterfall-tooltip.css */
/* Both Control's card and Gaia v0.8 render title, row and note spans directly in the card.
   Each row has a label span followed by its value span; only the prose may break anywhere. */
.action-waterfall-tooltip {
  max-width: 320px;
}

.action-waterfall-tooltip > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.action-waterfall-tooltip > span > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.action-waterfall-tooltip > span > span:last-child {
  flex-shrink: 0;
  overflow-wrap: normal;
  word-break: normal;
  white-space: nowrap;
}


/* /src/features/act/scenarios/screens/drivers-screen.css */
.drivers-table-detail__table,
.drivers-table-detail__panel {
  min-width: 0;
}
.drivers-table-detail__panel {
  flex: 1;
  width: 100%;
  min-height: 0;
  display: flex;
}
.drivers-table-detail__panel > .card:not(.driver-summary) {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* WHILE NOTHING IS PICKED the empty detail column is a slim strip, not a
   quarter of the page: at Gaia's 3:1 split a 1440px window with the sidebar
   open left the table 819px for columns that need ~890px, so the last ones
   sat past its edge [DEV-3571]. Picking a row still opens Gaia's 2:2 split.
   Under 1024px Gaia pins both halves to one track each (and stacks them under
   720px), which this two-track template keeps working. */
.drivers-table-detail .gaia-table-detail__grid[data-open='false'] {
  grid-template-columns: minmax(0, 1fr) 160px;
}
.drivers-table-detail .gaia-table-detail__grid[data-open='false'] > .gaia-table-detail__table,
.drivers-table-detail .gaia-table-detail__grid[data-open='false'] > .gaia-table-detail__rail {
  grid-column: auto;
}


/* /src/features/act/scenarios/sections/scenario-forecast-glance.css */
.scenario-glance {
  min-height: 250px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.scenario-glance__heading {
  min-width: 0;
}
.scenario-glance__heading strong {
  display: flex;
  align-items: center;
  gap: 8px;
  color: oklch(var(--primary));
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.scenario-glance__heading strong i {
  display: inline-block;
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.scenario-glance__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid oklch(var(--input));
  border-radius: 11px;
  overflow: hidden;
}
.scenario-glance__metrics > span {
  padding: 9px 12px;
  border-right: 1px solid oklch(var(--input));
  min-width: 0;
}
.scenario-glance__metrics > span:last-child {
  border-right: 0;
}
.scenario-glance__metrics small {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.scenario-glance__metrics small i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: oklch(var(--muted));
}
.scenario-glance__metrics small i.scenario-glance__drivers {
  background: var(--chart-3);
}
.scenario-glance__metrics small i.scenario-glance__actions {
  background: var(--chart-2);
}
.scenario-glance__metrics b {
  display: block;
  margin-top: 3px;
  color: oklch(var(--primary));
  font-size: 16px;
  white-space: nowrap;
}
.scenario-glance__metrics em {
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
}
.scenario-glance__chart {
  flex: 1;
  min-height: 85px;
  position: relative;
}
.scenario-glance__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  color: oklch(var(--muted));
  font-size: 12px;
}
@media (max-width: 520px) {
  .scenario-glance__metrics em {
    display: none;
  }
  .scenario-glance__metrics > span {
    padding: 8px;
  }
}


/* /src/features/act/scenarios/sections/scenario-forecast-detail.css */
.scenario-forecast-detail__state {
  font-size: var(--text-xs);
  color: var(--muted-foreground);
  padding: 24px;
}


/* /src/features/act/scenarios/sections/scenario-table.css */
.scenario-table__identity {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}
.scenario-table__name {
  color: var(--foreground);
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
  font-weight: 500;
}
.scenario-table__tags {
  display: flex;
  align-items: center;
  gap: 6px;
}
/* The row ticks for bulk actions, as in the driver table. */
.scenario-table__check {
  width: 15px;
  height: 15px;
  cursor: pointer;
  accent-color: oklch(var(--primary));
}
.scenario-table th:first-child:has(.scenario-table__check),
.scenario-table td:first-child:has(.scenario-table__check) {
  width: 36px;
}


/* /src/features/act/scenarios/screens/bundles-screen.css */
.scenarios-overview {
  display: grid;
  /* As many as fit, each stretching to fill the row. A fixed three columns
     stranded a fourth scenario on a row of its own. */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}
.scenarios-overview__card {
  min-height: 182px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.scenarios-overview__eyebrow {
  color: oklch(var(--muted));
  font-size: 10px;
  font-weight: 500;
}
.scenarios-overview__card strong {
  color: oklch(var(--primary));
  font-size: 16px;
}
.scenarios-overview__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 8px;
  border: 1px solid oklch(var(--input));
  border-radius: 10px;
  overflow: hidden;
}
.scenarios-overview__metrics span {
  padding: 9px 10px;
  border-right: 1px solid oklch(var(--input));
  min-width: 0;
}
.scenarios-overview__metrics span:last-child {
  border-right: 0;
}
.scenarios-overview__metrics small,
.scenarios-overview__metrics b {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.scenarios-overview__metrics small {
  font-size: 10px;
  color: oklch(var(--muted));
}
.scenarios-overview__metrics b {
  margin-top: 5px;
  font-size: 15px;
  color: oklch(var(--primary));
}
.scenarios-overview__card p {
  margin: auto 0 0;
  color: oklch(var(--muted));
  font-size: 12px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.scenarios-table-detail__panel {
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 0;
  display: flex;
}
.scenarios-table-detail__panel > [data-slot='table-detail-panel'] {
  flex: 1;
}
.scenarios-table-detail__panel .gaia-detail-panel__body {
  flex: 1;
  min-height: 0;
}
.scenarios-table-detail__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  color: oklch(var(--muted));
  font-size: 12px;
}
@media (max-width: 900px) {
  .scenarios-overview {
    grid-template-columns: 1fr;
  }
  .scenarios-table-detail__panel {
    position: static;
    max-height: none;
  }
}
.scenario-driver-picker {
  display: flex;
  flex-direction: column;
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid oklch(var(--input));
  border-radius: 10px;
}
.scenario-driver-picker__row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 12px;
  border-bottom: 1px solid oklch(var(--input));
  cursor: pointer;
}
.scenario-driver-picker__row:last-child {
  border-bottom: 0;
}
.scenario-driver-picker__row:hover {
  background: oklch(var(--background));
}
.scenario-driver-picker__row span:not(.gaia-badge-dot) {
  flex: 1;
  min-width: 0;
}
.scenario-driver-picker__row small {
  color: oklch(var(--muted));
}
.scenario-driver-picker__row small.scenario-driver-picker__incomplete {
  max-width: 55%;
  color: var(--warning);
}
.scenario-overview-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.scenario-overview-metrics > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 14px;
  border: 1px solid oklch(var(--input));
  border-radius: 10px;
}
.scenario-overview-metrics small {
  color: oklch(var(--muted));
}
.scenario-overview-metrics strong {
  color: oklch(var(--primary));
  font-size: 20px;
}
.scenario-overview-metrics span {
  color: oklch(var(--muted));
  font-size: 11px;
}
@media (max-width: 900px) {
  .scenario-overview-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.scenarios-overview__label {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 500;
  color: oklch(var(--muted));
}


/* /src/features/act/simulate/sections/wizard-components.css */
/* Simulate Action wizard — the components only this flow has.
   Imported once, from wizard-shell.tsx.

   The generic half (inputs, .seg, .field, the four explanation bands, the
   chips) lives in shared/design-system/components.css, because those recipes
   are not specific to authoring a reduction measure. What is here is: the
   pickers on steps 2-4, the two adjustment shapes on step 5, the phase-in row
   on step 6, the line-item editor on steps 7-8, and the result tiles and
   cash-flow table on step 9.

   Same rule as the shared file: tokens only, no literal colours. */

/* ---- Assistant bubble and step heading ---- */
.bubble {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.bubble .avatar {
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  background: oklch(var(--ai));
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-top: 2px;
}
/* The square corner points at the avatar, which is what makes it read as
   speech rather than as a card. */
.bubble .say {
  background: white;
  border: 1px solid oklch(var(--muted-bg));
  border-radius: 4px 14px 14px 14px;
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1.5;
  color: oklch(var(--muted));
  max-width: 620px;
}
.step-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.step-title .ico {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex: none;
}

/* ---- steps 2-4: pickable rows ---- */
.pick-row {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border-radius: 9px;
  border: 1px solid oklch(var(--muted-bg));
  background: white;
  margin-bottom: 6px;
  transition:
    border-color 120ms,
    background-color 120ms;
  font-size: 13px;
}
.pick-row:hover {
  border-color: oklch(var(--secondary));
}
.pick-row.sel {
  border-color: oklch(var(--finance));
  background: oklch(var(--finance-soft));
  box-shadow: 0 0 0 1px oklch(var(--finance) / 0.35);
}
.pick-row .amt {
  margin-left: auto;
  font-size: 11.5px;
  color: oklch(var(--muted-2));
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---- step 4: narrowing ---- */
.narrow-head {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 11px 0 4px;
  color: oklch(var(--muted));
  font-size: 13px;
  font-weight: 500;
}
.narrow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 10px;
}
.narrow-card {
  border: 1px solid oklch(var(--muted-bg));
  border-radius: 12px;
  padding: 11px 12px;
  background: white;
}
.narrow-card .hint {
  font-size: 11px;
  color: oklch(var(--muted-2));
  margin: 2px 0 8px;
}
.narrow-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 6px;
  border-radius: 7px;
  width: 100%;
  text-align: left;
  font-size: 12.5px;
  color: oklch(var(--muted));
}
.narrow-opt:hover {
  background: oklch(var(--muted-bg) / 0.4);
}
.narrow-opt .cb {
  width: 15px;
  height: 15px;
  border-radius: 5px;
  border: 1.5px solid oklch(var(--secondary));
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.narrow-opt.on .cb {
  background: oklch(var(--finance));
  border-color: oklch(var(--finance));
}
.narrow-opt .sub {
  margin-left: auto;
  font-size: 10.5px;
  color: oklch(var(--muted-2));
  font-variant-numeric: tabular-nums;
}

/* ---- step 4: the switch's receiving activities ---- */
.recv-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid oklch(var(--muted-bg));
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: white;
}
/* One wide panel: search, a grouped list, and create-new in its footer. Three
   sources of a receiving activity are presented as one picker on purpose —
   the author never needs to know which of the three they used. */
.picker-pop {
  border: 1px solid oklch(var(--muted-bg));
  border-radius: 12px;
  background: white;
  box-shadow:
    0 30px 60px -10px rgba(20, 20, 40, 0.18),
    0 8px 20px -8px rgba(20, 20, 40, 0.08);
  padding: 10px;
  margin-top: 8px;
}
.picker-pop .grp {
  font-size: 10px;
  font-weight: 500;
  color: oklch(var(--muted-2));
  padding: 8px 8px 4px;
}
.picker-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 7px 8px;
  border-radius: 8px;
  font-size: 13px;
}
.picker-opt:hover {
  background: oklch(var(--muted-bg) / 0.45);
}
.picker-opt .sub {
  margin-left: auto;
  font-size: 11px;
  color: oklch(var(--muted-2));
  font-variant-numeric: tabular-nums;
}

/* ---- step 5: the two adjustment shapes ---- */
.adj-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.adj-card {
  border: 1px solid oklch(var(--muted-bg));
  border-radius: 12px;
  padding: 14px 15px;
  background: white;
  position: relative;
}
/* `.live` marks the adjustments the author has actually authored. Either alone
   is a complete measure, so neither card can be styled as the primary one. */
.adj-card.live {
  border-color: oklch(var(--finance) / 0.45);
  box-shadow: 0 0 0 1px oklch(var(--finance) / 0.2);
}
.delta-badge {
  position: absolute;
  top: 12px;
  right: 12px;
}
/* Claims against the donor activity, which are validated together against
   100% — an action cannot switch away more than it has. */
.total-bar {
  height: 8px;
  border-radius: 9999px;
  background: oklch(var(--muted-bg));
  overflow: hidden;
  margin-top: 6px;
}
.total-bar > div {
  height: 100%;
  border-radius: 9999px;
  background: oklch(var(--finance));
  transition: width 200ms;
}
.total-bar.over > div {
  background: oklch(var(--error));
}

/* ---- step 6: the phase-in ----
   One cell per year of the lifetime, all on one row, so each year lines up
   with its bar in the preview below. Long lifetimes scroll horizontally
   rather than wrapping, which would break that alignment.

   ONE SCROLLER AROUND BOTH the cells and the preview, which is what keeps
   that alignment true past ~13 years: with a scrollbar on the cells alone, a
   15-year lifetime scrolled the cells while the bars stayed put, so the year
   under a bar was not the year in the cell above it. */
.phase-scroll {
  overflow-x: auto;
  padding-bottom: 4px;
}
.phase-grid {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}
.phase-cell {
  flex: 1 1 0;
  min-width: 58px;
  border: 1px solid oklch(var(--muted-bg));
  border-radius: 9px;
  padding: 6px 7px;
  background: white;
}
.phase-cell .yr {
  font-size: 10.5px;
  font-weight: 500;
  color: oklch(var(--muted-2));
  display: flex;
  justify-content: space-between;
}
.phase-cell input {
  width: 100%;
  border: 0;
  outline: none;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  color: oklch(var(--primary));
  padding: 2px 0 0;
  background: transparent;
  font-variant-numeric: tabular-nums;
}

/* ---- steps 7-8: the line-item editor ----
   One shape for capex, opex and revenue. A name, a value, and the period it
   applies to — the per-year semantics differ, and the section's .sem-chip
   says which, but the editor does not. */
.line-item {
  border: 1px solid oklch(var(--muted-bg));
  border-radius: 12px;
  padding: 13px 14px;
  margin-bottom: 10px;
  background: white;
}
.li-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.li-head .input {
  flex: 1;
}
.li-del {
  color: oklch(var(--muted-2));
  padding: 6px;
  border-radius: 7px;
  flex: none;
}
.li-del:hover {
  color: oklch(var(--error));
  background: oklch(var(--error-bg) / 0.5);
}
.li-body {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  margin-top: 10px;
}
.sched-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
}

/* ---- step 9: the metric tiles ---- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.kpi {
  background: white;
  border: 1px solid oklch(var(--muted-bg));
  border-radius: 16px;
  padding: 14px 16px;
  position: relative;
}
.kpi .lbl {
  font-size: 11px;
  font-weight: 500;
  color: oklch(var(--muted-2));
  display: flex;
  align-items: center;
  gap: 6px;
}
.kpi .val {
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-top: 5px;
  font-variant-numeric: tabular-nums;
}
.kpi .hint {
  font-size: 10.5px;
  color: oklch(var(--muted-2));
  margin-top: 3px;
}
/* The two tiles the cash-flow table's cumulative columns reconcile to. The
   lift is the visual claim that nothing is unaccounted for between them. */
.kpi.reconciled {
  box-shadow:
    0 0 0 1px oklch(var(--finance) / 0.2),
    0 8px 24px -8px oklch(var(--finance) / 0.25);
}

/* ---- step 9: the working ---- */
.cf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.cf-table th {
  text-align: right;
  padding: 9px 10px;
  background: oklch(var(--muted-bg) / 0.25);
  border-bottom: 1px solid oklch(var(--muted-bg));
  font-size: 10px;
  font-weight: 500;
  color: oklch(var(--table-header));
  white-space: nowrap;
}
.cf-table th:first-child,
.cf-table td:first-child {
  text-align: left;
}
.cf-table td {
  text-align: right;
  padding: 8px 10px;
  border-bottom: 1px solid oklch(var(--muted-bg) / 0.6);
  font-variant-numeric: tabular-nums;
  color: oklch(var(--muted));
  white-space: nowrap;
}
.cf-table tr:last-child td {
  border-bottom: 0;
  font-weight: 500;
  color: oklch(var(--primary));
  background: oklch(var(--finance-soft) / 0.6);
}
/* The total row (AK14) [DEV-3509]: set apart from the last year, whose cumulative cells are the
   NPV, by a rule above it and the header's tint. */
.cf-table tfoot td {
  border-top: 2px solid oklch(var(--muted-bg));
  font-weight: 500;
  background: oklch(var(--muted-bg) / 0.25);
}
.legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 8px;
}
.legend .li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: oklch(var(--muted));
}
.legend .box {
  width: 11px;
  height: 11px;
  border-radius: 2px;
}
.chart-tip {
  position: fixed;
  z-index: 90;
  background: white;
  border: 1px solid oklch(var(--muted-bg));
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(20, 20, 40, 0.12);
  padding: 9px 12px;
  min-width: 170px;
  max-width: 280px;
  pointer-events: none;
  display: none;
}
.jump-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.jump-links button {
  font-size: 12.5px;
  font-weight: 500;
  color: oklch(var(--action));
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

/* Two columns rather than four once four will not fit, then one. The
   adjustment pair collapses on the same breakpoints. */
@media (max-width: 900px) {
  .adj-grid,
  .kpi-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .adj-grid,
  .kpi-grid {
    grid-template-columns: 1fr;
  }
}


/* /src/features/act/simulate/sections/wizard-visual.css */
/* Authoring layout and component appearance are provided by Gaia. */


/* /src/features/carbon-intelligence/insights/components/copy-offers.css */
.ci-copy-offers {
  margin: 0 0 var(--ci-space-5);
}

.ci-copy-offers__notice {
  margin: 0 0 var(--ci-space-4);
  color: var(--gaia-muted-foreground);
  font: var(--ci-type-control);
}

.ci-copy-offer {
  display: flex;
  gap: var(--ci-space-4);
  align-items: center;
  padding: var(--ci-space-3) var(--ci-space-4);
}

.ci-copy-offer + .ci-copy-offer {
  border-top: 1px solid var(--ci-line);
}

.ci-copy-offer__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ci-copy-offer__lead {
  color: var(--gaia-foreground);
  font: var(--ci-type-label);
}

.ci-copy-offer__meta {
  display: flex;
  gap: 4px;
  align-items: center;
  color: var(--gaia-muted-foreground);
  font: var(--ci-type-control);
}

/* The date is drawn by a shared helper with its own type; here it reads as the line does. */
.ci-copy-offer__meta > span {
  color: inherit;
  font: inherit;
}

.ci-copy-offer__sentence {
  color: var(--gaia-muted-foreground);
  font: var(--ci-type-control);
}

.ci-copy-offer__refusal {
  color: var(--gaia-destructive);
  font: var(--ci-type-control);
}

.ci-copy-offer__action {
  flex-shrink: 0;
}


/* /src/features/carbon-intelligence/insights/components/insight-dialogs.css */
.ci-insight-dialog__sentence {
  margin: 0;
  color: var(--gaia-foreground);
  font: var(--ci-type-control);
}

.ci-insight-dialog__copies {
  margin: 0;
  color: var(--gaia-muted-foreground);
  font: var(--ci-type-control);
}

/* What else goes with the insight: the app's amber note, between the question and the buttons. */
.ci-insight-dialog__note {
  display: flex;
  gap: var(--ci-space-2);
  align-items: flex-start;
  padding: var(--ci-space-2) var(--ci-space-3);
  border-radius: var(--ci-radius-control);
  background: oklch(from var(--gaia-warning) l c h / 0.12);
  color: var(--gaia-badge-warning-foreground);
}

.ci-insight-dialog__note-icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--gaia-warning);
}

.ci-insight-dialog__note-text {
  flex: 1;
  min-width: 0;
  margin: 0;
  font: var(--ci-type-control);
}

/* The line keeps at least half the note; past that the button wraps under it. */
.ci-insight-dialog__note--action {
  flex-wrap: wrap;
  align-items: center;
  padding-right: var(--ci-space-2);
}

.ci-insight-dialog__note--action .ci-insight-dialog__note-icon {
  margin-top: 0;
}

.ci-insight-dialog__note--action .ci-insight-dialog__note-text {
  flex-basis: 50%;
}

.ci-insight-dialog__note-action {
  flex-shrink: 0;
  margin-left: auto;
}

.ci-insight-dialog__note-action:not(:hover) {
  background: var(--ci-surface);
}

.ci-insight-dialog__form {
  display: flex;
  flex-direction: column;
  gap: var(--ci-space-4);
}

.ci-insight-dialog__actions {
  display: flex;
  gap: var(--ci-space-2);
  justify-content: flex-end;
}

/* The confirming button keeps its width whatever state it is in. */
.ci-insight-dialog__confirm {
  min-width: 88px;
}

.ci-insight-dialog__error {
  margin: 0;
  color: var(--gaia-destructive);
  font: var(--ci-type-control);
}

/* Gaia's ghost button carries no resting background and the app's button reset skips Gaia
   buttons, so the browser's grey shows unless it is cleared here. */
.ci-insight-dialog__actions button[data-variant='ghost']:not(:hover) {
  background: transparent;
}


/* /src/features/carbon-intelligence/insights/screens/insights-list.css */
/* The insights list: white cards on the canvas under the list page's toolbar, in a grid of three
   at full width and two on a narrow screen. A card is flat at rest; under the pointer
   only its hairline darkens. Nothing on a card changes size when it is hovered, its picture is
   drawn, or its edit time arrives. */

.ci-insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--ci-space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.ci-insight-card {
  position: relative;
  display: flex;
  min-width: 0;
  overflow: hidden;
  /* No hairline on the grey page: Gaia's card-border token is transparent there (DEV-3571). */
  border: 1px solid var(--gaia-card-border);
  border-radius: var(--ci-radius-card);
  background: var(--ci-surface);
  background-clip: padding-box;
  transition: border-color var(--ci-duration-press) ease-out;
}

.ci-insight-card:hover,
.ci-insight-card:focus-within {
  border-color: oklch(from var(--gaia-foreground) l c h / 0.28);
}

.ci-insight-card__link {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  outline: none;
}

.ci-insight-card__link:focus-visible {
  box-shadow: inset 0 0 0 2px var(--gaia-ring);
  border-radius: var(--ci-radius-card);
}

/* The picture: a fixed band of quiet fill, one series in the first chart colour. */
.ci-insight-preview {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  height: 112px;
  border-bottom: 1px solid var(--ci-line);
  background: oklch(from var(--ci-fill) l c h / 0.45);
  color: var(--gaia-muted-foreground);
}

.ci-insight-preview__bars {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  width: 100%;
  height: 100%;
  padding: 20px 20px 0;
}

.ci-insight-preview__bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: var(--gaia-chart-1);
  opacity: 0.85;
}

.ci-insight-preview__figure {
  color: var(--gaia-foreground);
  font: var(--ci-type-figure);
  font-variant-numeric: tabular-nums;
}

/* The one picture of every insight with no bars and no figure: the top of a small page rising out
   of the band's edge, a miniature of the sheet the card opens into, drawn from the tokens. */
.ci-insight-preview[data-kind='page'] {
  align-items: flex-end;
  overflow: hidden;
}

.ci-insight-preview__page {
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
  width: 136px;
  height: 80px;
  padding: 16px 16px 0;
  border: 1px solid var(--ci-line);
  border-bottom: 0;
  border-radius: var(--ci-radius-control) var(--ci-radius-control) 0 0;
  background: var(--ci-surface);
  box-shadow: var(--ci-shadow-lift);
}

.ci-insight-preview__page > span {
  height: 6px;
  border-radius: var(--ci-radius-pill);
  background: var(--ci-fill);
}

.ci-insight-preview__page > span:nth-child(1) {
  width: 44%;
  height: 8px;
  margin-bottom: 4px;
  background: var(--ci-line);
}

.ci-insight-preview__page > span:nth-child(2) {
  width: 84%;
}

.ci-insight-preview__page > span:nth-child(3) {
  width: 72%;
}

.ci-insight-preview__page > span:nth-child(4) {
  width: 56%;
}

.ci-insight-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--ci-space-1);
  /* Room on the right of the title for the owner's "⋯". */
  padding: var(--ci-space-3) 44px var(--ci-space-3) var(--ci-space-4);
}

.ci-insight-card__title {
  display: -webkit-box;
  overflow: hidden;
  font: var(--ci-type-title);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.ci-insight-card__meta {
  display: flex;
  gap: 4px;
  align-items: center;
  min-width: 0;
  margin-top: auto;
  color: var(--gaia-muted-foreground);
  font: var(--ci-type-control);
}

/* Who it belongs to and who reads it may shorten; when it was edited never does. */
.ci-insight-card__meta-who {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ci-insight-card__meta-time {
  flex-shrink: 0;
  white-space: nowrap;
}

/* The edit time is drawn by a shared helper with its own type; here it reads as the line does. */
.ci-insight-card__meta-time > span {
  font: inherit;
  color: inherit;
}

.ci-insight-card__dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: var(--ci-radius-pill);
  background: var(--gaia-warning);
}

.ci-insight-card__menu {
  position: absolute;
  top: calc(112px + 8px);
  right: 8px;
  opacity: 0;
  transition: opacity var(--ci-duration-press) ease-out;
}

.ci-insight-card:hover .ci-insight-card__menu,
.ci-insight-card:focus-within .ci-insight-card__menu,
.ci-insight-card__menu:has([aria-expanded='true']) {
  opacity: 1;
}

.ci-insight-card[data-closed] .ci-insight-card__title {
  color: var(--gaia-muted-foreground);
}

/* While the list is read: cards of the same size with nothing in them. */
.ci-insight-card--ghost {
  height: 186px;
  background: oklch(from var(--ci-surface) l c h / 0.6);
  animation: ci-insight-ghost 1.4s linear infinite;
}

@keyframes ci-insight-ghost {
  50% {
    opacity: 0.6;
  }
}

@media (max-width: 700px) {
  .ci-insights-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ci-insight-card--ghost {
    animation: none;
  }
}


/* /node_modules/@fontsource/inter/400.css */
/* inter-cyrillic-ext-400-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/node_modules/@fontsource/inter/files/inter-cyrillic-ext-400-normal.woff2) format('woff2'), url(/node_modules/@fontsource/inter/files/inter-cyrillic-ext-400-normal.woff) format('woff');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* inter-cyrillic-400-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/node_modules/@fontsource/inter/files/inter-cyrillic-400-normal.woff2) format('woff2'), url(/node_modules/@fontsource/inter/files/inter-cyrillic-400-normal.woff) format('woff');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* inter-greek-ext-400-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/node_modules/@fontsource/inter/files/inter-greek-ext-400-normal.woff2) format('woff2'), url(/node_modules/@fontsource/inter/files/inter-greek-ext-400-normal.woff) format('woff');
  unicode-range: U+1F00-1FFF;
}

/* inter-greek-400-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/node_modules/@fontsource/inter/files/inter-greek-400-normal.woff2) format('woff2'), url(/node_modules/@fontsource/inter/files/inter-greek-400-normal.woff) format('woff');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}

/* inter-vietnamese-400-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/node_modules/@fontsource/inter/files/inter-vietnamese-400-normal.woff2) format('woff2'), url(/node_modules/@fontsource/inter/files/inter-vietnamese-400-normal.woff) format('woff');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* inter-latin-ext-400-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/node_modules/@fontsource/inter/files/inter-latin-ext-400-normal.woff2) format('woff2'), url(/node_modules/@fontsource/inter/files/inter-latin-ext-400-normal.woff) format('woff');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* inter-latin-400-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/node_modules/@fontsource/inter/files/inter-latin-400-normal.woff2) format('woff2'), url(/node_modules/@fontsource/inter/files/inter-latin-400-normal.woff) format('woff');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* /node_modules/@fontsource/inter/500.css */
/* inter-cyrillic-ext-500-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/node_modules/@fontsource/inter/files/inter-cyrillic-ext-500-normal.woff2) format('woff2'), url(/node_modules/@fontsource/inter/files/inter-cyrillic-ext-500-normal.woff) format('woff');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* inter-cyrillic-500-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/node_modules/@fontsource/inter/files/inter-cyrillic-500-normal.woff2) format('woff2'), url(/node_modules/@fontsource/inter/files/inter-cyrillic-500-normal.woff) format('woff');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* inter-greek-ext-500-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/node_modules/@fontsource/inter/files/inter-greek-ext-500-normal.woff2) format('woff2'), url(/node_modules/@fontsource/inter/files/inter-greek-ext-500-normal.woff) format('woff');
  unicode-range: U+1F00-1FFF;
}

/* inter-greek-500-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/node_modules/@fontsource/inter/files/inter-greek-500-normal.woff2) format('woff2'), url(/node_modules/@fontsource/inter/files/inter-greek-500-normal.woff) format('woff');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}

/* inter-vietnamese-500-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/node_modules/@fontsource/inter/files/inter-vietnamese-500-normal.woff2) format('woff2'), url(/node_modules/@fontsource/inter/files/inter-vietnamese-500-normal.woff) format('woff');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* inter-latin-ext-500-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/node_modules/@fontsource/inter/files/inter-latin-ext-500-normal.woff2) format('woff2'), url(/node_modules/@fontsource/inter/files/inter-latin-ext-500-normal.woff) format('woff');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* inter-latin-500-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/node_modules/@fontsource/inter/files/inter-latin-500-normal.woff2) format('woff2'), url(/node_modules/@fontsource/inter/files/inter-latin-500-normal.woff) format('woff');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* /src/shared/design-system/compat.css */

@layer control-legacy, theme, base, components, utilities;
/* Keep layout utilities below Gaia. Legacy colour tokens and classes are
   imported after Gaia by gaia-consumer.css to preserve their original meaning. */
@layer control-legacy{

/* Cozero design system — canonical tokens + utility classes for the Control app.
   Ported from control-module/apps/web/src/styles/tokens.css (OKLCH navy
   #272C5F primary, finance indigo accent, AI green, Inter-first font stack). This file is the
   legacy utility layer; colour values and classes live in legacy-colors.css. */

* {
  box-sizing: border-box;
}
/* Gaia components own their border utility; legacy controls keep this fallback. */
*:where(:not([data-slot])) {
  border-color: oklch(var(--muted-bg));
}
html,
body,
#root {
  height: 100%;
}
body {
  margin: 0;
  font-family:
    'Inter',
    ui-sans-serif,
    system-ui,
    -apple-system,
    sans-serif;
  background: oklch(var(--background));
  color: oklch(var(--primary));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
button {
  font-family: inherit;
}

/* Reset all <button>s to behave like an unstyled action surface.
   Each custom button restyles itself. */
button:where(:not([data-slot='button']):not(.btn)) {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Inter ships 400 and 500 only, so the browser's bold (700) for these would be drawn as a fake
   bold. Zero specificity: any class still sets its own weight. */
:where(b, strong, th) {
  font-weight: var(--gaia-font-weight-semibold);
}

/* Typography [DEV-3571]: the old names, moved onto Gaia's type chart. No 14px (body is 12px, as
   in Gaia), no capitals, and two weights, 400 and Gaia's semibold (500). */
.h0 {
  font-size: 2rem;
  line-height: 2.5rem;
  font-weight: var(--gaia-font-weight-semibold);
  letter-spacing: -0.01em;
}
.h1 {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: var(--gaia-font-weight-semibold);
  letter-spacing: -0.005em;
}
.h2 {
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: var(--gaia-font-weight-semibold);
}
.h3 {
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: var(--gaia-font-weight-semibold);
}
.body-bold {
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: var(--gaia-font-weight-semibold);
}
.body {
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 400;
}
.caption {
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 400;
}
.caption-bold {
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: var(--gaia-font-weight-semibold);
}
.eyebrow {
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: var(--gaia-font-weight-semibold);
  color: oklch(var(--muted) / 0.7);
}
.tabular {
  font-variant-numeric: tabular-nums;
}

.border {
  border: 1px solid oklch(var(--muted-bg));
}
.border-b {
  border-bottom: 1px solid oklch(var(--muted-bg));
}
.border-t {
  border-top: 1px solid oklch(var(--muted-bg));
}
.border-r {
  border-right: 1px solid oklch(var(--muted-bg));
}
.border-l {
  border-left: 1px solid oklch(var(--muted-bg));
}
.divide-y > * + * {
  border-top: 1px solid oklch(var(--muted-bg));
}

.rounded-md {
  border-radius: 8px;
}
.rounded-lg {
  border-radius: 10px;
}
.rounded-xl {
  border-radius: 16px;
}
.rounded-2xl {
  border-radius: 20px;
}
.rounded-full {
  border-radius: 9999px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: var(--gaia-font-weight-semibold);
  transition:
    background-color 150ms,
    border-color 150ms,
    opacity 150ms;
  white-space: nowrap;
}
button:not([data-slot='button']):focus-visible,
[role='button']:focus-visible,
[role='radio']:focus-visible,
a:focus-visible {
  outline: 2px solid oklch(var(--action));
  outline-offset: 2px;
}
.btn-primary {
  background: oklch(var(--primary));
  color: white;
}
.btn-primary:hover {
  background: oklch(var(--primary) / 0.92);
}
.btn-action {
  background: oklch(var(--action));
  color: white;
}
.btn-action:hover {
  background: oklch(var(--action) / 0.92);
}
.btn-outline {
  background: white;
  color: oklch(var(--primary));
  border: 1px solid oklch(var(--muted-bg));
}
.btn-outline:hover {
  border-color: oklch(var(--muted));
}
.btn-ghost {
  background: transparent;
  color: oklch(var(--primary));
}
.btn-ghost:hover {
  background: oklch(var(--muted-bg) / 0.6);
}
/* A disabled button reads as unavailable: faded, no hover, and the cursor says so. Its
   `title` carries the reason. */
.btn:disabled,
.btn[aria-disabled='true'] {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn-primary:disabled:hover {
  background: oklch(var(--primary));
}
.btn-action:disabled:hover {
  background: oklch(var(--action));
}
.btn-outline:disabled:hover {
  border-color: oklch(var(--muted-bg));
}
.btn-ghost:disabled:hover {
  background: transparent;
}
.btn-sm {
  padding: 6px 10px;
  font-size: 13px;
}
.btn-pill {
  border-radius: 9999px;
  padding: 6px 12px;
  font-size: 13px;
}

/* Card */
.card {
  background: white;
  border: 1px solid oklch(var(--muted-bg));
  border-radius: 16px;
}
.card-stat {
  background: white;
  border: 1px solid oklch(var(--muted-bg));
  border-radius: 16px;
  padding: 16px 18px;
}
.card-stat-accent {
  border-left: 4px solid oklch(var(--primary));
  padding-left: 14px;
}

/* Status badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: var(--gaia-font-weight-semibold);
  line-height: 16px;
  white-space: nowrap;
}
.badge-success {
  background: oklch(var(--green-bg));
  color: oklch(var(--green));
}
.badge-warning {
  background: oklch(var(--orange-bg));
  color: oklch(var(--orange));
}
.badge-error {
  background: oklch(var(--error-bg));
  color: oklch(var(--error));
}
.badge-info {
  background: oklch(0.93 0.04 258);
  color: oklch(var(--action));
}
.badge-neutral {
  background: oklch(var(--muted-bg));
  color: oklch(var(--muted));
}
.badge-finance {
  background: oklch(var(--finance-soft));
  color: oklch(var(--finance));
}

/* Status dots */
.dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  display: inline-block;
}
.dot-success {
  background: oklch(var(--green));
}
.dot-warning {
  background: oklch(var(--orange));
}
.dot-error {
  background: oklch(var(--error));
}
.dot-info {
  background: oklch(var(--action));
}
.dot-ai {
  background: oklch(var(--ai));
}

.shadow-sm {
  box-shadow:
    0 1px 2px rgba(20, 20, 40, 0.04),
    0 1px 1px rgba(20, 20, 40, 0.04);
}
.shadow-panel {
  box-shadow:
    0 30px 60px -10px rgba(20, 20, 40, 0.18),
    0 8px 20px -8px rgba(20, 20, 40, 0.08);
}
.shadow-pill {
  box-shadow: 8px 8px 12px 0px oklch(var(--muted-bg));
}

/* Flex / grid utils */
.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.items-center {
  align-items: center;
}
.items-start {
  align-items: flex-start;
}
.items-stretch {
  align-items: stretch;
}
.items-end {
  align-items: flex-end;
}
.items-baseline {
  align-items: baseline;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.justify-end {
  justify-content: flex-end;
}
.flex-1 {
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
}
.flex-wrap {
  flex-wrap: wrap;
}
.flex-shrink-0 {
  flex-shrink: 0;
}
.grid {
  display: grid;
}
.gap-1 {
  gap: 4px;
}
.gap-2 {
  gap: 8px;
}
.gap-3 {
  gap: 12px;
}
.gap-4 {
  gap: 16px;
}
.gap-5 {
  gap: 20px;
}
.gap-6 {
  gap: 24px;
}
.gap-8 {
  gap: 32px;
}

/* Sidebar floating pill enter */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-6px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.anim-slide-in-left {
  animation: slideInLeft 150ms ease-out;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
.anim-pulse {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(4px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Overlay (Modal/Drawer) enter — see src/shared/ui/overlay.tsx */
@keyframes overlayFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.anim-slide-in-right {
  animation: slideInRight 200ms ease-out;
}
/* Inline row editor expand — see ledger-catalogs RowEditor */
@keyframes expandDown {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scrollbar (subtle) */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: oklch(var(--muted-bg));
  border-radius: 9999px;
  border: 2px solid oklch(var(--background));
}
::-webkit-scrollbar-thumb:hover {
  background: oklch(var(--secondary) / 0.5);
}

/* The Dashboard view navigation scrolls sideways rather than wrapping,
   and a visible track would cost as much height as the row it protects. */
.sb-viewnav::-webkit-scrollbar {
  display: none;
}

/* A pill rail or chip strip that scrolls sideways inside a control of its own.
   The global scrollbar above is 10px of permanent track — a third of such a
   row's height. The partially-cut item at the edge is the affordance. */
.scroll-rail {
  scrollbar-width: none;
}
.scroll-rail::-webkit-scrollbar {
  display: none;
}

/* Page transition (opacity-only on purpose) */
@keyframes pageFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.page-fade {
  animation: pageFade 200ms ease-out;
}
/* A navigation the browser is already crossfading does not fade the page a second time. */
html:active-view-transition .page-fade {
  animation: none;
}

/* Subtle hover lift for clickable cards */
.hover-lift {
  transition:
    border-color 150ms,
    transform 150ms,
    box-shadow 150ms;
}
.hover-lift:hover {
  border-color: oklch(var(--muted) / 0.5);
}

/* Glow for finance-related highlight */
.finance-glow {
  box-shadow:
    0 0 0 1px oklch(var(--finance) / 0.2),
    0 8px 24px -8px oklch(var(--finance) / 0.25);
}

/* Planning exposure-slider thumb / track */
.planning-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 9999px;
  background: white;
  border: 2px solid oklch(var(--finance));
  box-shadow: 0 1px 3px rgba(20, 20, 40, 0.18);
  cursor: pointer;
  margin-top: 0;
}
.planning-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 9999px;
  background: white;
  border: 2px solid oklch(var(--finance));
  box-shadow: 0 1px 3px rgba(20, 20, 40, 0.18);
  cursor: pointer;
}
.planning-range::-webkit-slider-runnable-track {
  background: transparent;
  height: 4px;
}
.planning-range::-moz-range-track {
  background: transparent;
  height: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
}


/* /src/shared/design-system/gaia-entry.css */
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
@layer properties;
@layer theme, base, components, utilities;
@layer theme {
  :root, :host {
    --spacing: 0.25rem;
    --tracking-normal: 0em;
    --tracking-wide: 0.025em;
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-relaxed: 1.625;
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --aspect-video: 16 / 9;
    --default-transition-duration: 150ms;
    --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    --text-2xs: 0.625rem;
    --text-2xs--line-height: calc(0.875 / 0.625);
    --text-xs: 0.75rem;
    --text-xs--line-height: calc(1 / 0.75);
    --text-sm: 0.875rem;
    --text-sm--line-height: calc(1.25 / 0.875);
    --text-base: 1rem;
    --text-base--line-height: calc(1.5 / 1);
    --text-lg: 1.125rem;
    --text-lg--line-height: calc(1.75 / 1.125);
    --text-2xl: 1.5rem;
    --text-2xl--line-height: calc(2 / 1.5);
    --font-weight-normal: 400;
    --font-weight-semibold: 500;
    --shadow-sm: 0 1px 2px rgb(var(--gaia-shadow-rgb) / 0.04), 0 1px 1px rgb(var(--gaia-shadow-rgb) / 0.04);
    --shadow-md: 0 30px 60px -10px rgb(var(--gaia-shadow-rgb) / 0.18), 0 8px 20px -8px rgb(var(--gaia-shadow-rgb) / 0.08);
    --radius-sm: calc(var(--gaia-radius) - 4px);
    --radius-md: calc(var(--gaia-radius) - 2px);
    --radius-lg: var(--gaia-radius);
    --radius-xl: calc(var(--gaia-radius) + 4px);
    --radius-2xl: calc(var(--gaia-radius) * 2);
  }
}
@layer utilities {
  .\@container {
    container-type: inline-size;
  }
  .\[container-type\:size\] {
    container-type: size;
  }
  .pointer-events-auto {
    pointer-events: auto;
  }
  .pointer-events-none {
    pointer-events: none;
  }
  .collapse {
    visibility: collapse;
  }
  .invisible {
    visibility: hidden;
  }
  .visible {
    visibility: visible;
  }
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border-width: 0;
  }
  .\!relative {
    position: relative !important;
  }
  .absolute {
    position: absolute;
  }
  .fixed {
    position: fixed;
  }
  .relative {
    position: relative;
  }
  .static {
    position: static;
  }
  .sticky {
    position: sticky;
  }
  .inset-0 {
    inset: 0px;
  }
  .inset-x-0 {
    inset-inline: 0px;
  }
  .-inset-y-1 {
    inset-block: calc(var(--spacing) * -1);
  }
  .inset-y-0 {
    inset-block: 0px;
  }
  .-top-\[13px\] {
    top: calc(13px * -1);
  }
  .top-0 {
    top: 0px;
  }
  .top-1\/2 {
    top: calc(1 / 2 * 100%);
  }
  .top-2 {
    top: calc(var(--spacing) * 2);
  }
  .top-8 {
    top: calc(var(--spacing) * 8);
  }
  .right-2 {
    right: calc(var(--spacing) * 2);
  }
  .bottom-0 {
    bottom: 0px;
  }
  .left-0 {
    left: 0px;
  }
  .left-1\/2 {
    left: calc(1 / 2 * 100%);
  }
  .left-3 {
    left: calc(var(--spacing) * 3);
  }
  .isolate {
    isolation: isolate;
  }
  .z-10 {
    z-index: 10;
  }
  .z-50 {
    z-index: 50;
  }
  .z-\[1\] {
    z-index: 1;
  }
  .col-start-1 {
    grid-column-start: 1;
  }
  .row-0 {
    grid-row: 0;
  }
  .row-1 {
    grid-row: 1;
  }
  .row-2 {
    grid-row: 2;
  }
  .row-start-1 {
    grid-row-start: 1;
  }
  .container {
    width: 100%;
    @media (width >= 40rem) {
      max-width: 40rem;
    }
    @media (width >= 48rem) {
      max-width: 48rem;
    }
    @media (width >= 64rem) {
      max-width: 64rem;
    }
    @media (width >= 80rem) {
      max-width: 80rem;
    }
    @media (width >= 96rem) {
      max-width: 96rem;
    }
  }
  .m-0 {
    margin: 0px;
  }
  .m-1 {
    margin: var(--spacing);
  }
  .m-2 {
    margin: calc(var(--spacing) * 2);
  }
  .m-3 {
    margin: calc(var(--spacing) * 3);
  }
  .m-4 {
    margin: calc(var(--spacing) * 4);
  }
  .m-5 {
    margin: calc(var(--spacing) * 5);
  }
  .m-6 {
    margin: calc(var(--spacing) * 6);
  }
  .m-7 {
    margin: calc(var(--spacing) * 7);
  }
  .m-8 {
    margin: calc(var(--spacing) * 8);
  }
  .-mx-2 {
    margin-inline: calc(var(--spacing) * -2);
  }
  .mx-1 {
    margin-inline: var(--spacing);
  }
  .\!my-0 {
    margin-block: 0px !important;
  }
  .-mt-px {
    margin-top: -1px;
  }
  .mt-0 {
    margin-top: 0px;
  }
  .mt-0\.5 {
    margin-top: calc(var(--spacing) * 0.5);
  }
  .mt-1 {
    margin-top: var(--spacing);
  }
  .mt-1\.5 {
    margin-top: calc(var(--spacing) * 1.5);
  }
  .mt-2 {
    margin-top: calc(var(--spacing) * 2);
  }
  .mt-auto {
    margin-top: auto;
  }
  .mt-px {
    margin-top: 1px;
  }
  .mr-1 {
    margin-right: var(--spacing);
  }
  .mr-2 {
    margin-right: calc(var(--spacing) * 2);
  }
  .mr-8 {
    margin-right: calc(var(--spacing) * 8);
  }
  .mb-0 {
    margin-bottom: 0px;
  }
  .mb-1 {
    margin-bottom: var(--spacing);
  }
  .mb-4 {
    margin-bottom: calc(var(--spacing) * 4);
  }
  .-ml-1\.5 {
    margin-left: calc(var(--spacing) * -1.5);
  }
  .-ml-px {
    margin-left: -1px;
  }
  .ml-1 {
    margin-left: var(--spacing);
  }
  .ml-2 {
    margin-left: calc(var(--spacing) * 2);
  }
  .ml-4 {
    margin-left: calc(var(--spacing) * 4);
  }
  .ml-auto {
    margin-left: auto;
  }
  .box-border {
    box-sizing: border-box;
  }
  .box-content {
    box-sizing: content-box;
  }
  .\!inline {
    display: inline !important;
  }
  .\!inline-flex {
    display: inline-flex !important;
  }
  .block {
    display: block;
  }
  .contents {
    display: contents;
  }
  .flex {
    display: flex;
  }
  .grid {
    display: grid;
  }
  .hidden {
    display: none;
  }
  .inline {
    display: inline;
  }
  .inline-block {
    display: inline-block;
  }
  .inline-flex {
    display: inline-flex;
  }
  .list-item {
    display: list-item;
  }
  .table {
    display: table;
  }
  .aspect-auto {
    aspect-ratio: auto;
  }
  .aspect-video {
    aspect-ratio: var(--aspect-video);
  }
  .size-2 {
    width: calc(var(--spacing) * 2);
    height: calc(var(--spacing) * 2);
  }
  .size-2\.5 {
    width: calc(var(--spacing) * 2.5);
    height: calc(var(--spacing) * 2.5);
  }
  .size-3 {
    width: calc(var(--spacing) * 3);
    height: calc(var(--spacing) * 3);
  }
  .size-3\.5 {
    width: calc(var(--spacing) * 3.5);
    height: calc(var(--spacing) * 3.5);
  }
  .size-5 {
    width: calc(var(--spacing) * 5);
    height: calc(var(--spacing) * 5);
  }
  .size-6 {
    width: calc(var(--spacing) * 6);
    height: calc(var(--spacing) * 6);
  }
  .size-8 {
    width: calc(var(--spacing) * 8);
    height: calc(var(--spacing) * 8);
  }
  .size-\[7px\] {
    width: 7px;
    height: 7px;
  }
  .size-\[18px\] {
    width: 18px;
    height: 18px;
  }
  .\!h-8 {
    height: calc(var(--spacing) * 8) !important;
  }
  .\!h-auto {
    height: auto !important;
  }
  .h-1 {
    height: var(--spacing);
  }
  .h-2 {
    height: calc(var(--spacing) * 2);
  }
  .h-4 {
    height: calc(var(--spacing) * 4);
  }
  .h-5 {
    height: calc(var(--spacing) * 5);
  }
  .h-8 {
    height: calc(var(--spacing) * 8);
  }
  .h-10 {
    height: calc(var(--spacing) * 10);
  }
  .h-14 {
    height: calc(var(--spacing) * 14);
  }
  .h-16 {
    height: calc(var(--spacing) * 16);
  }
  .h-40 {
    height: calc(var(--spacing) * 40);
  }
  .h-\[30px\] {
    height: 30px;
  }
  .h-\[44px\] {
    height: 44px;
  }
  .h-\[70px\] {
    height: 70px;
  }
  .h-\[140px\] {
    height: 140px;
  }
  .h-\[160px\] {
    height: 160px;
  }
  .h-\[240px\] {
    height: 240px;
  }
  .h-\[260px\] {
    height: 260px;
  }
  .h-\[280px\] {
    height: 280px;
  }
  .h-\[300px\] {
    height: 300px;
  }
  .h-\[320px\] {
    height: 320px;
  }
  .h-\[380px\] {
    height: 380px;
  }
  .h-\[420px\] {
    height: 420px;
  }
  .h-\[440px\] {
    height: 440px;
  }
  .h-auto {
    height: auto;
  }
  .h-full {
    height: 100%;
  }
  .\!max-h-\[60vh\] {
    max-height: 60vh !important;
  }
  .max-h-\[40\%\] {
    max-height: 40%;
  }
  .\!min-h-0 {
    min-height: 0px !important;
  }
  .\!min-h-8 {
    min-height: calc(var(--spacing) * 8) !important;
  }
  .\!min-h-11 {
    min-height: calc(var(--spacing) * 11) !important;
  }
  .min-h-0 {
    min-height: 0px;
  }
  .min-h-full {
    min-height: 100%;
  }
  .\!w-\[360px\] {
    width: 360px !important;
  }
  .\!w-auto {
    width: auto !important;
  }
  .w-0\.5 {
    width: calc(var(--spacing) * 0.5);
  }
  .w-1 {
    width: var(--spacing);
  }
  .w-3\.5 {
    width: calc(var(--spacing) * 3.5);
  }
  .w-5 {
    width: calc(var(--spacing) * 5);
  }
  .w-24 {
    width: calc(var(--spacing) * 24);
  }
  .w-40 {
    width: calc(var(--spacing) * 40);
  }
  .w-\[206px\] {
    width: 206px;
  }
  .w-fit {
    width: fit-content;
  }
  .w-full {
    width: 100%;
  }
  .w-px {
    width: 1px;
  }
  .\!max-w-full {
    max-width: 100% !important;
  }
  .max-w-64 {
    max-width: calc(var(--spacing) * 64);
  }
  .max-w-\[120px\] {
    max-width: 120px;
  }
  .max-w-\[140px\] {
    max-width: 140px;
  }
  .max-w-\[320px\] {
    max-width: 320px;
  }
  .max-w-\[420px\] {
    max-width: 420px;
  }
  .max-w-\[min\(22rem\,calc\(100vw-2rem\)\)\] {
    max-width: min(22rem, calc(100vw - 2rem));
  }
  .max-w-\[min\(24rem\,calc\(100vw-2rem\)\)\] {
    max-width: min(24rem, calc(100vw - 2rem));
  }
  .max-w-\[min\(32rem\,60vw\)\] {
    max-width: min(32rem, 60vw);
  }
  .max-w-full {
    max-width: 100%;
  }
  .\!min-w-0 {
    min-width: 0px !important;
  }
  .min-w-0 {
    min-width: 0px;
  }
  .min-w-\[196px\] {
    min-width: 196px;
  }
  .flex-1 {
    flex: 1;
  }
  .flex-shrink {
    flex-shrink: 1;
  }
  .shrink {
    flex-shrink: 1;
  }
  .shrink-0 {
    flex-shrink: 0;
  }
  .grow {
    flex-grow: 1;
  }
  .border-collapse {
    border-collapse: collapse;
  }
  .-translate-x-1\/2 {
    --tw-translate-x: calc(calc(1 / 2 * 100%) * -1);
    translate: var(--tw-translate-x) var(--tw-translate-y);
  }
  .-translate-y-1\/2 {
    --tw-translate-y: calc(calc(1 / 2 * 100%) * -1);
    translate: var(--tw-translate-x) var(--tw-translate-y);
  }
  .scale-9 {
    --tw-scale-x: 9%;
    --tw-scale-y: 9%;
    --tw-scale-z: 9%;
    scale: var(--tw-scale-x) var(--tw-scale-y);
  }
  .transform {
    transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
  }
  @media (prefers-reduced-motion: no-preference) {
    .shimmer {
      background: linear-gradient(90deg, currentColor 0%, oklch(from currentColor l c h / .35) 50%, currentColor 100%) 0 0 / 200% 100%;
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      animation: gaia-shimmer 1.6s linear infinite;
    }
  }
  .cursor-default {
    cursor: default;
  }
  .cursor-ew-resize {
    cursor: ew-resize;
  }
  .cursor-help {
    cursor: help;
  }
  .cursor-not-allowed {
    cursor: not-allowed;
  }
  .cursor-pointer {
    cursor: pointer;
  }
  .cursor-text {
    cursor: text;
  }
  .touch-none {
    touch-action: none;
  }
  .resize {
    resize: both;
  }
  .list-disc {
    list-style-type: disc;
  }
  .grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  .grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .grid-cols-\[minmax\(0\,200px\)_1fr_150px\] {
    grid-template-columns: minmax(0,200px) 1fr 150px;
  }
  .grid-cols-\[minmax\(0\,220px\)_1fr_80px\] {
    grid-template-columns: minmax(0,220px) 1fr 80px;
  }
  .flex-col {
    flex-direction: column;
  }
  .flex-wrap {
    flex-wrap: wrap;
  }
  .\!items-center {
    align-items: center !important;
  }
  .items-baseline {
    align-items: baseline;
  }
  .items-center {
    align-items: center;
  }
  .items-end {
    align-items: flex-end;
  }
  .items-start {
    align-items: flex-start;
  }
  .items-stretch {
    align-items: stretch;
  }
  .\!justify-start {
    justify-content: flex-start !important;
  }
  .justify-between {
    justify-content: space-between;
  }
  .justify-center {
    justify-content: center;
  }
  .justify-end {
    justify-content: flex-end;
  }
  .justify-start {
    justify-content: flex-start;
  }
  .\!gap-1\.5 {
    gap: calc(var(--spacing) * 1.5) !important;
  }
  .gap-0\.5 {
    gap: calc(var(--spacing) * 0.5);
  }
  .gap-1 {
    gap: var(--spacing);
  }
  .gap-1\.5 {
    gap: calc(var(--spacing) * 1.5);
  }
  .gap-2 {
    gap: calc(var(--spacing) * 2);
  }
  .gap-2\.5 {
    gap: calc(var(--spacing) * 2.5);
  }
  .gap-3 {
    gap: calc(var(--spacing) * 3);
  }
  .gap-4 {
    gap: calc(var(--spacing) * 4);
  }
  .gap-5 {
    gap: calc(var(--spacing) * 5);
  }
  .gap-6 {
    gap: calc(var(--spacing) * 6);
  }
  .gap-8 {
    gap: calc(var(--spacing) * 8);
  }
  .gap-\[3px\] {
    gap: 3px;
  }
  .gap-x-3 {
    column-gap: calc(var(--spacing) * 3);
  }
  .gap-x-4 {
    column-gap: calc(var(--spacing) * 4);
  }
  .gap-x-6 {
    column-gap: calc(var(--spacing) * 6);
  }
  .gap-x-8 {
    column-gap: calc(var(--spacing) * 8);
  }
  .gap-y-1 {
    row-gap: var(--spacing);
  }
  .gap-y-1\.5 {
    row-gap: calc(var(--spacing) * 1.5);
  }
  .gap-y-2 {
    row-gap: calc(var(--spacing) * 2);
  }
  :where(.divide-y > :not(:last-child)) {
    --tw-divide-y-reverse: 0;
    border-bottom-style: var(--tw-border-style);
    border-top-style: var(--tw-border-style);
    border-top-width: calc(1px * var(--tw-divide-y-reverse));
    border-bottom-width: calc(1px * calc(1 - var(--tw-divide-y-reverse)));
  }
  .self-center {
    align-self: center;
  }
  .self-start {
    align-self: flex-start;
  }
  .truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .\!overflow-hidden {
    overflow: hidden !important;
  }
  .overflow-auto {
    overflow: auto;
  }
  .overflow-hidden {
    overflow: hidden;
  }
  .overflow-x-auto {
    overflow-x: auto;
  }
  .overflow-y-auto {
    overflow-y: auto;
  }
  .\!rounded-2xl {
    border-radius: var(--radius-2xl) !important;
  }
  .\!rounded-full {
    border-radius: calc(infinity * 1px) !important;
  }
  .\!rounded-md {
    border-radius: var(--radius-md) !important;
  }
  .\!rounded-none {
    border-radius: 0 !important;
  }
  .rounded-2xl {
    border-radius: var(--radius-2xl);
  }
  .rounded-\[2px\] {
    border-radius: 2px;
  }
  .rounded-full {
    border-radius: calc(infinity * 1px);
  }
  .rounded-lg {
    border-radius: var(--radius-lg);
  }
  .rounded-md {
    border-radius: var(--radius-md);
  }
  .rounded-none {
    border-radius: 0;
  }
  .rounded-sm {
    border-radius: var(--radius-sm);
  }
  .rounded-xl {
    border-radius: var(--radius-xl);
  }
  .\!border-0 {
    border-style: var(--tw-border-style) !important;
    border-width: 0px !important;
  }
  .border {
    border-style: var(--tw-border-style);
    border-width: 1px;
  }
  .border-0 {
    border-style: var(--tw-border-style);
    border-width: 0px;
  }
  .border-2 {
    border-style: var(--tw-border-style);
    border-width: 2px;
  }
  .\!border-t {
    border-top-style: var(--tw-border-style) !important;
    border-top-width: 1px !important;
  }
  .border-t {
    border-top-style: var(--tw-border-style);
    border-top-width: 1px;
  }
  .border-r {
    border-right-style: var(--tw-border-style);
    border-right-width: 1px;
  }
  .border-b {
    border-bottom-style: var(--tw-border-style);
    border-bottom-width: 1px;
  }
  .border-l {
    border-left-style: var(--tw-border-style);
    border-left-width: 1px;
  }
  .border-dashed {
    --tw-border-style: dashed;
    border-style: dashed;
  }
  .\!border-white\/15 {
    border-color: color-mix(in oklab, #fff 15%, transparent) !important;
  }
  .border-\[var\(--gaia-card-border\)\] {
    border-color: var(--gaia-card-border);
  }
  .border-\[var\(--gaia-destructive\)\] {
    border-color: var(--gaia-destructive);
  }
  .border-\[var\(--gaia-primary\)\] {
    border-color: var(--gaia-primary);
  }
  .border-\[var\(--gaia-secondary\)\] {
    border-color: var(--gaia-secondary);
  }
  .border-border {
    border-color: var(--gaia-border);
  }
  .border-card {
    border-color: var(--gaia-card);
  }
  .border-foreground {
    border-color: var(--gaia-foreground);
  }
  .border-input {
    border-color: var(--gaia-input);
  }
  .border-muted {
    border-color: var(--gaia-muted);
  }
  .border-primary {
    border-color: var(--gaia-primary);
  }
  .border-ring {
    border-color: var(--gaia-ring);
  }
  .\!bg-transparent {
    background-color: transparent !important;
  }
  .\!bg-white\/15 {
    background-color: color-mix(in oklab, #fff 15%, transparent) !important;
  }
  .bg-\[color-mix\(in_oklab\,var\(--gaia-secondary\)_12\%\,transparent\)\] {
    background-color: var(--gaia-secondary);
    @supports (color: color-mix(in lab, red, red)) {
      background-color: color-mix(in oklab,var(--gaia-secondary) 12%,transparent);
    }
  }
  .bg-\[color-mix\(in_oklab\,var\(--muted\)_12\%\,transparent\)\] {
    background-color: var(--muted);
    @supports (color: color-mix(in lab, red, red)) {
      background-color: color-mix(in oklab,var(--muted) 12%,transparent);
    }
  }
  .bg-\[var\(--gaia-card\)\] {
    background-color: var(--gaia-card);
  }
  .bg-\[var\(--gaia-foreground\)\]\/6 {
    background-color: var(--gaia-foreground);
    @supports (color: color-mix(in lab, red, red)) {
      background-color: color-mix(in oklab, var(--gaia-foreground) 6%, transparent);
    }
  }
  .bg-\[var\(--gaia-primary\)\] {
    background-color: var(--gaia-primary);
  }
  .bg-\[var\(--gaia-secondary\)\] {
    background-color: var(--gaia-secondary);
  }
  .bg-ai {
    background-color: var(--gaia-ai);
  }
  .bg-background {
    background-color: var(--gaia-background);
  }
  .bg-border {
    background-color: var(--gaia-border);
  }
  .bg-card {
    background-color: var(--gaia-card);
  }
  .bg-destructive\/12 {
    background-color: var(--gaia-destructive);
    @supports (color: color-mix(in lab, red, red)) {
      background-color: color-mix(in oklab, var(--gaia-destructive) 12%, transparent);
    }
  }
  .bg-foreground {
    background-color: var(--gaia-foreground);
  }
  .bg-foreground\/6 {
    background-color: var(--gaia-foreground);
    @supports (color: color-mix(in lab, red, red)) {
      background-color: color-mix(in oklab, var(--gaia-foreground) 6%, transparent);
    }
  }
  .bg-muted {
    background-color: var(--gaia-muted);
  }
  .bg-popover {
    background-color: var(--gaia-popover);
  }
  .bg-primary {
    background-color: var(--gaia-primary);
  }
  .bg-primary\/10 {
    background-color: var(--gaia-primary);
    @supports (color: color-mix(in lab, red, red)) {
      background-color: color-mix(in oklab, var(--gaia-primary) 10%, transparent);
    }
  }
  .bg-primary\/12 {
    background-color: var(--gaia-primary);
    @supports (color: color-mix(in lab, red, red)) {
      background-color: color-mix(in oklab, var(--gaia-primary) 12%, transparent);
    }
  }
  .bg-sidebar-primary {
    background-color: var(--gaia-sidebar-primary);
  }
  .bg-success\/12 {
    background-color: var(--gaia-success);
    @supports (color: color-mix(in lab, red, red)) {
      background-color: color-mix(in oklab, var(--gaia-success) 12%, transparent);
    }
  }
  .bg-transparent {
    background-color: transparent;
  }
  .bg-warning\/12 {
    background-color: var(--gaia-warning);
    @supports (color: color-mix(in lab, red, red)) {
      background-color: color-mix(in oklab, var(--gaia-warning) 12%, transparent);
    }
  }
  .bg-clip-padding {
    background-clip: padding-box;
  }
  .\!p-0 {
    padding: 0px !important;
  }
  .p-0 {
    padding: 0px;
  }
  .p-1 {
    padding: var(--spacing);
  }
  .p-2 {
    padding: calc(var(--spacing) * 2);
  }
  .p-3 {
    padding: calc(var(--spacing) * 3);
  }
  .p-4 {
    padding: calc(var(--spacing) * 4);
  }
  .p-2024 {
    padding: calc(var(--spacing) * 2024);
  }
  .p-2025 {
    padding: calc(var(--spacing) * 2025);
  }
  .p-\[3px\] {
    padding: 3px;
  }
  .\!px-1\.5 {
    padding-inline: calc(var(--spacing) * 1.5) !important;
  }
  .\!px-3 {
    padding-inline: calc(var(--spacing) * 3) !important;
  }
  .\!px-4 {
    padding-inline: calc(var(--spacing) * 4) !important;
  }
  .px-0 {
    padding-inline: 0px;
  }
  .px-1 {
    padding-inline: var(--spacing);
  }
  .px-1\.5 {
    padding-inline: calc(var(--spacing) * 1.5);
  }
  .px-2 {
    padding-inline: calc(var(--spacing) * 2);
  }
  .px-2\.5 {
    padding-inline: calc(var(--spacing) * 2.5);
  }
  .px-3 {
    padding-inline: calc(var(--spacing) * 3);
  }
  .px-3\.5 {
    padding-inline: calc(var(--spacing) * 3.5);
  }
  .px-4 {
    padding-inline: calc(var(--spacing) * 4);
  }
  .px-6 {
    padding-inline: calc(var(--spacing) * 6);
  }
  .px-\[9px\] {
    padding-inline: 9px;
  }
  .px-\[11px\] {
    padding-inline: 11px;
  }
  .\!py-1 {
    padding-block: var(--spacing) !important;
  }
  .\!py-3 {
    padding-block: calc(var(--spacing) * 3) !important;
  }
  .py-0\.5 {
    padding-block: calc(var(--spacing) * 0.5);
  }
  .py-1 {
    padding-block: var(--spacing);
  }
  .py-1\.5 {
    padding-block: calc(var(--spacing) * 1.5);
  }
  .py-2 {
    padding-block: calc(var(--spacing) * 2);
  }
  .py-2\.5 {
    padding-block: calc(var(--spacing) * 2.5);
  }
  .py-3 {
    padding-block: calc(var(--spacing) * 3);
  }
  .py-3\.5 {
    padding-block: calc(var(--spacing) * 3.5);
  }
  .py-4 {
    padding-block: calc(var(--spacing) * 4);
  }
  .py-6 {
    padding-block: calc(var(--spacing) * 6);
  }
  .py-8 {
    padding-block: calc(var(--spacing) * 8);
  }
  .py-12 {
    padding-block: calc(var(--spacing) * 12);
  }
  .py-px {
    padding-block: 1px;
  }
  .pt-0\.5 {
    padding-top: calc(var(--spacing) * 0.5);
  }
  .pt-1 {
    padding-top: var(--spacing);
  }
  .pt-2 {
    padding-top: calc(var(--spacing) * 2);
  }
  .pt-3 {
    padding-top: calc(var(--spacing) * 3);
  }
  .pr-1 {
    padding-right: var(--spacing);
  }
  .pr-9 {
    padding-right: calc(var(--spacing) * 9);
  }
  .pr-10 {
    padding-right: calc(var(--spacing) * 10);
  }
  .pr-1234 {
    padding-right: calc(var(--spacing) * 1234);
  }
  .pb-0 {
    padding-bottom: 0px;
  }
  .pb-1 {
    padding-bottom: var(--spacing);
  }
  .pb-1\.5 {
    padding-bottom: calc(var(--spacing) * 1.5);
  }
  .pb-2 {
    padding-bottom: calc(var(--spacing) * 2);
  }
  .pb-3 {
    padding-bottom: calc(var(--spacing) * 3);
  }
  .pb-5 {
    padding-bottom: calc(var(--spacing) * 5);
  }
  .pl-1 {
    padding-left: var(--spacing);
  }
  .pl-2 {
    padding-left: calc(var(--spacing) * 2);
  }
  .pl-3 {
    padding-left: calc(var(--spacing) * 3);
  }
  .pl-4 {
    padding-left: calc(var(--spacing) * 4);
  }
  .pl-9 {
    padding-left: calc(var(--spacing) * 9);
  }
  .\!text-left {
    text-align: left !important;
  }
  .text-center {
    text-align: center;
  }
  .text-left {
    text-align: left;
  }
  .text-right {
    text-align: right;
  }
  .align-baseline {
    vertical-align: baseline;
  }
  .align-bottom {
    vertical-align: bottom;
  }
  .align-middle {
    vertical-align: middle;
  }
  .\!text-base {
    font-size: var(--text-base) !important;
    line-height: var(--tw-leading, var(--text-base--line-height)) !important;
  }
  .text-2xl {
    font-size: var(--text-2xl);
    line-height: var(--tw-leading, var(--text-2xl--line-height));
  }
  .text-2xs {
    font-size: var(--text-2xs);
    line-height: var(--tw-leading, var(--text-2xs--line-height));
  }
  .text-base {
    font-size: var(--text-base);
    line-height: var(--tw-leading, var(--text-base--line-height));
  }
  .text-lg {
    font-size: var(--text-lg);
    line-height: var(--tw-leading, var(--text-lg--line-height));
  }
  .text-sm {
    font-size: var(--text-sm);
    line-height: var(--tw-leading, var(--text-sm--line-height));
  }
  .text-xs {
    font-size: var(--text-xs);
    line-height: var(--tw-leading, var(--text-xs--line-height));
  }
  .\!text-\[13px\] {
    font-size: 13px !important;
  }
  .text-\[10\.5px\] {
    font-size: 10.5px;
  }
  .leading-none {
    --tw-leading: 1;
    line-height: 1;
  }
  .leading-relaxed {
    --tw-leading: var(--leading-relaxed);
    line-height: var(--leading-relaxed);
  }
  .leading-snug {
    --tw-leading: var(--leading-snug);
    line-height: var(--leading-snug);
  }
  .leading-tight {
    --tw-leading: var(--leading-tight);
    line-height: var(--leading-tight);
  }
  .\!font-normal {
    --tw-font-weight: var(--font-weight-normal) !important;
    font-weight: var(--font-weight-normal) !important;
  }
  .font-normal {
    --tw-font-weight: var(--font-weight-normal);
    font-weight: var(--font-weight-normal);
  }
  .font-semibold {
    --tw-font-weight: var(--font-weight-semibold);
    font-weight: var(--font-weight-semibold);
  }
  .tracking-normal {
    --tw-tracking: var(--tracking-normal);
    letter-spacing: var(--tracking-normal);
  }
  .tracking-wide {
    --tw-tracking: var(--tracking-wide);
    letter-spacing: var(--tracking-wide);
  }
  .\[overflow-wrap\:anywhere\] {
    overflow-wrap: anywhere;
  }
  .break-words {
    overflow-wrap: break-word;
  }
  .wrap-break-word {
    overflow-wrap: break-word;
  }
  .whitespace-normal {
    white-space: normal;
  }
  .whitespace-nowrap {
    white-space: nowrap;
  }
  .\[tab-size\:2\] {
    tab-size: 2;
  }
  .\!text-foreground {
    color: var(--gaia-foreground) !important;
  }
  .\!text-white {
    color: #fff !important;
  }
  .text-\[var\(--gaia-badge-destructive-foreground\)\] {
    color: var(--gaia-badge-destructive-foreground);
  }
  .text-\[var\(--gaia-badge-info-foreground\)\] {
    color: var(--gaia-badge-info-foreground);
  }
  .text-\[var\(--gaia-badge-success-foreground\)\] {
    color: var(--gaia-badge-success-foreground);
  }
  .text-\[var\(--gaia-badge-warning-foreground\)\] {
    color: var(--gaia-badge-warning-foreground);
  }
  .text-\[var\(--gaia-destructive\)\] {
    color: var(--gaia-destructive);
  }
  .text-\[var\(--gaia-foreground\)\] {
    color: var(--gaia-foreground);
  }
  .text-\[var\(--gaia-link-foreground\)\] {
    color: var(--gaia-link-foreground);
  }
  .text-\[var\(--gaia-muted-foreground\)\] {
    color: var(--gaia-muted-foreground);
  }
  .text-\[var\(--gaia-primary\)\] {
    color: var(--gaia-primary);
  }
  .text-\[var\(--gaia-primary-foreground\)\] {
    color: var(--gaia-primary-foreground);
  }
  .text-\[var\(--gaia-secondary\)\] {
    color: var(--gaia-secondary);
  }
  .text-\[var\(--gaia-secondary-foreground\)\] {
    color: var(--gaia-secondary-foreground);
  }
  .text-ai {
    color: var(--gaia-ai);
  }
  .text-ai-foreground {
    color: var(--gaia-ai-foreground);
  }
  .text-card-foreground {
    color: var(--gaia-card-foreground);
  }
  .text-destructive {
    color: var(--gaia-destructive);
  }
  .text-foreground {
    color: var(--gaia-foreground);
  }
  .text-inherit {
    color: inherit;
  }
  .text-muted {
    color: var(--gaia-muted);
  }
  .text-muted-foreground {
    color: var(--gaia-muted-foreground);
  }
  .text-muted-foreground\/60 {
    color: var(--gaia-muted-foreground);
    @supports (color: color-mix(in lab, red, red)) {
      color: color-mix(in oklab, var(--gaia-muted-foreground) 60%, transparent);
    }
  }
  .text-popover-foreground {
    color: var(--gaia-popover-foreground);
  }
  .text-primary {
    color: var(--gaia-primary);
  }
  .text-primary-foreground {
    color: var(--gaia-primary-foreground);
  }
  .text-sidebar-primary-foreground {
    color: var(--gaia-sidebar-primary-foreground);
  }
  .text-success {
    color: var(--gaia-success);
  }
  .text-warning {
    color: var(--gaia-warning);
  }
  .text-white {
    color: #fff;
  }
  .text-white\/60 {
    color: color-mix(in oklab, #fff 60%, transparent);
  }
  .capitalize {
    text-transform: capitalize;
  }
  .lowercase {
    text-transform: lowercase;
  }
  .normal-case {
    text-transform: none;
  }
  .uppercase {
    text-transform: uppercase;
  }
  .italic {
    font-style: italic;
  }
  .not-italic {
    font-style: normal;
  }
  .ordinal {
    --tw-ordinal: ordinal;
    font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,);
  }
  .tabular-nums {
    --tw-numeric-spacing: tabular-nums;
    font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,);
  }
  .line-through {
    text-decoration-line: line-through;
  }
  .underline {
    text-decoration-line: underline;
  }
  .underline-offset-4 {
    text-underline-offset: 4px;
  }
  .opacity-0 {
    opacity: 0%;
  }
  .opacity-50 {
    opacity: 50%;
  }
  .opacity-55 {
    opacity: 55%;
  }
  .shadow-md {
    --tw-shadow: 0 30px 60px -10px var(--tw-shadow-color, rgb(var(--gaia-shadow-rgb) / 0.18)), 0 8px 20px -8px var(--tw-shadow-color, rgb(var(--gaia-shadow-rgb) / 0.08));
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }
  .shadow-sm {
    --tw-shadow: 0 1px 2px var(--tw-shadow-color, rgb(var(--gaia-shadow-rgb) / 0.04)), 0 1px 1px var(--tw-shadow-color, rgb(var(--gaia-shadow-rgb) / 0.04));
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }
  .ring {
    --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }
  .outline {
    outline-style: var(--tw-outline-style);
    outline-width: 1px;
  }
  .outline-2 {
    outline-style: var(--tw-outline-style);
    outline-width: 2px;
  }
  .outline-offset-2 {
    outline-offset: 2px;
  }
  .outline-ai {
    outline-color: var(--gaia-ai);
  }
  .outline-ring {
    outline-color: var(--gaia-ring);
  }
  .blur {
    --tw-blur: blur(8px);
    filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
  }
  .invert {
    --tw-invert: invert(100%);
    filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
  }
  .\!filter {
    filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,) !important;
  }
  .filter {
    filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
  }
  .transition {
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }
  .transition-all {
    transition-property: all;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }
  .transition-colors {
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }
  .transition-opacity {
    transition-property: opacity;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }
  .transition-transform {
    transition-property: transform, translate, scale, rotate;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }
  .ease-out {
    --tw-ease: var(--ease-out);
    transition-timing-function: var(--ease-out);
  }
  .outline-none {
    --tw-outline-style: none;
    outline-style: none;
  }
  .outline-solid {
    --tw-outline-style: solid;
    outline-style: solid;
  }
  .select-all {
    -webkit-user-select: all;
    user-select: all;
  }
  .select-none {
    -webkit-user-select: none;
    user-select: none;
  }
  .\[font\:inherit\] {
    font: inherit;
  }
  .block-1 {
    block-size: var(--spacing);
  }
  @media (hover: hover) {
    .group-hover\:block:is(:where(.group):hover *) {
      display: block;
    }
    .group-hover\/row\:opacity-100:is(:where(.group\/row):hover *) {
      opacity: 100%;
    }
  }
  .group-focus-visible\:block:is(:where(.group):focus-visible *) {
    display: block;
  }
  .group-data-\[popup-open\]\:rotate-180:is(:where(.group)[data-popup-open] *) {
    rotate: 180deg;
  }
  .group-data-\[variant\=default\]\/tabs-list\:rounded-md:is(:where(.group\/tabs-list)[data-variant="default"] *) {
    border-radius: var(--radius-md);
  }
  .group-data-\[variant\=default\]\/tabs-list\:px-3:is(:where(.group\/tabs-list)[data-variant="default"] *) {
    padding-inline: calc(var(--spacing) * 3);
  }
  .group-data-\[variant\=default\]\/tabs-list\:py-1:is(:where(.group\/tabs-list)[data-variant="default"] *) {
    padding-block: var(--spacing);
  }
  .group-data-\[variant\=line\]\/tabs-list\:px-3:is(:where(.group\/tabs-list)[data-variant="line"] *) {
    padding-inline: calc(var(--spacing) * 3);
  }
  .group-data-\[variant\=line\]\/tabs-list\:pt-2:is(:where(.group\/tabs-list)[data-variant="line"] *) {
    padding-top: calc(var(--spacing) * 2);
  }
  .group-data-\[variant\=line\]\/tabs-list\:pb-2\.5:is(:where(.group\/tabs-list)[data-variant="line"] *) {
    padding-bottom: calc(var(--spacing) * 2.5);
  }
  .placeholder\:text-muted-foreground::placeholder {
    color: var(--gaia-muted-foreground);
  }
  .group-data-\[variant\=line\]\/tabs-list\:after\:absolute:is(:where(.group\/tabs-list)[data-variant="line"] *)::after {
    content: var(--tw-content);
    position: absolute;
  }
  .group-data-\[variant\=line\]\/tabs-list\:after\:inset-x-0:is(:where(.group\/tabs-list)[data-variant="line"] *)::after {
    content: var(--tw-content);
    inset-inline: 0px;
  }
  .group-data-\[variant\=line\]\/tabs-list\:after\:-bottom-px:is(:where(.group\/tabs-list)[data-variant="line"] *)::after {
    content: var(--tw-content);
    bottom: -1px;
  }
  .group-data-\[variant\=line\]\/tabs-list\:after\:h-0\.5:is(:where(.group\/tabs-list)[data-variant="line"] *)::after {
    content: var(--tw-content);
    height: calc(var(--spacing) * 0.5);
  }
  .group-data-\[variant\=line\]\/tabs-list\:after\:bg-\[var\(--gaia-secondary\)\]:is(:where(.group\/tabs-list)[data-variant="line"] *)::after {
    content: var(--tw-content);
    background-color: var(--gaia-secondary);
  }
  .group-data-\[variant\=line\]\/tabs-list\:after\:opacity-0:is(:where(.group\/tabs-list)[data-variant="line"] *)::after {
    content: var(--tw-content);
    opacity: 0%;
  }
  .group-data-\[variant\=line\]\/tabs-list\:after\:content-\[\'\'\]:is(:where(.group\/tabs-list)[data-variant="line"] *)::after {
    --tw-content: '';
    content: var(--tw-content);
  }
  .last\:border-b-0:last-child {
    border-bottom-style: var(--tw-border-style);
    border-bottom-width: 0px;
  }
  @media (hover: hover) {
    .hover\:\!bg-muted:hover {
      background-color: var(--gaia-muted) !important;
    }
    .hover\:bg-\[var\(--gaia-accent\)\]:hover {
      background-color: var(--gaia-accent);
    }
    .hover\:bg-\[var\(--gaia-destructive\)\]\/6:hover {
      background-color: var(--gaia-destructive);
    }
    @supports (color: color-mix(in lab, red, red)) {
      .hover\:bg-\[var\(--gaia-destructive\)\]\/6:hover {
        background-color: color-mix(in oklab, var(--gaia-destructive) 6%, transparent);
      }
    }
    .hover\:bg-\[var\(--gaia-primary\)\]:hover {
      background-color: var(--gaia-primary);
    }
    .hover\:bg-\[var\(--gaia-primary\)\]\/6:hover {
      background-color: var(--gaia-primary);
    }
    @supports (color: color-mix(in lab, red, red)) {
      .hover\:bg-\[var\(--gaia-primary\)\]\/6:hover {
        background-color: color-mix(in oklab, var(--gaia-primary) 6%, transparent);
      }
    }
    .hover\:bg-\[var\(--gaia-primary\)\]\/90:hover {
      background-color: var(--gaia-primary);
    }
    @supports (color: color-mix(in lab, red, red)) {
      .hover\:bg-\[var\(--gaia-primary\)\]\/90:hover {
        background-color: color-mix(in oklab, var(--gaia-primary) 90%, transparent);
      }
    }
    .hover\:bg-\[var\(--gaia-secondary\)\]\/6:hover {
      background-color: var(--gaia-secondary);
    }
    @supports (color: color-mix(in lab, red, red)) {
      .hover\:bg-\[var\(--gaia-secondary\)\]\/6:hover {
        background-color: color-mix(in oklab, var(--gaia-secondary) 6%, transparent);
      }
    }
    .hover\:bg-\[var\(--gaia-secondary\)\]\/90:hover {
      background-color: var(--gaia-secondary);
    }
    @supports (color: color-mix(in lab, red, red)) {
      .hover\:bg-\[var\(--gaia-secondary\)\]\/90:hover {
        background-color: color-mix(in oklab, var(--gaia-secondary) 90%, transparent);
      }
    }
    .hover\:bg-accent:hover {
      background-color: var(--gaia-accent);
    }
    .hover\:bg-foreground\/6:hover {
      background-color: var(--gaia-foreground);
    }
    @supports (color: color-mix(in lab, red, red)) {
      .hover\:bg-foreground\/6:hover {
        background-color: color-mix(in oklab, var(--gaia-foreground) 6%, transparent);
      }
    }
    .hover\:bg-muted:hover {
      background-color: var(--gaia-muted);
    }
    .hover\:bg-transparent:hover {
      background-color: transparent;
    }
    .hover\:text-\[var\(--gaia-accent-foreground\)\]:hover {
      color: var(--gaia-accent-foreground);
    }
    .hover\:text-\[var\(--gaia-secondary\)\]:hover {
      color: var(--gaia-secondary);
    }
    .hover\:text-foreground:hover {
      color: var(--gaia-foreground);
    }
    .hover\:underline:hover {
      text-decoration-line: underline;
    }
    .hover\:opacity-50:hover {
      opacity: 50%;
    }
    .hover\:opacity-90:hover {
      opacity: 90%;
    }
  }
  .focus-visible\:opacity-100:focus-visible {
    opacity: 100%;
  }
  .focus-visible\:\!outline-2:focus-visible {
    outline-style: var(--tw-outline-style) !important;
    outline-width: 2px !important;
  }
  .focus-visible\:outline-2:focus-visible {
    outline-style: var(--tw-outline-style);
    outline-width: 2px;
  }
  .focus-visible\:\!outline-offset-2:focus-visible {
    outline-offset: 2px !important;
  }
  .focus-visible\:-outline-offset-2:focus-visible {
    outline-offset: calc(2px * -1);
  }
  .focus-visible\:outline-offset-2:focus-visible {
    outline-offset: 2px;
  }
  .focus-visible\:\!outline-ring:focus-visible {
    outline-color: var(--gaia-ring) !important;
  }
  .focus-visible\:outline-\[var\(--gaia-ring\)\]:focus-visible {
    outline-color: var(--gaia-ring);
  }
  .focus-visible\:outline-ring:focus-visible {
    outline-color: var(--gaia-ring);
  }
  .focus-visible\:\!outline-solid:focus-visible {
    --tw-outline-style: solid !important;
    outline-style: solid !important;
  }
  .focus-visible\:outline-solid:focus-visible {
    --tw-outline-style: solid;
    outline-style: solid;
  }
  .disabled\:pointer-events-none:disabled {
    pointer-events: none;
  }
  .disabled\:cursor-not-allowed:disabled {
    cursor: not-allowed;
  }
  .disabled\:border-muted:disabled {
    border-color: var(--gaia-muted);
  }
  .disabled\:text-muted:disabled {
    color: var(--gaia-muted);
  }
  .disabled\:opacity-50:disabled {
    opacity: 50%;
  }
  .disabled\:opacity-100:disabled {
    opacity: 100%;
  }
  .has-data-popup-open\:bg-muted:has([data-popup-open]) {
    background-color: var(--gaia-muted);
  }
  .group-data-\[variant\=default\]\/tabs-list\:has-\[\[data-active\]\]\:bg-card:is(:where(.group\/tabs-list)[data-variant="default"] *):has(:is([data-active])) {
    background-color: var(--gaia-card);
  }
  .group-data-\[variant\=default\]\/tabs-list\:has-\[\[data-active\]\]\:shadow-sm:is(:where(.group\/tabs-list)[data-variant="default"] *):has(:is([data-active])) {
    --tw-shadow: 0 1px 2px var(--tw-shadow-color, rgb(var(--gaia-shadow-rgb) / 0.04)), 0 1px 1px var(--tw-shadow-color, rgb(var(--gaia-shadow-rgb) / 0.04));
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }
  .group-data-\[variant\=line\]\/tabs-list\:has-\[\[data-active\]\]\:after\:opacity-100:is(:where(.group\/tabs-list)[data-variant="line"] *):has(:is([data-active]))::after {
    content: var(--tw-content);
    opacity: 100%;
  }
  .aria-invalid\:border-destructive[aria-invalid="true"] {
    border-color: var(--gaia-destructive);
  }
  .data-popup-open\:bg-\[var\(--gaia-muted\)\][data-popup-open] {
    background-color: var(--gaia-muted);
  }
  .data-popup-open\:opacity-100[data-popup-open] {
    opacity: 100%;
  }
  .data-\[active\]\:text-\[var\(--gaia-secondary\)\][data-active] {
    color: var(--gaia-secondary);
  }
  .data-\[dimmed\]\:opacity-50[data-dimmed] {
    opacity: 50%;
  }
  .data-\[highlighted\]\:\!bg-white\/10[data-highlighted] {
    background-color: color-mix(in oklab, #fff 10%, transparent) !important;
  }
  .data-\[highlighted\]\:\!text-white[data-highlighted] {
    color: #fff !important;
  }
  .data-\[popup-open\]\:border-ring[data-popup-open] {
    border-color: var(--gaia-ring);
  }
  .data-\[popup-open\]\:\!bg-muted[data-popup-open] {
    background-color: var(--gaia-muted) !important;
  }
  .data-\[popup-open\]\:bg-muted[data-popup-open] {
    background-color: var(--gaia-muted);
  }
  .data-\[popup-open\]\:text-foreground[data-popup-open] {
    color: var(--gaia-foreground);
  }
  @media (prefers-reduced-motion: reduce) {
    .motion-reduce\:transition-none {
      transition-property: none;
    }
  }
  @media (width >= 640px) {
    .min-\[640px\]\:grid-cols-1 {
      grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    .min-\[640px\]\:grid-cols-2 {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .min-\[640px\]\:border-t {
      border-top-style: var(--tw-border-style);
      border-top-width: 1px;
    }
    .min-\[640px\]\:border-t-0 {
      border-top-style: var(--tw-border-style);
      border-top-width: 0px;
    }
    .min-\[640px\]\:border-l {
      border-left-style: var(--tw-border-style);
      border-left-width: 1px;
    }
    .min-\[640px\]\:border-l-0 {
      border-left-style: var(--tw-border-style);
      border-left-width: 0px;
    }
  }
  @media (width >= 1100px) {
    .min-\[1100px\]\:grid-cols-1 {
      grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    .min-\[1100px\]\:grid-cols-2 {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .min-\[1100px\]\:grid-cols-3 {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .min-\[1100px\]\:grid-cols-4 {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .min-\[1100px\]\:border-t {
      border-top-style: var(--tw-border-style);
      border-top-width: 1px;
    }
    .min-\[1100px\]\:border-t-0 {
      border-top-style: var(--tw-border-style);
      border-top-width: 0px;
    }
    .min-\[1100px\]\:border-l {
      border-left-style: var(--tw-border-style);
      border-left-width: 1px;
    }
    .min-\[1100px\]\:border-l-0 {
      border-left-style: var(--tw-border-style);
      border-left-width: 0px;
    }
  }
  @media (width >= 40rem) {
    .sm\:grid-cols-2 {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .sm\:grid-cols-4 {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }
  }
  @container (width >= 22rem) {
    .\@\[22rem\]\:grid-cols-2 {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  @container (width >= 34rem) {
    .\@\[34rem\]\:grid-cols-3 {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }
  .\[\&_span\]\:max-w-full span {
    max-width: 100%;
  }
  .\[\&_span\]\:min-w-0 span {
    min-width: 0px;
  }
  .\[\&_span\]\:\[overflow-wrap\:anywhere\] span {
    overflow-wrap: anywhere;
  }
  .\[\&_strong\]\:font-semibold strong {
    --tw-font-weight: var(--font-weight-semibold);
    font-weight: var(--font-weight-semibold);
  }
  .\[\&_svg\]\:pointer-events-none svg {
    pointer-events: none;
  }
  .\[\&_svg\]\:shrink-0 svg {
    flex-shrink: 0;
  }
  .\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4 svg:not([class*='size-']) {
    width: calc(var(--spacing) * 4);
    height: calc(var(--spacing) * 4);
  }
  .\[\&\>svg\]\:pointer-events-none > svg {
    pointer-events: none;
  }
  .\[\&\>svg\]\:size-3 > svg {
    width: calc(var(--spacing) * 3);
    height: calc(var(--spacing) * 3);
  }
  .\[\&\>td\]\:border-t-2 > td {
    border-top-style: var(--tw-border-style);
    border-top-width: 2px;
  }
  .\[\&\>td\]\:border-t-border > td {
    border-top-color: var(--gaia-border);
  }
  .\[\&\>td\:first-child\]\:shadow-\[inset_2px_0_0_var\(--gaia-secondary\)\] > td:first-child {
    --tw-shadow: inset 2px 0 0 var(--tw-shadow-color, var(--gaia-secondary));
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }
  @media (hover:none) {
    .\[\@media\(hover\:none\)\]\:opacity-100 {
      opacity: 100%;
    }
  }
}
@layer components {
  .gaia-h1-500, .h1-500, .gaia-h1-400, .h1-400 {
    font-size: var(--gaia-text-4xl);
    line-height: var(--gaia-text-4xl--line-height);
    letter-spacing: -.025em;
  }
  .gaia-h2-500, .h2-500 {
    font-size: var(--gaia-text-2xl);
    line-height: var(--gaia-text-2xl--line-height);
    letter-spacing: -.025em;
  }
  .gaia-h3-500, .h3-500 {
    font-size: var(--gaia-text-xl);
    line-height: var(--gaia-text-xl--line-height);
    letter-spacing: -.025em;
  }
  .gaia-body-500, .body-500, .gaia-body-400, .body-400 {
    font-size: var(--gaia-text-base);
    line-height: var(--gaia-text-base--line-height);
  }
  .gaia-label-500, .label-500, .gaia-label-400, .label-400 {
    font-size: var(--gaia-text-xs);
    line-height: var(--gaia-text-xs--line-height);
  }
  .gaia-detail-400, .detail-400 {
    font-size: var(--gaia-text-2xs);
    line-height: var(--gaia-text-2xs--line-height);
  }
  .gaia-h1-500, .h1-500, .gaia-h2-500, .h2-500, .gaia-h3-500, .h3-500, .gaia-body-500, .body-500, .gaia-label-500, .label-500 {
    font-weight: var(--gaia-font-weight-semibold);
  }
  .gaia-h1-400, .h1-400, .gaia-body-400, .body-400, .gaia-label-400, .label-400, .gaia-detail-400, .detail-400 {
    font-weight: var(--gaia-font-weight-normal);
  }
}
.gaia-page-surface {
  background: var(--gaia-page-surface);
  border-radius: var(--gaia-radius-xl);
}
.gaia-page-surface, [data-surface="grey"] {
  --gaia-card-border: transparent;
  --card-border: transparent;
  --gaia-surface-ground: var(--gaia-page-surface);
}
[data-surface="white"] {
  --gaia-card-border: var(--gaia-border);
  --card-border: var(--gaia-border);
  --gaia-surface-ground: var(--gaia-card);
}
.gaia-page-title {
  font-size: var(--gaia-text-2xl);
  line-height: var(--gaia-text-2xl--line-height);
  font-weight: var(--gaia-font-weight-semibold);
  letter-spacing: -.025em;
  color: var(--gaia-foreground);
}
.gaia-kpi-value {
  font-size: var(--gaia-text-2xl);
  line-height: 1;
  font-weight: var(--gaia-font-weight-semibold);
  letter-spacing: normal;
  color: var(--gaia-foreground);
}
.gaia-kpi-label {
  font-size: var(--gaia-text-xs);
  line-height: var(--gaia-text-xs--line-height);
  font-weight: var(--gaia-font-weight-semibold);
  color: var(--gaia-muted-foreground);
}
.gaia-kpi-grid__value {
  padding-bottom: .125em;
  margin-bottom: -.125em;
}
.gaia-doughnut-center__name {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: var(--gaia-text-2xs);
  line-height: var(--gaia-text-2xs--line-height);
  font-weight: var(--gaia-font-weight-semibold);
  color: var(--gaia-muted-foreground);
}
.gaia-page-info {
  width: 1.3333333333rem;
  height: 1.3333333333rem;
}
.gaia-page-grid {
  container: gaia-page-grid / inline-size;
  width: 100%;
  max-width: var(--gaia-page-grid-max);
  margin-inline: auto;
}
.gaia-page-grid__columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gaia-grid-p);
}
.gaia-page-grid__item {
  min-width: 0;
}
.gaia-page-grid__item[data-span="2"] {
  grid-column: span 2;
}
.gaia-page-grid__item[data-span="3"] {
  grid-column: span 3;
}
.gaia-page-grid__item[data-span="4"] {
  grid-column: 1 / -1;
}
@container gaia-page-grid (width < 1024px) {
  .gaia-page-grid__columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gaia-page-grid__columns > :is([data-span="3"], [data-span="4"], .col-span-3, .col-span-4, .col-span-full, [style*="grid-column: span 3"], [style*="grid-column: span 4"], [style*="grid-column:span 3"], [style*="grid-column:span 4"]) {
    grid-column: 1 / -1 !important;
  }
}
@container gaia-page-grid (width < 720px) {
  .gaia-page-grid__columns {
    grid-template-columns: minmax(0, 1fr);
  }
  .gaia-page-grid__columns > * {
    grid-column: 1 / -1 !important;
  }
}
.gaia-table-detail {
  container: gaia-table-detail / inline-size;
  width: 100%;
  max-width: var(--gaia-page-grid-max);
  margin-inline: auto;
}
.gaia-table-detail__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gaia-grid-p);
}
.gaia-table-detail__table {
  isolation: isolate;
  min-width: 0;
  grid-column: span 3;
}
.gaia-table-detail__rail {
  min-width: 0;
  min-height: 260px;
  position: relative;
  grid-column: span 1;
}
.gaia-table-detail__rail-content {
  position: absolute;
  inset: 0;
  display: flex;
  min-height: 0;
  overflow: hidden;
}
.gaia-table-detail__rail-content > * {
  flex: 1;
  min-width: 0;
  min-height: 0;
  max-height: 100%;
}
.gaia-table-detail__grid[data-open="true"][data-table-span="1"] .gaia-table-detail__table {
  grid-column: span 1;
}
.gaia-table-detail__grid[data-open="true"][data-table-span="1"] .gaia-table-detail__rail {
  grid-column: span 3;
}
.gaia-table-detail__grid[data-open="true"][data-table-span="2"] .gaia-table-detail__table {
  grid-column: span 2;
}
.gaia-table-detail__grid[data-open="true"][data-table-span="2"] .gaia-table-detail__rail {
  grid-column: span 2;
}
.gaia-table-detail[data-filled="true"] {
  --gaia-scroll-cap-override: none;
}
.gaia-table-detail[data-filled="true"] .gaia-table-detail__grid {
  height: var(--gaia-table-detail-available);
  min-height: 0;
}
.gaia-table-detail[data-filled="true"] .gaia-table-detail__rail {
  min-height: 0;
}
.gaia-table-detail[data-filled="true"] .gaia-table-detail__table {
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.gaia-table-detail[data-filled="true"] .gaia-table-detail__table > *, .gaia-table-detail[data-filled="true"] .gaia-table-detail__table .card {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.gaia-table-detail[data-filled="true"] [data-frozen-scroll] {
  flex: 1 1 auto;
  min-height: 0;
}
.gaia-table-detail[data-filled="true"] .gaia-data-table {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.gaia-table-detail[data-filled="true"] .gaia-data-table__scroll {
  flex: 1 1 auto;
  min-height: 0;
}
@container gaia-table-detail (width < 1024px) {
  .gaia-table-detail__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gaia-table-detail__grid .gaia-table-detail__table, .gaia-table-detail__grid .gaia-table-detail__rail {
    grid-column: span 1 !important;
  }
}
@container gaia-table-detail (width < 720px) {
  .gaia-table-detail__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .gaia-table-detail__grid .gaia-table-detail__table, .gaia-table-detail__grid .gaia-table-detail__rail {
    grid-column: 1 / -1 !important;
  }
  .gaia-table-detail__rail-content {
    position: static;
    min-height: 260px;
  }
  .gaia-table-detail__grid {
    --gaia-scroll-cap-override: initial;
  }
  .gaia-table-detail[data-filled="true"] .gaia-table-detail__grid {
    height: auto;
  }
  .gaia-table-detail[data-filled="true"] .gaia-table-detail__rail {
    min-height: 260px;
  }
}
.gaia-detail-panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gaia-border);
  border-radius: var(--gaia-radius-xl);
  background: var(--gaia-card);
  overflow: hidden;
}
.gaia-detail-panel__head {
  display: flex;
  flex: none;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--gaia-border);
}
.gaia-detail-panel__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px;
}
.gaia-panel-eyebrow {
  display: block;
  font-size: var(--gaia-text-xs);
  line-height: var(--gaia-text-xs--line-height);
  font-weight: var(--gaia-font-weight-semibold);
  color: var(--gaia-muted-foreground);
}
.gaia-panel-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gaia-panel-section--divided {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--gaia-border);
}
.gaia-panel-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.gaia-dropdown-menu__positioner, .gaia-select__positioner {
  z-index: calc(var(--gaia-dialog-z, 49) + 1);
  outline: none;
}
.gaia-dropdown-menu__content {
  box-sizing: border-box;
  min-width: 8rem;
  max-width: min(var(--available-width, 100vw), calc(100vw - 16px));
  max-height: min(20rem, var(--available-height, 20rem));
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--gaia-border);
  border-radius: var(--gaia-radius-xl);
  background: var(--gaia-popover);
  color: var(--gaia-popover-foreground);
  box-shadow: 0 14px 36px -10px oklch(from var(--gaia-foreground) l c h / .26);
  font-size: var(--gaia-text-xs);
  transform-origin: var(--transform-origin);
  transition: opacity 100ms ease-out, transform 100ms ease-out;
}
.gaia-dropdown-menu__content[data-starting-style], .gaia-dropdown-menu__content[data-ending-style] {
  opacity: 0;
  transform: scale(.98);
}
.gaia-dropdown-menu__item {
  box-sizing: border-box;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 32px;
  padding: 6px 9px;
  border: 0;
  border-radius: var(--gaia-radius-lg);
  background: transparent;
  color: var(--gaia-foreground);
  font: inherit;
  font-size: var(--gaia-text-xs);
  line-height: var(--gaia-text-xs--line-height);
  font-weight: 400;
  text-align: left;
  cursor: default;
  user-select: none;
  outline: none;
}
.gaia-dropdown-menu__item-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gaia-dropdown-menu__item[data-highlighted] {
  background: var(--gaia-accent);
  color: var(--gaia-accent-foreground);
}
.gaia-dropdown-menu__item[data-disabled] {
  color: var(--gaia-muted-foreground);
  cursor: not-allowed;
}
.gaia-dropdown-menu__item[data-variant="destructive"] {
  color: var(--gaia-destructive);
}
.gaia-dropdown-menu__item[data-variant="destructive"][data-highlighted] {
  background: oklch(from var(--gaia-destructive) l c h / .1);
  color: var(--gaia-destructive);
}
.gaia-dropdown-menu__item[data-variant="destructive"][data-disabled] {
  color: var(--gaia-muted-foreground);
}
.gaia-dropdown-menu__item[data-inset] {
  padding-inline-start: 32px;
}
.gaia-dropdown-menu__indicator {
  box-sizing: border-box;
  display: grid;
  flex: none;
  order: -1;
  place-items: center;
  width: 15px;
  height: 15px;
  border: 1px solid var(--gaia-border);
  border-radius: var(--gaia-radius-circle);
  background: var(--gaia-card);
  color: var(--gaia-primary-foreground);
}
.gaia-dropdown-menu__indicator[data-checked] {
  border-color: var(--gaia-foreground);
  background: var(--gaia-foreground);
}
.gaia-dropdown-menu__indicator-glyph {
  display: grid;
  place-items: center;
  width: 9px;
  height: 9px;
  font-size: 9px;
  line-height: 1;
}
.gaia-dropdown-menu__indicator[data-unchecked] .gaia-dropdown-menu__indicator-glyph {
  visibility: hidden;
}
.gaia-dropdown-menu__indicator svg {
  width: 9px;
  height: 9px;
}
.gaia-dropdown-menu__label {
  display: flex;
  align-items: center;
  min-height: 32px;
  padding: 0 9px;
  color: var(--gaia-muted-foreground);
  font-size: var(--gaia-text-xs);
  line-height: var(--gaia-text-xs--line-height);
  font-weight: var(--gaia-font-weight-semibold);
}
.gaia-dropdown-menu__content[data-flat] {
  box-shadow: none;
}
.gaia-dropdown-menu__item[data-current] {
  background: oklch(from var(--gaia-foreground) l c h / .06);
}
.gaia-dropdown-menu__item[data-current][data-highlighted] {
  background: var(--gaia-accent);
}
.gaia-dropdown-menu__item-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.gaia-dropdown-menu__item-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.gaia-dropdown-menu__item-description {
  color: var(--gaia-muted-foreground);
  font-size: var(--gaia-text-2xs);
  line-height: var(--gaia-text-2xs--line-height);
  white-space: normal;
}
.gaia-dropdown-menu__separator {
  height: 1px;
  margin: 4px -6px;
  background: var(--gaia-border);
}
.gaia-dropdown-menu__sub-chevron {
  flex: none;
  width: 14px;
  height: 14px;
  margin-left: auto;
}
.gaia-dropdown-menu__shortcut {
  margin-left: auto;
  color: var(--gaia-muted-foreground);
  font-size: var(--gaia-text-2xs);
  letter-spacing: .04em;
}
.gaia-select__label {
  display: block;
  margin-bottom: 6px;
  color: var(--gaia-foreground);
  font-size: var(--gaia-text-xs);
  font-weight: var(--gaia-font-weight-semibold);
}
.gaia-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--gaia-input);
  border-radius: var(--gaia-radius-md);
  background: var(--gaia-card);
  color: var(--gaia-foreground);
  font-family: inherit;
  font-size: var(--gaia-text-xs);
  line-height: var(--gaia-text-xs--line-height);
  font-weight: 400;
  text-align: left;
  cursor: pointer;
}
.gaia-select__trigger:focus-visible {
  outline: 2px solid var(--gaia-ring);
  outline-offset: 2px;
}
.gaia-select__trigger[data-popup-open] {
  border-color: var(--gaia-foreground);
}
.gaia-select__trigger[data-disabled] {
  border-color: var(--gaia-muted);
  background: var(--gaia-muted);
  color: var(--gaia-muted-foreground);
  cursor: not-allowed;
}
.gaia-select__trigger[aria-invalid="true"], .gaia-select__trigger[data-invalid] {
  border-color: var(--gaia-destructive);
}
.gaia-select__value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gaia-select__value[data-placeholder] {
  color: var(--gaia-muted-foreground);
}
.gaia-select__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 16px;
  height: 16px;
  color: var(--gaia-muted-foreground);
}
.gaia-select__icon svg {
  display: block;
  width: 16px;
  height: 16px;
}
.gaia-select__content {
  position: relative;
  box-sizing: border-box;
  width: max(10rem, var(--anchor-width, 10rem));
  max-width: min(var(--available-width, 100vw), calc(100vw - 16px));
  max-height: min(20rem, var(--available-height, 20rem));
  overflow: hidden;
  border: 1px solid var(--gaia-border);
  border-radius: var(--gaia-radius-md);
  background: var(--gaia-popover);
  color: var(--gaia-popover-foreground);
  box-shadow: var(--shadow-md);
  transform-origin: var(--transform-origin);
  transition: opacity 100ms ease-out, transform 100ms ease-out;
}
.gaia-select__content[data-starting-style], .gaia-select__content[data-ending-style] {
  opacity: 0;
  transform: scale(.98);
}
.gaia-select__list {
  max-height: min(20rem, var(--available-height, 20rem));
  overflow: auto;
  overscroll-behavior: contain;
  padding: 4px;
  outline: none;
}
.gaia-select__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 32px;
  padding: 6px 10px;
  border: 0;
  border-radius: var(--gaia-radius-sm);
  background: transparent;
  color: var(--gaia-foreground);
  font-size: var(--gaia-text-xs);
  line-height: var(--gaia-text-xs--line-height);
  text-align: left;
  cursor: default;
  user-select: none;
  outline: none;
}
.gaia-select__item[data-highlighted] {
  background: var(--gaia-accent);
  color: var(--gaia-accent-foreground);
}
.gaia-select__item[data-disabled] {
  color: var(--gaia-muted-foreground);
  cursor: not-allowed;
}
.gaia-select__item-text {
  flex: 1;
  min-width: 0;
}
.gaia-select__item-indicator {
  display: grid;
  flex: none;
  place-items: center;
  width: 16px;
  height: 16px;
}
.gaia-select__item-indicator svg {
  width: 14px;
  height: 14px;
}
.gaia-select__group-label {
  padding: 6px 10px 4px;
  color: var(--gaia-muted-foreground);
  font-size: var(--gaia-text-2xs);
  font-weight: var(--gaia-font-weight-semibold);
}
.gaia-select__separator {
  height: 1px;
  margin: 4px;
  background: var(--gaia-border);
}
.gaia-select__scroll-arrow {
  position: absolute;
  z-index: 1;
  inset-inline: 1px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  background: var(--gaia-popover);
  color: var(--gaia-muted-foreground);
}
.gaia-select__content > [data-slot="select-scroll-up-arrow"] {
  inset-block-start: 1px;
  border-radius: var(--gaia-radius-sm) var(--gaia-radius-sm) 0 0;
}
.gaia-select__content > [data-slot="select-scroll-down-arrow"] {
  inset-block-end: 1px;
  border-radius: 0 0 var(--gaia-radius-sm) var(--gaia-radius-sm);
}
.gaia-select__scroll-arrow svg {
  width: 12px;
  height: 12px;
}
.gaia-toolbar-band {
  position: sticky;
  top: calc(-1 * var(--gaia-grid-p));
  z-index: 2;
  margin-top: calc(-1 * var(--gaia-grid-p));
  margin-bottom: 0;
  padding-top: var(--gaia-grid-p);
  padding-bottom: 0;
  background: var(--gaia-surface-ground, var(--gaia-canvas));
  transition: padding-bottom 160ms ease, margin-bottom 160ms ease;
}
.gaia-toolbar-band[data-pinned] {
  padding-bottom: var(--gaia-grid-p);
  margin-bottom: calc(-1 * var(--gaia-grid-p));
}
.gaia-toolbar {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 44px;
  padding: 6px 8px;
  border-radius: var(--gaia-radius-pill);
  background: oklch(from var(--gaia-muted) l c h / .7);
}
.gaia-toolbar__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 320px;
  padding: 5px 12px;
  border-radius: var(--gaia-radius-pill);
  background: var(--gaia-sidebar);
  color: var(--gaia-sidebar-foreground);
  font-size: var(--gaia-text-xs);
  font-weight: var(--gaia-font-weight-semibold);
  white-space: nowrap;
}
.gaia-toolbar__pill--view {
  background: var(--gaia-sidebar);
  color: var(--gaia-sidebar-foreground);
}
.gaia-toolbar__pill-label {
  overflow: hidden;
  text-overflow: ellipsis;
}
.gaia-toolbar__remove {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 18px;
  line-height: 12px;
  cursor: pointer;
}
.gaia-toolbar__spacer {
  flex: 1;
  min-width: 0;
}
.gaia-toolbar__anchor {
  position: relative;
  flex: none;
}
.gaia-toolbar__trigger {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  position: relative;
  border: 0;
  border-radius: var(--gaia-radius-circle);
  background: transparent;
  color: var(--gaia-muted-foreground);
  cursor: pointer;
  transition: background 120ms ease-out;
}
.gaia-toolbar__trigger:focus-visible, .gaia-toolbar__actions-trigger:focus-visible, .gaia-toolbar__remove:focus-visible {
  outline: 2px solid var(--gaia-ring);
  outline-offset: 2px;
}
.gaia-toolbar__trigger[aria-expanded="true"], .gaia-toolbar__trigger[data-popup-open], .gaia-toolbar__trigger:hover {
  background: var(--gaia-card);
}
.gaia-toolbar__dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gaia-primary);
}
.gaia-toolbar__actions-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--gaia-foreground);
  border-radius: var(--gaia-radius-pill);
  background: transparent;
  color: var(--gaia-foreground);
  font-size: var(--gaia-text-xs);
  line-height: var(--gaia-text-xs--line-height);
  font-weight: var(--gaia-font-weight-semibold);
  cursor: pointer;
}
.gaia-toolbar__plus {
  flex-shrink: 0;
}
.gaia-toolbar__positioner {
  z-index: calc(var(--gaia-dialog-z, 29) + 1);
  max-width: min(90vw, 320px);
}
.gaia-toolbar__popover {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 1px;
  width: 280px;
  max-width: min(90vw, 320px);
  max-height: min(340px, var(--available-height, 340px));
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--gaia-border);
  border-radius: var(--gaia-radius-xl);
  background: var(--gaia-popover);
  box-shadow: var(--shadow-md);
}
.gaia-toolbar__menu {
  width: 224px;
  min-width: min(224px, var(--available-width, 224px));
}
.gaia-toolbar__action {
  width: 100%;
  padding: 7px 9px;
  border-radius: var(--gaia-radius-md);
  font-weight: var(--gaia-font-weight-normal);
}
.gaia-toolbar__action-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 15px;
  height: 15px;
}
.gaia-toolbar__action-icon svg {
  width: 15px;
  height: 15px;
}
.gaia-toolbar__action-icon[data-tone="ai"] {
  width: 20px;
  height: 20px;
  border-radius: var(--gaia-radius-circle);
  background: var(--gaia-ai);
  color: var(--gaia-ai-foreground);
}
.gaia-toolbar__action-icon[data-tone="ai"] svg {
  width: 12px;
  height: 12px;
}
.gaia-toolbar__action:hover, .gaia-toolbar__action[data-highlighted] {
  background: var(--gaia-accent);
}
.gaia-toolbar__action[data-disabled] {
  color: var(--gaia-muted-foreground);
  cursor: not-allowed;
}
.gaia-toolbar__action--danger, .gaia-toolbar__action--danger[data-highlighted] {
  color: var(--gaia-destructive);
}
.gaia-toolbar__action--danger[data-disabled] {
  color: var(--gaia-muted-foreground);
}
.gaia-flow-card, .gaia-congrats-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gaia-border);
  border-radius: var(--gaia-radius-xl);
  background: var(--gaia-card);
}
.gaia-flow-card {
  scroll-margin-top: 16px;
  border-color: var(--gaia-card-border);
  background-clip: padding-box;
}
.gaia-flow-card[data-state="inactive"] {
  border-color: var(--gaia-border);
  background: oklch(from var(--gaia-background) l c h / .4);
}
.gaia-flow-card[data-state="inactive"] .gaia-flow-card__body, .gaia-flow-card[data-state="inactive"] .gaia-flow-card__actions {
  opacity: .45;
}
.gaia-flow-card__head-wrap {
  display: flex;
  align-items: center;
}
.gaia-flow-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 22px;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  font: inherit;
}
.gaia-flow-card__head-wrap:has(.gaia-flow-card__info, .gaia-flow-card__control) .gaia-flow-card__head {
  width: auto;
  flex: 1;
}
.gaia-flow-card__head--button {
  cursor: pointer;
}
.gaia-flow-card__head-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.gaia-flow-card__title-line {
  display: flex;
  align-items: center;
  gap: 10px;
}
.gaia-flow-card__optional {
  padding: 2px 8px;
  border-radius: var(--gaia-radius-pill);
  background: var(--gaia-muted);
  color: var(--gaia-foreground);
  font-size: var(--gaia-text-2xs);
  font-weight: var(--gaia-font-weight-semibold);
}
.gaia-flow-card__control, .gaia-flow-card__reason, .gaia-flow-card__chevron {
  margin-left: auto;
  flex: none;
}
.gaia-flow-card__info, .gaia-flow-card__control {
  padding-right: 22px;
}
.gaia-flow-card__reason {
  color: var(--gaia-muted-foreground);
  font-size: var(--gaia-text-xs);
}
.gaia-flow-card__chevron {
  color: var(--gaia-muted-foreground);
  transition: transform .18s;
}
.gaia-flow-card__chevron--open {
  transform: rotate(180deg);
}
.gaia-flow-card__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0 22px 22px;
}
.gaia-flow-card__actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 0 22px 22px;
}
.gaia-flow-subsection {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--gaia-border);
}
.gaia-flow-fields-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gaia-flow-fields {
  display: grid;
  gap: 14px 16px;
}
.gaia-flow-fields[data-columns="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.gaia-flow-fields[data-columns="3"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.gaia-flow-result {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border-radius: var(--gaia-radius-md);
  background: var(--gaia-background);
}
.gaia-flow-alert {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--gaia-radius-md);
  background: oklch(from var(--gaia-warning) l c h / .12);
  color: var(--gaia-warning);
}
.gaia-selection-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gaia-selection-box {
  border: 1px solid var(--gaia-border);
  border-radius: var(--gaia-radius-md);
  background: var(--gaia-card);
}
.gaia-choice {
  border: 1px solid var(--gaia-border);
  background: var(--gaia-card);
}
.gaia-choice[aria-pressed="true"], .gaia-choice[data-selected="true"], .gaia-selection-box[data-selected="true"] {
  border-color: var(--gaia-foreground);
}
.gaia-selection-box__row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
}
.gaia-selection-box__label {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 12px;
  min-width: 0;
  cursor: pointer;
}
.gaia-selection-box__input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--gaia-foreground);
  cursor: pointer;
}
.gaia-selection-box__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  font-size: var(--gaia-text-base);
}
.gaia-selection-box__text span {
  color: var(--gaia-muted-foreground);
  font-size: var(--gaia-text-xs);
}
.gaia-selection-box__choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.gaia-selection-box__aside {
  margin-left: auto;
}
.gaia-selection-box__toggle {
  border: 0;
  background: none;
  color: var(--gaia-muted-foreground);
  cursor: pointer;
}
.gaia-selection-box__detail {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 14px 14px;
}
.gaia-selection-box[data-control] .gaia-selection-box__detail {
  padding-left: 42px;
}
.gaia-congrats-card {
  gap: 16px;
  padding: 22px;
}
.gaia-congrats-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
}
.gaia-congrats-card__eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gaia-muted-foreground);
  font-size: var(--gaia-text-2xs);
  font-weight: var(--gaia-font-weight-semibold);
}
.gaia-congrats-card__title {
  max-width: 880px;
  margin: 4px 0 0;
  color: var(--gaia-foreground);
  font-size: var(--gaia-text-2xl);
  font-weight: var(--gaia-font-weight-semibold);
  line-height: 1.25;
}
.gaia-congrats-card__kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--gaia-border);
  border-radius: var(--gaia-radius-md);
  overflow: hidden;
}
.gaia-congrats-card__kpi {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 12px 14px;
}
.gaia-congrats-card__kpi:not(:nth-child(4n + 1)) {
  border-left: 1px solid var(--gaia-border);
}
.gaia-congrats-card__kpi:nth-child(n + 5) {
  border-top: 1px solid var(--gaia-border);
}
.gaia-congrats-card__notes {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gaia-audit-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 22px;
  border: 1px solid var(--gaia-border);
  border-radius: var(--gaia-radius-xl);
  background: var(--gaia-background);
}
.gaia-audit-card__head {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.gaia-audit-list {
  display: flex;
  flex-direction: column;
}
.gaia-audit-list__entry {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
}
.gaia-audit-list__entry + .gaia-audit-list__entry {
  border-top: 1px solid var(--gaia-border);
}
.gaia-audit-list__line {
  display: flex;
  align-items: center;
  gap: 8px;
}
.gaia-audit-list__label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--gaia-foreground);
  font-size: var(--gaia-text-xs);
  font-weight: var(--gaia-font-weight-semibold);
}
@media (max-width: 1100px) {
  .gaia-congrats-card__kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gaia-congrats-card__kpi {
    border-left: 0 !important;
    border-top: 0 !important;
  }
  .gaia-congrats-card__kpi:nth-child(2n) {
    border-left: 1px solid var(--gaia-border) !important;
  }
  .gaia-congrats-card__kpi:nth-child(n + 3) {
    border-top: 1px solid var(--gaia-border) !important;
  }
}
@media (max-width: 720px) {
  .gaia-flow-fields[data-columns="2"], .gaia-flow-fields[data-columns="3"] {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 640px) {
  .gaia-congrats-card__kpis {
    grid-template-columns: minmax(0, 1fr);
  }
  .gaia-congrats-card__kpi {
    border-left: 0 !important;
    border-top: 0 !important;
  }
  .gaia-congrats-card__kpi + .gaia-congrats-card__kpi {
    border-top: 1px solid var(--gaia-border) !important;
  }
}
@layer base {
  *, *::before, *::after {
    box-sizing: border-box;
  }
  body {
    margin: 0;
    background: var(--gaia-canvas);
    color: var(--gaia-foreground);
    font-family: var(--gaia-font-sans);
    font-optical-sizing: auto;
  }
  [data-slot="button"] {
    border: 0;
    cursor: pointer;
    font-family: inherit;
  }
  [data-slot="input"] {
    font-family: inherit;
  }
  [data-slot="field"][data-invalid] [data-slot="field-description"] {
    display: none;
  }
}
:root {
  --gaia-background: oklch(96.5% 0.004 286);
  --gaia-foreground: oklch(21% 0.053 276);
  --gaia-card: oklch(100% 0 0);
  --gaia-card-foreground: oklch(21% 0.053 276);
  --gaia-popover: oklch(100% 0 0);
  --gaia-popover-foreground: oklch(21% 0.053 276);
  --gaia-primary: oklch(55% 0.22 258);
  --gaia-link-foreground: oklch(50% 0.22 258);
  --gaia-primary-foreground: oklch(100% 0 0);
  --gaia-secondary: oklch(21% 0.053 276);
  --gaia-secondary-foreground: oklch(100% 0 0);
  --gaia-muted: oklch(91% 0.01 276);
  --gaia-muted-foreground: oklch(37% 0.025 275);
  --gaia-accent: oklch(96.5% 0.004 286);
  --gaia-accent-foreground: oklch(21% 0.053 276);
  --gaia-destructive: oklch(59% 0.2 26);
  --gaia-border: oklch(91% 0.01 276);
  --gaia-input: oklch(91% 0.01 276);
  --gaia-ring: oklch(21% 0.053 276);
  --gaia-chart-1: oklch(60% 0.11 195);
  --gaia-chart-2: oklch(68% 0.12 95);
  --gaia-chart-3: oklch(55% 0.13 235);
  --gaia-chart-4: oklch(56.17% 0.1737 339.6);
  --gaia-tree-accent: oklch(39% 0.115 273);
  --gaia-chart-5: oklch(55% 0.1775 277.37);
  --gaia-sidebar: oklch(21% 0.053 276);
  --gaia-sidebar-foreground: oklch(100% 0 0);
  --gaia-sidebar-primary: oklch(44% 0.05 269);
  --gaia-sidebar-primary-foreground: oklch(100% 0 0);
  --gaia-sidebar-accent: oklch(100% 0 0 / 0.08);
  --gaia-sidebar-accent-foreground: oklch(100% 0 0);
  --gaia-sidebar-border: oklch(100% 0 0 / 0.12);
  --gaia-sidebar-ring: oklch(100% 0 0);
  --gaia-success: oklch(53% 0.17 141);
  --gaia-warning: oklch(71% 0.16 60);
  --gaia-badge-success-foreground: oklch(40% 0.13 141);
  --gaia-badge-warning-foreground: oklch(42% 0.12 60);
  --gaia-badge-destructive-foreground: oklch(43% 0.16 26);
  --gaia-badge-info-foreground: oklch(42% 0.18 258);
  --gaia-ai: oklch(70% 0.19 138);
  --gaia-ai-foreground: oklch(100% 0 0);
  --gaia-scope-1: oklch(62% 0.13 285);
  --gaia-scope-2: oklch(55% 0.09 148);
  --gaia-scope-3: oklch(61% 0.12 66);
  --gaia-canvas: var(--gaia-card);
  --gaia-page-surface: var(--gaia-background);
  --gaia-card-border: var(--gaia-border);
  --gaia-grid-p: 12px;
  --gaia-grid-s: 45px;
  --gaia-grid-m: 216px;
  --gaia-grid-l: 324px;
  --gaia-grid-column-max: 400px;
  --gaia-page-grid-max: calc(4 * var(--gaia-grid-column-max) + 3 * var(--gaia-grid-p));
  --gaia-radius: 0.625rem;
  --gaia-radius-sm: calc(var(--gaia-radius) - 4px);
  --gaia-radius-md: calc(var(--gaia-radius) - 2px);
  --gaia-radius-lg: var(--gaia-radius);
  --gaia-radius-xl: calc(var(--gaia-radius) + 4px);
  --gaia-radius-2xl: calc(var(--gaia-radius) * 2);
  --gaia-shadow-rgb: 20 20 40;
  --gaia-shadow-deep-rgb: 0 0 0;
  --gaia-on-dark-rgb: 255 255 255;
  --gaia-illo-surface: white;
  --gaia-font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --gaia-text-2xs: 0.625rem;
  --gaia-text-2xs--line-height: calc(0.875 / 0.625);
  --gaia-text-xs: 0.75rem;
  --gaia-text-xs--line-height: calc(1 / 0.75);
  --gaia-text-sm: 0.875rem;
  --gaia-text-sm--line-height: calc(1.25 / 0.875);
  --gaia-text-base: 1rem;
  --gaia-text-base--line-height: calc(1.5 / 1);
  --gaia-text-lg: 1.125rem;
  --gaia-text-lg--line-height: calc(1.75 / 1.125);
  --gaia-text-xl: 1.25rem;
  --gaia-text-xl--line-height: calc(1.75 / 1.25);
  --gaia-text-2xl: 1.5rem;
  --gaia-text-2xl--line-height: calc(2 / 1.5);
  --gaia-text-3xl: 1.875rem;
  --gaia-text-3xl--line-height: calc(2.25 / 1.875);
  --gaia-text-4xl: 2.25rem;
  --gaia-text-4xl--line-height: calc(2.5 / 2.25);
  --gaia-leading-none: 1;
  --gaia-font-weight-normal: 400;
  --gaia-font-weight-semibold: 500;
  --gaia-radius-pill: 9999px;
  --gaia-radius-circle: 50%;
  --gaia-radius-off-1: 1px;
  --gaia-radius-off-2: 2px;
  --gaia-radius-off-3: 3px;
  --gaia-radius-off-4: 4px;
  --gaia-radius-off-5: 5px;
  --gaia-radius-off-6: 6px;
  --gaia-radius-off-7: 7px;
  --gaia-radius-off-9: 9px;
  --gaia-radius-off-11: 11px;
  --gaia-radius-off-12: 12px;
  --gaia-radius-off-13: 13px;
  --gaia-radius-off-14: 14px;
  --gaia-radius-off-18: 18px;
  --gaia-radius-off-20: 20px;
  --accent: var(--gaia-accent);
  --accent-foreground: var(--gaia-accent-foreground);
  --ai: var(--gaia-ai);
  --ai-foreground: var(--gaia-ai-foreground);
  --background: var(--gaia-background);
  --badge-destructive-foreground: var(--gaia-badge-destructive-foreground);
  --badge-info-foreground: var(--gaia-badge-info-foreground);
  --badge-success-foreground: var(--gaia-badge-success-foreground);
  --badge-warning-foreground: var(--gaia-badge-warning-foreground);
  --border: var(--gaia-border);
  --canvas: var(--gaia-canvas);
  --card: var(--gaia-card);
  --card-border: var(--gaia-card-border);
  --card-foreground: var(--gaia-card-foreground);
  --chart-1: var(--gaia-chart-1);
  --chart-2: var(--gaia-chart-2);
  --chart-3: var(--gaia-chart-3);
  --chart-4: var(--gaia-chart-4);
  --chart-5: var(--gaia-chart-5);
  --destructive: var(--gaia-destructive);
  --font-sans: var(--gaia-font-sans);
  --font-weight-normal: var(--gaia-font-weight-normal);
  --font-weight-semibold: var(--gaia-font-weight-semibold);
  --foreground: var(--gaia-foreground);
  --grid-column-max: var(--gaia-grid-column-max);
  --grid-l: var(--gaia-grid-l);
  --grid-m: var(--gaia-grid-m);
  --grid-p: var(--gaia-grid-p);
  --grid-s: var(--gaia-grid-s);
  --illo-surface: var(--gaia-illo-surface);
  --input: var(--gaia-input);
  --leading-none: var(--gaia-leading-none);
  --link-foreground: var(--gaia-link-foreground);
  --muted: var(--gaia-muted);
  --muted-foreground: var(--gaia-muted-foreground);
  --on-dark-rgb: var(--gaia-on-dark-rgb);
  --page-grid-max: var(--gaia-page-grid-max);
  --page-surface: var(--gaia-page-surface);
  --popover: var(--gaia-popover);
  --popover-foreground: var(--gaia-popover-foreground);
  --primary: var(--gaia-primary);
  --primary-foreground: var(--gaia-primary-foreground);
  --radius: var(--gaia-radius);
  --radius-2xl: var(--gaia-radius-2xl);
  --radius-circle: var(--gaia-radius-circle);
  --radius-lg: var(--gaia-radius-lg);
  --radius-md: var(--gaia-radius-md);
  --radius-off-1: var(--gaia-radius-off-1);
  --radius-off-11: var(--gaia-radius-off-11);
  --radius-off-12: var(--gaia-radius-off-12);
  --radius-off-13: var(--gaia-radius-off-13);
  --radius-off-14: var(--gaia-radius-off-14);
  --radius-off-18: var(--gaia-radius-off-18);
  --radius-off-2: var(--gaia-radius-off-2);
  --radius-off-20: var(--gaia-radius-off-20);
  --radius-off-3: var(--gaia-radius-off-3);
  --radius-off-4: var(--gaia-radius-off-4);
  --radius-off-5: var(--gaia-radius-off-5);
  --radius-off-6: var(--gaia-radius-off-6);
  --radius-off-7: var(--gaia-radius-off-7);
  --radius-off-9: var(--gaia-radius-off-9);
  --radius-pill: var(--gaia-radius-pill);
  --radius-sm: var(--gaia-radius-sm);
  --radius-xl: var(--gaia-radius-xl);
  --ring: var(--gaia-ring);
  --scope-1: var(--gaia-scope-1);
  --scope-2: var(--gaia-scope-2);
  --scope-3: var(--gaia-scope-3);
  --secondary: var(--gaia-secondary);
  --secondary-foreground: var(--gaia-secondary-foreground);
  --shadow-deep-rgb: var(--gaia-shadow-deep-rgb);
  --shadow-rgb: var(--gaia-shadow-rgb);
  --sidebar: var(--gaia-sidebar);
  --sidebar-accent: var(--gaia-sidebar-accent);
  --sidebar-accent-foreground: var(--gaia-sidebar-accent-foreground);
  --sidebar-border: var(--gaia-sidebar-border);
  --sidebar-foreground: var(--gaia-sidebar-foreground);
  --sidebar-primary: var(--gaia-sidebar-primary);
  --sidebar-primary-foreground: var(--gaia-sidebar-primary-foreground);
  --sidebar-ring: var(--gaia-sidebar-ring);
  --success: var(--gaia-success);
  --text-2xl: var(--gaia-text-2xl);
  --text-2xl--line-height: var(--gaia-text-2xl--line-height);
  --text-2xs: var(--gaia-text-2xs);
  --text-2xs--line-height: var(--gaia-text-2xs--line-height);
  --text-3xl: var(--gaia-text-3xl);
  --text-3xl--line-height: var(--gaia-text-3xl--line-height);
  --text-4xl: var(--gaia-text-4xl);
  --text-4xl--line-height: var(--gaia-text-4xl--line-height);
  --text-base: var(--gaia-text-base);
  --text-base--line-height: var(--gaia-text-base--line-height);
  --text-lg: var(--gaia-text-lg);
  --text-lg--line-height: var(--gaia-text-lg--line-height);
  --text-sm: var(--gaia-text-sm);
  --text-sm--line-height: var(--gaia-text-sm--line-height);
  --text-xl: var(--gaia-text-xl);
  --text-xl--line-height: var(--gaia-text-xl--line-height);
  --text-xs: var(--gaia-text-xs);
  --text-xs--line-height: var(--gaia-text-xs--line-height);
  --warning: var(--gaia-warning);
}
.gaia-flow {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.gaia-flow-card__validation {
  padding: 0 22px 12px;
  color: var(--gaia-destructive);
  font-size: var(--gaia-text-xs);
}
.gaia-flow-card__actions button {
  border-radius: var(--gaia-radius-pill);
}
.gaia-toolbar__popover > input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not(.gaia-panel-search__input) {
  box-sizing: border-box;
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--gaia-input);
  border-radius: var(--gaia-radius-md);
  background: var(--gaia-card);
  color: var(--gaia-foreground);
}
.gaia-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.gaia-panel-row strong {
  font-weight: var(--gaia-font-weight-semibold);
}
.gaia-dialog__backdrop {
  position: fixed;
  inset: 0;
  z-index: calc(var(--gaia-dialog-z, 200) - 1);
  background: oklch(from var(--gaia-foreground) l c h / .28);
  transition: opacity 120ms ease-out;
}
.gaia-dialog__backdrop[data-placement="end"] {
  background: oklch(from var(--gaia-foreground) l c h / .18);
}
.gaia-dialog__backdrop[data-starting-style], .gaia-dialog__backdrop[data-ending-style] {
  opacity: 0;
}
.gaia-dialog__viewport {
  position: fixed;
  inset: 0;
  z-index: var(--gaia-dialog-z, 200);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.gaia-dialog__viewport[data-placement="end"] {
  align-items: stretch;
  justify-content: flex-end;
  padding: 0;
}
.gaia-dialog__surface {
  display: flex;
  flex-direction: column;
  width: min(var(--gaia-dialog-width, 560px), calc(100vw - 48px));
  height: var(--gaia-dialog-height);
  max-height: calc(100vh - 48px);
  overflow: hidden;
  border: 1px solid var(--gaia-border);
  border-radius: var(--gaia-radius-xl);
  background: var(--gaia-card);
  box-shadow: var(--shadow-md);
  transition: opacity 140ms ease-out, transform 140ms ease-out;
}
.gaia-dialog__surface:focus-visible {
  outline: 2px solid var(--gaia-ring);
  outline-offset: 2px;
}
.gaia-dialog__surface[data-starting-style], .gaia-dialog__surface[data-ending-style] {
  opacity: 0;
  transform: scale(.97);
}
.gaia-dialog__surface[data-placement="end"] {
  width: min(var(--gaia-dialog-width, 480px), calc(100vw - 28px));
  height: 100%;
  max-height: none;
  border: 0;
  border-left: 1px solid var(--gaia-border);
  border-radius: 0;
}
.gaia-dialog__surface[data-placement="end"][data-starting-style], .gaia-dialog__surface[data-placement="end"][data-ending-style] {
  opacity: 1;
  transform: translateX(100%);
}
.gaia-dialog__head {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid var(--gaia-border);
}
.gaia-dialog__heading {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.gaia-dialog__title {
  font-size: var(--gaia-text-base);
  line-height: var(--gaia-text-base--line-height);
}
.gaia-dialog__description {
  margin: 0;
  color: var(--gaia-muted-foreground);
  font-size: var(--gaia-text-xs);
  line-height: var(--gaia-text-xs--line-height);
}
.gaia-dialog__head .gaia-dialog__eyebrow + .gaia-dialog__title {
  margin-top: -2px;
}
.gaia-dialog__close {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: -4px -6px -4px 0;
  border: 0;
  border-radius: var(--gaia-radius-pill);
  background: transparent;
  color: var(--gaia-foreground);
  cursor: pointer;
}
.gaia-dialog__close svg {
  width: 16px;
  height: 16px;
}
.gaia-dialog__close:hover {
  background: var(--gaia-muted);
  color: var(--gaia-foreground);
}
.gaia-dialog__close:focus-visible {
  outline: 2px solid var(--gaia-ring);
  outline-offset: 2px;
}
.gaia-dialog__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
  padding: 20px;
  overflow: auto;
}
.gaia-dialog__surface:not([data-placement="end"]):not([data-sized]) .gaia-dialog__body {
  flex: 0 1 auto;
}
.gaia-dialog__aside {
  flex: none;
}
.gaia-dialog__foot {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 20px;
  border-top: 1px solid var(--gaia-border);
}
@media (prefers-reduced-motion: reduce) {
  .gaia-dialog__backdrop, .gaia-dialog__surface {
    transition: none;
  }
  .gaia-dialog__surface[data-starting-style], .gaia-dialog__surface[data-ending-style] {
    transform: none;
  }
}
.gaia-info__intro {
  margin: 0;
  line-height: 1.6;
  color: var(--gaia-muted-foreground);
}
.gaia-info__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
  margin-top: 8px;
  align-items: start;
}
.gaia-info__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--gaia-border);
  border-radius: var(--gaia-radius-xl);
  background: var(--gaia-card);
}
.gaia-info__head {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}
.gaia-info__head:disabled {
  cursor: default;
}
.gaia-info__head:focus-visible {
  outline: 2px solid var(--gaia-ring);
  outline-offset: 2px;
}
.gaia-info__icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--gaia-radius-md);
  background: var(--gaia-accent);
  color: var(--gaia-foreground);
}
.gaia-info__name {
  flex: 1;
  min-width: 0;
  font-size: var(--gaia-text-base);
  line-height: var(--gaia-text-base--line-height);
  font-weight: var(--gaia-font-weight-semibold);
  color: var(--gaia-foreground);
}
.gaia-info__chevron {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--gaia-muted-foreground);
  transition: transform 160ms ease-out;
}
.gaia-info__chevron[data-open] {
  transform: rotate(180deg);
}
.gaia-info__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: var(--gaia-text-xs);
  line-height: 1.5;
  color: var(--gaia-muted-foreground);
}
.gaia-info__details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 2px 0 0;
  padding-left: 18px;
}
.gaia-info__block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--gaia-border);
}
.gaia-info__block-title {
  margin: 2px 0 0;
  font-size: var(--gaia-text-base);
  font-weight: var(--gaia-font-weight-semibold);
  color: var(--gaia-foreground);
}
@media (prefers-reduced-motion: reduce) {
  .gaia-info__chevron {
    transition: none;
  }
}
.gaia-dialog__viewport.gaia-page-modal {
  align-items: stretch;
  padding: 0;
}
.gaia-dialog__backdrop.gaia-page-modal-backdrop {
  background: transparent;
}
.gaia-page-modal .gaia-dialog__surface {
  position: fixed;
  inset: 0 0 0 var(--gaia-shell-sidebar-width, 0px);
  width: auto;
  min-height: 100vh;
  max-height: none;
  height: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: var(--gaia-background);
  box-shadow: none;
  overflow-y: auto;
  transform: none;
}
.gaia-page-modal .gaia-dialog__head {
  height: 80px;
  min-height: 80px;
  padding: 14px 28px;
  border-bottom: 0;
  background: var(--gaia-background);
  position: sticky;
  top: 0;
  z-index: 2;
}
.gaia-page-modal .gaia-dialog__title {
  font-size: 24px;
  line-height: 1.2;
}
.gaia-page-modal .gaia-dialog__body {
  width: min(880px, calc(100% - 64px));
  margin: 16px auto 60px;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  flex: none;
}
.gaia-page-modal .gaia-dialog__foot {
  position: fixed;
  top: 22px;
  right: 100px;
  z-index: 3;
  padding: 0;
  border: 0;
  background: transparent;
}
.gaia-page-modal .gaia-dialog__foot > span:first-child {
  display: none;
}
.gaia-page-modal .gaia-dialog__foot button {
  border-radius: var(--gaia-radius-pill);
  padding: 8px 14px;
}
.gaia-page-modal .gaia-dialog__foot button.btn-action {
  background: var(--gaia-primary);
  color: var(--gaia-primary-foreground);
}
.gaia-page-modal .gaia-dialog__foot button.btn-outline {
  background: var(--gaia-card);
  color: var(--gaia-primary);
  border: 1px solid var(--gaia-primary);
}
.gaia-page-modal .gaia-dialog__aside, .gaia-page-modal__steps {
  position: fixed;
  left: calc(var(--gaia-shell-sidebar-width, 0px) + 26px);
  top: 108px;
  z-index: 3;
  width: 188px;
}
.gaia-page-modal [data-slot='flow-card'] {
  scroll-margin-top: 106px;
}
.gaia-page-modal:has(.gaia-dialog__aside) .gaia-dialog__body {
  width: min(880px, calc(100% - 268px));
  margin: 16px 32px 64px 236px;
}
.gaia-authoring-flow {
  display: grid;
  grid-template-columns: 188px minmax(0, 880px);
  align-items: start;
  gap: 32px;
  padding-bottom: 64px;
}
.gaia-authoring-flow__rail {
  position: sticky;
  top: 8px;
}
.gaia-authoring-flow__content {
  min-width: 0;
}
.gaia-authoring-flow__section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 26px;
  scroll-margin-top: 24px;
}
.gaia-editor-page {
  position: fixed;
  inset: 0 0 0 var(--gaia-shell-sidebar-width, 0px);
  z-index: 150;
  overflow-y: auto;
  background: var(--gaia-background);
}
.gaia-editor-page__content {
  position: relative;
  min-height: 100vh;
  margin: 0 32px 0 27px;
  padding: 16px 0 48px;
}
.gaia-editor-page__header {
  height: 80px;
}
.gaia-editor-page__header span {
  color: var(--gaia-muted-foreground);
  font-size: 12px;
}
.gaia-editor-page__header h2 {
  margin: 2px 0 0;
  color: var(--gaia-foreground);
  font-size: 24px;
}
.gaia-editor-page__layout {
  display: grid;
  grid-template-columns: 188px minmax(0, 880px);
  gap: 32px;
  align-items: start;
}
.gaia-editor-page__steps {
  position: sticky;
  top: 24px;
}
.gaia-editor-cards {
  min-width: 0;
}
.gaia-editor-cards > section {
  scroll-margin-top: 24px;
}
.gaia-editor-page .gaia-editor-actions {
  position: fixed !important;
  top: 22px;
  right: 112px;
  bottom: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
.gaia-editor-actions .btn {
  border-radius: var(--gaia-radius-pill);
}
.gaia-editor-actions [data-slot="button"] {
  margin-left: 0 !important;
}
.gaia-editor-actions [data-slot="button"][data-variant="default"] {
  order: 2;
}
.gaia-editor-actions > .caption {
  max-width: 180px;
}
@media (max-width: 900px) {
  .gaia-page-modal .gaia-dialog__aside, .gaia-page-modal__steps {
    display: none;
  }
  .gaia-page-modal .gaia-dialog__body, .gaia-page-modal:has(.gaia-dialog__aside) .gaia-dialog__body {
    width: calc(100% - 32px);
    margin: 16px auto 80px;
  }
  .gaia-page-modal .gaia-dialog__foot {
    top: auto;
    bottom: 16px;
    right: 24px;
  }
  .gaia-editor-page__layout, .gaia-authoring-flow {
    grid-template-columns: minmax(0, 1fr);
  }
  .gaia-editor-page__steps, .gaia-authoring-flow__rail {
    position: static;
  }
  .gaia-editor-page__steps nav, .gaia-authoring-flow__rail nav {
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 12px !important;
  }
}
.gaia-badge--compact {
  font-size: var(--gaia-text-2xs);
  line-height: 1.3333333333;
  gap: 5px;
  padding: 2px 8px;
}
.gaia-badge--compact .gaia-badge-dot {
  width: 5px;
  height: 5px;
}
.gaia-badge--compact[data-variant="success"] {
  color: var(--gaia-success);
}
.gaia-badge--compact[data-variant="info"] {
  color: var(--gaia-primary);
}
.gaia-badge--compact[data-variant="warning"] {
  color: var(--gaia-warning);
  background: oklch(from var(--gaia-warning) l c h / .14);
}
.gaia-data-table {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--gaia-border);
  border-radius: var(--gaia-radius-xl);
  background: var(--gaia-card);
}
.gaia-data-table__scroll {
  overflow: auto;
  max-height: var(--gaia-scroll-cap-override, 620px);
}
.gaia-data-table table {
  width: 100%;
  table-layout: auto;
  border-collapse: collapse;
}
.gaia-data-table th {
  box-sizing: border-box;
  height: 64px;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--gaia-card);
  border-bottom: 1px solid var(--gaia-border);
  text-align: left;
}
.gaia-data-table th button, .gaia-data-table__heading {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  height: 100%;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--gaia-muted-foreground);
  font-size: var(--gaia-text-2xs);
  line-height: 1.3333333333;
  font-weight: var(--gaia-font-weight-semibold);
  white-space: nowrap;
}
.gaia-data-table th button {
  cursor: pointer;
}
.gaia-data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--gaia-border);
  vertical-align: middle;
  white-space: nowrap;
  font-size: var(--gaia-text-xs);
  line-height: var(--gaia-text-xs--line-height);
  color: var(--gaia-muted-foreground);
  font-variant-numeric: tabular-nums;
}
.gaia-data-table td:first-child {
  border-left: 2px solid transparent;
}
.gaia-data-table tr[data-selected="true"] {
  background: oklch(from var(--gaia-foreground) l c h / .06);
}
.gaia-data-table tr[data-selected="true"] td:first-child {
  border-left-color: var(--gaia-foreground);
}
.gaia-data-table tr[role="button"] {
  cursor: pointer;
}
.gaia-data-table tr[role="button"]:hover {
  background: oklch(from var(--gaia-foreground) l c h / .04);
}
.gaia-data-table tr[role="button"]:focus-visible {
  outline: 2px solid var(--gaia-foreground);
  outline-offset: -2px;
}
.gaia-data-table__empty {
  margin: 0;
  padding: 16px 12px;
  font-size: var(--gaia-text-xs);
  color: var(--gaia-muted-foreground);
}
.gaia-forecast-layout {
  display: grid;
  grid-template-columns: 206px minmax(0, 1fr);
  gap: 12px;
  height: 100%;
  min-height: 380px;
}
.gaia-forecast-layout__stages {
  display: grid;
  grid-auto-rows: 1fr;
  gap: 8px;
}
.gaia-forecast-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px;
  border: 1px solid var(--gaia-border);
  border-radius: var(--gaia-radius-xl);
  background: oklch(from var(--gaia-muted) l c h / .18);
}
.gaia-forecast-stage[data-selected="true"] {
  border-color: var(--gaia-foreground);
}
.gaia-forecast-stage__select {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.gaia-forecast-stage__label {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--gaia-muted-foreground);
  font-size: var(--gaia-text-2xs);
  font-weight: var(--gaia-font-weight-semibold);
}
.gaia-forecast-stage__swatch {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  flex: none;
}
.gaia-forecast-stage strong {
  font-size: var(--gaia-text-lg);
  line-height: 1.35;
  font-weight: var(--gaia-font-weight-semibold);
  color: var(--gaia-foreground);
  font-variant-numeric: tabular-nums;
}
.gaia-forecast-stage small {
  font-size: var(--gaia-text-2xs);
  font-weight: 400;
  color: var(--gaia-muted-foreground);
}
.gaia-forecast-stage__check {
  position: absolute;
  right: 10px;
  top: 50%;
  width: 9px;
  height: 9px;
  border: 1px solid var(--gaia-border);
  border-radius: 50%;
  font-size: 7px;
  line-height: 7px;
  color: var(--gaia-foreground);
}
.gaia-forecast-stage[data-selected="true"] .gaia-forecast-stage__check {
  border-color: var(--gaia-foreground);
}
.gaia-forecast-stage__action {
  display: flex;
  margin-top: 2px;
}
.gaia-forecast-stage__action a, .gaia-forecast-stage__action button {
  display: inline-flex;
  align-items: center;
  padding: 0 6px;
  border: 1px solid var(--gaia-border);
  border-radius: 999px;
  color: var(--gaia-foreground);
  background: var(--gaia-card);
  font-size: var(--gaia-text-2xs);
  line-height: 1.3333333333;
  font-weight: var(--gaia-font-weight-semibold);
  cursor: pointer;
}
.gaia-forecast-stage__connector {
  position: absolute;
  bottom: -11px;
  left: calc(50% - 8px);
  z-index: 1;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 1px solid var(--gaia-border);
  border-radius: 50%;
  background: var(--gaia-card);
  color: var(--gaia-muted-foreground);
  font-size: 12px;
}
.gaia-forecast-layout__plot {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 12px;
  border: 1px solid var(--gaia-border);
  border-radius: var(--gaia-radius-xl);
  background: var(--gaia-card);
}
@media (max-width: 600px) {
  .gaia-forecast-layout {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
  }
  .gaia-forecast-layout__stages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gaia-forecast-stage__connector {
    display: none;
  }
}
.gaia-forecast-chart {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 390px;
}
.gaia-forecast-chart__canvas {
  flex: 1;
  min-height: 340px;
  position: relative;
}
.gaia-forecast-chart__canvas svg {
  display: block;
  cursor: crosshair;
}
.gaia-forecast-chart__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding-top: 8px;
  font-size: var(--gaia-text-xs);
  color: var(--gaia-muted-foreground);
}
.gaia-forecast-chart__legend > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.gaia-forecast-chart__legend-mark {
  width: 12px;
  height: 0;
  border-top: 2px solid currentColor;
}
.gaia-forecast-chart__legend-mark[data-type="reference"] {
  border-top-style: dashed;
}
.gaia-forecast-chart__legend-mark[data-type="area"] {
  height: 8px;
  border: 0;
  opacity: .25;
}
.gaia-forecast-chart__tooltip {
  position: absolute;
  top: 12px;
  right: 12px;
}
.gaia-tree-node {
  position: relative;
  background: var(--gaia-card);
  border: 1.5px solid var(--gaia-border);
  border-radius: 10px;
  padding: 8px 12px;
  min-width: 132px;
  max-width: 220px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: border-color 150ms, box-shadow 150ms;
}
.gaia-tree-node[data-selected="true"] {
  border-color: var(--gaia-tree-accent);
  box-shadow: 0 6px 18px -10px var(--gaia-tree-accent);
}
.gaia-tree-node[data-dimmed="true"] {
  opacity: .5;
}
.gaia-tree-node:hover {
  border-color: var(--gaia-tree-accent);
}
.gaia-tree-node__icon {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--gaia-accent);
  color: var(--gaia-tree-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.gaia-tree-node[data-selected="true"] .gaia-tree-node__icon {
  background: var(--gaia-tree-accent);
  color: var(--gaia-sidebar-foreground);
}
.gaia-tree-node__label {
  color: var(--gaia-foreground);
  font-weight: var(--gaia-font-weight-semibold);
}
.gaia-tree-node__kind {
  padding-left: 26px;
  font-size: 10.5px;
  color: var(--gaia-muted-foreground);
}
.gaia-editor-page__header-actions {
  position: fixed;
  top: 20px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
@keyframes gaia-chart-card-attention {
  0% {
    box-shadow: 0 0 0 0 oklch(from var(--gaia-ai) l c h / 0.5);
    transform: scale(1);
  }
  35% {
    transform: scale(1.15);
  }
  70% {
    box-shadow: 0 0 0 8px oklch(from var(--gaia-ai) l c h / 0);
    transform: scale(1);
  }
  100% {
    box-shadow: 0 0 0 0 oklch(from var(--gaia-ai) l c h / 0);
    transform: scale(1);
  }
}
.gaia-chart-card__attention {
  animation: gaia-chart-card-attention 1.2s ease-out 2;
}
@media (prefers-reduced-motion: reduce) {
  .gaia-chart-card__attention {
    animation: none;
  }
}
.gaia-info-hint {
  font: inherit;
  width: 1.333em;
  height: 1.333em;
  padding: 0;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  border: none;
  border-radius: 9999px;
  background: var(--gaia-muted);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in oklab, var(--gaia-muted) 60%, transparent);
  }
  color: var(--gaia-muted-foreground);
  cursor: pointer;
  transition: background 200ms, color 200ms;
}
.gaia-info-hint > * {
  flex-shrink: 0;
}
.gaia-info-hint:hover {
  background: var(--gaia-muted);
  color: var(--gaia-foreground);
}
.gaia-info-hint__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  line-height: 1.55;
  color: var(--gaia-muted-foreground);
}
.gaia-info-hint__body p {
  margin: 0;
}
.gaia-info-hint__body b, .gaia-info-hint__body strong {
  color: var(--gaia-foreground);
}
.gaia-option-row__heading {
  display: block;
  padding: 8px 9px 4px;
  color: var(--gaia-muted-foreground);
  font-size: var(--gaia-text-xs);
  line-height: var(--gaia-text-xs--line-height);
  font-weight: var(--gaia-font-weight-semibold);
}
.gaia-option-row {
  box-sizing: border-box;
  font: inherit;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 28px;
  padding: 6px 9px;
  border: 0;
  border-radius: var(--gaia-radius-lg);
  text-align: left;
  cursor: pointer;
  background: transparent;
}
.gaia-option-row[data-selected] {
  background: var(--gaia-muted);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in oklab, var(--gaia-muted) 60%, transparent);
  }
}
.gaia-option-row:hover:not(:disabled) {
  background: var(--gaia-accent);
}
.gaia-option-row:focus-visible {
  outline: 2px solid var(--gaia-ring);
  outline-offset: -2px;
}
.gaia-option-disclosure:focus-visible .gaia-option-row {
  outline: 2px solid var(--gaia-ring);
  outline-offset: -2px;
}
.gaia-option-disclosure:hover .gaia-option-row__label, .gaia-option-disclosure:focus .gaia-option-row__label {
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
}
.gaia-option-row:disabled {
  cursor: default;
  opacity: .55;
}
.gaia-option-row__check {
  box-sizing: border-box;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  border-radius: 4px;
  border: 1px solid var(--gaia-border);
  background: var(--gaia-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gaia-primary-foreground);
}
.gaia-option-row__check[data-exclusive] {
  border-radius: var(--gaia-radius-circle);
}
.gaia-option-row__check[data-filled] {
  border-color: var(--gaia-foreground);
  background: var(--gaia-foreground);
}
.gaia-option-row__check svg {
  width: 9px;
  height: 9px;
}
.gaia-option-row__swatch {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
}
.gaia-option-row__label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  line-height: 16px;
}
.gaia-panel-search {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  margin: 2px 3px 4px;
  padding: 0 10px;
  border: 1px solid var(--gaia-input);
  border-radius: var(--gaia-radius-md);
  background: var(--gaia-card);
}
.gaia-panel-search:focus-within {
  outline: 2px solid var(--gaia-ring);
  outline-offset: 2px;
}
.gaia-panel-search__icon {
  flex: none;
  color: var(--gaia-muted-foreground);
}
.gaia-panel-search__input {
  box-sizing: border-box;
  appearance: none;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--gaia-foreground);
  font: inherit;
  font-size: var(--gaia-text-xs);
  line-height: var(--gaia-text-xs--line-height);
}
.gaia-panel-search__input::placeholder {
  color: var(--gaia-muted-foreground);
  opacity: 1;
}
.gaia-tooltip__positioner {
  z-index: calc(var(--gaia-dialog-z, 200) + 800);
}
.gaia-tooltip {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  max-width: min(280px, calc(100vw - 16px));
  padding: 4px 8px;
  border-radius: var(--gaia-radius-md);
  background: var(--gaia-foreground);
  color: var(--gaia-background);
  font-size: var(--gaia-text-2xs);
  line-height: var(--gaia-text-2xs--line-height);
  font-weight: var(--gaia-font-weight-normal);
  overflow-wrap: anywhere;
  pointer-events: none;
  transition: opacity 100ms ease-out;
}
.gaia-tooltip[data-starting-style], .gaia-tooltip[data-ending-style] {
  opacity: 0;
}
.gaia-checkbox {
  box-sizing: border-box;
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--gaia-input);
  border-radius: 4px;
  background: var(--gaia-card);
  color: var(--gaia-card);
  cursor: pointer;
  outline: none;
  transition: background 100ms ease-out, border-color 100ms ease-out;
}
.gaia-checkbox:hover {
  border-color: var(--gaia-muted-foreground);
}
.gaia-checkbox[data-checked], .gaia-checkbox[data-indeterminate] {
  border-color: var(--gaia-foreground);
  background: var(--gaia-foreground);
}
.gaia-checkbox:focus-visible {
  outline: 2px solid var(--gaia-ring);
  outline-offset: 2px;
}
.gaia-checkbox[data-disabled] {
  opacity: .5;
  cursor: not-allowed;
}
.gaia-checkbox[data-disabled]:hover {
  border-color: var(--gaia-input);
}
.gaia-checkbox[data-checked][data-disabled]:hover, .gaia-checkbox[data-indeterminate][data-disabled]:hover {
  border-color: var(--gaia-foreground);
}
.gaia-checkbox[aria-invalid="true"], .gaia-checkbox[data-invalid] {
  border-color: var(--gaia-destructive);
}
.gaia-checkbox__indicator {
  display: grid;
  place-items: center;
}
.gaia-checkbox__check {
  display: block;
  width: 12px;
  height: 12px;
}
.gaia-checkbox__dash {
  display: none;
  width: 8px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}
.gaia-checkbox[data-indeterminate] .gaia-checkbox__check {
  display: none;
}
.gaia-checkbox[data-indeterminate] .gaia-checkbox__dash {
  display: block;
}
.gaia-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gaia-foreground);
  font-size: var(--gaia-text-xs);
  line-height: var(--gaia-text-xs--line-height);
  font-weight: var(--gaia-font-weight-normal);
  cursor: pointer;
}
.gaia-checkbox-label:has([data-disabled]) {
  color: var(--gaia-muted-foreground);
  cursor: not-allowed;
}
.gaia-placeholder {
  --gaia-placeholder-fill: var(--gaia-card);
  box-sizing: border-box;
  display: block;
  width: 100%;
  height: 96px;
  border: 1px solid var(--gaia-card-border);
  border-radius: var(--gaia-radius-xl);
  background: var(--gaia-placeholder-fill);
  background-clip: padding-box;
  animation: gaia-placeholder-pulse 2s ease-in-out infinite;
}
[data-surface="white"] .gaia-placeholder, .gaia-placeholder[data-shape="line"], .gaia-placeholder[data-shape="circle"] {
  --gaia-placeholder-fill: var(--gaia-muted);
  border-color: transparent;
}
.gaia-placeholder[data-shape="line"] {
  height: 12px;
  border-radius: var(--gaia-radius-pill);
}
.gaia-placeholder[data-shape="circle"] {
  width: 24px;
  height: 24px;
  border-radius: var(--gaia-radius-circle);
}
.gaia-placeholder-group {
  display: contents;
}
.gaia-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
@keyframes gaia-placeholder-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: .5;
  }
}
@layer components {
  .gaia-numeral, .numeral {
    font-size: var(--gaia-text-2xl);
    line-height: var(--gaia-leading-none);
    font-weight: var(--gaia-font-weight-semibold);
    font-variant-numeric: tabular-nums;
  }
}
.gaia-kpi-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--gaia-card-border);
  border-radius: var(--gaia-radius-xl);
  background: var(--gaia-card);
  background-clip: padding-box;
  color: var(--gaia-foreground);
}
.gaia-kpi-card__label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--gaia-muted-foreground);
  font-size: var(--gaia-text-xs);
  line-height: var(--gaia-text-xs--line-height);
  font-weight: var(--gaia-font-weight-semibold);
}
.gaia-kpi-card__label-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gaia-kpi-card__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 14px;
  height: 14px;
}
.gaia-kpi-card__icon svg {
  width: 14px;
  height: 14px;
}
.gaia-kpi-card__value {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-bottom: .125em;
  margin-bottom: -.125em;
}
.gaia-kpi-card__caption {
  color: var(--gaia-muted-foreground);
  font-size: var(--gaia-text-xs);
  line-height: var(--gaia-text-xs--line-height);
}
.gaia-kpi-card[data-tone="positive"] .gaia-kpi-card__value, .gaia-kpi-card[data-tone="positive"] .gaia-kpi-card__icon {
  color: var(--gaia-success);
}
.gaia-kpi-card[data-tone="negative"] .gaia-kpi-card__value, .gaia-kpi-card[data-tone="negative"] .gaia-kpi-card__icon {
  color: var(--gaia-destructive);
}
.gaia-tabs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.gaia-tabs__list {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.gaia-tabs__list[data-variant="default"] {
  gap: 2px;
  padding: 3px;
  border-radius: var(--gaia-radius-lg);
  background: var(--gaia-muted);
}
.gaia-tabs__list[data-variant="line"] {
  gap: 4px;
  width: 100%;
  box-shadow: inset 0 -1px 0 var(--gaia-border);
}
.gaia-tabs__item {
  position: relative;
  display: inline-flex;
  flex: none;
  align-items: center;
}
.gaia-tabs__tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  border: 0;
  background: transparent;
  color: var(--gaia-muted-foreground);
  font: inherit;
  font-size: var(--gaia-text-xs);
  line-height: var(--gaia-text-xs--line-height);
  font-weight: var(--gaia-font-weight-normal);
  white-space: nowrap;
  cursor: pointer;
  outline: none;
  transition: color 120ms ease-out;
}
.gaia-tabs__tab svg {
  flex: none;
  width: 14px;
  height: 14px;
}
.gaia-tabs__tab:hover, .gaia-tabs__tab[data-active] {
  color: var(--gaia-secondary);
}
.gaia-tabs__tab:focus-visible {
  outline: 2px solid var(--gaia-ring);
  outline-offset: -2px;
  border-radius: var(--gaia-radius-md);
}
.gaia-tabs__tab[data-disabled] {
  opacity: .5;
  cursor: not-allowed;
}
.gaia-tabs__tab[data-disabled]:hover {
  color: var(--gaia-muted-foreground);
}
.gaia-tabs__list[data-variant="default"] .gaia-tabs__item {
  border-radius: var(--gaia-radius-md);
}
.gaia-tabs__list[data-variant="default"] .gaia-tabs__item:has([data-active]) {
  background: var(--gaia-card);
  box-shadow: var(--shadow-sm);
}
.gaia-tabs__list[data-variant="default"] .gaia-tabs__tab {
  padding: 4px 12px;
}
.gaia-tabs__list[data-variant="line"] .gaia-tabs__tab {
  padding: 8px 12px 10px;
  font-size: var(--gaia-text-base);
  line-height: var(--gaia-text-base--line-height);
}
.gaia-tabs__list[data-variant="line"] .gaia-tabs__tab[data-active] {
  font-weight: var(--gaia-font-weight-semibold);
}
.gaia-tabs__list[data-variant="line"] .gaia-tabs__item::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  background: var(--gaia-secondary);
  opacity: 0;
  transition: opacity 120ms ease-out;
}
.gaia-tabs__list[data-variant="line"] .gaia-tabs__item:has([data-active])::after {
  opacity: 1;
}
.gaia-tabs__label {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  color: oklch(from var(--gaia-muted-foreground) l c h / .6);
  font-size: var(--gaia-text-xs);
  line-height: var(--gaia-text-xs--line-height);
  font-weight: var(--gaia-font-weight-semibold);
  white-space: nowrap;
  user-select: none;
}
.gaia-tabs__divider {
  flex: none;
  align-self: center;
  width: 1px;
  height: 16px;
  margin: 0 4px;
  background: var(--gaia-border);
}
.gaia-tabs__panel {
  outline: none;
}
.gaia-tabs__panel:focus-visible {
  outline: 2px solid var(--gaia-ring);
  outline-offset: 2px;
  border-radius: var(--gaia-radius-sm);
}
.gaia-sidebar {
  --gaia-sidebar-motion: 300ms ease;
  --gaia-sidebar-fg: var(--gaia-foreground);
  --gaia-sidebar-muted: var(--gaia-muted-foreground);
  --gaia-sidebar-hover: oklch(from var(--gaia-foreground) l c h / .04);
  --gaia-sidebar-selected: oklch(from var(--gaia-foreground) l c h / .06);
  --gaia-sidebar-badge: oklch(from var(--gaia-foreground) l c h / .06);
  --gaia-sidebar-focus: var(--gaia-ring);
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex: none;
  flex-direction: column;
  width: calc(var(--gaia-grid-m) + 2 * var(--gaia-grid-p));
  height: 100%;
  min-height: 0;
  padding: var(--gaia-grid-p);
  color: var(--gaia-sidebar-fg);
  transition: width var(--gaia-sidebar-motion);
}
.gaia-sidebar[data-collapsed] {
  --gaia-sidebar-fg: var(--gaia-sidebar-foreground);
  --gaia-sidebar-muted: oklch(from var(--gaia-sidebar-foreground) l c h / .6);
  --gaia-sidebar-hover: var(--gaia-sidebar-accent);
  --gaia-sidebar-selected: var(--gaia-sidebar-primary);
  --gaia-sidebar-badge: oklch(from var(--gaia-sidebar-foreground) l c h / .1);
  --gaia-sidebar-focus: var(--gaia-sidebar-ring);
  width: calc(var(--gaia-grid-s) + 2 * var(--gaia-grid-p));
}
.gaia-sidebar__ground {
  position: absolute;
  top: var(--gaia-grid-p);
  left: var(--gaia-grid-p);
  width: var(--gaia-grid-s);
  height: var(--gaia-grid-s);
  border-radius: calc(var(--gaia-grid-s) / 2);
  background: var(--gaia-sidebar);
  pointer-events: none;
  transition: height var(--gaia-sidebar-motion);
}
.gaia-sidebar[data-collapsed] .gaia-sidebar__ground {
  height: calc(100% - 2 * var(--gaia-grid-p));
}
.gaia-sidebar__brand {
  position: relative;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: var(--gaia-grid-s);
  height: var(--gaia-grid-s);
  margin: 0 0 var(--gaia-grid-p);
  padding: 0;
  border: 0;
  border-radius: var(--gaia-radius-pill);
  background: transparent;
  color: var(--gaia-sidebar-foreground);
  cursor: pointer;
  outline: none;
  transition: margin var(--gaia-sidebar-motion);
}
.gaia-sidebar[data-collapsed] .gaia-sidebar__brand {
  margin-bottom: 0;
}
.gaia-sidebar__brand > * {
  transition: opacity 150ms;
}
.gaia-sidebar__brand:hover > * {
  opacity: .8;
}
.gaia-sidebar__brand:focus-visible {
  outline: 2px solid var(--gaia-sidebar-ring);
  outline-offset: -5px;
}
.gaia-sidebar__nav {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  padding: 4px 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
}
.gaia-sidebar__nav::after {
  content: "";
  position: sticky;
  bottom: 0;
  z-index: 1;
  flex: none;
  height: 24px;
  margin-top: -24px;
  background: linear-gradient(to bottom, oklch(from var(--gaia-canvas) l c h / 0), var(--gaia-canvas));
  box-shadow: inset 0 -1px var(--gaia-border);
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms;
}
.gaia-sidebar[data-collapsed] .gaia-sidebar__nav::after {
  background: linear-gradient(to bottom, oklch(from var(--gaia-sidebar) l c h / 0), var(--gaia-sidebar));
  box-shadow: inset 0 -1px oklch(from var(--gaia-sidebar-foreground) l c h / .2);
}
.gaia-sidebar__nav[data-more-below]::after {
  opacity: 1;
}
.gaia-sidebar__band {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 8px;
  transition: gap var(--gaia-sidebar-motion);
}
.gaia-sidebar[data-collapsed] .gaia-sidebar__band {
  gap: 4px;
}
.gaia-sidebar__divider {
  flex: none;
  height: 1px;
  margin: 10px 8px;
  background: var(--gaia-border);
  transition: background var(--gaia-sidebar-motion), margin var(--gaia-sidebar-motion);
}
.gaia-sidebar[data-collapsed] .gaia-sidebar__divider {
  margin: 16px 8px;
  background: oklch(from var(--gaia-sidebar-foreground) l c h / .2);
}
.gaia-sidebar__section {
  display: flex;
  flex-direction: column;
}
.gaia-sidebar__row {
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex: none;
  align-items: center;
  gap: 4px;
  width: 100%;
  height: 28px;
  margin: 0;
  padding: 0 8px 0 10px;
  overflow: hidden;
  border: 0;
  border-radius: var(--gaia-radius-md);
  background: transparent;
  color: var(--gaia-sidebar-fg);
  font: inherit;
  font-size: var(--gaia-text-xs);
  line-height: var(--gaia-text-xs--line-height);
  font-weight: var(--gaia-font-weight-normal);
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  outline: none;
  transition: background 150ms, color var(--gaia-sidebar-motion), height var(--gaia-sidebar-motion);
}
.gaia-sidebar__row:hover {
  background: var(--gaia-sidebar-hover);
}
.gaia-sidebar__row[data-selected], .gaia-sidebar__row[data-current] {
  background: var(--gaia-sidebar-selected);
}
.gaia-sidebar__row:focus-visible {
  outline: 2px solid var(--gaia-sidebar-focus);
  outline-offset: -2px;
}
.gaia-sidebar__row[data-inert] {
  color: var(--gaia-sidebar-muted);
  opacity: .7;
  cursor: not-allowed;
}
.gaia-sidebar__row[data-inert]:hover {
  background: transparent;
}
.gaia-sidebar__row[data-locked] {
  opacity: .55;
}
.gaia-sidebar__row[data-dimmed] {
  opacity: .7;
}
.gaia-sidebar__l1 {
  color: var(--gaia-sidebar-muted);
  font-weight: var(--gaia-font-weight-semibold);
}
.gaia-sidebar__l1[data-selected] {
  color: var(--gaia-sidebar-fg);
}
.gaia-sidebar__icon {
  position: relative;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 20px;
  border-radius: var(--gaia-radius-circle);
  transition: background 150ms, height var(--gaia-sidebar-motion);
}
.gaia-sidebar__icon svg {
  width: 13px;
  height: 13px;
  stroke-width: 1.6px;
}
.gaia-sidebar__label {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 8px;
  min-width: 0;
  opacity: 1;
  transition: opacity var(--gaia-sidebar-motion);
}
.gaia-sidebar__text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gaia-sidebar__badge {
  flex: none;
  padding: 2px 6px;
  border-radius: var(--gaia-radius-pill);
  background: var(--gaia-sidebar-badge);
  color: var(--gaia-sidebar-muted);
  font-size: var(--gaia-text-2xs);
  line-height: var(--gaia-text-2xs--line-height);
  font-weight: var(--gaia-font-weight-semibold);
}
.gaia-sidebar__mark {
  flex: none;
  width: 12px;
  height: 12px;
}
.gaia-sidebar__icon-lock {
  position: absolute;
  right: -3px;
  bottom: -3px;
  display: none;
  place-items: center;
  width: 12px;
  height: 12px;
  border-radius: var(--gaia-radius-circle);
  background: var(--gaia-sidebar);
  color: var(--gaia-sidebar-foreground);
}
.gaia-sidebar__icon .gaia-sidebar__icon-lock-glyph {
  width: 8px;
  height: 8px;
  stroke-width: 2.5px;
}
.gaia-sidebar[data-collapsed] .gaia-sidebar__icon-lock {
  display: grid;
}
.gaia-sidebar__chevron {
  flex: none;
  width: 12px;
  height: 12px;
  color: var(--gaia-sidebar-muted);
  opacity: 0;
  transition: transform 120ms ease-out;
}
.gaia-sidebar__l1[aria-expanded="false"] .gaia-sidebar__chevron {
  opacity: 1;
  transform: rotate(-90deg);
}
.gaia-sidebar__l1:hover .gaia-sidebar__chevron, .gaia-sidebar__l1:focus-visible .gaia-sidebar__chevron {
  opacity: 1;
}
.gaia-sidebar__external {
  opacity: 0;
  color: var(--gaia-sidebar-muted);
}
.gaia-sidebar__row:hover .gaia-sidebar__external, .gaia-sidebar__row:focus-visible .gaia-sidebar__external {
  opacity: 1;
}
.gaia-sidebar__leaves {
  display: flex;
  flex-direction: column;
  height: calc(var(--gaia-sidebar-leaf-count, 0) * 28px);
  overflow: hidden;
  opacity: 1;
  transition: height var(--gaia-sidebar-motion), opacity var(--gaia-sidebar-motion);
}
.gaia-sidebar__leaves[data-open="false"] {
  height: 0;
  opacity: 0;
}
.gaia-sidebar__leaf {
  padding-left: 39px;
}
.gaia-sidebar__leaf[data-current] {
  font-weight: var(--gaia-font-weight-semibold);
}
.gaia-sidebar[data-collapsed] :is(.gaia-sidebar__l1, .gaia-sidebar__account-button) {
  height: 30px;
  background: transparent;
}
.gaia-sidebar[data-collapsed] .gaia-sidebar__l1 {
  color: var(--gaia-sidebar-fg);
}
.gaia-sidebar[data-collapsed] :is(.gaia-sidebar__l1, .gaia-sidebar__account-button) .gaia-sidebar__label {
  opacity: 0;
}
.gaia-sidebar[data-collapsed] .gaia-sidebar__l1 .gaia-sidebar__icon {
  height: 25px;
}
.gaia-sidebar[data-collapsed] .gaia-sidebar__l1:hover .gaia-sidebar__icon, .gaia-sidebar[data-collapsed] .gaia-sidebar__l1[aria-expanded="true"] .gaia-sidebar__icon {
  background: var(--gaia-sidebar-accent);
}
.gaia-sidebar[data-collapsed] .gaia-sidebar__l1[data-selected] .gaia-sidebar__icon {
  background: var(--gaia-sidebar-primary);
}
.gaia-sidebar[data-collapsed] :is(.gaia-sidebar__l1, .gaia-sidebar__account-button):focus-visible {
  outline: none;
}
.gaia-sidebar[data-collapsed] .gaia-sidebar__l1:focus-visible .gaia-sidebar__icon, .gaia-sidebar[data-collapsed] .gaia-sidebar__account-button:focus-visible .gaia-sidebar__avatar {
  outline: 2px solid var(--gaia-sidebar-ring);
  outline-offset: 1px;
}
.gaia-sidebar__flyout {
  --gaia-sidebar-fg: var(--gaia-sidebar-foreground);
  --gaia-sidebar-muted: oklch(from var(--gaia-sidebar-foreground) l c h / .6);
  --gaia-sidebar-hover: var(--gaia-sidebar-accent);
  --gaia-sidebar-selected: var(--gaia-sidebar-primary);
  --gaia-sidebar-badge: oklch(from var(--gaia-sidebar-foreground) l c h / .1);
  --gaia-sidebar-focus: var(--gaia-sidebar-ring);
  position: fixed;
  z-index: calc(var(--gaia-dialog-z, 49) + 1);
  padding-left: var(--gaia-grid-p);
}
.gaia-sidebar__flyout-panel {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: calc(var(--gaia-grid-m) + 2 * var(--gaia-grid-p));
  max-height: calc(100vh - 16px);
  overflow-y: auto;
  padding: 16px 8px;
  border-radius: 16px;
  background: var(--gaia-sidebar);
  color: var(--gaia-sidebar-foreground);
  box-shadow: none;
  animation: gaia-sidebar-flyout-in 150ms ease-out;
}
.gaia-sidebar__flyout-heading {
  box-sizing: border-box;
  display: flex;
  flex: none;
  align-items: center;
  gap: 4px;
  height: 28px;
  margin: 0;
  padding: 0 8px 0 10px;
  color: var(--gaia-sidebar-muted);
  font-size: var(--gaia-text-xs);
  line-height: var(--gaia-text-xs--line-height);
  font-weight: var(--gaia-font-weight-semibold);
  white-space: nowrap;
}
.gaia-sidebar__flyout .gaia-sidebar__row {
  height: 28px;
}
.gaia-sidebar__flyout .gaia-sidebar__row:hover {
  background: var(--gaia-sidebar-hover);
}
.gaia-sidebar__flyout .gaia-sidebar__row[data-current] {
  background: var(--gaia-sidebar-selected);
}
.gaia-sidebar__flyout .gaia-sidebar__row[data-inert]:hover {
  background: transparent;
}
.gaia-sidebar__flyout .gaia-sidebar__row:focus-visible {
  outline: 2px solid var(--gaia-sidebar-ring);
  outline-offset: -2px;
}
.gaia-sidebar__flyout .gaia-sidebar__label, .gaia-sidebar__flyout .gaia-sidebar__text {
  opacity: 1;
}
@keyframes gaia-sidebar-flyout-in {
  from {
    opacity: 0;
    transform: translateX(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.gaia-sidebar__account {
  position: relative;
  flex: none;
  padding-top: 8px;
}
.gaia-sidebar__account-button {
  height: 36px;
  color: var(--gaia-sidebar-fg);
}
.gaia-sidebar[data-collapsed] .gaia-sidebar__account-button {
  height: 36px;
}
.gaia-sidebar__account-button[aria-expanded="true"], .gaia-sidebar__account-button[data-popup-open] {
  background: var(--gaia-sidebar-selected);
}
.gaia-sidebar[data-collapsed] .gaia-sidebar__account-button[aria-expanded="true"], .gaia-sidebar[data-collapsed] .gaia-sidebar__account-button[data-popup-open] {
  background: transparent;
}
.gaia-sidebar__avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 21px;
  height: 21px;
  margin: 0 2px;
  border-radius: var(--gaia-radius-circle);
  background: var(--gaia-foreground);
  color: var(--gaia-card);
  font-size: var(--gaia-text-2xs);
  line-height: 1;
  font-weight: var(--gaia-font-weight-semibold);
  letter-spacing: .02em;
  transition: background 200ms ease, color 200ms ease, box-shadow 150ms;
}
.gaia-sidebar[data-collapsed] .gaia-sidebar__avatar {
  background: var(--gaia-sidebar-foreground);
  color: var(--gaia-foreground);
}
.gaia-sidebar[data-collapsed] .gaia-sidebar__account-button[aria-expanded="true"] .gaia-sidebar__avatar, .gaia-sidebar[data-collapsed] .gaia-sidebar__account-button[data-popup-open] .gaia-sidebar__avatar {
  box-shadow: 0 0 0 2px oklch(from var(--gaia-sidebar-foreground) l c h / .6);
}
.gaia-sidebar-toggle {
  display: grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--gaia-radius-md);
  background: transparent;
  color: var(--gaia-foreground);
  cursor: pointer;
  outline: none;
  transition: background 150ms;
}
.gaia-sidebar-toggle svg {
  width: 15px;
  height: 15px;
}
.gaia-sidebar-toggle:hover {
  background: var(--gaia-accent);
}
.gaia-sidebar-toggle:active {
  background: var(--gaia-muted);
}
.gaia-sidebar-toggle:focus-visible {
  outline: 2px solid var(--gaia-ring);
  outline-offset: 2px;
}
.gaia-page-bar {
  box-sizing: border-box;
  display: flex;
  flex: none;
  align-items: center;
  width: 100%;
  height: var(--gaia-grid-s);
  border-bottom: 1px solid var(--gaia-border);
  color: var(--gaia-foreground);
}
.gaia-page-bar__slot {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: var(--gaia-grid-s);
  height: var(--gaia-grid-s);
}
.gaia-page-bar__main {
  display: flex;
  flex: 1;
  justify-content: center;
  min-width: 0;
}
.gaia-page-bar__inner {
  display: flex;
  align-items: center;
  gap: var(--gaia-grid-p);
  width: 100%;
  min-width: 0;
  max-width: var(--gaia-page-bar-max, none);
}
.gaia-page-bar[data-contained] .gaia-page-bar__inner {
  max-width: var(--gaia-page-bar-max, var(--gaia-page-grid-max));
}
.gaia-page-bar:not([data-assistant]) .gaia-page-bar__main {
  padding-right: calc((var(--gaia-grid-s) - 30px) / 2);
}
.gaia-breadcrumb {
  flex: 1;
  min-width: 0;
}
.gaia-breadcrumb__list {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--gaia-text-xs);
  line-height: var(--gaia-text-xs--line-height);
  white-space: nowrap;
}
.gaia-breadcrumb__item {
  display: flex;
  align-items: center;
  min-width: 0;
  color: var(--gaia-muted-foreground);
}
.gaia-breadcrumb__item[data-last] {
  color: var(--gaia-foreground);
}
.gaia-breadcrumb__link, .gaia-breadcrumb__page {
  display: block;
  min-width: 0;
  max-width: 100%;
  color: inherit;
  text-decoration: none;
  border-radius: 4px;
  outline: none;
}
.gaia-breadcrumb__link {
  transition: color 120ms;
}
.gaia-breadcrumb__link:hover {
  color: var(--gaia-foreground);
}
.gaia-breadcrumb__link:focus-visible, .gaia-breadcrumb__page:focus-visible {
  outline: 2px solid var(--gaia-ring);
  outline-offset: 2px;
}
.gaia-breadcrumb__text {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gaia-breadcrumb__separator {
  display: flex;
  flex: none;
  color: var(--gaia-muted-foreground);
}
.gaia-breadcrumb__separator svg {
  width: 12px;
  height: 12px;
}
.gaia-breadcrumb__info {
  display: flex;
  flex: none;
}
.gaia-page-bar__info {
  display: grid;
  flex: none;
  place-items: center;
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--gaia-radius-circle);
  background: oklch(from var(--gaia-border) l c h / .6);
  color: var(--gaia-muted-foreground);
  cursor: pointer;
  outline: none;
  transition: background 120ms, color 120ms;
}
.gaia-page-bar__info svg {
  width: 8px;
  height: 8px;
}
.gaia-page-bar__info:hover {
  background: var(--gaia-border);
  color: var(--gaia-foreground);
}
.gaia-page-bar__info:focus-visible {
  outline: 2px solid var(--gaia-ring);
  outline-offset: 2px;
}
.gaia-page-bar__meta {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
  color: var(--gaia-muted-foreground);
  font-size: var(--gaia-text-xs);
  line-height: var(--gaia-text-xs--line-height);
}
.gaia-page-bar__actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
}
.gaia-page-bar__actions [data-slot="button"][aria-disabled="true"] {
  opacity: .5;
  cursor: not-allowed;
}
.gaia-page-bar__more {
  display: grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--gaia-radius-circle);
  background: transparent;
  color: var(--gaia-foreground);
  cursor: pointer;
  outline: none;
  transition: background 120ms;
}
.gaia-page-bar__more svg {
  width: 15px;
  height: 15px;
}
.gaia-page-bar__more:hover, .gaia-page-bar__more[data-popup-open] {
  background: var(--gaia-accent);
}
.gaia-page-bar__more:active {
  background: var(--gaia-muted);
}
.gaia-page-bar__more:focus-visible {
  outline: 2px solid var(--gaia-ring);
  outline-offset: 2px;
}
.gaia-page-bar__menu {
  min-width: 180px;
}
.gaia-page-bar__menu-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 15px;
  height: 15px;
}
.gaia-page-bar__menu-icon svg {
  width: 15px;
  height: 15px;
}
@keyframes gaia-shimmer {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -100% 0;
  }
}
@layer components {
  :where(.gaia-message-scroller) {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }
  :where(.gaia-message-scroller__viewport) {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-gutter: stable;
    mask-image: linear-gradient(to bottom, #000 calc(100% - 32px), transparent);
    outline: none;
  }
  :where(.gaia-message-scroller__viewport:focus-visible) {
    outline: 2px solid var(--gaia-ring);
    outline-offset: -2px;
  }
  :where(.gaia-message-scroller__viewport[data-autoscrolling]) {
    scrollbar-width: none;
  }
  :where(.gaia-message-scroller__viewport[data-pending-scroll]) {
    visibility: hidden;
  }
  :where(.gaia-message-scroller__content) {
    display: flex;
    flex-direction: column;
    gap: 32px;
    height: max-content;
    min-height: 100%;
  }
  :where(.gaia-message-scroller__item) {
    flex-shrink: 0;
    min-width: 0;
  }
  :where(.gaia-message-scroller__button) {
    position: absolute;
    left: 50%;
    translate: -50% 0;
    scale: 1;
    opacity: 1;
  }
  :where(.gaia-message-scroller__button[data-direction="end"]) {
    bottom: 16px;
  }
  :where(.gaia-message-scroller__button[data-direction="start"]) {
    top: 16px;
  }
  :where(.gaia-message-scroller__button[data-direction="start"] svg) {
    rotate: 180deg;
  }
  :where(.gaia-message-scroller__button[data-active="false"]) {
    pointer-events: none;
    scale: .95;
    opacity: 0;
  }
  :where(.gaia-message-scroller__button[data-direction="end"][data-active="false"]) {
    translate: -50% 100%;
  }
  :where(.gaia-message-scroller__button[data-direction="start"][data-active="false"]) {
    translate: -50% -100%;
  }
  :where(.gaia-message-group) {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
  }
  :where(.gaia-message) {
    position: relative;
    display: flex;
    gap: 8px;
    width: 100%;
    min-width: 0;
  }
  :where(.gaia-message[data-align="end"]) {
    flex-direction: row-reverse;
  }
  :where(.gaia-message__content) {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    min-width: 0;
    overflow-wrap: break-word;
  }
  :where(.gaia-message[data-align="end"] > .gaia-message__content > [data-slot]) {
    align-self: flex-end;
  }
  :where(.gaia-message__header, .gaia-message__footer) {
    display: flex;
    align-items: center;
    min-width: 0;
    max-width: 100%;
    padding-inline: 12px;
    color: var(--gaia-muted-foreground);
    font-size: var(--gaia-text-xs);
    line-height: var(--gaia-text-xs--line-height);
    font-weight: var(--gaia-font-weight-normal);
  }
  :where(.gaia-message__header) {
    font-weight: var(--gaia-font-weight-semibold);
  }
  :where(.gaia-message[data-align="end"] .gaia-message__footer) {
    justify-content: flex-end;
  }
  :where(.gaia-message:has([data-slot="bubble"][data-variant="ghost"]) .gaia-message__header, .gaia-message:has([data-slot="bubble"][data-variant="ghost"]) .gaia-message__footer) {
    padding-inline: 0;
  }
  :where(.gaia-bubble-group) {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
  }
  :where(.gaia-bubble) {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: fit-content;
    min-width: 0;
    max-width: 80%;
  }
  :where(.gaia-bubble[data-align="end"], .gaia-message[data-align="end"] .gaia-bubble) {
    align-self: flex-end;
  }
  :where(.gaia-bubble[data-variant="ghost"]) {
    max-width: 100%;
  }
  :where(.gaia-bubble__content) {
    width: fit-content;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: var(--gaia-radius-2xl);
    background: var(--gaia-muted);
    color: var(--gaia-foreground);
    font-size: var(--gaia-text-base);
    line-height: var(--gaia-text-base--line-height);
    font-weight: var(--gaia-font-weight-normal);
    overflow-wrap: break-word;
  }
  :where(.gaia-bubble[data-align="end"] > .gaia-bubble__content) {
    align-self: flex-end;
  }
  :where(.gaia-bubble[data-variant="ghost"] > .gaia-bubble__content) {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  :where(.gaia-trace) {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    min-width: 0;
  }
  :where(.gaia-trace__line) {
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    min-width: 0;
    max-width: 100%;
    color: var(--gaia-muted-foreground);
    font-size: var(--gaia-text-xs);
    line-height: var(--gaia-text-xs--line-height);
    font-weight: var(--gaia-font-weight-normal);
    transition: color 120ms ease-out;
  }
  :where(a .gaia-trace__line, button .gaia-trace__line) {
    cursor: pointer;
  }
  :where(a:hover .gaia-trace__line, button:hover .gaia-trace__line) {
    color: var(--gaia-foreground);
  }
  :where(.gaia-trace__line[data-status="error"]) {
    color: var(--gaia-destructive);
  }
  :where(.gaia-trace__line[data-status="pending"]) {
    opacity: .6;
  }
  :where(.gaia-trace__icon) {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
  }
  :where(.gaia-trace__icon svg) {
    width: 14px;
    height: 14px;
    pointer-events: none;
  }
  :where(.gaia-trace__title ~ .gaia-trace__icon) {
    margin-left: -4px;
  }
  :where(.gaia-trace__title) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  :where(.gaia-trace__description) {
    flex-shrink: 0;
    color: oklch(from var(--gaia-muted-foreground) l c h / .7);
    font-variant-numeric: tabular-nums;
  }
  :where(.gaia-trace__collapsible) {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
  }
  :where(.gaia-trace__trigger) {
    display: flex;
    align-items: center;
    gap: 4px;
    width: fit-content;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: var(--gaia-radius-md);
    background: transparent;
    color: var(--gaia-muted-foreground);
    font: inherit;
    text-align: left;
    cursor: pointer;
    outline: none;
    transition: color 120ms ease-out;
  }
  :where(.gaia-trace__trigger:hover) {
    color: var(--gaia-foreground);
  }
  :where(.gaia-trace__trigger:focus-visible) {
    outline: 2px solid var(--gaia-ring);
    outline-offset: 2px;
  }
  :where(.gaia-trace__chevron) {
    transition: rotate 120ms ease-out;
  }
  :where(.gaia-trace__trigger[data-panel-open] > .gaia-trace__chevron) {
    rotate: 90deg;
  }
  :where(.gaia-trace__panel) {
    height: var(--collapsible-panel-height);
    min-width: 0;
    overflow: hidden;
    transition: height 200ms ease-out;
  }
  :where(.gaia-trace__panel[data-starting-style], .gaia-trace__panel[data-ending-style]) {
    height: 0;
  }
  :where(.gaia-trace__detail) {
    min-width: 0;
    margin: 6px 0 4px 6px;
    padding: 0 4px 0 12px;
    border-left: 1px solid var(--gaia-border);
    color: var(--gaia-muted-foreground);
    font-size: var(--gaia-text-xs);
    line-height: var(--gaia-text-xs--line-height);
    overflow-wrap: break-word;
  }
  :where(.gaia-input-group) {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    border: 1px solid var(--gaia-border);
    border-radius: var(--gaia-radius-lg);
    background: var(--gaia-card);
    color: var(--gaia-foreground);
    transition: opacity 120ms ease-out;
  }
  :where(.gaia-input-group:has(> [data-slot="input-group-addon"][data-align^="block"])) {
    flex-direction: column;
    align-items: stretch;
  }
  :where(.gaia-input-group:has([data-slot="input-group-control"]:focus-visible)) {
    outline: 2px solid var(--gaia-ring);
    outline-offset: 2px;
  }
  :where(.gaia-input-group[data-focus-outline="off"]) {
    outline: none;
  }
  :where(.gaia-input-group:has([data-slot="input-group-control"]:disabled)) {
    opacity: .5;
    cursor: not-allowed;
  }
  :where(.gaia-input-group__addon) {
    display: flex;
    align-items: center;
    gap: 4px;
    height: auto;
    color: var(--gaia-muted-foreground);
    font-size: var(--gaia-text-xs);
    line-height: var(--gaia-text-xs--line-height);
    font-weight: var(--gaia-font-weight-normal);
    cursor: text;
    user-select: none;
  }
  :where(.gaia-input-group__addon[data-align="inline-start"]) {
    order: -1;
    padding-inline-start: 8px;
  }
  :where(.gaia-input-group__addon[data-align="inline-end"]) {
    order: 1;
    padding-inline-end: 8px;
  }
  :where(.gaia-input-group__addon[data-align="block-start"]) {
    order: -1;
    justify-content: flex-start;
    width: 100%;
    padding: 8px 8px 0;
  }
  :where(.gaia-input-group__addon[data-align="block-end"]) {
    order: 1;
    justify-content: flex-start;
    width: 100%;
    padding: 0 8px 8px;
  }
  :where(.gaia-input-group__textarea) {
    flex: 1 1 auto;
    field-sizing: content;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 8px 12px;
    border: 0;
    background: transparent;
    color: var(--gaia-foreground);
    font-family: inherit;
    font-size: var(--gaia-text-xs);
    line-height: var(--gaia-text-xs--line-height);
    font-weight: var(--gaia-font-weight-normal);
    resize: none;
    outline: none;
  }
  :where(.gaia-input-group__textarea::placeholder) {
    color: var(--gaia-muted-foreground);
    opacity: 1;
  }
  :where(.gaia-input-group__textarea:disabled) {
    cursor: not-allowed;
  }
  @media (prefers-reduced-motion: no-preference) {
    :where(.gaia-shimmer, .gaia-trace__line[data-status="running"] > .gaia-trace__title) {
      background: linear-gradient(90deg, currentColor 0%, oklch(from currentColor l c h / .35) 50%, currentColor 100%) 0 0 / 200% 100%;
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      animation: gaia-shimmer 1.6s linear infinite;
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  [data-slot="button"], .gaia-dropdown-menu__content, .gaia-select__content, .gaia-flow-card__chevron, .gaia-info-hint, .gaia-tree-node, .gaia-toolbar__trigger, .gaia-tooltip, .gaia-checkbox, .gaia-tabs__tab, .gaia-tabs__item::after, .gaia-toolbar-band {
    transition: none;
  }
  .gaia-placeholder, .gaia-sidebar__flyout-panel {
    animation: none;
  }
  .gaia-trace__line, .gaia-trace__trigger, .gaia-trace__chevron, .gaia-trace__panel, .gaia-input-group {
    transition: none;
  }
  .gaia-sidebar, .gaia-sidebar *, .gaia-sidebar-toggle, .gaia-breadcrumb__link, .gaia-page-bar__info, .gaia-page-bar__more {
    transition: none !important;
  }
  .gaia-dropdown-menu__content[data-starting-style], .gaia-dropdown-menu__content[data-ending-style], .gaia-select__content[data-starting-style], .gaia-select__content[data-ending-style] {
    transform: none;
  }
}
@property --tw-translate-x {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}
@property --tw-translate-y {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}
@property --tw-translate-z {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}
@property --tw-scale-x {
  syntax: "*";
  inherits: false;
  initial-value: 1;
}
@property --tw-scale-y {
  syntax: "*";
  inherits: false;
  initial-value: 1;
}
@property --tw-scale-z {
  syntax: "*";
  inherits: false;
  initial-value: 1;
}
@property --tw-rotate-x {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-y {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-z {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-x {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-y {
  syntax: "*";
  inherits: false;
}
@property --tw-divide-y-reverse {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}
@property --tw-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}
@property --tw-leading {
  syntax: "*";
  inherits: false;
}
@property --tw-font-weight {
  syntax: "*";
  inherits: false;
}
@property --tw-tracking {
  syntax: "*";
  inherits: false;
}
@property --tw-ordinal {
  syntax: "*";
  inherits: false;
}
@property --tw-slashed-zero {
  syntax: "*";
  inherits: false;
}
@property --tw-numeric-figure {
  syntax: "*";
  inherits: false;
}
@property --tw-numeric-spacing {
  syntax: "*";
  inherits: false;
}
@property --tw-numeric-fraction {
  syntax: "*";
  inherits: false;
}
@property --tw-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-shadow-color {
  syntax: "*";
  inherits: false;
}
@property --tw-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-inset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-inset-shadow-color {
  syntax: "*";
  inherits: false;
}
@property --tw-inset-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-ring-color {
  syntax: "*";
  inherits: false;
}
@property --tw-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-inset-ring-color {
  syntax: "*";
  inherits: false;
}
@property --tw-inset-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-ring-inset {
  syntax: "*";
  inherits: false;
}
@property --tw-ring-offset-width {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}
@property --tw-ring-offset-color {
  syntax: "*";
  inherits: false;
  initial-value: #fff;
}
@property --tw-ring-offset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}
@property --tw-outline-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}
@property --tw-blur {
  syntax: "*";
  inherits: false;
}
@property --tw-brightness {
  syntax: "*";
  inherits: false;
}
@property --tw-contrast {
  syntax: "*";
  inherits: false;
}
@property --tw-grayscale {
  syntax: "*";
  inherits: false;
}
@property --tw-hue-rotate {
  syntax: "*";
  inherits: false;
}
@property --tw-invert {
  syntax: "*";
  inherits: false;
}
@property --tw-opacity {
  syntax: "*";
  inherits: false;
}
@property --tw-saturate {
  syntax: "*";
  inherits: false;
}
@property --tw-sepia {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow-color {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-drop-shadow-size {
  syntax: "*";
  inherits: false;
}
@property --tw-ease {
  syntax: "*";
  inherits: false;
}
@property --tw-content {
  syntax: "*";
  initial-value: "";
  inherits: false;
}
@layer properties {
  @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
    *, ::before, ::after, ::backdrop {
      --tw-translate-x: 0;
      --tw-translate-y: 0;
      --tw-translate-z: 0;
      --tw-scale-x: 1;
      --tw-scale-y: 1;
      --tw-scale-z: 1;
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-divide-y-reverse: 0;
      --tw-border-style: solid;
      --tw-leading: initial;
      --tw-font-weight: initial;
      --tw-tracking: initial;
      --tw-ordinal: initial;
      --tw-slashed-zero: initial;
      --tw-numeric-figure: initial;
      --tw-numeric-spacing: initial;
      --tw-numeric-fraction: initial;
      --tw-shadow: 0 0 #0000;
      --tw-shadow-color: initial;
      --tw-shadow-alpha: 100%;
      --tw-inset-shadow: 0 0 #0000;
      --tw-inset-shadow-color: initial;
      --tw-inset-shadow-alpha: 100%;
      --tw-ring-color: initial;
      --tw-ring-shadow: 0 0 #0000;
      --tw-inset-ring-color: initial;
      --tw-inset-ring-shadow: 0 0 #0000;
      --tw-ring-inset: initial;
      --tw-ring-offset-width: 0px;
      --tw-ring-offset-color: #fff;
      --tw-ring-offset-shadow: 0 0 #0000;
      --tw-outline-style: solid;
      --tw-blur: initial;
      --tw-brightness: initial;
      --tw-contrast: initial;
      --tw-grayscale: initial;
      --tw-hue-rotate: initial;
      --tw-invert: initial;
      --tw-opacity: initial;
      --tw-saturate: initial;
      --tw-sepia: initial;
      --tw-drop-shadow: initial;
      --tw-drop-shadow-color: initial;
      --tw-drop-shadow-alpha: 100%;
      --tw-drop-shadow-size: initial;
      --tw-ease: initial;
      --tw-content: "";
    }
  }
}


/* /src/shared/design-system/components.css */
/* Cozero design system — form and band components, as classes.
   Companion to tokens.css; imported next to it in __root.tsx.

   These are the recipes that were previously written inline at every call site
   — an input's border and radius, a segmented toggle, the four coloured
   explanation bands — expressed once. A rule here may reference only tokens
   from tokens.css, never a literal colour, so a token change moves every
   component with it.

   Font family is deliberately absent: tokens.css sets the stack on `body` and
   `button`, and `input`/`select`/`textarea` do NOT inherit it by default, so
   `font: inherit` below is load-bearing rather than redundant. */

/* ---- inputs ---- */
.input,
.select,
.textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid oklch(var(--muted-bg));
  border-radius: 8px;
  background: white;
  font: inherit;
  font-size: 13px;
  color: oklch(var(--primary));
  outline: none;
}
.input:focus,
.select:focus,
.textarea:focus {
  border-color: oklch(var(--ring));
}
.textarea {
  min-height: 70px;
  resize: vertical;
  line-height: 1.45;
}
/* The chevron is a data: URI rather than an overlaid element so a <select> stays
   one focusable node. Its stroke is #6D7181 — the one literal colour in this
   file, because a url() cannot read a CSS variable. It matches --muted-2. */
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236D7181' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  padding-right: 28px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.field > .caption-bold {
  color: oklch(var(--muted));
}
/* A unit or currency inside the input's right edge. The suffix is
   pointer-events:none so clicking it still focuses the field. */
.input-suffix {
  position: relative;
}
/* The room reserved for the suffix FOLLOWS THE SUFFIX. It was a flat 64px,
   which a long unit overruns — "kgCO₂e/t·km" printed straight over the
   placeholder. `SuffixedInput` sets `--suffix-pad` from the suffix's own
   length; the fallback keeps hand-written markup working. */
.input-suffix .input {
  padding-right: var(--suffix-pad, 64px);
}
.input-suffix > span {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: oklch(var(--muted-2));
  pointer-events: none;
}
.money {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ---- segmented toggle ---- */
.seg {
  display: inline-flex;
  gap: 2px;
  background: oklch(var(--muted-bg) / 0.5);
  padding: 3px;
  border-radius: 10px;
}
.seg > button {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: var(--gaia-text-xs);
  font-weight: var(--gaia-font-weight-semibold);
  color: oklch(var(--muted));
  transition: background-color 120ms;
}
.seg > button.on {
  background: white;
  color: oklch(var(--primary));
  box-shadow:
    0 1px 2px rgba(20, 20, 40, 0.06),
    0 0 0 1px oklch(var(--muted-bg));
}

/* ---- inline add action ---- */
.add-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--gaia-text-xs);
  font-weight: var(--gaia-font-weight-semibold);
  color: oklch(var(--action));
  padding: 6px 4px;
  border-radius: 7px;
}
.add-link:hover {
  background: oklch(var(--muted-bg) / 0.4);
}

/* ---- separator ---- */
.hr {
  height: 1px;
  background: oklch(var(--muted-bg));
  border: 0;
  margin: 18px 0;
}

/* ---- explanation bands ----
   Four tones for one shape. The tone carries the meaning, so the copy never
   has to say "warning:" — success states a resolved fact, warn states an
   incomplete answer, error states a refusal, info states how something
   composes. */
.success-line,
.warn-line,
.error-line,
.info-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  color: oklch(var(--muted));
  margin-top: 14px;
}
.success-line {
  background: oklch(var(--green-bg) / 0.55);
  border: 1px solid oklch(var(--green) / 0.25);
}
.warn-line {
  background: oklch(var(--orange-bg) / 0.7);
  border: 1px solid oklch(var(--orange) / 0.3);
}
.error-line {
  background: oklch(var(--error-bg) / 0.7);
  border: 1px solid oklch(var(--error) / 0.3);
}
.info-line {
  background: oklch(var(--finance-soft));
  border: 1px solid oklch(var(--finance) / 0.18);
  font-size: var(--gaia-text-xs);
}

/* A read-only strip of figures the author is working against — the starting
   emissions above an editor, the operating position below one. */
.baseline-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: oklch(var(--muted-bg) / 0.35);
  border: 1px solid oklch(var(--muted-bg));
  border-radius: 12px;
  padding: 11px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  color: oklch(var(--muted));
}

/* ---- small chips ---- */
/* Names the per-year shape a section's values carry — "Discrete payments",
   "Step and hold". The three shapes must never be confused, so each section
   says which one it is. */
.sem-chip {
  font-size: var(--gaia-text-xs);
  font-weight: var(--gaia-font-weight-semibold);
  border-radius: 5px;
  padding: 2px 7px;
  background: oklch(var(--muted-bg) / 0.8);
  color: oklch(var(--muted));
}
/* Where a picked thing came from. The author never needs to care, but seeing
   it makes "we already measure this" legible at a glance. */
.src-chip {
  font-size: var(--gaia-text-xs);
  font-weight: var(--gaia-font-weight-semibold);
  border-radius: 5px;
  padding: 2px 6px;
}
.src-ccf {
  background: oklch(var(--green-bg));
  color: oklch(var(--green));
}
.src-core {
  background: oklch(0.93 0.04 258);
  color: oklch(var(--action));
}
.src-new {
  background: oklch(var(--orange-bg));
  color: oklch(var(--orange));
}
.scope-pill {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 10px;
  font-weight: 500;
}
.new-chip {
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.07em;
  background: oklch(0.93 0.04 258);
  color: oklch(var(--action));
  border-radius: 4px;
  padding: 1px 5px;
}

/* ---- card padding ---- */
.pane {
  padding: 22px 24px;
}


/* /src/shared/design-system/gaia-consumer.css */
/* Compatibility for pages that still consume OKLCH channels and legacy colour classes.
   Import after Gaia, outside control-legacy: Gaia's public aliases contain complete
   colours, while existing Control styles wrap these channels in oklch(...).
   Registry components use --gaia-* and retain their own colour utilities. */

:root {
  /* Core */
  --background: 96.5% 0.004 286; /* #F4F4F6 */
  --white: 100% 0 0;
  --white-foreground: 27% 0.085 269; /* #272C5F */

  --primary: 27% 0.085 269; /* navy #272C5F */
  --primary-foreground: 100% 0 0;
  --primary-active: 27% 0.085 269;

  --secondary: 64% 0.04 276; /* #888BAA */
  --secondary-foreground: 100% 0 0;

  --accent: 44% 0.05 269; /* #4F5484 */
  --accent-foreground: 100% 0 0;

  --muted-bg: 91% 0.01 276; /* #E0E2EB */
  --muted: 37% 0.025 275; /* #46475C */
  --muted-2: 55% 0.025 275; /* lighter muted text */

  --input: 91% 0.01 276;
  --ring: 44% 0.05 269;
  --radius: 0.625rem;

  /* Sidebar (uses primary navy in this build) */
  --sidebar-background: 27% 0.085 269;
  --sidebar-foreground: 100% 0 0;
  --sidebar-accent: 44% 0.05 269;

  /* AI green #5CC63C */
  --ai: 70% 0.19 138;
  --ai-foreground: 100% 0 0;

  /* Action blue #2871FF */
  --action: 55% 0.22 258;
  --action-foreground: 100% 0 0;

  /* Brand green #28A003 */
  --brand: 56% 0.17 142;
  --brand-foreground: 100% 0 0;

  /* Hues for accents that are not GHG scopes: twin node kinds, wizard steps, emission types. A scope's
     colour is Gaia's --scope-1/2/3, a full colour, so it is never declared again here. */
  --purple: 62% 0.13 285;
  --sage: 55% 0.09 148;
  --amber: 61% 0.12 66;

  /* Semantic */
  --green-bg: 91% 0.03 140;
  --green: 53% 0.17 141;
  --orange-bg: 94% 0.04 70;
  --orange: 71% 0.16 60;
  --error-bg: 90% 0.03 20;
  --error: 59% 0.2 26;

  /* CONTROL-specific finance accent (deep indigo with warmth) */
  --finance: 38% 0.1 270;
  --finance-soft: 95% 0.015 270;

  /* Tables */
  --table-header: 64% 0.04 276;
  --table-row-hover: 96.77% 0.0027 286.35;
  --table-row-selected: 91% 0.01 276;

  /* Surface radii */
  --radius-sm: 8px;
  --radius-surface: 16px;
}

/* Color utility classes */
.text-primary:where(:not([data-slot])) {
  color: oklch(var(--primary));
}
.text-accent:where(:not([data-slot])) {
  color: oklch(var(--accent));
}
.text-secondary:where(:not([data-slot])) {
  color: oklch(var(--secondary));
}
.text-muted:where(:not([data-slot])) {
  color: oklch(var(--muted));
}
.text-muted-2:where(:not([data-slot])) {
  color: oklch(var(--muted-2));
}
.text-white:where(:not([data-slot])) {
  color: white;
}
.text-action:where(:not([data-slot])) {
  color: oklch(var(--action));
}
.text-ai:where(:not([data-slot])) {
  color: oklch(var(--ai));
}
.text-brand:where(:not([data-slot])) {
  color: oklch(var(--brand));
}
.text-green:where(:not([data-slot])) {
  color: oklch(var(--green));
}
.text-error:where(:not([data-slot])) {
  color: oklch(var(--error));
}
.text-orange:where(:not([data-slot])) {
  color: oklch(var(--orange));
}
.text-finance:where(:not([data-slot])) {
  color: oklch(var(--finance));
}

.bg-background:where(:not([data-slot])) {
  background: oklch(var(--background));
}
.bg-white:where(:not([data-slot])) {
  background: white;
}
.bg-primary:where(:not([data-slot])) {
  background: oklch(var(--primary));
}
.bg-accent:where(:not([data-slot])) {
  background: oklch(var(--accent));
}
.bg-action:where(:not([data-slot])) {
  background: oklch(var(--action));
}
.bg-ai:where(:not([data-slot])) {
  background: oklch(var(--ai));
}
.bg-brand:where(:not([data-slot])) {
  background: oklch(var(--brand));
}
.bg-muted-bg:where(:not([data-slot])) {
  background: oklch(var(--muted-bg));
}
.bg-finance-soft:where(:not([data-slot])) {
  background: oklch(var(--finance-soft));
}
.bg-green-bg:where(:not([data-slot])) {
  background: oklch(var(--green-bg));
}
.bg-orange-bg:where(:not([data-slot])) {
  background: oklch(var(--orange-bg));
}
.bg-error-bg:where(:not([data-slot])) {
  background: oklch(var(--error-bg));
}

/* App composition only. Component appearance comes from the Gaia registry, except switched-off
   toolbar actions, which the app dims, the icon-only buttons near the end of this file, which
   the app keeps borderless in every variant, and the Business case step's three-column figures. */
.control-gaia-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}
.control-gaia-toolbar > [data-slot='toolbar'] {
  flex: 1;
  min-width: 0;
}

/* Keep compact options at rest, but expose their complete names on pointer or keyboard focus. */
.gaia-option-row:hover .gaia-option-row__label,
.gaia-option-row:focus .gaia-option-row__label,
.gaia-dropdown-menu__item:hover .gaia-dropdown-menu__item-text,
.gaia-dropdown-menu__item:focus .gaia-dropdown-menu__item-text,
.gaia-dropdown-menu__item[data-highlighted] .gaia-dropdown-menu__item-text {
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* A chart card picker's listed colour dot sits apart from its name by the gap the closed picker
   uses (gap-1.5). Gaia's select item text is a plain block, so the dot touched the name. */
.gaia-select__item-text:has(> [data-slot='chart-card-swatch']) {
  display: flex;
  align-items: center;
  gap: calc(var(--spacing) * 1.5);
}

/* A switched-off toolbar action is dimmed as a whole. Gaia's disabled colour is close to the
   foreground, so a bulk action that needs ticked rows looked clickable (DEV-3089). */
.gaia-toolbar__action[data-disabled] {
  opacity: 0.45;
}

/* Icon-only Gaia buttons (size-8, size-6) are borderless in every variant and take the muted fill on
   hover, as the graph card's icon buttons do. Unlayered, so it outranks Gaia's utilities layer. */
button[data-slot='button']:is(.size-8, .size-6) {
  border: 0;
}
button[data-slot='button']:is(.size-8, .size-6):hover {
  background-color: var(--gaia-muted);
}
/* A filled icon button keeps its ink on the muted fill. */
button[data-slot='button'][data-variant='default']:is(.size-8, .size-6):hover,
button[data-slot='button'][data-variant='secondary']:is(.size-8, .size-6):hover {
  color: var(--gaia-foreground);
}

/* The Business case step's nine figures, three by three (`BusinessCaseTileAbout`). Gaia's congrats
   card puts four to a row with its rules drawn for four, so the three-column grid redraws them. Only
   where Gaia would show four: below 1100px its own two- and one-column layouts apply unchanged. */
@media (min-width: 1101px) {
  .control-business-case .gaia-congrats-card__kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .control-business-case .gaia-congrats-card__kpis > .gaia-congrats-card__kpi {
    border-top: 0;
    border-left: 0;
  }
  .control-business-case
    .gaia-congrats-card__kpis
    > .gaia-congrats-card__kpi:not(:nth-child(3n + 1)) {
    border-left: 1px solid var(--gaia-border);
  }
  .control-business-case .gaia-congrats-card__kpis > .gaia-congrats-card__kpi:nth-child(n + 4) {
    border-top: 1px solid var(--gaia-border);
  }
}

/* The sidebar on a visit with no width chosen yet [DEV-3571, review #808 8]. The server cannot
   know the window, so the shell arrives marked pending: below 1280px the rail's room is kept from
   the first paint and the expanded list stays hidden until the browser draws the collapsed rail.
   Nothing in the sidebar animates while that first width settles. */
@media (max-width: 1279.98px) {
  [data-sidebar-pending] {
    --gaia-shell-sidebar-width: 69px !important;
  }
  [data-sidebar-pending] .gaia-sidebar {
    width: 69px;
    visibility: hidden;
  }
}
[data-sidebar-settling] .gaia-sidebar,
[data-sidebar-settling] .gaia-sidebar * {
  transition: none !important;
}
