/* Portal-specific additions on top of /site.css */

.portal-narrow { max-width: 30rem; margin: 0 auto; padding: 1rem 1.4rem 3rem; }
.portal-wide { max-width: 46rem; margin: 0 auto; padding: 1rem 1.4rem 3rem; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.3rem 1.5rem;
  margin: 1rem 0;
}
.card h1 { font-size: 1.5rem; margin-bottom: 0.4rem; }

.card label { display: block; font-weight: 700; margin: 0.9rem 0 0.25rem; }
.card input, .card textarea {
  font: inherit;
  width: 100%;
  min-height: 48px;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  margin: 0.3rem 0;
}
.card input[type="file"] { border: none; min-height: 0; padding: 0.3rem 0; }
.card form button { margin-top: 1.1rem; }

.form-status:not(:empty) {
  border-left: 3px solid var(--fern);
  padding: 0.35rem 0.75rem;
  margin-top: 0.8rem;
}

.notice {
  border-left: 4px solid var(--fern);
  background: var(--card);
  padding: 0.6rem 0.9rem;
  border-radius: 0 10px 10px 0;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.result-row:last-child { border-bottom: none; }
.result-row .done { color: var(--fern); font-weight: 700; }
.result-score { font-weight: 700; white-space: nowrap; }

.pay-btn { margin-left: 0.7rem; min-height: 0; padding: 0.35rem 0.9rem; }

/* the hub (portal.js): the shared tabs/calendar/file rules live in /theme.css */
#panel section.card + section.card, #panel details.card { margin-top: 1rem; }
details.card summary { cursor: pointer; font-family: var(--font-ui); font-weight: 600; }
.profile-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.1rem; }
.card label + .muted { margin-top: 0.2rem; }
.appt + .appt { border-top: 1px solid var(--line); }
.message { padding: 0.6rem 0.9rem; margin: 0.5rem 0; border-radius: 10px; background: var(--paper-2); }
.message.from-clinician { background: color-mix(in srgb, var(--lichen) 60%, var(--card)); }

/* Files: the upload card takes dropped files */
.drop-zone { border: 2px dashed var(--line); transition: border-color 0.15s, background-color 0.15s; }
.drop-zone.is-over { border-color: var(--rose); background: var(--lichen); }
