: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;
}

.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;
}

.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;
}

.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: sticky;
  top: 28px;
  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);
}

.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;
}

.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(3, 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-table-wrap {
  overflow-x: auto;
}

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

.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-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;
  }
}
