* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--vm-color-mist);
  color: var(--vm-color-night);
  font-family: var(--vm-font-sans);
  line-height: 1.5;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

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

:focus-visible {
  outline: none;
  box-shadow: var(--vm-shadow-focus);
}

.skip-link {
  left: 16px;
  padding: 10px 14px;
  position: fixed;
  top: -80px;
  z-index: 30;
  border-radius: var(--vm-radius-sm);
  background: var(--vm-color-night);
  color: var(--vm-color-white);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  top: 16px;
}

.shell {
  width: min(100% - 32px, var(--vm-shell));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(203, 213, 225, 0.75);
  background: rgba(248, 250, 252, 0.94);
  backdrop-filter: blur(16px);
}

.header-shell {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  min-width: 148px;
}

.logo-image {
  width: 176px;
  height: auto;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 18px;
  color: var(--vm-color-slate-700);
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a {
  border-radius: var(--vm-radius-pill);
  padding: 9px 10px;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--vm-color-teal);
}

.site-nav .nav-cta {
  background: var(--vm-color-teal);
  color: var(--vm-color-white);
  padding-inline: 16px;
}

.menu-button {
  border: 1px solid var(--vm-color-slate-300);
  border-radius: var(--vm-radius-pill);
  background: var(--vm-color-white);
  color: var(--vm-color-night);
  cursor: pointer;
  font-weight: 800;
  padding: 10px 14px;
}

.site-nav.open {
  position: absolute;
  top: 76px;
  right: 16px;
  left: 16px;
  display: grid;
  gap: 8px;
  border: 1px solid var(--vm-color-slate-200);
  border-radius: var(--vm-radius-lg);
  background: var(--vm-color-white);
  padding: 14px;
  box-shadow: var(--vm-shadow-card);
}

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--vm-radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.1;
  padding: 12px 18px;
  text-decoration: none;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
}

.btn-primary {
  background: var(--vm-color-teal);
  color: var(--vm-color-white);
}

.btn-primary:hover {
  background: #006b73;
  box-shadow: var(--vm-shadow-soft);
}

.btn-secondary {
  border-color: var(--vm-color-slate-300);
  background: var(--vm-color-white);
  color: var(--vm-color-night);
}

.btn-secondary:hover {
  border-color: var(--vm-color-teal);
  color: var(--vm-color-teal);
  box-shadow: var(--vm-shadow-soft);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.22);
  background: transparent;
  color: inherit;
}

.btn.full {
  width: 100%;
}

.badge,
.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: var(--vm-radius-pill);
  font-size: 0.82rem;
  font-weight: 800;
  gap: 7px;
  padding: 7px 11px;
  white-space: nowrap;
}

.badge-mint,
.status-neutral {
  background: var(--vm-color-mint);
  color: var(--vm-color-night);
}

.badge-outline {
  border: 1px solid var(--vm-color-slate-300);
  background: var(--vm-color-white);
  color: var(--vm-color-slate-700);
}

.badge-success,
.status-success {
  background: rgba(15, 118, 110, 0.12);
  color: #0b5f59;
}

.badge-warning,
.status-warning {
  background: rgba(180, 83, 9, 0.13);
  color: #8a3d08;
}

.status-pill span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}

.hero-section {
  background: var(--vm-color-white);
  border-bottom: 1px solid var(--vm-color-slate-200);
}

.hero-grid {
  display: grid;
  gap: 34px;
  padding: 56px 0 42px;
}

.hero-copy {
  max-width: 760px;
}

.hero-badges,
.hero-actions,
.section-action,
.keyword-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-copy h1,
.page-hero h1 {
  margin: 18px 0 18px;
  max-width: 820px;
  color: var(--vm-color-night);
  font-size: clamp(2.35rem, 8vw, 4.75rem);
  letter-spacing: 0;
  line-height: 0.98;
}

.hero-subtitle,
.page-hero p {
  max-width: 720px;
  color: var(--vm-color-slate-700);
  font-size: 1.08rem;
}

.hero-microcopy {
  color: var(--vm-color-slate-500);
  font-weight: 700;
}

.operations-panel {
  border: 1px solid var(--vm-color-slate-200);
  border-radius: var(--vm-radius-lg);
  background: var(--vm-color-night);
  color: var(--vm-color-white);
  padding: 18px;
  box-shadow: var(--vm-shadow-card);
}

.panel-header,
.card-title-row,
.app-topbar,
.source-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.coverage-route {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.coverage-route span {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--vm-radius-sm);
  background: rgba(255, 255, 255, 0.06);
  padding: 12px;
}

.shift-card,
.doctor-match,
.calm-block,
.card,
.workspace-card,
.metric-card,
.form-card,
.login-card {
  border: 1px solid var(--vm-color-slate-200);
  border-radius: var(--vm-radius-lg);
  background: var(--vm-color-white);
  box-shadow: var(--vm-shadow-soft);
}

.shift-card,
.doctor-match {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--vm-color-night);
  padding: 14px;
}

.shift-card.urgent {
  border-color: rgba(197, 58, 46, 0.3);
}

.shift-card small,
.doctor-match small,
td small {
  display: block;
  color: var(--vm-color-slate-500);
  font-size: 0.86rem;
}

.doctor-match {
  margin-top: 12px;
}

.avatar-mark {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--vm-color-mint);
  color: var(--vm-color-teal);
  font-weight: 900;
}

.section {
  padding: 58px 0;
}

.pain-section,
.mint-band {
  background: var(--vm-color-mint);
}

.solution-section,
.security-section {
  background: var(--vm-color-white);
}

.two-column,
.dashboard-grid,
.source-layout {
  display: grid;
  gap: 24px;
}

.section-heading {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--vm-color-teal);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-heading h2,
.final-cta h2,
.workspace-card h2 {
  margin: 0;
  color: var(--vm-color-night);
  font-size: clamp(1.65rem, 5vw, 2.7rem);
  letter-spacing: 0;
  line-height: 1.08;
}

.section-heading p,
.card p,
.calm-block p,
.workspace-card p {
  color: var(--vm-color-slate-700);
}

.calm-block,
.card,
.workspace-card,
.metric-card,
.form-card {
  padding: 22px;
}

.card h3,
.calm-block h3,
.steps h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.feature-grid,
.card-grid,
.metric-grid {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.steps {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.steps article {
  border-left: 4px solid var(--vm-color-teal);
  background: var(--vm-color-white);
  padding: 18px;
}

.steps span {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--vm-color-night);
  color: var(--vm-color-white);
  font-weight: 900;
}

.badge-cloud {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 12px;
}

.final-cta {
  padding: 58px 0;
  background: var(--vm-color-night);
  color: var(--vm-color-white);
}

.final-cta-inner {
  display: grid;
  gap: 18px;
}

.final-cta h2,
.final-cta p {
  color: var(--vm-color-white);
}

.site-footer {
  background: #06161f;
  color: var(--vm-color-white);
  padding: 36px 0;
}

.footer-shell {
  display: grid;
  gap: 24px;
}

.footer-shell p {
  color: rgba(255, 255, 255, 0.78);
}

.footer-shell nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.footer-shell a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.page-hero {
  padding: 56px 0;
  background: var(--vm-color-white);
  border-bottom: 1px solid var(--vm-color-slate-200);
}

.page-hero.compact h1 {
  font-size: clamp(2.1rem, 7vw, 3.8rem);
}

.form-shell {
  max-width: 760px;
}

.field {
  display: grid;
  gap: 8px;
  color: var(--vm-color-slate-700);
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--vm-color-slate-300);
  border-radius: var(--vm-radius-sm);
  background: var(--vm-color-white);
  color: var(--vm-color-night);
  padding: 12px 13px;
}

.field textarea {
  resize: vertical;
}

.check-field {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--vm-color-slate-700);
  font-weight: 800;
}

.login-section {
  display: grid;
  min-height: calc(100vh - 76px);
  place-items: center;
  padding: 42px 16px;
}

.login-card {
  width: min(100%, 440px);
  padding: 26px;
}

.login-brand {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.auth-form,
.source-form {
  display: grid;
  gap: 16px;
}

.alert {
  border-radius: var(--vm-radius-sm);
  margin-bottom: 16px;
  padding: 12px 14px;
  font-weight: 800;
}

.alert-danger {
  background: rgba(197, 58, 46, 0.12);
  color: #9a241b;
}

.app-layout {
  display: grid;
  min-height: calc(100vh - 76px);
  background: var(--vm-color-mist);
}

.app-sidebar {
  display: grid;
  gap: 22px;
  align-content: start;
  background: var(--vm-color-night);
  color: var(--vm-color-white);
  padding: 22px;
}

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

.app-sidebar a {
  border-radius: var(--vm-radius-sm);
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
  padding: 10px 12px;
  text-decoration: none;
}

.app-sidebar a.active,
.app-sidebar a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--vm-color-white);
}

.app-main {
  min-width: 0;
  padding: 24px 16px 42px;
}

.app-topbar {
  margin-bottom: 22px;
}

.app-topbar h1 {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  line-height: 1.08;
}

.metric-grid {
  margin: 0 0 20px;
}

.metric-card span {
  display: block;
  color: var(--vm-color-teal);
  font-size: 2.1rem;
  font-weight: 900;
}

.metric-card p {
  margin: 4px 0 0;
  color: var(--vm-color-slate-700);
  font-weight: 800;
}

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

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--vm-color-slate-200);
  padding: 14px 12px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--vm-color-slate-500);
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.status-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.job-strip,
.tabs,
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
}

.job-strip {
  align-items: center;
  border: 1px solid var(--vm-color-slate-200);
  border-radius: var(--vm-radius-lg);
  background: var(--vm-color-white);
  margin-bottom: 18px;
  padding: 14px;
}

.tabs {
  align-items: center;
  margin-bottom: 18px;
}

.tabs a {
  border: 1px solid var(--vm-color-slate-300);
  border-radius: var(--vm-radius-pill);
  background: var(--vm-color-white);
  color: var(--vm-color-slate-700);
  font-weight: 900;
  padding: 10px 15px;
  text-decoration: none;
}

.tabs a.active {
  border-color: var(--vm-color-teal);
  background: var(--vm-color-teal);
  color: var(--vm-color-white);
}

.filter-bar {
  margin-bottom: 18px;
}

.filter-bar .field {
  min-width: 170px;
  flex: 1;
}

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

.source-item {
  display: grid;
  gap: 12px;
  border: 1px solid var(--vm-color-slate-200);
  border-radius: var(--vm-radius-sm);
  padding: 12px;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.source-item span,
.source-item small {
  display: block;
}

.source-item small {
  color: var(--vm-color-slate-500);
}

.source-item.selected {
  border-color: rgba(0, 122, 120, 0.5);
  background: rgba(223, 247, 244, 0.5);
  box-shadow: var(--vm-shadow-soft);
}

.source-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.source-actions {
  align-items: center;
}

.source-actions .btn {
  min-height: 34px;
  padding: 7px 12px;
}

.workspace-card.editing {
  border-color: rgba(0, 122, 120, 0.42);
  box-shadow: var(--vm-shadow-card);
}

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

.actions-cell .btn {
  min-height: 36px;
  padding: 8px 12px;
}

.status-action-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.status-action-form select {
  min-height: 36px;
  border: 1px solid var(--vm-color-slate-300);
  border-radius: var(--vm-radius-pill);
  background: var(--vm-color-white);
  color: var(--vm-color-night);
  font-weight: 800;
  padding: 8px 34px 8px 12px;
}

.link-button {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border-radius: var(--vm-radius-pill);
  color: var(--vm-color-teal);
  font-weight: 900;
  padding: 8px 0;
  text-decoration: none;
}

.location-stack {
  display: grid;
  gap: 4px;
}

.location-stack small {
  color: var(--vm-color-slate-500);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
}

.map-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  border-radius: var(--vm-radius-pill);
  color: var(--vm-color-teal);
  font-weight: 900;
  text-decoration: none;
}

.map-link:hover {
  color: var(--vm-color-night);
}

.map-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.inline-form {
  display: inline-flex;
}

.detail-nav {
  margin-bottom: 16px;
}

.opportunity-detail {
  display: grid;
  gap: 18px;
}

.detail-header {
  display: grid;
  gap: 16px;
  border-bottom: 1px solid var(--vm-color-slate-200);
  padding-bottom: 18px;
}

.detail-header h1 {
  max-width: 1040px;
  margin: 0 0 14px;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.14;
}

.detail-grid {
  display: grid;
  gap: 16px;
}

.detail-panel {
  border: 1px solid var(--vm-color-slate-200);
  border-radius: var(--vm-radius-sm);
  background: var(--vm-color-white);
  padding: 16px;
}

.detail-panel h2 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.detail-panel p {
  margin: 0;
  color: var(--vm-color-slate-700);
}

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

.detail-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.detail-list div {
  min-width: 0;
  border-top: 1px solid var(--vm-color-slate-200);
  padding-top: 10px;
}

.detail-list div:first-child {
  border-top: 0;
  padding-top: 0;
}

.detail-list dt {
  color: var(--vm-color-slate-500);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-list dd {
  margin: 3px 0 0;
  color: var(--vm-color-night);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.raw-detail {
  border: 1px solid var(--vm-color-slate-200);
  border-radius: var(--vm-radius-sm);
  background: var(--vm-color-mist);
  padding: 14px 16px;
}

.raw-detail summary {
  cursor: pointer;
  font-weight: 900;
}

.raw-detail pre {
  max-height: 420px;
  overflow: auto;
  border-radius: var(--vm-radius-sm);
  background: var(--vm-color-night);
  color: var(--vm-color-white);
  font-size: 0.82rem;
  margin: 14px 0 0;
  padding: 14px;
  white-space: pre-wrap;
}

@media (min-width: 760px) {
  .feature-grid,
  .card-grid,
  .metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .card-grid:not(.three) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .footer-shell {
    grid-template-columns: 1.4fr 1fr;
  }

  .source-item {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

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

  .detail-header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .detail-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  }

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

  .detail-list.compact {
    grid-template-columns: 1fr;
  }

  .detail-list:not(.compact) div:nth-child(2) {
    border-top: 0;
    padding-top: 0;
  }
}

@media (min-width: 980px) {
  .menu-button {
    display: none;
  }

  .site-nav {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
    min-height: 640px;
  }

  .two-column,
  .dashboard-grid,
  .source-layout {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
    align-items: start;
  }

  .app-layout {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .app-main {
    padding: 34px;
  }
}
