/* Bulldog product tokens, aligned with streamvid_design and the newsbot panel. */
:root {
  /* surfaces — один холодный hue, шаги по светлоте */
  --bg: #ffffff;
  --panel: #ffffff;
  --panel-soft: #f6f8f8;
  --panel-3: #edf1f2;
  --inset: #f6f8f8;
  --sidebar: #11171b;

  /* borders — «шёпот», низкая прозрачность */
  --border: #dfe4e6;
  --border-light: #c9d0d3;
  --border-strong: #89959c;

  /* text — 3 уровня + muted */
  --text: #12191d;
  --text-soft: #48545d;
  --text-muted: #59666e;

  /* accent — зелёный из родительской темы, один акцент */
  --accent: #087936;
  --accent-hover: #06642d;
  --accent-soft: #edf8f1;

  /* semantic — как LED */
  --danger: #bd2c2c;
  --danger-hover: #9d2323;
  --success: #087936;
  --warning: #8a5900;
  --net: #17639c;

  --radius: .75rem;
  --radius-sm: .4375rem;
  --radius-lg: .875rem;

  --shadow: 0 16px 48px rgba(18,25,29,.12);
  --shadow-sm: 0 2px 8px rgba(18,25,29,.04);

  --sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --z-dropdown: 20;
  --z-sticky: 50;
  --z-navigation: 60;
  --z-modal: 10000;
  --z-modal-nested: 10001;
  --z-toast: 10002;
  --space-field: 1rem;
  --space-group: 1.5rem;
  --space-section: 2rem;
  --dialog-inset: 1.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 { margin-top: 0; font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: 24px; margin-bottom: 16px; }
h2 { font-size: 20px; margin-bottom: 12px; }
h3 { font-size: 16px; margin-bottom: 8px; }
h4 { font-size: 14px; }

p { margin: 0 0 1em; color: var(--text-soft); text-wrap: pretty; }

a { color: var(--accent); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--accent-hover); }

code, kbd, samp, .mono { font-family: var(--mono); }
.tnum { font-variant-numeric: tabular-nums; }

/* Forms — inset, тёмные */
input:where(:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"])), select, textarea {
  background: var(--inset);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--sans);
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  outline: none;
}
input[type="checkbox"], input[type="radio"] {
  width: 18px;
  height: 18px;
  padding: 0;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--accent);
}
input[type="range"] { width: 100%; min-height: 2.75rem; padding: 0; accent-color: var(--accent); }
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }

label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 500; color: var(--text-soft); }

/* Utilities */
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-center { text-align: center; }
.icon { font-size: 16px; vertical-align: middle; margin-right: 4px; }
.eyebrow { font-family: var(--mono); font-size: 10px; letter-spacing: 1.5px; color: var(--text-muted); text-transform: uppercase; }

/* LED status dots */
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.dot-ok { background: var(--success); }
.dot-warn { background: var(--warning); }
.dot-down { background: var(--danger); }
.dot-net { background: var(--net); }

::selection { background: #cdebd7; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
