/* Components — §6. Exact values from the spec; structure from hairlines, not boxes. */

/* 6.1 Sidebar nav item */
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: none;
  cursor: pointer;
  font-size: 14px;
  padding: 10px 22px;
  color: #7A7F86;
  font-weight: 500;
  background: transparent;
  text-decoration: none;
  transition: background 130ms ease, color 130ms ease;
}
.nav-item--active {
  color: var(--ink);
  font-weight: 600;
  background: var(--signal-soft);
  box-shadow: inset 3px 0 0 var(--signal);
}
.nav-item--parked { color: var(--faint-2); cursor: default; pointer-events: none; }

/* 6.2 Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-sans);
  cursor: pointer;
  white-space: nowrap;
  transition: background 130ms ease, color 130ms ease, border-color 130ms ease;
}
.btn--primary {
  background: var(--ink);
  color: #fff;
  border: none;
  font-size: 13.5px;
  font-weight: 600;
  padding: 11px 16px;
  border-radius: var(--r-control);
}
.btn--primary:hover { background: #000; }
.btn--ghost {
  background: var(--paper);
  color: var(--ink-3);
  border: 1px solid var(--line-2);
  font-size: 13px;
  font-weight: 500;
  padding: 9px 13px;
  border-radius: 8px;
}
.btn--ghost:hover { border-color: #D9DBDE; }

/* 6.3 Input / search */
.input {
  border: 1px solid var(--line-2);
  border-radius: var(--r-control);
  padding: 9px 13px;
  font-size: 13px;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  width: 100%;
}
.input::placeholder { color: var(--faint); }
.search { width: 190px; }

/* Toolbar / page header */
.page-head {
  padding: 26px 34px 0;
}
.page-head__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.page-head__sub { font-size: 13.5px; color: var(--muted); margin-top: 5px; }
.page-head__actions { display: flex; align-items: center; gap: 10px; }

@media (max-width: 600px) {
  .page-head { padding: 20px 20px 0; }
  .page-head__actions { width: 100%; }
  .page-head__actions .search { flex: 1; width: auto; }
  .table-scroll, .hint-bar { padding-left: 20px; padding-right: 20px; }
}

/* Filter tabs under a page header */
.filters {
  display: flex;
  gap: 24px;
  margin-top: 22px;
  border-bottom: 1px solid var(--line);
}
.filter {
  font-size: 13.5px;
  font-weight: 500;
  padding: 0 1px 12px;
  color: var(--faint);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}
.filter--active {
  color: var(--ink);
  font-weight: 600;
  border-bottom: 2px solid var(--signal);
}

/* 6.4 Data table */
.table-scroll { padding: 0 34px; overflow-y: auto; flex: 1; }
.table-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 8px;
  border-bottom: 1px solid var(--line-2);
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 1;
}
.row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: var(--row-pad) 8px;
  border-bottom: 1px solid var(--line-3);
  cursor: pointer;
  color: inherit;
  transition: background 130ms ease;
}
.row:hover { background: #FAFAFA; }

.col-mono { width: 30px; flex: none; }
.col-company { flex: 1; min-width: 0; }
.col-match { width: 160px; }
.col-status { width: 120px; }
.col-updated { width: 54px; text-align: right; }

.cell-company { font-size: 14.5px; font-weight: 600; }
.cell-role { font-size: 12.5px; color: var(--faint); margin-top: 1px; }
.cell-updated { font-size: 12.5px; color: var(--faint); font-family: var(--font-mono); }

/* Monogram tile — the only per-row graphic (§6.4). */
.monogram {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 8px;
  background: var(--surface-track);
  color: #7A7F86;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}

/* 6.5 Match meter */
.meter {
  display: flex;
  align-items: center;
  gap: 10px;
}
.meter__track {
  flex: 1;
  height: 5px;
  background: var(--signal-soft);
  border-radius: 3px;
  overflow: hidden;
}
.meter__fill { height: 100%; background: var(--signal); border-radius: 3px; }
.meter__label {
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  width: 34px;
  text-align: right;
}

/* 6.6 Status text (a word, not a badge) */
.status { font-size: 13px; font-weight: 600; color: var(--muted); }
.status--signal { color: var(--signal); }

/* 6.7 Tabs */
.tabs {
  display: flex;
  gap: 28px;
  padding: 0 34px;
  border-bottom: 1px solid var(--line);
}
.tab {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  padding: 14px 2px;
  color: #7A7F86;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  text-decoration: none;
}
.tab--active { color: var(--ink); font-weight: 600; border-bottom: 2px solid var(--signal); }

/* 6.8 Segmented toggle (accent picker) */
.segmented {
  display: flex;
  background: #F1F1F0;
  border-radius: var(--r-control);
  padding: 3px;
  gap: 3px;
}
.segmented__thumb {
  flex: 1;
  border: none;
  cursor: pointer;
  padding: 7px;
  border-radius: var(--r-chip);
  font-size: 12px;
  background: transparent;
  color: #7A7F86;
  font-weight: 500;
  transition: background 130ms ease, color 130ms ease;
}
.segmented__thumb--active { color: #fff; font-weight: 600; }
.segmented__thumb--slate.segmented__thumb--active { background: #2C4A6E; }
.segmented__thumb--ember.segmented__thumb--active { background: #B0552E; }

/* 6.9 Chip */
.chip {
  font-size: 12.5px;
  color: var(--ink-3);
  background: var(--surface-3);
  padding: 5px 11px;
  border-radius: var(--r-chip);
}
.chip--signal { color: var(--signal); background: var(--signal-soft); font-weight: 500; }

/* 6.10 Pill (time, not job) */
.pill {
  font-size: 12px;
  font-weight: 600;
  color: var(--signal);
  background: var(--signal-soft);
  padding: 5px 11px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}

/* 6.14 Keyboard hint bar */
.hint-bar {
  padding: 12px 34px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 20px;
  font-size: 12px;
  color: var(--faint-2);
  align-items: center;
}
.hint-bar__key { font-family: var(--font-mono); }
.hint-bar__spacer { margin-left: auto; }

/* Empty state — calm, sells time not AI (§9). */
.empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 34px;
  gap: 14px;
}
.empty__title { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.empty__body { font-size: 13.5px; color: var(--muted); max-width: 380px; line-height: 1.6; }
.empty__actions { margin-top: 6px; display: flex; gap: 10px; }

/* Sign-in (signed-out landing) */
.signin {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.signin__card {
  width: 100%;
  max-width: 380px;
  background: var(--paper);
  border-radius: var(--r-window);
  box-shadow: 0 24px 60px -24px rgba(20, 25, 35, .35), 0 0 0 1px rgba(0, 0, 0, .04);
  padding: 40px 36px;
  text-align: center;
}
.signin__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
}
.signin__title { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.signin__body { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin-top: 8px; }
.signin__google {
  margin-top: 24px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: var(--r-control);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.signin__google:hover { background: #000; }
.signin__fine { margin-top: 16px; font-size: 12px; color: var(--faint); line-height: 1.5; }

.flash {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-3);
  background: var(--surface);
  border-radius: var(--r-control);
  padding: 10px 13px;
}
