:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-alt: #fafbfc;
  --modal-surface: #ffffff;
  --border: #e0e2e7;
  --text: #23262b;
  --text-muted: #6b7280;
  --brand: #3457d5;
  --brand-dark: #263f9f;
  --green: #1b8a4c;
  --green-bg: #e4f7ea;
  --amber: #a3690a;
  --amber-bg: #fdf1da;
  --blue: #2a4faa;
  --blue-bg: #e4ecfb;
  --orange: #b5580a;
  --orange-bg: #fdeada;
  --red: #b3261e;
  --red-bg: #fbe4e4;
  --red-border: #f2c9c6;
  --gray-bg: #eceef1;
  --overlay-scrim: rgba(20, 22, 30, 0.45);
  --radius: 10px;
  --shadow: 0 1px 3px rgba(20, 22, 30, 0.08), 0 1px 2px rgba(20, 22, 30, 0.06);
  --shadow-hover: 0 4px 12px rgba(20, 22, 30, 0.12);
  color-scheme: light;
}

/* Stamped onto <html> by js/app.js (resolves system preference or a saved
   choice once on load, then the toggle button flips it) — see .theme-toggle.
   color-scheme here also gets native controls (checkboxes, radios, select
   popups, scrollbars) rendered in their dark variant automatically — CSS
   custom properties can't reach into those. */
:root[data-theme="dark"] {
  --bg: #14161c;
  --surface: #1c1f27;
  --surface-alt: #20242d;
  --modal-surface: #242835;
  --border: #2d3139;
  --text: #e8eaef;
  --text-muted: #9aa1ad;
  --brand: #6d8bff;
  --brand-dark: #93a9ff;
  --green: #3ecf7e;
  --green-bg: #113322;
  --amber: #e2ac4b;
  --amber-bg: #3a2c10;
  --blue: #8fb0ff;
  --blue-bg: #1b2540;
  --orange: #e2954b;
  --orange-bg: #3a2410;
  --red: #f0645f;
  --red-bg: #3a1616;
  --red-border: #5a2a2a;
  --gray-bg: #262a33;
  --overlay-scrim: rgba(0, 0, 0, 0.65);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

/* Base fallback for any text-entry control not covered by a more specific
   rule below (e.g. modal inputs, the prompt editor, notes textareas) — an
   unstyled input/textarea otherwise keeps the browser's light-mode default
   background regardless of the app's theme. */
input[type="text"],
input[type="number"],
input[type="password"],
input[type="email"],
textarea,
select {
  background: var(--surface);
  color: var(--text);
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  transition: background-color 0.15s ease, color 0.15s ease;
}

h1, h2, h3 {
  margin: 0 0 0.5em 0;
  font-weight: 650;
}

/* ---------------- Header / nav ---------------- */
.app-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  min-width: 0;
}

.app-logo {
  /* Bleeds past the header's own vertical padding (14px) via a matching
     negative margin, so the image spans the full header height edge-to-edge
     instead of sitting small with whitespace around it. */
  height: 84px;
  margin: -14px 0;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.app-logo-words {
  height: 44px;
  width: auto;
  display: block;
}

/* Below this width there isn't comfortable room for heads + words + a
   centered nav without crowding — drop the words and keep just the heads. */
@media (max-width: 1100px) {
  .app-logo-words {
    display: none;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}

.tab-nav {
  display: flex;
  gap: 6px;
  justify-self: center;
}

.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  color: var(--text);
}

.theme-toggle:hover {
  background: var(--gray-bg);
}

.tab-btn {
  background: transparent;
  border: 1px solid transparent;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  color: var(--text-muted);
  font-weight: 600;
}

.tab-btn:hover {
  background: var(--gray-bg);
  color: var(--text);
}

.tab-btn.active {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow);
}

main {
  width: 100%;
  padding: 20px 32px 64px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* ---------------- Onboarding banner ---------------- */
.onboarding-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 18px;
}

.onboarding-banner p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  flex: 1 1 320px;
}

.onboarding-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.onboarding-actions .btn {
  background: #fff;
  border-color: #fff;
  color: var(--brand-dark);
}

/* This button is explicitly white regardless of theme (it sits on the
   brand-colored banner in both light and dark mode) — its hover state
   needs to stay a fixed light tint too, not var(--gray-bg), which would
   flip it to a jarring dark square in dark mode. */
.onboarding-actions .btn:hover {
  background: #eef0f4;
}

.onboarding-actions .btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.onboarding-actions .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ---------------- Filter bar ---------------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}

.filter-bar select,
.filter-bar input[type="text"] {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  background: var(--surface);
  color: var(--text);
}

.filter-bar input[type="text"] {
  flex: 1 1 220px;
  min-width: 180px;
}

.score-filter-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

.score-filter-label input[type="range"] {
  width: 110px;
}

.status-line {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
  min-height: 1em;
}

/* ---------------- Dashboard layout + active processes panel ---------------- */
.dashboard-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.dashboard-main {
  flex: 1 1 auto;
  min-width: 0;
}

.dashboard-heading {
  font-size: 19px;
  margin: 0 0 14px;
}

.active-processes-panel {
  flex: 0 0 300px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 84px;
  max-height: calc(100vh - 104px);
  overflow-y: auto;
}

.active-processes-panel h2 {
  font-size: 15px;
}

/* ---------------- Job search status (sidebar) ---------------- */
.search-status-block {
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.search-status-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.search-status-top h2 {
  margin: 0;
}

.search-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}

.search-status-dot.is-running {
  background: var(--amber);
  animation: search-status-pulse 1.4s ease-in-out infinite;
}

.search-status-dot.is-done {
  background: var(--green);
}

.search-status-dot.is-error {
  background: var(--red);
}

@media (prefers-reduced-motion: reduce) {
  .search-status-dot.is-running {
    animation: none;
  }
}

@keyframes search-status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.search-status-line {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 6px 0 10px;
}

.process-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.process-item {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
}

.process-item:hover {
  border-color: var(--brand);
}

.process-item-title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 650;
}

.process-item-company {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

.process-item-stage {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--brand-dark);
  font-weight: 600;
}

.process-item-stage-ready {
  color: var(--green);
}

@media (max-width: 900px) {
  .dashboard-layout {
    flex-direction: column;
  }

  .active-processes-panel {
    flex: 1 1 auto;
    width: 100%;
    position: static;
    max-height: none;
  }
}

/* ---------------- Job cards ---------------- */
.job-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.job-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.job-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

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

.job-card-title {
  font-size: 16px;
  font-weight: 650;
  margin: 0;
}

.job-card-company {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}

.job-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 12px;
}

.job-card-summary {
  font-size: 13.5px;
  color: var(--text);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.job-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

/* ---------------- Badges ---------------- */
.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.badge-remote { background: var(--blue-bg); color: var(--blue); }
.badge-score-green { background: var(--green-bg); color: var(--green); }
.badge-score-amber { background: var(--amber-bg); color: var(--amber); }
.badge-score-gray { background: var(--gray-bg); color: var(--text-muted); }

.badge-status-new { background: var(--blue-bg); color: var(--blue); }
.badge-status-interested { background: var(--orange-bg); color: var(--orange); }
.badge-status-applied { background: var(--green-bg); color: var(--green); }
.badge-status-skipped { background: var(--gray-bg); color: var(--text-muted); }
.badge-status-rejected { background: var(--red-bg); color: var(--red); }

/* ---------------- Buttons ---------------- */
.btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.btn:hover {
  background: var(--gray-bg);
}

.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-small {
  padding: 5px 10px;
  font-size: 12.5px;
}

.btn-danger {
  color: var(--red);
  border-color: var(--red-border);
}

.btn-danger:hover {
  background: var(--red-bg);
}

.btn-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ---------------- Forms ---------------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  max-width: 620px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-card label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}

.form-card .hint {
  font-weight: 400;
  color: var(--text-muted);
}

.form-card input[type="text"],
.form-card input[type="number"],
.form-card input[type="password"],
.form-card input[type="file"],
.form-card textarea {
  font-weight: 400;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
}

.form-card fieldset {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
}

.form-card fieldset legend {
  font-size: 12.5px;
  color: var(--text-muted);
  padding: 0 4px;
}

.radio-label {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 6px;
  margin-right: 16px;
  font-weight: 400 !important;
}

.checkbox-label {
  flex-direction: row !important;
  align-items: center;
  gap: 8px !important;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ---------------- Preferences (grid layout — fits in one screen instead
   of a single long scrolling column) ---------------- */
.preferences-card {
  max-width: none;
}

.preferences-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px 20px;
  align-items: start;
}

.pref-full-width {
  grid-column: 1 / -1;
}

/* The checkbox row has no separate label line above it (unlike the other
   fields), so it needs a matching top offset instead to line its checkbox
   up with the other inputs in the same grid row. */
.pref-remote-label {
  align-self: start;
  padding-top: 22px;
}

/* Each label's first line (text + help icon) is a single, non-wrapping
   row of consistent height across every field, so inputs in the same grid
   row all start at the same y position regardless of label text length. */
.field-label {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.field-label-text {
  white-space: nowrap;
}

.field-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  padding: 0;
  border: 1px solid var(--text-muted);
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  cursor: help;
  position: relative;
}

.field-help:hover,
.field-help:focus-visible {
  border-color: var(--brand);
  color: var(--brand);
  outline: none;
}

.field-help::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--bg);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  white-space: normal;
  width: max-content;
  max-width: 240px;
  padding: 8px 10px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease;
  z-index: 20;
  pointer-events: none;
}

.field-help::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 3px);
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--text);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease;
  z-index: 20;
  pointer-events: none;
}

.field-help:hover::after,
.field-help:hover::before,
.field-help:focus-visible::after,
.field-help:focus-visible::before {
  opacity: 1;
  visibility: visible;
}

.checkbox-label .field-label-text {
  font-weight: 600;
}

/* ---------------- Preferences: clear section delineation ---------------- */
.preferences-section {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.preferences-section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.preferences-section-title {
  font-size: 14.5px;
  margin: 0 0 14px;
  color: var(--text);
}

.preferences-section-companies {
  background: var(--gray-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 4px;
}

.preferences-section-companies .form-hint {
  margin-top: -6px;
}

.watched-companies-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.watched-company-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr auto;
  gap: 8px;
  align-items: center;
}

.watched-company-row input {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13.5px;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
}

.watched-company-row-header {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

@media (max-width: 700px) {
  .watched-company-row {
    grid-template-columns: 1fr;
  }

  .watched-company-row-header {
    display: none;
  }
}

.preferences-footer {
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.preferences-footer-divider {
  width: 1px;
  align-self: stretch;
  background: var(--border);
}

.form-hint {
  color: var(--text-muted);
  font-size: 13px;
  margin: -8px 0 4px;
}

.login-columns {
  display: flex;
  align-items: stretch;
  gap: 24px;
}

.login-column {
  flex: 1 1 0;
  min-width: 0;
}

.login-divider {
  width: 1px;
  align-self: stretch;
  background: var(--border);
}

.saved-msg {
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
}

.section-title {
  margin-top: 28px;
}

/* ---------------- Resume list ---------------- */
.resume-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 620px;
}

.resume-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow);
  flex-wrap: wrap;
}

.resume-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.resume-item-label {
  font-weight: 650;
}

.resume-item-meta {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ---------------- Overlays / modals ---------------- */
.overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay-scrim);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
}

.overlay.hidden {
  display: none;
}

.modal {
  background: var(--modal-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  position: relative;
}

.modal-large {
  max-width: 720px;
  max-height: 88vh;
  overflow-y: auto;
}

.modal input[type="password"],
.modal input[type="text"],
.modal input[type="email"],
.modal textarea {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  margin-top: 10px;
  background: var(--surface);
  color: var(--text);
}

.modal textarea {
  resize: vertical;
}

.modal-actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: transparent;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
}

.modal-close:hover {
  color: var(--text);
}

.error-text {
  color: var(--red);
  font-size: 13px;
  margin-top: 10px;
}

.hidden {
  display: none !important;
}

/* ---------------- Job detail modal content ---------------- */
.job-detail-header {
  margin-bottom: 14px;
}

.job-detail-title {
  font-size: 20px;
  margin: 0 0 4px;
}

.job-detail-company {
  color: var(--text-muted);
  margin: 0 0 8px;
}

.job-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.job-detail-section {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.job-detail-section h3 {
  font-size: 14.5px;
  margin-bottom: 6px;
}

.job-detail-section p {
  white-space: pre-wrap;
  font-size: 14px;
}

.status-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.notes-box textarea {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
}

.packet-block {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 10px;
}

.packet-block h4 {
  margin: 0 0 6px;
  font-size: 13.5px;
}

.packet-block pre {
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 13.5px;
  margin: 0 0 8px;
  max-height: 220px;
  overflow-y: auto;
}

.channel-list, .contact-list {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13.5px;
}

.channel-list li, .contact-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
}

.empty-state {
  color: var(--text-muted);
  font-size: 14px;
  padding: 20px 0;
  text-align: center;
}

.notice-box {
  background: var(--amber-bg);
  color: var(--amber);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13.5px;
  margin-top: 10px;
}

/* ---------------- Prompt editor ---------------- */
.prompt-card {
  max-width: 900px;
}

.prompt-editor {
  width: 100%;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.5;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  resize: vertical;
}

.prompt-history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 900px;
}

.prompt-history-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.prompt-history-item.is-current {
  border-color: var(--brand);
}

.prompt-history-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.prompt-history-label {
  font-weight: 650;
  font-size: 13.5px;
}

.prompt-history-preview {
  font-size: 12px;
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 480px;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 640px) {
  .login-columns {
    flex-direction: column;
    gap: 20px;
  }

  .login-divider {
    width: auto;
    height: 1px;
  }

  .app-header {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .logo-lockup,
  .tab-nav,
  .header-actions {
    justify-self: start;
  }

  .app-logo {
    height: 72px;
  }

  main {
    padding: 16px;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-bar input[type="text"] {
    min-width: 0;
  }

  .job-grid {
    grid-template-columns: 1fr;
  }
}
