:root {
  --bg: #0b1220;
  --bg-mid: #121a2b;
  --card: rgba(30, 41, 59, 0.72);
  --card-solid: #1a2438;
  --ink: #f1f5f9;
  --muted: #94a3b8;
  --accent: #2dd4bf;
  --accent-2: #38bdf8;
  --accent-ink: #042f2e;
  --line: rgba(148, 163, 184, 0.22);
  --danger: #f87171;
  --ok: #4ade80;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  --font-display: "Fraunces", Georgia, serif;
  --font-ui: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-x: max(16px, env(safe-area-inset-left, 0px));
  font-family: var(--font-ui);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: var(--safe-bottom);
  overflow-x: hidden;
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(45, 212, 191, 0.16), transparent 55%),
    radial-gradient(700px 360px at 90% 0%, rgba(56, 189, 248, 0.12), transparent 50%),
    linear-gradient(165deg, var(--bg) 0%, var(--bg-mid) 48%, #0a101c 100%);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

.auth-body {
  display: grid;
  place-items: center;
  padding: calc(24px + var(--safe-top)) var(--safe-x) calc(24px + var(--safe-bottom));
}

.auth-card, .panel {
  background: var(--card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  width: min(100%, 100%);
  box-shadow: var(--shadow);
}

.auth-card {
  width: min(100%, 400px);
  background: var(--card-solid);
}

.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  margin-bottom: 4px;
}

.auth-brand h1 { margin: 0; }

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 12px;
  object-fit: contain;
  background: radial-gradient(circle at 30% 25%, #f8fafc 0%, #e2e8f0 70%);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.brand-logo.large {
  width: 72px;
  height: 72px;
  border-radius: 18px;
}

.brand-text {
  min-width: 0;
}

.brand-text .muted {
  margin: 0;
  font-size: 0.82rem;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: calc(18px + var(--safe-top)) var(--safe-x) 10px;
  max-width: 1040px;
  margin: 0 auto;
}

.brand-lockup h1,
.auth-card h1 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.panel h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.top-actions,
.panel-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.utility-bar {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 var(--safe-x) 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.utility-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 2px;
}

.chip {
  margin: 0;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.55);
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.chip:hover {
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(56, 189, 248, 0.12);
}

.chip:active { transform: scale(0.97); }

.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(12px);
  z-index: 40;
  margin: 0;
  padding: 10px 16px;
  border-radius: 999px;
  background: #0f2918;
  border: 1px solid rgba(74, 222, 128, 0.35);
  color: var(--ok);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.muted { color: var(--muted); margin: 0 0 16px; }
.small { font-size: 0.85rem; }
.hint { font-weight: 400; opacity: 0.85; }

.layout {
  max-width: 1040px;
  margin: 0 auto;
  padding: 8px var(--safe-x) calc(40px + var(--safe-bottom));
  display: grid;
  gap: 18px;
}

@media (min-width: 900px) {
  .layout { grid-template-columns: 1.2fr 0.8fr; align-items: start; }
}

.field-grid {
  display: grid;
  gap: 0 12px;
}

@media (min-width: 640px) {
  .field-grid { grid-template-columns: 1fr 1fr; }
}

label {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 12px;
  color: var(--muted);
  font-weight: 500;
}

input, textarea, select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 13px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(8, 15, 28, 0.85);
  color: var(--ink);
  font: inherit;
  font-size: 16px; /* avoid iOS focus zoom */
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: rgba(45, 212, 191, 0.55);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.14);
}

textarea { resize: vertical; min-height: 180px; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.secondary-actions { margin: -4px 0 10px; }
.primary-actions { margin-top: 4px; }

button,
.downloads a,
.hist-downloads a {
  display: inline-block;
  margin-top: 0;
  padding: 12px 16px;
  border-radius: 11px;
  border: none;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

button.primary {
  padding: 13px 22px;
  font-size: 0.98rem;
  background: linear-gradient(135deg, #2dd4bf 0%, #38bdf8 55%, #2563eb 100%);
  color: #042f2e;
  box-shadow: 0 10px 24px rgba(45, 212, 191, 0.22);
}

button.primary:hover { filter: brightness(1.05); }
button.primary:active { transform: translateY(1px); }

button.ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  font-weight: 600;
}

button.ghost:hover {
  color: var(--ink);
  border-color: rgba(148, 163, 184, 0.4);
}

button.compact {
  padding: 8px 12px;
  font-size: 0.85rem;
}

button.text-btn {
  background: transparent;
  border: none;
  color: var(--accent);
  font-weight: 600;
  padding: 6px 0;
  box-shadow: none;
}

button.text-btn:hover { color: #7dd3fc; text-decoration: underline; }
button.text-btn.compact { font-size: 0.85rem; padding: 6px 4px; }

button:disabled { opacity: 0.6; cursor: wait; filter: none; }

.error { color: var(--danger); margin-top: 10px; }

.status {
  margin-top: 16px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(8, 15, 28, 0.75);
  border: 1px solid var(--line);
  color: var(--muted);
  animation: fade-up 0.28s ease;
}

.status-text { white-space: pre-wrap; margin-bottom: 10px; }

.progress {
  height: 8px;
  border-radius: 999px;
  background: #1e293b;
  border: 1px solid var(--line);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #14b8a6, #38bdf8, #4ade80);
  transition: width 0.45s ease;
  box-shadow: 0 0 16px rgba(45, 212, 191, 0.45);
}

.progress-bar.indeterminate {
  width: 35% !important;
  animation: slide 1.2s ease-in-out infinite, pulse-glow 1.4s ease-in-out infinite;
}

@keyframes slide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

@keyframes pulse-glow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.2); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.progress-label {
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--muted);
}

.fit-panel {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  background: linear-gradient(160deg, rgba(15, 35, 55, 0.7), rgba(8, 15, 28, 0.75));
  animation: fade-up 0.32s ease;
  display: grid;
  gap: 12px;
}

.fit-panel[data-rec="apply"] {
  border-color: rgba(74, 222, 128, 0.35);
}

.fit-panel[data-rec="skip"] {
  border-color: rgba(248, 113, 113, 0.4);
}

.fit-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.fit-rec-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.fit-summary {
  margin: 0;
  line-height: 1.45;
  color: #e2e8f0;
}

.rec-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid transparent;
}

.rec-badge.apply {
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.4);
}

.rec-badge.maybe {
  background: rgba(251, 191, 36, 0.16);
  color: #fde68a;
  border-color: rgba(251, 191, 36, 0.4);
}

.rec-badge.skip {
  background: rgba(248, 113, 113, 0.16);
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.45);
}

.fit-score-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

@media (min-width: 640px) {
  .fit-score-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.fit-metric {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(8, 15, 28, 0.45);
  display: grid;
  gap: 2px;
}

.fit-metric span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.fit-metric strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.fit-columns {
  display: grid;
  gap: 12px;
}

@media (min-width: 640px) {
  .fit-columns { grid-template-columns: 1fr 1fr; }
}

.fit-col-label {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.fit-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 4px;
  color: #e2e8f0;
  font-size: 0.88rem;
  line-height: 1.35;
}

.fit-list.cons li::marker { color: #fca5a5; }
.fit-list.pros li::marker { color: #86efac; }

.fit-blocker-note {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fecaca;
  font-size: 0.86rem;
  line-height: 1.4;
}

.post-score-panel {
  margin: 0 0 14px;
  display: grid;
  gap: 10px;
}

.rec-inline { color: #e2e8f0; }

.ready-card {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid rgba(74, 222, 128, 0.28);
  background: linear-gradient(160deg, rgba(20, 48, 34, 0.55), rgba(8, 15, 28, 0.7));
  animation: fade-up 0.32s ease;
}

.ready-kicker {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ok);
}

.ready-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}

.ready-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.dl-link {
  display: inline-block;
  padding: 9px 13px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.55);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.dl-link:hover {
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(56, 189, 248, 0.12);
  color: #e0f2fe;
}

.filters {
  display: grid;
  gap: 8px;
  margin: 12px 0 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(8, 15, 28, 0.45);
  animation: fade-up 0.22s ease;
}

@media (min-width: 520px) {
  .filters { grid-template-columns: 1fr 1fr; }
}

.date-label { margin: 0; font-size: 0.8rem; }

.history {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  gap: 8px;
}

.history li {
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(8, 15, 28, 0.4);
  font-size: 0.92rem;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.history li:hover {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(15, 23, 42, 0.65);
  transform: translateY(-1px);
}

.history li .meta {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 4px;
}

.history li .cost {
  color: var(--ok);
  font-weight: 600;
}

.hist-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.hist-downloads a {
  padding: 7px 10px;
  font-size: 0.76rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.55);
  color: var(--ink);
}

.hist-downloads a:hover {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.12);
  color: #e0f2fe;
}

.history .empty {
  color: var(--muted);
  border-style: dashed;
  background: transparent;
  padding: 16px 13px;
}

.history .empty:hover {
  transform: none;
  border-color: var(--line);
  background: transparent;
}

.field-grid.three {
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .field-grid.three { grid-template-columns: 1fr 1fr 1fr; }
}

.nav-tabs {
  display: flex;
  gap: 6px;
  align-items: center;
}

.nav-tab {
  padding: 10px 14px;
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.nav-tab:hover {
  color: var(--ink);
  border-color: rgba(148, 163, 184, 0.4);
}

.nav-tab.active {
  color: var(--accent-ink);
  background: linear-gradient(135deg, #2dd4bf, #38bdf8);
  border-color: transparent;
}

#install-app:not([hidden]) {
  border-color: rgba(45, 212, 191, 0.45);
  color: #99f6e4;
}

html.pwa-standalone .top {
  padding-top: calc(12px + var(--safe-top));
}

.dl-link.accent {
  border-color: rgba(56, 189, 248, 0.45);
  color: #e0f2fe;
}

/* Tracker */
.tracker-layout {
  max-width: 1240px;
  margin: 0 auto;
  padding: 8px var(--safe-x) calc(40px + var(--safe-bottom));
  display: grid;
  gap: 16px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (min-width: 720px) {
  .stats-row { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1100px) {
  .stats-row { grid-template-columns: repeat(5, 1fr); }
}

.stat-card {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat-card strong {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
}

.table-wrap {
  margin-top: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.tracker-cards {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.app-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(8, 15, 28, 0.45);
  padding: 14px;
  display: grid;
  gap: 10px;
}

.app-card[data-status="got_the_job"],
.app-card[data-status="offer"] {
  box-shadow: inset 3px 0 0 var(--ok);
}

.app-card[data-status="rejected"] {
  box-shadow: inset 3px 0 0 var(--danger);
}

.app-card[data-status="interview_1"],
.app-card[data-status="interview_2"],
.app-card[data-status="interview_3"] {
  box-shadow: inset 3px 0 0 var(--accent-2);
}

.app-card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.app-card-title {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  margin: 0;
}

.app-card-meta {
  color: var(--muted);
  font-size: 0.8rem;
  margin: 4px 0 0;
}

.app-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.app-card-grid label {
  margin: 0;
  font-size: 0.78rem;
}

.app-card-grid .inline-select,
.app-card-grid .inline-date {
  width: 100%;
  max-width: none;
  min-width: 0;
  font-size: 16px;
}

.app-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 900px) {
  .tracker-cards { display: none; }
}

@media (max-width: 899px) {
  .desktop-table { display: none; }
}

.tracker-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1180px;
  font-size: 0.86rem;
}

.score-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}

.score-pill.high {
  background: rgba(34, 197, 94, 0.16);
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.35);
}

.score-pill.mid {
  background: rgba(56, 189, 248, 0.14);
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.35);
}

.score-pill.low {
  background: rgba(251, 191, 36, 0.14);
  color: #fcd34d;
  border-color: rgba(251, 191, 36, 0.35);
}

.score-pill.poor {
  background: rgba(248, 113, 113, 0.14);
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.35);
}

.fit-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.fit-label.strong,
.fit-label.good { color: #86efac; }
.fit-label.moderate { color: #7dd3fc; }
.fit-label.stretch { color: #fcd34d; }
.fit-label.poor { color: #fca5a5; }

.limit-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 12rem;
}

.limit-chip {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: help;
}

.limit-chip.hard {
  background: rgba(248, 113, 113, 0.16);
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.4);
}

.limit-chip.soft {
  background: rgba(251, 191, 36, 0.12);
  color: #fde68a;
  border-color: rgba(251, 191, 36, 0.35);
}

.match-cell {
  display: grid;
  gap: 3px;
}

.app-card-scores {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.app-card-fit {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
}

.tracker-table th {
  text-align: left;
  padding: 11px 10px;
  background: rgba(8, 15, 28, 0.95);
  color: #e2e8f0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
}

.tracker-table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  background: rgba(8, 15, 28, 0.35);
}

.tracker-table tr:hover td {
  background: rgba(15, 23, 42, 0.72);
}

.tracker-table tr[data-status="got_the_job"] td,
.tracker-table tr[data-status="offer"] td {
  box-shadow: inset 3px 0 0 var(--ok);
}

.tracker-table tr[data-status="rejected"] td {
  box-shadow: inset 3px 0 0 var(--danger);
}

.tracker-table tr[data-status="interview_1"] td,
.tracker-table tr[data-status="interview_2"] td,
.tracker-table tr[data-status="interview_3"] td {
  box-shadow: inset 3px 0 0 var(--accent);
}

.tracker-table .num { color: var(--muted); width: 2.2rem; }
.tracker-table .empty-cell {
  text-align: center;
  color: var(--muted);
  padding: 28px 12px;
}

.cell-link {
  color: #7dd3fc;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cell-link:hover { color: #bae6fd; }

.inline-select,
.inline-date {
  margin: 0;
  width: auto;
  min-width: 9.5rem;
  max-width: 12rem;
  padding: 7px 8px;
  font-size: 0.8rem;
  border-radius: 8px;
}

.inline-date { min-width: 8.5rem; max-width: 9.5rem; }

.mini-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.mini-links a {
  padding: 4px 7px;
  border-radius: 6px;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.55);
}

.mini-links a:hover {
  border-color: rgba(56, 189, 248, 0.45);
  color: #e0f2fe;
}

.add-panel {
  grid-template-columns: 1fr 1fr;
}

@media (min-width: 900px) {
  .add-panel { grid-template-columns: repeat(3, 1fr); }
}

button.primary.compact {
  padding: 10px 14px;
  font-size: 0.85rem;
  box-shadow: none;
  width: fit-content;
}

/* Mobile polish */
@media (max-width: 720px) {
  .top {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .top-actions {
    justify-content: space-between;
    width: 100%;
  }

  .nav-tabs {
    flex: 1;
  }

  .nav-tab {
    flex: 1;
    justify-content: center;
  }

  .brand-text .muted {
    display: none;
  }

  .panel {
    padding: 16px;
  }

  .primary-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-actions .primary {
    width: 100%;
  }

  .ready-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .ready-links .dl-link {
    text-align: center;
  }

  .copy-toast {
    left: 12px;
    right: 12px;
    width: auto;
    bottom: calc(16px + var(--safe-bottom));
    transform: translateX(0) translateY(12px);
    text-align: center;
    border-radius: 12px;
  }

  .copy-toast.show {
    transform: translateX(0) translateY(0);
  }

  .stat-card strong {
    font-size: 1.3rem;
  }

  .panel-head {
    flex-wrap: wrap;
  }

  .add-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .brand-logo {
    width: 40px;
    height: 40px;
  }

  .ready-links {
    grid-template-columns: 1fr;
  }

  .utility-label {
    width: 100%;
  }
}
