/* amplifi-ci base: element defaults, shared components and the console shell. Layouts stay per repo; these are the classes. */
:root { --shell-head-h: 5rem; --ci-rings: url('../art/rings.svg'); --ci-rings-coral: url('../art/rings-coral.svg'); --ci-icon: url('../logo/icon-coral.svg'); }
html { background-color: hsl(var(--background)); color: hsl(var(--foreground)); font-family: var(--font-body); font-synthesis: none; }
body { margin: 0; background-color: hsl(var(--background)); color: hsl(var(--foreground)); }

* { scrollbar-width: thin; scrollbar-color: hsl(var(--border)) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: hsl(var(--border)); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: hsl(var(--muted-foreground)); }
:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 2px; }
[contenteditable][data-placeholder]:empty::before { content: attr(data-placeholder); color: hsl(var(--muted-foreground)); }

/* Numbers line up: neither brand font has tabular figures. Letters in a value fall through to Quicksand. */
.tabular-nums, .ci-num { font-family: var(--font-num); font-variant-numeric: normal; }

/* Display face. Static uppercase strings only. */
.ci-display { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-synthesis: none; letter-spacing: .01em; }
.ci-display.text-xl { font-size: 1.5rem; line-height: 1.2; }
.ci-label { font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: .75rem; }

/* Selected and hover are two things sharing Tailwind's accent class. bg-accent is selected; on hover or focus the
   same class resolves to the quiet --hover value, wherever Tailwind's rule sits in the cascade. */
[class*="hover:bg-accent"]:hover:not(.bg-accent), [class*="focus:bg-accent"]:focus:not(.bg-accent) { --accent: var(--hover); --accent-foreground: var(--foreground); }
.bg-accent, .hover\:bg-accent:hover, .focus\:bg-accent:focus { color: hsl(var(--accent-foreground)); }
.bg-accent { box-shadow: inset 0 0 0 1px hsl(var(--primary-text)); }

/* Tables */
.aura-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.aura-table thead th { text-align: left; font-weight: 600; text-transform: none; color: hsl(var(--muted-foreground)); padding: 12px 16px; border-bottom: 1px solid hsl(var(--border)); white-space: nowrap; }
/* Numeric columns: thead th above outranks .text-right, so match it one class heavier. */
.aura-table thead th.text-right { text-align: right; }
.aura-table tbody td { padding: 12px 16px; vertical-align: middle; border-bottom: 1px solid hsl(var(--border)); }
.aura-table tbody tr:last-child td { border-bottom: none; }
.aura-table tbody tr { transition: background-color .12s, box-shadow .12s; }
.aura-table tbody tr:hover { background-color: hsl(var(--hover)); }
/* Rows hover in a coral tint on light, as the artboards' recent lists do ("selected" is the stronger coral 50%). */
:root:not(.dark):not([data-theme="dark"]) :is(.aura-table, .ci-table) tbody tr:hover:not(.is-selected) { background-color: color-mix(in srgb, var(--brand-coral) 16%, hsl(var(--card))); }
.aura-table tbody tr.is-selected, .aura-table tbody tr.is-selected:hover { background-color: hsl(var(--accent)); color: hsl(var(--accent-foreground)); box-shadow: inset 3px 0 0 hsl(var(--primary-text)); }

/* Status pills, filled as artboards 6 and 7 draw them: the core hue at half strength over the card, ink on light and
   white on dark. The word carries the meaning; the hue is the second cue. */
.aura-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; line-height: 1.4; padding: 1px 10px; border-radius: 999px; white-space: nowrap;
  background: hsl(var(--pill-neutral-fill)); color: hsl(var(--pill-foreground)); border: 1px solid transparent; }
.aura-pill.ok { background: hsl(var(--pill-ok-fill)); }
.aura-pill.warn { background: hsl(var(--pill-warn-fill)); }
.aura-pill.danger { background: hsl(var(--pill-danger-fill)); }
.aura-pill.info { background: hsl(var(--pill-info-fill)); }
/* The pacing pill ("on track"): the full hue. The artboard sets white on it; ink keeps it AA. */
.aura-pill.is-solid { color: hsl(var(--primary-foreground)); }
.aura-pill.ok.is-solid { background: hsl(var(--pill-ok)); }
.aura-pill.warn.is-solid { background: hsl(var(--pill-warn)); }
.aura-pill.danger.is-solid { background: hsl(var(--pill-danger)); }
.aura-pill.info.is-solid { background: hsl(var(--pill-info)); }
/* On a selected row the pill fills, as the skin's selected row does. */
/* Drawn with white text on dark (2.6:1); ink keeps it AA in both themes. */
.is-selected .aura-pill, .bg-accent .aura-pill { background: rgba(255, 255, 255, .45); border-color: transparent; color: var(--brand-ink); }

/* Letter tile: Soft Pause with a coral letter in both themes, as the recent lists draw it; the letter is Coral Ink (AA). */
.aura-avatar { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: none; border-radius: 8px; font-weight: 600; color: hsl(var(--avatar-foreground)) !important; background: hsl(var(--avatar)); border: 0; }
.aura-avatar.lg { width: 56px; height: 56px; border-radius: 10px; font-size: 18px; }
.min-h-8 { min-height: 2rem; }

/* Shell */
.ci-shell { display: flex; height: 100vh; height: 100dvh; overflow: hidden; }
.ci-sidebar { --ring: var(--sidebar-ring); display: flex; flex: none; flex-direction: column; width: 16.5rem; background: var(--sidebar-background); color: hsl(var(--sidebar-foreground)); border-right: 1px solid var(--sidebar-border); }
.ci-sidebar :focus-visible { outline-color: hsl(var(--sidebar-ring)); }
/* The sidebar head and the topbar share one height, so their bottom lines meet as one line across the page (ruling
   5 Nov 2026). 5rem fits the tallest head: kicker, product name and role. */
.ci-sidebar-head { box-sizing: border-box; display: flex; flex: none; align-items: center; gap: .75rem; height: var(--shell-head-h); min-height: 0; padding: 0 1.25rem; border-bottom: 1px solid var(--sidebar-border); overflow: hidden; }
.ci-sidebar-head img { width: 2.5rem; height: 2.5rem; flex: none; }
.ci-sidebar-kicker { display: block; font-size: 11px; line-height: 1.2; text-transform: uppercase; letter-spacing: .06em; color: hsl(var(--sidebar-muted)); font-weight: 500; }
/* 22px: Hugsallround has a small cap height, so it needs a couple of pixels more than Quicksand to read at 18 to 20. */
.ci-sidebar-name { display: block; font-size: 22px; line-height: 1.05; }
.ci-sidebar nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: .75rem; }
/* The nav scrolls in its own area with the foot pinned; the last 1.5rem fades so a cut-off heading reads as "more below". */
.ci-sidebar nav { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 1.5rem), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 1.5rem), transparent); padding-bottom: 1.5rem; }
/* Group headings in the display face, as artboards 6 to 9 set them; 20px because Hugs runs small. */
.ci-nav-group { margin: 1.25rem .75rem .5rem; font-family: var(--font-display); font-size: 20px; font-weight: 400; text-transform: uppercase; letter-spacing: .04em; color: hsl(var(--sidebar-foreground)); }
.ci-nav-item { display: flex; align-items: center; gap: .625rem; padding: .5rem .75rem; margin-bottom: .125rem; border: 1px solid transparent; border-radius: var(--radius); font-size: 15px; font-weight: 500; color: hsl(var(--sidebar-foreground)); }
.ci-nav-item:hover { background: var(--sidebar-hover); }
.ci-nav-item.is-active { background: var(--sidebar-active); border-color: var(--sidebar-active-border); color: hsl(var(--sidebar-active-foreground)); font-weight: 700; }
.ci-icon { width: 1.125rem; height: 1.125rem; flex: none; }
/* Nav markers (artboards 6 to 9): the holding device in white beside each item, with the item's icon inside it in Coral
   Ink (4.9:1 on white). The drawn blobs are plain; the icon goes inside so the marker still says what the item is. */
.ci-sidebar .ci-nav-item > svg.ci-icon { box-sizing: border-box; width: 2rem; height: 2rem; padding: .4375rem; background: #fffdfd; color: hsl(var(--avatar-foreground)); border-radius: 58% 42% 55% 45% / 44% 58% 42% 56%; }
.ci-sidebar .ci-nav-item { padding-top: .3125rem; padding-bottom: .3125rem; }
.ci-sidebar-foot { flex: none; padding: .75rem 1.25rem; border-top: 1px solid var(--sidebar-border); font-size: 12px; line-height: 1.5; color: hsl(var(--sidebar-muted)); }
.ci-sidebar-foot a { font-weight: 600; color: hsl(var(--sidebar-foreground)); }
/* The active item (ruling 18 Nov 2026, replacing the artboards' large outlined pill, which cut long names): a solid tab,
   white with Coral Ink text on light and #1f1f33 on dark, no outline. The label keeps the face and size of every other
   item and wraps; the marker turns coral with a white icon. Every label wraps rather than cuts. */
.ci-sidebar .ci-nav-label { flex: 1 1 auto; min-width: 0; line-height: 1.25; }
.ci-sidebar .ci-nav-item.is-active > svg.ci-icon { background: hsl(var(--primary)); color: #fff; stroke-width: 2; }
/* Collapsible group headings that consoles draw as buttons read like .ci-nav-group: white, display face, 20px. */
.ci-sidebar .ci-nav-group-btn { margin-top: .375rem; font-family: var(--font-display); font-size: 20px; font-weight: 400; letter-spacing: .04em; color: hsl(var(--sidebar-foreground)); }
.ci-sidebar .ci-nav-group-btn:hover { color: hsl(var(--sidebar-foreground)); }
/* A sidebar that keeps Tailwind nav classes: selected and muted read on the sidebar's own surface. */
.ci-sidebar .bg-accent, .ci-sidebar [class*="hover:bg-accent"]:hover { box-shadow: none; }
.ci-sidebar .bg-accent { background: var(--sidebar-active); color: hsl(var(--sidebar-active-foreground)); outline: 1px solid var(--sidebar-active-border); outline-offset: -1px; }
.ci-sidebar [class*="hover:bg-accent"]:hover:not(.bg-accent) { background: var(--sidebar-hover); color: hsl(var(--sidebar-foreground)); }
.ci-sidebar .text-muted-foreground { color: hsl(var(--sidebar-muted)); }
.ci-sidebar .border-border { border-color: var(--sidebar-border); }
.ci-sidebar .hover\:text-foreground:hover { color: hsl(var(--sidebar-foreground)); }
/* Nav items teleported out of the sidebar into a popover take the popover's surface. */
.ci-flyout { --sidebar-foreground: var(--popover-foreground); --sidebar-hover: hsl(var(--hover)); --sidebar-active: hsl(var(--accent)); --sidebar-active-foreground: var(--accent-foreground); --sidebar-active-border: transparent; }

.ci-main { display: flex; flex: 1 1 0; flex-direction: column; min-width: 0; }
.ci-topbar { box-sizing: border-box; display: flex; flex: none; align-items: center; justify-content: space-between; gap: .75rem; height: var(--shell-head-h); min-height: 0; padding: 0 1.5rem; border-bottom: 1px solid var(--topbar-line); }
.ci-topbar-title { display: flex; align-items: center; gap: .625rem; min-width: 0; font-size: 22px; line-height: 1.2; color: hsl(var(--topbar-title)); }
.ci-topbar-title > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ci-topbar-actions { display: flex; flex: none; align-items: center; gap: .625rem; font-size: 14px; }
.ci-burger { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; flex: none; border: 0; border-radius: var(--radius); background: transparent; color: hsl(var(--topbar-title)); cursor: pointer; }
.ci-burger:hover { background: hsl(var(--hover)); }
.ci-scope { display: inline-flex; align-items: center; gap: .375rem; max-width: 16rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: .25rem .75rem; border: 1px solid hsl(var(--primary-text)); border-radius: var(--radius); font-size: 13px; font-weight: 500; color: hsl(var(--primary-text)); }
.ci-scope:hover { background: hsl(var(--hover)); }
.ci-main-scroll { flex: 1 1 0; min-height: 0; overflow-y: auto; padding: 1.5rem; scroll-padding: 1.5rem; }
/* A focus ring inside a scrolling box draws inward, so the box's edge never cuts it (tables, chip rows that scroll). */
:is(.ci-table-wrap, .ci-sidebar nav, [class*="overflow-x-auto"], [class*="overflow-auto"], [class*="overflow-y-auto"]) :focus-visible { outline-offset: -2px; }

/* Top bar controls, as the skin draws them: coral icons and coral outlines, Coral Ink on light. */
#aura-theme-btn { width: 2.25rem; height: 2.25rem; border-radius: 999px; border: 0; background: transparent; color: hsl(var(--primary-text)); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.ci-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; flex: none; border: 0; border-radius: 999px; background: transparent; color: hsl(var(--primary-text)); cursor: pointer; }
.ci-icon-btn:hover { background: hsl(var(--hover)); }
.ci-icon-btn .ci-icon, #aura-theme-btn svg { width: 1.25rem; height: 1.25rem; }
.ci-avatar { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; flex: none; border-radius: 999px; border: 1px solid hsl(var(--primary-text)); background: transparent; color: hsl(var(--primary-text)); font-size: 12px; font-weight: 600; text-transform: uppercase; }
#aura-theme-btn:hover { background: hsl(var(--hover)); }
#aura-theme-btn.is-floating { position: fixed; right: 1rem; bottom: 1rem; z-index: 9999; background: hsl(var(--card)); border: 1px solid hsl(var(--primary-text)); }

[data-sidebar="closed"] .ci-sidebar { width: 4rem; }
[data-sidebar="closed"] .ci-sidebar-kicker, [data-sidebar="closed"] .ci-sidebar-name, [data-sidebar="closed"] .ci-sidebar .ci-nav-label, [data-sidebar="closed"] .ci-nav-group, [data-sidebar="closed"] .ci-sidebar-foot { display: none; }
[data-sidebar="closed"] .ci-sidebar-head { padding: 0 .75rem; justify-content: center; }
[data-sidebar="closed"] .ci-sidebar .ci-nav-item { justify-content: center; padding: .5rem; }
.ci-scrim { display: none; }

@media (max-width: 767px) {
  .ci-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 60; width: min(17rem, 84vw); transform: translateX(-100%); transition: transform .18s ease; }
  [data-sidebar="open"] .ci-sidebar { transform: none; }
  [data-sidebar="open"] .ci-scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, .5); }
  [data-sidebar="closed"] .ci-sidebar { width: min(17rem, 84vw); }
  [data-sidebar="closed"] .ci-sidebar-kicker, [data-sidebar="closed"] .ci-sidebar-name, [data-sidebar="closed"] .ci-sidebar .ci-nav-label { display: revert; }
  :root { --shell-head-h: 4.25rem; }
  .ci-topbar { padding: 0 1rem; }
  .ci-topbar-title { font-size: 17px; }
  .ci-hero::before { display: none; }
  .ci-kpi-value { font-size: 1.5rem; }
  .ci-kpi--lg .ci-kpi-value, .ci-live-tile .ci-kpi-value { font-size: 2.25rem; }
  .ci-hero { min-height: 9rem; }
  .ci-main-scroll { padding: 1rem; }
  .ci-hide-narrow { display: none !important; }
}

/* Hero: dashboards only. Bright in both themes, so ink is scoped here. */
.ci-hero { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: .375rem; min-height: 12rem; padding: 1.75rem clamp(1.25rem, 4vw, 4rem); border-radius: var(--radius-panel); background: var(--hero-background, var(--grad-heatwave)); color: hsl(var(--hero-foreground)); --ring: var(--hero-foreground); }
/* The hero art is the CI's own: blob, "a" and sound-wave stripes extracted as one vector from artboards 6 and 8 (the
   dark artboards use the identical artwork). Anchored right, scaled to the hero's height, cropped by its rounded edge. */
.ci-hero::after { content: ""; position: absolute; inset: 0; background: url('../art/hero-mark.svg') right center / auto 100% no-repeat; pointer-events: none; }
/* No phone artboard exists, and the artwork needs the hero's width: on a phone it would sit under the text, so the
   hero shows the gradient alone there rather than a recomposed or shrunken mark. */
@media (max-width: 767px) { .ci-hero::after { display: none; } }
.ci-hero::before { content: none; }
.ci-hero > * { position: relative; z-index: 1; }
.ci-hero-eyebrow { font-size: 15px; font-weight: 500; }
.ci-hero-title { font-size: clamp(2.25rem, 5.5vw, 4.75rem); line-height: 1; letter-spacing: .02em; }
.ci-hero-sub { font-size: 16px; font-weight: 600; max-width: 40rem; }
.ci-chip { display: inline-flex; align-items: center; gap: .25rem; padding: .125rem .625rem; border: 1px solid currentColor; border-radius: 999px; font-size: 12px; font-weight: 500; color: hsl(var(--hero-foreground)); }
.ci-chip:hover { background: rgba(255, 255, 255, .25); }

/* KPI: value is Quicksand with tabular digits, never the display face. Each card in a row takes the next core colour
   (coral, violet, orange, yellow, lime, blue) for its icon blob and its number, as artboards 6 to 9 draw them. On light
   the number is the hue's AA shade (--hue-N-text); the blob keeps the hue. ci-kpi--hue-N pins a card to one colour. */
.ci-kpi { --kpi-hue: var(--hue-1); --kpi-hue-text: var(--hue-1-text); padding: 1rem; border-radius: var(--radius-card); background: hsl(var(--kpi)); border: 1px solid hsl(var(--card-border)); }
.ci-kpi:nth-child(6n+2), .ci-kpi.ci-kpi--hue-2 { --kpi-hue: var(--hue-2); --kpi-hue-text: var(--hue-2-text); }
.ci-kpi:nth-child(6n+3), .ci-kpi.ci-kpi--hue-3 { --kpi-hue: var(--hue-3); --kpi-hue-text: var(--hue-3-text); }
.ci-kpi:nth-child(6n+4), .ci-kpi.ci-kpi--hue-4 { --kpi-hue: var(--hue-4); --kpi-hue-text: var(--hue-4-text); }
.ci-kpi:nth-child(6n+5), .ci-kpi.ci-kpi--hue-5 { --kpi-hue: var(--hue-5); --kpi-hue-text: var(--hue-5-text); }
.ci-kpi:nth-child(6n+6), .ci-kpi.ci-kpi--hue-6 { --kpi-hue: var(--hue-6); --kpi-hue-text: var(--hue-6-text); }
.ci-kpi.ci-kpi--hue-1 { --kpi-hue: var(--hue-1); --kpi-hue-text: var(--hue-1-text); }
.ci-kpi-label { font-family: var(--font-display); font-size: 16px; font-weight: 400; text-transform: uppercase; letter-spacing: .03em; line-height: 1.15; color: hsl(var(--kpi-label)); }
/* Ruling 5 Nov 2026: the KPI numeral in the display face, as drawn (Quicksand fills any glyph the face lacks). */
.ci-kpi-value { font-family: var(--font-display); font-size: 2rem; line-height: 1.15; font-weight: 400; color: hsl(var(--kpi-value)); }
/* Ruling 5 Nov 2026: the numeral takes the raw CI colour on light, as artboards 6 and 8 draw it (below AA for yellow,
   lime, orange, coral and violet, chosen knowingly). Dark keeps its AA shades, which are the raw values except blue. */
.ci-kpi .ci-kpi-value { color: var(--kpi-hue); }
/* Dark (option A) keeps the raw CI colours too, Signal Blue included. */
/* Six across (the Ads row): the number shrinks with the viewport so a seven-figure balance fits. */
.ci-kpi--dense .ci-kpi-value { font-size: clamp(1rem, 1.4vw, 1.75rem); }
/* Ad Ops row: the big number, and the label in Coral Ink on light, white on dark. */
.ci-kpi--lg .ci-kpi-value { font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1; }
.ci-kpi--lg .ci-kpi-label { color: hsl(var(--live-text)); }
/* Live delivery tile (artboards 8, 9): inset on light with Coral Ink type; outlined on dark with white. */
.ci-live-tile { padding: 1rem 1.25rem; border-radius: var(--radius-card); background: hsl(var(--card-inset)); border: 1px solid transparent; color: hsl(var(--live-text)); }
:is(.dark, [data-theme="dark"]) .ci-live-tile { border-color: hsl(var(--card-border)); }
.ci-live-tile .ci-kpi-label, .ci-live-tile .ci-kpi-value { color: hsl(var(--live-text)); }
.ci-live-tile .ci-kpi-value { font-size: clamp(1.5rem, 3vw, 3.5rem); line-height: 1.05; }
.ci-live-title, .ci-live-meta { color: hsl(var(--live-text)); }
.ci-panel-title.is-brand { color: hsl(var(--primary-text)); }
.ci-kpi-help { font-size: 12px; color: hsl(var(--muted-foreground)); }
.bg-card.border, .bg-card.border-border { border-color: hsl(var(--card-border)); }

/* Coral buttons stay opaque on hover: a faded coral over a dark card turns muddy under ink. */
.bg-primary:is(button, a, [role="button"]):hover:not(:disabled) { background-color: hsl(var(--primary-hover)); }

/* A boxed group inside a card is a nested tile, as the skin draws it: light, a flat fill with no stroke; dark, the
   tile fill with the card's Violet hairline. Controls keep their own borders. */
:is(.bg-card, .ci-kpi, .ci-panel) :is(div, section, article, ul, ol, dl, details, fieldset, figure):is(.border, .border-2) {
  border-color: transparent; background-color: hsl(var(--card-inset));
}
:is(.dark, [data-theme="dark"]) :is(.bg-card, .ci-kpi, .ci-panel) :is(div, section, article, ul, ol, dl, details, fieldset, figure):is(.border, .border-2) {
  border-color: hsl(var(--card-border));
}
.ci-kpi-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; min-height: 2rem; }
/* Coral is a fill: ink on top. The icon is decoration; the label beside it carries the meaning. */
/* The blob takes the card's hue with a white glyph, as drawn. The glyph is decoration (the label carries the meaning), so
   it is exempt from the contrast rule that puts ink on coral text. */
.ci-kpi-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; flex: none; background: var(--kpi-hue, var(--hue-1)); color: #fff; border-radius: 58% 42% 55% 45% / 44% 58% 42% 56%; transform: rotate(-8deg); }
.ci-kpi-icon .ci-icon { transform: rotate(8deg); }
.ci-kpi-icon .ci-icon { width: 1rem; height: 1rem; }
a.ci-kpi { display: block; color: inherit; text-decoration: none; transition: border-color .12s; }
.ci-kpi-value { white-space: nowrap; }
.ci-chip { text-decoration: none; }
a.ci-kpi:hover { border-color: hsl(var(--ring)); }

/* A dashboard panel. Its title takes ci-display only when the string is static. */
.ci-panel { padding: 1.25rem 1.5rem; border-radius: var(--radius-panel); background: hsl(var(--card)); border: 1px solid hsl(var(--card-border)); }
.ci-panel-title { font-size: 1.375rem; line-height: 1.2; }
.ci-bullet { display: inline-block; width: .75rem; height: .75rem; flex: none; background: hsl(var(--primary)); border-radius: 52% 48% 56% 44% / 46% 56% 44% 54%; }
.ci-attention { display: flex; gap: 1rem; padding: .75rem 1.25rem; border-radius: var(--radius-card); background: hsl(var(--attention)); color: hsl(var(--attention-foreground)); border: 1px solid hsl(var(--attention-border)); }
.ci-attention-mark { flex: none; font-size: 1.75rem; line-height: 1.1; font-weight: 700; }
/* Ruling 5 Nov 2026: the white "!" on the coral-tint bar, as artboard 6 draws it (decoration; the heading names it). */
.ci-attention-mark { color: #fff; font-size: 2rem; }
.ci-attention a { color: inherit; }
.ci-attention a:hover { text-decoration: underline; }

/* Donut: value on a track, both from chart tokens. Pair it with a direct label so the number never rests on colour. */
.ci-donut { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 8rem; height: 8rem; flex: none; }
.ci-donut svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ci-donut-track, .ci-donut-value { fill: none; stroke-width: 12; }
.ci-donut-track { stroke: hsl(var(--donut-track, var(--chart-track))); }
.ci-donut--live { width: 9.5rem; height: 9.5rem; --donut-track: var(--background); }
:is(.dark, [data-theme="dark"]) .ci-donut--live { --donut-track: var(--foreground); }
.ci-donut--live .ci-donut-value { stroke: var(--brand-coral); }
.ci-donut--live .ci-donut-label { color: hsl(var(--live-text)); }
.ci-donut--live .ci-donut-label .ci-num { font-size: 2rem; font-weight: 700; line-height: 1; }
/* The live mark: the holding device in orange, as drawn; dimmed while connecting. */
.ci-bullet.ci-bullet--live { width: 1rem; height: 1rem; background: var(--brand-orange); transition: opacity .2s; }
.ci-bullet--live.is-idle { opacity: .35; }
.ci-donut-value { stroke: hsl(var(--chart-1)); transition: stroke-dasharray .4s ease; }
.ci-donut-label { display: flex; flex-direction: column; align-items: center; line-height: 1.15; text-align: center; }
.ci-bar { background: hsl(var(--chart-1)); }
/* Pacing bar: lime on the track, as drawn. The spend figures beside it carry the value. */
.ci-pace-track { height: .375rem; overflow: hidden; border-radius: 999px; background: hsl(var(--muted)); }
.ci-pace-bar { height: 100%; border-radius: 999px; background: hsl(var(--pill-ok)); }

/* Empty, loading */
.ci-empty { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 2.5rem 1rem; text-align: center; color: hsl(var(--muted-foreground)); font-size: 14px; }
.ci-empty img { width: 3rem; height: 3rem; }
@keyframes ci-pulse { 0%, 100% { transform: scale(.82); opacity: .75; } 50% { transform: scale(1.06); opacity: 1; } }
.ci-loader { display: inline-block; width: 2rem; height: 2rem; background: var(--ci-icon) center / contain no-repeat; animation: ci-pulse 1.1s ease-in-out infinite; }
/* The same holding device in the text colour, for a loader on a fill or over a picture (a coral button, a dark scrim). */
/* The icon in its two brand colours only (guide p10, p12): white on a coral fill, coral elsewhere; never the text colour. */
.ci-loader-current { display: inline-block; flex: none; width: 1rem; height: 1rem; background-color: var(--brand-coral);
  -webkit-mask: url('../logo/icon-white.svg') center / contain no-repeat; mask: url('../logo/icon-white.svg') center / contain no-repeat;
  animation: ci-pulse 1.1s ease-in-out infinite; }
@media (forced-colors: active) { .ci-loader-current { background-color: CanvasText; } }
:is(.ci-btn--primary, .ci-auth-submit, .ci-hero, .bg-primary, .ci-sidebar) .ci-loader-current { background-color: #fff; }

/* Sign-in and other centred cards (artboard 5): a large Soft Pause card on filled coral bands; heading, labels, links and
   field strokes in coral. Coral as text and as a control stroke is Coral Ink on light (AA); the button keeps ink on
   coral. Dark extends the artboard: black bands, the card on its Violet hairline, coral type. */
:root { --ci-bands: url('../art/bands.svg'); --ci-bands-dark: url('../art/bands-dark.svg'); }
.ci-auth-page { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 1.5rem 1rem; background-color: var(--brand-coral); background-image: var(--ci-bands); background-size: cover; background-position: center; }
.dark .ci-auth-page, [data-theme="dark"] .ci-auth-page { background-color: #000; background-image: var(--ci-bands-dark); }
@media (prefers-color-scheme: dark) { html:not([data-theme]) .ci-auth-page { background-color: #000; background-image: var(--ci-bands-dark); } }
.ci-auth-card { width: min(100%, 40rem); padding: clamp(1.75rem, 4vw, 3rem) clamp(1.25rem, 5vw, 4.5rem); border-radius: clamp(1.75rem, 4vw, 3rem); background: hsl(var(--background)); color: hsl(var(--foreground)); box-shadow: 0 28px 70px -10px rgba(31, 0, 51, .5), 0 6px 18px rgba(31, 0, 51, .18); }
/* Legal pages: the same field and card, top-aligned and wider for reading. */
.ci-legal-field { min-height: 0; align-items: flex-start; padding: 2.5rem 1rem 4rem; }
.ci-auth-card.ci-legal-card { width: min(100%, 52rem); margin: 0 auto; }
.dark .ci-auth-card, [data-theme="dark"] .ci-auth-card { background: hsl(var(--card)); border: 1px solid hsl(var(--card-border)); }
.ci-auth-card .legal-title { color: hsl(var(--primary-text)); font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.1; }
/* Links read by weight, as drawn; the underline returns on hover. */
.ci-auth-card a:not(.ci-btn):not(.ci-auth-oauth):not(.ci-auth-submit) { color: hsl(var(--primary-text)); font-weight: 700; text-decoration: none; }
.ci-auth-card a:not(.ci-btn):not(.ci-auth-oauth):not(.ci-auth-submit):hover { text-decoration: underline; }
/* An error page swapped into a console by htmx: the card alone, in the content area. */
.ci-main-scroll .ci-auth-page, .dark .ci-main-scroll .ci-auth-page { min-height: 0; padding: 2rem 0; background: none; }
.ci-main-scroll .ci-auth-card { box-shadow: none; background: hsl(var(--card)); border: 1px solid hsl(var(--card-border)); }

/* Motion, forced colours, print */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
@media (forced-colors: active) {
  .ci-sidebar, .ci-hero { forced-color-adjust: auto; background: Canvas; color: CanvasText; }
  .ci-nav-item.is-active, .bg-accent { outline: 2px solid Highlight; }
  .ci-hero::after, .ci-hero::before { display: none; }
}
@media print {
  :root, .dark, [data-theme="dark"] { --background: 0 0% 100%; --foreground: 0 0% 0%; --card: 0 0% 100%; --card-foreground: 0 0% 0%; --muted-foreground: 0 0% 25%; --border: 0 0% 75%; color-scheme: light; }
  html, body { background: #fff !important; color: #000 !important; }
  .ci-sidebar, .ci-topbar, .ci-scrim, #aura-theme-btn, .ci-hero::after, .ci-hero::before { display: none !important; }
  .ci-shell { display: block; height: auto; overflow: visible; }
  .ci-main-scroll { overflow: visible; padding: 0; }
}

/* Sign-in parts (artboard 5). AMPLIFI's sign-in templates use these, not utilities, so the design is one place. */
.ci-auth-shell { flex-direction: column; gap: 1.25rem; }
.ci-auth-theme { position: absolute; top: 1.25rem; right: 1.25rem; }
.ci-auth-logo { display: flex; justify-content: center; margin: 0 0 1.25rem; }
.ci-auth-logo img { height: 2.75rem; width: auto; }
.ci-auth-logo-dark { display: none; }
:is(.dark, [data-theme="dark"]) .ci-auth-logo-dark { display: block; }
:is(.dark, [data-theme="dark"]) .ci-auth-logo-light { display: none; }
@media (prefers-color-scheme: dark) { html:not([data-theme]) .ci-auth-logo-dark { display: block; } html:not([data-theme]) .ci-auth-logo-light { display: none; } }
.ci-auth-head { text-align: center; margin: 0 0 1.75rem; }
.ci-auth-title { margin: 0 0 .5rem; color: hsl(var(--primary-text)); font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.1; }
.ci-auth-head .ci-auth-text { font-size: 1.125rem; font-weight: 300; }
.ci-auth-text { color: hsl(var(--primary-text)); font-size: .9375rem; }
.ci-auth-label { display: block; margin: 0 0 .5rem; color: hsl(var(--primary-text)); font-size: 1.0625rem; font-weight: 500; }
input.ci-auth-input, .ci-auth-input { box-sizing: border-box; width: 100%; min-height: 3.5rem; padding: .75rem 1.25rem; border-radius: 1rem; border: 1px solid hsl(var(--primary-text)); background: transparent; color: hsl(var(--foreground)); font: inherit; font-size: 1rem; outline: none; transition: box-shadow .15s; }
input.ci-auth-input::placeholder, .ci-auth-input::placeholder { color: hsl(var(--primary-text)); opacity: 1; font-weight: 300; }
input.ci-auth-input:focus { box-shadow: 0 0 0 2px hsl(var(--ring)); }
input.ci-auth-input.is-invalid { border-color: hsl(var(--destructive)); }
input.ci-auth-digit, .ci-auth-digit { box-sizing: border-box; width: 3rem; height: 3.5rem; text-align: center; font-size: 1.375rem; font-weight: 600; border-radius: .875rem; border: 1px solid hsl(var(--primary-text)); background: transparent; color: hsl(var(--foreground)); outline: none; }
input.ci-auth-digit:focus { box-shadow: 0 0 0 2px hsl(var(--ring)); }
.ci-auth-eye { position: absolute; inset: 0 0 0 auto; display: flex; align-items: center; padding: 0 1.1rem; background: none; border: 0; color: hsl(var(--primary-text)); cursor: pointer; }
.ci-auth-error { margin-top: .375rem; }
.ci-auth-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 0 1.25rem; }
.ci-auth-link, .ci-auth-card a.ci-auth-link { color: hsl(var(--primary-text)); font-size: 1rem; font-weight: 700; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
.ci-auth-link:hover { text-decoration: underline; }
.ci-auth-oauth { display: inline-flex; flex: 1; align-items: center; justify-content: center; gap: .75rem; min-height: 3.5rem; padding: 0 1.25rem; border-radius: 1rem; border: 1px solid hsl(var(--primary-text)); background: transparent; color: hsl(var(--primary-text)); font-size: 1.25rem; font-weight: 400; text-decoration: none; }
.ci-auth-oauth:hover { background: hsl(var(--hover)); }
.ci-auth-oauth svg { width: 1.6rem; height: 1.6rem; }
.ci-auth-or { display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0 0; color: hsl(var(--primary-text)); font-size: 1rem; }
.ci-auth-or::before, .ci-auth-or::after { content: ""; flex: 1; border-top: 1px solid var(--brand-coral); }
/* The artboard sets white on coral (2.8:1); ink keeps the button AA. */
:is(button, a).ci-auth-submit, .ci-auth-submit { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 3.5rem; border: 0; border-radius: 1rem; background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); font: inherit; font-size: 1.25rem; font-weight: 500; cursor: pointer; }
:is(button, a).ci-auth-submit:hover { background: hsl(var(--primary-hover)); }
.ci-auth-foot { margin-top: 1.5rem; text-align: center; }
.ci-auth-legal { display: flex; align-items: center; justify-content: center; gap: 1.5rem; font-size: .875rem; font-weight: 500; color: hsl(var(--primary-foreground)); }
.ci-auth-legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
:is(.dark, [data-theme="dark"]) .ci-auth-legal { color: hsl(var(--foreground)); }

/* Product identity (brand guide's six products). The colour is an accent: the symbol's tile, never text, never coral's place. */
.ci-product--studio { --product: #d4df2b; }
.ci-product--audience { --product: #ffc33e; }
.ci-product--ads { --product: #fe750b; }
.ci-product--commerce { --product: #8a88f3; }
.ci-product--insight { --product: #333deb; }
.ci-product--organise { --product: #743e1c; }
.ci-product--control { --product: #743e1c; }
.ci-product--docs { --product: #5c5560; }
.ci-product-mark { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; flex: none; border-radius: .875rem; background: #fffdfd; box-shadow: inset 0 0 0 2px var(--product, #fffdfd); }
.ci-sidebar-head .ci-product-mark img, .ci-product-mark img { width: 1.75rem; height: 1.75rem; object-fit: contain; }
:is(.dark, [data-theme="dark"]) .ci-product-mark { background: #0b0b13; }
.ci-sidebar-role { display: block; margin-top: .125rem; font-size: 12px; line-height: 1.2; font-weight: 600; color: hsl(var(--sidebar-foreground)); }
[data-sidebar="closed"] .ci-sidebar-role { display: none; }
@media (max-width: 767px) { [data-sidebar="closed"] .ci-sidebar-role { display: block; } }
