/* Customer portal - extends site.css */
.portal-page .portal-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 20px 56px;
}

/* Book page: do not use marketing .section (max-width + padding + h2 rules) */
.portal-book-page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.portal-alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-weight: 600;
  line-height: 1.45;
}

.portal-alert--success {
  background: rgba(76, 138, 155, 0.15);
  color: var(--navy);
  border: 1px solid rgba(76, 138, 155, 0.35);
}

.portal-alert--warning {
  background: rgba(198, 82, 39, 0.1);
  color: #7a3018;
  border: 1px solid rgba(198, 82, 39, 0.25);
}

.portal-alert--error {
  background: rgba(183, 28, 28, 0.08);
  color: #b71c1c;
  border: 1px solid rgba(183, 28, 28, 0.2);
}

.portal-waiver-prompt {
  margin-bottom: 20px;
  border: 1px solid rgba(198, 82, 39, 0.35);
  background: rgba(198, 82, 39, 0.08);
}

.portal-waiver-prompt h2 {
  margin: 0 0 8px;
  color: var(--navy);
}

.portal-waiver-prompt__eyebrow {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a3f18;
}

.portal-waiver-prompt__body {
  margin-bottom: 14px;
}

.portal-waiver-prompt__actions {
  margin-top: 0;
}

.portal-waiver-prompt__refresh {
  margin-top: 14px;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

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

@media (max-width: 1100px) {
  .portal-grid--summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .portal-grid--summary {
    grid-template-columns: 1fr;
  }
}

.portal-card--compact {
  padding: 16px 14px;
}

.portal-card--compact h2 {
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.portal-card--compact p,
.portal-card--compact dl {
  font-size: 0.85rem;
  line-height: 1.45;
}

.portal-card--compact dt {
  font-size: 0.72rem;
}

.portal-card--compact dd {
  margin: 0 0 4px;
}

.portal-card--compact .portal-actions {
  margin-top: 10px;
}

.portal-card--compact .btn {
  padding: 10px 16px;
  font-size: 0.85rem;
  width: 100%;
  text-align: center;
  justify-content: center;
}

.portal-card--compact .status-pill {
  font-size: 0.72rem;
  padding: 3px 10px;
}

.portal-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.portal-card h2,
.portal-card h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 1.1rem;
}

.portal-card p,
.portal-card dl {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.portal-card dl {
  display: grid;
  gap: 8px;
}

.portal-card dt {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.portal-card dd {
  margin: 0 0 8px;
}

.portal-card--wide {
  grid-column: 1 / -1;
}

.portal-section__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.portal-section__head h2 {
  margin-bottom: 4px;
}

.portal-section__lead {
  margin: 0;
  font-size: 0.88rem;
}

.portal-section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}

.portal-empty {
  padding: 28px 20px;
  text-align: center;
  background: rgba(76, 138, 155, 0.06);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.portal-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.portal-table--vehicles {
  margin: 0;
}

.portal-table--vehicles th,
.portal-table--vehicles td {
  padding: 14px 16px;
  vertical-align: middle;
}

.portal-table--vehicles tbody tr:last-child td {
  border-bottom: none;
}

.portal-table--vehicles tbody tr:hover {
  background: rgba(76, 138, 155, 0.04);
}

.portal-table__primary {
  font-weight: 600;
  color: var(--navy);
}

.portal-table__actions-head,
.portal-table__actions {
  text-align: right;
  white-space: nowrap;
}

.portal-table__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.portal-inline-form {
  display: inline;
  margin: 0;
}

.portal-inline-form .portal-link {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

@media (max-width: 640px) {
  .portal-section__actions {
    width: 100%;
  }

  .portal-section__actions .btn {
    flex: 1;
    text-align: center;
  }
}

.portal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.portal-actions .btn--ghost {
  color: var(--navy);
  border-color: var(--border);
}

.status-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-pill--not_signed {
  background: rgba(198, 82, 39, 0.15);
  color: var(--orange);
}

.status-pill--signed {
  background: rgba(76, 138, 155, 0.2);
  color: var(--navy);
}

.status-pill--expired {
  background: rgba(183, 28, 28, 0.12);
  color: #b71c1c;
}

.status-pill--sync-pending {
  background: rgba(198, 82, 39, 0.1);
  color: #7a3018;
}

.portal-auth {
  max-width: 520px;
  margin: 0 auto;
}

.portal-auth .intake-card {
  margin: 0;
}

.portal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.portal-table th,
.portal-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
}

.portal-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

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

.portal-link {
  color: var(--blue);
  font-weight: 600;
}

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

.portal-link--button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  color: var(--blue);
  font-weight: 600;
}

.btn[disabled],
.btn.is-disabled {
  opacity: 0.55;
  pointer-events: none;
  cursor: not-allowed;
}

.portal-book__profile {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.portal-book__promo {
  display: grid;
  gap: 2px;
  margin: -8px 0 20px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, #a8431f 0%, var(--orange) 50%, #d4622e 100%);
  color: #fff;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.35;
}

.portal-book__promo-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.9;
}

.portal-book__promo-note {
  font-size: 0.8rem;
  opacity: 0.92;
}

.portal-book__label {
  margin: 0 0 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.portal-book__name {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
}

.portal-book__note {
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: rgba(198, 82, 39, 0.08);
  color: #7a3018;
  font-size: 0.88rem;
}

.portal-book__heading {
  margin: 0 0 12px;
  font-size: 1.2rem;
  color: var(--navy);
}

.portal-book__step {
  margin-bottom: 28px;
}

.portal-book__policy {
  margin: -4px 0 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.portal-book__service {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 12px 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  min-width: 0;
}

.portal-book__service:hover {
  border-color: rgba(76, 138, 155, 0.45);
}

.portal-book__service.is-checked {
  border-color: var(--blue);
  background: rgba(76, 138, 155, 0.08);
  box-shadow: inset 0 0 0 1px rgba(76, 138, 155, 0.25);
}

.portal-book__service input {
  margin: 0;
  accent-color: var(--blue);
  align-self: flex-start;
  width: 18px;
  height: 18px;
}

.portal-book__service-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.portal-book__service strong {
  display: block;
  color: var(--navy);
  font-size: 0.92rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.portal-book__service small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.portal-book__schedule {
  display: grid;
  grid-template-columns: minmax(260px, 1.05fr) minmax(220px, 0.95fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.portal-book__calendar-pane {
  padding: 20px 18px 22px;
  border-right: 1px solid var(--border);
  min-width: 0;
}

.portal-book__times-pane {
  padding: 20px 18px 22px;
  background: #fafbfc;
  min-height: 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.portal-book__calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.portal-book__cal-month {
  margin: 0;
  font-weight: 700;
  color: var(--navy);
  font-size: 1rem;
  text-align: center;
}

.portal-book__cal-nav {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.portal-book__cal-nav:hover:not(:disabled) {
  border-color: var(--blue);
  color: var(--blue);
}

.portal-book__cal-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.portal-book__cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
  color: var(--muted);
}

.portal-book__cal-weekdays > span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
}

.portal-book__cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.portal-book__cal-day {
  min-height: 48px;
  aspect-ratio: 1;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}

.portal-book__cal-day.is-empty {
  visibility: hidden;
  pointer-events: none;
}

.portal-book__cal-day.is-today:not(.is-selected) {
  box-shadow: inset 0 0 0 1px rgba(76, 138, 155, 0.55);
}

.portal-book__cal-day:hover:not(:disabled):not(.is-selected) {
  background: rgba(76, 138, 155, 0.12);
}

.portal-book__cal-day.is-selected {
  background: var(--blue);
  color: #fff;
}

.portal-book__cal-day.is-disabled,
.portal-book__cal-day:disabled {
  color: #b7c0c6;
  cursor: not-allowed;
}

.portal-book__times-date {
  margin: 0 0 14px;
  text-align: center;
  font-weight: 700;
  color: var(--navy);
}

.portal-book__slots {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  max-height: 420px;
  padding-right: 4px;
  -webkit-overflow-scrolling: touch;
}

.portal-book__slot-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.portal-book__slot {
  flex: 1;
  min-height: 44px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.portal-book__slot:hover {
  border-color: rgba(76, 138, 155, 0.5);
}

.portal-book__slot.is-selected {
  background: #5b6b75;
  border-color: #5b6b75;
  color: #fff;
}

.portal-book__slot-confirm {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.portal-book__checkout-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.portal-book__confirm {
  margin-top: 0;
}

.portal-book__confirm .consent-block {
  margin-bottom: 14px;
}

.portal-book__confirm .consent-block label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
}

.portal-book__confirm .consent-block input {
  margin-top: 3px;
  flex-shrink: 0;
}

.portal-book__pay-btn {
  width: 100%;
  min-height: 48px;
}

.portal-book__summary {
  margin-top: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fafbfc;
}

.portal-book__breakdown {
  margin: 0 0 8px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.portal-book__price {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 4px 0 0;
  color: var(--navy);
}

.portal-book__checkout {
  margin-top: 16px;
  min-height: 320px;
  grid-column: 1 / -1;
}

/* 13" laptops and smaller desktops (~1280–1366 CSS px) */
@media (max-width: 1360px) {
  .portal-book__services {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
  }

  .portal-book__service {
    padding: 10px;
  }

  .portal-book__service strong {
    font-size: 0.84rem;
  }

  .portal-book__service small {
    font-size: 0.72rem;
  }

  .portal-book__schedule {
    grid-template-columns: minmax(240px, 1fr) minmax(200px, 0.9fr);
  }
}

/* Narrow laptops / large tablets: keep one service row via horizontal scroll */
@media (max-width: 1180px) {
  .portal-book__services {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .portal-book__service {
    flex: 0 0 188px;
  }

  .portal-book__schedule {
    grid-template-columns: 1fr 1fr;
  }
}

/* Stack calendar + times before phone widths so 13" split panes stay readable */
@media (max-width: 980px) {
  .portal-book__schedule {
    grid-template-columns: 1fr;
  }

  .portal-book__calendar-pane {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

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

  .portal-book__slots {
    max-height: none;
  }
}

/* Phones (~6") */
@media (max-width: 640px) {
  .portal-page .site-header__inner {
    padding: 10px 12px;
  }

  .portal-page .site-nav {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 6px;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .portal-page .site-nav::-webkit-scrollbar {
    display: none;
  }

  .portal-page .site-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 0.88rem;
  }

  .portal-page .portal-main {
    padding: 10px 8px 36px;
  }

  .portal-card {
    padding: 14px 10px;
  }

  .portal-book__promo {
    margin: 0 0 14px;
    padding: 14px;
    font-size: 1rem;
  }

  .portal-book__promo-note {
    font-size: 0.8rem;
  }

  .portal-book__heading {
    font-size: 1.2rem;
    text-align: left;
    margin: 0 0 8px;
  }

  .portal-book__policy {
    font-size: 0.92rem;
  }

  .portal-book__services {
    display: grid;
    grid-template-columns: 1fr;
    overflow: visible;
    padding-bottom: 0;
  }

  .portal-book__service {
    flex: none;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
  }

  .portal-book__service input {
    margin-top: 2px;
  }

  .portal-book__service strong {
    font-size: 1.02rem;
  }

  .portal-book__service small {
    font-size: 0.88rem;
  }

  .portal-book__schedule {
    border-radius: 10px;
  }

  .portal-book__calendar-pane,
  .portal-book__times-pane {
    padding: 14px 6px 16px;
  }

  .portal-book__cal-month {
    font-size: 1.1rem;
  }

  .portal-book__cal-nav {
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
  }

  .portal-book__cal-weekdays {
    gap: 4px;
    margin-bottom: 12px;
  }

  .portal-book__cal-weekdays > span {
    font-size: 0.9rem;
  }

  .portal-book__cal-grid {
    gap: 4px;
  }

  .portal-book__cal-day {
    min-height: 48px;
    font-size: 1.05rem;
  }

  .portal-book__times-date {
    font-size: 1.05rem;
  }

  .portal-book__slot {
    flex: 1 1 100%;
    min-height: 48px;
    font-size: 1.05rem;
  }

  .portal-book__slot-row {
    flex-wrap: wrap;
  }

  .portal-book__slot-confirm {
    flex: 1 1 100%;
    width: 100%;
    min-height: 48px;
  }

  .portal-book__checkout {
    min-height: 280px;
  }

  .portal-book__pay-btn {
    min-height: 52px;
    font-size: 1.05rem;
  }

  .portal-actions {
    flex-direction: column;
  }

  .portal-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 400px) {
  .portal-book__cal-weekdays > span {
    font-size: 0.85rem;
  }

  .portal-book__cal-day {
    min-height: 46px;
    font-size: 1rem;
  }
}

.portal-payment-result__hero {
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.portal-payment-result__hero--success {
  background: rgba(34, 120, 84, 0.08);
  border: 1px solid rgba(34, 120, 84, 0.18);
}

.portal-payment-result__hero--error {
  background: rgba(176, 48, 48, 0.08);
  border: 1px solid rgba(176, 48, 48, 0.18);
}

.portal-payment-result__hero--warning {
  background: rgba(180, 120, 20, 0.08);
  border: 1px solid rgba(180, 120, 20, 0.18);
}

.portal-payment-result__eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}

.portal-payment-result__hero h2 {
  margin: 0 0 8px;
}

.portal-payment-result__hero p {
  margin: 0;
  color: var(--muted);
}

.portal-payment-result__details {
  display: grid;
  grid-template-columns: minmax(120px, 160px) 1fr;
  gap: 12px 16px;
  margin: 0 0 24px;
}

.portal-payment-result__actions {
  margin-top: 8px;
}

.portal-admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.portal-admin-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
}

.portal-admin-nav a.is-active,
.portal-admin-nav a:hover {
  border-color: rgba(76, 138, 155, 0.35);
  background: rgba(76, 138, 155, 0.1);
  color: var(--blue);
}

.portal-kv {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 8px 16px;
  margin-top: 12px;
}

.portal-kv dt {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}

.portal-kv dd {
  margin: 0;
  font-size: 0.92rem;
  color: var(--navy);
}

.portal-progress {
  margin-top: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 26, 32, 0.08);
  overflow: hidden;
}

.portal-progress span {
  display: block;
  height: 100%;
  background: var(--blue);
  border-radius: inherit;
}

.portal-status-ready {
  color: #1b5e20;
}

.portal-status-not-ready {
  color: #7a3018;
}

.portal-checklist {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.portal-checklist__label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
  color: var(--navy);
}

.portal-checklist__label input {
  margin-top: 4px;
}

.portal-checklist__item textarea {
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
}

.portal-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

.portal-filter-bar .form-field {
  min-width: 180px;
}

.status-pill--not-invited {
  background: rgba(15, 26, 32, 0.08);
  color: var(--muted);
}

.status-pill--invited {
  background: rgba(76, 138, 155, 0.15);
  color: var(--blue);
}

.status-pill--accepted {
  background: rgba(27, 94, 32, 0.12);
  color: #1b5e20;
}

.portal-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 26, 32, 0.55);
}

.portal-modal.is-open {
  display: flex;
}

.portal-modal__box {
  width: 100%;
  max-width: 440px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 18px 45px rgba(15, 26, 32, 0.25);
}

.portal-modal__box h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  color: var(--navy);
}

.portal-modal__summary {
  margin: 0 0 12px;
  color: var(--navy);
  line-height: 1.5;
}

.portal-modal__note {
  margin: 0;
  font-size: 0.9rem;
}

.portal-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

@media (max-width: 520px) {
  .portal-modal__actions {
    flex-direction: column;
  }

  .portal-modal__actions .btn {
    width: 100%;
    text-align: center;
  }

  .portal-modal__box {
    margin: 16px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
  }

  .portal-table__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .portal-auth .intake-card,
  .portal-book__picker,
  .portal-book__confirm {
    padding-left: 0;
    padding-right: 0;
  }

  .portal-main {
    overflow-x: hidden;
  }
}

body.portal-page {
  overflow-x: hidden;
}
