/* =============================================================
   Cirrus — Design System
   A minimalist SaaS system staged on a cloudy sky background.
   Pill geometry on every control. One italic serif accent per hero.
   ============================================================= */

@import url("./fonts/inter-tight.css?v=bde518bad546");
@import url("./fonts/inter.css?v=1025f4bb551c");
@import url("./fonts/instrument-serif.css?v=5a337e30a710");

/* -------------------------------------------------------------
   Tokens
   ------------------------------------------------------------- */
:root {
  /* Color */
  --color-sky: #edf2f7;
  --color-horizon: #b8d4f1;
  --color-cloud: #ffffff;
  --color-ink: #0e1116;
  --color-mist: #5b6472;
  --color-mist-soft: #8a93a3;
  --color-edge: #e3e8ee;
  --color-edge-soft: #eef2f6;

  --color-signal: #2e7def;
  --color-citrus: #ff7a3d;
  --color-meadow: #2bc48a;

  /* Semantic surface */
  --surface-page: var(--color-sky);
  --surface-card: var(--color-cloud);
  --surface-sunken: #f3f6fa;

  /* Text */
  --text-strong: var(--color-ink);
  --text-muted: var(--color-mist);
  --text-soft: var(--color-mist-soft);
  --text-on-ink: var(--color-cloud);

  /* Type families */
  --font-display: "Inter Tight", "Inter", system-ui, -apple-system, sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-numeric: "Inter", system-ui, -apple-system, sans-serif;

  /* Type scale */
  --fs-hero: clamp(56px, 6.4vw, 88px);
  --fs-display: clamp(40px, 4vw, 56px);
  --fs-h1: 40px;
  --fs-h2: 28px;
  --fs-h3: 20px;
  --fs-body-lg: 17px;
  --fs-body: 15px;
  --fs-small: 13px;
  --fs-label: 12px;

  --lh-tight: 1.02;
  --lh-snug: 1.18;
  --lh-body: 1.55;
  --tracking-tight: -0.025em;
  --tracking-snug: -0.015em;
  --tracking-normal: 0;
  --tracking-wide: 0.01em;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Radius */
  --radius-pill: 999px;
  --radius-card: 28px;
  --radius-tile: 20px;
  --radius-input: 999px;
  --radius-check: 8px;
  --radius-sm: 10px;

  /* Borders */
  --border-hairline: 1px solid var(--color-edge);
  --border-soft: 1px solid var(--color-edge-soft);

  /* Elevation — two whisper-soft tiers only */
  --shadow-tier-1: 0 1px 1px rgba(14, 17, 22, 0.04),
    0 20px 40px -24px rgba(14, 17, 22, 0.18);
  --shadow-tier-2: 0 1px 1px rgba(14, 17, 22, 0.04),
    0 20px 40px -24px rgba(14, 17, 22, 0.22),
    0 2px 6px rgba(14, 17, 22, 0.06);

  /* Focus */
  --focus-ring: 0 0 0 3px rgba(46, 125, 239, 0.28);

  /* Layout */
  --container-max: 1240px;
  --container-pad: 32px;
  --nav-h: 64px;

  /* Motion */
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-quick: 140ms;
  --dur-base: 220ms;
}

/* -------------------------------------------------------------
   Reset + base
   ------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-strong);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  font-variant-numeric: tabular-nums;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: transparent;
  white-space: nowrap;
}

input,
select,
textarea {
  font-family: inherit;
  color: inherit;
}

::selection {
  background: var(--color-ink);
  color: var(--color-cloud);
}

/* -------------------------------------------------------------
   Typography primitives
   ------------------------------------------------------------- */
.display-hero {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-hero);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text-strong);
  margin: 0;
}

.display-md {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-display);
  line-height: 1.06;
  letter-spacing: var(--tracking-tight);
  margin: 0;
}

.heading-1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h1);
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-snug);
  margin: 0;
}

.heading-2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-h2);
  line-height: 1.22;
  letter-spacing: var(--tracking-snug);
  margin: 0;
}

.heading-3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-h3);
  line-height: 1.3;
  letter-spacing: var(--tracking-snug);
  margin: 0;
}

.text-body {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-strong);
}

.text-body-lg {
  font-size: var(--fs-body-lg);
  line-height: 1.5;
  color: var(--text-strong);
}

.text-muted {
  color: var(--text-muted);
}

.text-soft {
  color: var(--text-soft);
}

.text-small {
  font-size: var(--fs-small);
  line-height: 1.45;
  color: var(--text-muted);
}

.text-label {
  font-size: var(--fs-label);
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-muted);
  letter-spacing: var(--tracking-wide);
}

.numeric {
  font-feature-settings: "tnum" 1, "lnum" 1;
}

/* The signature italic serif accent.
   Use exactly once per hero, inside the headline. */
.accent-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--color-mist);
  letter-spacing: -0.01em;
  /* Optical compensation against geometric sans neighbors */
  font-size: 1.04em;
  padding-inline: 0.04em;
}

/* -------------------------------------------------------------
   Layout primitives
   ------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.stack {
  display: flex;
  flex-direction: column;
}
.stack-1 { gap: var(--space-1); }
.stack-2 { gap: var(--space-2); }
.stack-3 { gap: var(--space-3); }
.stack-4 { gap: var(--space-4); }
.stack-6 { gap: var(--space-6); }
.stack-8 { gap: var(--space-8); }
.stack-12 { gap: var(--space-12); }

.row {
  display: flex;
  align-items: center;
}
.row-2 { gap: var(--space-2); }
.row-3 { gap: var(--space-3); }
.row-4 { gap: var(--space-4); }
.row-6 { gap: var(--space-6); }
.row-8 { gap: var(--space-8); }

.row-wrap { flex-wrap: wrap; }
.row-between { justify-content: space-between; }
.row-end { justify-content: flex-end; }
.row-center { justify-content: center; }
.row-baseline { align-items: baseline; }
.row-start { align-items: flex-start; }

.center-x { text-align: center; }

.grid {
  display: grid;
  gap: var(--space-6);
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 880px) {
  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }
}

/* Section rhythm */
.section {
  padding-block: var(--space-24);
}
.section-tight {
  padding-block: var(--space-16);
}

/* -------------------------------------------------------------
   Navigation — pill floating over sky
   ------------------------------------------------------------- */
.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 20px;
  gap: var(--space-6);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}

.nav-brand .brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  background: var(--color-ink);
  color: var(--color-cloud);
}

.nav-brand .brand-mark svg,
.nav-brand .brand-mark i {
  width: 18px;
  height: 18px;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--color-cloud);
  border: var(--border-hairline);
  border-radius: var(--radius-pill);
  padding: 6px;
  box-shadow: var(--shadow-tier-1);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  transition: color var(--dur-quick) var(--ease-soft),
    background-color var(--dur-quick) var(--ease-soft);
}

.nav-link:hover {
  color: var(--text-strong);
}

.nav-link.is-active {
  color: var(--text-strong);
  background: var(--surface-sunken);
}

/* -------------------------------------------------------------
   Buttons — full pill, two variants
   ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding-inline: 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: transform var(--dur-quick) var(--ease-soft),
    background-color var(--dur-base) var(--ease-soft),
    color var(--dur-base) var(--ease-soft),
    box-shadow var(--dur-base) var(--ease-soft);
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.btn:active {
  transform: translateY(1px);
}

.btn .icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--color-ink);
  color: var(--color-cloud);
}
.btn-primary:hover {
  background: #1a1f28;
}

.btn-secondary {
  background: var(--color-cloud);
  color: var(--text-strong);
  border: var(--border-hairline);
}
.btn-secondary:hover {
  background: var(--surface-sunken);
}

.btn-ghost {
  background: transparent;
  color: var(--text-strong);
}
.btn-ghost:hover {
  background: rgba(14, 17, 22, 0.04);
}

.btn-sm {
  height: 36px;
  padding-inline: 16px;
  font-size: var(--fs-small);
}

.btn-lg {
  height: 52px;
  padding-inline: 26px;
  font-size: var(--fs-body-lg);
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-pill);
}

/* -------------------------------------------------------------
   Inputs — pill, hairline border
   ------------------------------------------------------------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: var(--fs-label);
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: var(--tracking-wide);
}

.input {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding-inline: 18px;
  background: var(--color-cloud);
  border: var(--border-hairline);
  border-radius: var(--radius-input);
  font-size: var(--fs-body);
  color: var(--text-strong);
  transition: border-color var(--dur-base) var(--ease-soft),
    box-shadow var(--dur-base) var(--ease-soft);
}

.input::placeholder {
  color: var(--text-soft);
}

.input:focus,
.input:focus-within {
  outline: none;
  border-color: var(--color-signal);
  box-shadow: var(--focus-ring);
}

.input .icon {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.input-search {
  width: 240px;
}

/* Textarea variation keeps the pill end-caps */
.textarea {
  display: block;
  width: 100%;
  min-height: 96px;
  padding: 14px 18px;
  background: var(--color-cloud);
  border: var(--border-hairline);
  border-radius: 22px;
  font-size: var(--fs-body);
  resize: vertical;
}

/* -------------------------------------------------------------
   Cards — 28px radius, hairline border, Tier 1 shadow
   ------------------------------------------------------------- */
.card {
  background: var(--surface-card);
  border: var(--border-hairline);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-tier-1);
  padding: 32px;
}

.card-compact {
  padding: 22px 24px;
}

.card-flush {
  padding: 0;
  overflow: hidden;
}

.card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: var(--tracking-snug);
  color: var(--text-strong);
  margin: 0;
}

.card-sub {
  font-size: var(--fs-body);
  color: var(--text-muted);
  margin: 0;
}

/* Stat tile inside a card */
.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 0;
}

.stat-label {
  font-size: var(--fs-label);
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: var(--tracking-wide);
}

.stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: var(--tracking-tight);
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
}

.stat-delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-small);
  font-weight: 500;
}
.stat-delta--up { color: var(--color-meadow); }
.stat-delta--down { color: var(--color-citrus); }
.stat-delta--flat { color: var(--text-muted); }

/* Divider rule between stats inside a single card row */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}
.stat-row > .stat {
  padding-inline: 24px;
  border-right: var(--border-hairline);
}
.stat-row > .stat:first-child { padding-left: 0; }
.stat-row > .stat:last-child {
  padding-right: 0;
  border-right: 0;
}

@media (max-width: 880px) {
  .stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat-row > .stat {
    border-right: 0;
    padding-inline: 0;
  }
}

/* -------------------------------------------------------------
   Tabs — pill row, ink-filled active
   ------------------------------------------------------------- */
.tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border-radius: var(--radius-pill);
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  height: 36px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--text-strong);
  background: transparent;
  white-space: nowrap;
  transition: background-color var(--dur-base) var(--ease-soft),
    color var(--dur-base) var(--ease-soft);
}

.tab .icon {
  width: 14px;
  height: 14px;
}

.tab:hover {
  background: rgba(14, 17, 22, 0.04);
}

.tab.is-active {
  background: var(--color-ink);
  color: var(--color-cloud);
  box-shadow: var(--shadow-tier-2);
}

/* -------------------------------------------------------------
   Checkbox — 18px squircle, 8px radius
   ------------------------------------------------------------- */
.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: var(--fs-body);
  color: var(--text-strong);
}

.checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--color-edge);
  border-radius: var(--radius-check);
  background: var(--color-cloud);
  display: inline-grid;
  place-items: center;
  transition: background-color var(--dur-base) var(--ease-soft),
    border-color var(--dur-base) var(--ease-soft);
  position: relative;
}

.checkbox input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.checkbox input[type="checkbox"]:checked {
  background: var(--color-ink);
  border-color: var(--color-ink);
}

.checkbox input[type="checkbox"]:checked::after {
  content: "";
  width: 10px;
  height: 10px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
}

/* -------------------------------------------------------------
   Sidebar icon rail — vertical circular pill buttons
   ------------------------------------------------------------- */
.rail {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--color-cloud);
  border: var(--border-hairline);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-tier-1);
}

.rail-item {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-muted);
  transition: background-color var(--dur-base) var(--ease-soft),
    color var(--dur-base) var(--ease-soft);
}
.rail-item .icon {
  width: 18px;
  height: 18px;
}
.rail-item:hover {
  background: var(--surface-sunken);
  color: var(--text-strong);
}
.rail-item.is-active {
  background: var(--color-ink);
  color: var(--color-cloud);
}

/* -------------------------------------------------------------
   Avatar
   ------------------------------------------------------------- */
.avatar {
  display: inline-block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-sunken);
  border: var(--border-hairline);
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 32px; height: 32px; }
.avatar-lg { width: 56px; height: 56px; }

/* -------------------------------------------------------------
   Pills, chips, and tags — only for real, dynamic data
   ------------------------------------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--color-cloud);
  border: var(--border-hairline);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--text-strong);
}
.chip .icon { width: 14px; height: 14px; color: var(--text-muted); }

.chip-ink {
  background: var(--color-ink);
  color: var(--color-cloud);
  border-color: var(--color-ink);
}

/* -------------------------------------------------------------
   Chart primitives — bar, dashed grid, legend
   ------------------------------------------------------------- */
.chart {
  position: relative;
  width: 100%;
}

.chart-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    to top,
    var(--color-edge) 1px,
    transparent 1px
  );
  background-size: 100% 25%;
  opacity: 0.7;
  pointer-events: none;
}

.bar-track {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 14px;
  height: 220px;
}

.bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  position: relative;
}

.bar-fill {
  width: 100%;
  border-radius: 14px 14px 14px 14px;
  position: relative;
  overflow: hidden;
}
.bar-fill::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 12%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.18) 100%);
}

.bar-fill--signal { background: var(--color-signal); }
.bar-fill--citrus { background: var(--color-citrus); }
.bar-fill--meadow { background: var(--color-meadow); }
.bar-fill--muted {
  background: repeating-linear-gradient(
    135deg,
    var(--color-edge) 0 6px,
    transparent 6px 12px
  );
  border: 1px solid var(--color-edge);
}

.legend {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-size: var(--fs-small);
  color: var(--text-muted);
}

.legend-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.legend-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.legend-dot--signal { color: var(--color-signal); }
.legend-dot--citrus { color: var(--color-citrus); }
.legend-dot--meadow { color: var(--color-meadow); }

/* Triple bar progress (KPI strip) */
.progress-tri {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  height: 8px;
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: var(--surface-sunken);
}
.progress-tri > span:nth-child(1) { background: var(--color-signal); }
.progress-tri > span:nth-child(2) { background: var(--color-citrus); }
.progress-tri > span:nth-child(3) { background: var(--color-meadow); }
.progress-tri > span:nth-child(4) {
  background: repeating-linear-gradient(
    135deg,
    var(--color-edge) 0 6px,
    transparent 6px 12px
  );
}

/* -------------------------------------------------------------
   Hero — composition helper
   ------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(56px, 8vw, 112px) clamp(40px, 6vw, 80px);
  text-align: center;
}

.hero-eyebrow-slot { display: none; } /* No eyebrows. */

.hero-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-hero);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text-strong);
  max-width: 18ch;
  margin: 0 auto;
}

.hero-headline .accent-italic {
  display: inline;
}

.hero-sub {
  margin: 24px auto 0;
  max-width: 56ch;
  font-size: var(--fs-body-lg);
  line-height: 1.55;
  color: var(--text-muted);
}

.hero-cta {
  margin-top: 36px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* -------------------------------------------------------------
   Floating dashboard slab (signature composition)
   ------------------------------------------------------------- */
.slab {
  position: relative;
  background: var(--surface-card);
  border: var(--border-hairline);
  border-radius: 36px;
  box-shadow: var(--shadow-tier-2);
  padding: 28px;
  margin-top: 56px;
}

.slab-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

/* -------------------------------------------------------------
   Icon helper
   ------------------------------------------------------------- */
.icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  stroke-width: 1.75;
  color: currentColor;
}
.icon-sm { width: 14px; height: 14px; }
.icon-lg { width: 22px; height: 22px; }

/* -------------------------------------------------------------
   Utilities
   ------------------------------------------------------------- */
.divider {
  height: 1px;
  background: var(--color-edge);
  width: 100%;
}

.dot-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-soft);
  display: inline-block;
}

.muted { color: var(--text-muted); }
.strong { color: var(--text-strong); }
.signal { color: var(--color-signal); }
.citrus { color: var(--color-citrus); }
.meadow { color: var(--color-meadow); }

.full-bleed { width: 100%; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =====================================================================
   Commerce application primitives. Cirrus is the sole product design system.
   Keep the source reference in css/cirrus/system.css for html/preview.html.
   ===================================================================== */
:root {
  --radius-slab: 36px;
  --radius-textarea: 22px;
  --focus-tint: rgba(46, 125, 239, .28);
  --status-positive-text: #147653;
  --status-attention-text: #9b421a;
  --status-positive-surface: #effaf5;
  --status-attention-surface: #fff5ee;
  --font-display: "Inter Tight", "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-sans: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-serif: "Instrument Serif", "Songti SC", "Noto Serif CJK SC", SimSun, Georgia, serif;
}
[hidden] { display: none !important; }
body { position: relative; isolation: isolate; min-width: 320px; min-height: 100dvh; }
button, input, select, textarea { font: inherit; }
button:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible { outline: none; box-shadow: var(--focus-ring); }
:where(input, select, textarea)[aria-invalid="true"] { border-color: var(--color-citrus); }
:where(input, select, textarea)::placeholder { color: var(--text-soft); }
:where(input[type="checkbox"], input[type="radio"]) { accent-color: var(--color-ink); }
:where(h1, h2, h3, h4) { font-family: var(--font-display); letter-spacing: var(--tracking-snug); }
:where(.lucide, .icon) { display: inline-block; vertical-align: middle; flex: none; width: 18px; height: 18px; stroke-width: 1.75; }
:where(.eyebrow, .editor-eyebrow) { display: none !important; }
/* Decorative heading labels from the previous system are suppressed. Dynamic IDs remain visible. */
:where(.text-micro:not([data-platform-ticket-id]):has(+ h1), .text-micro:has(+ h2), .text-micro:has(+ h3)) { display: none; }
.display { margin: 0; font: 700 var(--fs-display)/1.06 var(--font-display); letter-spacing: var(--tracking-tight); }
.h1 { margin: 0; font: 600 var(--fs-h2)/1.22 var(--font-display); }
.h2 { margin: 0; font: 600 var(--fs-h3)/1.3 var(--font-display); }
.text-body { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--text-muted); }
.text-label, .text-micro { font-size: var(--fs-small); font-weight: 500; line-height: 1.45; color: var(--text-muted); letter-spacing: 0; }
.text-mono { font-family: var(--font-numeric); font-variant-numeric: tabular-nums; }
.text-muted { color: var(--text-muted); }
.surface, .surface-raised { position: relative; background: var(--surface-card); border: var(--border-hairline); border-radius: var(--radius-card); box-shadow: var(--shadow-tier-1); }
.surface-raised { box-shadow: var(--shadow-tier-2); }
.surface-pill { border-radius: var(--radius-pill); }
.btn { border: 1px solid transparent; text-decoration: none; }
.btn:not(.btn-primary):not(.btn-solid):not(.btn-secondary):not(.btn-ghost):not(.btn-tertiary) { background: var(--surface-card); border-color: var(--color-edge); }
.btn-solid { color: var(--text-on-ink); background: var(--color-ink); }
.btn-solid:hover { background: #1a1f28; }
.btn-tertiary { color: var(--color-ink); background: transparent; }
.btn-tertiary:hover { background: var(--surface-sunken); }
.btn-primary .chip { display: inline-flex; align-items: center; justify-content: center; padding: 0; height: auto; min-width: 0; border: 0; background: transparent; color: inherit; }
.btn-icon.btn-sm { width: 36px; height: 36px; padding: 0; }
.input { min-width: 0; }
.input input, .input textarea { flex: 1; width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent; color: var(--color-ink); box-shadow: none; }
.input input::placeholder { color: var(--text-soft); }
.input-area { height: auto; min-height: 112px; padding: 16px 18px; border-radius: var(--radius-textarea); align-items: flex-start; }
.input-area textarea { resize: vertical; line-height: var(--lh-body); }
.input-kbd { color: var(--text-muted); border: var(--border-hairline); border-radius: var(--radius-pill); font: 12px var(--font-numeric); padding: 2px 8px; background: var(--surface-sunken); }
.field-label { font-size: var(--fs-small); }
.card { position: relative; }
.card-raised { box-shadow: var(--shadow-tier-2); }
.card-header, .card-footer { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.card-body { color: var(--text-muted); font-size: var(--fs-body); line-height: var(--lh-body); }
.card-footer { margin-top: var(--space-2); }
.card-icon { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: var(--radius-pill); background: var(--color-ink); color: var(--text-on-ink); }
.card-icon.is-soft { background: var(--surface-sunken); color: var(--color-ink); border: var(--border-hairline); }
.card-icon .icon { width: 20px; height: 20px; }
.checkbox-box { display: none; }
.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; color: var(--color-ink); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { position: relative; width: 48px; height: 28px; background: var(--color-edge); border: var(--border-hairline); border-radius: var(--radius-pill); }
.switch-thumb { position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; background: var(--surface-card); border-radius: var(--radius-pill); box-shadow: var(--shadow-tier-1); transition: transform var(--dur-base) var(--ease-soft); }
.switch input:checked + .switch-track { background: var(--color-ink); border-color: var(--color-ink); }
.switch input:checked + .switch-track .switch-thumb { transform: translateX(20px); }
.switch input:focus-visible + .switch-track { box-shadow: var(--focus-ring); }
.switch input:disabled + .switch-track { opacity: .45; cursor: not-allowed; }
.tab[aria-selected="true"] { color: var(--text-on-ink); background: var(--color-ink); box-shadow: var(--shadow-tier-2); }
.badge { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 26px; padding: 3px 10px; border: var(--border-hairline); border-radius: var(--radius-pill); color: var(--text-muted); background: var(--surface-card); font-size: var(--fs-small); font-weight: 500; line-height: 1.3; white-space: nowrap; }
.badge-accent { color: var(--color-ink); background: var(--surface-sunken); }
.dock { position: relative; display: inline-flex; align-items: center; gap: var(--space-3); padding: 8px; background: var(--surface-card); border: var(--border-hairline); border-radius: var(--radius-pill); box-shadow: var(--shadow-tier-2); }
.dock-search { display: inline-flex; align-items: center; gap: 12px; height: 44px; padding: 0 18px; min-width: 220px; color: var(--text-muted); background: var(--surface-card); border: var(--border-hairline); border-radius: var(--radius-pill); font-size: var(--fs-small); }
.dock-search .icon { width: 16px; height: 16px; }
.dock-divider { width: 1px; height: 28px; background: var(--color-edge); }
.dock-chip { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: var(--border-hairline); border-radius: var(--radius-pill); color: var(--color-ink); background: var(--surface-card); }
.dock-chip:hover { background: var(--surface-sunken); }
.dock-chip.is-active { background: var(--color-ink); color: var(--text-on-ink); }
.row-wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.brand-logo-image { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
/* User-approved Gradient Wave replaces the vendor cloud imagery on every product page. */
.wave-backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: linear-gradient(135deg, #38bdf8 0%, #fff 42%, #38bdf8 76%, #fff 100%); }
.wave-backdrop canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.wave-backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(237,242,247,.78), rgba(237,242,247,.9) 48%, var(--surface-page) 100%); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
/* Legacy markup keeps its content flow while using Cirrus material primitives. */
:where(body:not(.cirrus-home)) .card { display: flex; flex-direction: column; gap: var(--space-4); }
.btn-primary .chip .icon { color: inherit; }
:where(.brand-mark, .avatar):has(> img[src$="guanyu-logo-mono.png"]) { background: var(--color-ink); padding: 6px; }
:where(.brand-mark, .avatar) > img[src$="guanyu-logo-mono.png"] { object-fit: contain; filter: invert(1); }
