:root {
  color-scheme: light;
  --ink: #1f2937;
  --muted: #5b6472;
  --line: #d9dee7;
  --panel: #fff;
  --bg: #f6f8fb;
  --brand: #0f766e;
  --brand-navy: #003078;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

a {
  color: #0b5cad;
}

a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 3px solid #0f766e;
  outline-offset: 2px;
}

.delete-account-entry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .65rem 1rem;
  border: 1px solid var(--brand-navy);
  border-radius: .3rem;
  background: var(--brand-navy);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.delete-account-entry:hover {
  background: #001f4d;
  color: #fff;
}

.delete-account-entry:focus-visible,
.danger-button:focus-visible {
  outline: 3px solid #0f766e;
  outline-offset: 3px;
}

.danger-zone {
  border-color: #a92a2a;
}

.danger-button {
  background: #a92a2a;
  border-color: #a92a2a;
  color: #fff;
  min-height: 44px;
}

.danger-button:hover {
  background: #7f1f1f;
}

.deletion-confirmation-form .checkbox-row {
  display: flex;
  width: fit-content;
}

.deletion-confirmation-form .danger-button {
  display: block;
}

.skip {
  position: absolute;
  left: -999px;
  top: auto;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  background: #fff;
  padding: .5rem;
  border: 1px solid var(--line);
}

header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

header .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: .5rem;
  padding-bottom: .5rem;
}

header nav {
  flex: 1;
}

header nav ul {
  align-items: center;
  margin: 0;
}

.account-nav ul {
  flex-wrap: nowrap;
  gap: .2rem;
  justify-content: flex-end;
  white-space: nowrap;
}

.account-nav a,
.logout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .55rem .45rem;
  font-size: .875rem;
  line-height: 1.5;
}

.account-nav li,
.logout-form {
  display: flex;
  align-items: center;
  margin: 0;
}

.logout-button {
  margin: 0;
  border: 0;
  background: transparent;
  color: #0b5cad;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
}

.logout-button:hover {
  background: #f3f7fb;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  width: fit-content;
  padding: 0;
}

.brand-logo {
  display: block;
  width: auto;
  height: 64px;
  max-width: min(240px, 52vw);
  object-fit: contain;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: 0;
  margin: .75rem 0 0;
  list-style: none;
}

nav a {
  display: block;
  padding: .5rem .75rem;
  border-radius: .25rem;
  text-decoration: none;
}

nav a[aria-current="page"] {
  background: #e4f3f1;
  color: #0f5f58;
  font-weight: 700;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
}

h1,
h2,
p {
  max-width: 48rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: .5rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.legal-page {
  max-width: 880px;
}

.legal-callout {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: #f9fbfd;
}

.eyebrow {
  margin: 0 0 .35rem;
  color: #0f5f58;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.lede {
  font-size: 1.05rem;
}

.status-list {
  margin: 1rem 0;
  padding-left: 1.25rem;
}

.status-list li + li {
  margin-top: .35rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  margin-top: 1rem;
}

.compact-search-form {
  display: grid;
  gap: .5rem;
  max-width: 34rem;
  margin: 1rem 0;
}

.route-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: .75rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}

.route-link {
  display: block;
  min-height: 100%;
  padding: .85rem;
  border: 1px solid var(--line);
  border-radius: .35rem;
  background: #fff;
  text-decoration: none;
}

.route-link strong,
.route-link span {
  display: block;
}

.route-link span {
  margin-top: .25rem;
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .7rem 1rem;
  border-radius: .25rem;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .75rem;
  margin: .75rem 0;
}

.metric {
  border: 1px solid var(--line);
  border-radius: .35rem;
  padding: .75rem;
  background: #fff;
}

.plan-info-section {
  margin-top: 1rem;
}

.plan-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: .75rem;
}

.plan-info-card {
  padding-top: .75rem;
  border-top: 1px solid var(--line);
}

.plan-info-card h3,
.filter-preview-plan h4 {
  margin: .2rem 0 .4rem;
}

.plan-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: .85rem;
  margin: 1rem 0;
}

.plan-option-card {
  padding: .9rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: #fff;
}

.plan-option-card h3 {
  margin: .2rem 0;
}

.plan-price {
  font-size: 1.15rem;
  font-weight: 700;
}

.filter-preview-grid {
  display: grid;
  gap: .85rem;
}

.filter-preview {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.filter-chip {
  display: inline-flex;
  flex-direction: column;
  gap: .1rem;
  min-width: 7rem;
  padding: .45rem .55rem;
  border: 1px solid var(--line);
  border-radius: .35rem;
  background: #fff;
  font-weight: 700;
}

.filter-chip.locked {
  background: #f3f5f8;
  color: var(--muted);
}

.lock-label {
  font-size: .78rem;
  font-weight: 400;
}

.matched-job-layout-preview {
  margin-top: 1rem;
}

.fake-dashboard-preview .status-list {
  max-width: 54rem;
}

.preview-toolbar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.preview-control-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.preview-link {
  text-decoration: none;
}

.preview-link[aria-current="page"] {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.matched-job-preview-list {
  display: grid;
  gap: .85rem;
  margin-top: 1rem;
}

.matched-job-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 1rem;
  align-items: start;
  margin-top: .75rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: #fff;
}

.matched-job-card.fixture-preview {
  border-style: dashed;
}

.matched-job-details h3 {
  margin: .2rem 0;
}

.matched-job-meta {
  margin: .35rem 0;
  color: var(--muted);
}

.matched-job-actions {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.matched-job-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.matched-job-action-row button {
  flex: 1 1 7rem;
  width: auto;
  margin-top: 0;
}

.matched-job-action-note {
  margin: 0;
}

.matched-job-actions button:disabled {
  cursor: not-allowed;
  opacity: .68;
}

.compact-matched-job-list {
  gap: .55rem;
}

.matched-job-row {
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: #fff;
}

.matched-job-primary-row {
  display: grid;
  grid-template-columns: max-content minmax(220px, 1fr) minmax(0, 34rem);
  gap: .75rem;
  align-items: start;
  min-height: 5.4rem;
  padding: .75rem .85rem;
}

.matched-job-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: .2rem .55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: .9rem;
  white-space: nowrap;
}

.matched-job-summary-main {
  display: grid;
  gap: .15rem;
  min-width: 0;
}

.matched-job-summary-main strong,
.matched-job-summary-main span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.matched-job-summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  max-width: none;
}

.matched-job-summary-actions .inline-action-form {
  margin: 0;
  min-width: 0;
}

.matched-job-summary-actions .matched-resume-request-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: .45rem;
  align-items: center;
  flex: 1 1 19rem;
  max-width: 23rem;
}

.matched-resume-request-form .checkbox-row {
  min-width: 0;
}

.matched-resume-request-form .checkbox-row span {
  overflow-wrap: normal;
}

.matched-job-summary-actions .checkbox-row,
.matched-job-summary-actions .hint {
  font-size: .86rem;
}

.matched-job-summary-actions button,
.matched-job-summary-actions .button {
  margin-top: 0;
  min-height: 2.75rem;
}

.matched-job-row[data-resume-polling="true"] {
  border-color: var(--brand);
}

.resume-inline-status[role="status"] {
  font-weight: 600;
}

.pagination-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
  margin-top: 1rem;
}

.pagination-nav .disabled {
  opacity: .55;
  cursor: not-allowed;
}

.resume-source-list {
  display: grid;
  gap: .75rem;
}

.resume-source-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: 1rem;
  align-items: start;
  padding: .9rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: #fff;
}

.resume-source-card > :first-child {
  min-width: 0;
}

.resume-source-card h3 {
  margin: .2rem 0;
  overflow-wrap: anywhere;
}

.resume-source-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .5rem;
  min-width: 0;
  max-width: 300px;
  justify-self: end;
}

.resume-source-actions .inline-action-form {
  width: 100%;
  min-width: 0;
}

.resume-source-actions .hint {
  margin: .5rem 0 0;
  max-width: 100%;
  overflow-wrap: break-word;
}

.resume-source-actions button {
  width: auto;
  margin-top: 0;
}

.resume-source-actions button:disabled {
  cursor: not-allowed;
  opacity: .68;
}

.notice {
  margin: .75rem 0;
  padding: .75rem;
  border: 1px solid #c7d2fe;
  border-radius: .35rem;
  background: #eef2ff;
}

.label {
  color: var(--muted);
  font-size: .9rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: .6rem;
  vertical-align: top;
}

label {
  display: block;
  font-weight: 700;
  margin-top: .75rem;
}

input:not([type="checkbox"]),
textarea,
select {
  width: 100%;
  max-width: 34rem;
  min-height: 44px;
  padding: .6rem;
  border: 1px solid var(--line);
  border-radius: .25rem;
}

input[type="checkbox"] {
  width: auto;
  max-width: none;
  accent-color: var(--brand);
}

.checkbox-row {
  align-items: center;
  cursor: pointer;
  display: inline-flex;
  gap: .5rem;
  line-height: 1.35;
  max-width: 100%;
  min-height: 44px;
  padding: .35rem 0;
}

.checkbox-row[hidden] {
  display: none;
}

.checkbox-row input[type="checkbox"] {
  flex: 0 0 auto;
  height: 1.25rem;
  margin: 0;
  width: 1.25rem;
}

.checkbox-row:focus-within {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.remote-work-arrangement-note {
  color: var(--muted);
  margin: .75rem 0 0;
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 1rem;
  padding: .7rem 1rem;
  border: 0;
  border-radius: .25rem;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

header nav a,
footer nav a,
.actions a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

button:disabled {
  cursor: not-allowed;
}

.hint {
  color: var(--muted);
}

.error {
  border-left: 4px solid #b91c1c;
  background: #fff5f5;
  padding: .75rem;
}

footer {
  color: var(--muted);
}

@media (max-width: 980px) {
  header .wrap {
    flex-wrap: wrap;
  }

  .account-nav {
    flex-basis: 100%;
  }

  .account-nav ul {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .matched-job-primary-row {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .matched-job-summary-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
    max-width: none;
  }

  .matched-job-summary-actions .inline-action-form {
    max-width: none;
    width: 100%;
  }

  .matched-job-summary-actions .matched-resume-request-form {
    grid-template-columns: 1fr;
  }

  .matched-job-summary-actions button,
  .matched-job-summary-actions .button {
    min-height: 44px;
  }

  .resume-source-card {
    grid-template-columns: 1fr;
  }

  .resume-source-actions {
    justify-self: stretch;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .route-list,
  .grid,
  .settings-grid,
  .plan-info-grid,
  .plan-option-grid,
  .preview-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  header .wrap {
    align-items: flex-start;
    flex-direction: column;
    gap: .5rem;
    padding-top: .5rem;
    padding-bottom: .5rem;
  }

  .brand-logo {
    height: 50px;
    max-width: 70vw;
  }

  .account-nav,
  .account-nav ul,
  .account-nav li,
  .account-nav a,
  .logout-form,
  .logout-button {
    width: 100%;
  }

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

  .resume-source-card {
    grid-template-columns: 1fr;
  }

  .resume-source-actions {
    justify-content: flex-start;
    max-width: none;
  }

  .matched-job-action-row {
    flex-direction: column;
  }

  .matched-job-action-row button {
    width: 100%;
  }

  th,
  td {
    display: block;
    width: 100%;
  }

  tr {
    display: block;
    border-bottom: 1px solid var(--line);
  }
}
