/* =========================================================
   Output — Design System
   Ink #141416 · Paper #FFFFFF · Signal teal #14A39A
   DM Serif Display · Geist · JetBrains Mono
   ========================================================= */

:root {
  /* Ink & paper */
  --ink: #141416;
  --ink-90: #1e1e21;
  --ink-80: #2a2a2d;
  --ink-70: #3d3d42;
  --ink-60: #55555a;
  --ink-50: #6f6f75;
  --ink-40: #8b8b90;
  --ink-30: #acacb0;
  --ink-20: #c9c9cc;
  --ink-10: #e5e5e7;
  --ink-05: #f1f1f2;
  --paper: #ffffff;
  --paper-warm: #faf9f6;
  --paper-line: #ececec;

  /* Signal teal — chosen accent */
  --teal: #14A39A;
  --teal-ink: #0b7a73;          /* darker for text on paper */
  --teal-wash: #e4f5f3;         /* surface tint */
  --teal-wash-strong: #c9ebe7;

  /* State */
  --ok: #2d7a4f;
  --ok-wash: #e7f1ea;
  --warn: #b5791f;
  --warn-wash: #f5ecda;
  --err: #a8331f;
  --err-wash: #f5e3de;

  /* Motion */
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --dur-xs: 120ms;
  --dur-sm: 180ms;
  --dur-md: 240ms;
  --dur-lg: 360ms;

  /* Signature print shadows */
  --shadow-print: 1px 2px 0 rgba(20,20,22,0.06), 0 1px 2px rgba(20,20,22,0.04);
  --shadow-print-lg: 2px 3px 0 rgba(20,20,22,0.08), 0 2px 6px rgba(20,20,22,0.05);

  /* Radii — kept tight, editorial */
  --r-sm: 3px;
  --r-md: 4px;
  --r-lg: 6px;
  --r-pill: 100px;

  /* Type stacks */
  --font-display: 'DM Serif Display', 'Times New Roman', serif;
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { height: 100%; }
body {
  min-height: 100%;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.003em;
  color: var(--ink);
  background: var(--paper-warm);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Type primitives ---------- */
.t-display { font-family: var(--font-display); font-weight: 400; font-size: 80px; line-height: 0.95; letter-spacing: -0.02em; }
.t-h1 { font-family: var(--font-display); font-weight: 400; font-size: 48px; line-height: 1.05; letter-spacing: -0.015em; }
.t-h2 { font-family: var(--font-sans); font-weight: 600; font-size: 24px; line-height: 1.25; letter-spacing: -0.01em; }
.t-h3 { font-family: var(--font-sans); font-weight: 500; font-size: 16px; line-height: 1.35; letter-spacing: -0.005em; }
.t-body { font-family: var(--font-sans); font-weight: 400; font-size: 14px; line-height: 1.55; color: var(--ink-80); }
.t-small { font-family: var(--font-sans); font-weight: 500; font-size: 12px; line-height: 1.4; letter-spacing: 0.02em; color: var(--ink-60); }
.t-mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--ink-60); }
.t-eyebrow { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-60); }
.t-eyebrow-teal { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal-ink); }

/* ---------- Wordmark ---------- */
.wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.85;
  letter-spacing: -0.02em;
  user-select: none;
  white-space: nowrap;
}

/* Logo — split wordmark. Used everywhere.
   Usage:
   <span class="output-logo" style="--logo-size: 24px;">
     <span class="oh d"><span class="wordmark">Output</span></span>
     <span class="oh l"><span class="wordmark">Output</span></span>
   </span>
*/
.output-logo {
  --logo-size: 28px;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  height: calc(var(--logo-size) * 1.45);
  transition: filter var(--dur-sm) var(--ease);
}
.output-logo .oh { display: flex; align-items: center; overflow: hidden; transition: background-color var(--dur-md) var(--ease), color var(--dur-md) var(--ease); }
.output-logo .oh.d { background: var(--ink); color: var(--paper); justify-content: flex-end; }
.output-logo .oh.l { background: var(--paper); color: var(--ink); justify-content: flex-start; }
.output-logo .oh .wordmark { font-size: var(--logo-size); }
.output-logo .oh.d .wordmark { transform: translateX(50%); }
.output-logo .oh.l .wordmark { transform: translateX(-50%); }
.output-logo:hover .oh.d { background: var(--paper); color: var(--ink); }
.output-logo:hover .oh.l { background: var(--ink); color: var(--paper); }

/* On a dark parent, the "l" half needs a ring to stay visible; handled per-context. */

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.003em;
  padding: 10px 18px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition:
    background-color var(--dur-sm) var(--ease),
    color var(--dur-sm) var(--ease),
    border-color var(--dur-sm) var(--ease),
    box-shadow var(--dur-sm) var(--ease),
    transform var(--dur-xs) var(--ease);
  position: relative;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-disabled { opacity: 0.45; cursor: not-allowed; }
.btn.sm { padding: 6px 12px; font-size: 12px; }
.btn.lg { padding: 12px 22px; font-size: 14px; }

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 1px 1px 0 var(--ink-20);
}
.btn-primary:hover { background: #000; box-shadow: 2px 2px 0 var(--teal); }

.btn-secondary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: var(--paper); }

.btn-ghost { color: var(--ink-80); }
.btn-ghost:hover { background: var(--ink-10); color: var(--ink); }

.btn-teal {
  background: var(--teal);
  color: var(--paper);
  box-shadow: 1px 1px 0 var(--teal-ink);
}
.btn-teal:hover { background: var(--teal-ink); }

.btn-danger-ghost {
  color: var(--err);
  border-color: var(--ink-20);
  background: var(--paper);
}
.btn-danger-ghost:hover { background: var(--err-wash); border-color: var(--err); }

.btn .kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 1px 5px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 3px;
  margin-left: 4px;
  letter-spacing: 0.04em;
}
.btn-secondary .kbd, .btn-ghost .kbd { border-color: var(--ink-20); color: var(--ink-60); }

/* Inputs */
.input, .select {
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 10px 14px;
  border: 1px solid var(--ink-20);
  border-radius: var(--r-md);
  background: var(--paper);
  color: var(--ink);
  width: 100%;
  transition: border-color var(--dur-sm) var(--ease), box-shadow var(--dur-sm) var(--ease);
  appearance: none;
}
.input::placeholder { color: var(--ink-40); }
.input:focus, .select:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(20,163,154,0.20);
}
.input.mono { font-family: var(--font-mono); letter-spacing: 0.04em; }

.input-group { display: flex; flex-direction: column; gap: 8px; }
.input-group label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-60); }
.input-help { font-size: 12px; color: var(--ink-60); line-height: 1.5; margin-top: 2px; }
.input-help code { font-family: var(--font-mono); font-size: 11px; background: var(--ink-05); padding: 1px 5px; border-radius: 3px; color: var(--ink-80); }

/* Select arrow */
.select-wrap { position: relative; }
.select-wrap::after {
  content: ''; position: absolute; right: 16px; top: 50%;
  width: 7px; height: 7px; border-right: 1.5px solid var(--ink-60); border-bottom: 1.5px solid var(--ink-60);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}

/* ---------- Cards / surfaces ---------- */
.surface {
  background: var(--paper);
  border: 1px solid var(--ink-10);
}
.surface-print {
  background: var(--paper);
  border: 1px solid var(--ink-10);
  box-shadow: var(--shadow-print);
}
.surface-print-lg {
  background: var(--paper);
  border: 1px solid var(--ink-10);
  box-shadow: var(--shadow-print-lg);
}

/* ---------- Chips / status ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--ink-20);
  color: var(--ink-80);
  background: var(--paper);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.chip::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-40);
}
.chip.pending { border-color: var(--ink-20); color: var(--ink-80); }
.chip.pending::before { background: var(--warn); }
.chip.approved { border-color: var(--teal); color: var(--teal-ink); background: var(--teal-wash); }
.chip.approved::before { background: var(--teal); }
.chip.added { border-color: var(--ok); color: var(--ok); background: var(--ok-wash); }
.chip.added::before { background: var(--ok); }
.chip.skipped { border-color: var(--ink-20); color: var(--ink-60); }
.chip.skipped::before { background: var(--ink-40); }
.chip.failed { border-color: var(--err); color: var(--err); background: var(--err-wash); }
.chip.failed::before { background: var(--err); }

/* ---------- Toggle ---------- */
.toggle {
  position: relative;
  width: 40px; height: 22px;
  background: var(--ink-20);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background-color var(--dur-sm) var(--ease);
  flex-shrink: 0;
}
.toggle::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; background: var(--paper); border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.25);
  transition: left var(--dur-sm) var(--ease);
}
.toggle.on { background: var(--ink); }
.toggle.on::after { left: 20px; }

/* ---------- Avatar ---------- */
.avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  font-family: var(--font-display);
  font-size: 13px;
  display: inline-flex; align-items: center; justify-content: center;
  position: relative;
  flex-shrink: 0;
}
.avatar.light { background: var(--paper); color: var(--ink); border: 1px solid var(--ink); }
.avatar.teal { background: var(--teal); color: var(--paper); }

/* =========================================================
   Application shell — sidebar + content
   ========================================================= */
.app {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 232px;
  background: var(--paper);
  border-right: 1px solid var(--ink-10);
  display: flex; flex-direction: column;
  padding: 24px 22px 22px;
  z-index: 10;
}
.sidebar-logo {
  margin-bottom: 40px;
  display: block;
}
.nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  text-decoration: none;
  color: var(--ink-70);
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--r-sm);
  letter-spacing: 0.003em;
  transition: color var(--dur-sm) var(--ease), background-color var(--dur-sm) var(--ease);
  position: relative;
}
.nav a:hover { color: var(--ink); background: var(--ink-05); }
.nav a.active {
  color: var(--ink);
  background: transparent;
}
.nav a.active::before {
  content: ''; position: absolute; left: -22px; top: 6px; bottom: 6px; width: 2px;
  background: var(--teal);
}
.nav .nav-section {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-40);
  padding: 14px 10px 6px;
  margin-top: 6px;
}
.nav .nav-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ink-30);
  margin-left: auto;
  flex-shrink: 0;
}
.nav a.active .nav-dot { background: var(--teal); }

.sidebar-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--paper-line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sidebar-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-60);
  padding: 6px 0;
}
.sidebar-status .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(20,163,154,0.5);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(20,163,154,0.5); }
  70% { box-shadow: 0 0 0 8px rgba(20,163,154,0); }
  100% { box-shadow: 0 0 0 0 rgba(20,163,154,0); }
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 2px;
}
.sidebar-user .meta {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  min-width: 0;
}
.sidebar-user .email {
  font-size: 12px;
  color: var(--ink-80);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 150px;
}
.sidebar-user a {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-60);
  text-decoration: none;
  text-transform: uppercase;
}
.sidebar-user a:hover { color: var(--teal-ink); }

/* Main content */
.main {
  margin-left: 232px;
  flex: 1;
  background: var(--paper-warm);
}
.main-pad {
  padding: 56px 64px 96px;
  max-width: 1120px;
}
.page-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
  padding-bottom: 24px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--ink);
}
.page-header .eyebrow { margin-bottom: 12px; }
.page-header h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 56px;
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin: 0;
}
.page-header .meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink-60);
  text-align: right;
  line-height: 1.9;
  text-transform: uppercase;
}
.page-header .meta span { display: block; }
.page-header .meta b { color: var(--ink); font-weight: 500; }

/* =========================================================
   Onboarding shell (centered)
   ========================================================= */
.onb {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.onb-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  border-bottom: 1px solid var(--ink-10);
  background: var(--paper);
}
.onb-topbar .right {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-60);
}
.onb-body {
  flex: 1;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
}
.onb-rail {
  padding: 56px 40px 40px;
  background: var(--paper);
  border-right: 1px solid var(--ink-10);
}
.onb-rail .rail-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-60);
  margin-bottom: 14px;
}
.onb-rail h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 22px;
}
.onb-rail p.lede {
  font-size: 13px;
  color: var(--ink-60);
  line-height: 1.6;
  margin: 0 0 36px;
}

/* Vertical stepper */
.stepper {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--ink-10);
}
.stepper li {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--ink-10);
  position: relative;
}
.stepper .num {
  width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--ink-20);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-60);
  background: var(--paper);
  transition: all var(--dur-sm) var(--ease);
}
.stepper .label {
  font-size: 13px;
  color: var(--ink-60);
  font-weight: 500;
  letter-spacing: -0.003em;
  transition: color var(--dur-sm) var(--ease);
}
.stepper .tick {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-40);
}
.stepper li.done .num { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.stepper li.done .label { color: var(--ink-80); }
.stepper li.done .tick { color: var(--teal-ink); }
.stepper li.active .num { background: var(--paper); color: var(--ink); border-color: var(--ink); box-shadow: 0 0 0 3px rgba(20,163,154,0.20); }
.stepper li.active .label { color: var(--ink); font-weight: 600; }
.stepper li.active .tick { color: var(--ink); }
.stepper li.active::before {
  content: ''; position: absolute; left: -40px; top: 14px; bottom: 14px; width: 2px; background: var(--teal);
}

/* Onboarding step panel */
.onb-panel {
  padding: 64px 72px;
  background: var(--paper-warm);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.onb-panel .step-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-ink);
  margin-bottom: 14px;
}
.onb-panel h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  max-width: 640px;
}
.onb-panel .tagline {
  font-size: 15px;
  color: var(--ink-70);
  line-height: 1.6;
  margin: 0 0 40px;
  max-width: 560px;
}
.onb-panel .panel-card {
  background: var(--paper);
  border: 1px solid var(--ink-10);
  box-shadow: var(--shadow-print);
  padding: 32px 36px;
  max-width: 560px;
  margin-bottom: 24px;
}
.onb-panel .panel-card h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  margin: 0 0 6px;
  color: var(--ink);
}
.onb-panel .panel-card p.desc {
  font-size: 13px;
  color: var(--ink-60);
  line-height: 1.55;
  margin: 0 0 22px;
}

.onb-panel .actions {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 560px;
}
.onb-panel .actions .spacer { flex: 1; }
.onb-panel .back {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-60);
  text-decoration: none;
  text-transform: uppercase;
  padding: 8px 2px;
}
.onb-panel .back:hover { color: var(--ink); }

/* Instruction list — the "how to find your Slack ID" bits */
.howto {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  counter-reset: step;
}
.howto li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--paper-line);
  align-items: start;
}
.howto li:last-child { border-bottom: none; }
.howto li::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-40);
  padding-top: 2px;
}
.howto li span {
  font-size: 13px;
  color: var(--ink-80);
  line-height: 1.55;
}
.howto code {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--ink-05);
  padding: 1px 6px;
  border-radius: 3px;
  color: var(--ink);
  letter-spacing: 0.02em;
}

/* =========================================================
   Tables — action-item list
   ========================================================= */
.table-wrap {
  background: var(--paper);
  border: 1px solid var(--ink-10);
  box-shadow: var(--shadow-print);
  overflow: hidden;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.table thead th {
  text-align: left;
  padding: 12px 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-60);
  font-weight: 500;
  border-bottom: 1px solid var(--ink-10);
  background: var(--paper);
  white-space: nowrap;
}
.table tbody td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--paper-line);
  vertical-align: top;
  color: var(--ink);
  line-height: 1.5;
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr {
  transition: background-color var(--dur-sm) var(--ease);
}
.table tbody tr:hover {
  background: var(--paper-warm);
}
.table td.meeting {
  font-weight: 500;
  white-space: nowrap;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.table td.item { color: var(--ink-80); max-width: 460px; }
.table td.date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-60);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.table td.status { white-space: nowrap; }

/* Table filters */
.filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.filter-row .tabs {
  display: flex;
  gap: 2px;
  background: var(--ink-05);
  border: 1px solid var(--ink-10);
  border-radius: var(--r-md);
  padding: 3px;
}
.filter-row .tabs a {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  color: var(--ink-60);
  text-decoration: none;
  border-radius: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.003em;
  transition: color var(--dur-sm) var(--ease), background-color var(--dur-sm) var(--ease);
}
.filter-row .tabs a:hover { color: var(--ink); }
.filter-row .tabs a.active {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.filter-row .tabs a .count {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-50);
  letter-spacing: 0.04em;
}
.filter-row .tabs a.active .count { color: var(--teal-ink); }
.filter-row .spacer { flex: 1; }
.filter-row .search {
  position: relative;
  width: 260px;
}
.filter-row .search .input {
  padding-left: 34px;
  font-size: 13px;
  padding-top: 7px;
  padding-bottom: 7px;
}
.filter-row .search::before {
  content: ''; position: absolute; left: 12px; top: 50%;
  width: 12px; height: 12px; border: 1.5px solid var(--ink-40); border-radius: 50%;
  transform: translateY(-55%);
}
.filter-row .search::after {
  content: ''; position: absolute; left: 22px; top: 50%;
  width: 6px; height: 1.5px; background: var(--ink-40);
  transform: translateY(5px) rotate(45deg);
  transform-origin: left;
}

/* KPI strip */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--paper);
  border: 1px solid var(--ink-10);
  box-shadow: var(--shadow-print);
  margin-bottom: 28px;
}
.kpi {
  padding: 24px 28px;
  border-right: 1px solid var(--paper-line);
}
.kpi:last-child { border-right: none; }
.kpi .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-60);
  margin-bottom: 12px;
}
.kpi .value {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 42px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.kpi .value .unit {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink-40);
  font-weight: 500;
  margin-left: 4px;
  letter-spacing: 0;
}
.kpi .delta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-60);
  margin-top: 10px;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.kpi .delta.up { color: var(--teal-ink); }
.kpi .delta.down { color: var(--err); }

/* Status card (dashboard "Output is running") */
.status-card {
  background: var(--ink);
  color: var(--paper);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  margin-bottom: 32px;
  position: relative;
  box-shadow: var(--shadow-print-lg);
  overflow: hidden;
}
.status-card::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 4px;
  background: var(--teal);
}
.status-card .pulse-big {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(20,163,154,0.4);
  animation: pulse 2.4s ease-out infinite;
  flex-shrink: 0;
}
.status-card h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.status-card p {
  margin: 0;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  line-height: 1.55;
  max-width: 520px;
}
.status-card .status-lead {
  display: flex; align-items: center; gap: 16px;
}
.status-card .status-stats {
  display: flex; gap: 32px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  border-left: 1px solid rgba(255,255,255,0.12);
  padding-left: 32px;
}
.status-card .status-stats b {
  display: block;
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: -0.01em;
  margin-top: 4px;
}

.status-card--warn::before { background: var(--ink-50); }
.status-card--warn .pulse-big--off {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--ink-50);
  flex-shrink: 0;
}

/* Pipeline ribbon — shows Granola → Slack → Monday */
.pipeline {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--ink-10);
  box-shadow: var(--shadow-print);
  padding: 20px 24px;
  margin-bottom: 32px;
  gap: 20px;
}
.pipeline .node {
  display: flex; flex-direction: column;
  gap: 3px;
}
.pipeline .node .service {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-60);
}
.pipeline .node .state {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  display: flex; align-items: center; gap: 6px;
}
.pipeline .node .state .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.pipeline .arrow {
  color: var(--ink-30);
  font-family: var(--font-mono);
  font-size: 14px;
}

/* Connection list (settings) */
.conn-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 720px;
}
.conn {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--ink-10);
  box-shadow: var(--shadow-print);
  padding: 20px 24px;
  transition: box-shadow var(--dur-sm) var(--ease);
}
.conn:hover { box-shadow: 2px 3px 0 var(--teal), 0 1px 3px rgba(0,0,0,0.05); }
.conn .tile {
  width: 44px; height: 44px;
  border: 1px solid var(--ink-10);
  display: flex; align-items: center; justify-content: center;
  background: var(--paper-warm);
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
  color: var(--ink);
}
.conn .info h3 {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 4px;
  letter-spacing: -0.003em;
}
.conn .info .detail {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-60);
  display: flex; align-items: center; gap: 10px;
}
.conn .info .detail .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ok);
}
.conn .actions {
  display: flex; gap: 8px;
}

/* Section head */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 40px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink-10);
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
}
.section-head .tools {
  display: flex; align-items: center; gap: 10px;
}
.section-head .count {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink-60);
  text-transform: uppercase;
}

/* Empty state */
.empty {
  background: var(--paper);
  border: 1px dashed var(--ink-20);
  padding: 56px 48px;
  text-align: left;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
.empty h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  max-width: 520px;
}
.empty p {
  font-size: 14px;
  color: var(--ink-60);
  line-height: 1.6;
  margin: 0;
  max-width: 480px;
}
.empty .illo {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-40);
  border: 1px solid var(--ink-10);
  padding: 14px 18px;
  background: var(--paper-warm);
  text-align: center;
  min-width: 180px;
}
.empty .illo .big {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

/* ---------- Footer on auth pages ---------- */
.auth-footer {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-50);
  text-align: center;
  padding: 20px;
}
.auth-footer a { color: var(--ink-70); text-decoration: none; }
.auth-footer a:hover { color: var(--teal-ink); }

/* ---------- Utility ---------- */
.u-mono { font-family: var(--font-mono); }
.u-teal { color: var(--teal-ink); }
.u-ink { color: var(--ink); }
.u-muted { color: var(--ink-60); }
.hairline { height: 1px; background: var(--ink-10); border: 0; margin: 20px 0; }
