/* Direction: Chiya Sales Console — espresso-dark sales desk, amber tea accent,
   geometric display type for numbers, calm surfaces for long working days. */
/* Completed by the platform from the short form: both modes, every
   palette token, each text-on-ground pair at its floor. To restyle, write the
   short form again (the decisions in one :root) and it is completed again. */

:root {
  color-scheme: dark;
  --canvas: #15110f;
  --surface: #1e1917;
  --surface-2: #272120;
  --border: #352e2a;
  --border-strong: #5b5857;
  --ink: #f7f1ea;
  --muted: #a99c93;
  --accent: #e0813c;
  --accent-hover: #e59459;
  --accent-ink: #15110f;
  --accent-text: #f2a765;
  --accent-strong: #442c17;
  --accent-soft: #e0813c;
  --accent-border: #704323;
  --success: #3f9c74;
  --success-ink: #ffffff;
  --success-soft: #1e3025;
  --success-strong: #4ea47f;
  --warning: #b5801f;
  --warning-ink: #ffffff;
  --warning-soft: #382913;
  --warning-strong: #bb8a31;
  --danger: #c4452f;
  --danger-ink: #ffffff;
  --danger-soft: #3c1c16;
  --danger-strong: #d57b6a;
  --chart-1: #e0813c;
  --chart-2: #b9c24a;
  --chart-3: #1b9a7f;
  --chart-4: #39c0ff;
  --chart-5: #876ece;
  --chart-6: #fb8dbd;

  --x-hot: #ef7a4e;
  --x-hot-soft: rgba(239, 122, 78, 0.16);
  --x-warm: #e4b245;
  --x-warm-soft: rgba(228, 178, 69, 0.16);
  --x-cold: #5c9bd0;
  --x-cold-soft: rgba(92, 155, 208, 0.16);
  --x-on-photo: #ffffff;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --display-weight: 600;
  --display-tracking: -0.02em;
  --radius-card: 16px;
  --radius-btn: 10px;
  --radius-input: 10px;
  --font-mono: "JetBrains Mono Variable", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-sans: "Inter", system-ui, sans-serif;
  --eyebrow-tracking: 0.08em;
}

html[data-theme="light"] {
  color-scheme: light;
  --canvas: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f3f3;
  --border: #dededd;
  --border-strong: #b9b8b7;
  --ink: #15110f;
  --muted: #6a6766;
  --accent: #e0813c;
  --accent-hover: #be6e33;
  --accent-ink: #15110f;
  --accent-text: #a15c2b;
  --accent-strong: #945528;
  --accent-soft: #fbede4;
  --accent-border: #f1c6a7;
  --success: #3f9c74;
  --success-ink: #15110f;
  --success-soft: #e8f3ee;
  --success-strong: #31795a;
  --warning: #b5801f;
  --warning-ink: #15110f;
  --warning-soft: #f6f0e4;
  --warning-strong: #8e6419;
  --danger: #c4452f;
  --danger-ink: #ffffff;
  --danger-soft: #f8e9e6;
  --danger-strong: #b43f2b;
  --chart-1: #d97b35;
  --chart-2: #929b16;
  --chart-3: #0d9479;
  --chart-4: #1d9ed5;
  --chart-5: #8168c7;
  --chart-6: #da709f;
}

/* Chiya Sales Console — the app's own pieces: stage pills, stat tiles, lead rows. */

.pill {
  @apply inline-flex items-center gap-1.5 rounded-full border border-border px-2.5 py-1 text-xs font-semibold text-ink;
}
.pill::before {
  content: "";
  @apply h-2 w-2 shrink-0 rounded-full;
  background: var(--muted);
}
.pill-hot {
  background: var(--x-hot-soft);
}
.pill-hot::before {
  background: var(--x-hot);
}
.pill-warm {
  background: var(--x-warm-soft);
}
.pill-warm::before {
  background: var(--x-warm);
}
.pill-cold {
  background: var(--x-cold-soft);
}
.pill-cold::before {
  background: var(--x-cold);
}

.meter {
  @apply h-2 w-full overflow-hidden rounded-full;
  background: var(--surface-2);
}
.meter > span {
  @apply block h-full rounded-full;
  background: var(--accent);
}

.stat {
  @apply rounded-[var(--radius-card)] border border-border p-4 transition-colors;
  background: var(--surface);
}
.stat:hover {
  border-color: var(--accent);
}
.stat-num {
  @apply font-display text-3xl leading-none;
}

.lead-row {
  @apply rounded-[var(--radius-card)] border border-border p-4 transition-colors;
  background: var(--surface);
}
.lead-row:hover {
  background: var(--surface-2);
}
.lead-due {
  border-color: var(--accent);
}

.navlink {
  @apply inline-flex items-center gap-2 rounded-[var(--radius-btn)] px-3 py-2 text-sm font-medium text-muted transition-colors;
}
.navlink:hover {
  color: var(--ink);
  background: var(--surface-2);
}
.navlink-on {
  color: var(--accent-text);
  background: var(--accent-soft);
}

.sheet-code {
  @apply overflow-x-auto whitespace-pre rounded-[var(--radius-card)] border border-border p-4 font-mono text-xs leading-relaxed text-muted;
  background: var(--surface-2);
}

@keyframes chiya-rise {
  from {
    transform: translateY(10px);
  }
  to {
    transform: translateY(0);
  }
}
.rise {
  animation: chiya-rise 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
html.reduced-motion .rise {
  animation: none;
}
