/* ─── Job pool UI tokens (heading + app surfaces) ─── */
:root {
  --jp-ink: #0f172a;
  --jp-ink-secondary: #334155;
  --jp-muted: #64748b;
  --jp-muted-soft: #94a3b8;
  --jp-surface: #ffffff;
  --jp-surface-subtle: #f8fafc;
  --jp-surface-shell: #f1f5f9;
  --jp-border: #e2e8f0;
  --jp-border-strong: #cbd5e1;
  --jp-accent: #db2777;
  --jp-accent-hover: #be185d;
  --jp-accent-soft: rgba(219, 39, 119, 0.1);
  --jp-accent-ring: rgba(219, 39, 119, 0.35);
  --jp-teal: #0d9488;
  --jp-teal-hover: #0f766e;
  --jp-teal-soft: rgba(13, 148, 136, 0.12);
  --jp-indigo: #4f46e5;
  --jp-indigo-hover: #4338ca;
  --jp-indigo-soft: rgba(79, 70, 229, 0.12);
  --jp-amber: #d97706;
  --jp-amber-soft: rgba(217, 119, 6, 0.12);
  --jp-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --jp-shadow-md: 0 4px 24px rgba(15, 23, 42, 0.08);
  --jp-radius-pill: 999px;
  --jp-radius-card: 12px;
  --jp-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --page-inline-pad: 18px;

  /* Legacy aliases used in cards / older rules */
  --pink: var(--jp-accent);
  --green: var(--jp-teal);
  --yellow: var(--jp-amber);
  --ink: var(--jp-ink);
  --muted: var(--jp-muted);
  --line: var(--jp-border);
  --bg: var(--jp-surface-shell);
  --card: var(--jp-surface);
  --blue: #1e40af;
  --tag: #f1f5f9;
  --orange: var(--jp-amber);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--jp-surface-shell);
  color: var(--jp-ink);
  font: 13px/1.45 var(--jp-font);
  overflow-x: clip;
  max-width: 100vw;
}

/* ─── Sticky heading shell ─── */
.top-shell {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(180deg, var(--jp-surface) 0%, var(--jp-surface-subtle) 100%);
  border-bottom: 1px solid var(--jp-border);
  box-shadow: var(--jp-shadow-sm);
  max-width: 100%;
  min-width: 0;
  overflow-x: clip;
}

/* Title band — typography uses same ink / accent as controls */
.masthead {
  padding: 14px clamp(12px, 3vw, 20px) 10px;
  border-bottom: 1px solid var(--jp-border);
  background: var(--jp-surface);
}

.masthead-inner {
  max-width: 1400px;
  margin: 0 auto;
  min-width: 0;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(145deg, #fff9f5 0%, #ffe8f0 100%);
  border: 1px solid rgba(219, 39, 119, 0.18);
  box-shadow: 0 4px 18px rgba(219, 39, 119, 0.12);
}

.brand-cup .cup-steam {
  color: #cbd5e1;
}

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

.masthead-eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--jp-accent);
}

.masthead-title {
  margin: 0 0 6px;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--jp-ink);
}

.masthead-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.masthead-tab {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  color: var(--jp-ink-secondary);
  background: var(--jp-surface-shell);
  border: 1px solid var(--jp-border);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.masthead-tab:hover {
  border-color: var(--jp-border-strong);
  color: var(--jp-ink);
}

.masthead-tab.is-active {
  background: var(--jp-ink);
  color: #fff;
  border-color: var(--jp-ink);
}

.masthead-meta {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--jp-muted);
}

.masthead-meta a {
  color: var(--jp-teal-hover);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(13, 148, 136, 0.35);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.masthead-meta a:hover {
  color: var(--jp-teal);
  border-bottom-color: var(--jp-teal);
}

.masthead-survey-link {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--jp-accent);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.masthead-survey-link:hover {
  color: var(--jp-accent-hover);
}

.topbar {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) auto auto auto minmax(36px, 42px);
  gap: 10px;
  align-items: center;
  padding: 12px clamp(12px, 3vw, 20px);
  max-width: 1400px;
  margin: 0 auto;
  min-width: 0;
  width: 100%;
}

.topbar > * {
  min-width: 0;
}

.topbar .green-btn,
.topbar .yellow-btn,
.topbar .ai-btn,
.topbar .menu-btn {
  min-width: auto;
  flex-shrink: 0;
}

/* Brand */
.brand-dot {
  width: 40px;
  height: 40px;
  border-radius: var(--jp-radius-pill);
  border: 0;
  background: linear-gradient(145deg, var(--jp-accent) 0%, var(--jp-accent-hover) 100%);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--jp-accent-ring);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.brand-dot:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px var(--jp-accent-ring);
}

.brand-dot:focus-visible {
  outline: 2px solid var(--jp-accent);
  outline-offset: 2px;
}

/* Mode toggle — neutral chrome */
.mode-pill {
  display: flex;
  background: var(--jp-surface-shell);
  border: 1px solid var(--jp-border);
  border-radius: var(--jp-radius-pill);
  padding: 3px;
}

.mode-pill button {
  border: 0;
  border-radius: var(--jp-radius-pill);
  padding: 8px 14px;
  background: transparent;
  font-weight: 700;
  font-size: 13px;
  color: var(--jp-muted);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.mode-pill button:hover {
  color: var(--jp-ink-secondary);
}

.mode-pill .active {
  background: var(--jp-surface);
  color: var(--jp-ink);
  box-shadow: var(--jp-shadow-sm);
}

/* Search + location — consistent inputs */
.search-box,
.location-box {
  height: 50px;
  border: 1px solid var(--jp-border);
  background: var(--jp-surface);
  border-radius: var(--jp-radius-pill);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  min-width: 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-box:focus-within,
.location-box:focus-within {
  border-color: var(--jp-accent);
  box-shadow: 0 0 0 3px var(--jp-accent-soft);
}

.search-box .search-icon {
  color: var(--jp-muted-soft);
  font-size: 16px;
  flex-shrink: 0;
}

.search-box input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  font-size: 16px;
  color: var(--jp-ink);
}

.search-box input::placeholder {
  color: var(--jp-muted-soft);
}

.location-box {
  text-align: left;
  cursor: pointer;
  color: var(--jp-ink);
}

.location-box span:nth-child(2) {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}

.location-box b {
  font-size: 13px;
  font-weight: 700;
  color: var(--jp-ink);
}

.location-box small {
  color: var(--jp-muted);
  font-size: 11px;
  font-weight: 500;
}

.pin {
  background: var(--jp-teal);
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  font-size: 8px;
  flex-shrink: 0;
}

.chev {
  margin-left: auto;
  color: var(--jp-muted-soft);
  font-size: 12px;
}

/* Topbar actions — standardized variants */
.green-btn,
.yellow-btn,
.ai-btn,
.menu-btn,
.primary-btn,
.ghost-btn {
  height: 40px;
  border: 0;
  border-radius: var(--jp-radius-pill);
  padding: 0 16px;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.green-btn {
  background: var(--jp-teal);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset;
}

.green-btn:hover {
  background: var(--jp-teal-hover);
}

.yellow-btn {
  background: var(--jp-accent-soft);
  color: var(--jp-accent-hover);
  border: 1px solid rgba(219, 39, 119, 0.25);
}

.yellow-btn:hover {
  background: rgba(219, 39, 119, 0.18);
}

.ai-btn {
  background: var(--jp-indigo);
  color: #fff;
  box-shadow: 0 4px 14px var(--jp-indigo-soft);
}

.ai-btn:hover {
  background: var(--jp-indigo-hover);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.25);
}

.menu-btn {
  background: var(--jp-surface);
  border: 1px solid var(--jp-border);
  color: var(--jp-ink-secondary);
}

.menu-btn:hover {
  background: var(--jp-surface-shell);
  border-color: var(--jp-border-strong);
}

.green-btn:focus-visible,
.ai-btn:focus-visible,
.yellow-btn:focus-visible,
.menu-btn:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Filter chips — single neutral + one warm accent group */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  padding: 12px clamp(12px, 3vw, 20px) 16px;
  max-width: 1400px;
  margin: 0 auto;
  border-top: 1px solid var(--jp-border);
  background: var(--jp-surface-subtle);
  min-width: 0;
  box-sizing: border-box;
}

.filters button {
  background: var(--jp-surface);
  border: 1px solid var(--jp-border-strong);
  border-radius: 8px;
  padding: 6px 12px;
  font-weight: 600;
  font-size: 12px;
  color: var(--jp-ink-secondary);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.filters button:hover {
  border-color: var(--jp-muted-soft);
  background: var(--jp-surface-shell);
}

.filters button.orange {
  border-color: rgba(217, 119, 6, 0.45);
  color: #b45309;
  background: var(--jp-amber-soft);
}

.filters button.orange:hover {
  border-color: var(--jp-amber);
  background: rgba(217, 119, 6, 0.18);
}

.filters .sep {
  height: 24px;
  border-left: 1px solid var(--jp-border);
  margin: 0 4px;
  align-self: center;
}

/* Hire strip — teal accent aligned with Add / pin */
.hire-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 12px;
  text-align: center;
  background: var(--jp-teal-soft);
  border-top: 1px solid rgba(13, 148, 136, 0.2);
  padding: 10px clamp(12px, 3vw, 20px);
  font-weight: 600;
  font-size: 13px;
  color: var(--jp-teal-hover);
}

.hire-banner-text {
  color: var(--jp-teal-hover);
}

.hire-banner a {
  color: var(--jp-teal-hover);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hire-banner a:hover {
  color: var(--jp-teal);
}

main {
  padding: 30px var(--page-inline-pad) 56px;
  max-width: 100%;
  min-width: 0;
  overflow-x: clip;
}

.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 auto 24px;
  max-width: 1180px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.toolbar div:first-child {
  margin-right: auto;
}

.toolbar b {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: var(--jp-ink);
  letter-spacing: -0.02em;
}

.toolbar small {
  color: var(--jp-muted);
  font-weight: 500;
}

.toolbar label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 12px;
  color: var(--jp-ink-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.toolbar select {
  border: 1px solid var(--jp-border);
  border-radius: 10px;
  background: var(--jp-surface);
  padding: 9px 12px;
  font-size: 13px;
  color: var(--jp-ink);
  font-weight: 500;
}

.primary-btn {
  background: var(--jp-accent);
  color: #fff;
}

.primary-btn:hover {
  background: var(--jp-accent-hover);
}

.ghost-btn {
  background: var(--jp-surface);
  border: 1px solid var(--jp-border);
  color: var(--jp-ink-secondary);
}

.ghost-btn:hover {
  background: var(--jp-surface-shell);
  border-color: var(--jp-border-strong);
}

.account-panel {
  max-width: 1180px;
  margin: 0 auto 24px;
  background: var(--jp-surface);
  border: 1px solid var(--jp-border);
  border-radius: var(--jp-radius-card);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  box-shadow: var(--jp-shadow-md);
}

.account-panel h2 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 800;
  color: var(--jp-ink);
}

.account-panel p {
  margin: 0;
  color: var(--jp-muted);
}

.account-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.hidden {
  display: none !important;
}

.error {
  max-width: 1180px;
  margin: 0 auto 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--jp-radius-card);
  padding: 14px;
  color: #991b1b;
}

.sections {
  display: flex;
  flex-direction: column;
  gap: 54px;
  max-width: 100%;
  min-width: 0;
}

.job-section {
  position: relative;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
  min-width: 0;
}

.section-head h2 {
  font-size: 20px;
  margin: 0;
  font-weight: 900;
  color: var(--jp-ink);
  letter-spacing: -0.03em;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-head a {
  font-size: 20px;
  text-decoration: none;
  color: var(--jp-accent);
}

.section-head a:hover {
  color: var(--jp-accent-hover);
}

.section-arrows {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.arrow {
  width: 32px;
  height: 32px;
  border: 1px solid var(--jp-border);
  background: var(--jp-surface);
  border-radius: var(--jp-radius-pill);
  color: var(--jp-muted);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.arrow:hover {
  background: var(--jp-surface-shell);
  border-color: var(--jp-border-strong);
}

/* Horizontal listing: flex track so card width can respond to viewport without page overflow */
.rail {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: clamp(12px, 3vw, 24px);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  padding: 0 2px 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.rail::-webkit-scrollbar {
  height: 6px;
}

.rail::-webkit-scrollbar-thumb {
  background: var(--jp-border-strong);
  border-radius: 999px;
}

.job-card {
  position: relative;
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: min(320px, calc(100vw - 2 * var(--page-inline-pad)));
  max-width: min(320px, calc(100vw - 2 * var(--page-inline-pad)));
  min-width: min(240px, calc(100vw - 2 * var(--page-inline-pad)));
  background: var(--card);
  border: 1px solid var(--jp-border);
  border-radius: 10px;
  box-shadow: var(--jp-shadow-sm);
  height: 408px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

.job-card:hover .hover-actions {
  opacity: 1;
  pointer-events: auto;
}

.card-main {
  padding: 14px 13px 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 0;
  flex: 1;
}

.title-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  min-width: 0;
}

.job-title {
  font-size: 16px;
  line-height: 1.42;
  font-weight: 900;
  margin: 0;
  letter-spacing: -0.01em;
  flex: 1;
  min-width: 0;
  color: var(--jp-ink);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.time {
  color: var(--jp-muted-soft);
  font-size: 12px;
  white-space: nowrap;
}

.tag-row {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  min-width: 0;
  overflow: hidden;
}

.tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border: 1px solid var(--jp-border);
  background: var(--tag);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 12px;
  line-height: 1.25;
  color: var(--jp-ink-secondary);
}

.tag.pay {
  border-color: rgba(13, 148, 136, 0.35);
  color: var(--jp-teal-hover);
  background: var(--jp-teal-soft);
}

.tag.exp {
  border-color: rgba(79, 70, 229, 0.35);
  color: var(--jp-indigo-hover);
  background: var(--jp-indigo-soft);
}

.tag.strong {
  border-color: var(--jp-ink);
  color: var(--jp-ink);
  background: var(--jp-surface);
}

.company-line {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  margin-top: 9px;
  min-width: 0;
}

.logo {
  width: 58px;
  height: 58px;
  border: 1px solid var(--jp-border-strong);
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--jp-surface) 0%, var(--jp-surface-shell) 100%);
  font-size: 22px;
  font-weight: 900;
  color: var(--jp-indigo);
  overflow: hidden;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.company-copy {
  font-size: 13px;
  color: var(--jp-ink-secondary);
  min-width: 0;
  overflow: hidden;
}

.company-copy b {
  font-size: 14px;
  color: var(--jp-ink);
  word-break: break-word;
}

.summary,
.skills-line {
  font-size: 13px;
  color: var(--jp-ink-secondary);
  margin: 4px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.skills-line {
  color: var(--jp-ink-secondary);
  -webkit-line-clamp: 2;
}

.skills-line .icon {
  font-size: 15px;
  margin-right: 4px;
}

.card-footer {
  border-top: 1px solid var(--jp-border);
  margin-top: auto;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 11px;
  color: var(--jp-muted);
}

.footer-row button,
.footer-row a {
  border: 0;
  background: transparent;
  color: var(--jp-muted);
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
}

.footer-row button:hover,
.footer-row a:hover {
  color: var(--jp-accent);
}

.views {
  text-align: center;
  border-top: 1px solid var(--jp-border);
  padding: 8px;
  font-size: 12px;
  color: var(--jp-muted);
}

.hover-actions {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.52);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  display: grid;
  grid-template-rows: auto 1fr auto;
  z-index: 2;
  padding: 9px;
}

.hover-top {
  display: flex;
  align-items: center;
  gap: 9px;
}

.round {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--jp-radius-pill);
  background: var(--jp-surface);
  font-size: 18px;
  cursor: pointer;
}

.save {
  height: 48px;
  border: 0;
  border-radius: var(--jp-radius-pill);
  background: var(--jp-accent);
  color: #fff;
  padding: 0 20px;
  font-weight: 800;
  cursor: pointer;
}

.save:hover {
  background: var(--jp-accent-hover);
}

.mark {
  height: 38px;
  border: 0;
  border-radius: 8px;
  background: var(--jp-surface);
  padding: 0 12px;
  font-weight: 800;
  cursor: pointer;
  color: var(--jp-ink);
}

.hover-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.apply {
  border: 0;
  background: var(--jp-surface);
  border-radius: var(--jp-radius-pill);
  padding: 9px 19px;
  font-weight: 700;
  cursor: pointer;
  color: var(--jp-ink);
}

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

.icon-actions button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: var(--jp-radius-pill);
  background: var(--jp-surface);
  color: var(--jp-accent);
  font-size: 17px;
  cursor: pointer;
}

.job-card.saved {
  outline: 2px solid var(--jp-accent);
}

.job-card.applied {
  outline: 2px solid var(--jp-teal);
}

.drawer {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: 420px;
  background: var(--jp-surface);
  border: 1px solid var(--jp-border);
  border-radius: var(--jp-radius-card);
  box-shadow: var(--jp-shadow-md);
  z-index: 50;
  padding: 16px;
}

.drawer h3 {
  margin: 0 0 8px;
  color: var(--jp-ink);
}

.drawer p {
  color: var(--jp-ink-secondary);
}

.drawer .close {
  position: absolute;
  right: 12px;
  top: 10px;
  border: 0;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  color: var(--jp-muted);
}

@media (max-width: 900px) {
  .masthead {
    padding-top: 12px;
    padding-bottom: 8px;
  }

  .masthead-title {
    font-size: 1.35rem;
  }

  .topbar {
    grid-template-columns: 1fr auto auto;
    gap: 8px;
  }

  .mode-pill,
  .location-box,
  .green-btn,
  .ai-btn {
    display: none;
  }

  .search-box {
    grid-column: 1 / -1;
  }

  .filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .filters::-webkit-scrollbar {
    display: none;
  }

  .toolbar {
    align-items: stretch;
  }

  .toolbar div:first-child {
    width: 100%;
  }

  .account-panel {
    flex-direction: column;
  }

  .job-card {
    height: 420px;
  }
}


/* Header declutter: search is now the hero control. */
.topbar .search-box {
  width: 100%;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.topbar .search-box:focus-within {
  border-color: var(--jp-teal);
  box-shadow: 0 0 0 4px var(--jp-teal-soft);
}
.topbar .search-icon {
  font-size: 18px;
}
@media (max-width: 900px) {
  .topbar .yellow-btn,
  .topbar .menu-btn {
    justify-self: end;
  }
}
