/* HOF Odonto: paleta extraída dos originais, sem alterar os logotipos. */
:root{--brand:#fb6233;--brand-gray:#737373;--brand-action:#a53915;--brand-action-hover:#8e2f13;--brand-wash:#fff1e9;--brand-line:#e4b7a4;--ink:#352b27;--muted:#70615a;--canvas:#f8f6f3;--surface:#fff;--line:#e6ddd7;--green:var(--brand-action);--sidebar-bg:#fff;--sidebar-ink:#62544d;--sidebar-label:#70615a;--ease-out:cubic-bezier(.23,1,.32,1);--ease-in-out:cubic-bezier(.77,0,.175,1)}
html[data-brand-theme=orange]{--sidebar-bg:linear-gradient(160deg,#fb6233,#ff834f);--sidebar-ink:#402117;--sidebar-label:#402117}
body{background:var(--canvas);color:var(--ink)}h1,h2,h3,h4{color:var(--ink)}p{line-height:1.65}.muted,small,.eyebrow,.label{color:var(--muted)}button{background:var(--brand-action);color:#fff;transition:transform 160ms var(--ease-out),background-color 160ms ease,box-shadow 160ms ease}button:hover{transform:none;filter:none}button:active{transform:scale(.98)}button:disabled{cursor:default}button:focus-visible,a:focus-visible{outline:3px solid var(--brand-action);outline-offset:3px}input,select,textarea{background:#fffdfb;color:var(--ink);border-color:#c7b8ae;border-radius:10px}label{color:#62544d}input:focus,textarea:focus,select:focus{outline:2px solid var(--brand-action);outline-offset:2px}button.text{background:#f5efea;color:#6c341f}.badge{color:#62544d;background:#f4eee9}.badge.paid,.badge.confirmada,.badge.realizada{color:#166246;background:#e0f2e9}.badge.partial{color:#795310;background:#fff0ce}.badge.falta,.badge.cancelada{color:#943748;background:#fce9ed}
/* Exibição dos PNGs originais: enquadramento CSS da área não transparente. */
.brand-lockup{position:relative;display:inline-block;width:184px;max-width:100%;aspect-ratio:848/249;overflow:hidden;flex-shrink:0;vertical-align:middle}.brand-lockup img{position:absolute;width:127.3585%;max-width:none;height:auto;left:-13.4434%;top:-220.8835%;margin:0}.brand-lockup .brand-white{display:none}.brand-emblem{width:176px;aspect-ratio:622/548}.brand-emblem img{width:173.6334%;left:-37.1383%;top:-72.2628%}.brand{padding:4px 10px 26px;min-height:88px}.brand>span{font-size:inherit;letter-spacing:normal}.brand .brand-lockup{width:190px}body>aside{background:var(--sidebar-bg);border-right:1px solid var(--line)}.sidebar-section h2{color:var(--sidebar-label);font-size:10px}.sidebar-section button{color:var(--sidebar-ink);background:transparent}.sidebar-section button span{color:inherit;background:#f7f1ec}.sidebar-section button.active{background:var(--brand-wash);color:var(--brand-action);border-color:var(--brand-line);box-shadow:inset 3px 0 var(--brand)}.sidebar-section button:hover{background:#fff4ed}.sidebar-section button.active span{background:#ffe4d6}.aside-note{background:#f8f3ee;color:#62544d;border:1px solid #e8ddd3}.aside-note p{color:#70615a}.aside-note .dot{background:#238263}html[data-brand-theme=orange] body>aside .brand-color{display:none}html[data-brand-theme=orange] body>aside .brand-white{display:block}html[data-brand-theme=orange] body>aside .label{color:#402117}html[data-brand-theme=orange] .sidebar-section button span{background:#ffffff42}html[data-brand-theme=orange] .sidebar-section button.active{background:#fff;border-color:#fff;color:#8e2f13;box-shadow:0 3px 12px #672a1812}html[data-brand-theme=orange] .sidebar-section button:hover{background:#ffffffc9;color:#402117}html[data-brand-theme=orange] .aside-note{background:#fff2e8;border-color:#ffffff80;color:#402117}
.workspace>header{gap:16px;min-height:72px;height:auto;padding:12px 32px;border-bottom:1px solid var(--line);background:#ffffffed}.session-label{min-width:0;color:#4e4038;font-weight:600;line-height:1.4}.session-label small{font-size:10px;font-weight:400;margin-top:3px}.header-actions{display:flex;gap:14px;align-items:center;margin-left:auto}.appearance-switch{display:flex;padding:4px;gap:3px;border:1px solid #e2d5cc;border-radius:100px;background:#f8f3ee}.appearance-switch button{background:transparent;color:#62544d;font-size:11px;padding:7px 11px;border-radius:100px;min-height:32px;box-shadow:none}.appearance-switch button[aria-pressed=true]{background:#fff;color:#8e2f13;box-shadow:0 2px 6px #5f32220e}.appearance-switch button span{margin-right:4px}#sync-status{font-size:10px;color:#62544d}#sync-status[hidden]{display:none}
main{--module-accent:var(--brand);max-width:1680px}main[data-module]{--module-accent:var(--brand)}.heading{background:linear-gradient(115deg,#fff,#fff9f4);border-color:var(--line);border-left:4px solid var(--brand);box-shadow:0 4px 18px #683a2005}.heading .eyebrow{color:#963c20}.heading h1{font-weight:650;letter-spacing:-.7px}.panel{border-color:var(--line);box-shadow:0 4px 20px #563b2407}.panel>h2:first-child{border-color:var(--line)}.stats article{background:#fff;border-color:var(--line);border-top-color:var(--brand);box-shadow:0 3px 14px #563b2405}.stats article:nth-child(2){background:linear-gradient(145deg,#fff,#f6faff);border-top-color:#6c8fbb}.stats article:nth-child(3){background:linear-gradient(145deg,#fff,#fff8ef);border-top-color:#be9961}.stats article:nth-child(4){background:linear-gradient(145deg,#fff,#f8f5ff);border-top-color:#9276b7}.stats p,.stats article small{color:var(--muted)}.stats article strong{letter-spacing:-.5px;color:var(--ink)}.hero{background:linear-gradient(120deg,#fff8f0,#fff0e3);border-color:#ead2bf}.hero h1{color:var(--ink)}.metric-card{box-shadow:0 4px 16px #563b2406}.activity-chart text{fill:#70615a}.module-toolbar{background:#fffdfb;border-color:var(--line)}.document-row{background:#fffdfb;border-color:var(--line);color:var(--ink)}.document-row:hover{background:var(--brand-wash)}.management-insight,.expense-card,.patient-entry{background:#fffdfb;border-color:var(--line)}.record-title .badge{border:1px solid #eee2d7}.record-grid article{transition:transform 160ms var(--ease-out),box-shadow 160ms ease}.appointment:nth-child(even){background:#faf6f1}.appointment .patient-name{color:#8e2f13}.patient-cards .patient-entry{background:linear-gradient(140deg,#fff,#fff8f2);border-top-color:var(--brand)}.patient-identity{border-top-color:var(--brand);background:linear-gradient(120deg,#fff,#fff8f2)}.patient-avatar{background:#ffeadc;border-color:#e9bd9f;color:#8e2f13}.patient-summary>div{border-color:var(--line)}.patient-summary>div:first-child{border-left-color:var(--brand)}.patient-summary span{color:var(--muted)}.patient-context{background:#fff8f1;border-color:#e4cdbb;border-left-color:var(--brand)}.patient-tabs{background:#f4eee8;border-color:var(--line)}.patient-tabs button{color:#62544d;background:transparent}.patient-tabs button[aria-selected=true]{background:#fff;color:#8e2f13;border-color:#dfbaa5}.patient-facts>div{background:#faf6f2;border-color:var(--line)}.patient-facts dt{color:var(--muted)}.patient-intake>summary{color:#8e2f13}.patient-tags .badge{background:#f4eee8}.actions button[aria-pressed=true]{background:var(--brand-wash);border-color:#dcb59e;color:#8e2f13;box-shadow:inset 0 -2px var(--brand)}.workspace-navigation{border-color:var(--line);box-shadow:0 4px 18px #563b2405}.workspace-navigation [role=tab]{background:#faf6f2;color:#62544d;border-color:#e6ddd5}.workspace-navigation [role=tab][aria-selected=true]{background:var(--brand-wash);border-color:#dcb59e;color:#8e2f13;box-shadow:inset 0 3px var(--brand)}.workspace-navigation [role=tab]:hover{background:#fff3e9}.workspace-navigation [role=tab] small{color:inherit}.return-group{border-color:var(--line)}.return-group.selected{background:var(--brand-wash);border-color:#dcb59e;box-shadow:inset 0 3px var(--brand)}details>summary{color:#7c3c23}.pagination{border-color:var(--line)}#notice{background:#49352b;color:#fff;box-shadow:0 10px 28px #3c241b24;transition:opacity 180ms var(--ease-out),transform 180ms var(--ease-out)}footer{color:#70615a}.form-feedback{background:#fff6f4;color:#8a332d}
/* Autenticação: composição própria inspirada na hierarquia do Vid-AI. */
body.is-auth>aside{display:none}body.is-auth .workspace>header{background:var(--canvas);border:0}body.is-auth main{max-width:1200px;padding:18px 32px 32px}.auth-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);border:1px solid var(--line);border-radius:24px;background:#fff;box-shadow:0 20px 70px #563b2410;overflow:hidden;min-height:640px}.auth-form-panel{padding:48px;display:flex;flex-direction:column;justify-content:center;gap:8px}.auth-form-panel>.brand-lockup{width:220px;margin-bottom:22px}.auth-form-panel .heading{background:none;border:0;padding:0;margin:4px 0 20px;box-shadow:none}.auth-form-panel .heading>.eyebrow{display:none}.auth-form-panel .heading h1{font-size:29px}.auth-form-panel form{display:grid;gap:18px}.auth-form-panel form label{display:grid;gap:8px;margin:0}.auth-form-panel form button{min-height:48px}.auth-demo{font-size:11px;color:#70615a;margin:2px 0}.auth-demo code{font-size:11px;color:#62544d}.auth-site-link{color:#8e2f13;font-size:12px;margin-top:22px}.auth-story{position:relative;overflow:hidden;background:linear-gradient(145deg,#fb6233,#fa7b42);padding:48px;display:flex;flex-direction:column;justify-content:center;color:#402117}.auth-story:before{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 80% 10%,#fff5,transparent 50%);pointer-events:none}.auth-story>.brand-hero{position:relative;align-self:flex-start;margin-bottom:38px;animation:brand-arrive 280ms var(--ease-out) both}.brand-hero .brand-color{display:none}.brand-hero .brand-white{display:block}.auth-story h2{font-size:clamp(26px,2.5vw,36px);line-height:1.18;letter-spacing:-.8px;color:#402117;margin:14px 0}.auth-story>p{color:#402117;font-size:14px;max-width:33ch;position:relative}.auth-story>.eyebrow{font-size:10px;letter-spacing:.15em}.auth-story-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:26px}.auth-story-tags span{padding:8px 12px;border:1px solid #40211750;border-radius:100px;color:#402117;font-size:11px}.auth-orbit{position:absolute;width:450px;aspect-ratio:1;border:1px solid #fff6;border-radius:50%;right:-270px;top:40px;box-shadow:0 0 0 45px #ffffff0c,0 0 0 90px #ffffff08;pointer-events:none}
/* Carregamento sem percentual inventado ou espera mínima artificial. */
#brand-loading[hidden]{display:none}#brand-loading{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:24px;background:#faf6f1f5;backdrop-filter:blur(8px)}.loading-card{width:min(100%,540px);border:1px solid #e7d4c5;border-radius:24px;padding:32px;text-align:center;background:linear-gradient(150deg,#fff,#fff9f3);box-shadow:0 24px 90px #623b2015}.loading-card>.eyebrow{color:#8e2f13;font-size:9px}.loading-art{position:relative;display:grid;place-items:center;min-height:218px;margin:12px 0 20px}#loading-logo{position:relative;z-index:1}.loading-orbit{position:absolute;inset:8px calc(50% - 104px);border:1px solid #f2d6c2;border-radius:50%;animation:brand-orbit 4s linear infinite}.loading-orbit:after{content:"";position:absolute;width:9px;height:9px;border-radius:50%;background:var(--brand);top:14%;left:13%;box-shadow:0 0 0 6px #fb623318}.loading-card h2{font-size:20px;line-height:1.4;margin:0 0 12px}.loading-card p{font-size:13px;color:#70615a}.loading-card>small{font-size:10px}.loading-stages{display:flex;justify-content:center;gap:18px;padding:0;list-style:none;margin:26px 0 18px}.loading-stages li{border-top:2px solid #e3d8cf;padding-top:9px;min-width:80px;font-size:11px;color:#70615a}#brand-loading[data-stage=access] [data-stage=access],#brand-loading[data-stage=records] [data-stage=records],#brand-loading[data-stage=ready] [data-stage=ready]{border-color:var(--brand);color:#8e2f13;font-weight:650}
@keyframes brand-orbit{to{transform:rotate(360deg)}}@keyframes brand-arrive{from{opacity:0;transform:translateY(6px) scale(.97)}to{opacity:1;transform:none}}
@media(hover:hover) and (pointer:fine){button:not(:disabled):hover{box-shadow:0 4px 12px #5d332012}.record-grid>article:hover,.patient-cards>article:hover{transform:translateY(-1px);box-shadow:0 8px 24px #563b2410}button:not(.text):not(.return-group):not([role=tab]):not([data-view]):not([data-brand-theme]):not(:disabled):hover{background:var(--brand-action-hover)}}
.keyboard-use button,.keyboard-use .record-grid>article{transition:none!important}.keyboard-use button:active{transform:none}
@media(max-width:1000px){.auth-form-panel,.auth-story{padding:32px}.auth-layout{min-height:590px}.workspace>header{padding:12px 24px}}
@media(max-width:650px){.brand{min-height:68px;padding:0 8px 12px}.brand .brand-lockup{width:164px}.workspace>header{padding:12px 16px;flex-wrap:wrap;gap:10px}.session-label{font-size:11px;flex:1}.header-actions{margin-left:0;gap:8px}.appearance-switch button{font-size:10px;padding:6px 9px}.appearance-switch button span{display:none}#sync-status{display:none}.workspace>header>#logout{padding:9px 12px;font-size:11px}body.is-auth main{padding:10px 16px 24px}.auth-layout{grid-template-columns:1fr;border-radius:18px}.auth-form-panel{padding:30px 24px}.auth-form-panel>.brand-lockup{width:190px}.auth-story{padding:28px 24px;min-height:350px}.auth-story>.brand-hero{margin-bottom:16px}.auth-story .brand-emblem{width:116px}.auth-story h2{font-size:27px}.auth-story>p{font-size:12px}.auth-story-tags{margin-top:12px}.loading-card{padding:24px 18px}.loading-card h2{font-size:17px}.loading-stages{gap:10px}.loading-stages li{min-width:65px}.brand-emblem{width:154px}}
@media(prefers-reduced-motion:reduce){.loading-orbit,.auth-story>.brand-hero{animation:none}button,.record-grid article,#notice{transition:none}button:active,.record-grid>article:hover,.patient-cards>article:hover{transform:none}#brand-loading{backdrop-filter:none}}
@media print{#brand-loading,.header-actions,.patient-context{display:none!important}}
/* Suspeitas de identidade: conferência contextual, sem sobrecarregar a entrada. */
.identity-review{grid-column:1/-1;min-width:0;border:1px solid #d6b99d;border-radius:14px;background:#fff9f2;padding:18px;margin:8px 0;display:grid;gap:14px}.identity-review[hidden]{display:none}.identity-review legend{font-size:14px;font-weight:650;color:#7a401b;padding:0 8px}.identity-review>p{font-size:12px;margin:0;color:var(--muted)}.identity-candidates{display:grid;gap:8px}.identity-candidates article{border:1px solid var(--line);background:#fff;border-radius:10px;padding:12px;display:flex;align-items:center;justify-content:space-between;gap:12px;overflow-wrap:anywhere}.identity-candidates small{display:block;line-height:1.6}.identity-confirm{display:flex;gap:10px;align-items:flex-start;font-size:13px;line-height:1.5}.identity-confirm input{width:18px;min-width:18px;height:18px;margin-top:2px}.identity-candidates button{flex-shrink:0}@media(max-width:650px){.identity-candidates article{flex-direction:column;align-items:stretch}.identity-review{padding:14px}}
/* Nomes e etiquetas extensos devem caber sem ocultar a identificação. */
.patient-entry .patient-name,.patient-identity h1,.patient-identity-heading>div{min-width:0;max-width:100%;overflow-wrap:anywhere;white-space:normal}.patient-tags{min-width:0;max-width:100%}.patient-tags .badge{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.5}.patient-entry small{max-width:100%;overflow-wrap:anywhere}
.patient-next-data{margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}.patient-next-data h3{font-size:15px;margin:0 0 8px}.patient-next-data>p{font-size:12px;color:var(--muted);margin:0 0 14px}.patient-next-data>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:12px}.patient-next-data article{border:1px solid var(--line);border-radius:12px;padding:16px;background:#fffaf6;display:flex;flex-direction:column;align-items:flex-start;gap:10px}.patient-next-data article strong{font-size:13px}.patient-next-data article p{font-size:12px;color:var(--muted);margin:0}.patient-next-data article button{margin-top:auto}.record-collection{min-width:0}.record-items{display:grid;gap:8px}.record-items>p{margin:0;padding:12px;border:1px solid var(--line);border-radius:10px;overflow-wrap:anywhere}.record-pagination{margin-top:14px;padding:12px 0;gap:12px}.record-pagination button{white-space:normal}.record-pagination small{font-size:11px}.record-collection .notification-history{margin:0}.patient-context small{display:block;max-width:65ch;line-height:1.5;margin-top:6px}
@media(max-width:650px){.record-pagination{flex-wrap:wrap;justify-content:space-between}.record-pagination small{order:-1;flex-basis:100%;text-align:center}}
.record-collection{scroll-margin-top:20px}.record-collection:focus{outline:none}.record-collection:focus-visible{outline:2px solid var(--brand-action);outline-offset:6px}.record-collection .notification-history{list-style:none;padding:0;display:grid;gap:10px}.record-collection .notification-history li{border:1px solid var(--line);border-left:3px solid var(--brand);border-radius:10px;padding:14px 16px;background:#fffdfb}.record-collection .notification-history li strong{font-size:13px}.record-collection .notification-history li p{font-size:13px;margin:8px 0}.record-collection .notification-history li small{font-size:11px}
.record-collection-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:0 0 12px}.record-collection-heading strong{font-size:13px}.record-collection-heading small{font-size:11px}
.communication-workspace .stats{grid-template-columns:repeat(2,minmax(0,1fr))}.communication-section{margin-top:22px;padding-top:18px;border-top:1px solid var(--line);min-width:0}.communication-section h3{font-size:15px}.communication-coverage{padding:12px 16px;background:#fff8f1;border:1px solid var(--line);border-radius:10px;font-size:12px;color:var(--muted)}.communication-message,.communication-reply{padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:#fffdfb;margin:10px 0;overflow-wrap:anywhere;scroll-margin-top:20px}.communication-message summary{display:flex;flex-wrap:wrap;align-items:center;gap:10px;font-size:13px;cursor:pointer}.communication-message summary>span:first-child{font-weight:650}.communication-message summary .badge{white-space:normal;line-height:1.5}.communication-message .notification-history{padding-left:18px;font-size:12px}.communication-message .notification-history small{display:block;line-height:1.6}.communication-body{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px}.communication-reply>small{display:block}.comm-warning{background:#fff0ce;color:#795310}.communication-workspace .pagination{flex-wrap:wrap}.communication-workspace [role=alert]{scroll-margin-top:20px}
@media(max-width:650px){.communication-workspace .section-title{flex-wrap:wrap;gap:12px}.communication-message,.communication-reply{padding:12px}.communication-workspace .pagination small{order:-1;flex-basis:100%;text-align:center}}
.communication-contact{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px;padding:16px;border:1px solid var(--line);border-radius:12px;background:#fffdfb}.communication-contact p{margin:6px 0;font-size:13px}.communication-contact small{font-size:11px;display:block;max-width:65ch}.communication-contact .actions{flex-wrap:wrap}.communication-contact>div{min-width:0;overflow-wrap:anywhere}
.profile-field-states{grid-column:1/-1;padding:14px;border:1px solid var(--line);border-radius:12px;background:#fffaf6}.profile-field-states>p{font-size:12px;color:var(--muted)}.field-state-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:14px;margin-top:14px}.field-state{display:inline-block;font-size:11px;padding:4px 8px;background:#f5efea;border-radius:6px;margin-top:6px}.field-pending{background:#fff0ce;color:#795310}.patient-next-data article button+button{margin-top:0}.patient-facts dd{overflow-wrap:anywhere}
/* Seções curtas do menu mantêm espaçamento constante em todos os perfis. */
body>aside nav,.sidebar-section{align-content:start}
.finance-scope{padding:14px 18px;border:1px solid var(--brand-line);border-radius:12px;background:var(--brand-wash);font-size:13px}.payment-workspace{border-left:4px solid var(--brand);scroll-margin-top:20px}.payment-workspace form{max-width:680px}.payment-workspace .muted{font-size:12px}.patient-record-actions button{white-space:normal}
/* Return filters remain legible while selected, hovered or keyboard focused. */
.return-group:hover,.return-group.selected:hover,.return-group:focus-visible{background:var(--brand-wash);color:var(--brand-action)}
.return-group.selected{color:var(--brand-action)}
.return-group:hover small,.return-group.selected small{color:var(--muted)}

/* Patient directory: identity first, compact rows and a deliberately richer card. */
.patient-directory{padding:24px}.patient-directory .section-title{align-items:center;gap:20px;margin-bottom:20px}.patient-directory .section-title h2{margin:0;font-size:19px}.patient-directory .section-title p{margin:7px 0 0;font-size:12px}.patient-view-switch{display:flex;gap:4px;border:1px solid var(--line);background:#f4eee8;padding:5px;border-radius:12px;flex-shrink:0}.patient-view-switch button.text{display:flex;align-items:center;justify-content:center;gap:8px;min-width:92px;min-height:42px;margin:0;padding:10px 16px;border:1px solid transparent;background:transparent;box-shadow:none;color:var(--muted);border-radius:8px}.patient-view-switch button[aria-pressed=true]{background:#fff;color:#8e2f13;border-color:#e1c5b5;box-shadow:0 2px 5px #5b35200a}.patient-view-switch button span{font-size:18px;line-height:1}.patient-directory .module-toolbar{border:1px solid var(--line);border-radius:12px;padding:16px;background:#faf8f6;margin-bottom:16px}.patient-results-caption{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:20px 0 14px;color:var(--muted);font-size:12px}.patient-results-caption>span{font-weight:650;color:var(--ink)}.patient-list-head,.patient-list .patient-entry{display:grid;grid-template-columns:minmax(200px,1.5fr) minmax(140px,1fr) minmax(100px,.65fr) minmax(140px,1fr);gap:20px;align-items:center}.patient-list-head{padding:12px 16px;font-size:10px;font-weight:650;letter-spacing:.07em;text-transform:uppercase;color:var(--muted);border-bottom:1px solid var(--line)}.patient-list{gap:0;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff}.patient-list .patient-entry{padding:16px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:#fff;box-shadow:none}.patient-list .patient-entry:last-child{border-bottom:0}.patient-person{display:flex;align-items:center;gap:12px;min-width:0}.patient-person>div{min-width:0;display:grid;gap:6px}.patient-person .patient-avatar{width:42px;height:42px;flex-basis:42px;border-radius:12px;font-size:13px;border:1px solid #f1d9c9;background:#fff2e8;color:#963b1b}.patient-entry .patient-name.text{padding:0;margin:0;background:transparent;color:var(--ink);border:0;box-shadow:none;font-size:14px;font-weight:650;line-height:1.4;min-height:24px;white-space:normal;overflow-wrap:anywhere}.patient-person small,.patient-list-context>small{font-size:11px;color:var(--muted);line-height:1.5}.patient-contact{display:grid;gap:6px;min-width:0;font-size:12px;line-height:1.5}.patient-contact small{font-size:11px;color:var(--muted);overflow-wrap:anywhere}.patient-contact .patient-contact-pending{color:#8d5c18}.patient-unit-label{display:inline-flex;align-items:center;font-size:11px;border:1px solid var(--line);border-radius:7px;padding:5px 9px;color:#65574e;background:#faf7f4;line-height:1.4}.patient-entry .patient-tags{margin:0;gap:6px}.patient-tags .badge{font-size:10px;padding:4px 7px;border:1px solid #e4d9ce;border-radius:6px;background:#faf7f3;color:#675444;line-height:1.5}.patient-list-context{display:grid;gap:7px;min-width:0}.patient-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:stretch}.patient-cards .patient-entry{padding:20px;gap:16px;border:1px solid var(--line);border-top:3px solid #e9b79a;border-radius:16px;background:#fff;box-shadow:0 3px 12px #51332406;transition:border-color 160ms ease,box-shadow 160ms ease}.patient-cards .patient-person .patient-avatar{width:48px;height:48px;flex-basis:48px;font-size:15px}.patient-cards .patient-name.text{font-size:16px}.patient-card-unit{margin-top:-4px}.patient-card-context{display:grid;gap:14px;border-top:1px solid var(--line);padding-top:16px}.patient-card-context>div{display:grid;gap:6px}.patient-card-context span{color:var(--muted);font-size:11px}.patient-card-context strong{font-size:12px;font-weight:550;line-height:1.5}.patient-card-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:14px;border-color:var(--line)}.patient-card-footer small{font-size:10px;color:var(--muted)}.patient-card-footer button.text{padding:8px 10px;font-size:11px;background:#fff3eb;border:1px solid #efd6c7;color:#8e2f13;white-space:nowrap}.patient-empty{padding:24px;text-align:center}.patient-intake[open]{padding:22px 24px}.patient-intake-hint{font-size:12px;line-height:1.6;color:var(--muted);margin:14px 0 20px}.patient-intake form[data-api=patients]{display:block}.patient-intake-fields{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:18px;align-items:start}.patient-intake-fields label{margin:0;gap:8px;font-size:12px}.patient-intake-fields input,.patient-intake-fields select{width:100%;min-height:44px;margin:0}.patient-intake-contact{border:1px solid var(--line);border-radius:10px;padding:14px 16px;margin:18px 0;background:#fbf9f6}.patient-intake-contact>summary{font-size:12px;font-weight:600}.patient-intake-contact[open] .patient-intake-fields{margin-top:18px}.patient-intake-actions{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}.patient-intake-actions small{color:var(--muted);font-size:11px}.patient-intake-actions button{margin:0;padding:12px 24px;min-height:44px;width:auto}.patient-directory button:focus-visible,.patient-intake button:focus-visible{outline:3px solid #ba7049;outline-offset:3px}
@media(hover:hover) and (pointer:fine){.patient-list .patient-entry:hover,.patient-list .patient-entry:focus-within{background:#fffbf7}.patient-entry .patient-name.text:hover{color:#963b1b;box-shadow:none;text-decoration:underline;text-underline-offset:3px}.patient-cards .patient-entry:hover{transform:none;border-color:#d8b79f;box-shadow:0 8px 22px #5133240c}.patient-view-switch button.text:hover{background:#fff}}
@media(max-width:1150px){.patient-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.patient-list-head,.patient-list .patient-entry{grid-template-columns:minmax(160px,1.4fr) minmax(100px,1fr) minmax(95px,.7fr)}.patient-list-head>span:last-child{display:none}.patient-list-context{grid-column:1/-1;margin-left:54px;display:flex;justify-content:space-between;align-items:center;gap:12px}.patient-list .patient-entry{gap:12px}}
@media(max-width:650px){.patient-directory{padding:16px}.patient-directory .section-title{flex-direction:column;align-items:stretch;gap:16px}.patient-view-switch{align-self:stretch}.patient-view-switch button.text{flex:1}.patient-results-caption{align-items:flex-start;flex-direction:column;gap:6px}.patient-list-head{display:none}.patient-list .patient-entry{grid-template-columns:minmax(0,1fr) auto;padding:16px;gap:12px}.patient-list .patient-person{grid-column:1/-1}.patient-list .patient-list-context{grid-column:1/-1;margin-left:0;display:grid;gap:8px}.patient-cards{grid-template-columns:1fr}.patient-intake[open]{padding:18px}.patient-intake-fields{grid-template-columns:1fr;gap:16px}.patient-intake-contact{padding:14px}.patient-intake-actions{align-items:stretch;flex-direction:column}.patient-intake-actions button{width:100%}.patient-card-footer{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.patient-cards .patient-entry{transition:none}}
.identity-candidates article>div{flex:1;min-width:0}.identity-candidates article>div strong{display:block;width:auto;max-width:none;white-space:normal;line-height:1.5}.patient-intake .identity-candidates button{width:auto;min-width:120px}.patient-intake .identity-review{margin-top:18px}
@keyframes hof-surface-enter{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
main>.heading,main>.patient-intake,main>.patient-directory,.auth-layout{animation:hof-surface-enter .75s cubic-bezier(.22,1,.36,1) both}.patient-directory{animation-delay:0s}.keyboard-use main>.heading,.keyboard-use main>.patient-intake,.keyboard-use main>.patient-directory{animation:none}
@media(prefers-reduced-motion:reduce){main>.heading,main>.patient-intake,main>.patient-directory,.auth-layout{animation:none}}
.patient-cards .patient-entry:nth-child(n){border-top-color:#edba9d}
/* Equipe: mesma linguagem do cadastro progressivo, sem formulário permanente. */
.security-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:20px 0}.security-fields label{min-width:0}.security-list{display:grid;gap:12px}.security-list article{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px;border:1px solid var(--border,#e4d8cf);border-radius:14px;background:var(--surface,#fff)}.security-list article>div{min-width:0;flex:1}.security-list p,.security-list small{overflow-wrap:anywhere}.security-list p{margin:8px 0}.security-list button{flex-shrink:0}.session-label button{margin-left:12px}[data-invite-result]{overflow-wrap:anywhere}[data-invite-result] input{width:100%}@media(max-width:650px){.security-fields{grid-template-columns:1fr}.security-list article{align-items:stretch;flex-direction:column}.security-list button{align-self:flex-start}.session-label button{margin-left:0}}
.security-overview{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:22px}.security-overview h2{margin-top:16px}.security-subtitle{padding-top:20px;border-top:1px solid var(--border,#e4d8cf)}.authenticator-qr{display:block;max-width:100%;height:auto;border:1px solid #e4d8cf;border-radius:16px;margin:20px 0}.mfa-seed{display:block;overflow-wrap:anywhere;padding:18px;border:1px solid #e4d8cf;border-radius:12px;user-select:all}.recovery-panel{max-width:850px;margin:24px auto}.recovery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:24px 0}.recovery-grid code{display:block;padding:14px;border:1px solid #e4d8cf;border-radius:10px;overflow-wrap:anywhere;user-select:all}.inline-check{display:flex;align-items:center;gap:12px;margin:20px 0}.inline-check input{width:auto;min-width:18px}@media(max-width:750px){.security-overview{grid-template-columns:1fr}.recovery-grid{grid-template-columns:1fr}}
#security-workspace>.heading,#security-flow>.panel{animation:hof-surface-enter .75s cubic-bezier(.22,1,.36,1) both}.keyboard-use #security-workspace>.heading,.keyboard-use #security-flow>.panel{animation:none}@media(prefers-reduced-motion:reduce){#security-workspace>.heading,#security-flow>.panel{animation:none}}
.security-contact{padding:18px 0;border-top:1px solid var(--line,#e4d8cf)}.security-contact p{overflow-wrap:anywhere}.security-contact .badge{margin-bottom:14px}.security-contact h3{margin:0 0 12px}.security-contact form{margin-top:18px}.security-contact [role=status]{padding:14px;border:1px solid var(--line,#e4d8cf);border-radius:12px}
/* A entrada é vertical e independente das grades de formulários operacionais. */
body.is-auth .workspace>footer{display:none}body.is-auth main{max-width:1160px;padding:16px 32px 48px}body.is-auth .workspace>header{max-width:1160px;margin:auto}.auth-entry{min-height:690px;grid-template-columns:1fr 1fr}.auth-entry .auth-form-panel{padding:48px 56px;gap:0}.auth-entry .auth-form-panel>.brand-lockup{width:224px;margin:0 0 42px}.auth-welcome{margin-bottom:30px}.auth-welcome .eyebrow{font-size:10px;letter-spacing:.16em;color:#8e2f13;margin:0 0 12px}.auth-welcome h1{font-size:32px;line-height:1.2;margin:0 0 12px;font-weight:650;letter-spacing:-1px}.auth-welcome>p:last-child{font-size:13px;color:var(--muted);margin:0}.auth-entry form[data-api=login]{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:18px;align-items:stretch}.auth-entry form[data-api=login]>label{margin:0;display:grid;gap:9px;font-size:12px;font-weight:550;min-width:0}.auth-entry form[data-api=login] input{width:100%;min-height:50px;padding:14px;font-size:16px;border:1px solid #cdbdb1;border-radius:10px;margin:0}.auth-entry #access-hint{font-size:11px;margin:-10px 0 2px;line-height:1.5;color:#70615a}.password-control{position:relative;display:block}.auth-entry .password-control input{padding-right:82px}.auth-entry button.password-toggle{position:absolute;right:6px;top:6px;min-height:38px;padding:8px;background:transparent;color:#7d321c;box-shadow:none;font-size:11px}.auth-options{display:flex;justify-content:flex-end;margin:-8px 0 0}.auth-entry .auth-options button.text{background:none;color:#8e2f13;padding:4px 0;min-height:32px;font-size:12px;margin:0}.auth-entry button.auth-submit{width:100%;display:flex;justify-content:space-between;align-items:center;min-height:50px;padding:14px 20px;margin:0;font-size:14px;border-radius:10px;box-shadow:0 4px 12px #a5391514}.auth-entry .auth-access-note{font-size:11px;line-height:1.6;color:var(--muted);margin:20px 0 0}.auth-entry .auth-site-link{font-size:12px;margin-top:30px}.auth-entry .auth-story{padding:52px 40px}.auth-entry .auth-story>.brand-hero{margin-bottom:38px}.auth-entry .auth-story h2{font-size:34px}.auth-entry .form-feedback{padding:12px;border:1px solid #e3b2aa;background:#fff3f0;border-radius:9px;font-size:12px;margin:0;grid-column:1}
@media(max-width:1000px){.auth-entry .auth-form-panel{padding:40px 32px}.auth-entry .auth-story{padding:40px 30px}.auth-entry .auth-story h2{font-size:29px}}
@media(max-width:650px){body.is-auth .workspace>header{padding:12px 20px}.auth-entry{display:block;min-height:0;border:0;box-shadow:none;background:transparent;border-radius:0}body.is-auth:has(.auth-entry) main{padding:12px 24px 32px}.auth-entry .auth-form-panel{padding:22px 0 0;background:transparent}.auth-entry .auth-form-panel>.brand-lockup{width:200px;margin-bottom:40px}.auth-entry .auth-welcome{margin-bottom:28px}.auth-entry .auth-welcome h1{font-size:30px}.auth-entry .auth-story{display:none}.auth-entry .auth-site-link{padding-top:22px;border-top:1px solid var(--line);margin-top:28px}.auth-entry form[data-api=login] input{min-height:52px}.auth-entry .auth-access-note{max-width:32ch}body.is-auth .session-label{flex:1;font-size:10px}body.is-auth .header-actions{margin-left:auto}}

html{background:var(--canvas)}body.is-auth{min-height:100dvh}.auth-entry button.password-toggle{width:auto;max-width:76px;margin:0}.auth-entry button.password-toggle:hover{background:#f5efea;color:#7d321c}
