:root {
  color-scheme: light;
  --ink: #050505;
  --muted: #5f6368;
  --soft: #eef0f3;
  --line: #d8dbe1;
  --paper: #f3f4f6;
  --panel: #f8f9fb;
  --white: #ffffff;
  --accent: #050505;
  --accent-soft: #eef0f3;
  --key: #050505;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.10);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: Helvetica, Arial, sans-serif;
}

[hidden] {
  display: none !important;
}

.bot-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

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

button {
  cursor: pointer;
}

svg {
  display: block;
  fill: currentColor;
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px 22px;
  border-right: 1px solid var(--line);
  background: #f8f9fb;
  color: var(--ink);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  background: #050505;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  color: var(--muted);
  font-size: 0.84rem;
}

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

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 0 12px;
  background: transparent;
  color: #4a4a4a;
  text-align: left;
  font-weight: 500;
}

.nav-item[hidden] {
  display: none;
}

.nav-item svg {
  width: 20px;
}

.nav-item:hover,
.nav-item.active {
  border-color: #c8ccd4;
  background: #e9ebef;
  color: var(--ink);
}

.sidebar-panel {
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 16px;
  background: #eef0f3;
}

.support-panel {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 14px;
  background: #ffffff;
}

.support-panel strong {
  color: var(--ink);
  font-weight: 500;
}

.support-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.support-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #eef0f3;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.support-link:hover {
  border-color: #111111;
}

.account-panel {
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 12px;
  background: #eef0f3;
}

.account-name {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-weight: 500;
}

.account-meta {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-kicker,
.eyebrow {
  margin: 0 0 6px;
  color: #71717a;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sidebar-panel .panel-kicker {
  color: #71717a;
}

.sidebar-panel strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.sidebar-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.workspace {
  min-width: 0;
  padding: 44px clamp(24px, 4vw, 56px);
}

.topbar,
.section-heading,
.topbar-actions,
.select-row,
.modal-head,
.modal-actions {
  display: flex;
  align-items: center;
}

.topbar,
.section-heading {
  justify-content: space-between;
  gap: 18px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(2.35rem, 4.6vw, 4.3rem);
  line-height: 1;
  letter-spacing: 0;
  font-weight: 500;
}

.market-tagline {
  max-width: 760px;
  margin: 14px 0 0;
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.55;
}

h2 {
  margin-bottom: 4px;
  font-size: 1.05rem;
  font-weight: 500;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  font-weight: 400;
}

.topbar-actions {
  gap: 10px;
}

.icon-button,
.primary-action,
.secondary-action,
.save-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 3px;
  border: 1px solid var(--line);
}

.icon-button {
  width: 42px;
  background: var(--white);
  color: var(--ink);
}

.icon-button svg,
.primary-action svg,
.secondary-action svg,
.save-button svg {
  width: 19px;
  flex: 0 0 auto;
}

.primary-action {
  gap: 8px;
  padding: 0 16px;
  border-color: var(--key);
  background: var(--key);
  color: #ffffff;
  font-weight: 500;
}

.secondary-action {
  gap: 8px;
  padding: 0 16px;
  background: var(--white);
  color: var(--ink);
  font-weight: 500;
}

.search-band {
  margin: 38px 0 30px;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 16px;
  background: var(--panel);
  box-shadow: none;
  scroll-margin-top: 96px;
}

.search-box {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--white);
  color: var(--muted);
}

.search-box input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
}

.select-row {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.select-row label,
.sort-control,
.modal-card label,
.modal-card .rich-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.search-band .select-row label,
.search-band .sort-control {
  font-weight: 600;
}

.field-label {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
}

.required-mark {
  color: #c1121f;
  font-weight: 600;
}

.select-row label {
  flex: 1 1 150px;
}

select,
.modal-card input,
.modal-card textarea {
  min-height: 42px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--white);
  color: var(--ink);
  padding: 0 12px;
}

.modal-card input[type="file"] {
  padding: 9px 12px;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #3f4650;
  font-size: 0.9rem;
  line-height: 1.45;
}

.checkbox-field input {
  min-height: auto;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  border: 0;
  padding: 0;
  accent-color: var(--ink);
  flex: 0 0 auto;
}

.checkbox-field a {
  color: var(--ink);
  font-weight: 500;
  text-underline-offset: 3px;
}

.modal-card textarea {
  min-height: 108px;
  padding-top: 10px;
  resize: vertical;
}

.rich-hidden-value {
  display: none;
}

.rich-editor-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--white);
}

.rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 40px;
  border-bottom: 1px solid var(--line);
  background: #f3f4f6;
  padding: 6px;
}

.rich-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 28px;
  border: 1px solid #d2d6de;
  border-radius: 3px;
  background: #ffffff;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1;
}

.rich-tool:hover,
.rich-tool:focus-visible {
  border-color: #9aa1ad;
  background: #eef0f3;
}

.rich-tool.text-tool {
  width: 36px;
  font-size: 0.78rem;
}

.rich-editor {
  min-height: 118px;
  max-height: 260px;
  overflow: auto;
  padding: 11px 12px;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 400;
  line-height: 1.5;
  outline: 0;
}

.rich-editor:empty::before {
  color: #8a9099;
  content: attr(data-placeholder);
  pointer-events: none;
}

.rich-editor p,
.rich-editor ul,
.rich-editor ol {
  margin: 0 0 8px;
}

.rich-editor ul,
.rich-editor ol {
  padding-left: 20px;
}

.rich-editor li + li {
  margin-top: 4px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  align-items: start;
  gap: 28px;
}

.content-grid.guest-marketplace {
  grid-template-columns: minmax(0, 1fr);
}

.content-grid.guest-marketplace .details-pane,
.content-grid.list-only .details-pane {
  display: none;
}

.content-grid.list-only {
  grid-template-columns: minmax(0, 1fr);
}

.market-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  color: var(--muted);
  font-size: 0.88rem;
}

.market-footer div {
  display: grid;
  gap: 3px;
}

.market-footer strong {
  color: var(--ink);
  font-weight: 500;
}

.market-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
}

.market-footer a {
  color: #32363d;
  font-weight: 500;
  text-decoration: none;
}

.market-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-copy {
  text-align: right;
}

.results-pane,
.details-card {
  min-width: 0;
}

.details-pane {
  position: sticky;
  top: 92px;
  align-self: start;
  max-height: calc(100vh - 112px);
  overflow-y: auto;
}

.section-heading {
  margin-bottom: 12px;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
}

.sort-control {
  min-width: 150px;
}

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

.job-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 18px;
  background: #ffffff;
  color: inherit;
  text-align: left;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.job-card:hover,
.job-card.selected {
  border-color: #111111;
  box-shadow: none;
  transform: none;
}

.company-logo {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 3px;
  border: 1px solid var(--line);
  background: #eef0f3;
  color: #18181b;
  font-weight: 500;
  overflow: hidden;
}

.company-logo img,
.account-avatar img,
.profile-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.company-logo.image-logo {
  background: #ffffff;
}

.company-logo.image-logo img {
  object-fit: contain;
}

.company-logo.anonymous-logo {
  background: #f4f4f4;
  color: #5f6368;
}

.job-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.job-title-row h3 {
  overflow: hidden;
  margin-bottom: 2px;
  color: #202124;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.details-card h2,
.details-card h3,
.pipeline-card h3,
.tracker-card h3,
.applicant-card h3 {
  font-weight: 400;
}

.new-badge {
  flex: 0 0 auto;
  border-radius: 3px;
  padding: 3px 7px;
  background: #e4e7ec;
  color: #333333;
  font-size: 0.72rem;
  font-weight: 500;
}

.meta-line,
.tag-row,
.detail-meta,
.tracker-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-line {
  color: var(--muted);
  font-size: 0.9rem;
}

.tag-row {
  margin-top: 10px;
}

.tag {
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 4px 8px;
  background: #f8f9fb;
  color: #3f3f46;
  font-size: 0.78rem;
  font-weight: 500;
}

.selected-skills {
  min-height: 34px;
}

.skill-filter-actions {
  margin-top: 10px;
}

.removable-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.removable-tag span {
  color: var(--muted);
  font-weight: 500;
}

.salary {
  color: #111111;
  font-weight: 500;
  white-space: nowrap;
}

.save-button {
  width: 42px;
  background: #ffffff;
  color: var(--muted);
}

.save-button.saved {
  border-color: #111111;
  background: #e4e7ec;
  color: #111111;
}

.details-card {
  position: static;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 22px;
  background: var(--panel);
  box-shadow: none;
}

.details-hero {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.company-logo-link {
  display: block;
  width: 62px;
  height: 62px;
  color: inherit;
  text-decoration: none;
}

.company-logo-link:hover .company-logo {
  border-color: var(--ink);
}

.company-site-action {
  display: inline-flex;
  margin-top: 8px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.details-hero .company-logo {
  width: 62px;
  height: 62px;
}

.detail-meta {
  color: var(--muted);
}

.compensation-callout {
  display: grid;
  gap: 2px;
  width: min(100%, 340px);
  margin-top: 12px;
  border: 2px solid #111111;
  border-radius: 6px;
  padding: 10px 12px;
  background: #fff1a8;
  color: #111111;
  box-shadow: 3px 3px 0 rgba(17, 17, 17, 0.18);
}

.compensation-callout span {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.compensation-callout strong {
  font-size: 1.16rem;
  line-height: 1.15;
}

.detail-section {
  margin-top: 18px;
}

.detail-section p,
.detail-section li {
  color: #444444;
  line-height: 1.55;
}

.detail-rich {
  color: #444444;
  line-height: 1.55;
}

.detail-rich p,
.detail-rich ul,
.detail-rich ol {
  margin: 0 0 10px;
}

.detail-rich ul,
.detail-rich ol {
  padding-left: 20px;
}

.detail-rich p:last-child,
.detail-rich ul:last-child,
.detail-rich ol:last-child {
  margin-bottom: 0;
}

.detail-section ul {
  margin: 0;
  padding-left: 18px;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 10px;
  margin-top: 18px;
}

.external-detail-actions {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px;
}

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

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 3px;
  padding: 28px;
  background: var(--panel);
  color: var(--muted);
  text-align: center;
}

.tracker-card {
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 14px;
  background: var(--panel);
}

.pipeline-card {
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 16px;
  background: var(--panel);
  box-shadow: none;
}

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

.billing-card {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(150px, auto) minmax(120px, auto) minmax(120px, auto);
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 16px;
  background: var(--panel);
}

.billing-card h3 {
  margin-bottom: 4px;
}

.billing-payment {
  display: grid;
  gap: 4px;
  justify-items: end;
}

.billing-amount {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 500;
  text-align: right;
}

.billing-card-last4 {
  color: var(--muted);
  font-size: 0.78rem;
}

.billing-period {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.billing-period strong {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
}

.billing-period em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
  gap: 14px;
}

.profile-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 18px;
  background: var(--panel);
}

.profile-card label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.profile-card input,
.profile-card textarea {
  min-height: 42px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--white);
  color: var(--ink);
  padding: 0 12px;
}

.profile-card input[type="file"] {
  padding: 9px 12px;
}

.profile-card textarea {
  min-height: 132px;
  padding-top: 10px;
  resize: vertical;
}

.profile-card input[readonly] {
  background: #eef0f3;
  color: #4b5563;
  cursor: default;
}

.single-profile-grid {
  grid-template-columns: minmax(320px, 560px);
}

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

.account-avatar,
.profile-image-preview {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f4f4f4;
  color: var(--ink);
  font-weight: 500;
}

.account-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 0.78rem;
}

.profile-image-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.profile-image-preview {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  font-size: 1.1rem;
}

.profile-image-preview.logo-preview {
  border-radius: 3px;
  background: #ffffff;
}

.profile-image-preview.logo-preview img {
  object-fit: contain;
  padding: 8px;
  box-sizing: border-box;
}

.profile-resume {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 14px;
  background: #ffffff;
}

.profile-resume strong,
.profile-resume span {
  display: block;
}

.profile-resume span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
}

.applicant-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.applicant-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 180px;
  gap: 14px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 14px;
  background: #ffffff;
}

.applicant-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #f4f4f4;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 500;
}

.applicant-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.applicant-card p {
  margin: 8px 0 0;
  color: #444444;
  line-height: 1.45;
}

.applicant-name-button {
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 500;
  padding: 0;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
}

.applicant-name-button:hover,
.applicant-name-button:focus-visible {
  text-decoration-color: currentColor;
}

.resume-link {
  margin-top: 10px;
  border: 0;
  background: transparent;
  color: #111111;
  cursor: pointer;
  font: inherit;
  font-weight: 500;
  padding: 0;
  text-align: left;
}

#candidateProfileDialog {
  width: min(620px, calc(100vw - 28px));
}

.candidate-profile {
  display: grid;
  gap: 16px;
}

.candidate-profile-head {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 14px;
  background: #ffffff;
}

.candidate-profile-avatar {
  width: 60px;
  height: 60px;
}

.candidate-profile-head strong,
.candidate-profile-head span,
.candidate-profile-head em {
  display: block;
}

.candidate-profile-head strong {
  font-size: 1.05rem;
  font-weight: 500;
}

.candidate-profile-head span,
.candidate-profile-head em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.88rem;
  font-style: normal;
}

.candidate-profile-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.candidate-profile-details div,
.candidate-profile-note {
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 12px;
  background: #ffffff;
}

.candidate-profile-details dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 500;
  text-transform: uppercase;
}

.candidate-profile-details dd {
  margin: 0;
  color: #333333;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.candidate-profile-details a,
.candidate-profile-actions a {
  color: var(--ink);
  font-weight: 500;
  text-underline-offset: 3px;
}

.candidate-profile-skills {
  gap: 6px;
}

.candidate-link-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 18px;
}

.candidate-profile-note strong {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
}

.candidate-profile-note p {
  margin: 0;
  color: #444444;
  line-height: 1.5;
}

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

.status-control {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.empty-state.compact {
  padding: 16px;
}

.tracker-row {
  align-items: center;
  justify-content: space-between;
}

.status-pill {
  border-radius: 3px;
  padding: 4px 9px;
  background: #e4e7ec;
  color: #111111;
  font-size: 0.78rem;
  font-weight: 500;
}

dialog {
  width: min(520px, calc(100vw - 28px));
  border: 0;
  border-radius: 3px;
  padding: 0;
  box-shadow: var(--shadow);
}

#legalDialog {
  width: min(760px, calc(100vw - 28px));
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.45);
}

.modal-card {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.modal-head {
  justify-content: space-between;
  gap: 16px;
}

.modal-actions {
  justify-content: end;
  gap: 10px;
  margin-top: 4px;
}

.legal-card {
  gap: 18px;
}

.legal-updated {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.legal-body {
  display: grid;
  gap: 18px;
  max-height: min(62vh, 560px);
  overflow: auto;
  padding-right: 8px;
}

.legal-intro,
.legal-section p,
.legal-section li {
  color: #3f4650;
  font-size: 0.94rem;
  line-height: 1.58;
}

.legal-intro,
.legal-section p,
.legal-section ul {
  margin: 0;
}

.legal-section {
  display: grid;
  gap: 8px;
}

.legal-section h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
}

.legal-section ul {
  padding-left: 20px;
}

.legal-section li + li {
  margin-top: 6px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  border-radius: 3px;
  background: var(--soft);
  padding: 4px;
}

.auth-tab {
  min-height: 38px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: var(--muted);
  font-weight: 500;
}

.auth-tab.active {
  background: var(--panel);
  color: var(--ink);
  box-shadow: none;
}

.auth-confirmation {
  display: none;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 18px;
  background: var(--soft);
}

.auth-confirmation strong {
  font-size: 1.05rem;
}

.auth-confirmation p {
  margin: 0;
  color: #444444;
  line-height: 1.5;
}

.auth-confirmation .primary-action {
  justify-self: start;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.text-action {
  justify-self: start;
  border: 0;
  background: transparent;
  color: #111111;
  font-weight: 500;
  padding: 0;
}

.small-action {
  min-height: 34px;
  border: 1px solid var(--key);
  border-radius: 3px;
  background: var(--key);
  color: #ffffff;
  font-weight: 500;
  padding: 0 12px;
}

.admin-body {
  background: var(--paper);
}

.admin-shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.admin-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.admin-summary div,
.admin-panel {
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--panel);
  box-shadow: none;
}

.admin-summary div {
  padding: 16px;
}

.admin-summary span,
.admin-table span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}

.admin-summary strong {
  display: block;
  margin-top: 4px;
  font-size: 1.6rem;
}

.admin-panel {
  padding: 18px;
}

.admin-panel + .admin-panel {
  margin-top: 18px;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 1520px;
  border-collapse: collapse;
}

.admin-email-table {
  min-width: 980px;
}

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

.admin-table th {
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-table td {
  color: #444444;
}

.admin-table td strong {
  display: block;
  color: var(--ink);
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.admin-empty {
  color: var(--muted);
  text-align: center;
}

.status-pill.warning {
  background: #e4e7ec;
  color: #333333;
}

.status-pill.draft,
.status-pill.inactive {
  background: #d8dbe1;
  color: #333333;
}

@media (max-width: 1050px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .nav-list {
    grid-auto-flow: column;
    margin-left: auto;
  }

  .sidebar-panel {
    display: none;
  }

  .support-panel {
    order: 4;
    width: 100%;
  }

  .account-panel {
    order: 3;
    width: 100%;
  }

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

  .details-pane {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .details-card {
    position: static;
  }
}

@media (max-width: 720px) {
  .workspace,
  .sidebar {
    padding: 18px;
  }

  .topbar,
  .section-heading,
  .select-row {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-actions {
    justify-content: space-between;
  }

  .market-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .market-footer nav {
    justify-content: flex-start;
  }

  .footer-copy {
    text-align: left;
  }

  .primary-action {
    flex: 1;
  }

  .nav-list {
    grid-auto-flow: row;
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    width: 100%;
    margin-left: 0;
  }

  .nav-item {
    justify-content: center;
    padding: 0 8px;
  }

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

  .company-logo {
    width: 44px;
    height: 44px;
  }

  .salary {
    grid-column: 2 / 4;
  }

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

  .applicant-card .status-control {
    grid-column: 1 / -1;
  }

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

  .candidate-profile-head {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .candidate-profile-avatar {
    width: 52px;
    height: 52px;
  }

  .billing-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .billing-amount {
    text-align: left;
  }

  .billing-payment {
    justify-items: start;
  }

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

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

  .admin-topbar,
  .admin-summary {
    grid-template-columns: 1fr;
    align-items: stretch;
    flex-direction: column;
  }
}

/* Open NPS-inspired marketplace shell refresh */
:root {
  --ink: #071827;
  --muted: #506070;
  --soft: #edf4fb;
  --line: #e2e8f0;
  --paper: #f6f8fb;
  --panel: #ffffff;
  --white: #ffffff;
  --accent: #2563eb;
  --accent-soft: #e8f1ff;
  --accent-sky: #00a8e8;
  --key: #2563eb;
  --shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.10), 0 4px 6px -4px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 22px 60px rgba(15, 23, 42, 0.14);
}

body {
  background: var(--paper);
  color: var(--ink);
}

.app-shell {
  display: block;
  width: 100%;
  max-width: 1200px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 24px 56px;
}

.sidebar {
  position: sticky;
  z-index: 20;
  top: 0;
  height: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin: 0 -24px;
  padding: 14px 24px;
  border-right: 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.86);
  background: rgba(246, 248, 251, 0.92);
  backdrop-filter: blur(12px);
}

.brand {
  min-width: max-content;
  gap: 10px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--ink);
}

.brand strong {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
}

.brand span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.nav-list {
  display: flex;
  min-width: 0;
  gap: 4px;
  justify-content: center;
  overflow-x: auto;
}

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

.nav-item {
  min-height: 38px;
  border-radius: 8px;
  padding: 0 10px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
}

.nav-item svg {
  width: 17px;
}

.nav-item:hover,
.nav-item.active {
  border-color: transparent;
  background: #ffffff;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.account-panel {
  min-width: 190px;
  max-width: 270px;
  border-color: var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.account-name {
  font-weight: 800;
}

.account-meta {
  color: var(--muted);
  font-weight: 700;
}

.sidebar-panel,
.support-panel {
  display: none;
}

.workspace {
  padding: 0;
}

.workspace > .search-band:first-of-type {
  margin-top: 32px;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 500px);
  align-items: center;
  gap: 42px;
  min-height: calc(100vh - 132px);
  padding: 58px 0 48px;
}

.hero-copy {
  display: grid;
  gap: 20px;
  max-width: 720px;
}

.eyebrow,
.panel-kicker {
  margin-bottom: 0;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(3rem, 6.6vw, 5.9rem);
  font-weight: 900;
  line-height: 0.95;
}

.market-tagline {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.62;
}

.topbar-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.icon-button,
.primary-action,
.secondary-action,
.save-button,
.support-link {
  min-height: 44px;
  border-radius: 8px;
  font-weight: 800;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.primary-action {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.20);
}

.secondary-action,
.icon-button,
.save-button {
  border-color: var(--line);
  background: #ffffff;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.primary-action:hover,
.secondary-action:hover,
.icon-button:hover,
.save-button:hover {
  transform: translateY(-1px);
}

.primary-action:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.secondary-action:hover,
.icon-button:hover,
.save-button:hover {
  border-color: rgba(37, 99, 235, 0.35);
  background: #f8fbff;
}

.proof-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 720px;
}

.proof-row div,
.dashboard-card,
.quote-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.proof-row div {
  padding: 16px;
}

.proof-row strong,
.proof-row span,
.dashboard-card-top span,
.campaign-row strong,
.campaign-row span {
  display: block;
}

.proof-row strong {
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 900;
}

.proof-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.hero-visual {
  display: grid;
  gap: 16px;
}

.dashboard-card {
  padding: 18px;
  box-shadow: var(--shadow-lg);
}

.dashboard-card-top,
.metric-line,
.campaign-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-card-top {
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
}

.metric-line {
  padding: 22px 0;
}

.metric-line strong {
  color: var(--accent);
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
}

.metric-line span {
  max-width: 180px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.bar-stack {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.bar-stack span {
  display: block;
  height: 10px;
  border-radius: 999px;
}

.bar-stack span:first-child {
  width: 94%;
  background: var(--accent-sky);
}

.bar-stack span:nth-child(2) {
  width: 64%;
  background: #f59e0b;
}

.bar-stack span:nth-child(3) {
  width: 30%;
  background: #10b981;
}

.campaign-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 12px;
}

.campaign-row strong {
  color: var(--ink);
  font-weight: 900;
}

.campaign-row span {
  color: var(--muted);
  font-size: 0.83rem;
}

.status {
  color: var(--accent) !important;
  background: rgba(37, 99, 235, 0.12);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem !important;
  font-weight: 900;
}

.quote-card {
  border-left: 3px solid var(--accent-sky);
  padding: 16px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.search-band {
  margin: 0 0 28px;
  border-radius: 8px;
  padding: 18px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.search-box,
select,
.modal-card input,
.modal-card textarea,
.profile-card input,
.profile-card textarea,
.rich-editor-shell {
  border-radius: 8px;
  background: var(--paper);
}

.search-box {
  min-height: 56px;
  border-color: var(--line);
}

.search-box input {
  background: transparent;
}

.select-row {
  gap: 12px;
}

.select-row label,
.sort-control,
.modal-card label,
.modal-card .rich-field,
.profile-card label {
  color: var(--muted);
  font-weight: 800;
}

.content-grid {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  gap: 28px;
}

.section-heading {
  margin-bottom: 14px;
}

h2 {
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 900;
}

h3,
.details-card h2,
.details-card h3,
.pipeline-card h3,
.tracker-card h3,
.applicant-card h3 {
  font-weight: 800;
}

.job-list {
  gap: 12px;
}

.job-card,
.details-card,
.tracker-card,
.pipeline-card,
.billing-card,
.profile-card,
.empty-state {
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.job-card {
  border-color: var(--line);
  padding: 18px;
}

.job-card:hover,
.job-card.selected {
  border-color: rgba(37, 99, 235, 0.42);
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.company-logo {
  border-radius: 8px;
  background: var(--paper);
  font-weight: 900;
}

.tag,
.new-badge,
.status-pill {
  border-radius: 999px;
}

.tag {
  background: var(--paper);
}

.details-card {
  padding: 24px;
}

.market-footer {
  border-top-color: var(--line);
  margin-top: 42px;
}

.admin-body {
  background: var(--paper);
}

@media (max-width: 1050px) {
  .app-shell {
    padding: 18px 18px 44px;
  }

  .sidebar {
    grid-template-columns: 1fr;
    margin: 0 -18px;
    padding: 14px 18px;
  }

  .brand,
  .nav-list,
  .header-actions,
  .account-panel {
    justify-self: stretch;
  }

  .brand {
    justify-content: center;
  }

  .nav-list {
    justify-content: flex-start;
  }

  .account-panel {
    width: auto;
    max-width: none;
  }

  .header-actions {
    justify-content: flex-end;
  }

  .topbar {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 44px 0 36px;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-visual {
    max-width: 640px;
  }

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

  .details-card {
    position: static;
  }
}

@media (max-width: 720px) {
  .workspace,
  .sidebar {
    padding: 14px 16px;
  }

  .app-shell {
    padding: 0 16px 36px;
  }

  .sidebar {
    margin: 0 -16px;
  }

  .topbar {
    padding-top: 34px;
  }

  h1 {
    font-size: clamp(2.55rem, 13vw, 3.45rem);
  }

  .market-tagline {
    font-size: 1rem;
  }

  .proof-row {
    grid-template-columns: 1fr;
  }

  .topbar-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-actions .primary-action,
  .topbar-actions .secondary-action,
  .topbar-actions .icon-button {
    width: 100%;
    flex: none;
  }

  .metric-line {
    align-items: flex-start;
    flex-direction: column;
  }

  .metric-line span {
    max-width: none;
  }

  .campaign-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-list {
    grid-auto-flow: unset;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .nav-item {
    justify-content: center;
  }

  .header-actions {
    justify-content: stretch;
    min-width: 0;
  }

  .header-actions .secondary-action {
    width: 100%;
  }
}
