:root {
  color-scheme: light;
  --ink: #17213f;
  --muted: #667085;
  --line: #dde3ee;
  --surface: #ffffff;
  --soft: #f3f6fb;
  --brand: #6c4bf4;
  --brand-dark: #5132d7;
  --success: #147d64;
  --danger: #b42318;
  --shadow: 0 20px 50px rgba(28, 37, 67, 0.1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(108, 75, 244, 0.13), transparent 28rem),
    #f7f8fc;
}

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

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

button {
  transition:
    color 150ms ease,
    background-color 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.loading-state {
  display: grid;
  min-height: 100vh;
  place-items: center;
  color: var(--muted);
}

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

.login-story {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(32px, 6vw, 88px);
  color: #fff;
  background: linear-gradient(145deg, #17213f 0%, #2a3064 55%, #6c4bf4 140%);
}

.login-story img,
.portal-brand img {
  width: 138px;
  filter: brightness(0) invert(1);
}

.login-story h1 {
  max-width: 680px;
  margin: 0 0 20px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.login-story p {
  max-width: 580px;
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 18px;
  line-height: 1.6;
}

.login-panel {
  display: grid;
  min-height: 100vh;
  align-items: center;
  padding: clamp(28px, 6vw, 72px);
  background: var(--surface);
}

.login-form {
  width: 100%;
  max-width: 380px;
  margin: auto;
}

.mobile-login-brand {
  display: none;
}

.mobile-login-brand img {
  display: block;
  width: 128px;
  height: auto;
}

.professional-signup-link {
  display: block;
  text-align: center;
}

.login-form h2 {
  margin: 0 0 8px;
  font-size: 32px;
  letter-spacing: -0.035em;
}

.login-form > p {
  margin: 0 0 28px;
  color: var(--muted);
}

.auth-link {
  justify-self: center;
  border: 0;
  padding: 4px;
  color: var(--brand-dark);
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.auth-link:hover {
  text-decoration: underline;
}

.portal-legal-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  font-size: 13px;
}

.portal-legal-links a,
.sidebar-legal-links a {
  text-decoration: none;
}

.portal-legal-links a {
  color: var(--muted);
}

.portal-legal-links a:hover {
  color: var(--brand-dark);
}

label {
  display: grid;
  gap: 8px;
  color: #344054;
  font-size: 14px;
  font-weight: 650;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #ccd3df;
  border-radius: 11px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(108, 75, 244, 0.12);
}

.form-stack {
  display: grid;
  gap: 18px;
}

.primary-button,
.secondary-button,
.danger-button,
.nav-button,
.link-button {
  border: 0;
  cursor: pointer;
}

.primary-button,
.secondary-button,
.danger-button {
  min-height: 42px;
  border-radius: 11px;
  padding: 10px 16px;
  font-weight: 750;
}

.primary-button {
  color: #fff;
  background: var(--brand);
}

.primary-button:hover {
  background: var(--brand-dark);
}

.secondary-button {
  color: var(--ink);
  border: 1px solid var(--line);
  background: #fff;
}

.secondary-button:hover {
  border-color: #b9b0ee;
  background: #f5f2ff;
}

.danger-button {
  color: var(--danger);
  border: 1px solid #f5c7c2;
  background: #fff5f4;
}

.danger-button:hover {
  border-color: #ed9b93;
  background: #ffe8e5;
}

.status-message {
  margin: 18px 0 0;
  border-radius: 10px;
  padding: 11px 13px;
  color: var(--ink);
  background: var(--soft);
  font-size: 14px;
}

.status-message.error {
  color: var(--danger);
  background: #fff1f0;
}

.status-message.ok {
  color: var(--success);
  background: #edfdf7;
}

.portal-shell {
  min-height: 100vh;
}

.portal-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 5;
  display: flex;
  width: 250px;
  flex-direction: column;
  padding: 26px 18px;
  color: #fff;
  background: #17213f;
}

.portal-brand {
  padding: 4px 12px 28px;
}

.portal-nav {
  display: grid;
  gap: 6px;
}

.nav-button {
  border-radius: 10px;
  padding: 11px 13px;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  text-align: left;
  text-decoration: none;
  font-weight: 650;
}

.nav-button:hover,
.nav-button.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-account {
  display: grid;
  gap: 3px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 12px 0;
}

.sidebar-account span {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  text-overflow: ellipsis;
}

.logout-button {
  margin-top: 12px;
  padding: 0;
  color: #fff;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.logout-button:hover {
  color: #d8d0ff;
}

.sidebar-legal-links {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.sidebar-legal-links a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
}

.sidebar-legal-links a:hover {
  color: #d8d0ff;
}

.portal-main {
  min-height: 100vh;
  margin-left: 250px;
  padding: 36px clamp(24px, 4vw, 64px) 70px;
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-header h1 {
  margin: 0;
  font-size: clamp(29px, 4vw, 44px);
  letter-spacing: -0.045em;
}

.page-header p {
  margin: 8px 0 0;
  color: var(--muted);
}

.grid-cards,
.two-columns {
  display: grid;
  gap: 18px;
}

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

.two-columns {
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
}

.card,
.panel {
  border: 1px solid rgba(217, 223, 235, 0.9);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 8px 28px rgba(24, 33, 63, 0.05);
}

.card {
  padding: 22px;
}

.metric-card {
  width: 100%;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(24, 33, 63, 0.1);
}

.metric-card:focus-visible {
  outline: 3px solid rgba(108, 75, 244, 0.26);
  outline-offset: 3px;
}

.metric-card-appointments {
  border-color: #bfe5cc;
  background: #ecf8f0;
}

.metric-card-appointments:hover {
  border-color: #82c99b;
}

.metric-card-patients {
  border-color: #bedcf2;
  background: #edf6fc;
}

.metric-card-patients:hover {
  border-color: #7db9e2;
}

.metric-card-blocks {
  border-color: #f0c6c1;
  background: #fff0ee;
}

.metric-card-blocks:hover {
  border-color: #df9188;
}

.metric-card span {
  color: var(--muted);
  font-size: 14px;
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  font-size: 34px;
  letter-spacing: -0.04em;
}

.panel {
  padding: 24px;
}

.panel + .panel,
.grid-cards + .panel,
.two-columns + .panel {
  margin-top: 18px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.panel-header h2,
.panel h2,
.card h3 {
  margin: 0;
  letter-spacing: -0.025em;
}

.appointments-refresh-status {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.appointments-panel-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.appointment-search-form {
  width: min(100%, 390px);
}

.integration-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.integration-card > div {
  min-width: 0;
}

.push-panel-attention {
  border: 2px solid #f0c46d;
  background: #fffaf0;
}

.push-primary-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.push-warning,
.push-success {
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 750;
}

.push-warning {
  color: #9a5b13;
}

.push-success {
  color: var(--success);
}

.push-install-guide {
  margin-top: 18px;
  border: 1px solid #d8d0ff;
  border-radius: 12px;
  padding: 16px;
  background: #f7f5ff;
}

.push-install-guide ol {
  margin: 10px 0 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.7;
}

.push-devices {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.push-device-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--soft);
}

.push-device-row span,
.push-device-row small {
  display: block;
}

.push-device-row span {
  font-weight: 750;
}

.push-device-row small {
  margin-top: 3px;
  color: var(--muted);
}

.push-device-remove {
  color: var(--danger);
}

.patient-waiting-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  border: 2px solid #ef9b94;
  border-radius: 14px;
  padding: 16px;
  background: #fff2f0;
}

.patient-waiting-alert strong,
.patient-waiting-alert span {
  display: block;
}

.patient-waiting-alert strong {
  font-size: 18px;
}

.waiting-delay {
  margin-top: 5px;
  color: var(--danger);
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
}

.patient-waiting-alert .primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.google-data-notice {
  max-width: 780px;
  margin-top: 16px;
  border: 1px solid #d8d0ff;
  border-radius: 12px;
  padding: 14px 16px;
  color: #3e4963;
  background: #f7f5ff;
  font-size: 13px;
  line-height: 1.55;
}

.google-data-notice strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
}

.google-data-notice p {
  margin: 0 0 7px;
}

.google-data-notice a {
  color: var(--brand-dark);
  font-weight: 700;
}

.badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  color: #6941c6;
  background: #f1ebff;
  font-size: 12px;
  font-weight: 800;
}

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

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

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  border-bottom: 1px solid #edf0f5;
  padding: 13px 12px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

td a {
  color: var(--brand-dark);
}

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

.appointment-icon-button {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #d8d0ff;
  border-radius: 10px;
  color: var(--brand-dark);
  background: #f7f5ff;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.appointment-icon-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.appointment-icon-button:hover {
  border-color: var(--brand);
  background: #eeeaff;
  transform: translateY(-1px);
}

.appointment-icon-button.danger {
  color: var(--danger);
  border-color: #f5c7c2;
  background: #fff5f4;
}

.appointment-icon-button.danger:hover {
  border-color: #ed9b93;
  background: #ffe8e5;
}

.meet-link-disabled {
  color: #98a2b3;
  text-decoration: underline;
  text-decoration-style: dashed;
}

.meet-availability {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.consultation-room-entry {
  color: var(--brand-dark);
  font-weight: 800;
  text-underline-offset: 3px;
}

.appointment-agreement {
  display: block;
  margin-top: 4px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
}

.empty-state {
  border: 1px dashed #cdd4e0;
  border-radius: 14px;
  padding: 34px 20px;
  color: var(--muted);
  text-align: center;
}

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

.span-two {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

.profile-photo {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  object-fit: cover;
  background: var(--soft);
}

.photo-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.check-row input {
  width: auto;
}

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

.availability-day {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  border-bottom: 1px solid #edf0f5;
  padding: 14px 0;
}

.availability-ranges {
  display: grid;
  gap: 8px;
}

.availability-range {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) auto minmax(100px, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.link-button {
  padding: 7px 0;
  color: var(--brand-dark);
  background: transparent;
  font-weight: 700;
}

.link-button:hover {
  color: var(--brand);
  text-decoration: underline;
}

.icon-button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  background: #fff;
  cursor: pointer;
}

.icon-button:hover {
  border-color: #b9b0ee;
  color: var(--brand-dark);
  background: #f5f2ff;
}

.remove-range-button {
  color: var(--danger);
  border-color: #f5c7c2;
  background: #fff1f0;
}

.remove-range-button:hover {
  color: #912018;
  border-color: #ed9b93;
  background: #ffe1dd;
}

.compact-button {
  min-height: 34px;
  padding: 6px 10px;
  white-space: nowrap;
}

.patient-status {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 8px;
  color: #6941c6;
  background: #f1ebff;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.patient-status.failed {
  color: var(--danger);
  background: #fff1f0;
}

.patient-status.pending,
.patient-status.not_applicable {
  color: #805b12;
  background: #fff3d6;
}

.service-selector {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}

.service-selector legend {
  padding: 0 6px;
  color: #344054;
  font-size: 14px;
  font-weight: 750;
}

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

.field-help {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

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

.modal-panel {
  width: min(100%, 680px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border-radius: 18px;
  padding: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.modal-panel-wide {
  width: min(100%, 1080px);
}

.consultation-room-panel {
  width: min(100%, 980px);
  border: 1px solid rgba(108, 75, 244, 0.14);
  background:
    linear-gradient(180deg, rgba(247, 245, 255, 0.9), #fff 180px),
    var(--surface);
}

.consultation-room-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
  border: 1px solid #d9d2ff;
  border-radius: 16px;
  padding: 20px;
  background: linear-gradient(135deg, #f3f0ff 0%, #edf9fb 100%);
}

.consultation-room-hero strong,
.consultation-room-hero p,
.consultation-room-kicker {
  display: block;
}

.consultation-room-hero strong {
  margin-top: 6px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.consultation-room-hero p {
  max-width: 560px;
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.consultation-room-kicker {
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.consultation-room-actions {
  display: grid;
  min-width: 220px;
  gap: 9px;
}

.consultation-room-actions .primary-button,
.consultation-room-actions .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}

.triage-form-button {
  color: var(--brand-dark);
}

.room-action-disabled {
  border: 1px dashed #cbd3df;
  border-radius: 11px;
  padding: 10px 13px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 750;
  text-align: center;
}

.waiting-room-ready {
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--danger);
  background: #fff;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.action-modal-backdrop {
  z-index: 60;
}

.action-modal {
  width: min(100%, 520px);
}

.action-modal-message {
  margin: -4px 0 20px;
  color: var(--muted);
  line-height: 1.55;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.modal-header h2 {
  margin: 0;
}

.modal-header p {
  margin: 7px 0 0;
}

.blocks-modal-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(380px, 1.2fr);
  gap: 18px;
}

.modal-section {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}

.modal-section h3 {
  margin: 0;
  font-size: 18px;
}

.blocks-modal .status-message {
  margin: 0 0 18px;
}

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

.patient-details-grid > div {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}

.patient-details-grid dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.patient-details-grid dd {
  margin: 6px 0 0;
}

.patient-details-grid a {
  color: var(--brand-dark);
}

.details-note {
  display: grid;
  gap: 5px;
  margin: 16px 0 0;
  border-radius: 10px;
  padding: 11px 13px;
  color: var(--muted);
  background: var(--soft);
  font-size: 13px;
}

.details-note strong {
  color: var(--ink);
}

.patient-documents {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #cfe5e9;
  border-radius: 14px;
  background: #f4fbfc;
}

.patient-documents > span,
.patient-documents li span {
  color: var(--muted);
  font-size: 13px;
}

.patient-documents ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.patient-documents li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.patient-documents a {
  color: var(--accent);
  font-weight: 800;
}

.treatment-handoff-card {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  border: 1px solid #bde2d5;
  border-radius: 14px;
  padding: 17px;
  background: linear-gradient(135deg, #effbf6, #f8fdfb);
}

.treatment-handoff-copy {
  display: grid;
  gap: 5px;
}

.treatment-handoff-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.treatment-handoff-label {
  color: var(--success);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.booking-url-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid #cce8de;
  border-radius: 11px;
  padding: 8px 8px 8px 12px;
  background: #fff;
}

.booking-url-box > a {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-url-button {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: var(--success);
  cursor: pointer;
}

.copy-url-button:hover {
  background: #0f6653;
  transform: translateY(-1px);
}

.copy-url-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.copy-success {
  color: var(--success);
  font-size: 12px;
  font-weight: 800;
}

.patient-detail-actions {
  margin-top: 18px;
}

.search-form {
  display: flex;
  gap: 10px;
  width: min(100%, 460px);
}

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

.block-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}

.block-row strong,
.block-row span {
  display: block;
}

@media (max-width: 960px) {
  .grid-cards,
  .two-columns,
  .blocks-modal-layout {
    grid-template-columns: 1fr;
  }

  .portal-sidebar {
    position: static;
    width: auto;
    padding: 18px;
  }

  .portal-brand {
    display: none;
  }

  .portal-nav {
    display: flex;
    overflow-x: auto;
  }

  .nav-button {
    white-space: nowrap;
  }

  .sidebar-account {
    display: none;
  }

  .portal-main {
    margin-left: 0;
    padding: 26px 18px 56px;
  }
}

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

  .login-story {
    display: none;
  }

  .mobile-login-brand {
    display: block;
    width: fit-content;
    margin: 0 auto 12px;
  }

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

  .service-options,
  .patient-details-grid {
    grid-template-columns: 1fr;
  }

  .span-two {
    grid-column: auto;
  }

  .availability-day {
    grid-template-columns: 1fr;
  }

  .page-header,
  .panel-header,
  .integration-card,
  .patient-waiting-alert,
  .block-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .consultation-room-hero {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .consultation-room-actions {
    min-width: 0;
  }

  .appointments-panel-tools {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

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

  .push-primary-actions {
    width: 100%;
    justify-content: stretch;
  }

  .push-primary-actions button,
  .patient-waiting-alert .primary-button {
    width: 100%;
  }
}
