/* Access and medical workspace share the existing Poppins and semantic palette. */
.auth-access-layout{display:grid;max-width:none;min-height:100dvh;grid-template-columns:minmax(0,4fr) minmax(0,3fr);gap:0;margin:0;padding:0;align-items:stretch}
.auth-access-story{position:relative;padding:0;min-width:0;overflow:hidden;min-height:700px;background:#075C54}
.auth-access-story:after{content:'';position:absolute;inset:0;background:linear-gradient(110deg,rgba(10,154,140,.18),transparent 58%),linear-gradient(180deg,transparent 32%,rgba(3,74,66,.23) 65%,rgba(3,74,66,.94))}
.auth-access-story h1{position:absolute;z-index:2;left:52px;right:52px;bottom:60px;font-size:38px;font-weight:500;line-height:1.25;letter-spacing:-.03em;max-width:20ch;margin:0;color:#FFF}
.auth-consultation-photo{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:58% center;border-radius:0}
.auth-brand-geometry{position:absolute;z-index:1;width:560px;height:560px;border:1px solid rgba(255,255,255,.25);border-radius:50%;left:-300px;bottom:-260px;pointer-events:none}
.auth-brand-geometry:after{content:'';position:absolute;inset:70px;border:1px solid rgba(255,255,255,.25);border-radius:50%}
.auth-access-box{display:flex;align-items:center;justify-content:center;padding:48px;min-width:0;border:0;border-radius:0;background:var(--surface)}
.auth-access-form{width:100%;max-width:390px}
.auth-access-form>.brand{display:inline-flex;margin-bottom:40px}
.auth-access-form>.brand img{width:156px;height:auto}
.auth-access-form>h2{font-size:26px;font-weight:500;letter-spacing:-.025em}
.auth-access-form>h2+p{margin:8px 0 30px;color:var(--muted);font-size:13px}
.auth-access-form .auth-simulation-note{margin-top:24px;font-size:12px;line-height:1.65;color:var(--muted)}
.auth-access-form input:not([type=checkbox]){border:0;border-bottom:1px solid var(--control);border-radius:0;padding-inline:0;background:transparent}
.auth-access-form .auth-password-wrap input{padding-right:48px}
#auth-form .patient-login-cpf{margin-bottom:16px}
#patient-login-recovery{margin:8px 0 0;font-size:13px;color:var(--muted)}
#patient-login-recovery .link-button{font-size:inherit;text-align:left}
.auth-password-wrap{position:relative;display:flex;align-items:center}
.auth-password-wrap input{padding-right:50px}
.auth-password-toggle{position:absolute;right:1px;top:1px;width:44px;height:42px;border:0;border-radius:7px;background:transparent;color:var(--muted);display:flex;align-items:center;justify-content:center}
.auth-password-toggle:hover{background:var(--subtle);color:var(--ink)}
.auth-access-options{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 12px;margin:-4px 0 18px}
.auth-access-options .check{margin:0;align-items:center;min-height:44px;flex:none}
.auth-access-options .check input{margin:0}
.auth-access-options .link-button{font-size:11px;text-align:left;padding:6px 0;min-height:44px}
.auth-access-box .auth-switch{margin-bottom:0;line-height:1.8}
.auth-access-box .auth-switch .link-button{min-height:44px}
:is(.doctor-workspace,.patient-workspace){display:flex;align-items:stretch;width:100%;max-width:none;margin:0}
:is(.doctor-workspace,.patient-workspace) .app-main{width:100%;max-width:none;margin:0}
:is(.doctor-workspace,.patient-workspace) .app-area{min-width:0;flex:1}
:is(.doctor-workspace,.patient-workspace) :is(.doctor-sidebar,.patient-sidebar){width:224px;flex:0 0 224px;display:flex;flex-direction:column;padding:22px 14px 16px;position:sticky;top:0;height:100dvh;z-index:40;overflow:visible;border-right:1px solid var(--line)}
.shell-sidebar-brand{display:flex;align-items:center;min-height:48px;margin-bottom:30px;gap:8px}
:is(.doctor-sidebar,.patient-sidebar) .brand{padding:0 10px;min-width:0}
:is(.doctor-sidebar,.patient-sidebar) .brand img{width:144px;height:48px}
:is(.doctor-sidebar,.patient-sidebar) nav{display:flex;flex-direction:column;gap:6px}
:is(.doctor-workspace,.patient-workspace) :is(.doctor-sidebar,.patient-sidebar) nav :is(button,a[data-nav],a[data-page]){min-height:44px;width:100%;display:flex;align-items:center;justify-content:flex-start;gap:12px;padding:10px 12px;position:relative;font-size:13px}
:is(.doctor-workspace,.patient-workspace) :is(.doctor-sidebar,.patient-sidebar) nav :is(button,a[data-nav],a[data-page]) .shell-nav-label{display:block;white-space:nowrap}
:is(.doctor-workspace,.patient-workspace) :is(.doctor-sidebar,.patient-sidebar) nav :is(button,a[data-nav],a[data-page]).active{color:var(--action);background:transparent;font-weight:500}
.shell-sidebar-bottom{margin-top:auto;padding-top:24px}
.shell-collapse{width:100%;min-height:44px;display:flex;align-items:center;gap:12px;background:transparent;border:0;border-radius:8px;color:var(--muted);padding:10px 12px;font-size:12px}
.shell-collapse:hover{background:var(--subtle);color:var(--ink)}
:is(.doctor-workspace,.patient-workspace).sidebar-collapsed :is(.doctor-sidebar,.patient-sidebar){width:76px;flex-basis:76px;padding-inline:10px}
.sidebar-collapsed .shell-sidebar-brand{justify-content:center;overflow:hidden}
:is(.doctor-workspace,.patient-workspace).sidebar-collapsed .brand{padding:0;width:52px}
:is(.doctor-workspace,.patient-workspace).sidebar-collapsed .brand img{width:52px;height:44px}
:is(.doctor-workspace,.patient-workspace).sidebar-collapsed :is(.doctor-sidebar,.patient-sidebar) nav :is(button,a[data-nav],a[data-page]){justify-content:center;padding-inline:10px}
:is(.doctor-workspace,.patient-workspace).sidebar-collapsed :is(.doctor-sidebar,.patient-sidebar) nav :is(button,a[data-nav],a[data-page]) .shell-nav-label,.sidebar-collapsed .shell-collapse span{display:none!important}
.sidebar-collapsed .shell-collapse{justify-content:center;padding-inline:10px}
.doctor-workspace .doctor-sidebar nav :is(button,a[data-nav],a[data-page]) .shell-scheduled-count{margin-left:auto;flex:0 0 24px;width:24px;height:24px;padding:0;display:inline-flex!important;align-items:center;justify-content:center;border-radius:50%;background:#B65E08;color:#FFF;font-size:10px;line-height:1;font-weight:600;font-variant-numeric:tabular-nums}
.doctor-workspace.sidebar-collapsed .doctor-sidebar nav :is(button,a[data-nav],a[data-page]) .shell-scheduled-count{position:absolute;right:0;top:50%;transform:translateY(-50%);flex-basis:20px;width:20px;height:20px;padding:0;font-size:9px}
.doctor-topbar{display:flex;align-items:center;gap:18px;justify-content:space-between;background:var(--surface);min-height:76px;padding:12px 26px;overflow:visible}
.shell-chips{display:flex;align-items:center;flex-wrap:wrap;gap:0;min-width:0}
.shell-chip{position:relative;border:0;border-radius:0;background:transparent;color:var(--muted);min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:7px 16px;font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap}
.shell-chips>.shell-chip:first-of-type{padding-left:0}
.shell-chips>.shell-chip~.shell-chip:before{content:'';position:absolute;left:0;top:13px;bottom:13px;width:1px;background:var(--line)}
.shell-chip .icon{width:17px;height:17px;flex:none}
.shell-chip:hover{color:var(--ink)}
.shell-earnings span{color:var(--action);font-weight:500}
.shell-account-actions{display:flex;align-items:center;gap:12px;flex:none;margin-left:auto}
.shell-icon-button{display:inline-flex;align-items:center;justify-content:center;width:44px;min-width:44px;min-height:44px;padding:10px;border:0;background:transparent;border-radius:8px;color:var(--muted)}
.shell-icon-button:hover{background:var(--subtle);color:var(--ink)}
.shell-bell{position:relative}
.shell-unread-count{position:absolute;top:1px;right:0;background:var(--danger);color:var(--on-danger);min-width:17px;height:17px;padding:0 4px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:600;font-variant-numeric:tabular-nums}
.doctor-topbar .shell-unread-count{background:#f4ad56;color:#352005}
.shell-profile-trigger{min-height:44px;display:flex;align-items:center;gap:9px;padding:4px 7px 4px 4px;background:transparent;color:var(--ink);border:0;border-radius:8px;font-size:12px;max-width:240px;text-align:left}
.shell-profile-trigger:hover{background:var(--subtle)}
.shell-profile-trigger .avatar,.shell-avatar{width:34px;height:34px;object-fit:cover;border-radius:50%;flex:none}
.shell-profile-trigger>.icon{width:14px;height:14px;color:var(--muted)}
.shell-professional-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:165px}
.shell-tooltip{position:fixed;z-index:100;max-width:min(272px,calc(100vw - 24px));padding:9px 12px;background:var(--tooltip-bg);color:var(--tooltip-text);border-radius:7px;font-size:11px;line-height:1.6;pointer-events:none;text-align:left;white-space:normal}
.shell-nav-tooltip{z-index:110}
:is(.doctor-sidebar,.patient-sidebar) nav .shell-nav-tooltip:not([hidden]){display:block}
.shell-popover{position:fixed;z-index:90;width:min(360px,calc(100vw - 24px));overflow:auto;padding:0;background:var(--surface);color:var(--ink);border-radius:12px;box-shadow:var(--shadow);transform-origin:top right;isolation:isolate}
.shell-profile-popover{width:250px;padding:7px}
.shell-profile-menu{display:flex;flex-direction:column;gap:2px}
.shell-profile-menu button{display:flex;align-items:center;gap:12px;width:100%;min-height:44px;border:0;border-radius:7px;background:transparent;color:var(--ink);padding:10px 12px;font-size:12px;text-align:left}
.shell-profile-menu button:hover{background:var(--subtle)}
.shell-profile-menu hr{border:0;border-top:1px solid var(--line);width:100%;margin:6px 0}
.shell-profile-menu .shell-logout{color:var(--danger)}
.shell-profile-menu .shell-logout:hover{background:var(--danger-bg)}
.shell-theme-switch{height:20px;width:34px;display:inline-flex;align-items:center;border:1px solid var(--control);border-radius:12px;background:var(--subtle);padding:2px;margin-left:auto;flex:none}
.shell-theme-switch:after{content:'';height:14px;width:14px;border-radius:50%;background:var(--muted);transform:translateX(0);transition:transform 160ms var(--ease)}
.shell-theme-switch.is-dark:after{transform:translateX(12px);background:var(--action)}
.shell-popover-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 18px 12px;border-bottom:1px solid var(--line)}
.shell-popover-heading h2{font-size:15px}
.shell-popover-heading .text-small{font-size:11px;white-space:nowrap}
.shell-popover-empty{font-size:12px;color:var(--muted);padding:24px 18px}
.shell-popover-empty .link-button{display:block;padding-left:0}
.shell-notification-list{display:flex;flex-direction:column}
.shell-notification{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:14px 18px;border-bottom:1px solid var(--line)}
.shell-notification.unread{background:var(--quiet)}
.shell-notification strong{font-size:12px;font-weight:500;overflow-wrap:anywhere}
.shell-notification time{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}
.shell-notification .link-button{padding:4px 0;min-height:44px;font-size:11px}
.shell-popover-footer{padding:8px 18px}
.shell-popover-footer .link-button{display:flex;align-items:center;justify-content:space-between;width:100%;gap:10px;padding-inline:0;font-size:12px;min-height:44px}
.shell-drawer-toggle,.shell-drawer-close,.shell-drawer-backdrop{display:none}
@media(max-width:1150px){.auth-access-box{padding:36px}.auth-access-story h1{left:36px;right:36px;font-size:34px}.doctor-topbar{padding-inline:18px;gap:12px}.shell-account-actions{gap:6px}.shell-professional-name{max-width:120px}.shell-chip{font-size:11px;padding-inline:10px;gap:6px}}
@media(max-width:900px){
 :is(.doctor-workspace,.patient-workspace) :is(.doctor-sidebar,.patient-sidebar),:is(.doctor-workspace,.patient-workspace).sidebar-collapsed :is(.doctor-sidebar,.patient-sidebar){display:flex;position:fixed;left:0;top:0;width:260px;flex-basis:260px;height:100dvh;padding:20px 14px;visibility:hidden;transform:translateX(-100%);z-index:85;overflow-y:auto}
 :is(.doctor-workspace,.patient-workspace).drawer-open :is(.doctor-sidebar,.patient-sidebar){visibility:visible;transform:translateX(0)}
 :is(.doctor-workspace,.patient-workspace).sidebar-collapsed :is(.doctor-sidebar,.patient-sidebar) nav :is(button,a[data-nav],a[data-page]){justify-content:flex-start;padding-inline:12px}
 :is(.doctor-workspace,.patient-workspace).sidebar-collapsed :is(.doctor-sidebar,.patient-sidebar) nav :is(button,a[data-nav],a[data-page]) .shell-nav-label{display:block!important}
 :is(.doctor-workspace,.patient-workspace).sidebar-collapsed .brand{width:auto;padding:0 10px}
 :is(.doctor-workspace,.patient-workspace).sidebar-collapsed .brand img{width:144px;height:48px}
 .sidebar-collapsed .shell-sidebar-brand{justify-content:flex-start;overflow:visible}
 :is(.doctor-workspace,.patient-workspace).sidebar-collapsed :is(.doctor-sidebar,.patient-sidebar) nav :is(button,a[data-nav],a[data-page]) .shell-scheduled-count{position:static;transform:none;flex-basis:24px;width:24px;height:24px;margin-left:auto;font-size:10px}
 .shell-sidebar-brand{margin-bottom:24px;justify-content:space-between}
 .shell-drawer-toggle,.shell-drawer-close{display:inline-flex}
 .shell-sidebar-bottom{display:none}
 .shell-drawer-backdrop{position:fixed;inset:0;z-index:84;background:var(--overlay);border:0;width:100%;height:100%}
 .drawer-open .shell-drawer-backdrop{display:block}
 .doctor-topbar{gap:8px;padding:10px 16px}
 .shell-chips{order:3;width:100%;gap:0}
 .shell-account-actions{margin-left:auto}
 .shell-profile-trigger{max-width:240px}
 .shell-professional-name{max-width:165px}
 .shell-chip{font-size:12px;flex:none;padding-inline:12px}
}
@media(max-width:700px){
 .auth-access-layout{display:flex;flex-direction:column;gap:0;margin:0;padding:0;align-items:stretch;min-height:100dvh}
 .auth-access-box{order:0;padding:36px 28px 44px;min-height:640px}
 .auth-access-form>.brand{margin-bottom:32px}
 .auth-access-story{order:1;padding:0;min-height:320px}
 .auth-access-story h1{font-size:28px;max-width:20ch;left:28px;right:28px;bottom:32px;margin:0}
 .auth-access-options{gap:0 8px}
 .auth-access-options .link-button{font-size:11px}
 .doctor-workspace .doctor-topbar{min-height:72px;padding:10px 14px;height:auto;flex-wrap:wrap}
 .doctor-workspace .app-main{padding:22px 16px}
 .shell-chips{display:flex;flex-wrap:wrap;gap:0}
 .shell-chip{min-width:0;padding:7px 10px;justify-content:flex-start;font-size:11px;white-space:normal;text-align:left}.shell-chips>.shell-chip:last-of-type{flex-basis:100%;padding-left:0}.shell-chips>.shell-chip:last-of-type:before{display:none}.shell-provider{padding:10px}
 .shell-chip span{min-width:0;overflow-wrap:anywhere}
 .shell-professional-name{display:none}
 .shell-account-actions{gap:4px}
 .shell-profile-trigger{font-size:11px}
 .shell-profile-trigger .avatar,.shell-avatar{width:32px;height:32px}
 .shell-profile-popover{width:250px}
}
@media(prefers-reduced-motion:reduce){.shell-theme-switch:after{transition:none}.shell-provider .icon,.shell-provider:before{animation:none}.shell-provider:before{opacity:.16;transform:none}}

.doctor-workspace .doctor-sidebar nav :is(button,a[data-nav],a[data-page]) .shell-scheduled-count[hidden]{display:none!important}

/* The medical workspace retains contextual simulation notices in its own content. */
body:has(#app .doctor-workspace)>.simulation-banner{display:none}

.shell-profile-avatar{display:inline-flex;overflow:hidden;flex:none}
.shell-profile-avatar img{display:block;width:100%;height:100%;object-fit:cover}
.shell-demo-avatar{position:relative;display:inline-block;overflow:hidden;background:var(--subtle)}
.shell-demo-avatar img{position:absolute;width:300%;max-width:none;height:225%;left:-168%;top:-37.5%;object-fit:cover}

/* Approved caneta / fx-stroke; the 44px target remains still and unboxed. */
.shell-provider{position:relative;isolation:isolate;width:44px;height:44px;min-height:44px;padding:0;border:0;border-radius:0;background:transparent!important;box-shadow:none!important;flex:none;color:var(--muted)}
.shell-provider.fx-stroke{color:var(--danger)}
.shell-provider:not(.fx-stroke)[data-connected=true]{color:var(--action)}
.shell-provider .vidaas-glyph{position:relative;display:grid;place-items:center;width:22px;height:22px;transition:transform 140ms var(--ease)}
.shell-provider .vidaas-glyph svg{width:21px;height:21px;animation:none}
.shell-provider:before{content:none;animation:none}
.shell-provider.fx-stroke .disconnect-stroke{stroke-dasharray:28;stroke-dashoffset:0;animation:vidaas-stroke 3.8s ease-in-out infinite;animation-play-state:paused}
.shell-provider[data-vis-active=true] .disconnect-stroke{animation-play-state:running}
@keyframes vidaas-stroke{0%,25%,100%{stroke-dashoffset:0;opacity:1}45%{stroke-dashoffset:7;opacity:.6}65%{stroke-dashoffset:0;opacity:1}}
@media(hover:hover) and (pointer:fine){.shell-provider:not(:disabled):hover .vidaas-glyph{transform:scale(.84)}}
.shell-provider:not(:disabled):active .vidaas-glyph{transform:scale(.78)}
.shell-provider:focus-visible .vidaas-glyph{transform:none;transition:none}
@media(prefers-reduced-motion:reduce){.shell-provider .disconnect-stroke{animation:none}.shell-provider:is(:hover,:active) .vidaas-glyph{transform:none;transition:none}}

/* The approved symbol embeds the original PNG; never crop the wordmark. */
.brand img.brand-symbol{display:none}.brand-full{object-fit:contain}
@media(min-width:901px){:is(.doctor-workspace,.patient-workspace).sidebar-collapsed :is(.doctor-sidebar,.patient-sidebar) .brand img.brand-full{display:none}:is(.doctor-workspace,.patient-workspace).sidebar-collapsed :is(.doctor-sidebar,.patient-sidebar) .brand img.brand-symbol{display:block;object-fit:contain;width:44px;height:44px}:is(.doctor-workspace,.patient-workspace).sidebar-collapsed .brand{width:44px}}
:root[data-access="true"]{color-scheme:light}
/* Real appointments destinations; the urgent topbar presentation remains unselected. */
.shell-appointments-group{min-width:0}.doctor-sidebar .shell-appointments-trigger{display:flex;align-items:center;width:100%;gap:12px;min-height:44px;border:0;border-radius:8px;padding:10px 12px;background:transparent;color:var(--muted);font:inherit;text-align:left;cursor:pointer}.shell-appointments-trigger>svg:first-child{width:20px;height:20px;flex:none}.shell-appointments-trigger>svg:last-child{width:14px;height:14px;margin-left:auto}.shell-appointments-trigger.active{color:var(--action);background:transparent}.shell-appointments-children[hidden]{display:none}.shell-appointments-children{position:relative;margin-left:21px;padding-left:13px}.shell-appointments-children:before{content:'';position:absolute;left:0;top:0;bottom:22px;width:1px;background:var(--control)}.doctor-sidebar .shell-appointments-children a{position:relative;min-height:44px;padding-left:12px;font-size:11px;gap:6px}.shell-appointments-children a:before{content:'';position:absolute;left:-13px;top:50%;width:13px;height:1px;background:var(--control)}.shell-sub-count{margin-left:auto;min-width:24px;text-align:center;font-size:11px;color:var(--action);font-variant-numeric:tabular-nums}.shell-sub-count[hidden]{display:none}.sidebar-collapsed .shell-appointments-trigger{justify-content:center;padding-inline:10px}.sidebar-collapsed .shell-appointments-trigger>svg:last-child,.sidebar-collapsed .shell-appointments-children{display:none}.shell-shift-dot{display:inline-block;flex:none;width:8px;height:8px;border-radius:50%;background:#87908E}.shell-shift-dot.online{background:#0A9A8C;animation:shell-shift-pulse 1.8s ease-in-out infinite;animation-play-state:paused}[data-vis-motion=plantao][data-vis-active=true] .shell-shift-dot.online{animation-play-state:running}@keyframes shell-shift-pulse{50%{opacity:.55;transform:scale(.8)}}@media(prefers-reduced-motion:reduce){.shell-shift-dot.online{animation:none!important}}html[data-reduced=true] .shell-shift-dot.online{animation:none!important}.shell-appointments-trigger:focus-visible{outline:2px solid var(--action);outline-offset:2px}
/* User-approved v20 option 3: attention strip, always driven by the paid waiting queue. */
#doctor-immediate-alert{flex:none}#doctor-immediate-alert:empty{display:none}.doctor-topbar .urgent-link{display:inline-flex;align-items:center;justify-content:center;gap:10px;text-decoration:none;position:relative;flex:none;min-height:44px;font-size:12px}.doctor-topbar .alert-panel{--urgent-filled:#a62c42;--urgent-ink:#fff;background:var(--urgent-filled);color:var(--urgent-ink);padding:11px 18px;border-radius:9px;gap:13px;isolation:isolate;overflow:hidden}.doctor-topbar .alert-panel:before{content:"";position:absolute;inset:0;background:rgb(255 255 255 / .12);z-index:-1;opacity:0;animation:urgent-breathe 3s ease-in-out infinite;animation-play-state:paused}.doctor-topbar .alert-panel[data-vis-active=true]:before{animation-play-state:running}.doctor-topbar .alert-panel>svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex:none}.doctor-topbar .alert-panel>span{display:grid;gap:3px}.doctor-topbar .alert-panel strong{font-size:12px;font-weight:500;color:#fff}.doctor-topbar .alert-panel small{font-size:10px;color:#ffe5ea}.doctor-topbar .alert-panel:focus-visible{outline:2px solid var(--action);outline-offset:3px}[data-theme=dark] .doctor-topbar .alert-panel{--urgent-filled:#9d3148}.doctor-topbar .shell-chips{flex:1 1 auto}.doctor-topbar .shell-account-actions{margin-left:0}@keyframes urgent-breathe{0%,100%{opacity:0}45%{opacity:1}}@media(hover:hover) and (pointer:fine){.doctor-topbar .urgent-link:hover{transform:scale(.97)}}@media(max-width:760px){#doctor-immediate-alert{order:2;flex-basis:100%}.doctor-topbar .alert-panel{width:100%;justify-content:flex-start;padding:10px 12px;gap:8px}.doctor-topbar .alert-panel strong{font-size:11px}.doctor-topbar .alert-panel small{font-size:10px}.doctor-topbar .alert-panel>svg{width:18px;height:18px}.doctor-topbar .shell-account-actions{margin-left:auto}}@media(prefers-reduced-motion:reduce){.doctor-topbar .alert-panel:before{animation:none!important}.doctor-topbar .urgent-link:hover{transform:none}}html[data-reduced=true] .doctor-topbar .alert-panel:before{animation:none!important}body.page-hidden .doctor-topbar .alert-panel:before{animation-play-state:paused!important}
html[data-reduced=true] .doctor-topbar .urgent-link:hover{transform:none}

/* Approved icon counters; submenu rows retain compact inline quantities. */
.doctor-workspace .doctor-sidebar nav .shell-nav-count{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;margin-left:auto;min-width:19px;height:19px;padding:0 4px;box-sizing:border-box;border-radius:6px;background:#f4ad56;color:#352005;font-size:10px;font-weight:600;line-height:1;font-variant-numeric:tabular-nums;white-space:nowrap}
.doctor-workspace .doctor-sidebar nav .shell-nav-count[hidden]{display:none!important}
.doctor-sidebar .shell-nav-icon{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:0 0 20px;width:20px;height:20px;overflow:visible}
.doctor-sidebar .shell-nav-icon>svg{width:20px;height:20px;flex:none}
.doctor-workspace .doctor-sidebar nav .shell-nav-icon>.shell-nav-count{position:absolute;right:-9px;top:-8px;margin:0;min-width:18px;height:18px;padding:0 3px;box-shadow:0 0 0 2px var(--surface);animation:shell-count-enter .3s ease-out}
@keyframes shell-count-enter{from{transform:scale(.75)}to{transform:scale(1)}}
@media(prefers-reduced-motion:reduce){.doctor-workspace .doctor-sidebar nav .shell-nav-icon>.shell-nav-count{animation:none}}
html[data-reduced=true] .doctor-workspace .doctor-sidebar nav .shell-nav-icon>.shell-nav-count{animation:none}

/* Only authenticated shell logos follow the effective theme; access and documents retain their originals. */
html[data-theme=dark]:not([data-access=true]) :is(.doctor-workspace,.patient-workspace) .brand img.brand-full{content:url('/assets/medhoje-logo-dark.svg')}
html[data-theme=dark]:not([data-access=true]) :is(.doctor-workspace,.patient-workspace) .brand img.brand-symbol{content:url('/assets/medhoje-simbolo-dark.svg')}

/* Patient recovery reuses the clear access frame and existing password feedback. */
.patient-recovery h2{margin:0;font-size:26px;font-weight:500;letter-spacing:-.025em;line-height:1.3}.patient-recovery-description{margin:8px 0 24px;color:var(--muted);font-size:13px;line-height:1.65;overflow-wrap:anywhere}.patient-recovery-methods{display:grid;grid-template-columns:1fr 1fr;gap:12px}.patient-recovery-methods .button{margin:0}.patient-recovery-status{font-size:13px;line-height:1.65;margin:0 0 24px;overflow-wrap:anywhere}.patient-recovery>.link-button{padding-inline:0;min-height:44px;margin-top:8px}.patient-recovery-code{font-variant-numeric:tabular-nums;letter-spacing:.22em}.patient-recovery h2:focus{outline:none}
/* Duas chamadas: independent actions; only actionable icons move. */
#doctor-immediate-alert{display:flex;align-items:center;gap:10px;min-width:0}
.doctor-topbar .doctor-call{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:6px 14px;border:1px solid transparent;border-radius:8px;font:inherit;font-size:11px;line-height:1.3;text-decoration:none;white-space:nowrap;cursor:pointer;color:#fff}
.doctor-topbar .doctor-call strong{font-size:11px;font-weight:500;color:inherit}
.doctor-call-immediate{background:#a33c51}.doctor-call-scheduled{background:#19596b}
.doctor-call-icon,.doctor-call-arrow{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none}.doctor-call-arrow{width:14px;height:14px}
.doctor-call-count{display:grid;place-items:center;min-width:20px;height:20px;border-radius:50%;padding:0 3px;background:#ffffff20;font-size:10px}.doctor-call-start{margin-left:6px;padding-left:12px;border-left:1px solid #ffffff40;font-weight:500}
.doctor-call-immediate>.doctor-call-icon{animation:doctor-immediate-attention 2.8s ease-in-out infinite;transform-origin:center;transform-box:fill-box}.doctor-call-scheduled>.doctor-call-icon{animation:doctor-scheduled-attention 3.6s ease-in-out infinite;transform-origin:50% 20%;transform-box:fill-box}
.doctor-call:focus-visible{outline:2px solid var(--action);outline-offset:3px}.doctor-call:disabled{opacity:.65;cursor:wait}
@keyframes doctor-immediate-attention{0%,65%,100%{transform:scale(1);opacity:1}18%{transform:scale(1.16);opacity:.72}36%{transform:scale(1);opacity:1}}
@keyframes doctor-scheduled-attention{0%,10%,35%,100%{transform:rotate(0)}16%{transform:rotate(-10deg)}22%{transform:rotate(10deg)}28%{transform:rotate(-6deg)}}
#doctor-immediate-alert[data-paused=true] .doctor-call-icon{animation-play-state:paused!important}
html[data-reduced=true] .doctor-call-icon{animation:none!important}
@media(prefers-reduced-motion:reduce){.doctor-call-icon{animation:none!important}}
@media(max-width:1100px){.doctor-topbar .doctor-call{padding-inline:10px;gap:8px}.doctor-call-start{margin-left:0;padding-left:8px}}
@media(max-width:760px){#doctor-immediate-alert{order:2;width:100%;gap:8px}.doctor-topbar .doctor-call{flex:1;min-width:0;padding:8px;gap:8px}.doctor-topbar .doctor-call strong{font-size:10px}.doctor-call-start{display:none}.doctor-call-icon{width:16px;height:16px}}

/* The current destination has an internal line; submenu connectors keep their own ::before. */
:is(.doctor-workspace,.patient-workspace) :is(.doctor-sidebar,.patient-sidebar) nav [aria-current="page"]::after{content:"";position:absolute;left:2px;top:50%;transform:translateY(-50%);width:2px;height:24px;border-radius:1px;background:var(--action);pointer-events:none}
:is(.doctor-workspace,.patient-workspace) :is(.doctor-sidebar,.patient-sidebar) nav .active:hover{background:var(--subtle)}
.shell-refresh-status{font-size:10px;color:var(--muted);padding-inline:10px}
