/* AUTO-GENERATED — DO NOT EDIT MANUALLY. */
/* Source: lib/design-tokens.json */
/* Regenerate: python3 scripts/build-theme-assets.py */


:root, [data-theme="neon-dark"] {
  --bg-primary: #0f172a;
  --bg: #0f172a;
  --bg-base: #0f172a;
  --th-bg-base: #0f172a;
  --bg-secondary: #1e293b;
  --surface: #1e293b;
  --bg-surface: #1e293b;
  --th-bg-surface: #1e293b;
  --bg-card: #1e293b;
  --bg-raised: #1e293b;
  --th-bg-raised: #1e293b;
  --bg-card-2: #273347;
  --surface-2: #273347;
  --text-primary: #f1f5f9;
  --text: #f1f5f9;
  --th-text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #94a3b8;
  --th-text-secondary: #94a3b8;
  --accent-blue: #3b82f6;
  --dashboard: #3b82f6;
  --th-accent-blue: #3b82f6;
  --border-focus: #3b82f6;
  --accent-green: #10b981;
  --side: #10b981;
  --th-accent-green: #10b981;
  --accent-amber: #f59e0b;
  --stale: #f59e0b;
  --th-accent-amber: #f59e0b;
  --accent-red: #ef4444;
  --alert-error: #ef4444;
  --th-accent-red: #ef4444;
  --border: #334155;
  --border-ui: #334155;
  --th-border-ui: #334155;
  --border-subtle: #334155;
  --th-border-subtle: #334155;
  --shadow: 0 4px 12px rgba(0,0,0,0.5);
  --online: #10b981;
  --offline: #94a3b8;
  --alert-warn: #f59e0b;
  --alert-info: #3b82f6;
}

[data-theme="minimal-light"] {
  --bg-primary: #ffffff;
  --bg: #ffffff;
  --bg-base: #ffffff;
  --th-bg-base: #ffffff;
  --bg-secondary: #f8fafc;
  --surface: #f8fafc;
  --bg-surface: #f8fafc;
  --th-bg-surface: #f8fafc;
  --bg-card: #ffffff;
  --bg-raised: #ffffff;
  --th-bg-raised: #ffffff;
  --bg-card-2: #f1f5f9;
  --surface-2: #f1f5f9;
  --text-primary: #0f172a;
  --text: #0f172a;
  --th-text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #475569;
  --th-text-secondary: #475569;
  --accent-blue: #2563eb;
  --dashboard: #2563eb;
  --th-accent-blue: #2563eb;
  --border-focus: #2563eb;
  --accent-green: #059669;
  --side: #059669;
  --th-accent-green: #059669;
  --accent-amber: #d97706;
  --stale: #d97706;
  --th-accent-amber: #d97706;
  --accent-red: #dc2626;
  --alert-error: #dc2626;
  --th-accent-red: #dc2626;
  --border: #e2e8f0;
  --border-ui: #e2e8f0;
  --th-border-ui: #e2e8f0;
  --border-subtle: #e2e8f0;
  --th-border-subtle: #e2e8f0;
  --shadow: 0 1px 3px rgba(0,0,0,0.1);
  --online: #059669;
  --offline: #475569;
  --alert-warn: #d97706;
  --alert-info: #2563eb;
}

[data-theme="mono"] {
  --bg-primary: #0a0a0a;
  --bg: #0a0a0a;
  --bg-base: #0a0a0a;
  --th-bg-base: #0a0a0a;
  --bg-secondary: #171717;
  --surface: #171717;
  --bg-surface: #171717;
  --th-bg-surface: #171717;
  --bg-card: #171717;
  --bg-raised: #171717;
  --th-bg-raised: #171717;
  --bg-card-2: #262626;
  --surface-2: #262626;
  --text-primary: #fafafa;
  --text: #fafafa;
  --th-text-primary: #fafafa;
  --text-secondary: #a3a3a3;
  --text-muted: #a3a3a3;
  --th-text-secondary: #a3a3a3;
  --accent-blue: #e5e5e5;
  --dashboard: #e5e5e5;
  --th-accent-blue: #e5e5e5;
  --border-focus: #e5e5e5;
  --accent-green: #d4d4d4;
  --side: #d4d4d4;
  --th-accent-green: #d4d4d4;
  --accent-amber: #a3a3a3;
  --stale: #a3a3a3;
  --th-accent-amber: #a3a3a3;
  --accent-red: #737373;
  --alert-error: #737373;
  --th-accent-red: #737373;
  --border: #262626;
  --border-ui: #262626;
  --th-border-ui: #262626;
  --border-subtle: #262626;
  --th-border-subtle: #262626;
  --shadow: none;
  --online: #d4d4d4;
  --offline: #a3a3a3;
  --alert-warn: #a3a3a3;
  --alert-info: #e5e5e5;
}

[data-theme="ocean"] {
  --bg-primary: #0c4a6e;
  --bg: #0c4a6e;
  --bg-base: #0c4a6e;
  --th-bg-base: #0c4a6e;
  --bg-secondary: #075985;
  --surface: #075985;
  --bg-surface: #075985;
  --th-bg-surface: #075985;
  --bg-card: #0c4a6e;
  --bg-raised: #0c4a6e;
  --th-bg-raised: #0c4a6e;
  --bg-card-2: #0369a1;
  --surface-2: #0369a1;
  --text-primary: #e0f2fe;
  --text: #e0f2fe;
  --th-text-primary: #e0f2fe;
  --text-secondary: #7dd3fc;
  --text-muted: #7dd3fc;
  --th-text-secondary: #7dd3fc;
  --accent-blue: #38bdf8;
  --dashboard: #38bdf8;
  --th-accent-blue: #38bdf8;
  --border-focus: #38bdf8;
  --accent-green: #5eead4;
  --side: #5eead4;
  --th-accent-green: #5eead4;
  --accent-amber: #fde047;
  --stale: #fde047;
  --th-accent-amber: #fde047;
  --accent-red: #fb7185;
  --alert-error: #fb7185;
  --th-accent-red: #fb7185;
  --border: #0369a1;
  --border-ui: #0369a1;
  --th-border-ui: #0369a1;
  --border-subtle: #0369a1;
  --th-border-subtle: #0369a1;
  --shadow: 0 4px 12px rgba(0,0,0,0.4);
  --online: #5eead4;
  --offline: #7dd3fc;
  --alert-warn: #fde047;
  --alert-info: #38bdf8;
}

:root {
  --font-system: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Monaco, Consolas, monospace;
  --font-size: 14px;
}
[data-font-size="sm"] { --font-size: 12px; }
[data-font-size="base"] { --font-size: 14px; }
[data-font-size="lg"] { --font-size: 16px; }

:root {
  --gap: 16px;
  --radius: 8px;
}

[data-density="sm"] .section, [data-density="sm"] section.panel { padding: 6px 10px; }
[data-density="base"] .section, [data-density="base"] section.panel { padding: 10px 14px; }
[data-density="lg"] .section, [data-density="lg"] section.panel { padding: 14px 18px; }

/* ── common component semantics (generated) ── */
.badge-state.badge-state-online,
.badge-alert.badge-alert-info {
  color: var(--online, var(--alert-info));
  background: color-mix(in srgb, currentColor 14%, transparent);
  border: 1px solid color-mix(in srgb, currentColor 40%, transparent);
}
.badge-state.badge-state-stale,
.badge-alert.badge-alert-warn {
  color: var(--stale, var(--alert-warn));
  background: color-mix(in srgb, currentColor 14%, transparent);
  border: 1px solid color-mix(in srgb, currentColor 40%, transparent);
}
.badge-state.badge-state-offline,
.badge-alert.badge-alert-error {
  color: var(--offline, var(--alert-error));
  background: color-mix(in srgb, currentColor 14%, transparent);
  border: 1px solid color-mix(in srgb, currentColor 40%, transparent);
}
.badge-custom {
  color: var(--badge-color, var(--text-primary));
  background: color-mix(in srgb, currentColor 12%, transparent);
  border: 1px solid color-mix(in srgb, currentColor 35%, transparent);
}
.status-chip {
  display: inline-block;
  padding: 1px 2px 3px;
  border-bottom: 2px solid currentColor;
  color: var(--text-primary);
}


/* ── nav styles (generated from ui_grammar.nav) ── */
.app-top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 var(--gap, 16px);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  font-family: var(--font-system, system-ui);
}
.app-top-nav__left { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.app-top-nav__logo { font-size: 24px; line-height: 1; }
.app-top-nav__name { font-weight: 700; color: var(--text-primary); font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-top-nav__center { flex: 2; text-align: center; color: var(--text-secondary); font-size: 14px; }
.app-top-nav__right { display: flex; align-items: center; gap: 8px; flex: 1; justify-content: flex-end; }
.app-top-nav__settings {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 22px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s;
  line-height: 1;
}
.app-top-nav__settings:hover { transform: rotate(45deg); }
.app-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 56px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.app-bottom-nav__tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 12px;
  border-top: 2px solid transparent;
  transition: color .15s, border-color .15s, background .15s;
  min-height: 54px;
}
.app-bottom-nav__tab:hover {
  background: color-mix(in srgb, var(--tab-accent, var(--accent-blue)) 10%, transparent);
  color: var(--text-primary);
}
.app-bottom-nav__tab.is-active {
  color: var(--tab-accent, var(--accent-blue));
  border-top-color: var(--tab-accent, var(--accent-blue));
  font-weight: 700;
  background: color-mix(in srgb, var(--tab-accent, var(--accent-blue)) 8%, transparent);
}
.app-bottom-nav__icon { font-size: 20px; line-height: 1; }
.app-bottom-nav__label { letter-spacing: .3px; }
@media (max-width: 600px) {
  .app-top-nav { height: 56px; padding: 0 12px; }
  .app-top-nav__name { font-size: 14px; }
  .app-top-nav__center { display: none; }
}
