/* Generated by design-system/scripts/build.mjs from tokens/tokens.json - do not edit. v0.5.0 */
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/Rubik-Regular.woff2") format("woff2"); }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/Rubik-Medium.woff2") format("woff2"); }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/Rubik-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/InstrumentSans-Regular.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/InstrumentSans-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/GeistMono-Regular.woff2") format("woff2"); }
/* Default theme: Bridge. Other themes: [data-theme="stone"], [data-theme="stage"]. :host so the tokens also apply when loaded into a shadow root. */
:root, :host {
  color-scheme: light;
  --av-color-ground: #EDF1F5; /* App background behind cards and the sidebar */
  --av-color-surface: #FFFFFF; /* Cards, sheets, inputs */
  --av-color-hover: #F5F7FA; /* Row hover, table header fill */
  --av-color-line: #DCE2E9; /* Card borders and row dividers */
  --av-color-line-strong: #C5CDD6; /* Secondary-button borders, strong dividers (decorative) */
  --av-color-control: #8A95A1; /* Input, select and checkbox borders. 3:1 on white, so form fields stay visible */
  --av-color-ink: #171A1F; /* Body text, primary buttons */
  --av-color-ink-2: #3A424D; /* Secondary text */
  --av-color-muted: #5B6672; /* Captions and help text. Lightest allowed text colour */
  --av-color-focus: #007CB1; /* Keyboard focus ring, 2px */
  --av-color-link: #00689B; /* Links in running text */
  --av-color-current: #007CB1; /* Current sidebar item / section fill */
  --av-color-current-text: #FFFFFF; /* Current sidebar item text */
  --av-color-current-line: transparent; /* Current sidebar item outline */
  --av-color-current-icon: #FFFFFF; /* Icon of the current sidebar item */
  --av-color-marker: #2CABE3; /* Small non-text markers: current sub-item bar, active indicators */
  --av-color-brand: #2CABE3; /* Arvio sky blue. Markers, accents, focus on dark. Never under white text (2.6:1) */
  --av-color-brand-strong: #007CB1; /* Filled blue with white text: current tab and section, Open / go-to buttons */
  --av-color-brand-text: #00689B; /* Blue text on white, ground or brand-soft */
  --av-color-brand-soft: #E3F2FB; /* Selected rows, open/info chip fill */
  --av-color-brand-line: #9CCFEA; /* Open/info chip outline (decorative) */
  --av-color-coral: #DC4437; /* The logo red: wordmark on light grounds, NEW badges, live-state indicators, chart subject. Never body text */
  --av-color-coral-strong: #C5372A; /* Filled coral buttons with white text */
  --av-color-coral-text: #A82E1F; /* Coral-tinted text on coral-soft */
  --av-color-coral-soft: #FBEAE6; /* Highlight background and live chip fill */
  --av-color-coral-line: #F2B8AF; /* Live chip outline (decorative) */
  --av-color-success: #1E7A4F; /* Success icons and dots */
  --av-color-success-text: #1B6B45; /* Success text */
  --av-color-success-soft: #E4F2EA; /* Success chip background */
  --av-color-success-line: #A9D3BC; /* Success chip outline (decorative) */
  --av-color-warning: #C27A0E; /* Warning icons and dots */
  --av-color-warning-text: #8A4B00; /* Warning text */
  --av-color-warning-soft: #FCF0DC; /* Warning chip and banner background */
  --av-color-warning-line: #EDC98F; /* Warning chip outline (decorative) */
  --av-color-danger: #B42318; /* Errors, destructive buttons, End call */
  --av-color-danger-text: #B42318; /* Danger text: chips, flags, error messages */
  --av-color-danger-soft: #FCE8E6; /* Error chip background */
  --av-color-danger-line: #F1B5AE; /* Danger chip outline (decorative) */
  --av-color-info: #00689B; /* Info text and icons (same as brand-text) */
  --av-color-info-soft: #E3F2FB; /* Info chip background */
  --av-color-info-line: #9CCFEA; /* Info chip outline (decorative) */
  --av-color-neutral-soft: #E9EDF2; /* Scheduled / cancelled / draft chip background */
  --av-color-neutral-dot: #7A8591; /* Scheduled chip dot (non-text only) */
  --av-color-neutral-line: #C5CDD6; /* Neutral chip outline (decorative) */
  --av-color-scrim: rgba(21, 23, 26, 0.38); /* Overlay behind modals and side sheets */
  --av-color-stage: #0F1013; /* Dark Stage ground */
  --av-color-stage-panel: #1A1C20; /* Panels on the stage */
  --av-color-stage-text: #F3F3F0; /* Text on the stage */
  --av-color-stage-muted: #A9ADB3; /* Secondary text on the stage */
  --av-chart-1: #2F4B6E; /* First series, the main comparison */
  --av-chart-2: #5F8A6E; /* Second series */
  --av-chart-3: #7A5418; /* Third series */
  --av-chart-4: #8E6A9C; /* Fourth series */
  --av-chart-highlight: #DC4437; /* The subject only */
  --av-chart-other: #7A7F86; /* "Other", the market as a whole, reference lines (dashed) */
  --av-stage-cue: #E0B54A; /* Small highlighted labels and warnings on dark slides */
  --av-stage-accent: #F07A6E; /* Accent marks and small accent text on dark slides */
  --av-font-family-sans: 'Rubik', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif; /* All UI. Rubik 400 for text, 500 for buttons and labels, 600 for titles. Stone theme: Instrument Sans */
  --av-font-family-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace; /* Technical strings only: formulas, codes, IDs, hashes. Never amounts, dates or times */
  --av-font-family-fallback-office: Arial; /* Office fallback where the brand font is not embedded: Excel, matplotlib without the font files */
  --av-font-size-caption: 12px; /* Console captions, chips */
  --av-font-size-small: 13px; /* Console secondary text */
  --av-font-size-body: 14px; /* Console body */
  --av-font-size-section: 15px; /* Console section titles */
  --av-font-size-heading: 18px; /* Console page header title */
  --av-font-size-title: 24px; /* Console page title */
  --av-font-size-field-touch: 16px; /* Form fields on touch screens: iOS zooms into smaller ones */
  --av-font-line-height-caption: 1.35; /* Line height for font-size-caption */
  --av-font-line-height-small: 1.4; /* Line height for font-size-small */
  --av-font-line-height-body: 1.45; /* Line height for font-size-body */
  --av-font-line-height-section: 1.35; /* Line height for font-size-section */
  --av-font-line-height-heading: 1.3; /* Line height for font-size-heading */
  --av-font-line-height-title: 1.25; /* Line height for font-size-title */
  --av-font-weight-regular: 400;
  --av-font-weight-medium: 500;
  --av-font-weight-semibold: 600; /* Headings and titles. Arvio ships no 700 (Bold) */
  --av-font-weight-ui: 500; /* Buttons, labels, chips, current nav item. Stone theme: 600 */
  --av-radius-control: 8px; /* Inputs, buttons */
  --av-radius-card: 12px; /* Cards */
  --av-radius-sheet: 14px; /* Main sheet, modals */
  --av-radius-pill: 999px; /* Fully round: avatars, toggles, Stone chips */
  --av-radius-chip: 6px; /* Status chips. Stone theme: 999px (pill) */
  --av-radius-menu: 10px; /* Dropdown menus */
  --av-space-1: 4px;
  --av-space-2: 8px;
  --av-space-3: 12px;
  --av-space-4: 16px;
  --av-space-5: 20px;
  --av-space-6: 24px;
  --av-space-8: 32px;
  --av-space-10: 40px;
  --av-space-14: 56px;
  --av-space-16: 64px; /* Web: between related sections */
  --av-space-24: 96px; /* Web: between sections */
  --av-space-32: 128px; /* Web: hero and major breaks */
  --av-size-control: 36px; /* Console button / input height */
  --av-size-control-sm: 32px; /* Compact controls, filter pills */
  --av-size-chip: 22px; /* Status chip height */
  --av-size-avatar: 28px; /* Initials circle beside a person's name */
  --av-size-touch-min: 44px; /* Minimum touch target on phones */
  --av-size-chip-dot: 0px; /* Status chip dot. Bridge chips have no dot (the outline carries the colour); Stone: 6px. Live always shows it */
  --av-icon-stroke: 1.75; /* Lucide icon stroke width */
  --av-motion-pulse: av-pulse 1.8s ease-out infinite; /* Live-state and waiting markers (keyframes in components.css) */
  --av-motion-spin: av-spin 1s linear infinite; /* Loading spinner (keyframes in components.css) */
  --av-shadow-modal: 0 24px 48px -12px rgba(21, 23, 26, 0.25); /* Modals and side sheets only */
  --av-shadow-popover: 0 12px 32px -12px rgba(21, 23, 26, 0.22); /* Popovers, menus and tooltips */
}
/* Stone: Remote Inspection today; the direction the product moves to. Bridge for existing apps, documents and the website. */
[data-theme="stone"], :host([data-theme="stone"]) {
  --av-color-ground: #F3F3F0;
  --av-color-hover: #F7F7F4;
  --av-color-line: #E4E4DF;
  --av-color-line-strong: #D3D3CD;
  --av-color-control: #8C8C84;
  --av-color-ink: #15171A;
  --av-color-ink-2: #3B3F45;
  --av-color-muted: #5F646B;
  --av-color-focus: #15171A;
  --av-color-link: #15171A;
  --av-color-current: #FFFFFF;
  --av-color-current-text: #15171A;
  --av-color-current-line: #E4E4DF;
  --av-color-current-icon: #DC4437;
  --av-color-marker: #DC4437;
  --av-color-brand-line: transparent;
  --av-color-coral-line: transparent;
  --av-color-success-line: transparent;
  --av-color-warning-line: transparent;
  --av-color-danger-line: transparent;
  --av-color-info: #2D5BBF;
  --av-color-info-soft: #E8EEFA;
  --av-color-info-line: transparent;
  --av-color-neutral-soft: #EEF0F2;
  --av-color-neutral-dot: #7A7F86;
  --av-color-neutral-line: transparent;
  --av-font-family-sans: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --av-font-weight-ui: 600;
  --av-radius-chip: 999px;
  --av-size-chip-dot: 6px;
  color-scheme: light;
}
/* Stage (dark): Dark slides, one dark web section */
[data-theme="stage"], :host([data-theme="stage"]) {
  --av-color-ground: #0F1013;
  --av-color-surface: #1A1C20;
  --av-color-hover: #22252A;
  --av-color-line: #2C3036;
  --av-color-line-strong: #3D424A;
  --av-color-ink: #F3F3F0;
  --av-color-ink-2: #D3D5D8;
  --av-color-muted: #A9ADB3;
  --av-color-coral-text: #F07A6E;
  --av-color-neutral-soft: #2A2D33;
  --av-color-control: #6E747D;
  --av-color-focus: #6CC4EE;
  --av-color-link: #6CC4EE;
  --av-color-info: #6CC4EE;
  --av-color-info-soft: #16303F;
  --av-color-brand-text: #6CC4EE;
  --av-color-brand-soft: #16303F;
  --av-color-coral-soft: #3A1F1C;
  --av-color-success-text: #7DD3A6;
  --av-color-success-soft: #173326;
  --av-color-warning-text: #F2C27A;
  --av-color-warning-soft: #3A2C14;
  --av-color-danger-text: #F4A49A;
  --av-color-danger-soft: #3D1D1A;
  --av-color-brand-line: transparent;
  --av-color-info-line: transparent;
  --av-color-success-line: transparent;
  --av-color-warning-line: transparent;
  --av-color-danger-line: transparent;
  --av-color-neutral-line: transparent;
  --av-color-coral-line: transparent;
  --av-chart-1: #6988B5;
  --av-chart-2: #78AC8A;
  --av-chart-3: #CB974E;
  --av-chart-4: #CDA1DE;
  color-scheme: dark;
}
/*
 * Arvio Design System - framework-agnostic components.
 * Works in Django templates, Vue 2/3 and React. Requires tokens.css. The build writes it twice: in the components layer (components.css, for Tailwind apps) and unlayered (components.plain.css and arvio.css, for plain pages).
 * Class prefix: .av-   ·   Modifiers: --variant   ·   Never hard-code colours here; use tokens.
 * Themes: Bridge is the default. Put data-theme="stone" or data-theme="stage" on <html> or any wrapper;
 * every class below follows the theme because it only reads tokens.
 */

/* ---------- Base ---------- */
.av-root {
  font-family: var(--av-font-family-sans);
  font-size: var(--av-font-size-body);
  line-height: 1.45;
  color: var(--av-color-ink);
  background: var(--av-color-ground);
  -webkit-font-smoothing: antialiased;
}
/* Scoped reset: only inside .av-root and the overlays (they are often portalled out of it), never on the page around them. */
.av-scrim, .av-modal, .av-drawer { font-family: var(--av-font-family-sans); font-size: var(--av-font-size-body); line-height: var(--av-font-line-height-body); color: var(--av-color-ink); }
.av-root :where(button, input), .av-scrim :where(button, input), .av-modal :where(button, input), .av-drawer :where(button, input) { font: inherit; border: 0; }
.av-root :where(h1, h2, h3, h4, h5, h6, p), .av-scrim :where(h1, h2, h3, h4, h5, h6, p), .av-modal :where(h1, h2, h3, h4, h5, h6, p), .av-drawer :where(h1, h2, h3, h4, h5, h6, p) { margin: 0; }
/* Tailwind v4's preflight resets buttons to the default cursor; zero specificity so any cursor-* utility still wins. */
:where(button:not(:disabled), [role="button"]:not([aria-disabled="true"])) { cursor: pointer; }
.av-mono { font-family: var(--av-font-family-mono); font-feature-settings: "zero" 1; }
.av-muted { color: var(--av-color-muted); }
.av-title { margin: 0; font-size: var(--av-font-size-title); font-weight: 600; letter-spacing: -0.01em; }
.av-section-title { margin: 0; font-size: var(--av-font-size-section); font-weight: 600; }
.av-caption { font-size: var(--av-font-size-caption); color: var(--av-color-muted); }
.av-link, .av-link:is(:hover, :focus) { color: var(--av-color-link); text-decoration: underline; text-underline-offset: 2px; }
.av-link:hover { text-decoration-thickness: 2px; }
.av-link:focus-visible { outline: 2px solid var(--av-color-focus); outline-offset: 2px; border-radius: 2px; }

/* ---------- Surfaces ---------- */
.av-sheet {
  background: var(--av-color-surface);
  border: 1px solid var(--av-color-line);
  border-radius: var(--av-radius-sheet);
}
.av-card {
  background: var(--av-color-surface);
  border: 1px solid var(--av-color-line);
  border-radius: var(--av-radius-card);
  padding: var(--av-space-4) var(--av-space-5);
}
.av-modal {
  background: var(--av-color-surface);
  border-radius: var(--av-radius-sheet);
  box-shadow: var(--av-shadow-modal);
}
.av-scrim { background: var(--av-color-scrim); }
/* Side sheet, floating 8px from the right edge (forms next to a list) */
.av-drawer {
  position: fixed; top: 8px; right: 8px; bottom: 8px; z-index: 1040;
  display: flex; flex-direction: column; width: min(560px, calc(100% - 16px));
  background: var(--av-color-surface); border-radius: var(--av-radius-sheet); box-shadow: var(--av-shadow-modal);
}

/* ---------- Buttons ---------- */
.av-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--av-space-2);
  height: var(--av-size-control); padding: 0 14px;
  border-radius: var(--av-radius-control); border: 1px solid transparent;
  font: inherit; font-size: var(--av-font-size-body); font-weight: var(--av-font-weight-ui); line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap; user-select: none;
}
.av-btn:is(:hover, :focus) { text-decoration: none; } /* beats a:hover from host CSS such as Bootstrap */
.av-btn:focus-visible { outline: 2px solid var(--av-color-focus); outline-offset: 2px; }
.av-btn[disabled], .av-btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.av-btn--primary, .av-btn--primary:is(:hover, :focus) { background: var(--av-color-ink); color: var(--av-color-surface); }
.av-btn--secondary, .av-btn--secondary:is(:hover, :focus) { background: var(--av-color-surface); color: var(--av-color-ink); border-color: var(--av-color-line-strong); }
.av-btn--ghost, .av-btn--ghost:is(:hover, :focus) { background: transparent; color: var(--av-color-ink); }
.av-btn--brand, .av-btn--brand:is(:hover, :focus) { background: var(--av-color-brand-strong); color: #FFFFFF; } /* "Open" / go-to only, e.g. the platform launcher */
.av-btn--coral, .av-btn--coral:is(:hover, :focus) { background: var(--av-color-coral-strong); color: #FFFFFF; }
.av-btn--danger, .av-btn--danger:is(:hover, :focus) { background: var(--av-color-danger); color: #FFFFFF; }
.av-btn--subtle, .av-btn--subtle:is(:hover, :focus) { background: var(--av-color-ground); color: var(--av-color-ink-2); border-color: var(--av-color-line); }
.av-btn--primary:hover, .av-btn--brand:hover, .av-btn--coral:hover, .av-btn--danger:hover { filter: brightness(1.12); }
.av-btn--secondary:hover, .av-btn--ghost:hover, .av-btn--subtle:hover { background: var(--av-color-hover); }
.av-btn--primary[disabled], .av-btn--danger[disabled], .av-btn--coral[disabled], .av-btn--brand[disabled] { opacity: 1; background: var(--av-color-line); color: var(--av-color-muted); }
.av-btn--xs        { height: 28px; padding: 0 10px; gap: var(--av-space-1); font-size: var(--av-font-size-caption); }
.av-btn--sm        { height: var(--av-size-control-sm); padding: 0 10px; font-size: var(--av-font-size-small); }
.av-btn--lg        { height: 40px; padding: 0 24px; }
.av-btn--icon      { width: var(--av-size-control); padding: 0; }
.av-btn--sm.av-btn--icon { width: var(--av-size-control-sm); }

/* ---------- Form controls ---------- */
.av-field { display: flex; flex-direction: column; gap: 6px; }
.av-label { font-size: var(--av-font-size-small); font-weight: var(--av-font-weight-ui); color: var(--av-color-ink); }
.av-help  { font-size: var(--av-font-size-caption); color: var(--av-color-muted); }
.av-input, .av-select, .av-textarea {
  box-sizing: border-box; width: 100%;
  height: var(--av-size-control); padding: 0 12px;
  border: 1px solid var(--av-color-control); border-radius: var(--av-radius-control);
  background: var(--av-color-surface); color: var(--av-color-ink);
  font: inherit; font-size: var(--av-font-size-body);
}
.av-textarea { height: auto; min-height: 88px; padding: 10px 12px; line-height: 1.45; resize: vertical; }
@media (pointer: coarse) { .av-input, .av-select, .av-textarea { font-size: var(--av-font-size-field-touch); } }
.av-input:focus, .av-select:focus, .av-textarea:focus { outline: 2px solid var(--av-color-focus); outline-offset: -1px; }
.av-input[aria-invalid="true"], .av-select[aria-invalid="true"], .av-textarea[aria-invalid="true"] { border-color: var(--av-color-danger); }
/* Rule 6: never lighter than muted; opacity 1 because Firefox fades placeholders by default. */
.av-input::placeholder, .av-textarea::placeholder { color: var(--av-color-muted); opacity: 1; }
/* A native <input type="checkbox">, or the Vue Checkbox: a button with data-state, styled by :not(input). */
.av-checkbox { box-sizing: border-box; width: 16px; height: 16px; margin: 0; flex: none; border-radius: 4px; accent-color: var(--av-color-ink); cursor: pointer; }
.av-checkbox:not(input) { display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--av-color-control); background: var(--av-color-surface); color: var(--av-color-surface); }
.av-checkbox:not(input)[data-state="checked"] { background: var(--av-color-ink); border-color: var(--av-color-ink); }
.av-checkbox:not(input) svg { width: 12px; height: 12px; }
.av-checkbox:focus-visible { outline: 2px solid var(--av-color-focus); outline-offset: 2px; }
.av-checkbox:disabled { opacity: 0.45; cursor: not-allowed; }

/* ---------- Status chips ---------- */
/* Bridge: tinted fill + darker text + thin outline, 6px corners, no dot (the familiar AMAS pill).
 * Stone: round pill with a dot, no outline. Owner ready and Live always show their dot. */
.av-chip {
  display: inline-flex; align-items: center; gap: 0;
  height: var(--av-size-chip); padding: 0 8px; border-radius: var(--av-radius-chip);
  border: 1px solid transparent; box-sizing: border-box;
  font-size: var(--av-font-size-caption); font-weight: var(--av-font-weight-ui); white-space: nowrap;
}
.av-chip::before {
  content: ""; flex: none; width: var(--av-size-chip-dot); height: var(--av-size-chip-dot);
  margin-right: var(--av-size-chip-dot); border-radius: 999px; background: currentColor;
}
.av-chip > * { margin-left: 0.35em; } /* e.g. Live <span style="font-variant-numeric: tabular-nums">12:41</span> */
/* A chip in a narrow column: long text wraps onto more lines instead of overflowing. */
.av-chip--wrap { height: auto; min-height: var(--av-size-chip); max-width: 100%; padding-block: 2px; white-space: normal; line-height: 1.25; }
/* Tones: use these for any status in AMAS apps (open, in progress, accepted, cancelled...) */
.av-chip--info    { background: var(--av-color-info-soft);    color: var(--av-color-info);         border-color: var(--av-color-info-line); }
.av-chip--success { background: var(--av-color-success-soft); color: var(--av-color-success-text); border-color: var(--av-color-success-line); }
.av-chip--success::before { background: var(--av-color-success); }
.av-chip--warning { background: var(--av-color-warning-soft); color: var(--av-color-warning-text); border-color: var(--av-color-warning-line); }
.av-chip--warning::before { background: var(--av-color-warning); }
.av-chip--danger  { background: var(--av-color-danger-soft);  color: var(--av-color-danger-text);  border-color: var(--av-color-danger-line); }
.av-chip--neutral { background: var(--av-color-neutral-soft); color: var(--av-color-ink-2);        border-color: var(--av-color-neutral-line); }
.av-chip--neutral::before { background: var(--av-color-neutral-dot); }
/* Inspection statuses (Remote Inspection) */
.av-chip--scheduled { background: var(--av-color-neutral-soft); color: var(--av-color-ink-2); border-color: var(--av-color-neutral-line); }
.av-chip--scheduled::before { background: var(--av-color-neutral-dot); }
.av-chip--ready     { background: var(--av-color-coral-soft); color: var(--av-color-coral-text); border-color: var(--av-color-coral-line); }
.av-chip--ready::before { width: 6px; height: 6px; margin-right: 6px; background: var(--av-color-coral); animation: var(--av-motion-pulse); }
.av-chip--live      { background: var(--av-color-coral-strong); color: #FFFFFF; }
.av-chip--live::before { width: 6px; height: 6px; margin-right: 6px; background: #FFFFFF; animation: var(--av-motion-pulse); }

/* ---------- Avatar ---------- */
/* A person's initials in a neutral circle, before their name. */
.av-avatar {
  display: inline-flex; flex: none; align-items: center; justify-content: center;
  width: var(--av-size-avatar); height: var(--av-size-avatar); border-radius: 999px;
  background: var(--av-color-neutral-soft); color: var(--av-color-ink-2); border: 1px solid var(--av-color-neutral-line); box-sizing: border-box;
  font-size: var(--av-font-size-caption); font-weight: 600; line-height: 1; letter-spacing: 0.02em;
}
.av-chip--review    { background: var(--av-color-warning-soft); color: var(--av-color-warning-text); border-color: var(--av-color-warning-line); }
.av-chip--review::before { background: var(--av-color-warning); }
.av-chip--completed { background: var(--av-color-success-soft); color: var(--av-color-success-text); border-color: var(--av-color-success-line); }
.av-chip--completed::before { background: var(--av-color-success); }
.av-chip--cancelled { background: var(--av-color-neutral-soft); color: var(--av-color-muted); border-color: var(--av-color-neutral-line); }
.av-chip--cancelled::before { display: none; }

/* NEW badge (platform launcher, menus) */
.av-badge-new { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 4px; background: var(--av-color-coral-strong); color: #FFFFFF; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }

/* Flags: square-ish, no dot, usually with an icon */
.av-flag { display: inline-flex; align-items: center; gap: 6px; height: var(--av-size-chip); padding: 0 8px; border-radius: 6px; font-size: var(--av-font-size-caption); font-weight: var(--av-font-weight-ui); }
.av-flag--danger  { background: var(--av-color-danger-soft); color: var(--av-color-danger-text); }
.av-flag--warning { background: var(--av-color-warning-soft); color: var(--av-color-warning-text); }
.av-flag--info    { background: var(--av-color-info-soft); color: var(--av-color-info); }

/* ---------- Notice ---------- */
/* A message inside the page (a failed load, a missing input); a toast is for the result of an action. */
.av-notice { display: flex; align-items: flex-start; gap: var(--av-space-2); padding: var(--av-space-2) var(--av-space-3); border: 1px solid; border-radius: var(--av-radius-card); font-size: var(--av-font-size-small); }
.av-notice > svg { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.av-notice--info    { background: var(--av-color-info-soft);    color: var(--av-color-info);         border-color: var(--av-color-info-line); }
.av-notice--success { background: var(--av-color-success-soft); color: var(--av-color-success-text); border-color: var(--av-color-success-line); }
.av-notice--warning { background: var(--av-color-warning-soft); color: var(--av-color-warning-text); border-color: var(--av-color-warning-line); }
.av-notice--danger  { background: var(--av-color-danger-soft);  color: var(--av-color-danger-text);  border-color: var(--av-color-danger-line); }

@keyframes av-pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--av-color-coral) 45%, transparent); }
  70%  { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
@media (prefers-reduced-motion: reduce) { .av-chip--ready::before, .av-chip--live::before { animation: none; } }

/* ---------- Loading ---------- */
/* A spinning Lucide loader-circle: centred in the area that loads, or as the icon of a busy button. No text. */
.av-loading { display: flex; align-items: center; justify-content: center; min-height: 160px; color: var(--av-color-muted); }
.av-loading > svg { width: 24px; height: 24px; }
.av-loading > svg, .av-btn[aria-busy="true"] > svg { animation: var(--av-motion-spin); }
@keyframes av-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .av-loading > svg, .av-btn[aria-busy="true"] > svg { animation: none; } }

/* ---------- Overlays ---------- */
.av-popover {
  background: var(--av-color-surface); color: var(--av-color-ink);
  border: 1px solid var(--av-color-line); border-radius: var(--av-radius-control);
  box-shadow: var(--av-shadow-popover); padding: var(--av-space-4); font-size: var(--av-font-size-body);
}
.av-menu {
  background: var(--av-color-surface); color: var(--av-color-ink);
  border: 1px solid var(--av-color-line); border-radius: var(--av-radius-menu);
  box-shadow: var(--av-shadow-popover); padding: var(--av-space-1);
}
.av-menu__item {
  display: flex; align-items: center; gap: var(--av-space-2); padding: 6px var(--av-space-2);
  border-radius: 6px; font-size: var(--av-font-size-body); cursor: pointer; user-select: none; outline: none;
}
.av-menu__item:focus, .av-menu__item[data-highlighted] { background: var(--av-color-hover); }
.av-menu__item[data-variant="destructive"] { color: var(--av-color-danger-text); }
.av-menu__item[data-disabled] { opacity: 0.45; pointer-events: none; }
.av-menu__item svg { color: var(--av-color-muted); }
.av-menu__search {
  border-bottom: 1px solid var(--av-color-line);
  padding: 0 var(--av-space-3); font-size: var(--av-font-size-body);
}
.av-menu__search svg { color: var(--av-color-muted); }
.av-menu__search input::placeholder { color: var(--av-color-muted); }
.av-tooltip {
  background: var(--av-color-ink); color: var(--av-color-surface); border-radius: 6px;
  padding: 4px 8px; font-size: var(--av-font-size-caption); font-weight: var(--av-font-weight-medium);
}
.av-tooltip__arrow { background: var(--av-color-ink); fill: var(--av-color-ink); }

/* ---------- Tables ---------- */
.av-table { width: 100%; border-collapse: collapse; font-size: var(--av-font-size-body); color: var(--av-color-ink); }
.av-table__head { color: var(--av-color-muted); font-size: var(--av-font-size-small); font-weight: var(--av-font-weight-ui); text-align: left; }
.av-table__row { border-bottom: 1px solid var(--av-color-line); }
.av-table__row:not(thead > *):hover, .av-table__row[data-state="selected"] { background: var(--av-color-hover); }
.av-table__cell { vertical-align: middle; }
.av-table__num { text-align: right; font-variant-numeric: tabular-nums; }
/* The result row under a calculation; it keeps its fill on hover, so it never reads as selectable. */
.av-table__row.av-table__row--total, .av-table__row.av-table__row--total:hover { background: var(--av-color-ground); font-weight: var(--av-font-weight-semibold); }
/* Screens and slides: the table sits in a rounded frame, as in the app. Documents (PDF, Word) leave it out. */
.av-table-frame { border: 1px solid var(--av-color-line); border-radius: var(--av-radius-card); overflow: hidden; background: var(--av-color-surface); }
/* A plain <table class="av-table"> (documents, decks, HTML; not the Vue Table, which has data-slot): no vertical lines, no outer box. */
:where(.av-table:not([data-slot])) th, :where(.av-table:not([data-slot])) td { padding: 10px 12px; text-align: left; vertical-align: middle; border: 0; }
:where(.av-table:not([data-slot])) thead th { background: var(--av-color-hover); color: var(--av-color-ink); font-size: var(--av-font-size-small); font-weight: var(--av-font-weight-semibold); border-bottom: 1px solid var(--av-color-line-strong); }
:where(.av-table:not([data-slot])) tbody tr { border-bottom: 1px solid var(--av-color-line); }
:where(.av-table:not([data-slot])) tbody tr:last-child { border-bottom: 0; }

/* ---------- Toggles ---------- */
.av-segmented {
  display: inline-flex; align-items: center; height: var(--av-size-control); padding: 2px; gap: 2px;
  background: var(--av-color-ground); border: 1px solid var(--av-color-line); border-radius: var(--av-radius-control);
}
.av-segmented__item {
  height: 100%; padding: 0 var(--av-space-3); border: 0; border-radius: 6px; background: transparent;
  color: var(--av-color-ink-2); font: inherit; font-size: var(--av-font-size-small); font-weight: var(--av-font-weight-ui);
}
.av-segmented__item[data-state="on"] { background: var(--av-color-surface); color: var(--av-color-ink); box-shadow: 0 1px 2px rgba(21, 23, 26, 0.08); }
.av-toggle--pill {
  height: var(--av-size-control-sm); padding: 0 var(--av-space-3); border-radius: var(--av-radius-pill);
  background: transparent; border: 1px solid var(--av-color-line-strong); color: var(--av-color-ink-2);
  font: inherit; font-size: var(--av-font-size-small); font-weight: var(--av-font-weight-ui);
}
.av-toggle--pill:hover { background: var(--av-color-hover); }
.av-toggle--pill[data-state="on"] { background: var(--av-color-ink); border-color: var(--av-color-ink); color: var(--av-color-surface); }
.av-toggle--pill[data-state="on"]:hover { background: var(--av-color-ink); }
.av-segmented__item:focus-visible, .av-toggle--pill:focus-visible { outline: 2px solid var(--av-color-focus); outline-offset: 1px; }

/* ---------- Accordion ---------- */
.av-accordion { color: var(--av-color-ink); }
.av-accordion__item { border-bottom: 1px solid var(--av-color-line); }
.av-accordion__item:last-child { border-bottom: 0; }
.av-accordion__trigger {
  padding: var(--av-space-4) 0; font: inherit; font-size: var(--av-font-size-body); font-weight: var(--av-font-weight-ui);
  text-align: left; background: transparent; border: 0; color: inherit; cursor: pointer; user-select: none;
}
.av-accordion__trigger:hover { text-decoration: underline; }
.av-accordion__trigger:focus-visible { outline: 2px solid var(--av-color-focus); outline-offset: 2px; border-radius: 4px; }
/* Inset ring for a trigger inside a clipped card, where an outside ring would show only one edge */
.av-accordion__trigger--inset:focus-visible { outline-offset: -2px; border-radius: 0; }
.av-accordion__trigger svg { color: var(--av-color-muted); }
.av-accordion__content { font-size: var(--av-font-size-body); padding-bottom: var(--av-space-4); }

/* ---------- Navigation ---------- */
.av-nav-item {
  display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px;
  border-radius: var(--av-radius-control); color: var(--av-color-ink-2); font-weight: 500; text-decoration: none;
}
.av-nav-item:hover { background: var(--av-color-hover); }
.av-nav-item:focus-visible { outline: 2px solid var(--av-color-focus); outline-offset: 1px; }
.av-nav-item[aria-current="page"] {
  background: var(--av-color-current); box-shadow: inset 0 0 0 1px var(--av-color-current-line);
  color: var(--av-color-current-text); font-weight: var(--av-font-weight-ui);
}
.av-nav-item[aria-current="page"] svg { color: var(--av-color-current-icon); }
/* Sub-items under a section (e.g. "All requests" under Requests): the current one gets a marker bar */
.av-nav-sub {
  position: relative; display: flex; align-items: center; height: 32px; padding: 0 10px 0 22px;
  border-radius: var(--av-radius-control); color: var(--av-color-ink-2); text-decoration: none;
}
.av-nav-sub:hover { background: var(--av-color-hover); }
.av-nav-sub:focus-visible { outline: 2px solid var(--av-color-focus); outline-offset: 1px; }
.av-nav-sub[aria-current="page"] { color: var(--av-color-ink); font-weight: var(--av-font-weight-ui); }
.av-nav-sub[aria-current="page"]::before {
  content: ""; position: absolute; left: 10px; top: 9px; bottom: 9px; width: 3px; border-radius: 2px; background: var(--av-color-marker);
}
/* Underline tabs for the steps or views of one page; the base line is a shadow so the scroll box does not clip the current underline */
.av-tabs {
  display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none;
  box-shadow: inset 0 -1px 0 var(--av-color-line);
}
.av-tabs__item {
  display: flex; flex: none; align-items: center; gap: var(--av-space-2); height: 48px;
  border-bottom: 2px solid transparent; color: var(--av-color-ink-2); font-weight: 500; text-decoration: none; white-space: nowrap;
}
.av-tabs__item:hover { color: var(--av-color-ink); border-bottom-color: var(--av-color-line-strong); }
.av-tabs__item:focus-visible { outline: 2px solid var(--av-color-focus); outline-offset: -2px; border-radius: 4px; }
.av-tabs__item[aria-current="page"] { color: var(--av-color-ink); font-weight: var(--av-font-weight-ui); border-bottom-color: var(--av-color-brand-strong); }
/* Step number, only when the tabs are an ordered sequence */
.av-tabs__step {
  display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: var(--av-radius-pill);
  background: var(--av-color-ground); color: var(--av-color-ink-2); font-size: var(--av-font-size-caption); font-weight: 500; font-variant-numeric: tabular-nums;
}
.av-tabs__item[aria-current="page"] .av-tabs__step { background: var(--av-color-brand-strong); color: #FFFFFF; }
/* Tabs with page actions at the end of the row; on a narrow screen the actions wrap above the tabs */
.av-tabs-bar {
  display: flex; flex-wrap: wrap-reverse; align-items: center; gap: var(--av-space-2) var(--av-space-4);
  box-shadow: inset 0 -1px 0 var(--av-color-line);
}
.av-tabs-bar > .av-tabs { flex: 1 1 auto; min-width: 0; box-shadow: none; }
.av-tabs-bar__end { display: flex; flex-wrap: wrap; align-items: center; gap: var(--av-space-3); margin-left: auto; }

/* ---------- Evidence ---------- */
/* e.g. 10:12:48 · ±12 m · 4032x3024 · #a3f9...c21 */
.av-evidence { font-size: var(--av-font-size-caption); font-variant-numeric: tabular-nums; color: var(--av-color-muted); }

/* ---------- Icons ---------- */
.av-icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-linecap: round; stroke-linejoin: round; }
/* Lucide everywhere: lucide-vue-next in Vue, lucide-static in plain HTML */
.av-icon, .lucide { stroke-width: var(--av-icon-stroke); user-select: none; }
.av-doc-cover-title { font-family: var(--av-font-family-sans); font-size: 28pt; line-height: 34pt; font-weight: 600; }
.av-doc-h1 { font-family: var(--av-font-family-sans); font-size: 18pt; line-height: 24pt; font-weight: 600; }
.av-doc-h2 { font-family: var(--av-font-family-sans); font-size: 13pt; line-height: 18pt; font-weight: 600; }
.av-doc-h3 { font-family: var(--av-font-family-sans); font-size: 11pt; line-height: 15pt; font-weight: 600; }
.av-doc-body { font-family: var(--av-font-family-sans); font-size: 10.5pt; line-height: 15pt; font-weight: 400; text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
.av-doc-table { font-family: var(--av-font-family-sans); font-size: 9pt; line-height: 12pt; font-weight: 400; font-feature-settings: "tnum" 1; }
.av-doc-caption { font-family: var(--av-font-family-sans); font-size: 8.5pt; line-height: 11pt; font-weight: 400; color: var(--av-color-muted); }
.av-doc-mono { font-family: var(--av-font-family-mono); font-size: 9pt; line-height: 12pt; font-weight: 400; }
.av-presentation-title { font-family: var(--av-font-family-sans); font-size: 40pt; line-height: 48pt; font-weight: 600; }
.av-presentation-subtitle { font-family: var(--av-font-family-sans); font-size: 24pt; line-height: 30pt; font-weight: 400; color: var(--av-color-ink-2); }
.av-presentation-body { font-family: var(--av-font-family-sans); font-size: 20pt; line-height: 28pt; font-weight: 400; }
.av-presentation-note { font-family: var(--av-font-family-sans); font-size: 12pt; line-height: 16pt; font-weight: 400; color: var(--av-color-muted); }
.av-web-display { font-family: var(--av-font-family-sans); font-size: 56px; line-height: 60px; font-weight: 600; letter-spacing: -0.02em; }
@media (max-width: 640px) { .av-web-display { font-size: 36px; line-height: 40px; } }
.av-web-h2 { font-family: var(--av-font-family-sans); font-size: 40px; line-height: 46px; font-weight: 600; letter-spacing: -0.015em; }
@media (max-width: 640px) { .av-web-h2 { font-size: 28px; line-height: 34px; } }
.av-web-h3 { font-family: var(--av-font-family-sans); font-size: 24px; line-height: 30px; font-weight: 600; }
@media (max-width: 640px) { .av-web-h3 { font-size: 20px; line-height: 26px; } }
.av-web-lead { font-family: var(--av-font-family-sans); font-size: 20px; line-height: 30px; font-weight: 400; }
@media (max-width: 640px) { .av-web-lead { font-size: 18px; line-height: 27px; } }
.av-web-body { font-family: var(--av-font-family-sans); font-size: 18px; line-height: 28px; font-weight: 400; }
@media (max-width: 640px) { .av-web-body { font-size: 17px; line-height: 26px; } }
.av-web-small { font-family: var(--av-font-family-sans); font-size: 15px; line-height: 22px; font-weight: 400; }
@media (max-width: 640px) { .av-web-small { font-size: 15px; line-height: 22px; } }
.av-tnum { font-feature-settings: "tnum" 1; font-variant-numeric: tabular-nums; }
