/* Nuvine Design System (Artifact "Nuvine Design System", tokens synced 2026-10-09).
   Dark first, 2px borders instead of shadows, no gradients, no glow, every status has a word. */
@font-face { font-family: "Baloo 2"; font-weight: 600; font-display: swap; src: url(fonts/baloo-2-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Baloo 2"; font-weight: 700; font-display: swap; src: url(fonts/baloo-2-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Baloo 2"; font-weight: 800; font-display: swap; src: url(fonts/baloo-2-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url(fonts/manrope-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url(fonts/manrope-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url(fonts/manrope-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 800; font-display: swap; src: url(fonts/manrope-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Font Awesome 6 Free"; font-weight: 900; font-display: block; src: url(fonts/fa-solid-900.woff2) format("woff2"); }

:root {
  --body: #17181c; --paper: #1e1f24; --paper-2: #26272d; --border: #2e2f36;
  --text: #cfd0d4; --text-dim: #858791; --text-bright: #ffffff;
  --blue: #3b6fea; --blue-bright: #6d94f0; --blue-dim: #3b6fea22; --blue-border: #3b6fea55;
  --green: #34c47a; --green-dim: #34c47a1f;
  --amber: #e2a13a; --amber-dim: #e2a13a1f; --amber-border: #e2a13a4d;
  --red: #f2554a; --red-dim: #f2554a1f; --red-soft-text: #f28b84;
  --slate: #64748b; --slate-dim: #64748b1f;
  --focus: #6d94f0; --focus-width: 2px;
  --radius-badge: 6px; --radius-btn: 8px; --radius-alert: 10px; --radius-card: 12px; --radius-tile: 18px; --radius-hero: 22px; --radius-banner: 24px;
  --font-heading: "Baloo 2", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--body); color: var(--text); font: 400 14px/1.5 var(--font-body); -webkit-font-smoothing: antialiased; }
a { color: var(--blue-bright); text-decoration: none; }
code { font-family: var(--font-mono); font-size: .92em; }
:focus-visible { outline: var(--focus-width) solid var(--focus); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; background: var(--blue); color: var(--text-bright); padding: 8px 14px; border-radius: var(--radius-btn); z-index: 10; }
.skip:focus { top: 12px; }
.fa { font-family: "Font Awesome 6 Free"; font-weight: 900; font-style: normal; line-height: 1; display: inline-block; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px 48px; }
.top { display: flex; align-items: center; gap: 12px; padding: 16px 0; }
.logo { height: 72px; width: auto; display: block; }
.me { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.me form { margin: 0; }
.who { color: var(--text-dim); font: 600 12.5px/1.4 var(--font-body); }

.btn, .btn-quiet { font: 700 14px/1.2 var(--font-body); border-radius: var(--radius-btn); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.btn { display: inline-block; background: var(--blue); color: var(--text-bright); border: 0; padding: 12px 22px; }
.btn:hover { background: var(--blue-bright); color: var(--text-bright); }
.btn-quiet { background: transparent; color: var(--text); border: 2px solid var(--border); padding: 6px 12px; font-size: 13px; font-weight: 600; }
.btn-quiet:hover { background: var(--paper-2); color: var(--text-bright); }

.hero { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; background: var(--paper);
  border: 2px solid var(--border); border-radius: var(--radius-hero); padding: 24px; margin-bottom: 32px; }
.hero h1 { font: 700 26px/1.2 var(--font-heading); color: var(--text-bright); margin: 0 0 4px; }
.stat-value { font: 700 19px/1.2 var(--font-heading); color: var(--text-bright); margin: 0 0 4px; }
.meta { font: 600 12.5px/1.4 var(--font-body); color: var(--text-dim); margin: 0; }
.kpis { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; }
.kpi { background: var(--paper-2); border-radius: var(--radius-card); padding: 12px 16px; min-width: 120px; }
.kpi dt { font: 600 12.5px/1.4 var(--font-body); color: var(--text); }
.kpi dd { margin: 0; font: 700 19px/1.2 var(--font-heading); color: var(--text-bright); }
.kpi-warn dd, .metric-warn dd { color: var(--amber); }
.kpi-bad dd, .metric-bad dd { color: var(--red-soft-text); }

.group { margin-bottom: 28px; }
.section-label { font: 700 11px/1.4 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); margin: 0 0 12px; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.tile { display: flex; flex-direction: column; gap: 12px; height: 100%; background: var(--paper); border: 2px solid var(--border);
  border-radius: var(--radius-tile); padding: 18px; color: var(--text); transition: border-color .2s; }
.tile:hover { border-color: var(--blue-border); color: var(--text); }
.tile-head { display: flex; align-items: center; gap: 12px; }
.tile-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--radius-alert); background: var(--blue-dim); color: var(--blue-bright); font-size: 16px; }
.tile-name { font: 700 15px/1.3 var(--font-body); color: var(--text-bright); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font: 700 11px/1.4 var(--font-body); letter-spacing: .02em; padding: 3px 9px; border-radius: var(--radius-badge); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.pill-green { background: var(--green-dim); color: var(--green); }
.pill-amber { background: var(--amber-dim); color: var(--amber); }
.pill-red { background: var(--red-dim); color: var(--red-soft-text); }
.pill-red .dot { background: var(--red); }
.pill-slate { background: var(--slate-dim); color: var(--text); }
.pill-slate .dot { background: var(--slate); }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.metric { background: var(--paper-2); border-radius: var(--radius-btn); padding: 8px 10px; min-width: 0; }
.metric dt { font: 600 12px/1.3 var(--font-body); color: var(--text); overflow-wrap: anywhere; }
.metric dd { margin: 2px 0 0; font: 700 17px/1.2 var(--font-heading); color: var(--text-bright); overflow-wrap: anywhere; }
.caption { font: 400 12px/1.5 var(--font-body); color: var(--text-dim); }

.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; position: relative; overflow: hidden; }
.blob { position: absolute; border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%; z-index: 0; }
.blob-blue { width: 520px; height: 440px; background: var(--blue); opacity: .13; top: -160px; left: -140px; }
.blob-green { width: 420px; height: 380px; background: var(--green); opacity: .12; bottom: -150px; right: -120px; }
.login-wrap { position: relative; z-index: 1; width: 100%; max-width: 420px; padding-top: 190px; }
.login-peek { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 220px; height: 204px; overflow: hidden; }
.login-peek svg { width: 220px; height: auto; display: block; }
.login-card { position: relative; background: var(--paper); border: 2px solid var(--border); border-radius: var(--radius-banner); padding: 32px; text-align: center; }
.login-logo { width: 196px; max-width: 100%; height: auto; display: block; margin: 0 auto 24px; }
.login-lead { margin: 0 0 24px; color: var(--text); }
.error-title { font: 800 clamp(28px, 7vw, 36px)/1.15 var(--font-heading); color: var(--text-bright); margin: 12px 0 8px; }
.tag-amber { display: inline-block; font: 700 11px/1.4 var(--font-body); padding: 3px 9px; border-radius: var(--radius-badge); background: var(--amber-dim); color: var(--amber); border: 1px solid var(--amber-border); }
.alert { text-align: left; border-radius: var(--radius-alert); padding: 12px 14px; margin: 0 0 20px; }
.alert-red { background: var(--red-dim); color: var(--red-soft-text); }
.alert-amber { background: var(--amber-dim); color: var(--amber); }

@media (max-width: 640px) {
  .wrap { padding: 0 16px 32px; }
  .top { flex-wrap: wrap; }
  .who { display: none; }
  .hero { padding: 18px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .login-card { padding: 28px 20px 24px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.attention { background: var(--paper); border: 2px solid var(--border); border-radius: var(--radius-tile); padding: 18px; margin-bottom: 32px; }
.attention .section-label { margin-bottom: 10px; }
.attention-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.attention-item { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: var(--paper-2); border-radius: var(--radius-btn); padding: 8px 12px; }
.attention-name { font: 700 14px/1.3 var(--font-body); color: var(--text-bright); }
a.attention-name:hover { color: var(--blue-bright); }
.attention-text { color: var(--text); overflow-wrap: anywhere; min-width: 0; }
.attention-ok { margin: 0; }
