/* =========================================================
   Career Dashboard — "ink & signal" theme
   Design intent: restrained, tactile, editorial. Deliberately
   NOT the generic AI look (no indigo-purple, no neon glows, no
   glassmorphism, no Inter-everywhere). Green is the single signal
   color and it means ACTION/GO — the apply flow leads with it.
   ========================================================= */
:root {
  /* Neutral near-black ink, faintly cool — not the stock #0e0e14 blue-black */
  --bg: #121317;
  --surface: #191a1f;
  --surface-2: #212329;
  --border: #2b2d35;
  --border-strong: #3a3d47;
  --text: #ECEAE2;             /* warm off-white */
  --text-dim: #9a9ca6;
  --text-faint: #6b6d77;
  /* Signal green = brand + primary action ("go / apply") */
  --accent: #4ec880;
  --accent-strong: #3fb46f;
  --accent-dim: rgba(78, 200, 128, 0.12);
  --green: #4ec880;
  --green-dim: rgba(78, 200, 128, 0.12);
  --amber: #e0a13c;            /* in-progress / draft / caution */
  --amber-dim: rgba(224, 161, 60, 0.12);
  --red: #ef6f6f;              /* failure */
  --red-dim: rgba(239, 111, 111, 0.12);
  --radius: 8px;
  --radius-sm: 5px;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --display: 'Space Grotesk', var(--font);
  --mono: 'Space Mono', 'SF Mono', ui-monospace, monospace;
  --bottom-nav-height: 60px;
  --maxw: 1080px;
}

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

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  letter-spacing: 0.005em;
  padding-bottom: var(--bottom-nav-height);
  /* faint top hairline of signal to anchor the identity */
  border-top: 2px solid var(--accent);
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 2px; }

::selection { background: var(--accent-dim); color: var(--text); }

h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; }

/* =========================================
   LAYOUT
   ========================================= */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }

/* =========================================
   HEADER
   ========================================= */
.header {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.header h1 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  color: var(--text-dim);
}
.header h1 span {
  color: var(--text);
  font-weight: 700;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 1px;
}
.header nav { display: none; }
.header nav a {
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 2px;
}
.header nav a:hover { color: var(--text); text-decoration: none; }

/* =========================================
   BOTTOM NAV — mobile only (solid, no glass blur)
   ========================================= */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--bottom-nav-height);
  background: var(--surface);
  border-top: 1px solid var(--border-strong);
  display: flex;
  align-items: stretch;
  z-index: 100;
}
.bottom-nav a {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--text-dim);
  font-size: 0.68rem;
  font-weight: 600;
  gap: 4px;
  min-height: 44px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.bottom-nav a:hover, .bottom-nav a.active { color: var(--accent); text-decoration: none; }
.bottom-nav a.active { box-shadow: inset 0 2px 0 var(--accent); }
.bottom-nav a svg {
  width: 20px; height: 20px;
  stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* =========================================
   STATS BAR
   ========================================= */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: 18px 0;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat-card { background: var(--surface); padding: 14px 16px; }
.stat-card .label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: 6px;
  font-weight: 600;
}
.stat-card .value {
  font-size: 1.6rem;
  font-weight: 700;
  font-family: var(--mono);
  letter-spacing: -0.02em;
  color: var(--text);
}
.stat-card .value.green  { color: var(--green); }
.stat-card .value.accent { color: var(--accent); }
.stat-card .value.amber  { color: var(--amber); }

/* =========================================
   SECTION TITLE
   ========================================= */
.section-title {
  font-family: var(--display);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  font-weight: 600;
  margin: 28px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* =========================================
   APP LIST & CARDS
   ========================================= */
.app-list { display: flex; flex-direction: column; gap: 8px; }

.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color 0.12s ease, transform 0.12s ease;
}
.app-card:hover { border-color: var(--border-strong); border-left-color: var(--accent); }

.app-card .company { font-weight: 600; font-size: 0.98rem; font-family: var(--display); letter-spacing: -0.01em; }
.app-card .title { color: var(--text-dim); font-size: 0.84rem; margin-top: 2px; }
.app-card .meta {
  font-size: 0.72rem; color: var(--text-faint);
  margin-top: 8px; display: flex; gap: 14px; flex-wrap: wrap;
  font-family: var(--mono);
}
.app-card .meta span { display: flex; align-items: center; gap: 4px; }
.app-card .badge-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Self-explaining "Needs you" cards: why this needs you + the one next step. */
.app-card .app-why {
  font-size: 0.82rem; color: var(--text); margin-top: 6px; line-height: 1.4;
}
.app-card .app-next {
  font-size: 0.8rem; color: var(--text-dim); margin-top: 3px; line-height: 1.4;
}
/* Calm category accents on the left rail (color is information, not decoration). */
.app-card.cat-failed-fixable     { border-left-color: var(--red); }
.app-card.cat-failed-blocked     { border-left-color: var(--amber); }
.app-card.cat-needs-verification { border-left-color: var(--amber); }
.app-card.cat-needs-approval     { border-left-color: var(--accent); }
.app-card.cat-ready              { border-left-color: var(--accent); }
.app-card.cat-generating         { border-left-color: var(--border-strong); }

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  min-height: 24px;
  line-height: 16px;
  border: 1px solid transparent;
  font-family: var(--mono);
}
.badge.applied   { background: var(--green-dim); color: var(--green); border-color: rgba(78,200,128,0.3); }
.badge.reviewing { background: var(--amber-dim); color: var(--amber); border-color: rgba(224,161,60,0.3); }
.badge.interested{ background: var(--amber-dim); color: var(--amber); border-color: rgba(224,161,60,0.3); }
.badge.interview { background: var(--accent-dim); color: var(--accent); border-color: rgba(78,200,128,0.3); }
.badge.rejected  { background: var(--red-dim); color: var(--red); border-color: rgba(239,111,111,0.3); }
.badge.offer     { background: var(--green-dim); color: var(--green); border: 1px solid var(--green); }
.badge.found     { background: var(--surface-2); color: var(--text-dim); border-color: var(--border-strong); }

.salary { font-family: var(--mono); font-size: 0.78rem; color: var(--green); }

/* =========================================
   DETAIL PAGE
   ========================================= */
.detail-header { padding: 20px 0 18px; border-bottom: 1px solid var(--border); }
.detail-header h2 {
  font-size: clamp(1.3rem, 4vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-top: 10px;
  line-height: 1.15;
}
.detail-header .company-name {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 600;
  margin-top: 6px;
  font-family: var(--display);
}

.detail-grid {
  display: grid; grid-template-columns: 1fr; gap: 0;
  margin: 18px 0; font-size: 0.88rem;
}
.detail-grid dt {
  color: var(--text-faint);
  font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 600; padding: 12px 0 2px;
}
.detail-grid dd { padding: 0 0 10px; border-bottom: 1px solid var(--border); word-break: break-word; }

.answer-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px; margin: 10px 0;
}
.answer-block .q {
  font-size: 0.72rem; color: var(--accent); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px;
  font-family: var(--mono);
}
.answer-block .a { font-size: 0.9rem; line-height: 1.65; white-space: pre-wrap; }

/* =========================================
   APPLY PANEL (the focal action on the detail page)
   ========================================= */
.fill-bar {
  margin: 14px 0 18px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: inset 3px 0 0 var(--accent);
}
.fill-bar-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.fill-bar-row + .fill-bar-row { margin-top: 10px; }

/* route banner — class-based (was inline) */
.apply-banner {
  padding: 10px 12px;
  margin-bottom: 14px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  line-height: 1.5;
  border-left: 3px solid var(--border-strong);
  background: var(--surface-2);
}
.apply-banner b { font-family: var(--display); }
.apply-banner.preview { border-left-color: var(--green); background: var(--green-dim); }
.apply-banner.live    { border-left-color: var(--amber); background: var(--amber-dim); }

.fill-engine { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--text-dim); }
.fill-engine select { width: auto; margin-top: 0; padding: 8px 10px; font-size: 0.85rem; }
.fill-status {
  margin: 14px 0 0; font-size: 0.83rem; color: var(--text-dim);
  line-height: 1.5; font-family: var(--mono);
}

/* =========================================
   PIPELINE PAGE
   ========================================= */
.pipeline-grid { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 16px 0; }
.job-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px; font-size: 0.85rem;
}
.job-row .score { font-family: var(--mono); font-weight: 700; color: var(--accent); }
.job-row .job-title { font-weight: 600; margin-top: 4px; font-family: var(--display); }
.job-row .job-company { color: var(--text-dim); font-size: 0.78rem; }

/* =========================================
   LOGIN PAGE
   ========================================= */
.login-box { max-width: 380px; margin: 64px auto; text-align: left; padding: 0 18px; }
.login-box h1 { font-size: 1.5rem; margin-bottom: 8px; letter-spacing: -0.02em; }
.login-box h1::after { content: "."; color: var(--accent); }
.login-box p { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 24px; }
.login-box input[type="email"] {
  width: 100%; padding: 13px 14px;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius); color: var(--text);
  font-size: 16px; font-family: var(--font); outline: none; min-height: 44px;
}
.login-box input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.login-box button {
  width: 100%; padding: 13px; margin-top: 12px;
  background: var(--accent); color: #0f1012; border: none;
  border-radius: var(--radius); font-size: 0.95rem; font-weight: 700;
  cursor: pointer; font-family: var(--display); min-height: 44px;
}
.login-box button:hover { background: var(--accent-strong); }
.login-box .error { color: var(--red); font-size: 0.85rem; margin-top: 12px; }
.login-box .sent  { color: var(--green); font-size: 0.85rem; margin-top: 12px; }

/* =========================================
   FOOTER
   ========================================= */
.footer-note {
  text-align: center; color: var(--text-faint);
  font-size: 0.72rem; padding: 32px 0 16px; font-family: var(--mono);
  border-top: 1px solid var(--border); margin-top: 28px;
}

/* =========================================
   STATE PILLS
   ========================================= */
.state-pill {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  background: var(--surface-2); color: var(--text-dim);
  border: 1px solid var(--border-strong);
  font-family: var(--mono);
}
.state-pill.drafting            { background: var(--amber-dim); color: var(--amber); border-color: var(--amber); }
.state-pill.pending_approval    { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); }
.state-pill.approved            { background: var(--accent-dim); color: var(--accent); border-color: var(--accent); }
.state-pill.submitting          { background: var(--amber-dim); color: var(--amber); border-color: var(--amber); animation: pulse 1.6s infinite; }
.state-pill.submitted           { background: var(--green-dim); color: var(--green); border-color: var(--green); }
.state-pill.submit_failed       { background: var(--red-dim); color: var(--red); border-color: var(--red); }
.state-pill.rejected_by_user    { background: var(--surface-2); color: var(--text-faint); }
.state-pill.submitted_unverified{ background: var(--amber-dim); color: var(--amber); border-color: var(--amber); }
.state-pill.dry_submitted       { background: var(--amber-dim); color: var(--amber); border-color: var(--amber); }

/* =========================================
   RECENTLY SUBMITTED (dashboard)
   ========================================= */
.recent-list { display: flex; flex-direction: column; gap: 8px; }
.recent-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color 0.12s ease;
}
.recent-card:hover { border-color: var(--border-strong); border-left-color: var(--accent-strong); }
.recent-card .recent-main { display: flex; flex-direction: column; gap: 4px; }
.recent-card .company { font-weight: 600; font-size: 0.95rem; font-family: var(--display); }
.recent-card .title { color: var(--text-dim); font-size: 0.82rem; }
.recent-card .meta {
  font-size: 0.72rem; color: var(--text-faint);
  display: flex; gap: 14px; flex-wrap: wrap; margin-top: 4px; font-family: var(--mono);
}
.recent-confirmation {
  font-size: 0.74rem; color: var(--text-dim);
  font-family: var(--mono); margin-top: 6px; word-break: break-word;
}
.verify-ok { color: var(--green); } .verify-warn { color: var(--amber); } .verify-fail { color: var(--red); }

/* =========================================
   SUBMISSION TIMELINE + ARTIFACTS (detail)
   ========================================= */
.submission-banner {
  border-radius: var(--radius);
  padding: 12px 14px; margin: 10px 0 14px;
  border: 1px solid var(--border); border-left-width: 3px; background: var(--surface);
}
.submission-banner.ok   { border-left-color: var(--green); background: var(--green-dim); }
.submission-banner.warn { border-left-color: var(--amber); background: var(--amber-dim); }
.submission-banner.fail { border-left-color: var(--red); background: var(--red-dim); }
.submission-banner .banner-title { font-weight: 700; font-size: 0.95rem; font-family: var(--display); }
.submission-banner .banner-detail {
  font-family: var(--mono); font-size: 0.78rem; color: var(--text-dim);
  margin-top: 4px; word-break: break-word;
}
/* The parsed, human reason + next step read as prose and lead; raw error is tucked away. */
.submission-banner .banner-why {
  font-family: var(--body); font-size: 0.88rem; color: var(--text);
  margin-top: 6px; line-height: 1.45;
}
.submission-banner .banner-next {
  font-family: var(--body); font-size: 0.86rem; color: var(--text-dim);
  margin-top: 4px; line-height: 1.45;
}
.submission-banner .banner-raw { margin-top: 8px; }
.submission-banner .banner-raw > summary {
  cursor: pointer; font-size: 0.74rem; color: var(--text-faint);
  font-family: var(--mono); list-style: none;
}
.submission-banner .banner-raw > summary::-webkit-details-marker { display: none; }

.submit-timeline {
  display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); overflow: hidden;
}
.timeline-row {
  display: grid; grid-template-columns: 150px 100px 1fr; gap: 10px;
  padding: 9px 14px; border-bottom: 1px solid var(--border);
  font-size: 0.82rem; align-items: start;
}
.timeline-row:last-child { border-bottom: none; }
.timeline-when { color: var(--text-faint); font-family: var(--mono); font-size: 0.74rem; }
.timeline-result { font-weight: 700; text-transform: uppercase; font-size: 0.68rem; letter-spacing: 0.06em; font-family: var(--mono); }
.timeline-row.ok .timeline-result { color: var(--green); }
.timeline-row.fail .timeline-result { color: var(--red); }
.timeline-row.dry-run .timeline-result { color: var(--amber); }
.timeline-row.ok-unverified .timeline-result { color: var(--amber); }
.timeline-text { word-break: break-word; color: var(--text); }
@media (max-width: 600px) { .timeline-row { grid-template-columns: 1fr; gap: 2px; } }

.artifact-run {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); padding: 12px; margin: 10px 0;
}
.artifact-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; font-size: 0.82rem; }
.artifact-ts { color: var(--text-faint); font-family: var(--mono); font-size: 0.78rem; }
.screenshot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.screenshot-tile {
  display: block; text-decoration: none; color: var(--text-dim);
  border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: #000;
}
.screenshot-tile:hover { border-color: var(--accent); text-decoration: none; }
.screenshot-tile img { display: block; width: 100%; height: 110px; object-fit: cover; }
.screenshot-name {
  font-size: 0.7rem; padding: 4px 6px; font-family: var(--mono);
  background: var(--surface-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.agent-summary {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 14px; font-family: var(--mono); font-size: 0.78rem; line-height: 1.55;
  white-space: pre-wrap; word-break: break-word; max-height: 600px; overflow-y: auto;
}

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* =========================================
   FORM CONTROLS
   ========================================= */
textarea, input[type="text"], input[type="number"], input[type="date"], select {
  width: 100%;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  padding: 12px 14px; font-family: var(--font);
  font-size: 16px; /* prevents iOS zoom on focus */
  margin-top: 6px; resize: vertical;
}
textarea:focus, input:focus, select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim);
}
textarea { min-height: 50vh; line-height: 1.6; font-size: 15px; }
textarea[rows="3"] { min-height: auto; }
textarea#cover_letter { font-family: var(--font); }

.answer-edit { margin-bottom: 14px; }
.q-label { display: block; color: var(--text-dim); font-size: 0.85rem; font-weight: 600; }

.violation-list { list-style: none; padding: 0; margin: 8px 0; font-size: 0.85rem; }
.violation-list li {
  padding: 7px 11px; border-radius: var(--radius-sm); margin-bottom: 4px;
  background: var(--surface); border: 1px solid var(--border); border-left-width: 3px;
}
.violation-list li.critical { color: var(--red); border-left-color: var(--red); }
.violation-list li.warning  { color: var(--amber); border-left-color: var(--amber); }
.violation-list li.muted    { color: var(--text-faint); }

/* =========================================
   BUTTONS — green = primary action
   ========================================= */
.btn-primary, .btn-secondary {
  font-family: var(--display);
  font-weight: 600; font-size: 0.92rem;
  padding: 12px 18px; border-radius: var(--radius);
  cursor: pointer; min-height: 44px;
  letter-spacing: 0.01em;
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.06s ease;
}
.btn-primary { background: var(--accent); color: #0f1012; border: 1px solid var(--accent); }
.btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { opacity: 0.35; cursor: not-allowed; }
.btn-primary.unsaved { background: var(--amber); border-color: var(--amber); color: #1a1405; }
.btn-primary.danger  { background: var(--red); border-color: var(--red); color: #1a0808; }
.btn-secondary {
  background: transparent; color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-secondary:disabled { opacity: 0.35; cursor: not-allowed; }
/* anchor styled as a button (e.g. live-browser link) */
a.btn-primary, a.btn-secondary { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
a.btn-primary:hover, a.btn-secondary:hover { text-decoration: none; }

.action-bar {
  position: fixed; left: 0; right: 0; bottom: var(--bottom-nav-height);
  display: flex; gap: 8px; padding: 10px 14px;
  background: var(--surface); border-top: 1px solid var(--border-strong);
  z-index: 50; flex-wrap: wrap;
}
.action-bar button { flex: 1 1 130px; }

/* =========================================
   FILTERS + PAGINATION (pipeline)
   ========================================= */
.filter-bar {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px 14px; margin: 16px 0;
}
.filter-bar summary { cursor: pointer; font-weight: 600; color: var(--text-dim); font-family: var(--display); }
.filter-form {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px; align-items: end; margin-top: 12px;
}
.filter-form label { display: block; color: var(--text-dim); font-size: 0.8rem; }

.pagination { display: flex; gap: 12px; align-items: center; justify-content: center; margin: 24px 0; }
.pagination .page-marker { color: var(--text-dim); font-family: var(--mono); }

.draft-btn { padding: 7px 14px; font-size: 0.82rem; min-height: auto; }

/* =========================================
   TABLET — min-width: 768px
   ========================================= */
@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .container { padding: 0 28px; }

  .header {
    padding: 22px 0; display: flex; justify-content: space-between; align-items: center;
  }
  .header h1 { font-size: 1.25rem; margin-bottom: 0; }
  .header nav { display: flex; gap: 22px; align-items: center; }
  .bottom-nav { display: none; }

  .stats-bar { grid-template-columns: repeat(4, 1fr); margin: 24px 0; }
  .stat-card { padding: 16px 20px; }
  .stat-card .value { font-size: 1.7rem; }

  .app-card {
    display: grid; grid-template-columns: 1fr auto; flex-direction: unset;
    gap: 14px; padding: 16px 20px; align-items: center;
  }
  .app-card .company { font-size: 1.02rem; }
  .app-card .badge-row { justify-content: flex-end; flex-direction: column; align-items: flex-end; gap: 6px; }

  .detail-header { padding: 32px 0 22px; }
  .detail-grid { grid-template-columns: 170px 1fr; gap: 8px 24px; margin: 24px 0; }
  .detail-grid dt { font-size: 0.78rem; text-transform: none; letter-spacing: 0; color: var(--text-dim); padding: 6px 0; }
  .detail-grid dd { padding: 6px 0; }

  .login-box { margin: 120px auto; padding: 0; }

  .section-title { margin: 32px 0 14px; }
}

/* =========================================
   DESKTOP — min-width: 1024px
   ========================================= */
@media (min-width: 1024px) {
  .pipeline-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin: 24px 0; }
  .footer-note { padding: 40px 0 20px; }
}
