/* smarts design system: tokens and building blocks for login, overview, smart Memory (/app) and the Agentics board.
   Single source. agentics/agentics/web/assets holds an unchanged copy (the board runs onprem without smarts):
   change a name here, update the copy there.
   Dunkel is the default, whatever the system says; Hell only when the viewer chose it
   (theme.js sets data-theme="light" on <html>, a click on the wordmark). */
@font-face {
  font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/Geist-Variable.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/GeistMono-Variable.woff2") format("woff2");
}

:root {
  --ground: #000000; --surface-1: #0b0b0c; --surface-2: #151517; --surface-3: #232326;
  --line: #26262a; --line-control: #6b6b72;
  --ink: #f4f4f5; --ink-muted: #a1a1a8; --ink-faint: #85858c; --ink-inverse: #000000;
  --gold: #fbc33e; --turquoise: #40e0d0; --focus: #40e0d0;
  --signal-ok: #4ade80; --signal-warn: #fbc33e; --signal-danger: #ff6363;
  --gold-soft: rgba(251, 195, 62, 0.14); --turquoise-soft: rgba(64, 224, 208, 0.12);
  --signal-ok-soft: rgba(74, 222, 128, 0.12); --signal-danger-soft: rgba(255, 99, 99, 0.12);
  --font-sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  --radius-xs: 4px; --radius-s: 8px; --radius-m: 12px; --radius-l: 16px; --radius-pill: 999px;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 24px 48px -16px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--glass-edge);
  --glass-pane: rgba(0, 0, 0, 0.62); --glass-fill: rgba(255, 255, 255, 0.06); --glass-edge: rgba(255, 255, 255, 0.14);
  --glass-hi: rgba(255, 255, 255, 0.10); --btn-hi: rgba(255, 255, 255, 0.55); --btn-shadow: rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(0.2, 0, 0, 1); --dur-fast: 120ms; --dur-base: 200ms;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --ground: #ffffff; --surface-1: #f7f7f7; --surface-2: #efeff0; --surface-3: #e4e4e6;
  --line: #e2e2e4; --line-control: #8a8a91;
  --ink: #0a0a0b; --ink-muted: #55555c; --ink-faint: #6b6b72; --ink-inverse: #ffffff;
  --gold: #8a6200; --turquoise: #0b7a72; --focus: #0b7a72;
  --signal-ok: #166a31; --signal-warn: #8a6200; --signal-danger: #c0261f;
  --gold-soft: rgba(251, 195, 62, 0.22); --turquoise-soft: rgba(11, 122, 114, 0.10);
  --signal-ok-soft: rgba(22, 106, 49, 0.10); --signal-danger-soft: rgba(192, 38, 31, 0.08);
  --shadow-1: 0 1px 2px rgba(10, 10, 11, 0.06);
  --shadow-2: 0 24px 48px -16px rgba(10, 10, 11, 0.22), 0 0 0 1px var(--glass-edge);
  --glass-pane: rgba(255, 255, 255, 0.66); --glass-fill: rgba(255, 255, 255, 0.55); --glass-edge: rgba(10, 10, 11, 0.10);
  --glass-hi: rgba(255, 255, 255, 0.9); --btn-hi: rgba(255, 255, 255, 0.22); --btn-shadow: rgba(10, 10, 11, 0.18);
  color-scheme: light;
}

/* The wordmark as the light/dark switch (button[data-theme-toggle]) */
:where(button.theme-toggle) {
  appearance: none; -webkit-appearance: none; background: none; border: 0; padding: 0; margin: 0;
  font: inherit; color: inherit; letter-spacing: inherit; cursor: pointer; text-align: left;
  transition: opacity 160ms var(--ease);
}
button.theme-toggle:hover { opacity: 0.72; }
button.theme-toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 4px; }

/* Building blocks. :where() keeps their weight at zero, so a page can adjust them without !important. */
:where(.sm-wordmark) { font: 500 22px/1 var(--font-sans); letter-spacing: -0.04em; color: var(--ink); text-decoration: none; }

:where(.sm-bar) {
  background: var(--glass-pane); border-bottom: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(24px) saturate(140%); backdrop-filter: blur(24px) saturate(140%);
}
:where(.sm-glass) {
  background: var(--glass-pane); border: 1px solid var(--glass-edge); border-radius: var(--radius-l);
  -webkit-backdrop-filter: blur(28px) saturate(140%); backdrop-filter: blur(28px) saturate(140%);
}

:where(.sm-label) { font: 500 11px/16px var(--font-mono); letter-spacing: 1.4px; text-transform: uppercase; color: var(--ink-faint); }

:where(.sm-pill) {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px;
  border-radius: var(--radius-pill); border: 1px solid var(--line-control); background: var(--glass-fill); color: var(--ink);
  box-shadow: inset 0 1px 0 var(--glass-hi); font: 500 13px/1 var(--font-sans); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}
:where(.sm-pill:hover) { border-color: var(--ink-muted); }
:where(.sm-pill:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
:where(.sm-pill:disabled, .sm-pill[aria-disabled="true"]) { opacity: 0.45; cursor: not-allowed; }
:where(.sm-pill--primary) {
  background: var(--ink); color: var(--ink-inverse); border-color: var(--ink);
  box-shadow: inset 0 1px 0 var(--btn-hi), 0 10px 30px -10px var(--btn-shadow);
}
:where(.sm-pill--primary:hover) { border-color: var(--ink); opacity: 0.88; }
:where(.sm-pill--danger) { color: var(--signal-danger); border-color: var(--signal-danger); background: transparent; box-shadow: none; }

:where(.sm-tile) {
  background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius-l); color: var(--ink);
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease);
}
:where(a.sm-tile:hover, button.sm-tile:hover, .sm-tile.is-interactive:hover) { border-color: var(--ink-muted); background: var(--surface-2); }

:where(.sm-input) {
  height: 42px; width: 100%; padding: 0; background: transparent; color: var(--ink);
  border: 0; border-bottom: 1px solid var(--line-control); border-radius: 0; font: 400 15px/24px var(--font-sans);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
:where(.sm-input::placeholder) { color: var(--ink-faint); }
:where(.sm-input:hover) { border-bottom-color: var(--ink-muted); }
:where(.sm-input:focus) { outline: none; border-bottom-color: var(--focus); box-shadow: 0 1px 0 var(--focus); }
