:root {
  color-scheme: light;
  --paper: #f7f3ec;
  --surface: #fffdf8;
  --surface-soft: #eee7dc;
  --ink: #231f1a;
  --muted: #73695e;
  --line: #ded4c5;
  --button: #2f2a24;
  --button-text: #fffaf1;
  --accent: #8c5d32;
  --accent-soft: #efe0cd;
  --shadow: rgb(67 49 28 / 10%);
  font-family:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--paper);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgb(255 253 248 / 68%), transparent 360px),
    var(--paper);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

.board-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0 46px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  line-height: 1;
}

.brand-icon {
  display: block;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  object-fit: contain;
}

.brand-wordmark {
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}

nav a:hover {
  color: var(--ink);
}

nav a.is-active {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px 0 6px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 6px 18px var(--shadow);
  cursor: pointer;
}

.profile-avatar {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  color: var(--button-text);
  background: var(--button);
  font-size: 12px;
  font-weight: 700;
}

.hero {
  max-width: 760px;
  padding: 34px 0 60px;
}

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

h1,
h2 {
  margin: 0;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.03em;
}

h1 {
  max-width: 720px;
  font-size: clamp(44px, 8vw, 84px);
  line-height: 0.95;
}

h2 {
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1;
}

p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.hero-copy {
  max-width: 590px;
  margin: 22px 0 0;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 16px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 6px 18px var(--shadow);
  cursor: pointer;
}

.button:hover {
  border-color: #c9b9a5;
}

.button-primary {
  border-color: var(--button);
  color: var(--button-text);
  background: var(--button);
}

.button-danger {
  border-color: #c9b9a5;
  color: #7a2f20;
  background: #fff7f2;
  box-shadow: none;
}

.board-section,
.share-section,
.profile-section,
.review-section {
  border-top: 1px solid var(--line);
  padding-top: 32px;
}

.share-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.share-section p {
  max-width: 430px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.count-label {
  margin: 0 0 6px;
  font-size: 14px;
}

.board-controls {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(240px, 1fr) auto;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
}

.search-field,
.location-filter-field,
.lead-form label,
.lead-form .field-group,
.dialog-card label {
  display: grid;
  gap: 8px;
}

.search-field span,
.location-filter-field span,
.filter-group > span,
.lead-form span,
.lead-form .field-group > label,
.dialog-card label > span,
.profile-links-field > .field-label,
.resume-upload-field > .field-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.filter-group {
  display: grid;
  gap: 8px;
}

.combobox {
  position: relative;
}

.combobox-options {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  background: var(--surface);
  box-shadow: 0 16px 36px rgb(35 31 26 / 18%);
}

.combobox-options button {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 6px;
  padding: 10px;
  color: var(--ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.combobox-options button:hover,
.combobox-options button:focus {
  background: var(--surface-soft);
}

.combobox-empty {
  margin: 6px;
  font-size: 13px;
}

.compact-inline-field {
  grid-template-columns: minmax(0, 1fr) auto;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 12px;
  color: var(--ink);
  background: var(--surface);
  outline-color: var(--accent);
}

textarea {
  resize: vertical;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filter-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--muted);
  background: var(--surface);
  cursor: pointer;
}

.filter-button.is-active {
  border-color: var(--accent-soft);
  color: var(--ink);
  background: var(--accent-soft);
}

.active-filters,
.active-filter-chips,
.selection-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.active-filters {
  margin: -4px 0 18px;
}

.active-filters-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.selection-chip,
.clear-filters {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
}

.selection-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.clear-filters {
  border-color: transparent;
  color: var(--accent);
  background: transparent;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.job-list {
  display: grid;
  gap: 12px;
}

.job-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--surface);
  box-shadow: 0 10px 30px var(--shadow);
}

.job-logo,
.company-logo {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-sizing: border-box;
  padding: 6px;
  background: var(--surface-soft);
}

.job-logo img,
.company-logo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.company-logo span,
.logo-fallback {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
}

.company-logo-large {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
}

.job-card-main {
  min-width: 0;
}

.job-title-row,
.review-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.job-title-row p,
.review-card-heading p {
  margin: 4px 0 0;
}

.job-title-row a:hover {
  color: var(--accent);
}

.job-badges,
.compact-actions,
.review-actions,
.admin-resource-links,
.status-counts,
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.status-badge,
.type-badge {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-badge.mine,
.status-live,
.status-sent {
  color: #216e45;
  background: #e7f5ec;
}

.status-rejected,
.status-declined,
.status-failed {
  color: #9f2f2f;
  background: #fdeaea;
}

.status-closed,
.status-archived {
  color: var(--muted);
  background: var(--surface-soft);
}

.job-topline {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.job-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.job-card h3 {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.2;
}

.job-meta,
.job-location-detail,
.job-note,
.job-contact {
  margin: 0;
}

.job-meta {
  color: var(--muted);
  font-size: 14px;
}

.job-location-detail {
  margin-top: 4px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.job-note {
  margin-top: 12px;
}

.job-contact {
  margin-top: 12px;
  color: var(--ink);
  font-size: 14px;
}

.job-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.text-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 10px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.request-resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.request-resource-links:empty {
  display: none;
}

.request-resource-link {
  box-sizing: border-box;
  max-width: 100%;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 0;
  padding: 8px 10px;
  background: var(--surface-soft);
  overflow-wrap: anywhere;
}

.tag {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.tag-mine {
  color: var(--ink);
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 24px;
  color: var(--muted);
  background: rgb(255 253 248 / 52%);
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--surface);
  box-shadow: 0 12px 34px var(--shadow);
}

.signin-gate {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface-soft);
}

.signin-gate p,
.submitting-as {
  margin: 4px 0 0;
  font-size: 13px;
}

.signin-gate .button {
  margin-top: 10px;
}

.remote-location-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.remote-region-field {
  display: grid;
  gap: 8px;
}

.remote-region-field .selection-chips:empty {
  display: none;
}

.inline-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.full-field {
  grid-column: 1 / -1;
}

.form-note {
  margin: -2px 0 0;
  font-size: 13px;
}

.form-note-success,
.persistent-success,
.request-complete {
  border: 1px solid #b9dcc8;
  border-radius: 8px;
  padding: 10px 12px;
  color: #216e45;
  background: #e7f5ec;
  font-weight: 650;
}

.form-note-error {
  border: 1px solid #efc3c3;
  border-radius: 8px;
  padding: 10px 12px;
  color: #9f2f2f;
  background: #fdeaea;
  font-weight: 650;
}

.persistent-email-message {
  margin: 0 0 12px;
  border-left: 3px solid var(--accent);
  padding-left: 10px;
  color: var(--ink);
  font-size: 14px;
}

.lead-form .field-helper {
  display: block;
  margin-top: -2px;
  color: #8b8278;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}

.is-success-message,
.is-error-message,
.email-delivery-message {
  border: 1px solid;
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 650;
  line-height: 1.45;
}

.is-success-message {
  border-color: #b9dcc8;
  color: #216e45;
  background: #e7f5ec;
}

.is-error-message {
  border-color: #efc3c3;
  color: #9f2f2f;
  background: #fdeaea;
}

.email-delivery-message {
  margin: 0;
  font-size: 13px;
}

.job-detail-section {
  margin-top: 14px;
}

.back-link {
  margin-bottom: 18px;
}

.job-detail-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  background: var(--surface);
  box-shadow: 0 12px 34px var(--shadow);
}

.job-detail-card h1 {
  margin: 10px 0;
  font-size: clamp(34px, 6vw, 64px);
}

.job-description {
  white-space: pre-line;
}

.job-detail-heading {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.job-detail-heading .job-logo {
  width: 56px;
  height: 56px;
}

.job-detail-heading h1 {
  margin: 4px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 6vw, 60px);
  font-weight: 500;
  line-height: 0.98;
}

.job-detail-location {
  margin: 0 0 10px;
  color: var(--muted);
}

.job-detail-heading .job-tags {
  justify-content: flex-start;
}

.job-detail-copy {
  max-width: 760px;
  margin-top: 22px;
  white-space: pre-line;
}

.review-section {
  margin-top: 48px;
}

.admin-login-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  gap: 28px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--surface);
  box-shadow: 0 12px 34px var(--shadow);
}

.admin-login-card h3,
.admin-login-card p {
  margin-top: 0;
}

.admin-login-card code {
  border-radius: 4px;
  padding: 2px 5px;
  background: var(--paper);
  font-size: 0.92em;
}

.admin-auth-options,
.admin-console {
  display: grid;
  gap: 18px;
}

.admin-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.admin-divider::before,
.admin-divider::after {
  height: 1px;
  flex: 1;
  background: var(--line);
  content: "";
}

.admin-login-form {
  display: grid;
  gap: 10px;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--surface);
}

.admin-toolbar h3,
.admin-toolbar p {
  margin: 0;
}

.admin-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgb(255 253 248 / 52%);
}

.admin-panel > h3 {
  margin-top: 0;
}

.admin-job-form {
  box-shadow: none;
}

.admin-job-list .review-card {
  box-shadow: none;
}

.admin-job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 10px !important;
  color: var(--muted);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--paper);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-pill[data-status="approved"],
.status-pill[data-status="introduced"],
.status-pill[data-status="reviewed"],
.status-pill[data-status="submitted"] {
  color: #216e45;
  background: #e7f5ec;
}

.status-pill[data-status="pending"],
.status-pill[data-status="pending_verification"] {
  color: #8a5a00;
  background: #fff2cc;
}

.status-pill[data-status="rejected"],
.status-pill[data-status="declined"] {
  color: #9f2f2f;
  background: #fdeaea;
}

.profile-section {
  margin-top: 48px;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1fr);
  gap: 18px;
}

.profile-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--surface);
  box-shadow: 0 10px 30px var(--shadow);
}

.profile-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

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

.profile-card-heading h3 {
  margin-bottom: 12px;
}

.account-card {
  align-self: start;
}

.profile-list-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.profile-list-item:first-child {
  border-top: 0;
}

.profile-list-item > div:first-child {
  display: grid;
  gap: 5px;
}

.profile-list-item span:not(.status-badge) {
  color: var(--muted);
  font-size: 14px;
}

.text-button {
  border: 0;
  padding: 5px 0;
  color: var(--accent);
  background: transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.danger-button,
.danger-text {
  color: #8a2e20;
}

.danger-button {
  border-color: #d8b9af;
  background: #fff7f2;
}

.admin-filters {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) repeat(2, minmax(150px, auto));
  gap: 10px;
  margin: 14px 0;
}

.status-counts {
  margin-bottom: 14px;
}

.status-counts span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--muted);
  font-size: 12px;
  text-transform: capitalize;
}

.pagination {
  justify-content: center;
  margin-top: 16px;
}

.admin-resource-links {
  margin: 14px 0;
}

.profile-link-pill {
  display: inline-flex;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--accent);
  background: var(--surface-soft);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.account-card p {
  display: grid;
  gap: 4px;
  margin: 0;
}

.account-card strong,
.profile-item h4 {
  color: var(--ink);
}

.profile-auth-note {
  margin-top: 8px;
  font-size: 13px;
}

.auth-actions {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.email-auth-slot {
  display: grid;
  gap: 10px;
}

.email-auth-form,
.email-code-form {
  display: grid;
  gap: 10px;
}

.email-auth-heading {
  display: grid;
  gap: 3px;
}

.email-auth-heading strong,
.email-auth-heading span {
  display: block;
}

.email-auth-heading span {
  color: var(--muted);
  font-size: 13px;
}

.email-code-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.request-verification {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--paper);
}

.auth-button {
  justify-self: start;
  margin-top: 8px;
  box-shadow: none;
}

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

.profile-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.profile-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.profile-item h4,
.profile-item p {
  margin: 0;
}

.profile-item p {
  font-size: 14px;
}

.compact-link {
  margin-top: 0;
  white-space: nowrap;
}

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

.review-grid h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.review-list {
  display: grid;
  gap: 12px;
}

.review-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--surface);
  box-shadow: 0 10px 30px var(--shadow);
}

.review-card h4 {
  margin: 0 0 8px;
  font-size: 18px;
}

.review-card p {
  margin: 0;
  font-size: 14px;
}

.review-kicker {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.request-dialog {
  width: min(520px, calc(100% - 28px));
  border: 0;
  padding: 0;
  background: transparent;
}

.request-dialog::backdrop {
  background: rgb(35 31 26 / 38%);
}

.request-form {
  display: grid;
  gap: 14px;
}

.dialog-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--surface);
  box-shadow: 0 20px 70px rgb(35 31 26 / 24%);
}

.dialog-card h2 {
  font-size: 32px;
}

.dialog-card small {
  color: var(--muted);
  font-size: 12px;
}

.dialog-card .field-helper {
  display: block;
  margin-top: 4px;
  color: #8b8278;
  font-weight: 400;
  line-height: 1.4;
}

.dialog-card .field-error {
  color: #9f2f2f;
  font-weight: 700;
}

.privacy-agreement {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-soft);
}

.privacy-agreement input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.privacy-agreement span {
  color: var(--ink) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.45;
}

.request-complete p {
  margin: 4px 0 10px;
  color: inherit;
}

.fatal-error {
  position: fixed;
  z-index: 100;
  right: 16px;
  bottom: 16px;
  max-width: 440px;
  border: 1px solid #efc3c3;
  border-radius: 8px;
  padding: 14px;
  color: #9f2f2f;
  background: #fdeaea;
}

.dialog-card [aria-invalid="true"] {
  border-color: #b74732;
  outline-color: #b74732;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.resume-upload-field {
  display: grid;
  gap: 8px;
}

.profile-links-field,
.profile-link-list {
  display: grid;
  gap: 8px;
}

.profile-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.profile-link-fields {
  display: grid;
  grid-template-columns: minmax(110px, 0.65fr) minmax(0, 1.35fr);
  gap: 8px;
}

.profile-link-add,
.profile-link-remove {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  padding: 0;
  font-size: 24px;
  line-height: 1;
  box-shadow: none;
}

.profile-link-add {
  justify-self: start;
}

.profile-link-remove {
  align-self: center;
  color: var(--muted);
}

.resume-picker-button,
.resume-selection-actions .button {
  cursor: pointer;
}

.resume-selection {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-soft);
}

.dialog-card .resume-file-name {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.resume-selection-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dialog-close {
  justify-self: end;
  border: 0;
  width: 38px;
  height: 38px;
  margin-bottom: -6px;
  border-radius: 999px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.dialog-close:hover {
  color: var(--ink);
  background: var(--surface-strong);
}

.dialog-close span {
  color: inherit;
  font: inherit;
}

.dialog-job {
  margin: 0;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 960px) {
  .board-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-group {
    grid-column: 1 / -1;
  }

  .filter-buttons {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .board-shell {
    width: min(100% - 24px, 1120px);
    padding-top: 16px;
  }

  .site-header,
  .section-heading,
  .board-controls {
    align-items: start;
    flex-direction: column;
  }

  .header-actions {
    width: 100%;
    align-items: flex-start;
    justify-content: space-between;
  }

  .site-header {
    padding-bottom: 24px;
  }

  .brand {
    gap: 10px;
  }

  .brand-icon {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .brand-wordmark {
    font-size: 20px;
  }

  .hero {
    padding: 28px 0 44px;
  }

  .board-controls,
  .share-section,
  .lead-form,
  .remote-location-fields,
  .admin-login-card,
  .profile-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .admin-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-item {
    grid-template-columns: 1fr;
  }

  .filter-buttons {
    justify-content: flex-start;
  }

  .location-filter-field,
  .filter-group {
    width: 100%;
  }

  .active-filters {
    align-items: flex-start;
  }

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

  .job-logo {
    width: 42px;
    height: 42px;
  }

  .job-topline {
    display: grid;
    gap: 8px;
  }

  .job-tags {
    justify-content: flex-start;
  }

  .inline-field {
    grid-template-columns: 1fr;
  }

  .compact-inline-field {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .profile-link-fields {
    grid-template-columns: 1fr;
  }

  .job-title-row,
  .review-card-heading,
  .profile-list-item {
    display: grid;
  }

  .job-badges {
    justify-content: flex-start;
  }

  .admin-filters,
  .job-detail-card {
    grid-template-columns: 1fr;
  }

  .company-logo-large {
    width: 52px;
    height: 52px;
  }

  .job-detail-card {
    padding: 18px;
  }

  .job-detail-heading {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
  }

  .job-detail-heading .job-logo {
    width: 44px;
    height: 44px;
  }
}
