/* ─── 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;
}

.mobile-bottom-nav {
  display: none;
}

/* ─── 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;
  align-items: center;
}

.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, transform 0.12s ease;
}

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

.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 strip — compact “cute” pills */
.filters {
  padding: 10px clamp(12px, 3vw, 20px) 14px;
  max-width: 1400px;
  margin: 0 auto;
  border-top: 1px solid var(--jp-border);
  background: linear-gradient(180deg, #fffafd 0%, var(--jp-surface-subtle) 100%);
  min-width: 0;
  box-sizing: border-box;
}

.filters-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.filters-kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a21caf;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.filters-kicker-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: linear-gradient(145deg, #fce7f3 0%, #ede9fe 100%);
  border: 1px solid rgba(167, 139, 250, 0.45);
  font-size: 11px;
}

.filters-hint {
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--jp-muted);
  font-size: 12px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.filter-pill {
  border: 1px solid rgba(244, 114, 182, 0.35);
  background: #fff;
  color: #9d174d;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.filter-pill:hover {
  border-color: rgba(236, 72, 153, 0.55);
  background: #fff5fb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(219, 39, 119, 0.12);
}

.filter-pill--accent {
  border-color: rgba(13, 148, 136, 0.35);
  color: #0f766e;
  background: linear-gradient(180deg, #f0fdfa 0%, #ecfeff 100%);
}

.filter-pill--accent:hover {
  border-color: var(--jp-teal);
  background: #ccfbf1;
}

.filter-pill.is-toggle-active {
  border-color: #db2777;
  background: linear-gradient(180deg, #fce7f3 0%, #fbcfe8 100%);
  color: #831843;
  box-shadow: 0 0 0 2px rgba(219, 39, 119, 0.2);
}

.filter-pill.is-active-kw {
  border-color: #7c3aed;
  background: linear-gradient(180deg, #f5f3ff 0%, #ede9fe 100%);
  color: #5b21b6;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.18);
}

.filter-pill-sep {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(145deg, #fda4af, #c4b5fd);
  margin: 0 2px;
  flex-shrink: 0;
  opacity: 0.85;
}

/* 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,
.job-toolbar {
  margin: 0 auto 24px;
  max-width: 1180px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.job-toolbar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 18px;
  background: var(--jp-surface);
  border: 1px solid var(--jp-border);
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.job-toolbar-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
}

.job-toolbar-head b {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 800;
  color: var(--jp-ink);
  letter-spacing: -0.02em;
}

.job-toolbar-head small {
  color: var(--jp-muted);
  font-weight: 600;
  font-size: 12px;
}

.job-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  align-items: flex-end;
}

.toolbar-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1 1 140px;
}

.toolbar-field-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #a855f7;
}

.toolbar-field select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--jp-border);
  border-radius: 12px;
  background: var(--jp-surface-subtle);
  padding: 10px 12px;
  font-size: 14px;
  color: var(--jp-ink);
  font-weight: 600;
  font-family: inherit;
}

.toolbar-field select:focus {
  outline: none;
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2);
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
  align-items: center;
}

.toolbar-chip {
  border-radius: 999px !important;
  font-weight: 800 !important;
}

.seo-authority {
  max-width: 1180px;
  margin: 0 auto 18px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #fff5fb 0%, #f5f3ff 100%);
  border: 1px solid #f4c8de;
  border-left: 5px solid #ff7eb8;
  border-radius: 14px;
  color: var(--jp-ink-secondary);
  box-shadow: 0 8px 20px rgba(217, 70, 143, 0.1);
}

.seo-authority h2 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 900;
  color: #7a355a;
}

.seo-authority p {
  margin: 0 0 6px;
  font-size: 13px;
}

.seo-authority p:last-child {
  margin-bottom: 0;
}

.seo-authority-kicker {
  margin: 0 0 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ffe4f2;
  color: #b83280;
  border: 1px solid #ffb3d6;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.seo-authority-kicker::before {
  content: "●";
  font-size: 9px;
  color: #ff5fa2;
}

.seo-authority-meta {
  color: #8f5a79;
}

.seo-authority-links {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.seo-authority-links a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #f2bfd9;
  background: #fff;
  color: #8a3f67;
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
}

.seo-authority-links a:hover {
  border-color: #ff7eb8;
  color: #b83280;
  background: #fff0f7;
}

.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;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 18, 32, 0.32);
  backdrop-filter: blur(10px);
}

.auth-modal-panel {
  position: relative;
  z-index: 1;
  width: min(980px, 96vw);
  max-height: 88vh;
  overflow: auto;
  margin: 0;
}

body.auth-modal-open {
  overflow: hidden;
}

.account-panel-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px 22px;
  align-items: start;
  padding: 22px 22px 20px;
  background: linear-gradient(145deg, #fff 0%, #fff7fb 42%, #f5f3ff 100%);
  border: 1px solid rgba(244, 114, 182, 0.28);
  border-radius: 22px;
  box-shadow: 0 12px 40px rgba(219, 39, 119, 0.1), 0 2px 0 rgba(255, 255, 255, 0.8) inset;
}

.account-panel-hero {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.account-panel-mug {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(160deg, #fff 0%, #ffe4f2 100%);
  border: 1px solid rgba(251, 113, 133, 0.35);
  font-size: 26px;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(244, 63, 94, 0.12);
}

.account-panel-copy {
  min-width: 0;
}

.account-panel h2,
#accountPanelTitle {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #831843;
}

.account-panel p,
#accountStatus {
  margin: 0 0 16px;
  color: #9f5673;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 500;
}

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

.profile-card-mount {
  grid-column: 1 / -1;
  min-width: 0;
}

.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: linear-gradient(180deg, #ffffff 0%, #fff9fc 55%, #f9fbff 100%);
  border: 2px solid #f3c7de;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(219, 39, 119, 0.12);
  height: 408px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

.job-card::before {
  content: "";
  position: absolute;
  top: 8px;
  right: 10px;
  width: 12px;
  height: 12px;
  z-index: 1;
  background:
    repeating-linear-gradient(0deg, #ffc7e3 0 2px, transparent 2px 4px),
    repeating-linear-gradient(90deg, #ffc7e3 0 2px, transparent 2px 4px);
  border-radius: 4px;
  opacity: 0.65;
}

.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: 0;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: transparent;
  font-size: 22px;
  font-weight: 900;
  color: var(--jp-indigo);
  overflow: hidden;
}

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

.logo-board-chip {
  --logo-h: 210;
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0) 42%),
    linear-gradient(145deg,
      hsl(var(--logo-h) 92% 95%) 0%,
      hsl(calc(var(--logo-h) + 30) 90% 88%) 100%);
  box-shadow: 0 6px 12px rgba(79, 70, 229, 0.14);
}

.logo-board-chip::before {
  content: attr(data-initials);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(30, 41, 59, 0.7);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.logo-board-chip::after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 9px;
  height: 9px;
  background:
    repeating-linear-gradient(0deg, #ff9dc8 0 2px, transparent 2px 4px),
    repeating-linear-gradient(90deg, #ff9dc8 0 2px, transparent 2px 4px);
  border-radius: 3px;
  opacity: 0.7;
  z-index: 3;
}

.company-logo-img {
  position: absolute;
  inset: 10%;
  width: 80%;
  height: 80%;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
  z-index: 2;
}

.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 #f5d7e8;
  margin-top: auto;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 245, 251, 0.95));
}

.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 #ff7db9;
}

.job-card.applied {
  outline: 2px solid #8f6fff;
}

.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-inner {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

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

  .filters-kicker {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .filters-hint {
    display: none;
  }

  .filter-pills {
    flex-wrap: nowrap;
    padding-right: 8px;
  }

  .job-toolbar {
    align-items: stretch;
  }

  .job-toolbar-head {
    width: 100%;
  }

  .account-panel-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .account-panel-hero {
    grid-column: 1;
    justify-content: center;
  }

  .account-panel-copy {
    grid-column: 1;
  }

  .profile-card-mount {
    grid-column: 1;
    width: 100%;
  }

  .account-actions {
    justify-content: center;
  }

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


/* Header declutter: search is now the hero control. */
.topbar .search-box {
  width: 100%;
  box-shadow: 0 4px 12px rgba(219, 39, 119, 0.06);
}
.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;
  }
}


/* Account/profile + hamburger drawer controls */
.profile-card {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(167, 139, 250, 0.35);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #faf5ff 100%);
  padding: 16px 18px 18px;
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.08);
}

.profile-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 15px;
  color: #6d28d9;
  background: linear-gradient(145deg, #ede9fe 0%, #e0e7ff 100%);
  border: 1px solid rgba(139, 92, 246, 0.35);
  flex-shrink: 0;
}

.profile-card-title {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
  color: #5b21b6;
  letter-spacing: -0.02em;
}

.profile-card-sub {
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: #7c3aed;
  opacity: 0.85;
}

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0 0;
}

.profile-field-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7c3aed;
}

.profile-card input,
.profile-card textarea {
  width: 100%;
  border: 1px solid rgba(199, 210, 254, 0.95);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}

.profile-card textarea {
  min-height: 88px;
  resize: vertical;
  line-height: 1.45;
}

.profile-card input:focus,
.profile-card textarea:focus {
  outline: none;
  border-color: #a78bfa;
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.25);
}

.profile-stat-pills {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-stat-pills li {
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e9d5ff;
  font-size: 12px;
  font-weight: 700;
  color: #6b21a8;
}

.profile-stat-n {
  font-weight: 900;
  color: #7c3aed;
  margin-right: 4px;
}

.profile-save-btn {
  margin-top: 14px;
  width: 100%;
  min-height: 44px;
  border-radius: 14px !important;
  font-size: 15px !important;
}

.profile-card-empty {
  text-align: center;
  padding: 8px 6px 4px;
}

.profile-card-empty-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #ecfccb;
  border: 1px solid #bef264;
  font-size: 22px;
  margin-bottom: 8px;
}

.profile-card-empty h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 900;
  color: #3f6212;
}

.profile-card-empty p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #4d7c0f;
  font-weight: 600;
}

.menu-stack { display: grid; gap: 8px; }
.menu-stack button { text-align: left; border: 1px solid var(--jp-border); border-radius: 12px; background: var(--jp-surface); padding: 10px 12px; font: inherit; font-weight: 800; cursor: pointer; }
.menu-stack button:hover { background: var(--jp-surface-shell); }

/* Mobile usability pass: compact header, clear account flow, touch-first job cards */
@media (max-width: 760px) {
  :root {
    --page-inline-pad: 12px;
  }

  body {
    font-size: 14px;
  }

  .top-shell {
    position: sticky;
  }

  .masthead {
    padding: 9px 12px 7px;
  }

  .brand-lockup {
    gap: 10px;
    margin-bottom: 8px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .brand-logo {
    width: 40px !important;
    height: 40px !important;
  }

  .masthead-eyebrow {
    display: none;
  }

  .masthead-title {
    margin: 0;
    font-size: 1.25rem;
    letter-spacing: -0.03em;
    line-height: 1.12;
  }

  .masthead-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 7px;
  }

  .masthead-tab {
    justify-content: center;
    padding: 8px 10px;
    font-size: 12px;
  }

  .masthead-meta {
    display: none;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px 12px 10px;
  }

  body {
    padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  }

  .search-box {
    height: 44px;
    padding: 0 13px;
  }

  .search-box input {
    font-size: 15px;
  }

  .yellow-btn.account-cta,
  .menu-btn {
    min-width: 44px;
    height: 42px;
    padding-inline: 14px;
    border-radius: 14px;
  }

  .filters {
    padding: 8px 12px 10px;
    scroll-padding-inline: 12px;
  }

  .filter-pill {
    min-height: 40px;
    padding-inline: 14px;
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, rgba(255, 247, 252, 0.96) 0%, rgba(245, 243, 255, 0.98) 100%);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--jp-border);
  }

  .mobile-bottom-nav button {
    min-height: 42px;
    border: 1px solid #f4c8de;
    border-radius: 12px;
    background: #fff;
    color: #7a4868;
    font: inherit;
    font-weight: 700;
  }

  .mobile-bottom-nav button.is-active {
    border-color: #ff7eb8;
    color: #b83280;
    background: linear-gradient(180deg, #fff0f7 0%, #ffe4f2 100%);
  }

  body.mobile-filters-open .filters {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(68px + env(safe-area-inset-bottom, 0px));
    z-index: 95;
    max-height: 48vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 14px;
    border-top: 1px solid var(--jp-border);
    box-shadow: 0 -12px 30px rgba(15, 23, 42, 0.16);
    background: #fff;
  }

  body.mobile-filters-open .filter-pill-sep {
    display: none;
  }

  main {
    padding-top: 16px;
    padding-bottom: 36px;
  }

  .account-panel {
    margin-bottom: 16px;
  }

  .account-panel-inner {
    padding: 16px 14px 18px;
    border-radius: 20px;
  }

  .account-panel h2,
  #accountPanelTitle {
    font-size: 1.2rem;
  }

  .account-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .account-actions button,
  .profile-card .primary-btn {
    width: 100%;
    min-height: 44px;
  }

  .profile-card {
    border-radius: 18px;
    padding: 13px;
  }

  .profile-stat-pills {
    justify-content: center;
  }

  .job-toolbar {
    padding: 14px;
    margin-bottom: 18px;
    border-radius: 16px;
  }

  .job-toolbar-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
  }

  .job-toolbar-head,
  .toolbar-field,
  .toolbar-actions {
    grid-column: 1 / -1;
  }

  .toolbar-field {
    flex: unset;
  }

  .toolbar-actions {
    margin-left: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .toolbar-field select,
  .toolbar-actions .toolbar-chip {
    width: 100%;
    min-height: 42px;
  }

  .sections {
    gap: 32px;
  }

  .section-head h2 {
    font-size: 17px;
    white-space: normal;
  }

  .job-card {
    height: auto;
    min-height: 0;
    width: min(330px, calc(100vw - 2 * var(--page-inline-pad)));
    border-radius: 16px;
    box-shadow: 0 8px 18px rgba(217, 70, 143, 0.12);
  }

  .hover-actions {
    position: static;
    display: grid;
    gap: 8px;
    grid-template-rows: none;
    opacity: 1;
    pointer-events: auto;
    background: #fff;
    border-bottom: 1px solid var(--jp-border);
  }

  .hover-actions > div:nth-child(2) {
    display: none;
  }

  .hover-top,
  .hover-bottom,
  .icon-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .save,
  .mark,
  .apply,
  .round,
  .icon-actions button {
    min-height: 42px;
  }

  .save {
    flex: 1 1 110px;
  }

  .mark,
  .apply {
    flex: 1 1 130px;
  }

  .card-main {
    padding-top: 12px;
  }

  .drawer {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
    max-height: min(70vh, 560px);
    overflow: auto;
    border-radius: 18px;
  }
}
