/* Approved patient dashboard. Scoped to this surface; support and clinical rooms retain their UI. */
#app[data-role=patient][data-route=dashboard] .app-main{padding:40px clamp(20px,3vw,44px) 90px}
#app[data-role=patient][data-route=dashboard] .app-main>.app-footer{display:none}
.pd-layout{display:grid;grid-template-columns:minmax(300px,1fr) minmax(230px,300px);gap:clamp(28px,4vw,64px);max-width:1180px;margin:20px auto 0;align-items:start}
.pd-main,.pd-secondary{min-width:0}.pd-secondary{padding-top:60px}.pd-layout h1{font-size:24px;line-height:1.4;font-weight:500;letter-spacing:-.025em;margin:16px 0 12px;color:var(--ink)}
.pd-waiting{text-align:center;padding:0 16px}.pd-waiting h1{font-size:20px;margin:0}.pd-state{display:flex;align-items:center;gap:7px;color:var(--action);font-size:13px;font-weight:500;margin:0 0 12px}.pd-state i{width:6px;height:6px;border-radius:50%;background:currentColor;flex:none}.pd-waiting .pd-state{justify-content:center}.pd-waiting>.pd-state,.pd-waiting>.pd-estimate,.pd-waiting>.pd-hint{max-width:none;width:100%}
.pd-disc{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;margin:24px auto;width:220px;height:220px;border-radius:50%;position:relative;isolation:isolate;color:#fff}
.pd-disc::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:linear-gradient(140deg,#199b84 0%,#087b71 58%,#09665f 100%);animation:pd-disc-pulse 3s ease-in-out infinite;animation-play-state:var(--vis-play-state,paused)}
@keyframes pd-disc-pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.04)}}
.pd-disc time{font:500 60px/1.1 Poppins,sans-serif;font-variant-numeric:tabular-nums;letter-spacing:-.035em;color:#fff}.pd-disc time.pd-long{font-size:42px}.pd-disc span{font-size:12px;color:#def4eb}.pd-estimate{font-size:13px;color:var(--muted);margin:0}.pd-hint{font-size:14px;margin:10px 0 0}.pd-warning{font-size:13px;line-height:1.65;color:#80530d;background:#fff6e5;border-radius:8px;padding:12px 14px;margin:0 auto;max-width:340px;text-align:left}
.pd-status{padding:8px 24px 24px}.pd-copy{font-size:14px;line-height:1.7;color:var(--muted);margin:12px 0 24px;max-width:65ch}.pd-icon{width:56px;height:56px;border-radius:50%;display:grid;place-items:center;color:var(--action);background:var(--mint)}.pd-icon .icon{width:25px;height:25px}.pd-attention .pd-icon{background:#fff6e5;color:#80530d}.pd-attention .pd-state{color:#80530d}
.pd-layout .pd-primary{width:100%;min-height:48px;display:flex;align-items:center;justify-content:center;gap:12px;border-radius:9px;font-size:14px;font-weight:500}.pd-primary .icon{width:17px}.pd-text{display:block;min-height:44px;border:0;background:transparent;padding:12px 0;margin:auto;color:var(--action);font:400 13px Poppins,sans-serif;cursor:pointer}
.pd-active{padding:24px;background:#eff7fa;border-radius:12px}.pd-active .pd-state{color:#246879}.pd-active .pd-primary{background:#215e73;color:#fff}.pd-doctor{display:flex;align-items:center;gap:12px;margin:24px 0}.pd-doctor .avatar{width:48px;height:48px;background:#dbeef1;color:#246879;flex:none}.pd-doctor strong{font-size:16px;font-weight:500}.pd-doctor small{display:block;font-size:12px;color:var(--muted);margin-top:4px}.pd-meta{font-size:12px;color:var(--muted);line-height:1.7}.pd-active .pd-copy{font-size:13px}.pd-scheduled-time{font-size:48px;line-height:1.3;font-weight:500;font-variant-numeric:tabular-nums;letter-spacing:-.035em;color:var(--action);margin:20px 0}.pd-scheduled-time span{display:block;font-size:12px;line-height:1.7;letter-spacing:0;font-weight:400;color:var(--muted);margin-top:5px}
.pd-documents{border-top:1px solid var(--line);margin:22px 0}.pd-document{display:flex;gap:12px;align-items:center;padding:16px 0;border-bottom:1px solid var(--line)}.pd-document>div{flex:1;min-width:0}.pd-document strong{font-size:14px;font-weight:500}.pd-document small{display:block;font-size:12px;color:var(--muted);margin-top:4px}.pd-document>.icon{color:var(--action);flex:none}.pd-document .ui-line-action{flex:none;min-width:44px;min-height:44px}
.pd-prep{border-bottom:1px solid var(--line)}.pd-prep summary{display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;min-height:48px;font-size:14px;font-weight:500;cursor:pointer}.pd-prep summary::-webkit-details-marker{display:none}.pd-prep summary .icon{width:16px;transform:rotate(90deg)}.pd-prep[open] summary .icon{transform:rotate(-90deg)}.pd-prep ul{list-style:none;padding:6px 0 16px;margin:0;display:grid;gap:12px;font-size:13px;color:var(--muted)}.pd-prep li{display:flex;gap:9px;align-items:flex-start}.pd-prep li .icon{width:16px;height:16px;color:var(--action);margin-top:2px;flex:none}
.pd-profile,.pd-links button{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:48px;border:0;background:transparent;padding:14px 0;text-align:left;font:400 14px Poppins,sans-serif;color:var(--action);cursor:pointer}.pd-links button{border-bottom:1px solid var(--line);color:var(--ink)}.pd-profile .icon,.pd-links .icon{width:17px;flex:none}.pd-safety{font-size:12px;line-height:1.7;color:var(--muted);margin:24px 0 0}.pd-other{padding:20px;margin-top:24px;border:1px solid var(--line);border-radius:10px}.pd-other h2{font-size:14px;font-weight:500;margin:0 0 8px}.pd-other>div{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:8px 0}.pd-other p{margin:0;min-width:0}.pd-other strong{display:block;font-size:14px;font-weight:500}.pd-other span{display:block;font-size:12px;color:var(--muted);margin-top:4px}.pd-other .ui-line-action{min-width:44px;min-height:44px}
#pd-update{margin-bottom:20px;padding:12px 14px;border:1px solid var(--line);border-radius:8px;font-size:13px;line-height:1.6;color:var(--muted)}#pd-update button{display:block;min-height:44px;border:0;background:none;color:var(--action);font:inherit;cursor:pointer}.pd-loading{text-align:center;padding:40px 20px}.pd-loader{width:32px;height:32px;margin:30px auto;border:2px solid var(--line);border-top-color:var(--action);border-radius:50%;animation:pd-spin 1s linear infinite}@keyframes pd-spin{to{transform:rotate(360deg)}}
.pd-layout [hidden]{display:none!important}.pd-layout :is(button,summary):focus-visible{outline:2px solid var(--action);outline-offset:4px}.pd-layout button:hover{filter:brightness(.96)}.pd-layout :is(strong,p,span,h1){overflow-wrap:break-word}
html[data-theme=dark] .pd-active{background:#19313c}html[data-theme=dark] .pd-active .pd-state{color:#9acbd9}html[data-theme=dark] .pd-doctor .avatar{background:#274c57;color:#ade5ec}html[data-theme=dark] .pd-active .pd-primary{background:#81c9dc;color:#122f3a}html[data-theme=dark] .pd-warning,html[data-theme=dark] .pd-attention .pd-icon{color:#f1cf92;background:#3a3020}html[data-theme=dark] .pd-attention .pd-state{color:#f1cf92}
@media(max-width:1100px){.pd-layout{grid-template-columns:minmax(0,1fr);max-width:600px;gap:28px}.pd-secondary{padding-top:0}.pd-status{padding-inline:0}.pd-active{padding:24px}.pd-waiting{padding:0}}
@media(max-width:600px){#app[data-role=patient][data-route=dashboard] .app-main{padding:26px 20px 100px}.pd-layout{margin:0;gap:28px}.pd-layout h1{font-size:22px}.pd-waiting h1{font-size:18px}.pd-disc{width:196px;height:196px;margin:22px auto 18px}.pd-disc time{font-size:54px}.pd-disc time.pd-long{font-size:36px}.pd-active{padding:22px 18px}.pd-layout .pd-primary{font-size:13px}.pd-status:not(.pd-active){padding-top:4px}.pd-other{padding:16px}.pd-secondary{padding-bottom:0}}
@media(prefers-reduced-motion:reduce){.pd-loader,.pd-disc::before{animation:none}}
/* The address gate already owns validation and persistence; only its visual layout changes. */
.patient-entry-address .patient-conversation-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.patient-entry-address .patient-conversation-fields>.field:has([name=street]),.patient-entry-address .patient-conversation-fields>.field:has([name=complement]),.patient-entry-address .patient-conversation-fields>.field:has([name=district]),.patient-entry-address .municipality-field{grid-column:1/-1}.patient-entry-address .patient-conversation-actions .button{min-height:48px}.patient-entry-address input{font-size:16px}
