/* deco design system — tokens (gerado de tokens.json; não edite à mão).
   Fonte: deco Chat (decocms/chat web/styles/tailwind.css) e deco Studio (decocms/studio packages/ui/src/styles/global.css).
   Copie para o projeto com a pasta fonts/ ao lado e importe antes de qualquer outro CSS.
   Tema: segue o sistema; force com <html data-theme="light|dark"> (a classe .dark também vale). */

@font-face { font-family: "Inter var"; src: url("./fonts/InterVariable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter var"; src: url("./fonts/InterVariable-Italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "CommitMono"; src: url("./fonts/CommitMono.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  color-scheme: light;
  --space-1: 4px;
  --space-1-5: 6px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-8: 32px;
  --control-height: 36px;
  --rail-width: 68px;
  --sidebar-width: 272px;
  --studio-sidebar-width: 192px;
  --panel-gap: 4px;
  --topbar-height: 48px;
  --chat-topbar-height: 52px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-control: 10px;
  --radius-icon: 11px;
  --radius-panel: 14px;
  --radius-surface: 16px;
  --radius-bubble: 18px;
  --radius-pill: 9999px;
  --font-sans: "Inter var", Inter, ui-sans-serif, system-ui, sans-serif;
  --font-mono: CommitMono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --background: #fefdfb;
  --foreground: #0a0a09;
  --sidebar: #faf9f7;
  --card: #fffffd;
  --popover: #fffffd;
  --muted: #f5f4f2;
  --muted-foreground: #676664;
  --subtle-foreground: #a4a3a1;
  --accent: #f5f4f2;
  --sidebar-accent: #edecea;
  --input-background: #fffffd;
  --sidebar-border: #edecea;
  --sidebar-accent-foreground: #0a0a09;
  --sidebar-foreground: #0a0a09;
  --border: #edecea;
  --hairline: #0000000f;
  --input: #e4e3e1;
  --ring: #0a0a09;
  --primary: #0a0a09;
  --primary-foreground: #ffffff;
  --primary-hover: #2a2a28;
  --secondary: #f5f4f2;
  --secondary-hover: #edecea;
  --destructive: #df2225;
  --destructive-foreground: #ffffff;
  --success: #009a41;
  --success-foreground: #ffffff;
  --warning: #c56e00;
  --warning-foreground: #ffffff;
  --special: #6f5fe0;
  --special-foreground: #ffffff;
  --link: #216bf2;
  --notice: #216bf2;
  --highlight: #e6edfc;
  --glass: #ffffffdb;
  --glass-rim: #ffffffe6;
  --scrim: #0000002e;
  --brand: #d0ec1a;
  --brand-foreground: #07401a;
  --brand-soft: #8caa25;
  --brand-lime-tint: #eff6cc;
  --brand-purple-light: #a595ff;
  --brand-purple-dark: #151042;
  --brand-purple-tint: #efecff;
  --brand-yellow-light: #ffc116;
  --brand-yellow-dark: #392b02;
  --brand-yellow-tint: #fff4d1;
  --brand-blue: oklch(0.829 0.105 209.2);
  --brand-blue-dark: #0b3b44;
  --brand-blue-tint: #e0f7fb;
  --series-1: #257de0;
  --series-2: #f47230;
  --series-3: #00b894;
  --series-4: #f2a600;
  --series-5: #ee7fac;
  --series-6: #008a17;
  --series-7: #6a4ce2;
  --series-8: #ec4647;
  --agent-claude: #d97757;
  --agent-claude-text: #a84a25;
  --brand-purple-text: #6a58d6;
  --room-tint-blue: oklch(0.6 0.15 248);
  --room-tint-green: oklch(0.62 0.14 155);
  --room-tint-yellow: oklch(0.8 0.15 95);
  --room-tint-orange: oklch(0.68 0.16 50);
  --room-tint-pink: oklch(0.65 0.18 350);
  --room-tint-purple: oklch(0.58 0.17 300);
  --app-site-editor: oklch(0.64 0.16 289);
  --app-calendar: oklch(0.64 0.16 325);
  --app-experiments: oklch(0.64 0.16 15);
  --app-blog: oklch(0.64 0.16 222);
  --app-analytics: oklch(0.64 0.16 245);
  --app-hosting: oklch(0.64 0.16 120);
  --app-releases: oklch(0.64 0.16 85);
  --app-reports: oklch(0.64 0.16 265);
  --chart-1: oklch(0.73 0.15 289);
  --shadow-edge: 0 0 0 1px #0000001c, 0 1px 2px 0 #0000000d;
  --shadow-edge-raised: 0 0 0 1px #0000001c, 0 1px 2px 0 #0000000d, 0 4px 12px 0 #0000000f;
  --shadow-md: 0 4px 12px #0000000f, 0 2px 4px #0000000a;
  --shadow-lg: 0 8px 32px #00000014, 0 4px 12px #0000000f;
  --shadow-glass: 0 0 0 1px #0000000d, 0 2px 6px 0 #00000008, 0 24px 64px 0 #0000001a;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --background: oklch(0.175 0 0);
    --foreground: oklch(0.96 0 0);
    --sidebar: oklch(0.155 0 0);
    --card: oklch(0.21 0 0);
    --popover: oklch(0.22 0 0);
    --muted: oklch(0.23 0 0);
    --muted-foreground: oklch(0.62 0 0);
    --subtle-foreground: oklch(0.5 0 0);
    --accent: oklch(0.26 0 0);
    --sidebar-accent: oklch(0.23 0 0);
    --input-background: color-mix(in oklab, oklch(0.28 0 0) 30%, transparent);
    --sidebar-border: oklch(0.26 0 0);
    --sidebar-accent-foreground: oklch(0.96 0 0);
    --sidebar-foreground: oklch(0.96 0 0);
    --border: oklch(0.26 0 0);
    --hairline: #ffffff1a;
    --input: oklch(0.28 0 0);
    --ring: oklch(0.82 0 0);
    --primary: oklch(0.82 0 0);
    --primary-foreground: oklch(0.14 0 0);
    --primary-hover: oklch(0.74 0 0);
    --secondary: oklch(0.26 0 0);
    --secondary-hover: oklch(0.3 0 0);
    --destructive: oklch(0.62 0.22 27);
    --destructive-foreground: oklch(0.97 0.01 17);
    --success: oklch(0.45 0.15 149);
    --success-foreground: oklch(0.97 0.02 156);
    --warning: oklch(0.65 0.15 70);
    --warning-foreground: oklch(0.98 0.02 95);
    --special: oklch(0.60 0.16 290);
    --special-foreground: oklch(0.97 0.02 295);
    --link: #739eff;
    --notice: oklch(0.72 0.11 245);
    --highlight: #263866;
    --glass: #1c1c1cb8;
    --glass-rim: #ffffff14;
    --scrim: #00000066;
    --series-1: #338ced;
    --series-2: #e76624;
    --series-3: #00a888;
    --series-4: #d28e05;
    --series-5: #e24d8b;
    --series-6: #0aac23;
    --series-7: #9887ef;
    --series-8: #eb6263;
    --agent-claude: #e07f55;
    --agent-claude-text: #e07f55;
    --brand-purple-text: #a595ff;
    --shadow-edge: inset 0 1px 0 0 #ffffff08, inset 0 0 0 1px #ffffff08, 0 0 0 1px #0000001a, 0 2px 2px 0 #0000001a, 0 4px 4px 0 #0000001a, 0 8px 8px 0 #0000001a;
    --shadow-edge-raised: inset 0 1px 0 0 #ffffff08, inset 0 0 0 1px #ffffff08, 0 0 0 1px #0000001a, 0 4px 8px 0 #00000026, 0 16px 32px -8px #00000040;
    --shadow-glass: 0 0 0 1px #00000040, 0 24px 64px 0 #00000066;
  }
}
:root[data-theme="dark"], .dark {
  color-scheme: dark;
  --background: oklch(0.175 0 0);
  --foreground: oklch(0.96 0 0);
  --sidebar: oklch(0.155 0 0);
  --card: oklch(0.21 0 0);
  --popover: oklch(0.22 0 0);
  --muted: oklch(0.23 0 0);
  --muted-foreground: oklch(0.62 0 0);
  --subtle-foreground: oklch(0.5 0 0);
  --accent: oklch(0.26 0 0);
  --sidebar-accent: oklch(0.23 0 0);
  --input-background: color-mix(in oklab, oklch(0.28 0 0) 30%, transparent);
  --sidebar-border: oklch(0.26 0 0);
  --sidebar-accent-foreground: oklch(0.96 0 0);
  --sidebar-foreground: oklch(0.96 0 0);
  --border: oklch(0.26 0 0);
  --hairline: #ffffff1a;
  --input: oklch(0.28 0 0);
  --ring: oklch(0.82 0 0);
  --primary: oklch(0.82 0 0);
  --primary-foreground: oklch(0.14 0 0);
  --primary-hover: oklch(0.74 0 0);
  --secondary: oklch(0.26 0 0);
  --secondary-hover: oklch(0.3 0 0);
  --destructive: oklch(0.62 0.22 27);
  --destructive-foreground: oklch(0.97 0.01 17);
  --success: oklch(0.45 0.15 149);
  --success-foreground: oklch(0.97 0.02 156);
  --warning: oklch(0.65 0.15 70);
  --warning-foreground: oklch(0.98 0.02 95);
  --special: oklch(0.60 0.16 290);
  --special-foreground: oklch(0.97 0.02 295);
  --link: #739eff;
  --notice: oklch(0.72 0.11 245);
  --highlight: #263866;
  --glass: #1c1c1cb8;
  --glass-rim: #ffffff14;
  --scrim: #00000066;
  --series-1: #338ced;
  --series-2: #e76624;
  --series-3: #00a888;
  --series-4: #d28e05;
  --series-5: #e24d8b;
  --series-6: #0aac23;
  --series-7: #9887ef;
  --series-8: #eb6263;
  --agent-claude: #e07f55;
  --agent-claude-text: #e07f55;
  --brand-purple-text: #a595ff;
  --shadow-edge: inset 0 1px 0 0 #ffffff08, inset 0 0 0 1px #ffffff08, 0 0 0 1px #0000001a, 0 2px 2px 0 #0000001a, 0 4px 4px 0 #0000001a, 0 8px 8px 0 #0000001a;
  --shadow-edge-raised: inset 0 1px 0 0 #ffffff08, inset 0 0 0 1px #ffffff08, 0 0 0 1px #0000001a, 0 4px 8px 0 #00000026, 0 16px 32px -8px #00000040;
  --shadow-glass: 0 0 0 1px #00000040, 0 24px 64px 0 #00000066;
}

/* Base, igual aos dois apps. */
html, body { background: var(--sidebar); color: var(--foreground); }
body {
  font-family: var(--font-sans);
  font-feature-settings: "cv01","cv02","cv03","cv04","cv08","cv10","ss08";
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
}
/* Ícones Untitled UI. As referências usam .i / .st; scripts/icon.py usa .icon / .studio. Os dois valem. */
svg.icon, svg.i { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.studio svg.icon, .studio svg.i, .st svg.icon, .st svg.i { stroke-width: 1.75; }
::selection { background: var(--highlight); }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.surface { background: var(--card); border-radius: var(--radius-surface); box-shadow: var(--shadow-edge); }
.surface-inset { background: var(--muted); border-radius: var(--radius-control); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.text-meta { font-size: 12px; line-height: 16px; color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) {
  :where(a, button, input, select, textarea, [role=switch]) { transition: background-color .15s cubic-bezier(.4,0,.2,1), color .15s cubic-bezier(.4,0,.2,1), box-shadow .15s cubic-bezier(.4,0,.2,1); }
}
