:root{
  font-family:system-ui,sans-serif;
  color:#283831;
  background:#FAF7F0;
  font-size:17px
}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0}
header{
  max-width:900px;
  margin:auto;
  padding:24px;
  display:flex;
  justify-content:space-between;
  gap:16px
}
a{color:#36584D}
main{max-width:720px;margin:20px auto;padding:24px}
h1,h2,h3{font-family:Georgia,serif;font-weight:400;line-height:1.15}
h1{font-size:clamp(2rem,6vw,3.3rem)}
h2{font-size:2rem}
h3{font-size:1.45rem}
.eyebrow{font-size:.75rem;letter-spacing:.14em;font-weight:700}
p{line-height:1.6}
section{
  background:#FAF7F0;
  border:1px solid #B8C8BC;
  border-radius:20px;
  padding:clamp(18px,4vw,32px);
  margin:24px 0
}
label{display:block;margin:20px 0 8px;font-weight:600}
input,textarea{
  display:block;
  width:100%;
  padding:14px;
  border:1px solid #60786A;
  background:#fff;
  border-radius:8px;
  font:inherit;
  color:inherit
}
textarea{resize:vertical}
button{
  font:inherit;
  min-height:48px;
  padding:12px 22px;
  background:#36584D;
  border:1px solid #36584D;
  color:white;
  border-radius:30px;
  cursor:pointer;
  margin-top:16px
}
.secondary{background:transparent;color:#36584D}
button:disabled{opacity:.6;cursor:wait}
:focus-visible{outline:3px solid #36584D;outline-offset:4px}
.check{
  display:flex;
  align-items:flex-start;
  gap:12px;
  font-weight:400;
  line-height:1.5
}
.check input{width:22px;height:22px;flex-shrink:0}
details{margin:24px 0;line-height:1.6}
summary{cursor:pointer;padding:10px 0;font-weight:600}
.account{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap
}
.account span{overflow-wrap:anywhere}
.account button{margin-top:0}
.actions{display:flex;gap:12px;flex-wrap:wrap}
#status{padding:12px 0;min-height:30px}
.portal-nav{
  display:flex;
  gap:8px;
  margin:28px 0;
  padding-bottom:14px;
  border-bottom:1px solid #B8C8BC
}
.portal-nav button{margin:0}
.view-toggle.active{background:#36584D;color:#fff}
.clinician-toolbar{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:20px
}
.clinician-toolbar h2{margin:.25rem 0}
.clinician-toolbar button{margin-top:0;flex-shrink:0}
.access-required,
.invite-builder{
  margin:20px 0;
  padding:20px;
  border:1px solid #B8C8BC;
  border-radius:16px;
  background:#FAF7F0
}
.access-required h2,
.invite-builder h3{margin-top:0}
.invite-builder form{margin-top:18px}
.invite-builder button{margin-top:12px}
#invite-status{min-height:1.6em}
#invite-link{font-size:.9rem;overflow-wrap:anywhere}
.clinician-card{
  margin:18px 0;
  padding:20px;
  border:1px solid #B8C8BC;
  border-radius:16px;
  background:#FAF7F0
}
.clinician-card h3{margin:0 0 4px}
.record-meta{margin:0 0 18px;color:#4C6055;font-size:.92rem}
.clinician-card dl{margin:0}
.clinician-card dt{margin-top:16px;font-weight:700}
.clinician-card dd{
  margin:5px 0 0;
  line-height:1.55;
  white-space:pre-wrap;
  overflow-wrap:anywhere
}
.empty-state{
  padding:20px;
  border:1px dashed #B8C8BC;
  border-radius:14px;
  background:#FAF7F0
}
footer{font-size:.9rem;margin-top:36px}
@media(max-width:560px){
  main{padding:16px;margin-top:0}
  header{padding:18px 16px}
  .actions button{width:100%;margin:4px 0}
  .portal-nav{display:grid;grid-template-columns:1fr}
  .portal-nav button{width:100%}
  .clinician-toolbar{display:block}
  .clinician-toolbar button{width:100%;margin-top:8px}
  .clinician-card{padding:16px}
}

.next-appointment{padding:24px;margin:24px 0 32px;background:#DDE7DE;border-color:#B8C8BC}
.appointment-heading-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.appointment-heading-row .eyebrow{margin:0 0 8px}
.appointment-heading-row h2{margin:0;color:#36584D;font-size:1.8rem}
.appointment-heading-row button{margin:0;flex-shrink:0}
.appointment-badge{display:inline-block;border:1px solid #60786A;border-radius:30px;padding:6px 12px;font-size:.82rem;margin:16px 0 12px}
.appointment-date{font:1.5rem/1.25 Georgia,serif;margin:8px 0;color:#36584D}
.appointment-time{font-size:1.6rem;font-weight:600;margin:6px 0}
.appointment-summary{margin:20px 0}
.appointment-summary>div{display:grid;grid-template-columns:minmax(100px,1fr) 2fr;gap:16px;padding:12px 0;border-top:1px solid #B8C8BC}
.appointment-summary dt{font-weight:600}
.appointment-summary dd{margin:0;overflow-wrap:anywhere}
.appointment-notice{padding:14px;border-radius:12px;background:#FAF7F0;font-size:.92rem}
.appointment-actions{display:flex;align-items:center;flex-wrap:wrap;gap:14px;margin:22px 0}
.appointment-actions button{margin:0}
.appointment-actions a{min-height:48px;display:inline-flex;align-items:center;justify-content:center;text-underline-offset:4px}
.appointment-actions .appointment-primary{border-radius:30px;padding:12px 22px;background:#36584D;color:#fff;text-decoration:none}
#appointment-updated{margin:12px 0 0;font-size:.78rem}
@media(max-width:560px){.next-appointment{padding:18px}.appointment-heading-row{display:block}.appointment-heading-row button{margin-top:14px}.appointment-actions{display:grid}.appointment-actions>*{width:100%}.appointment-summary>div{grid-template-columns:1fr;gap:6px}}
