:root {
  --bg: #f3f4f6;
  --panel: rgba(255, 255, 255, 0.96);
  --panel-strong: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --accent: #256387;
  --accent-dark: #0f3d56;
  --accent-teal: #14b8a6;
  --accent-gold: #f59e0b;
  --line: rgba(15, 23, 42, 0.11);
  --shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f8fafc 0%, var(--bg) 100%);
}

.app-frame {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 100vh;
}

.app-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px 16px;
  background: #ffffff;
  border-right: 1px solid var(--line);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 28px;
  z-index: 10;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 180px;
  max-width: 100%;
  height: auto;
}

.app-nav {
  display: grid;
  align-content: start;
  gap: 6px;
}

.app-nav-link {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #334155;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.app-nav-link:hover,
.app-nav-link.active {
  background: rgba(37, 99, 135, 0.1);
  color: var(--accent-dark);
}

.app-nav-link.app-nav-disabled,
.brand-lockup.app-nav-disabled {
  cursor: default;
  pointer-events: none;
}

.app-nav-link.app-nav-disabled:not(.active) {
  color: #64748b;
  opacity: 0.72;
}

.app-nav-link.app-nav-disabled:hover:not(.active) {
  background: transparent;
  color: #64748b;
}

.page-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.app-page-shell {
  width: min(1120px, calc(100% - 32px));
}

.placeholder-layout {
  display: grid;
  gap: 18px;
}

.placeholder-hero {
  display: grid;
  gap: 10px;
  padding: 28px 0 8px;
}

.placeholder-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1;
}

.placeholder-hero p:last-child {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.placeholder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.placeholder-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 190px;
  padding: 20px;
}

.placeholder-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.25rem;
}

.placeholder-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.placeholder-card span {
  align-self: end;
  color: var(--accent);
  font-weight: 800;
}

.placeholder-muted-card {
  background: linear-gradient(90deg, rgba(37, 99, 135, 0.08), rgba(20, 184, 166, 0.06)), #ffffff;
}

.placeholder-link {
  align-self: end;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 40px;
  padding: 9px 13px;
  border-radius: 12px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

.account-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.search-account-row {
  display: flex;
  justify-content: flex-end;
  min-height: 42px;
}

.account-panel.account-menu {
  position: relative;
  justify-self: end;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  z-index: 8;
}

.account-panel-loading,
.account-provider-note,
.account-setup-note {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.account-panel-heading {
  display: grid;
  gap: 4px;
}

.account-panel-heading strong,
.account-summary strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.account-panel-heading span,
.account-summary span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.social-login-list {
  display: grid;
  gap: 8px;
}

.social-login-button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: #182334;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

.social-login-button:hover {
  border-color: rgba(37, 99, 135, 0.35);
  background: #f8fafc;
}

.social-login-mark {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #edf2f7;
  color: #182334;
  font-size: 0.78rem;
  font-weight: 900;
}

.social-login-button.facebook .social-login-mark {
  background: #1877f2;
  color: #ffffff;
}

.account-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.account-summary div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.account-avatar {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  object-fit: cover;
}

.account-avatar-fallback {
  background: var(--accent);
  color: #ffffff;
  font-weight: 900;
}

.account-dropdown {
  position: relative;
}

.account-dropdown summary {
  list-style: none;
}

.account-dropdown summary::-webkit-details-marker {
  display: none;
}

.account-avatar-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.account-avatar-button .account-avatar {
  width: 34px;
  height: 34px;
}

.account-signin-summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  min-width: 84px;
  border-radius: 8px;
  cursor: pointer;
}

.account-dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  gap: 10px;
  width: min(320px, calc(100vw - 40px));
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.14);
}

.account-settings-link {
  justify-content: center;
  text-decoration: none;
}

.account-logout-button {
  width: 100%;
  min-height: 38px;
  border-radius: 8px;
}

.sidebar-upgrade {
  display: none;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}

.sidebar-upgrade strong {
  color: var(--ink);
}

.sidebar-upgrade p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.sidebar-upgrade a {
  display: inline-flex;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.page-heading-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  padding-top: 16px;
}

.page-heading-row h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.page-heading-row p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.page-heading-row.with-actions {
  align-items: center;
}

.page-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.page-search-input {
  width: min(360px, 100%);
}

.dashboard-page,
.saved-page,
.settings-page,
.tailor-page {
  display: grid;
  gap: 18px;
}

.dashboard-shell {
  width: min(1160px, calc(100% - 32px));
  padding-top: 34px;
}

.dashboard-page {
  gap: 20px;
}

.dashboard-topbar {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
}

.dashboard-topbar h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.55rem, 2.6vw, 2.1rem);
  line-height: 1.15;
}

.dashboard-topbar p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 700;
}

.dashboard-user-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 4px;
}

.icon-button,
.avatar-button,
.more-button {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
}

.icon-button:hover {
  background: rgba(37, 99, 135, 0.08);
}

.bell-icon {
  position: relative;
  display: block;
  width: 17px;
  height: 18px;
  border: 2px solid #56718f;
  border-bottom: 0;
  border-radius: 10px 10px 4px 4px;
}

.bell-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -5px;
  width: 6px;
  height: 5px;
  border-radius: 999px 999px 0 0;
  border: 2px solid #56718f;
  border-bottom: 0;
  transform: translateX(-50%);
}

.bell-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 22px;
  height: 7px;
  border-bottom: 2px solid #56718f;
  border-radius: 0 0 999px 999px;
  transform: translateX(-50%);
}

.avatar-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 3px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f8d2bd, #c7774f 52%, #0f3d56);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.12);
}

.avatar-button span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #fff7ed;
  color: var(--accent-dark);
  font-weight: 900;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(290px, 0.95fr);
  grid-template-areas:
    "matches pipeline"
    "matches resume"
    "interviews actions";
  gap: 18px;
}

.dashboard-grid > article:nth-child(1) {
  grid-area: matches;
}

.dashboard-grid > article:nth-child(2) {
  grid-area: pipeline;
}

.dashboard-grid > article:nth-child(3) {
  grid-area: resume;
}

.dashboard-grid > article:nth-child(4) {
  grid-area: interviews;
}

.dashboard-grid > article:nth-child(5) {
  grid-area: actions;
}

.dashboard-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: 14px;
}

.dashboard-card-large {
  min-height: 252px;
}

.dashboard-pipeline-card,
.dashboard-resume-card,
.dashboard-actions-card {
  align-content: start;
}

.card-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.card-heading h2,
.tailor-step-card h2,
.settings-card h2,
.resume-preview-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
}

.card-heading a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.mini-job-list,
.activity-list,
.quick-actions,
.saved-job-list {
  display: grid;
  gap: 0;
}

.mini-job-row,
.saved-job-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 68px;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.mini-job-row:last-child {
  border-bottom: 0;
}

.mini-job-row strong,
.saved-job-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.02rem;
}

.mini-job-row small,
.saved-job-card p,
.saved-job-card small,
.activity-list span,
.activity-list small {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.mini-job-row b,
.saved-job-card b {
  color: var(--accent-teal);
  font-size: 1.18rem;
  text-align: right;
}

.mini-job-row b small,
.saved-job-card b small {
  color: var(--accent-teal);
  font-size: 0.78rem;
  font-weight: 900;
}

.saved-job-actions {
  display: grid;
  grid-template-columns: minmax(88px, auto) auto;
  gap: 8px 12px;
  align-items: center;
  justify-items: center;
}

.saved-job-actions small {
  justify-self: start;
  white-space: nowrap;
}

.saved-job-actions .secondary-button {
  min-height: 40px;
  margin: 0;
  border-radius: 12px;
}

.saved-track-button {
  grid-column: 1 / -1;
  display: inline-flex;
  justify-content: center;
  min-height: 36px;
  width: 100%;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(37, 99, 135, 0.09);
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 900;
  text-decoration: none;
}

.company-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f97316 0 50%, #2563eb 50% 100%);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.company-mark.microsoft {
  background:
    linear-gradient(90deg, #f25022 0 48%, transparent 48% 52%, #7fba00 52% 100%) top / 100% 48% no-repeat,
    linear-gradient(90deg, #00a4ef 0 48%, transparent 48% 52%, #ffb900 52% 100%) bottom / 100% 48% no-repeat;
}

.company-mark.google { background: conic-gradient(#4285f4, #34a853, #fbbc05, #ea4335, #4285f4); border-radius: 999px; }
.company-mark.expedia { background: #f59e0b; }
.company-mark.meta { background: #ffffff; border: 2px solid #3b82f6; border-radius: 999px; }
.company-mark.amazon { background: #ffffff; border: 2px solid #0f172a; border-radius: 999px; }
.company-mark.airbnb { background: #ffffff; border: 2px solid #ff385c; border-radius: 999px; }
.company-mark.stripe { background: #635bff; }
.company-mark.patientpoint { background: #ffffff; border: 2px solid #94a3b8; border-radius: 999px; }

.company-logo-mark {
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

.company-logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.company-logo-mark.logo-failed img {
  display: none;
}

.company-initial-mark,
.company-logo-mark.logo-failed {
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, #256387, #14b8a6);
  color: #ffffff;
  font-weight: 900;
  font-size: 1rem;
}

.company-initial-mark::before,
.company-logo-mark.logo-failed::before {
  content: attr(data-company-initial);
}

.company-logo-mark.logo-failed.microsoft {
  background:
    linear-gradient(90deg, #f25022 0 48%, transparent 48% 52%, #7fba00 52% 100%) top / 100% 48% no-repeat,
    linear-gradient(90deg, #00a4ef 0 48%, transparent 48% 52%, #ffb900 52% 100%) bottom / 100% 48% no-repeat;
}

.company-logo-mark.logo-failed.google { background: conic-gradient(#4285f4, #34a853, #fbbc05, #ea4335, #4285f4); border-radius: 999px; }
.company-logo-mark.logo-failed.expedia { background: #f59e0b; }
.company-logo-mark.logo-failed.meta { background: #ffffff; border: 2px solid #3b82f6; border-radius: 999px; }
.company-logo-mark.logo-failed.amazon { background: #ffffff; border: 2px solid #0f172a; border-radius: 999px; }
.company-logo-mark.logo-failed.airbnb { background: #ffffff; border: 2px solid #ff385c; border-radius: 999px; }
.company-logo-mark.logo-failed.stripe { background: #635bff; }
.company-logo-mark.logo-failed.patientpoint { background: #ffffff; border: 2px solid #94a3b8; border-radius: 999px; }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.chip-row span {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 7px;
  background: rgba(37, 99, 135, 0.09);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
}

.pipeline-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.pipeline-summary ul,
.check-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pipeline-summary li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.pipeline-summary li span,
.check-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent-teal);
}

.pipeline-summary .applied-dot {
  background: var(--accent-teal);
}

.pipeline-summary .interview-dot {
  background: var(--accent);
}

.pipeline-summary .offer-dot {
  background: var(--accent-gold);
}

.pipeline-summary .rejected-dot {
  background: #ef4444;
}

.donut-stat {
  --score: 70;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border-radius: 999px;
  background: radial-gradient(circle, #fff 0 57%, transparent 58%), conic-gradient(var(--accent) calc(var(--score) * 1%), #e2e8f0 0);
  text-align: center;
}

.donut-stat.teal {
  background: radial-gradient(circle, #fff 0 57%, transparent 58%), conic-gradient(var(--accent-teal) calc(var(--score) * 1%), #e2e8f0 0);
}

.donut-stat.large {
  width: 132px;
  height: 132px;
}

.donut-stat strong {
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1;
}

.donut-stat span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.resume-health-card,
.quick-actions {
  align-content: start;
}

.resume-health-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.resume-health-copy {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.resume-health-copy strong {
  color: var(--ink);
  font-size: 0.96rem;
}

.soft-button,
.quick-actions a {
  display: inline-flex;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(37, 99, 135, 0.09);
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.resume-health-card .soft-button {
  grid-column: 2;
}

.interview-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.interview-row:last-child {
  border-bottom: 0;
}

.interview-row strong {
  display: block;
  color: var(--ink);
  font-size: 0.98rem;
}

.more-button {
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1;
}

.quick-actions {
  gap: 10px;
}

.quick-actions a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto auto;
  justify-content: start;
  gap: 2px 12px;
  padding: 10px 0;
  background: transparent;
  color: var(--ink);
}

.quick-actions a strong,
.quick-actions a small {
  grid-column: 2;
}

.quick-actions a small {
  color: var(--muted);
  font-size: 0.8rem;
}

.quick-action-icon {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(37, 99, 135, 0.09);
  border: 1px solid rgba(37, 99, 135, 0.12);
}

.quick-action-icon::before {
  content: "";
  display: block;
}

.search-icon::before {
  width: 13px;
  height: 13px;
  border: 2px solid var(--accent);
  border-radius: 999px;
  box-shadow: 8px 8px 0 -6px var(--accent);
}

.document-icon::before,
.clipboard-icon::before {
  width: 14px;
  height: 18px;
  border: 2px solid var(--accent);
  border-radius: 3px;
}

.clipboard-icon::before {
  border-top-width: 5px;
}

.application-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 12px;
  padding: 14px;
}

.application-column {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 460px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}

.application-column header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.application-column h3 {
  margin: 0;
  font-size: 1rem;
}

.application-column header span {
  display: inline-flex;
  min-width: 28px;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--muted);
  font-weight: 800;
}

.application-column-list {
  display: grid;
  gap: 10px;
}

.application-card,
.application-empty-card {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.application-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.application-card strong {
  color: var(--ink);
}

.application-card span,
.application-card small,
.application-empty-card {
  color: var(--muted);
}

.pipeline-add-button {
  margin-top: auto;
}

.tailor-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(280px, 1fr) minmax(260px, 0.9fr);
  gap: 14px;
}

.tailor-step-card,
.tailor-insights,
.resume-preview-card {
  display: grid;
  gap: 12px;
  align-content: start;
}

.tailor-step-card {
  padding: 18px;
}

.tailor-step-card textarea {
  min-height: 130px;
  resize: vertical;
}

.upload-card {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}

.upload-card b,
.credit-note {
  color: var(--accent-teal);
}

.check-list li {
  display: flex;
  align-items: center;
  color: var(--muted);
}

.resume-preview-card {
  padding: 18px;
}

.resume-preview-sheet {
  display: grid;
  gap: 10px;
  min-height: 360px;
  padding: 26px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.resume-preview-sheet span {
  height: 12px;
  border-radius: 999px;
  background: #cbd5e1;
}

.resume-preview-sheet span:nth-child(2),
.resume-preview-sheet span:nth-child(4) {
  width: 72%;
  background: rgba(20, 184, 166, 0.42);
}

.saved-job-card {
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.settings-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
}

.settings-menu {
  display: grid;
  align-content: start;
  gap: 6px;
}

.settings-menu a {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 800;
}

.settings-menu a.active {
  background: rgba(37, 99, 135, 0.1);
  color: var(--accent);
}

.settings-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.settings-card {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.settings-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.settings-card dt,
.toggle-row small {
  color: var(--muted);
  font-size: 0.78rem;
}

.settings-card dd {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.toggle-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.toggle-row span {
  display: grid;
  gap: 2px;
  color: var(--ink);
  font-weight: 800;
}

.plan-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.plan-row span {
  color: var(--accent-teal);
  font-weight: 900;
}

.hero {
  padding: 4px 28px 0;
}

.eyebrow,
.toolbar-label {
  margin: 0 0 2px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--accent-dark);
}

.hero .eyebrow {
  width: min(210px, 48vw);
  margin: 0 0 0 -22px;
  text-align: center;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.4rem, 3vw, 4.2rem);
  line-height: 0.95;
}

.hero-logo {
  display: block;
  width: min(190px, 48vw);
  height: auto;
  margin: 18px 0 2px -18px;
}

.hero-subtitle {
  margin: 8px 0 0;
  font-size: 1rem;
  color: var(--muted);
  font-style: italic;
}

.hero-copy {
  max-width: 760px;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted);
}

.layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.sidebar-column {
  display: grid;
  gap: 12px;
  align-content: start;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: none;
}

.filters-panel {
  position: sticky;
  top: 24px;
  max-height: none;
  overflow: visible;
  padding: 18px;
  min-width: 0;
}

.filters-form {
  display: grid;
  gap: 10px;
  padding-bottom: 8px;
  min-width: 0;
}

label,
fieldset {
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
  min-width: 0;
}

label > span,
legend {
  font-weight: 700;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.section-header,
.location-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

input,
select,
button {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border-radius: 12px;
  border: 1px solid rgba(31, 27, 23, 0.16);
  background: var(--panel-strong);
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--accent-teal);
}

select:disabled,
button:disabled,
input:disabled {
  opacity: 0.65;
}

.checkbox-grid {
  display: grid;
  gap: 8px;
  padding: 10px;
  min-width: 0;
  border-radius: 12px;
  border: 1px solid rgba(31, 27, 23, 0.12);
  background: rgba(255, 255, 255, 0.72);
  overflow: auto;
}

.compact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tall-grid {
  max-height: 190px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.25;
}

.checkbox-item span {
  font-weight: 400;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.checkbox-item input {
  width: auto;
  margin: 0;
}

.keyword-mode-fieldset {
  margin-top: -4px;
}

.keyword-mode-options {
  display: grid;
  gap: 6px;
  padding-left: 2px;
}

.keyword-mode-item {
  font-size: 0.75rem;
  color: var(--muted);
}

.customize-search-options .keyword-mode-item {
  font-size: 0.82rem;
}

.customize-search-options .keyword-mode-item span {
  font-size: 0.82rem;
}

#atsSourcesFieldset .filter-dropdown summary,
#includedCompaniesFieldset .filter-dropdown summary,
#atsSourcesFieldset .dropdown-label,
#includedCompaniesFieldset .dropdown-label {
  font-size: 0.88rem;
}

#atsSourcesFieldset .dropdown-count,
#includedCompaniesFieldset .dropdown-count {
  font-size: 0.78rem;
}

.location-mode-grid {
  gap: 10px;
}

.location-mode-grid .checkbox-item {
  align-items: center;
}

.country-filter-item {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(31, 27, 23, 0.10);
}

.filter-dropdown {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(31, 27, 23, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.62);
}

.filter-dropdown summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  list-style: none;
  padding: 10px 12px;
  min-width: 0;
  font-size: 0.84rem;
  font-weight: 600;
}

.filter-dropdown summary::-webkit-details-marker {
  display: none;
}

.filter-dropdown summary::after {
  content: "+";
  font-size: 1rem;
  line-height: 1;
  color: var(--accent-dark);
}

.filter-dropdown[open] summary::after {
  content: "-";
}

.dropdown-count {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 400;
}

.dropdown-panel {
  padding: 0 10px 10px;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.dropdown-search {
  margin: 8px 0 10px;
  font-size: 0.84rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
}

.group-actions .text-button {
  font-size: 0.84rem;
  font-weight: 600;
}

.location-groups {
  display: grid;
  gap: 10px;
}

.location-group {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(31, 27, 23, 0.12);
  background: rgba(255, 255, 255, 0.68);
}

.group-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
  margin-bottom: 6px;
}

.area-actions {
  margin-top: 0;
  margin-bottom: 0;
}

.location-actions {
  margin-top: 0;
  margin-bottom: 4px;
}

.hidden-section[hidden] {
  display: none;
}

.section-divider {
  height: 1px;
  background: rgba(31, 27, 23, 0.10);
  margin: 4px 0 2px;
}

.text-button,
.icon-button {
  width: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  font-weight: 700;
  cursor: pointer;
}

.text-button:disabled {
  cursor: default;
}

.icon-button {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(31, 27, 23, 0.12);
  background: rgba(255, 255, 255, 0.72);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 1.2rem;
}

.add-location-link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  margin-top: -2px;
}

.add-location-link span {
  font-weight: 600;
}

.muted-copy {
  color: var(--muted);
  font-size: 0.82rem;
}

.filter-note {
  margin-top: -2px;
  margin-bottom: 4px;
  font-size: 0.74rem;
  font-style: italic;
}

.search-button {
  cursor: pointer;
  border: none;
  background: linear-gradient(135deg, var(--accent) 0%, #0f7b9b 100%);
  color: white;
  font-weight: 700;
  transition: transform 120ms ease, box-shadow 120ms ease;
  box-shadow: 0 10px 22px rgba(37, 99, 135, 0.22);
}

.secondary-button {
  cursor: pointer;
  border: 1px solid rgba(31, 27, 23, 0.14);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-weight: 600;
  box-shadow: none;
}

.search-button:hover {
  transform: translateY(-1px);
}

.results-panel {
  padding: 20px;
  margin-top: 14px;
}

.results-column {
  display: grid;
  align-content: start;
  min-width: 0;
  position: relative;
}

.results-prelude {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: static;
  height: auto;
  width: 100%;
  pointer-events: auto;
  z-index: 2;
}

.career-hub {
  display: grid;
  gap: 16px;
}

.search-page-heading {
  display: grid;
  gap: 14px;
  padding-top: 14px;
}

.search-page-heading h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.search-page-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

.search-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-filter-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 135, 0.09);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
}

.career-hub-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
}

.career-hub h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.career-hub-header p:last-child {
  width: min(420px, 100%);
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.metric-card {
  display: grid;
  gap: 5px;
  min-height: 112px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.metric-card strong {
  color: var(--accent);
  font-size: 2rem;
  line-height: 1;
}

.metric-card span {
  color: var(--ink);
  font-weight: 800;
}

.metric-card small {
  color: var(--accent-teal);
  font-size: 0.82rem;
  font-weight: 700;
}

.results-visibility-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-top: 12px;
  margin-bottom: -6px;
}

.results-visibility-controls span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.results-visibility-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(143, 52, 20, 0.24);
  background: linear-gradient(135deg, rgba(143, 52, 20, 0.98), rgba(204, 90, 45, 0.98));
  color: #fff7f1;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 18px rgba(143, 52, 20, 0.18);
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.results-visibility-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(143, 52, 20, 0.24);
}

.results-visibility-button:focus-visible {
  outline: 2px solid rgba(143, 52, 20, 0.28);
  outline-offset: 3px;
}

.results-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}

.results-toolbar h2 {
  margin: 0;
  font-size: 1.8rem;
}

.results-toolbar-actions {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

body.searching-active .status-pill {
  display: inline-flex !important;
}

.status-pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.12);
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 700;
}

.status-pill[hidden] {
  display: none;
}

.loading-state {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid rgba(31, 27, 23, 0.10);
  background: rgba(255, 255, 255, 0.72);
}

.loading-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.loading-eyebrow {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  flex: 0 0 auto;
  padding-top: 2px;
}

.loading-progress-wrap {
  display: grid;
  gap: 8px;
  align-content: start;
  flex: 1 1 560px;
  min-width: 300px;
  max-width: 760px;
}

.loading-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
}

.loading-detail,
.loading-meta {
  color: var(--muted);
  line-height: 1.5;
}

.loading-detail {
  font-size: 0.95rem;
  max-width: 980px;
}

.loading-meta {
  font-size: 0.84rem;
}

.loading-progress {
  position: relative;
  width: 100%;
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(31, 27, 23, 0.12), rgba(31, 27, 23, 0.08));
  box-shadow: inset 0 1px 2px rgba(31, 27, 23, 0.12), 0 10px 24px rgba(184, 93, 46, 0.10);
}

.loading-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  min-width: 0;
  background: linear-gradient(90deg, var(--accent-dark) 0%, var(--accent) 48%, #f09b4a 100%);
  transition: width 500ms ease;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset, 0 0 18px rgba(240, 155, 74, 0.28);
  position: relative;
  background-size: 200% 100%;
  animation: loading-progress-flow 2.8s linear infinite;
}

.loading-progress span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.24) 45%, transparent 100%);
  transform: translateX(-100%);
  animation: loading-progress-sheen 1.6s linear infinite;
}

.loading-progress[aria-valuenow]:not([aria-valuenow="0"]) span {
  min-width: 18px;
}

@keyframes loading-progress-sheen {
  100% {
    transform: translateX(100%);
  }
}

@keyframes loading-progress-flow {
  100% {
    background-position: 200% 0;
  }
}

.loading-steps {
  display: grid;
  gap: 10px;
  padding-top: 6px;
}

.loading-step {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(31, 27, 23, 0.07);
  background: rgba(255, 255, 255, 0.58);
}

.loading-step.active {
  border-color: rgba(184, 93, 46, 0.26);
  background: rgba(255, 243, 233, 0.9);
  box-shadow: 0 8px 20px rgba(184, 93, 46, 0.08);
}

.loading-step.done {
  opacity: 0.88;
}

.loading-step.pending {
  opacity: 0.72;
}

.loading-step-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-dark);
  background: rgba(184, 93, 46, 0.12);
}

.loading-step.active .loading-step-marker {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
}

.loading-step.done .loading-step-marker {
  color: #fff;
  background: var(--accent-dark);
}

.loading-step-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

.loading-step-detail {
  margin-top: 2px;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--muted);
}

@media (max-width: 900px) {
  .loading-header {
    flex-direction: column;
    gap: 12px;
  }

  .loading-progress-wrap {
    min-width: 0;
    width: 100%;
    flex: none;
  }
}

.status-pill.loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.loading-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.loading-dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent-dark);
  opacity: 0.25;
  animation: dotPulse 1.2s infinite ease-in-out;
}

.loading-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

.summary,
.source-health {
  margin-top: 18px;
  color: var(--muted);
}

.summary,
.source-health {
  display: none;
}

.source-chip {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}

.source-health {
  display: grid;
  gap: 10px;
}

.source-health-summary {
  font-size: 0.92rem;
}

.source-health-summary,
.source-health-top,
.source-health-details {
  display: none !important;
}

.source-health-top {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.source-health-details {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(31, 27, 23, 0.10);
  background: rgba(255, 255, 255, 0.58);
}

.source-health-details summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--accent-dark);
}

.source-detail-block {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.source-detail-row {
  font-size: 0.9rem;
  color: var(--muted);
}

.results-list {
  margin-top: 8px;
  display: grid;
  gap: 10px;
}

.empty-state {
  padding: 28px;
  border: 1px dashed rgba(31, 27, 23, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.52);
}

.subtle-empty-state {
  background: rgba(255, 255, 255, 0.4);
}

.job-card {
  padding: 18px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  display: grid;
  gap: 10px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.job-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.job-head h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.2;
}

.company-line {
  margin: 4px 0 0;
  color: var(--muted);
}

.job-label-stack {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-items: end;
  text-align: right;
}

.job-label-heading {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.job-inline-note {
  font-size: 0.82rem;
  color: var(--muted);
}

.arrangement-pill-row {
  justify-content: center;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 135, 0.08);
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 700;
}

.match-score-ring {
  --score: 82;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, #ffffff 0 56%, transparent 58%),
    conic-gradient(var(--accent-teal) calc(var(--score) * 1%), #e2e8f0 0);
  color: var(--accent-dark);
  font-weight: 900;
  line-height: 1;
}

.match-score-ring span {
  font-size: 0.95rem;
}

.match-score-ring small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
}

.job-card-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.job-card-meta-item {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.job-card-meta-item span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.job-card-meta-item strong {
  min-width: 0;
  color: var(--ink);
  font-size: 0.88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-detail-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: center;
}

.job-detail-row.has-repost-banner {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
}

.job-meta {
  display: grid;
  gap: 6px;
  color: var(--muted);
  min-width: 0;
}

.compensation-line {
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
}

.compensation-label {
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}

.job-meta-label,
.posted-label {
  font-weight: 700;
}

.compensation-line-multiple {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: 18px;
  align-items: start;
}

.compensation-values {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.job-repost-banner-wrap {
  display: grid;
  gap: 10px;
  justify-items: stretch;
  align-self: center;
  justify-self: end;
  width: 100%;
  max-width: 360px;
  padding-left: 14px;
}

.job-warning-stack {
  display: grid;
  gap: 10px;
  width: 100%;
}

.job-warning-card {
  display: grid;
  gap: 6px;
}

.job-repost-banner {
  color: #b5121b;
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.2;
  text-align: left;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.job-repost-details {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 1rem;
  text-align: left;
  color: #b5121b;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.job-duplicate-banner {
  color: #b5121b;
}

.job-duplicate-details {
  color: #b5121b;
}

.job-visibility-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.job-description-details {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.job-description-details summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  color: var(--accent);
  font-weight: 800;
  list-style: none;
}

.job-description-details summary::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid currentColor;
  transform: rotate(-90deg);
  transition: transform 160ms ease;
}

.job-description-details[open] summary::before {
  transform: rotate(0deg);
}

.job-description-details summary::-webkit-details-marker {
  display: none;
}

.job-snippet-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.job-snippet {
  margin-top: 8px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text);
}

.job-actions a {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 720px) {
  .job-detail-row.has-repost-banner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .job-label-stack {
    justify-items: start;
    text-align: left;
  }
}

.unknown-results-panel {
  margin-top: 6px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(31, 27, 23, 0.10);
  background: rgba(232, 223, 210, 0.55);
}

.unknown-results-panel summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--accent-dark);
}

.unknown-results-copy {
  color: var(--muted);
  font-size: 0.94rem;
  margin: 8px 0 14px;
}

.unknown-results-list {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

@keyframes dotPulse {
  0%, 80%, 100% {
    opacity: 0.25;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

@media (max-width: 980px) {
  .app-frame {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    position: static;
    height: auto;
    padding: 14px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 12px;
  }

  .brand-lockup {
    justify-content: center;
  }

  .brand-logo {
    width: 190px;
  }

  .app-nav {
    grid-auto-flow: column;
    grid-auto-columns: minmax(88px, 1fr);
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .app-nav::-webkit-scrollbar {
    display: none;
  }

  .app-nav-link {
    justify-content: center;
    min-height: 38px;
    white-space: nowrap;
  }

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

  .filters-panel {
    position: static;
  }

  .career-hub-header {
    align-items: start;
    flex-direction: column;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .dashboard-grid,
  .tailor-grid,
  .settings-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-grid {
    grid-template-areas:
      "matches"
      "pipeline"
      "resume"
      "interviews"
      "actions";
  }

  .application-board {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    overflow-x: auto;
  }

  .settings-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .app-frame {
    display: block;
  }

  .app-sidebar {
    display: grid;
    grid-template-rows: auto auto;
    gap: 10px;
    padding: 14px 16px 12px;
  }

  .page-shell {
    width: 100%;
    padding: 0 0 28px;
  }

  .brand-logo {
    width: 156px;
  }

  .app-nav {
    display: flex;
    justify-content: center;
    overflow: visible;
    padding-bottom: 0;
  }

  .app-nav-link {
    display: none;
    padding: 9px 8px;
    font-size: 0.86rem;
  }

  .app-nav-link.active {
    display: inline-flex;
    min-width: 118px;
    justify-content: center;
  }

  .hero {
    display: none;
  }

  .metric-grid,
  .job-card-meta-grid {
    grid-template-columns: 1fr;
  }

  .page-heading-row,
  .page-heading-row.with-actions,
  .pipeline-summary,
  .saved-job-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .page-heading-row,
  .page-heading-row.with-actions {
    flex-direction: column;
  }

  .page-action-row {
    justify-content: flex-start;
  }

  .application-board {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .saved-job-card {
    display: grid;
    justify-items: start;
  }

  .job-head {
    align-items: start;
  }

  .match-score-ring {
    width: 58px;
    height: 58px;
  }

  .compact-grid {
    grid-template-columns: 1fr;
  }

  .results-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .results-toolbar-actions {
    justify-content: flex-start;
    min-width: 0;
  }

  .section-header,
  .location-group-header,
  .group-actions,
  .filter-dropdown summary {
    align-items: flex-start;
    flex-direction: column;
  }
}
.filter-dropdown {
  border: 0;
  background: transparent;
}

.filter-dropdown summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(31, 27, 23, 0.18);
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.2;
}

.filter-dropdown summary span {
  font-weight: 400;
}

.filter-dropdown summary::-webkit-details-marker {
  display: none;
}

.filter-dropdown summary::after {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-right: 1.5px solid rgba(31, 27, 23, 0.7);
  border-bottom: 1.5px solid rgba(31, 27, 23, 0.7);
  transform: rotate(45deg) translateY(-1px);
  transform-origin: center;
  margin-left: auto;
}

.filter-dropdown[open] summary::after {
  transform: rotate(225deg) translateY(-1px);
}

.dropdown-count {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 400;
  white-space: nowrap;
}

.dropdown-panel {
  margin-top: 8px;
  padding: 8px 0 0;
}

.group-actions .text-button {
  font-size: 0.8rem;
  font-weight: 500;
}
@media (max-width: 640px) {
  .filter-dropdown summary {
    align-items: center;
    flex-direction: row;
  }
}
#arrangements {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 12px;
  min-height: 58px;
  align-items: center;
  overflow: visible;
}

#arrangements .checkbox-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--ink);
  font-size: 0.84rem;
  white-space: nowrap;
  min-height: 36px;
  padding: 6px 8px;
  border-radius: 999px;
  background: #ffffff;
  overflow: visible;
}

#arrangements .checkbox-item input {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
}

@media (max-width: 640px) {
  #arrangements {
    grid-template-columns: 1fr;
  }

  #arrangements .checkbox-item {
    justify-content: flex-start;
  }
}

#arrangements .checkbox-item span {
  white-space: nowrap;
}

.filter-dropdown summary {
  flex-wrap: nowrap;
}

.dropdown-label {
  white-space: nowrap;
}
.filters-form > label > span,
.filters-form > fieldset > legend {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.filters-form label > span {
  margin-bottom: 2px;
}

.filters-form select,
.filters-form input {
  font-size: 0.84rem;
}

#websiteSourcesDropdown[hidden] {
  display: none;
}
.filters-form {
  gap: 12px;
}

.filters-form > label,
.filters-form > fieldset,
#my-location-section > label {
  gap: 6px;
}

.filters-form > label > span,
.filters-form > fieldset > legend,
#my-location-section > label > span {
  display: block;
  margin: 0 0 2px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
}

.filters-form > fieldset > legend {
  margin-bottom: 2px;
}

.filters-form select,
.filters-form input,
.filter-dropdown summary,
.checkbox-grid {
  margin-top: 0;
}

#websiteCollectionKey {
  margin-top: 0;
}
.filters-form > label,
.filters-form > fieldset,
#my-location-section > label {
  gap: 0;
}

.filters-form > label > span,
.filters-form > fieldset > legend,
#my-location-section > label > span {
  display: block;
  margin: 0 0 8px;
  padding: 0;
  line-height: 1.15;
}

.filters-form > fieldset > legend {
  margin-bottom: 8px;
}
.filters-form select,
.filter-dropdown summary {
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(31, 27, 23, 0.18);
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.84rem;
  line-height: 1.2;
  color: var(--ink);
  box-shadow: none;
}

.filters-form select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(31, 27, 23, 0.7) 50%),
    linear-gradient(135deg, rgba(31, 27, 23, 0.7) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 13px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 28px;
}

.filter-dropdown {
  border: 0;
  background: transparent;
}

.filter-dropdown summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  font-weight: 400;
  flex-wrap: nowrap;
}

.filter-dropdown summary span {
  font-weight: 400;
}

.filter-dropdown summary::-webkit-details-marker {
  display: none;
}

.filter-dropdown summary::after {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-right: 1.5px solid rgba(31, 27, 23, 0.7);
  border-bottom: 1.5px solid rgba(31, 27, 23, 0.7);
  transform: rotate(45deg) translateY(-1px);
  transform-origin: center;
  margin-left: auto;
}

.filter-dropdown[open] summary::after {
  transform: rotate(225deg) translateY(-1px);
}

.dropdown-label,
.dropdown-count {
  white-space: nowrap;
}
.filters-form select,
.filter-dropdown summary {
  min-height: 42px;
  height: 42px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid rgba(31, 27, 23, 0.16);
  background-color: rgba(255, 255, 255, 0.92);
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  box-shadow: none;
}

.filters-form select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(31, 27, 23, 0.72) 50%),
    linear-gradient(135deg, rgba(31, 27, 23, 0.72) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 13px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 30px;
}

.filter-dropdown summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  list-style: none;
  cursor: pointer;
  background-image: none;
}

.filter-dropdown summary::after {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-right: 1.5px solid rgba(31, 27, 23, 0.72);
  border-bottom: 1.5px solid rgba(31, 27, 23, 0.72);
  transform: rotate(45deg) translateY(-1px);
  transform-origin: center;
  margin-left: 2px;
}

.filter-dropdown[open] summary::after {
  transform: rotate(225deg) translateY(-1px);
}

.filter-dropdown summary .dropdown-label,
.filter-dropdown summary .dropdown-count {
  font-size: 0.84rem;
  line-height: 1.2;
}

.filter-dropdown summary .dropdown-count {
  font-size: 0.74rem;
}
html {
  font-size: 90%;
}

.page-shell {
  padding-top: 10px;
  padding-bottom: 28px;
}

.hero {
  padding: 10px 28px 4px;
}

.hero-copy {
  margin-top: 0;
}

.layout {
  gap: 16px;
}
#location-mode-note {
  margin-bottom: 8px;
}
.filter-dropdown {
  position: relative;
}

.dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
  margin-top: 0;
  padding: 8px 10px 10px;
  border: 1px solid rgba(31, 27, 23, 0.14);
  border-radius: 12px;
  background: rgba(255, 251, 245, 0.98);
  box-shadow: 0 14px 30px rgba(58, 32, 13, 0.16);
}

.filter-dropdown[open] .dropdown-panel {
  display: block;
}

#websiteSourcesDropdown {
  margin-top: 8px;
}

.filter-dropdown .group-actions {
  margin-top: 0;
  margin-bottom: 8px;
}
.filter-dropdown {
  position: static;
}

.dropdown-panel {
  display: none;
  position: static;
  top: auto;
  left: auto;
  right: auto;
  z-index: auto;
  margin-top: 6px;
  padding: 8px 10px 10px;
  border: 1px solid rgba(31, 27, 23, 0.14);
  border-radius: 12px;
  background: rgba(255, 251, 245, 0.98);
  box-shadow: none;
}

.filter-dropdown[open] .dropdown-panel {
  display: block;
}

.filter-dropdown[open] {
  margin-bottom: 8px;
}

.filter-dropdown .checkbox-grid {
  max-height: 180px;
  overflow: auto;
}
.filter-dropdown {
  border: 0;
  background: transparent;
  margin: 0;
}

.filter-dropdown summary {
  min-height: 38px;
  height: 38px;
  padding: 7px 12px;
  border-radius: 12px;
  border: 1px solid rgba(31, 27, 23, 0.18);
  background: #ffffff;
}

.filter-dropdown[open] summary {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.dropdown-panel {
  display: none;
  position: static;
  margin-top: -1px;
  padding: 6px 0 0;
  border: 1px solid rgba(31, 27, 23, 0.18);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  background: #ffffff;
  box-shadow: none;
}

.filter-dropdown[open] .dropdown-panel {
  display: block;
}

.filter-dropdown .group-actions {
  padding: 0 10px 6px;
  margin: 0;
  gap: 10px;
}

.filter-dropdown .checkbox-grid {
  margin: 0 10px 10px;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid rgba(31, 27, 23, 0.14);
  background: #ffffff;
  max-height: 150px;
}

.filter-dropdown .muted-copy {
  padding: 0 10px 8px;
}

.filter-dropdown[open] {
  margin-bottom: 10px;
}
.filter-fieldset {
  gap: 0;
}

.filter-group {
  display: grid;
  gap: 6px;
}

.filter-toolbar {
  display: flex;
  gap: 12px;
  margin: -2px 0 0;
}

.filter-toolbar[hidden] {
  display: none;
}

.filter-dropdown {
  border: 0;
  background: transparent;
  margin: 0;
}

.filter-dropdown summary {
  min-height: 38px;
  height: 38px;
  padding: 7px 12px;
  border-radius: 12px;
  border: 1px solid rgba(31, 27, 23, 0.18);
  background: #ffffff;
}

.filter-dropdown[open] summary {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.dropdown-panel {
  display: none;
  margin-top: -1px;
  padding: 0;
  border: 1px solid rgba(31, 27, 23, 0.18);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  background: #ffffff;
  box-shadow: none;
}

.filter-dropdown[open] .dropdown-panel {
  display: block;
}

.filter-dropdown .checkbox-grid {
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 0 0 10px 10px;
  background: #ffffff;
  max-height: 160px;
  overflow: auto;
}

.filter-dropdown .muted-copy {
  padding: 8px 10px 0;
}

#websiteSourcesGroup[hidden] {
  display: none;
}
.filter-toolbar .text-button {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
}
.filter-group {
  gap: 2px;
}

.filter-toolbar {
  margin: 0;
  padding-top: 0;
}
#websiteSourcesGroup {
  gap: 4px;
}

#websiteCollectionDescription {
  margin: 2px 0 0;
  padding: 0;
}

#websiteSourcesGroup .filter-toolbar {
  margin: 0;
}
#websiteSourcesGroup {
  gap: 2px;
}

#websiteCollectionDescription {
  margin-top: 8px;
  margin-bottom: 2px;
  line-height: 1.25;
}

#websiteSourcesGroup .filter-toolbar {
  margin-top: 0;
  margin-bottom: 0;
}

#additionalSourcesFieldset {
  margin-top: 10px;
}

#atsSourcesFieldset {
  margin-top: 14px;
}

#customizeSearchFieldset {
  gap: 10px;
}

.filters-form > fieldset > legend .legend-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filters-form > fieldset > legend .legend-toggle span {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filters-form > fieldset > legend .legend-toggle input {
  width: auto;
  margin: 0;
}

#atsSourcesFieldset > legend,
#additionalSourcesFieldset > legend {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 8px;
}

#atsSourcesFieldset > legend .legend-toggle,
#additionalSourcesFieldset > legend .legend-toggle,
#atsSourcesFieldset > legend .legend-toggle span,
#additionalSourcesFieldset > legend .legend-toggle span {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.1;
}

.fieldset-disabled {
  opacity: 0.72;
}

.search-button {
  margin-top: 12px;
}

.tracker-sidebar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  justify-self: center;
  margin-top: 22px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(43, 103, 98, 0.18);
  background: linear-gradient(135deg, rgba(218, 241, 236, 0.98), rgba(191, 228, 218, 0.96));
  color: #1f5d57;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 18px rgba(43, 103, 98, 0.12);
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.tracker-sidebar-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(43, 103, 98, 0.16);
  background: linear-gradient(135deg, rgba(227, 246, 241, 1), rgba(200, 234, 225, 0.98));
}

.tracker-sidebar-button:focus-visible {
  outline: 2px solid rgba(43, 103, 98, 0.28);
  outline-offset: 3px;
}

.tracker-results-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-right: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(43, 103, 98, 0.18);
  background: linear-gradient(135deg, rgba(222, 245, 238, 0.98), rgba(203, 234, 226, 0.98));
  color: #2b6762;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 18px rgba(43, 103, 98, 0.12);
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
  pointer-events: auto;
  transform: none;
}

.tracker-results-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(43, 103, 98, 0.16);
  background: linear-gradient(135deg, rgba(227, 246, 241, 1), rgba(200, 234, 225, 0.98));
}

.tracker-results-button:focus-visible {
  outline: 2px solid rgba(43, 103, 98, 0.28);
  outline-offset: 3px;
}
.source-health-top {
  gap: 8px;
}

.source-chip {
  max-width: 150px;
  padding: 7px 10px;
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.template-card {
  width: 100%;
  display: grid;
  gap: 8px;
  text-align: left;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(31, 27, 23, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 251, 245, 0.96)),
    linear-gradient(90deg, var(--template-accent), transparent);
  box-shadow: 0 10px 24px rgba(58, 32, 13, 0.08);
  cursor: pointer;
}

.template-card.selected {
  border-color: color-mix(in srgb, var(--template-accent) 54%, white);
  box-shadow: 0 14px 28px rgba(58, 32, 13, 0.14);
  transform: translateY(-1px);
}

.template-card-category {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.template-card-description,
.template-card-meta {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.analysis-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(31, 27, 23, 0.1);
  background: rgba(255, 255, 255, 0.78);
}

.analysis-card.wide {
  grid-column: 1 / -1;
}

.analysis-card h4 {
  margin: 0;
  font-size: 0.95rem;
}

.analysis-card-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.analysis-card-header .secondary-button {
  width: auto;
}

.analysis-muted,
.analysis-match-row span {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

.analysis-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.analysis-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.analysis-match-row {
  display: grid;
  gap: 4px;
}

.tracker-summary {
  margin-top: 14px;
}

.tracker-summary-card {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid rgba(31, 27, 23, 0.1);
  background: rgba(255, 255, 255, 0.68);
}

.tracker-summary-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.tracker-summary-copy,
.tracker-summary-path {
  color: var(--muted);
  font-size: 0.92rem;
}

.tracker-summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.job-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.job-actions > a,
.job-actions > .job-open-links {
  justify-self: start;
}

.job-actions .job-actions-hide-toggle {
  justify-self: center;
}

.job-actions .track-save-toggle {
  justify-self: end;
}

.job-actions .secondary-button,
.tracker-row-actions .text-button {
  width: auto;
  margin-top: 0;
}

.job-open-links {
  display: grid;
  gap: 6px;
  justify-items: start;
}

.track-save-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1f5d57;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.track-save-toggle input {
  margin: 0;
  accent-color: #2b6762;
}

.track-save-toggle.saved {
  color: #1f5d57;
}

.track-save-toggle.saving {
  opacity: 0.7;
  cursor: wait;
}

.track-save-copy {
  display: inline-block;
  color: #1f5d57;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .job-actions {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .job-actions > a,
  .job-actions .job-actions-hide-toggle,
  .job-actions .track-save-toggle {
    justify-self: start;
  }
}

.tracker-page-shell {
  width: min(1180px, calc(100% - 32px));
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 40px;
  min-width: 0;
}

.tracker-layout {
  width: 100%;
  margin: 34px auto;
  display: grid;
  gap: 20px;
  min-width: 0;
}

.tracker-back-row {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  margin-top: -20px;
  margin-bottom: -14px;
}

.tracker-back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  padding: 7px 11px;
  border-radius: 12px;
  border: 1px solid rgba(143, 52, 20, 0.18);
  background: #0f3d56;
  color: #fffaf5;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(143, 52, 20, 0.16);
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

.tracker-back-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(143, 52, 20, 0.22);
  filter: saturate(1.03);
}

.tracker-hero-panel,
.tracker-table-panel {
  padding: 18px;
  min-width: 0;
}

.tracker-hero-panel {
  padding-top: 14px;
  padding-bottom: 14px;
}

.tracker-table-panel {
  padding-top: 12px;
  overflow: hidden;
}

.tracker-hero-surface {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(37, 99, 135, 0.08), rgba(20, 184, 166, 0.06)),
    #ffffff;
}

.tracker-hero-surface::after {
  content: none;
}

.tracker-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 10px;
  align-items: stretch;
  min-width: 0;
}

.tracker-hero-copy-block {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.tracker-title-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  min-width: 0;
}

.tracker-hero-logo {
  flex: 0 0 auto;
  width: min(210px, 48vw);
  margin: 2px 0 0;
}

.tracker-title-block {
  display: grid;
  align-content: start;
  gap: 6px;
  padding-top: 4px;
  max-width: 760px;
  min-width: 0;
}

.tracker-hero-header,
.tracker-table-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.tracker-hero-header h1 {
  margin: 0;
  font-size: 2rem;
}

.tracker-hero-grid h1 {
  margin: 0;
  max-width: none;
  color: var(--ink);
  font-size: clamp(2.4rem, 4.2vw, 4rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0;
}

.tracker-kicker {
  margin: 0;
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tracker-hero-copy {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 720px;
  font-size: 1rem;
  line-height: 1.65;
}

.tracker-hero-actions,
.tracker-table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tracker-hero-actions {
  margin-top: 0;
  display: none;
}

.tracker-download-button {
  background: rgba(255, 255, 255, 0.86);
}

.tracker-hero-aside {
  position: relative;
  z-index: 1;
}

.tracker-aside-card {
  display: grid;
  gap: 12px;
  padding: 14px 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  align-content: start;
}

.tracker-aside-card h2 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.1;
}

.tracker-aside-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.tracker-aside-list {
  display: grid;
  gap: 9px;
  margin-top: 4px;
}

.tracker-aside-list span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #244440;
  font-weight: 600;
}

.tracker-aside-list span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-gold));
  box-shadow: 0 0 0 5px rgba(60, 126, 118, 0.08);
}

.tracker-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.tracker-stat-card {
  display: grid;
  gap: 4px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  min-height: 74px;
}

.tracker-stat-card strong {
  font-size: 1.7rem;
  line-height: 1;
}

.tracker-storage {
  margin-top: 8px;
}

.tracker-storage-row {
  display: grid;
  margin-top: 10px;
}

.tracker-storage-stack {
  display: grid;
  justify-items: start;
  gap: 8px;
}

.tracker-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(37, 99, 135, 0.18);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-teal) 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.94rem;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(37, 99, 135, 0.18);
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

.tracker-action-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(47, 122, 116, 0.24);
  filter: saturate(1.03);
}

.tracker-action-button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.tracker-row-actions {
  display: grid;
  justify-items: end;
  align-content: start;
  gap: 8px;
  text-align: right;
}

.tracker-text-action {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
}

.tracker-text-action-open {
  color: #1f5d57;
}

.tracker-text-action-open:hover {
  text-decoration: underline;
}

.tracker-text-action-delete {
  color: #0f3d56;
}

.tracker-text-action-delete:hover {
  text-decoration: underline;
}

.tracker-table-wrap {
  width: 100%;
  max-width: 100%;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(31, 27, 23, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 250, 243, 0.8));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.tracker-record-list {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.tracker-record {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid rgba(31, 27, 23, 0.08);
  background: rgba(255, 253, 249, 0.96);
}

.tracker-record-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.tracker-record-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.tracker-record-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.85rem;
}

.tracker-record-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.tracker-field {
  display: grid;
  gap: 2px;
  align-content: start;
  min-width: 0;
}

.tracker-field-label {
  display: block;
  align-self: start;
  justify-self: start;
  margin: 0;
  color: var(--accent-dark);
  font-size: 0.77rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tracker-field input,
.tracker-field select {
  width: 100%;
  min-width: 0;
  border-radius: 12px;
  border: 1px solid rgba(31, 27, 23, 0.12);
  background: #ffffff;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  min-height: 42px;
  height: 42px;
  line-height: 1.2;
}

.tracker-field input[type="file"] {
  height: auto;
  min-height: 42px;
  padding: 7px 10px;
}

.tracker-upload-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  width: fit-content;
  max-width: 100%;
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid rgba(31, 27, 23, 0.12);
  background: rgba(31, 27, 23, 0.04);
  color: #211b17;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
}

.tracker-upload-picker:hover {
  background: rgba(31, 27, 23, 0.08);
}

.tracker-upload-picker input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  padding: 0;
  cursor: pointer;
}

.tracker-status-field select {
  font-weight: 600;
  border-radius: 12px;
  padding: 8px 12px;
}

.tracker-file-link-inline {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  height: 42px;
  padding: 10px 12px;
  box-sizing: border-box;
  overflow: hidden;
}

.tracker-file-link-inline-empty {
  color: var(--muted);
  font-size: 0.92rem;
}

.tracker-file-link {
  display: inline-block;
  min-width: 0;
  max-width: 100%;
  color: #1f5d57;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tracker-file-link:hover {
  text-decoration: underline;
}

.tracker-upload-copy {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.tracker-missing-file-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tracker-upload-copy a {
  color: #1f5d57;
  font-weight: 600;
  text-decoration: none;
}

.tracker-upload-copy a:hover {
  text-decoration: underline;
}

.tracker-help-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.tracker-help-button {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid rgba(31, 93, 87, 0.28);
  background: rgba(31, 93, 87, 0.08);
  color: #1f5d57;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  cursor: help;
  padding: 0;
}

.tracker-help-bubble {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  width: min(280px, 70vw);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(31, 27, 23, 0.12);
  background: #ffffff;
  box-shadow: 0 16px 26px rgba(58, 32, 13, 0.12);
  color: var(--ink);
  font-size: 0.8rem;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
  z-index: 5;
}

.tracker-help-tooltip:hover .tracker-help-bubble,
.tracker-help-tooltip:focus-within .tracker-help-bubble {
  opacity: 1;
}

.tracker-table-subcopy {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.tracker-row-actions {
  display: grid;
  gap: 10px;
  justify-items: end;
  text-align: right;
}

.application-status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 135, 0.1);
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.application-status-chip.status-interview {
  background: rgba(245, 158, 11, 0.16);
  color: #8a5a00;
}

.application-status-chip.status-offer {
  background: rgba(20, 184, 166, 0.16);
  color: #0f766e;
}

.application-status-chip.status-rejected {
  background: rgba(100, 116, 139, 0.16);
  color: #475569;
}

.danger-button {
  color: var(--accent-dark);
}

/* Track page mockup alignment */
.tracker-page-shell {
  width: min(1220px, calc(100% - 32px));
  max-width: 1220px;
  padding-top: 42px;
}

.tracker-layout {
  margin: 0 auto;
  gap: 22px;
}

.tracker-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.tracker-page-header h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.7rem, 2.8vw, 2.35rem);
  line-height: 1.1;
}

.tracker-page-header p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 700;
}

.tracker-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  max-width: 520px;
}

.tracker-header-actions .search-button,
.tracker-header-actions .tracker-action-button {
  width: auto;
  min-width: 160px;
  min-height: 46px;
  margin: 0;
  border-radius: 9px;
  padding: 10px 16px;
  background: #005b83;
  box-shadow: 0 12px 22px rgba(0, 91, 131, 0.18);
}

.tracker-download-button {
  min-width: 190px;
  border: 1px solid #dbe3ec;
  background: #ffffff !important;
  color: var(--accent-dark);
  box-shadow: none !important;
}

.view-toggle {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid #dbe3ec;
  border-radius: 10px;
  background: #ffffff;
}

.view-toggle-button {
  min-height: 36px;
  padding: 7px 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 900;
  cursor: pointer;
}

.view-toggle-button.active {
  background: rgba(37, 99, 135, 0.1);
  color: var(--accent-dark);
}

.track-surface {
  padding: 22px;
  border-radius: 14px;
}

.track-surface .tracker-table-toolbar {
  margin-bottom: 4px;
}

.track-surface .tracker-stats {
  display: none;
}

.track-surface .tracker-storage {
  max-width: 360px;
  margin-top: 0;
  text-align: right;
  font-size: 0.78rem;
}

.track-surface .tracker-table-wrap {
  margin-top: 20px;
  overflow-x: auto;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.track-surface .tracker-record-list {
  padding: 0;
}

.track-surface .application-board {
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  gap: 12px;
  min-width: 820px;
  padding: 0;
}

.track-surface .application-column {
  min-height: 560px;
  padding: 20px;
  border-color: #dfe7ef;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.track-surface .application-column header {
  padding-bottom: 18px;
  border-bottom: 1px solid #e6edf5;
}

.track-surface .application-column h3 {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 900;
}

.track-surface .application-column header span {
  min-width: 30px;
  min-height: 30px;
  align-items: center;
  background: #eef4f8;
  color: #475569;
}

.track-surface .application-column-list {
  gap: 0;
}

.track-surface .application-card {
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid #e6edf5;
  border-radius: 0;
  box-shadow: none;
}

.track-surface .application-card-topline {
  margin-bottom: 8px;
}

.track-surface .application-card .company-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.track-surface .application-card strong {
  color: var(--ink);
  font-size: 0.98rem;
}

.track-surface .application-card > span:not(.application-status-chip),
.track-surface .application-card small {
  color: #334155;
  font-size: 0.86rem;
  font-weight: 700;
}

.track-surface .application-status-chip {
  margin-top: 4px;
  border-radius: 7px;
}

.track-surface .application-empty-card {
  position: relative;
  min-height: 280px;
  place-items: center;
  justify-items: center;
  align-content: center;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  text-align: center;
  line-height: 1.55;
}

.track-surface .application-empty-card::before {
  content: "";
  width: 86px;
  height: 64px;
  margin-bottom: 14px;
  border: 2px solid #c8d7ea;
  border-radius: 8px;
  background:
    linear-gradient(32deg, transparent 48%, #c8d7ea 49% 51%, transparent 52%),
    linear-gradient(148deg, transparent 48%, #c8d7ea 49% 51%, transparent 52%),
    #f8fbff;
}

.track-surface .pipeline-add-button {
  min-height: 42px;
  margin-top: auto;
  border-radius: 10px;
  border-color: #dbe3ec;
  background: #ffffff;
  color: var(--accent);
  font-weight: 900;
}

.application-list-view {
  display: grid;
  min-width: 960px;
  border: 1px solid #dfe7ef;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
}

.application-list-header,
.application-list-row {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr 1fr 0.9fr 1.4fr 110px;
  gap: 10px;
  align-items: center;
}

.application-list-header {
  padding: 12px 14px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.application-list-row {
  padding: 12px 14px;
  border-top: 1px solid #e6edf5;
}

.application-list-row .tracker-field-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.application-list-row .tracker-field input,
.application-list-row .tracker-field select {
  min-height: 40px;
  height: 40px;
  border-color: #dbe3ec;
  border-radius: 9px;
}

.application-list-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.application-status-chip.status-applied {
  background: rgba(20, 184, 166, 0.14);
  color: #0f766e;
}

.application-status-chip.status-interviewing {
  background: rgba(37, 99, 135, 0.14);
  color: var(--accent-dark);
}

/* Search page mockup alignment */
.search-layout {
  grid-template-columns: 1fr;
  gap: 16px;
}

.search-controls-column {
  display: block;
}

.search-controls-column .hero {
  display: none;
}

.search-controls-column .filters-panel {
  position: static;
  padding: 22px 24px;
  border-radius: 0;
  border-width: 0 0 1px;
  box-shadow: none;
  background: #ffffff;
}

.search-controls-column .filters-form {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(280px, 0.95fr) 150px;
  gap: 14px;
  align-items: end;
  max-width: 980px;
  margin: 0 auto;
  padding: 0;
}

.search-controls-column .filters-form > label:first-child,
.search-location-control {
  gap: 0;
}

.search-controls-column .filters-form > label:first-child > span,
.search-location-control > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.search-controls-column .filters-form > label:first-child input,
.search-location-control input {
  min-height: 52px;
  border-color: #dbe3ec;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.search-location-control input {
  color: var(--muted);
}

.search-controls-column .search-button {
  min-height: 52px;
  margin: 0;
  border-radius: 12px;
  background: #005b83;
  box-shadow: 0 12px 24px rgba(0, 91, 131, 0.18);
}

.search-controls-column .keyword-mode-fieldset,
.search-controls-column .filters-form > label:not(:first-child):not(.search-location-control),
.search-controls-column .filters-form > fieldset,
.search-controls-column .section-divider {
  display: none;
}

.search-layout .results-column {
  gap: 0;
}

.search-page-heading {
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 24px 4px;
}

.search-page-heading > div:first-child {
  display: none;
}

.search-filter-chips {
  justify-content: space-between;
  gap: 10px;
}

.search-filter-chips span {
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 10px;
  background: #eaf3ff;
  color: #256387;
  border: 1px solid #d8e9ff;
  box-shadow: 0 6px 14px rgba(37, 99, 135, 0.08);
  font-size: 0.85rem;
  font-weight: 900;
}

.search-layout .results-panel {
  max-width: 980px;
  width: calc(100% - 48px);
  margin: 18px auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.search-layout .results-toolbar {
  align-items: center;
  margin-bottom: 14px;
}

.search-layout .results-toolbar .toolbar-label {
  display: none;
}

.search-layout .results-toolbar h2 {
  font-size: 1rem;
  font-weight: 900;
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.sort-control span {
  white-space: nowrap;
}

.sort-control select {
  min-height: 36px;
  width: auto;
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  padding: 0 24px 0 0;
  font-weight: 900;
}

.search-layout .status-pill {
  display: none;
}

.search-layout .results-list {
  gap: 12px;
  margin-top: 0;
}

.search-layout .results-list.empty-state {
  padding: 0;
  border: 0;
  background: transparent;
}

.search-mock-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 140px 96px;
  align-items: center;
  column-gap: 16px;
  row-gap: 10px;
  min-height: 0;
  padding: 14px 18px;
  border: 1px solid #dfe7ef;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  transition: opacity 900ms ease, transform 900ms ease, max-height 900ms ease, margin 900ms ease, padding 900ms ease, border-color 900ms ease;
  overflow: hidden;
}

.search-mock-card .company-mark {
  grid-column: 1;
  grid-row: 1;
  width: 42px;
  height: 42px;
  border-radius: 11px;
}

.search-mock-card > div:not(.mock-match-score):not(.mock-card-actions):not(.arrangement-dropdown-panel) {
  grid-column: 2;
  grid-row: 1;
}

.search-mock-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.15rem;
}

.search-mock-card p {
  margin: 5px 0 0;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 700;
}

.search-mock-card small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.mock-match-score {
  display: grid;
  place-items: center;
  grid-column: 3;
  grid-row: 1;
  width: 88px;
  height: 88px;
  justify-self: center;
  border-radius: 999px;
  background: radial-gradient(circle, #fff 0 56%, transparent 57%), conic-gradient(var(--accent-teal) 86%, #dce7ef 0);
  color: var(--accent-teal);
  font-size: 1.22rem;
  font-weight: 900;
}

.mock-match-score small {
  margin: -22px 0 0;
  color: var(--accent-teal);
  font-size: 0.74rem;
}

.mock-card-actions {
  display: grid;
  grid-column: 4;
  grid-row: 1;
  align-self: start;
  gap: 6px;
  padding-left: 14px;
  border-left: 1px solid #e6edf5;
}

.mock-card-actions .secondary-button,
.mock-card-actions .search-button {
  min-height: 34px;
  margin: 0;
  padding: 7px 10px;
}

.mock-card-actions .search-button {
  background: #005b83;
}

.mock-job-description {
  grid-column: 2 / 5;
}

.mock-job-description {
  padding: 8px 12px;
  border: 1px solid #e6edf5;
  border-radius: 12px;
  background: #f8fafc;
}

.mock-job-description summary {
  color: var(--accent-dark);
  font-weight: 900;
  cursor: pointer;
}

.mock-job-description p {
  margin: 10px 0 0;
  color: #334155;
  line-height: 1.55;
}

.search-layout .job-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 108px 108px;
  align-items: start;
  align-content: start;
  column-gap: 18px;
  row-gap: 6px;
  min-height: 0;
  padding: 20px 20px 18px;
  border-color: #dfe7ef;
  border-radius: 16px;
  transition: opacity 900ms ease, transform 900ms ease, max-height 900ms ease, margin 900ms ease, padding 900ms ease, border-color 900ms ease;
  overflow: hidden;
}

.search-layout .job-card:has(.job-repost-banner-wrap) {
  grid-template-columns: 52px minmax(230px, 0.95fr) minmax(300px, 360px) 98px 108px;
}

.search-layout .job-card.is-hiding-post,
.search-mock-card.is-hiding-post {
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  pointer-events: none;
}

.search-layout .job-card > .company-mark {
  grid-column: 1;
  grid-row: 1;
  margin-top: 6px;
  width: 42px;
  height: 42px;
  border-radius: 11px;
}

.search-layout .job-head {
  grid-column: 2;
  grid-row: 1;
  display: block;
  min-width: 0;
  padding-right: 18px;
}

.search-layout .job-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1.28;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: normal;
  word-break: normal;
}

.search-layout .company-line {
  margin: 5px 0 0;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-layout .job-head .pill-row {
  margin-top: 8px;
}

.search-layout .job-head .arrangement-pill-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  width: 100%;
  text-align: left;
}

.search-layout .pill-label {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 850;
}

.search-layout .job-head .pill {
  padding: 5px 9px;
  border-radius: 7px;
  background: #eaf3ff;
  color: #256387;
  font-size: 0.75rem;
  font-weight: 900;
}

.posted-line {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 400;
  overflow-wrap: normal;
}

.search-layout .job-label-stack {
  grid-column: 3;
  grid-row: 1;
  justify-content: center;
  justify-self: center;
  align-self: start;
  text-align: center;
  z-index: 1;
}

.search-layout .job-card:has(.job-repost-banner-wrap) .job-label-stack {
  grid-column: 4;
}

.search-layout .match-score-ring {
  width: 88px;
  height: 88px;
  color: var(--accent-teal);
}

.search-layout .match-score-ring span {
  color: var(--accent-teal);
  font-size: 1.16rem;
}

.search-layout .match-score-ring small {
  color: var(--accent-teal);
  font-size: 0.68rem;
  text-transform: none;
}

.search-layout .job-detail-row {
  grid-column: 2 / 5;
}

.search-layout .job-card:has(.job-repost-banner-wrap) .job-detail-row {
  grid-column: 2 / 6;
}

.search-layout .job-description-details {
  grid-column: 2 / 5;
}

.search-layout .job-card:has(.job-repost-banner-wrap) .job-description-details {
  grid-column: 2 / 6;
}

.search-layout .job-detail-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr);
  gap: 8px;
  line-height: 1.45;
}

.search-layout .job-detail-row.has-repost-banner {
  display: grid;
  grid-template-columns: minmax(260px, 1fr);
  align-items: start;
  gap: 8px;
}

.search-layout .job-card:has(.job-detail-row.has-repost-banner) .job-head {
  max-width: none;
}

.search-layout .job-detail-row.has-repost-banner .job-meta {
  grid-column: 1;
  grid-row: auto;
  align-self: start;
  min-width: 0;
}

.search-layout .job-repost-banner-wrap {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  justify-self: start;
  width: min(360px, 100%);
  max-width: 360px;
  padding-left: 0;
  margin-top: 4px;
}

.search-layout .job-description-details {
  display: block;
  padding: 10px 12px;
  border: 1px solid #e6edf5;
  border-radius: 12px;
  background: #f8fafc;
}

.search-layout .job-description-details summary {
  color: var(--accent-dark);
  font-weight: 900;
}

.search-layout .job-snippet {
  margin-top: 10px;
  color: #334155;
  line-height: 1.6;
  white-space: pre-line;
}

.search-layout .job-actions {
  display: grid;
  grid-column: 4;
  grid-row: 1;
  align-self: start;
  grid-template-columns: 1fr;
  gap: 6px;
  padding-left: 14px;
  border-left: 1px solid #e6edf5;
}

.search-layout .job-card:has(.job-repost-banner-wrap) .job-actions {
  grid-column: 5;
}

.search-layout .job-actions > a,
.search-layout .job-open-links a,
.search-layout .track-save-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  width: 100%;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 900;
  text-decoration: none;
}

.search-layout .job-actions > a,
.search-layout .job-open-links a {
  background: #005b83;
  color: #ffffff;
  box-shadow: 0 10px 18px rgba(0, 91, 131, 0.16);
}

.search-layout .track-save-toggle {
  border: 1px solid #dbe3ec;
  background: #ffffff;
  color: #334155;
}

.search-layout .track-save-toggle input {
  display: none;
}

.search-layout .track-save-copy {
  color: inherit;
}

.search-layout .track-save-toggle.saved {
  background: rgba(20, 184, 166, 0.1);
  border-color: rgba(20, 184, 166, 0.35);
  color: #0f766e;
}

.search-layout .job-actions-hide-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 22px;
  padding: 4px 2px;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 850;
  cursor: pointer;
}

.search-layout .job-actions-hide-toggle input {
  display: inline-block;
  appearance: none;
  width: 9px !important;
  min-width: 9px;
  max-width: 9px;
  height: 9px !important;
  min-height: 9px;
  max-height: 9px;
  margin: 0;
  padding: 0 !important;
  border: 1px solid #94a3b8;
  border-radius: 2px;
  background: #ffffff;
  accent-color: var(--accent-dark);
}

.search-layout .job-actions-hide-toggle input:checked {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  box-shadow: inset 0 0 0 1px #ffffff;
}

.search-layout .job-actions-hide-toggle:has(input:checked) {
  color: #0f766e;
}

.job-detail-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.job-detail-fact {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 6px 9px;
  border-radius: 999px;
  background: #eef6fb;
  color: #256387;
  font-size: 0.76rem;
  font-weight: 400;
}

.job-detail-fact-label {
  font-weight: 850;
}

@media (max-width: 720px) {
  .tracker-hero-grid {
    grid-template-columns: 1fr;
  }

  .tracker-record-header {
    flex-direction: column;
    align-items: stretch;
  }

  .tracker-record-grid {
    grid-template-columns: 1fr;
  }

  .tracker-title-row {
    flex-direction: column;
    gap: 14px;
  }

  .tracker-title-block {
    padding-top: 0;
  }

  .tracker-hero-header,
  .tracker-table-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .analysis-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .search-controls-column .filters-form {
    grid-template-columns: 1fr;
  }

  .search-page-heading,
  .search-layout .results-panel {
    width: calc(100% - 20px);
    padding-left: 0;
    padding-right: 0;
  }

  .search-filter-chips {
    justify-content: flex-start;
  }

  .search-mock-card {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .mock-match-score,
  .mock-card-actions,
  .search-layout .job-label-stack,
  .search-layout .job-actions {
    grid-column: 2;
    justify-self: start;
  }

  .mock-card-actions,
  .search-layout .job-actions {
    grid-template-columns: repeat(2, minmax(92px, 1fr));
    width: 100%;
    max-width: 260px;
    padding-left: 0;
    border-left: 0;
  }

  .search-layout .job-card {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .search-layout .job-card > .company-mark {
    width: 42px;
    height: 42px;
  }

  .search-layout .job-head {
    grid-column: 2;
    padding-right: 0;
  }

  .search-layout .job-detail-row.has-repost-banner {
    display: grid;
    grid-column: 1 / -1;
  }

  .search-layout .job-detail-row.has-repost-banner .job-meta,
  .search-layout .job-repost-banner-wrap {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .search-layout .job-repost-banner-wrap {
    justify-self: start;
    width: min(360px, 100%);
    max-width: 360px;
  }

  .mock-job-description {
    grid-column: 1 / -1;
  }

  .search-layout .job-detail-row,
  .search-layout .job-description-details {
    grid-column: 1 / -1;
  }

  .compensation-line-multiple {
    grid-template-columns: 1fr;
    row-gap: 3px;
  }
}

@media (max-width: 640px) {
  .search-page-heading,
  .search-layout .results-panel {
    width: 100%;
  }

  .search-layout .job-card {
    grid-template-columns: 46px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 14px;
    min-height: 0;
    padding: 16px 14px;
    border-radius: 14px;
  }

  .search-layout .job-card:has(.job-repost-banner-wrap) {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .search-layout .job-card > .company-mark {
    grid-column: 1;
    grid-row: 1;
    width: 42px;
    height: 42px;
    margin-top: 2px;
  }

  .search-layout .job-head {
    grid-column: 2;
    grid-row: 1;
    padding-right: 0;
  }

  .search-layout .job-head h3 {
    font-size: 1.02rem;
    line-height: 1.24;
  }

  .search-layout .company-line {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.35;
  }

  .search-layout .job-head .arrangement-pill-row {
    flex-wrap: wrap;
  }

  .search-layout .job-detail-row,
  .search-layout .job-description-details,
  .search-layout .job-card:has(.job-repost-banner-wrap) .job-detail-row,
  .search-layout .job-card:has(.job-repost-banner-wrap) .job-description-details,
  .search-layout .job-card:has(.job-repost-banner-wrap) .job-actions,
  .search-layout .job-actions {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .search-layout .job-repost-banner-wrap,
  .search-layout .job-card:has(.job-repost-banner-wrap) .job-repost-banner-wrap {
    grid-column: 1 / -1;
    grid-row: auto;
    width: 100%;
    max-width: none;
  }

  .search-layout .job-actions,
  .search-layout .job-card:has(.job-repost-banner-wrap) .job-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-self: stretch;
    width: 100%;
    max-width: none;
    padding-left: 0;
    border-left: 0;
    gap: 10px;
  }

  .search-layout .job-actions > a,
  .search-layout .job-open-links a {
    min-height: 44px;
    font-size: 0.95rem;
  }

  .search-layout .job-actions-hide-toggle {
    justify-self: start;
  }
}

/* Search filter controls */
.search-controls-column .filters-form {
  display: block;
  max-width: 1100px;
}

.search-primary-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 0.95fr) 150px;
  gap: 14px;
  align-items: end;
}

.search-primary-row > label {
  gap: 0;
}

.search-primary-row > label > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.search-primary-row input {
  min-height: 52px;
  border-color: #dbe3ec;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.search-filter-controls {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}

.search-controls-column .search-filter-controls .keyword-mode-fieldset,
.search-controls-column .search-filter-controls .arrangement-fieldset,
.search-controls-column .more-filters-dropdown fieldset,
.search-controls-column .more-filters-dropdown .section-divider,
.search-controls-column .more-filters-dropdown .hidden-section:not([hidden]) {
  display: grid;
}

.search-chip-fieldset {
  min-width: 0;
  padding: 0;
  border: 0;
}

.keyword-mode-fieldset {
  flex: 0 1 auto;
}

.arrangement-fieldset {
  flex: 0 0 auto;
}

.search-chip-fieldset legend,
.posted-within-control > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.search-filter-controls .keyword-mode-options,
.search-filter-controls #arrangements {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.search-filter-controls #arrangements.checkbox-grid {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.arrangement-dropdown {
  position: relative;
}

.arrangement-dropdown summary {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 34px 8px 14px;
  border: 1px solid #b8d8ff;
  border-radius: 10px;
  background: #ffffff;
  color: #0f3d56;
  box-shadow: 0 8px 18px rgba(37, 99, 135, 0.12);
  font-size: 0.85rem;
  font-weight: 900;
  list-style: none;
  cursor: pointer;
}

.arrangement-dropdown summary::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #256387;
  transform: translateY(-35%);
}

.arrangement-dropdown summary::-webkit-details-marker {
  display: none;
}

.arrangement-dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 18;
  min-width: 190px;
  padding: 10px;
  border: 1px solid #dbe3ec;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}

.search-filter-controls .checkbox-item {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 13px;
  border: 1px solid #d8e9ff;
  border-radius: 10px;
  background: #eaf3ff;
  color: #256387;
  box-shadow: 0 6px 14px rgba(37, 99, 135, 0.08);
  font-size: 0.85rem;
  font-weight: 900;
}

.search-filter-controls #arrangements .checkbox-item {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  min-height: 30px;
  padding: 5px 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #334155;
  box-shadow: none;
}

.search-filter-controls .checkbox-item input {
  width: auto;
  min-height: auto;
  margin: 0 7px 0 0;
  accent-color: var(--accent);
  box-shadow: none;
}

.posted-within-control select,
.more-filters-dropdown summary {
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid #d8e9ff;
  border-radius: 10px;
  background: #eaf3ff;
  color: #256387;
  box-shadow: 0 6px 14px rgba(37, 99, 135, 0.08);
  font-size: 0.85rem;
  font-weight: 900;
  cursor: pointer;
}

.posted-within-control select {
  appearance: none;
  width: auto;
  padding-right: 34px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0h10L5 6z' fill='%23256387'/%3E%3C/svg%3E") calc(100% - 18px) 52% / 10px 6px no-repeat,
    #ffffff;
  border-color: #b8d8ff;
  color: #0f3d56;
  box-shadow: 0 8px 18px rgba(37, 99, 135, 0.12);
}

.more-filters-dropdown {
  position: relative;
}

.more-filters-dropdown summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  list-style: none;
}

.reset-filters-button {
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid #d8e9ff;
  border-radius: 10px;
  background: #ffffff;
  color: #256387;
  box-shadow: 0 6px 14px rgba(37, 99, 135, 0.08);
  font-size: 0.85rem;
  font-weight: 900;
  cursor: pointer;
}

.reset-filters-button:hover,
.reset-filters-button:focus-visible {
  border-color: #9cc6ef;
  background: #f8fbff;
}

.filter-summary-icon {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 14px;
  height: 12px;
}

.filter-summary-icon::before,
.filter-summary-icon::after,
.filter-summary-icon {
  background-repeat: no-repeat;
}

.filter-summary-icon::before,
.filter-summary-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  height: 2px;
  border-radius: 999px;
  background: #256387;
  transform: translateX(-50%);
}

.filter-summary-icon::before {
  top: 1px;
  width: 14px;
}

.filter-summary-icon::after {
  top: 5px;
  width: 9px;
}

.filter-summary-icon {
  background-image: linear-gradient(#256387, #256387);
  background-position: 50% 9px;
  background-size: 5px 2px;
  border-radius: 0;
}

.more-filters-dropdown summary::-webkit-details-marker {
  display: none;
}

.more-filters-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  z-index: 20;
  display: grid;
  gap: 14px;
  width: min(420px, calc(100vw - 40px));
  max-height: min(680px, calc(100vh - 180px));
  overflow: auto;
  padding: 34px 18px 18px;
  border: 1px solid #dfe7ef;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.18);
}

.more-filters-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid #dbe3ec;
  border-radius: 999px;
  background: #ffffff;
  color: #256387;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.more-filters-close:hover,
.more-filters-close:focus-visible {
  background: #eaf3ff;
  border-color: #b8d8ff;
}

.more-filters-panel fieldset {
  padding: 0;
  border: 0;
}

.more-filters-panel legend {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.more-filters-panel .checkbox-grid,
.more-filters-panel .keyword-mode-options {
  display: grid;
  gap: 8px;
}

.more-filters-panel .checkbox-item {
  justify-content: flex-start;
  width: 100%;
  min-height: 34px;
  padding: 8px 10px;
  border-color: #e2e8f0;
  background: #ffffff;
  color: #334155;
  box-shadow: none;
}

.more-filters-panel .filter-dropdown summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #dbe3ec;
  border-radius: 10px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: none;
}

.more-filters-panel .dropdown-panel {
  max-height: 280px;
  overflow: auto;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}

.more-filters-panel .dropdown-search,
.more-filters-panel select {
  min-height: 40px;
  border-color: #dbe3ec;
  border-radius: 10px;
}

.more-filters-panel .location-groups {
  display: grid;
  gap: 12px;
}

.more-filters-panel .location-group {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.more-filters-panel .location-group-header,
.more-filters-panel .group-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

@media (max-width: 900px) {
  .search-primary-row {
    grid-template-columns: 1fr;
  }

  .search-filter-controls {
    justify-content: flex-start;
  }

  .search-chip-fieldset,
  .posted-within-control {
    width: 100%;
  }

  .search-filter-controls .keyword-mode-options,
  .search-filter-controls #arrangements {
    width: 100%;
  }

  .more-filters-dropdown,
  .more-filters-dropdown summary {
    width: 100%;
  }

  .more-filters-panel {
    position: static;
    width: 100%;
    max-height: none;
    margin-top: 10px;
  }
}


