select,
textarea {
  width: 100%;
  border: 1px solid #cfd4dc;
  border-radius: 10px;
  padding: 13px 14px;
  background: #fff;
  font: inherit;
  outline: none;
}

textarea { resize: vertical; }
select:focus,
textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(232, 80, 47, .14); }
.dashboard { gap: 30px; }
.portal-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 6px 20px rgba(17, 24, 39, .05); }
.portal-tabs button { flex: 1 0 auto; border: 0; border-radius: 9px; padding: 12px 16px; background: transparent; color: var(--muted); font: inherit; font-weight: 800; cursor: pointer; }
.portal-tabs button.active { background: var(--ink); color: #fff; }
.portal-panel { display: none; }
.portal-panel.active { display: block; }
.portal-card { border: 1px solid var(--line); border-radius: 18px; padding: 22px; background: #fff; box-shadow: 0 7px 25px rgba(17, 24, 39, .045); }
.profile-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.wide-field { grid-column: 1 / -1; }
.profile-readout { display: grid; align-content: center; gap: 4px; border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; background: var(--soft); }
.profile-readout span { color: var(--muted); font-size: .78rem; }
.waiver-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 18px; }
.waiver-card h2,
.waiver-card p { margin: 0 0 7px; }
.schedule-list { display: grid; gap: 12px; }
.schedule-card { display: grid; grid-template-columns: 105px minmax(0, 1fr) auto; align-items: center; gap: 18px; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; background: #fff; }
.schedule-card.booked { border-color: #abd7ba; background: #f6fcf8; }
.schedule-date { display: grid; gap: 4px; padding-right: 14px; border-right: 1px solid var(--line); }
.schedule-date strong { font-size: 1rem; }
.schedule-date span,
.schedule-info p,
.schedule-info small { color: var(--muted); }
.schedule-info h3,
.schedule-info p { margin: 3px 0; }
.schedule-time { color: var(--brand); font-weight: 900; }
.booked-button { border: 1px solid #abd7ba; border-radius: 10px; padding: 12px 16px; background: #e8f5ed; color: var(--green); font: inherit; font-weight: 900; }
.waiver-modal-card { position: relative; width: min(760px, 100%); max-height: calc(100vh - 30px); overflow: auto; border-radius: 22px; padding: 30px; background: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.waiver-modal-card h2 { margin: 0 0 14px; }
.waiver-copy { max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; background: var(--soft); color: #344054; font-size: .9rem; line-height: 1.55; }
.waiver-confirm { display: flex; grid-template-columns: auto 1fr; align-items: center; margin: 16px 0; }
.waiver-confirm input { width: auto; }
.waiver-modal-card canvas { display: block; width: 100%; height: 190px; border: 2px dashed #aab2bf; border-radius: 12px; background: #fff; touch-action: none; }
.waiver-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 14px; }
.waiver-actions .link-button { margin: 0; }
.small-note { margin-bottom: 0; font-size: .8rem; }

@media (max-width: 640px) {
  .dashboard { gap: 24px; }
  .profile-form { grid-template-columns: 1fr; }
  .wide-field { grid-column: 1; }
  .waiver-card { align-items: stretch; flex-direction: column; }
  .schedule-card { grid-template-columns: 78px minmax(0, 1fr); }
  .schedule-card > button { grid-column: 1 / -1; width: 100%; }
  .waiver-modal-card { padding: 26px 16px 20px; }
  .waiver-actions { display: grid; }
  .portal-tabs button { padding: 11px 13px; }
}
