/* =====================================================================
   MPM Toolkits — design system
   Direction: an engineering console. Calm slate ground, one blueprint-cyan
   accent, a technical mono for codes and metrics. Disciplined grid, hairline
   structure, no decorative flourish. Light + dark via [data-theme].
   ===================================================================== */

:root {
  /* palette — light */
  --ink:        #0f1720;
  --ink-2:      #33414f;
  --muted:      #64748b;
  --faint:      #94a3b8;
  --line:       #e2e8f0;
  --line-2:     #eef2f6;
  --surface:    #ffffff;
  --surface-2:  #f7f9fb;
  --surface-3:  #eff3f7;
  --ground:     #f1f5f9;

  --accent:     #0b7285;   /* blueprint cyan-teal */
  --accent-2:   #0d92a8;
  --accent-ink: #ffffff;
  --accent-wash:#e6f4f7;

  --ok:    #16a34a;
  --warn:  #d97706;
  --err:   #dc2626;
  --info:  #0ea5e9;

  /* type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", "Cascadia Code", Menlo, monospace;

  /* rhythm */
  --r-xs: 4px; --r-sm: 6px; --r-md: 8px; --r-lg: 12px; --r-xl: 16px;
  --shadow-1: 0 1px 2px rgba(15,23,32,.06), 0 1px 1px rgba(15,23,32,.04);
  --shadow-2: 0 4px 16px rgba(15,23,32,.08), 0 1px 3px rgba(15,23,32,.06);
  --shadow-pop: 0 12px 40px rgba(15,23,32,.16);

  --sidebar-w: 248px;
  --header-h: 60px;
}

[data-theme="dark"] {
  --ink:        #e6edf3;
  --ink-2:      #b6c2cf;
  --muted:      #8b98a5;
  --faint:      #5b6b7a;
  --line:       #1e2b38;
  --line-2:     #18232f;
  --surface:    #0f1923;
  --surface-2:  #0c141d;
  --surface-3:  #16222e;
  --ground:     #080d13;

  --accent:     #22b8cf;
  --accent-2:   #3dd0e3;
  --accent-ink: #04141a;
  --accent-wash:#0c2a30;

  --shadow-1: 0 1px 2px rgba(0,0,0,.4);
  --shadow-2: 0 6px 20px rgba(0,0,0,.5);
  --shadow-pop: 0 16px 48px rgba(0,0,0,.6);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3,h4 { margin: 0; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
p { margin: 0 0 .75rem; }

/* technical labels + codes */
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}
.code-chip {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  color: var(--accent); background: var(--accent-wash);
  padding: 2px 7px; border-radius: var(--r-sm); letter-spacing: .02em;
  white-space: nowrap;
}

/* focus visibility (a11y floor) */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

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

/* utility scaffolding used by views */
.stack > * + * { margin-top: var(--gap, 1rem); }
.row-flex { display: flex; gap: .75rem; align-items: center; }
.row-flex.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.text-right { text-align: right; }
.hidden { display: none !important; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[x-cloak]{display:none !important;}
