#jobPostForm [aria-invalid="true"],
#jobPostForm .nrj-posting-error {
  border-color: #ff5c77 !important;
  outline: 2px solid #ff5c77;
  outline-offset: 2px;
  scroll-margin-top: 100px;
}

form a[href*="terms/"], form a[href*="privacy/"] {
  color: var(--accent, #007f86);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.nrj-form-dialog {
  width: min(600px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 24px;
  border: 1px solid var(--border, #777);
  border-radius: 8px;
  color: var(--text, #eee);
  background: var(--panel, #182627);
}
.nrj-form-dialog::backdrop { background: rgb(0 0 0 / 65%); }
.nrj-form-dialog h2 { margin: 0 0 16px; font-size: 20px; line-height: 1.4; }
.nrj-legal-viewer { width: min(960px, calc(100% - 24px)); padding: 16px; }
.nrj-legal-toolbar, .nrj-draft-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.nrj-legal-toolbar button {
  min-height: 44px; padding: 8px 12px; border: 1px solid var(--border, #777);
  color: inherit; background: transparent; border-radius: 4px; cursor: pointer;
}
.nrj-legal-toolbar button:last-child { margin-left: auto; }
.nrj-legal-viewer iframe { display: block; width: 100%; height: min(70dvh, 750px); border: 0; background: white; }
.nrj-field-help { margin: 8px 0; padding: 12px; border-left: 2px solid var(--accent, #00a8b0); font-size: 14px; line-height: 1.5; }
.nrj-progressive-details > .field { margin-top: 12px; }
.nrj-progressive-details > .check-row { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.nrj-progressive-details > .check-row { text-transform: none; font-weight: 600; }
.nrj-progressive-details > .check-row input[type="checkbox"] {
  flex: 0 0 20px; width: 20px; height: 20px; min-height: 20px; padding: 0;
}
.nrj-progressive-details[hidden], .nrj-progressive-details .field[hidden], .nrj-field-help[hidden] { display: none !important; }
.nrj-applicant-view-full { display: none; }
@media (max-width: 700px) {
  body:is([data-user-role="employer"], [data-user-role="recruiting_organization"]) #agency-applicantsView .agency-applicant-table-wrap {
    overflow: visible;
  }
  body:is([data-user-role="employer"], [data-user-role="recruiting_organization"]) #agency-applicantsView .agency-applicant-view-button,
  body:is([data-user-role="employer"], [data-user-role="recruiting_organization"]) #agency-applicantsView .agency-applicant-status-select {
    min-height: 44px;
  }
  .agency-applicant-table-wrap { overflow: visible; }
  .agency-applicant-table { min-width: 0 !important; width: 100%; }
  .agency-applicant-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .agency-applicant-table tbody { display: grid; gap: 12px; }
  .agency-applicant-table tbody tr {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    border: 1px solid var(--border, #777); border-radius: 8px; padding: 12px;
  }
  .agency-applicant-table tbody td { display: block; border: 0; padding: 8px; min-width: 0; overflow-wrap: anywhere; }
  .agency-applicant-table tbody td::before { content: attr(data-label); display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
  .agency-applicant-table tbody td:first-child { grid-column: 1 / -1; }
  .agency-applicant-table select { max-width: 100%; width: 100%; min-height: 44px; }
  .agency-applicant-table tbody td:last-child { grid-column: 1 / -1; width: auto; text-align: left; }
  .agency-applicant-table :is([data-demo-applicant], [data-live-applicant]) {
    display: inline-flex; justify-content: center; align-items: center;
    width: 100%; min-width: 0; min-height: 44px; font-size: 14px; white-space: normal;
  }
  .nrj-applicant-view-short { display: none; }
  .nrj-applicant-view-full { display: inline; }
}
.nrj-insight-fields { margin: 0; padding: 12px 0; border: 0; border-top: 1px solid var(--border); min-width: 0; }
.nrj-insight-fields legend { font-size: 14px; font-weight: 700; padding: 0; }
.nrj-insight-fields .form-grid { margin-top: 12px; }
#jobPostForm .nrj-progressive-details {
  border: 0;
  border-inline-start: 3px solid var(--accent, #0fa3b1);
  padding: 12px 14px;
  background: color-mix(in srgb, var(--accent, #0fa3b1) 6%, transparent);
  min-width: 0;
  box-sizing: border-box;
}
#jobPostForm .nrj-progressive-details > .check-row { margin: 0; }
#jobPostForm .nrj-insight-fields legend { padding: 0 4px; }
.nrj-stage-card .nrj-detailed-workplace {
  color: #82dcaa;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  margin: 5px 0;
}
.nrj-detailed-workplace > span { margin-right: 4px; }
#directApplyForm label > .nrj-application-question {
  justify-self: start;
  margin-top: 0;
  color: var(--text);
  font: inherit;
  text-transform: none;
}
#directApplyForm .nrj-application-optional {
  margin-left: 6px;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}
#detailView .nrj-full-listing-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
@media (min-width: 1500px) {
  #browseView .nrj-stage-card.nrj-has-five-tags .nrj-stage-copy .nrj-quick-tags {
    margin-left: -32px;
    width: calc(100% + 64px);
    gap: 6px;
    justify-content: center;
  }
}
#browseView { --filter-pay: #32c6d8; --filter-schedule: #66a9ff; --filter-environment: #b68cff; --filter-benefits: #78d8a2; --filter-hiring: #f0c36a; }
#browseView :is([data-filter-section="pay"], [data-tag-category="pay"]) { --category-color: var(--filter-pay); }
#browseView :is([data-filter-section="schedule"], [data-tag-category="schedule"]) { --category-color: var(--filter-schedule); }
#browseView :is([data-filter-section="environment"], [data-tag-category="environment"]) { --category-color: var(--filter-environment); }
#browseView :is([data-filter-section="benefits"], [data-tag-category="benefits"]) { --category-color: var(--filter-benefits); }
#browseView :is([data-filter-section="hiring"], [data-tag-category="hiring"]) { --category-color: var(--filter-hiring); }
#browseView .filter-section[data-filter-section] summary::before {
  color: var(--category-color);
  font-size: 19px;
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 24px;
}
#browseView .filter-section[data-filter-section] summary > span:first-of-type { color: var(--category-color); }
#browseView .nrj-quick-tags > span[data-tag-category] {
  color: var(--category-color, #bdced5);
  border-color: color-mix(in srgb, var(--category-color, #bdced5) 55%, transparent);
  background: color-mix(in srgb, var(--category-color, #bdced5) 12%, #0c2026);
}
#browseView .nrj-stage-card .nrj-quick-tags {
  flex-wrap: wrap;
  overflow-x: visible;
  min-width: 0;
}
#browseView .nrj-stage-card .nrj-quick-tags > span {
  flex-shrink: 0;
  white-space: nowrap;
}
.nrj-stage-card .nrj-snapshot-bottom > .nrj-snapshot-summary:only-child {
  grid-column: 1 / -1;
}
#browseView .nrj-stage-card .job-snapshot-details :is(.nrj-snapshot-fact, .nrj-snapshot-list, .nrj-snapshot-summary) {
  background: #043044;
}
#jobPostForm input[type="checkbox"] {
  min-height: 0;
  padding: 0;
  box-shadow: none;
}
#jobPostForm input[type="checkbox"]:focus {
  box-shadow: none;
  outline: none;
}
#jobPostForm input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--accent, #0fa3b1);
  outline-offset: 2px;
}
.nrj-insight-fields [hidden], #jobPostForm .field[hidden] { display: none !important; }
.nrj-category-insights { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 12px; }
.nrj-category-insights h3 { font-size: 15px; margin: 0 0 8px; }
.nrj-category-insights dl { margin: 0; }
.nrj-category-insights dl > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px; padding: 5px 0; }
.nrj-category-insights dt { font-weight: 600; }
#detailView .nrj-category-insights dt {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}
#detailView .nrj-category-insights dt > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
#detailView .nrj-category-insights dt::after {
  content: '';
  flex: 1 0 16px;
  border-bottom: 1px solid rgba(102, 177, 194, .35);
}
.nrj-category-insights dd { margin: 0; overflow-wrap: anywhere; }
.nrj-agency-attribution { font-size: 13px; margin-top: 4px; overflow-wrap: anywhere; }
.nrj-save-job {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  padding: 0;
  color: #00e5ed;
  background: #03222e;
  border: 1px solid #294d56;
  border-radius: 6px;
  cursor: pointer;
}
.nrj-save-bookmark {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 0 2px rgba(0, 229, 237, .45));
  pointer-events: none;
}
.nrj-save-job[aria-pressed="true"] .nrj-save-bookmark { fill: currentColor; }
.nrj-save-job:hover:not(:disabled),
.nrj-save-job:focus-visible {
  z-index: 2;
  color: #fff;
  border-color: #00e5ed;
  outline: 2px solid #00e5ed;
  outline-offset: 2px;
}
#browseView .nrj-stage-card .nrj-stage-main {
  position: relative;
  padding-right: 122px;
}
#browseView .nrj-stage-card .nrj-stage-main .nrj-save-job {
  position: absolute;
  top: 12px;
  right: 12px;
}
#browseView .nrj-stage-card .nrj-stage-main .nrj-card-share-button {
  position: absolute;
  top: 12px;
  right: 64px;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #00e5ed;
  background: #03222e;
  border: 1px solid #294d56;
  border-radius: 6px;
  cursor: pointer;
}
#browseView .nrj-card-share-button svg {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 0 2px rgba(0, 229, 237, .45));
  pointer-events: none;
}
#browseView .nrj-card-share-button:hover,
#browseView .nrj-card-share-button:focus-visible {
  color: #fff;
  border-color: #00e5ed;
  outline: 2px solid #00e5ed;
  outline-offset: 2px;
}
.nrj-saved-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.nrj-saved-row > div { min-width: 0; overflow-wrap: anywhere; }
.nrj-saved-row h2 { font-size: 18px; margin: 0 0 6px; }
.nrj-saved-row p { margin: 6px 0; }
.nrj-save-import { max-width: 480px; width: calc(100% - 32px); max-height: calc(100dvh - 32px); overflow: auto; padding: 20px; border: 1px solid var(--border); border-radius: 8px; color: var(--text); background: var(--panel, var(--nrj-panel)); }
.nrj-save-import::backdrop { background: rgba(0, 0, 0, .65); }
.nrj-evaluation-plan {
  width: calc(100% - 48px);
  max-width: 1260px;
  box-sizing: border-box;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  margin: 0 auto 8px;
}
.nrj-evaluation-plan .form-grid {
  max-width: 720px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.nrj-evaluation-plan .small-muted {
  max-width: 820px;
  line-height: 1.6;
  margin: 16px 0 0;
}
.nrj-evaluation-plan [role="status"]:empty { display: none; }
@media (max-width: 600px) {
  .nrj-evaluation-plan { width: calc(100% - 28px); }
  .nrj-evaluation-plan .form-grid { grid-template-columns: minmax(0, 1fr); }
}
.nrj-evaluation-plan h2 { font-size: 20px; margin: 0 0 10px; }
.nrj-preference-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.nrj-evaluation-plan [hidden] { display: none !important; }

#directApplyForm .nrj-first-job-option {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 10px 0 14px;
}
#directApplyForm .nrj-first-job-option > input {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  accent-color: var(--accent-2);
}
#directApplyForm .nrj-first-job-option > span {
  margin: 0;
  color: var(--text);
  font: inherit;
  text-transform: none;
}
#directApplyRecentTitle:disabled,
#directApplyRecentEmployer:disabled,
#directApplyExperienceYears:disabled { opacity: .55; }

.nrj-demo-applications { max-width: 1000px; margin: 36px auto; }
.nrj-demo-applications h2 { font-size: 24px; }
.nrj-demo-application-entry { margin: 24px 0; padding: 22px; background: #043044; border: 1px solid var(--border); border-radius: 8px; overflow-wrap: anywhere; }
.nrj-demo-application-entry h3 { font-size: 18px; margin: 0 0 8px; }
.nrj-demo-application-entry dl { margin: 20px 0; }
.nrj-demo-application-entry dl > div { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.nrj-demo-application-entry dt { width: 160px; font-weight: 700; }
.nrj-demo-application-entry dd { margin: 0; }

#applicationDetails { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); overflow-wrap: anywhere; }
#applicationDetails dl > div { display: grid; grid-template-columns: minmax(120px, 180px) minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
#applicationDetails dt { font-weight: 700; }
#applicationDetails dd { margin: 0; white-space: pre-wrap; }
#applicationDetails label { display: block; margin: 18px 0; }
@media (max-width: 540px) {
  #applicationDetails dl > div { grid-template-columns: 1fr; gap: 6px; }
}
