:root {
  --navy: #001a4d;
  --navy-2: #062b69;
  --blue: #0057ff;
  --green: #05984f;
  --ink: #001a4d;
  --muted: #526384;
  --line: #dbe4f0;
  --soft-line: #e8edf5;
  --page: #fbfcff;
  --card: #ffffff;
  --shadow: 0 10px 32px rgba(0, 30, 84, 0.08);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

svg {
  display: block;
  width: 1em;
  height: 1em;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--navy);
  line-height: 1;
}

.brand-symbol {
  display: grid;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--navy);
  font-size: 28px;
}

.brand-text {
  display: grid;
  gap: 6px;
}

.brand-text > span {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.21em;
}

.brand-text small {
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.36em;
}

.light-logo,
.light-logo .brand-symbol {
  color: #ffffff;
}

.public-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 60% 48%, rgba(0, 87, 255, 0.055), transparent 34%),
    #ffffff;
}

.public-shell {
  width: min(1298px, calc(100% - 52px));
  margin: 0 auto;
}

.public-header {
  border-bottom: 1px solid transparent;
  background: #ffffff;
}

.public-header-inner {
  display: flex;
  height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.public-nav {
  display: flex;
  gap: 58px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}

.public-main {
  display: grid;
}

.hero-panel {
  display: grid;
  justify-items: center;
  padding: 68px 0 26px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.4em;
}

.hero-panel h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(38px, 4.1vw, 54px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-panel h1 span {
  color: var(--blue);
}

.service-mark-symbol {
  display: inline-block;
  margin-left: 0.08em;
  font-size: 0.34em;
  line-height: 0;
  vertical-align: super;
}

.hero-copy {
  width: min(560px, 100%);
  margin: 20px 0 26px;
  color: #001b51;
  font-size: 17px;
  line-height: 1.55;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(250px, 1fr));
  gap: 34px;
  width: min(774px, 100%);
}

.portal-card {
  display: grid;
  justify-items: center;
  min-height: 208px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  padding: 24px 24px 20px;
  box-shadow: var(--shadow);
}

.portal-icon {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  border-radius: 999px;
  font-size: 38px;
}

.portal-icon.blue {
  color: var(--blue);
  background: #e8f0ff;
}

.portal-icon.green {
  color: var(--green);
  background: #dff7ea;
}

.portal-card h2 {
  margin: 13px 0 11px;
  font-size: 18px;
  line-height: 1.2;
}

.portal-card p {
  min-height: 42px;
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.52;
}

.portal-button {
  display: inline-flex;
  width: 100%;
  height: 50px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  align-self: end;
  border-radius: 5px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.portal-button.primary,
.signin-button,
.accept-button {
  background: linear-gradient(180deg, #073f92, #001f63);
}

.portal-button.success {
  background: linear-gradient(180deg, #08aa5d, #047e3f);
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-row article {
  display: grid;
  min-height: 166px;
  justify-items: center;
  align-content: center;
  border-right: 1px solid var(--line);
  padding: 20px 28px;
  text-align: center;
}

.trust-row article:last-child {
  border-right: 0;
}

.trust-row svg {
  margin-bottom: 15px;
  color: var(--navy);
  font-size: 38px;
}

.trust-row h3 {
  margin: 0 0 8px;
  font-size: 13px;
}

.trust-row p {
  max-width: 185px;
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
}

.public-footer {
  background: #ffffff;
}

.footer-grid {
  display: grid;
  min-height: 86px;
  grid-template-columns: 235px 1fr 260px;
  align-items: center;
  gap: 34px;
  border-bottom: 0;
}

.footer-grid p {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.footer-grid > a:last-child {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}

.footer-grid > a:last-child svg {
  font-size: 20px;
}

.copyright {
  margin: -16px 0 20px;
  color: var(--ink);
  text-align: center;
  font-size: 13px;
}

.service-mark-notice {
  margin: -10px 0 18px;
  color: #667085;
  text-align: center;
  font-size: 10px;
  line-height: 1.4;
}

.login-page {
  min-height: 100vh;
}

.login-screen {
  min-height: 100vh;
}

.login-shell {
  position: relative;
  display: grid;
  min-height: 100vh;
  justify-items: center;
  align-content: start;
  padding: 84px 24px 74px;
}

.medical-login .login-shell {
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 87, 255, 0.06), transparent 35%),
    #ffffff;
}

.provider-login .login-shell {
  background:
    radial-gradient(circle at 16% 8%, rgba(0, 87, 255, 0.22), transparent 28%),
    linear-gradient(145deg, #00235d 0%, #00163d 100%);
}

.login-card {
  width: min(390px, 100%);
  margin-top: 48px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #ffffff;
  padding: 30px 30px 34px;
  box-shadow: 0 20px 46px rgba(0, 22, 62, 0.12);
}

.login-card h1 {
  margin: 0 0 17px;
  color: var(--navy);
  font-size: 25px;
  line-height: 1.1;
}

.login-card p {
  margin: 0 0 27px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}

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

.login-form label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-size: 11px;
  font-weight: 850;
}

.input-wrap {
  display: flex;
  height: 49px;
  align-items: center;
  gap: 12px;
  border: 1px solid #cfd9e8;
  border-radius: 5px;
  background: #ffffff;
  color: var(--navy);
  padding: 0 14px;
}

.input-wrap svg {
  flex: 0 0 auto;
  font-size: 20px;
}

.input-wrap svg:last-child {
  margin-left: auto;
  font-size: 18px;
}

.input-wrap input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--ink);
  font-size: 13px;
}

.input-wrap input::placeholder {
  color: #5c6d89;
  opacity: 1;
}

.signin-button {
  display: inline-flex;
  height: 50px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 5px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.signin-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.login-card .login-message {
  margin: -4px 0 0;
  border: 1px solid #fed7aa;
  border-radius: 6px;
  background: #fff7ed;
  color: #9a3412;
  padding: 9px 11px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
}

.login-card .login-message[hidden] {
  display: none;
}

.review-signin-status {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 18px;
  border: 1px solid #d8e3f1;
  border-radius: 7px;
  background: #f8fbff;
  color: var(--navy);
  padding: 12px;
}

.review-signin-status svg {
  flex: 0 0 auto;
  margin-top: 1px;
}

.review-signin-status p {
  margin: 0;
  color: #304257;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.4;
}

.login-links {
  display: grid;
  gap: 22px;
  margin-top: 28px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.review-access-panel {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  border: 1px solid #cfe0f2;
  border-radius: 7px;
  background: #f7fbff;
  padding: 14px;
}

.review-access-panel strong {
  color: var(--navy);
  font-size: 13px;
  font-weight: 850;
}

.review-access-panel p {
  margin: 0;
  color: #435468;
  font-size: 12px;
  font-weight: 700;
}

.review-access-button {
  width: 100%;
}

.login-security {
  position: absolute;
  left: calc(50% - 183px);
  bottom: 58px;
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(368px, calc(100% - 48px));
  margin: 0;
  color: var(--navy);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.provider-login .login-security {
  color: #ffffff;
}

.login-security svg {
  flex: 0 0 auto;
  font-size: 29px;
}

.dashboard-page {
  min-height: 100vh;
  background: #ffffff;
}

.app-frame,
.provider-app {
  min-height: 100vh;
  background:
    radial-gradient(circle at 58% 50%, rgba(0, 87, 255, 0.04), transparent 36%),
    #ffffff;
}

.topbar {
  display: flex;
  height: 43px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  padding: 0 18px;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.topbar-left {
  position: relative;
}

.topbar-left strong {
  color: var(--navy);
  font-size: 19px;
  letter-spacing: 0;
}

.topbar-brand {
  gap: 10px;
}

.topbar-brand .brand-symbol {
  width: 22px;
  height: 22px;
  font-size: 22px;
}

.topbar-brand .brand-text {
  gap: 4px;
}

.topbar-brand .brand-text > span {
  font-size: 14px;
  letter-spacing: 0.24em;
}

.topbar-brand .brand-text small {
  font-size: 5px;
  letter-spacing: 0.35em;
}

.topbar-right {
  gap: 9px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 650;
}

.ghost-icon {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 0;
  color: var(--navy);
  background: transparent;
  padding: 0;
}

.ghost-icon svg {
  font-size: 22px;
}

.facility-topbar-menu {
  position: absolute;
  top: 31px;
  left: 0;
  z-index: 30;
  display: grid;
  min-width: 156px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  padding: 6px;
}

.facility-topbar-menu[hidden] {
  display: none;
}

.facility-topbar-menu a,
.facility-topbar-menu button {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  font: inherit;
  padding: 8px 10px;
  text-align: left;
  text-decoration: none;
}

.facility-topbar-menu a:hover,
.facility-topbar-menu button:hover {
  background: #f4f7fb;
}

.chevron {
  color: #5d6a83;
  font-size: 16px;
}

.avatar {
  display: inline-grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #eef2f8;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  padding: 0;
}

.dashboard-main {
  width: min(1138px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0 28px;
}

.compact-main {
  width: min(1128px, calc(100% - 48px));
}

.dashboard-heading {
  margin: 0 0 22px;
}

.dashboard-heading h1 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 26px;
  line-height: 1.1;
}

.dashboard-heading p {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
}

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

.summary-card {
  display: flex;
  min-width: 0;
  min-height: 80px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  background: #FAFBFC;
  padding: 18px 21px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.035);
}

.summary-card[data-dashboard-filter] {
  cursor: pointer;
}

.summary-card div {
  display: grid;
  gap: 8px;
}

.summary-card span {
  color: var(--navy);
  font-size: 11px;
  font-weight: 750;
}

.summary-card strong {
  color: var(--navy);
  font-size: 33px;
  line-height: 0.9;
}

.summary-card small {
  color: var(--ink);
  font-size: 11px;
}

.summary-card i {
  display: grid;
  width: 33px;
  height: 33px;
  place-items: center;
  font-size: 27px;
  font-style: normal;
}

.summary-card i.blue {
  color: var(--blue);
}

.summary-card i.orange {
  color: #f5a21a;
}

.summary-card i.green {
  color: #0bb65d;
}

.summary-card i.purple {
  color: #934cff;
}

.panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  background: #FAFBFC;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.032);
}

.panel-heading {
  display: flex;
  min-height: 47px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
}

.panel-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: 15px;
  line-height: 1.2;
}

.panel-heading a {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  border-top: 1px solid var(--soft-line);
  padding: 13px 20px;
  color: var(--navy);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.35;
}

.data-table th {
  font-size: 11px;
  font-weight: 850;
}

[data-trip-href] {
  cursor: pointer;
}

[data-trip-href]:focus-visible {
  outline: 2px solid #93C5FD;
  outline-offset: -2px;
}

.status {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 4px;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 750;
}

.mp-trip-status-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mp-cancel-trip-button {
  border: 0;
  color: #b42318;
  background: #fee4e2;
  cursor: pointer;
  font-family: inherit;
}

.mp-cancel-trip-button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.status.pending {
  color: #9b670e;
  background: #fff0c9;
}

.status.assigned {
  color: #1d4ed8;
  background: #dbeafe;
}

.status.confirmed {
  color: #048649;
  background: #dff7ea;
}

.status.completed {
  color: #475569;
  background: #e5e7eb;
}

.status.cancelled {
  color: #b42318;
  background: #fee4e2;
}

.status.escalation-pending {
  color: #b45309;
  background: #ffedd5;
}

.status.override-pending,
.status.assigned-override {
  color: #b42318;
  background: #fee4e2;
}

.mp-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 20px;
  margin-top: 17px;
}

.activity-feed,
.quick-actions {
  display: grid;
  gap: 0;
  padding: 8px 20px 18px;
}

.activity-feed div,
.updates-list div {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 9px 0;
}

.activity-feed svg {
  flex: 0 0 auto;
  color: #09a85a;
  font-size: 20px;
  margin-top: 2px;
}

.activity-feed div:nth-child(3) svg {
  color: var(--blue);
}

.mp-dashboard .activity-feed svg.activity-status-pending {
  color: #f5a21a;
}

.mp-dashboard .activity-feed svg.activity-status-confirmed {
  color: #09a85a;
}

.mp-dashboard .activity-feed svg.activity-status-completed {
  color: var(--blue);
}

.activity-feed div:nth-child(4) svg {
  color: #f13d4e;
}

.activity-feed p,
.updates-list p,
.support-strip p {
  display: grid;
  gap: 4px;
  margin: 0;
  color: var(--ink);
}

.activity-feed strong,
.updates-list strong,
.support-strip strong {
  color: var(--ink);
  font-size: 13px;
}

.activity-feed span,
.updates-list span,
.support-strip span {
  color: var(--muted);
  font-size: 12px;
}

.quick-actions {
  gap: 11px;
}

.quick-actions a,
.quick-action-button {
  display: grid;
  grid-template-columns: 22px 1fr;
  column-gap: 14px;
  row-gap: 3px;
  border: 0;
  background: transparent;
  color: var(--navy);
  padding: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.quick-actions .inline-icon {
  display: contents;
}

.quick-actions svg {
  grid-row: 1 / span 2;
  color: var(--blue);
  font-size: 22px;
  margin-top: 2px;
}

.quick-actions span:not(.inline-icon) {
  color: var(--navy);
  font-size: 13px;
  font-weight: 850;
}

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

.quick-action-button:focus-visible {
  outline: 2px solid #93C5FD;
  outline-offset: 3px;
}

.quick-action-button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.quick-check-btn {
  background: #EFF6FF;
  color: #0B2A5B;
  border: 2px solid #2563EB;
  border-radius: 10px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.18);
}

.quick-actions .quick-check-icon {
  grid-row: 1 / span 2;
  color: #0B2A5B;
  font-size: 16px;
  margin-top: 1px;
}

.quick-actions .quick-check-btn span:not(.inline-icon) {
  color: #0B2A5B;
  font-weight: 700;
}

.app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--ink);
  font-size: 13px;
  padding: 9px 24px 20px;
}

.app-footer span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.app-footer svg {
  font-size: 16px;
}

.provider-app {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
}

.provider-sidebar {
  position: sticky;
  top: 0;
  display: grid;
  height: 100vh;
  grid-template-rows: 43px auto 1fr;
  border-right: 1px solid var(--line);
  background: #ffffff;
  padding: 0 12px 28px;
}

.provider-sidebar > strong {
  display: grid;
  place-items: center;
  color: var(--navy);
  font-size: 13px;
}

.provider-sidebar nav {
  display: grid;
  gap: 12px;
  padding-top: 28px;
}

.provider-sidebar a {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 10px;
  border-radius: 5px;
  color: var(--navy);
  font-size: 9.4px;
  font-weight: 650;
  padding: 0 11px;
  white-space: nowrap;
}

.provider-sidebar a svg {
  flex: 0 0 auto;
  font-size: 14px;
}

.provider-sidebar a.active {
  color: #ffffff;
  background: linear-gradient(180deg, #073f92, #001f63);
}

.logout-link {
  align-self: end;
}

.provider-workspace {
  min-width: 0;
}

.tp-dashboard .topbar {
  justify-content: space-between;
}

.tp-dashboard .topbar-left strong {
  display: none;
}

.tp-main {
  display: grid;
  grid-template-columns: minmax(500px, 0.97fr) minmax(540px, 1.15fr);
  gap: 30px;
  padding: 32px 31px 24px;
}

.provider-heading {
  margin-bottom: 13px;
}

.provider-heading h1 {
  font-size: 24px;
}

.provider-summary {
  gap: 10px;
  margin-bottom: 18px;
}

.provider-summary .summary-card {
  min-height: 78px;
  padding: 16px 13px;
}

.provider-summary .summary-card strong {
  font-size: 31px;
}

.provider-summary .summary-card i {
  font-size: 24px;
}

.provider-summary a.summary-card {
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.provider-summary a.summary-card:hover {
  border-color: #b9cceb;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.provider-section-main {
  display: block;
  padding: 32px 31px 24px;
}

.provider-section-main .dashboard-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.provider-section-main > .panel,
.provider-section-main > .table-panel,
.provider-section-main > .schedule-board,
.provider-section-main > .provider-section-grid {
  margin-top: 18px;
}

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

.provider-schedule-manager {
  align-items: start;
}

.provider-schedule-manager .panel:first-child {
  grid-row: span 2;
}

.panel-copy {
  margin: 0 24px 14px;
  color: var(--muted);
  font-size: 13px;
}

.provider-schedule-form {
  padding: 0 24px 24px;
}

.provider-schedule-form:has([data-provider-schedule-cancel-edit]:not([hidden])) [data-provider-schedule-submit],
.provider-schedule-form:has([data-provider-schedule-cancel-edit]:not([hidden])) [data-provider-schedule-cancel-edit] {
  width: 156px;
  height: 36px;
  min-height: 36px;
  align-self: center;
}

.provider-schedule-form:has([data-provider-schedule-cancel-edit]:not([hidden])) [data-provider-schedule-submit] {
  justify-self: end;
}

.provider-schedule-form:has([data-provider-schedule-cancel-edit]:not([hidden])) [data-provider-schedule-cancel-edit] {
  justify-self: start;
}

.provider-schedule-list {
  display: grid;
  gap: 12px;
  padding: 18px 24px 24px;
}

.provider-schedule-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  border: 1px solid #e6edf3;
  border-radius: 6px;
  padding: 12px;
}

.provider-schedule-entry div {
  display: grid;
  gap: 4px;
}

.provider-schedule-entry > div span,
.provider-schedule-entry > div small {
  color: var(--muted);
  font-size: 12px;
}

.provider-schedule-entry [data-provider-schedule-cancel-routine] {
  grid-column: 3;
  justify-self: end;
  align-self: end;
  width: max-content;
  min-height: 24px;
  padding: 0 8px;
}

.provider-routine-confirm {
  display: grid;
  grid-column: 1 / -1;
  gap: 8px;
  border-top: 1px solid #e6edf3;
  padding-top: 10px;
}

.provider-routine-confirm[hidden] {
  display: none;
}

.provider-routine-confirm strong {
  color: var(--navy);
  font-size: 13px;
}

.provider-routine-confirm span {
  color: var(--muted);
  font-size: 12px;
}

.provider-routine-confirm div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.provider-routine-confirm.provider-routine-management-panel,
.provider-routine-confirm .provider-routine-management-panel {
  display: grid;
  gap: 10px;
}

.provider-routine-management-row {
  align-items: center;
  justify-content: space-between;
}

.provider-routine-confirm .provider-routine-management-copy {
  display: grid;
  gap: 2px;
}

.provider-routine-management-row .trip-action-button,
.provider-routine-apply-row .trip-action-button {
  width: max-content;
  min-height: 28px;
  padding: 0 10px;
}

.provider-routine-confirm .provider-routine-exception-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 10px 12px;
  align-items: start;
}

.provider-routine-confirm .provider-routine-exception-action {
  display: grid;
  gap: 5px;
}

.provider-routine-exception-action > span {
  color: var(--muted);
  font-size: 12px;
}

.provider-routine-confirm .provider-routine-exception-choices {
  align-items: center;
  padding: 0;
}

.provider-routine-exception-note,
.provider-routine-exception-message,
.provider-routine-apply-row {
  grid-column: 1 / -1;
}

.provider-routine-apply-row {
  justify-content: flex-end;
}

@media (max-width: 720px) {
  .provider-routine-confirm .provider-routine-exception-grid {
    grid-template-columns: 1fr;
  }
}

.provider-table {
  min-width: 760px;
}

.provider-table th,
.provider-table td {
  padding: 12px 13px;
  font-size: 11px;
}

.accept-button {
  display: inline-flex;
  height: 50px;
  min-width: 58px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 5px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 0 14px;
}

.tp-right {
  display: grid;
  align-content: start;
  gap: 34px;
  padding-top: 8px;
}

.tp-card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(290px, 0.82fr);
  gap: 22px;
}

.upcoming-list,
.updates-list {
  display: grid;
  padding: 18px 24px 28px;
}

.upcoming-list {
  gap: 22px;
}

.upcoming-list div {
  display: grid;
  grid-template-columns: 56px 78px 1fr auto;
  align-items: center;
  gap: 14px;
  color: var(--navy);
  font-size: 12px;
}

.upcoming-list strong {
  font-weight: 650;
}

.upcoming-list em {
  display: inline-flex;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: #fff0c9;
  color: #9b670e;
  padding: 0 9px;
  font-size: 11px;
  font-style: normal;
  font-weight: 750;
}

.upcoming-list em.assigned {
  color: #1d4ed8;
  background: #dbeafe;
}

.upcoming-list em.confirmed {
  color: #048649;
  background: #dff7ea;
}

.upcoming-list em.completed {
  color: #475569;
  background: #e5e7eb;
}

.upcoming-list em.cancelled {
  color: #b42318;
  background: #fee4e2;
}

.upcoming-list em.escalation-pending {
  color: #b45309;
  background: #ffedd5;
}

.upcoming-list em.override-pending,
.upcoming-list em.assigned-override {
  color: #b42318;
  background: #fee4e2;
}

.trip-actions,
.trip-action-buttons {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.escalation-actions {
  margin-top: 8px;
  flex-wrap: wrap;
}

.trip-action-button {
  min-height: 28px;
  border: 0;
  border-radius: 5px;
  background: linear-gradient(180deg, #073f92, #001f63);
  color: #ffffff;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.trip-action-button.cancel {
  border: 1px solid #E5E7EB;
  background: #FAFBFC;
  color: #b42318;
}

.recent-trip-section {
  border-top: 1px solid var(--soft-line);
  padding-top: 8px;
}

.recent-trip-section h3 {
  margin: 0;
  padding: 0 24px 6px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 850;
}

.recent-trip-list {
  padding-top: 4px;
}

.trip-detail-main {
  width: min(1128px, calc(100% - 48px));
}

.trip-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.mp-trip-detail-grid {
  grid-template-columns: 1fr;
}

.detail-panel {
  align-self: start;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 12px;
  padding: 12px;
}

.detail-field {
  display: grid;
  gap: 3px;
  color: #6B7280;
  font-size: 11.5px;
  font-weight: 500;
}

.detail-field strong {
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.detail-timeline {
  padding: 12px;
}

.trip-detail-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.schedule-main {
  width: min(1128px, calc(100% - 48px));
}

.schedule-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.schedule-controls .secondary-button {
  height: 36px;
  min-width: 110px;
  padding: 0 12px;
  font-size: 12px;
}

.schedule-board {
  display: grid;
  gap: 12px;
}

.schedule-day {
  overflow: visible;
}

.schedule-card-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
}

.schedule-card {
  display: grid;
  gap: 10px;
  border-color: #edf1f5;
  background: #fefeff;
  padding: 12px;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.018);
}

.schedule-card.is-urgent {
  border-color: #fed7aa;
  background: #fffaf5;
}

.schedule-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.schedule-card-top > strong {
  color: var(--navy);
  font-size: 18px;
  line-height: 1;
}

.schedule-card-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}

.schedule-card-body p {
  display: grid;
  gap: 3px;
  margin: 0;
}

.schedule-card-body span {
  color: #6B7280;
  font-size: 11.5px;
  font-weight: 500;
}

.schedule-card-body strong {
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.schedule-warning {
  display: inline-flex;
  width: fit-content;
  min-height: 24px;
  align-items: center;
  border-radius: 4px;
  background: #fff0c9;
  color: #9b670e;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 800;
}

.schedule-empty {
  padding: 16px 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.facility-calendar {
  padding: 12px;
}

.facility-calendar-weekdays,
.facility-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.facility-calendar-weekdays span {
  padding: 0 8px 8px;
  color: #6B7280;
  font-size: 12px;
  font-weight: 800;
}

.facility-calendar-grid {
  border: 1px solid #edf1f5;
  border-radius: 8px;
  overflow: hidden;
}

.facility-calendar-day {
  min-height: 124px;
  border-right: 1px solid #edf1f5;
  border-bottom: 1px solid #edf1f5;
  background: #fff;
  color: var(--navy);
  padding: 8px;
  text-decoration: none;
}

.facility-calendar-day:nth-child(7n) {
  border-right: 0;
}

.facility-calendar-day:nth-last-child(-n + 7) {
  border-bottom: 0;
}

.facility-calendar-day.is-outside-month {
  background: #fafbfc;
  color: #9CA3AF;
}

.facility-calendar-day.is-today {
  box-shadow: none;
}

.facility-calendar-day.is-selected {
  background: #f4f9fb;
  box-shadow: inset 0 0 0 2px var(--teal);
}

.facility-calendar-day-number {
  position: relative;
  display: inline-flex;
  min-width: 24px;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}

.facility-calendar-day.is-today .facility-calendar-day-number::after {
  content: "";
  position: absolute;
  inset: -6px -8px -5px -7px;
  border: 2px solid #dc2626;
  border-radius: 54% 46% 51% 49% / 47% 55% 45% 53%;
  transform: rotate(-7deg);
  pointer-events: none;
}

.facility-calendar-day-trips {
  display: grid;
  gap: 5px;
  margin-top: 6px;
}

.facility-calendar-chip {
  width: fit-content;
  min-height: 22px;
  padding: 0 7px;
  font-size: 11px;
  line-height: 1.25;
}

.facility-calendar-detail {
  cursor: pointer;
}

.updates-list {
  gap: 6px;
}

.updates-list svg {
  color: var(--green);
  font-size: 23px;
}

.updates-list div:nth-child(2) svg {
  color: #934cff;
}

.updates-list div:nth-child(3) svg {
  color: var(--blue);
}

.updates-list > a {
  margin-top: 13px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
}

.support-strip {
  display: grid;
  grid-template-columns: 1fr 250px 260px;
  align-items: center;
  min-height: 122px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  background: #FAFBFC;
  padding: 0 33px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.032);
}

.support-strip div,
.support-strip a {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--navy);
}

.support-strip svg {
  color: var(--navy);
  font-size: 33px;
}

.support-strip a {
  justify-content: center;
  font-size: 15px;
}

.support-strip a svg {
  font-size: 22px;
}

.tp-right .app-footer {
  padding: 38px 0 0;
}

@media (max-width: 1180px) {
  .tp-main {
    grid-template-columns: 1fr;
  }

  .tp-right {
    padding-top: 0;
  }
}

@media (max-width: 900px) {
  .public-nav {
    gap: 26px;
  }

  .trust-row,
  .summary-grid,
  .mp-bottom-grid,
  .tp-card-grid,
  .support-strip {
    grid-template-columns: 1fr 1fr;
  }

  .provider-app {
    grid-template-columns: 1fr;
  }

  .provider-sidebar {
    position: static;
    height: auto;
    grid-template-rows: auto auto auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 14px;
  }

  .provider-sidebar > strong {
    justify-content: start;
    place-items: center start;
    height: 24px;
  }

  .provider-sidebar nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding-top: 14px;
  }

  .logout-link {
    margin-top: 10px;
  }

  .tp-main {
    padding: 24px;
  }
}

@media (max-width: 680px) {
  .public-shell {
    width: min(100% - 28px, 1298px);
  }

  .public-header-inner {
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 0;
  }

  .public-nav {
    width: 100%;
    justify-content: space-between;
    gap: 14px;
    overflow-x: auto;
    font-size: 12px;
  }

  .hero-panel {
    padding-top: 42px;
  }

  .hero-panel h1 {
    font-size: 34px;
  }

  .portal-grid,
  .trust-row,
  .footer-grid,
  .summary-grid,
  .mp-bottom-grid,
  .tp-card-grid,
  .support-strip {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    gap: 18px;
    padding: 22px 0;
  }

  .footer-grid > a:last-child {
    justify-self: start;
  }

  .login-shell {
    padding-top: 44px;
  }

  .login-card {
    margin-top: 34px;
    padding: 26px 22px;
  }

  .login-security {
    position: static;
    margin-top: 38px;
  }

  .topbar {
    padding: 0 14px;
  }

  .topbar-left strong {
    font-size: 16px;
  }

  .topbar-right span:first-child {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .dashboard-main,
  .compact-main {
    width: min(100% - 28px, 1128px);
  }

  .provider-sidebar nav {
    grid-template-columns: 1fr 1fr;
  }

  .tp-main {
    padding: 20px 14px;
  }

  .tp-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .tp-left,
  .tp-right,
  .panel,
  .summary-card {
    min-width: 0;
  }

  .support-strip {
    padding: 24px;
    gap: 22px;
  }

  .support-strip a {
    justify-content: flex-start;
  }
}

/* The supplied mockup is a desktop composition; keep dashboard routes in that frame. */
.dashboard-page #app {
  min-width: 1180px;
}

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

.mp-dashboard .mp-bottom-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
}

.tp-dashboard .provider-app {
  grid-template-columns: 136px minmax(0, 1fr);
}

.tp-dashboard .provider-sidebar {
  position: sticky;
  height: 100vh;
  grid-template-rows: 43px auto 1fr;
  border-right: 1px solid var(--line);
  border-bottom: 0;
  padding: 0 12px 28px;
}

.tp-dashboard .provider-sidebar > strong {
  display: grid;
  height: auto;
  place-items: center;
  justify-content: center;
}

.tp-dashboard .provider-sidebar nav {
  grid-template-columns: 1fr;
  padding-top: 28px;
}

.tp-dashboard .tp-main {
  grid-template-columns: minmax(500px, 0.97fr) minmax(540px, 1.15fr);
  padding: 32px 31px 24px;
}

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

.tp-dashboard .tp-card-grid {
  grid-template-columns: minmax(0, 1.18fr) minmax(290px, 0.82fr);
}

.tp-dashboard .support-strip {
  grid-template-columns: 1fr 250px 260px;
}

.new-trip-page #app {
  min-width: 0;
}

.new-trip-page .topbar {
  position: sticky;
  top: 0;
  z-index: 20;
}

.new-trip-main {
  width: min(1188px, calc(100% - 44px));
  padding-top: 18px;
  padding-bottom: 0;
}

.new-trip-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.new-trip-heading h1 {
  font-size: 24px;
}

.new-trip-quick-button {
  min-width: 196px;
  height: 36px;
}

.form-note {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.demo-mode-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  min-height: 40px;
  margin-bottom: 12px;
  padding: 0 14px;
  border: 1px solid #f3d38a;
  border-radius: 6px;
  background: #fff8e5;
  color: #6b4e00;
  font-size: 13px;
  font-weight: 750;
}

.demo-mode-banner strong {
  font-weight: 850;
}

.demo-mode-banner span {
  font-weight: 700;
}

.demo-data-notice {
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid #d8e4f0;
  border-radius: 6px;
  background: #f7fbff;
  color: var(--navy);
}

.demo-data-notice strong {
  display: block;
  font-size: 13px;
  font-weight: 850;
}

.demo-data-notice ul {
  display: grid;
  gap: 4px;
  margin: 8px 0 0 18px;
  padding: 0;
  color: #435468;
  font-size: 13px;
  font-weight: 700;
}

.demo-data-notice p,
.form-section-helper {
  margin-top: 8px;
  color: #435468;
  font-size: 12px;
  font-weight: 750;
}

.form-section-helper {
  grid-column: 1 / -1;
  margin: 0 0 8px;
}

.demo-data-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.demo-walkthrough-checklist {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #d8e4f0;
  border-radius: 6px;
  background: #ffffff;
}

.demo-walkthrough-checklist strong {
  color: var(--navy);
  font-size: 13px;
  font-weight: 850;
}

.demo-walkthrough-checklist ol {
  display: grid;
  gap: 4px;
  margin: 8px 0 0 20px;
  padding: 0;
  color: #435468;
  font-size: 13px;
  font-weight: 700;
}

.demo-walkthrough-checklist p {
  margin-top: 8px;
  color: #435468;
  font-size: 12px;
  font-weight: 750;
}

.demo-data-actions .secondary-button {
  height: 34px;
  padding: 0 14px;
  font-size: 13px;
}

.demo-data-actions span {
  color: #435468;
  font-size: 12px;
  font-weight: 750;
}

.trip-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px 12px;
  align-items: start;
  padding-bottom: 0;
}

.new-trip-page .trip-form {
  gap: 7px 12px;
}

.form-panel {
  overflow: visible;
  align-self: start;
  border-color: #edf1f5;
  background: #fefeff;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.018);
}

.new-trip-page .panel-heading {
  min-height: 34px;
  justify-content: flex-start;
  padding: 0 11px;
}

.new-trip-page .panel-heading h2 {
  font-size: 13.5px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 9px;
  padding: 6px 12px 8px;
}

.new-trip-page .form-grid {
  gap: 5px 9px;
  padding: 5px 11px 6px;
}

.form-field {
  display: grid;
  gap: 3px;
  color: #6B7280;
  font-size: 11.5px;
  font-weight: 500;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid #E5E7EB;
  border-radius: 5px;
  background: #ffffff;
  color: var(--ink);
  outline: 0;
  padding: 0 11px;
  font-size: 13px;
}

.form-field input,
.form-field select {
  height: 32px;
}

.form-field textarea {
  min-height: 70px;
  max-height: 70px;
  padding-top: 9px;
  resize: vertical;
}

.new-trip-page .form-field input,
.new-trip-page .form-field select {
  height: 31px;
}

.new-trip-page .form-field textarea {
  min-height: 66px;
  max-height: 66px;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #6B7280;
  opacity: 1;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: #93C5FD;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.inline-edit-button {
  appearance: none;
  border: 0;
  border-radius: 4px;
  background: linear-gradient(180deg, #073f92, #001f63);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 11.5px;
  font-weight: 850;
  line-height: 1;
  padding: 2px 6px;
}

.inline-edit-button:focus,
.inline-edit-button:hover {
  box-shadow: 0 0 0 2px rgba(7, 63, 146, 0.16);
}

.return-time-field.is-disabled {
  opacity: 0.52;
}

.form-panel[data-section="return"].is-disabled {
  opacity: 0.58;
}

.medtrips-google-autocomplete-closing .pac-container {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.date-helper {
  color: #2563EB;
  display: block;
  font-size: 0.82rem;
  font-weight: 650;
  margin-top: 6px;
}

.date-helper-error {
  color: #B45309;
}

.datetime-suggestions {
  background: #ffffff;
  border: 1px solid #D1D5DB;
  border-radius: 5px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  display: grid;
  gap: 2px;
  padding: 4px;
  position: absolute;
  z-index: 70;
}

.datetime-suggestions[hidden] {
  display: none;
}

.datetime-suggestions button {
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 12.5px;
  padding: 7px 8px;
  text-align: left;
}

.datetime-suggestions button:hover,
.datetime-suggestions button[aria-selected="true"] {
  background: #EFF6FF;
  color: var(--brand-blue);
}

.form-field input.is-missing,
.form-field select.is-missing,
.form-field textarea.is-missing,
.choice-row input.is-missing + span,
.toggle-field input.is-missing + i {
  border-color: #c96800;
  box-shadow: 0 0 0 3px rgba(201, 104, 0, 0.12);
}

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

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 6px 12px 8px;
}

.new-trip-page .choice-row {
  gap: 6px;
  padding: 5px 11px 6px;
}

.choice-row label {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 10px;
  border: 1px solid #E5E7EB;
  border-radius: 5px;
  background: #ffffff;
  color: #6B7280;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 500;
}

.new-trip-page .choice-row label {
  min-height: 29px;
}

.choice-row input {
  accent-color: var(--blue);
}

.return-grid {
  align-items: end;
}

.toggle-field {
  display: grid;
  gap: 3px;
  color: #6B7280;
  font-size: 11.5px;
  font-weight: 500;
}

.toggle-field input {
  position: absolute;
  opacity: 0;
}

.toggle-field i {
  position: relative;
  width: 48px;
  height: 26px;
  border: 1px solid #E5E7EB;
  border-radius: 999px;
  background: #ffffff;
}

.toggle-field i::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #9CA3AF;
  content: "";
}

.toggle-field input:checked + i {
  border-color: #93C5FD;
  background: #eaf1ff;
}

.toggle-field input:checked + i::after {
  left: 25px;
  background: var(--blue);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 2px 0 8px;
}

.secondary-button {
  display: inline-flex;
  height: 50px;
  min-width: 132px;
  align-items: center;
  justify-content: center;
  border: 1px solid #E5E7EB;
  border-radius: 5px;
  background: #FAFBFC;
  color: var(--navy);
  padding: 0 18px;
  font-size: 13px;
  font-weight: 800;
}

.form-actions .signin-button {
  min-width: 170px;
  border: 0;
  padding: 0 18px;
}

.sticky-action-bar {
  position: static;
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #edf1f5;
  background: #ffffff;
  box-shadow: none;
  margin-top: 8px;
  padding: 0;
}

.new-trip-page .sticky-action-bar {
  min-height: 48px;
  justify-content: center;
  margin-top: 7px;
}

.form-validation-summary {
  margin-top: 10px;
  padding: 11px 14px;
  border: 1px solid #dfe7ef;
  border-radius: 6px;
  background: #ffffff;
}

.form-validation-summary p {
  margin-top: 7px;
  color: #9b4d00;
  font-size: 12px;
  font-weight: 750;
}

.sticky-action-bar > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.sticky-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sticky-action-bar .signin-button {
  min-width: 170px;
  border: 0;
  padding: 0 18px;
}

.sticky-action-bar .secondary-button,
.sticky-action-bar .signin-button {
  height: 42px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(0, 26, 77, 0.18);
  padding: 24px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-backdrop:has([data-availability-result]) {
  padding: 10px;
}

.availability-modal {
  display: flex;
  max-height: calc(100vh - 48px);
  flex-direction: column;
  overflow: hidden;
  width: min(460px, 100%);
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.14);
}

.modal-backdrop:has([data-availability-result]) .availability-modal {
  max-height: calc(100vh - 20px);
}

.modal-heading {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #E5E7EB;
  padding: 0 18px;
}

.modal-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: 18px;
}

.modal-close {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.availability-form {
  display: grid;
  gap: 12px;
  padding: 16px 18px 18px;
}

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

.availability-message {
  margin: 0;
  color: #9b670e;
  font-size: 12px;
  font-weight: 700;
}

.availability-submit,
.availability-continue {
  width: 100%;
  border: 0;
}

.availability-result {
  display: grid;
  min-height: 0;
  gap: 13px;
  overflow-y: auto;
  border-top: 1px solid #E5E7EB;
  padding: 16px 18px 18px;
}

.availability-result[hidden] {
  display: none;
}

.availability-state {
  display: grid;
  gap: 4px;
  border-radius: 6px;
  padding: 12px;
  font-size: 13px;
}

.availability-state strong {
  color: var(--navy);
  font-size: 16px;
}

.availability-state span {
  color: var(--muted);
}

.availability-state .demo-result-message {
  color: #315a3d;
  font-weight: 850;
}

.route-summary {
  display: grid;
  gap: 5px;
  margin-top: 4px;
  padding: 10px;
  border: 1px solid #cfe0ef;
  border-radius: 6px;
  background: #ffffff;
}

.route-summary strong {
  font-size: 13px;
}

.route-map-preview {
  height: clamp(120px, 22vh, 180px);
  min-height: 0;
  overflow: hidden;
  border: 1px solid #d8e4f0;
  border-radius: 6px;
}

.availability-modal:has(.availability-result:not([hidden])) .quick-availability-demo-notice {
  padding-top: 8px;
  padding-bottom: 8px;
}

.availability-modal:has(.availability-result:not([hidden])) .quick-availability-demo-notice p {
  margin-top: 2px;
}

.availability-modal:has(.availability-result:not([hidden])) .availability-form {
  gap: 10px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.availability-modal:has(.availability-result:not([hidden])) .availability-grid {
  gap: 8px 10px;
}

.availability-modal:has(.availability-result:not([hidden])) .availability-grid .wide-field {
  grid-column: auto;
}

.availability-modal:has(.availability-result:not([hidden])) .availability-result {
  gap: 10px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.availability-modal:has(.availability-result:not([hidden])) .availability-state {
  padding: 10px;
}

.availability-modal:has(.availability-result:not([hidden])) .route-summary {
  gap: 4px;
  padding: 8px;
}

.availability-modal:has(.availability-result:not([hidden])) .route-map-preview {
  height: clamp(104px, 14vh, 112px);
}

.new-trip-page .modal-backdrop:has([data-availability-result]) .availability-modal {
  width: min(540px, calc(100vw - 20px));
}

.new-trip-page .availability-modal:has(.availability-result:not([hidden])) .route-map-preview {
  height: clamp(180px, 30vh, 240px);
}

.availability-state.available {
  background: #ECFDF5;
}

.availability-state.pending {
  background: #fff7df;
}

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

.availability-options button {
  min-height: 38px;
  border: 1px solid #E5E7EB;
  border-radius: 5px;
  background: #FAFBFC;
  color: var(--navy);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.availability-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.availability-buttons .secondary-button,
.availability-buttons .signin-button {
  min-width: 0;
  height: 42px;
  padding: 0 12px;
}

.form-panel[data-section="patient"] {
  grid-column: 1;
  grid-row: 1;
}

.form-panel[data-section="trip"] {
  grid-column: 1;
  grid-row: 2;
}

.form-panel[data-section="appointment"] {
  grid-column: 1;
  grid-row: 3;
}

.form-panel[data-section="pickup"] {
  grid-column: 1;
  grid-row: 4;
}

.form-panel[data-section="destination"] {
  grid-column: 2;
  grid-row: 1;
}

.form-panel[data-section="return"] {
  grid-column: 2;
  grid-row: 2;
}

.form-panel[data-section="billing"] {
  grid-column: 2;
  grid-row: 3;
}

.form-panel[data-section="notes"] {
  grid-column: 2;
  grid-row: 4;
}

.new-trip-page .app-footer {
  padding-top: 2px;
  padding-bottom: 8px;
}

@media (max-width: 760px) {
  .new-trip-main {
    width: min(100% - 28px, 980px);
  }

  .new-trip-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .new-trip-quick-button {
    width: 100%;
  }

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

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

  .form-panel[data-section] {
    grid-column: auto;
    grid-row: auto;
  }

  .wide-field {
    grid-column: auto;
  }

  .form-actions {
    flex-direction: column-reverse;
  }

  .form-actions .signin-button,
  .secondary-button {
    width: 100%;
  }

  .sticky-buttons {
    gap: 8px;
  }

  .sticky-action-bar .secondary-button,
  .sticky-action-bar .signin-button {
    min-width: 0;
    width: auto;
    padding: 0 12px;
  }

  .availability-grid,
  .availability-options,
  .availability-buttons {
    grid-template-columns: 1fr;
  }

  .trip-detail-main {
    width: min(100% - 28px, 980px);
  }

  .trip-detail-grid,
  .detail-grid,
  .schedule-card-list,
  .schedule-card-body {
    grid-template-columns: 1fr;
  }

  .trip-detail-actions {
    width: 100%;
  }

  .schedule-main {
    width: min(100% - 28px, 980px);
  }

  .schedule-controls {
    width: 100%;
  }

  .schedule-controls .secondary-button {
    flex: 1 1 140px;
  }
}

/* Full-browser landing page, scaled from the reference instead of shrunk into a thumbnail. */
.public-page #app {
  width: 100%;
  min-height: 100vh;
}

.public-page .public-shell {
  width: min(1220px, calc(100% - 72px));
}

.public-page .public-header-inner {
  height: 92px;
  flex-direction: row;
  align-items: center;
  padding: 0;
}

.public-page .public-nav {
  width: auto;
  gap: 62px;
  overflow: visible;
  color: var(--navy);
  font-size: 13px;
  font-weight: 750;
}

.public-page .hero-panel {
  padding: 62px 0 48px;
}

.public-page .eyebrow {
  margin: 0 0 22px;
  font-size: 11px;
  letter-spacing: 0.42em;
}

.public-page .hero-panel h1 {
  font-size: clamp(48px, 4.6vw, 72px);
  line-height: 1.06;
}

.public-page .hero-copy {
  width: min(680px, 100%);
  margin: 24px 0 34px;
  font-size: 18px;
  line-height: 1.62;
}

.public-page .portal-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  width: min(820px, 100%);
}

.public-page .portal-grid.single-portal-grid {
  grid-template-columns: minmax(0, 393px);
  justify-content: center;
  width: min(393px, 100%);
}

.public-page .portal-card {
  min-height: 250px;
  border-radius: 10px;
  padding: 30px 28px 24px;
}

.public-page .portal-icon {
  width: 74px;
  height: 74px;
  font-size: 40px;
}

.public-page .portal-card h2 {
  margin: 18px 0 12px;
  font-size: 19px;
}

.public-page .portal-card p {
  min-height: 48px;
  font-size: 13px;
  line-height: 1.5;
}

.public-page .portal-button {
  height: 50px;
  gap: 10px;
  border-radius: 5px;
  font-size: 13px;
}

.public-page .trust-row {
  grid-template-columns: repeat(4, 1fr);
}

.public-page .trust-row article {
  min-height: 175px;
  padding: 24px 34px;
}

.public-page .trust-row svg {
  margin-bottom: 15px;
  font-size: 38px;
}

.public-page .trust-row h3 {
  margin-bottom: 9px;
  font-size: 13px;
}

.public-page .trust-row p {
  font-size: 12px;
  line-height: 1.45;
}

.public-page .footer-grid {
  min-height: 94px;
  grid-template-columns: 240px 1fr 250px;
  gap: 34px;
  padding: 0;
}

.public-page .footer-grid p {
  font-size: 13px;
  line-height: 1.45;
}

.public-page .footer-grid > a:last-child {
  justify-self: end;
  gap: 10px;
  font-size: 14px;
}

.public-page .footer-grid > a:last-child svg {
  font-size: 20px;
}

.public-page .copyright {
  margin: -19px 0 18px;
  font-size: 13px;
}
