/* ─────────────────────────────────────────────────────────────────────────────
   STEM for Bugs — dashboard theme.

   Palette sampled from stemforbugs.com: mint #40C1AC is the brand accent,
   sitting on black/white with a deep teal for hero panels. Type is geometric
   uppercase — Jost stands in for the site's Futura headlines.
   ───────────────────────────────────────────────────────────────────────────── */
:root {
  /* Brand */
  --mint:         #40C1AC;   /* primary accent, straight off the site */
  --mint-light:   #8CDACD;
  --mint-pale:    #E4F5F1;
  --teal-deep:    #1F6156;   /* hero panels */
  --teal-darkest: #0F3D36;
  --ink:          #0A0A0A;

  /* Surfaces */
  --paper:  #FFFFFF;
  --bg:     #F4F7F6;
  --border: #E2EBE8;

  /* Text */
  --text:  #14201E;
  --text2: #566865;
  --text3: #8A9B98;

  /* Status. Red is the site's berry so alerts stay on-brand. */
  --green:  #2E9E6B;
  --yellow: #D9902B;
  --red:    #BB334F;

  /* Type */
  --font-display: 'Jost', 'Futura', 'Century Gothic', 'Avenir Next', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:    ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, monospace;

  /* STEM's packaging and site lean heavily on pill/rounded shapes. */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(15,61,54,.06);
  --shadow-md: 0 4px 16px rgba(15,61,54,.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

/* ─── BUTTONS ─────────────────────────────────────────────────────────────── */
.btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .6rem 1.1rem;
  border: 1.5px solid transparent;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .1s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.btn-primary { background: var(--mint); color: var(--ink); }
.btn-primary:hover:not(:disabled) { background: var(--teal-deep); color: var(--paper); }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover:not(:disabled) { border-color: var(--mint); color: var(--teal-deep); }

/* On the dark header, ghost buttons need to invert. */
.btn-on-dark { background: rgba(255,255,255,.1); color: var(--paper); border-color: rgba(255,255,255,.28); }
.btn-on-dark:hover:not(:disabled) { background: var(--mint); color: var(--ink); border-color: var(--mint); }

.btn-sm { padding: .42rem .8rem; font-size: .68rem; }
.btn-block { width: 100%; display: block; padding: .78rem; font-size: .82rem; }

/* ─── CARDS ───────────────────────────────────────────────────────────────── */
.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow-sm);
}

/* Card label: small mono caps, with room for a badge on the right. */
.card-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: .6rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text3);
  margin-bottom: .85rem;
}

/* ─── BADGES ──────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-family: var(--font-mono);
  font-size: .6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .22rem .6rem;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.badge-green  { background: rgba(46,158,107,.12); color: var(--green); }
.badge-yellow { background: rgba(217,144,43,.14); color: var(--yellow); }
.badge-red    { background: rgba(187,51,79,.12);  color: var(--red); }
.badge-mint   { background: var(--mint-pale);     color: var(--teal-deep); }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ─── NUMBERS ─────────────────────────────────────────────────────────────── */
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ─── SCROLLBAR ───────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--mint-light); border-radius: var(--r-pill); border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--mint); }

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