/* COCO API design foundation, 2026-12-01.
 * Additive native-runtime compatibility layer. No routing, data or animation
 * replacement. Explicit palette/radius/font/scale preferences stay authoritative.
 */
:root {
  --coco-brand: #c43c32;
  --coco-space-1: .25rem;
  --coco-space-2: .5rem;
  --coco-space-3: .75rem;
  --coco-space-4: 1rem;
  --coco-space-6: 1.5rem;
  --coco-space-8: 2rem;
  --coco-type-label: .75rem;
  --coco-type-body: .875rem;
  --coco-type-title: clamp(1.25rem, 1.1rem + .5vw, 1.5rem);
  --coco-line-body: 1.6;
  --coco-shadow-sm: 0 1px 2px rgb(18 20 24 / 4%);
  --coco-shadow-overlay: 0 12px 40px rgb(18 20 24 / 12%);
  --coco-motion-fast: 150ms;
  --coco-motion-normal: 200ms;
  --coco-motion-ease: cubic-bezier(.2, 0, 0, 1);
}
body:not([data-theme-preset]), body[data-theme-preset='default'] {
  --background: #fafafa;
  --foreground: #202125;
  --card: #fff;
  --card-foreground: #202125;
  --popover: #fff;
  --popover-foreground: #202125;
  --primary: #c43c32;
  --primary-foreground: #fff;
  --secondary: #f0f0f1;
  --secondary-foreground: #37383e;
  --muted: #f3f3f4;
  --muted-foreground: #64666e;
  --accent: color-mix(in oklch, var(--primary) 8%, var(--background));
  --accent-foreground: #202125;
  --border: #e4e5e8;
  --input: #d5d6db;
  --ring: #c43c32;
  --chart-1: #c43c32;
  --overview-accent-1: var(--primary);
  --sidebar: #f6f6f7;
  --sidebar-foreground: #37383e;
  --sidebar-primary: var(--primary);
  --sidebar-primary-foreground: var(--primary-foreground);
  --sidebar-accent: color-mix(in oklch, var(--primary) 8%, var(--background));
  --sidebar-accent-foreground: var(--primary);
  --sidebar-border: var(--border);
  --sidebar-ring: var(--ring);
}
.dark body:not([data-theme-preset]), .dark body[data-theme-preset='default'] {
  --background: #111214;
  --foreground: #f4f4f5;
  --card: #181a1d;
  --card-foreground: #f4f4f5;
  --popover: #1e2024;
  --popover-foreground: #f4f4f5;
  --primary: #e76b60;
  --primary-foreground: #111214;
  --secondary: #24262b;
  --secondary-foreground: #e5e6e9;
  --muted: #222429;
  --muted-foreground: #a8abb2;
  --accent: color-mix(in oklch, var(--primary) 12%, var(--background));
  --accent-foreground: #f4f4f5;
  --border: #2a2d33;
  --input: #3a3e46;
  --ring: #e76b60;
  --chart-1: #e76b60;
  --sidebar: #141518;
  --sidebar-foreground: #d7d9de;
  --sidebar-accent: color-mix(in oklch, var(--primary) 12%, var(--background));
}
body:not([data-theme-preset]):not([data-theme-radius]),
body[data-theme-preset='default']:not([data-theme-radius]) { --radius: .625rem; }

:is([data-slot='app-header']) {
  background: var(--background);
  border-bottom: 1px solid var(--border);
}
:is([data-slot='sidebar-content']) { gap: .25rem; padding-block: .75rem; }
:is([data-slot='sidebar-group']) { padding-block: .375rem; }
:is([data-slot='sidebar-group-label']) {
  color: var(--muted-foreground);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .025em;
  text-transform: none;
}
:is([data-slot='sidebar-menu-button'], [data-slot='sidebar-menu-sub-button']) {
  transition-property: background-color, color, border-color;
  transition-duration: var(--coco-motion-fast);
  transition-timing-function: var(--coco-motion-ease);
}
:is([data-slot='button']) {
  transition-property: background-color, border-color, color, box-shadow, opacity, transform;
  transition-duration: var(--coco-motion-fast);
  transition-timing-function: var(--coco-motion-ease);
}
:is([data-slot='button'].bg-primary):hover:not(:disabled):not([aria-disabled='true']) {
  background: color-mix(in oklch, var(--primary) 92%, var(--foreground));
}
:is([data-slot='button'].bg-primary):active:not(:disabled):not([aria-disabled='true']) {
  background: color-mix(in oklch, var(--primary) 85%, var(--foreground));
}
:is([data-slot='button'], [data-slot='input'], [data-slot='textarea'], [data-slot='select-trigger']):focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
:is([data-slot='section-page-header']) { padding: 1rem .75rem .75rem; }
:is([data-slot='section-page-header'] h2) {
  font-size: var(--coco-type-title);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
  white-space: normal;
}
@media (min-width: 640px) {
  :is([data-slot='section-page-header']) { padding: 1.5rem 1.25rem 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  :root { --coco-motion-fast: 0ms; --coco-motion-normal: 0ms; }
}
