@font-face{font-family:Allura;src:url("fonts/allura.ec47de04a5f2.ttf") format('truetype');font-display:swap}@font-face{font-family:Inter;src:url("fonts/inter-400.a32ace5dba84.ttf") format('truetype');font-weight:400;font-display:swap}@font-face{font-family:Inter;src:url("fonts/inter-500.eb0312411b13.ttf") format('truetype');font-weight:500;font-display:swap}@font-face{font-family:Inter;src:url("fonts/inter-600.84cf795ee940.ttf") format('truetype');font-weight:600;font-display:swap}@font-face{font-family:Inter;src:url("fonts/inter-700.c59d7314123c.ttf") format('truetype');font-weight:700;font-display:swap}
:root:not([data-theme=dark]){--bg:#FAF6F2;--surface:#FFFCFA;--text:#2F2930;--muted:#666372;--line:#E4D9DE;--green:#74234D;--soft:#F1DEE6;--accent:#B58C46}:root[data-theme=dark]{--bg:#21171D;--surface:#30232C;--text:#FAF2F4;--muted:#D2BFCB;--line:#59424E;--green:#E6A6C8;--soft:#4A2D3F;--accent:#D8B571}
body{font-family:Inter,system-ui,sans-serif}.app-shell h1{font-family:Inter,sans-serif;color:var(--green);font-size:26px;letter-spacing:-.4px}.app-shell h2{color:var(--green);letter-spacing:0}.button{background:linear-gradient(110deg,#74234D,#955476);border-color:#955476;color:#fff;border-radius:10px;min-height:44px;padding:11px 18px;font-weight:600}.button.secondary{color:var(--green);background:var(--surface);border-color:var(--line)}.button.full{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;margin:12px 0}.card,.form-card{border-radius:14px;box-shadow:0 4px 20px #74234D05}.logo-mark{background-image:url("joelma-mark.5c59182b61aa.svg");border-radius:0}.brand-name{font:28px/1.1 Allura,cursive}.brand .logo-mark{width:55px;height:55px}.app-brand-name{font:24px/1.05 Allura,cursive}.app-brand-name small{font:10px Inter,sans-serif;color:var(--green);margin-bottom:5px}.workspace header{background:var(--surface)}.workspace main{max-width:1300px}input,select,textarea{background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:11px;min-height:45px;padding:11px 13px;max-width:100%;font:14px/1.5 Inter,sans-serif}input[type=checkbox]{min-height:0;width:auto;accent-color:#74234D}textarea{resize:vertical;width:100%}label{font-weight:500;font-size:14px}.required{color:#9D3449}.errorlist{color:#9D3449;padding-left:20px;font-size:13px}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.screen-heading{display:grid;grid-template-columns:30px 1fr 30px;align-items:center;gap:8px;margin:0 0 22px;min-height:40px}.screen-heading h1{text-align:center;font:600 19px/1.3 Inter,sans-serif;margin:0}.screen-heading>a{display:flex;justify-content:center}.reference-screen{max-width:600px;margin:auto}.reference-form p{margin:17px 0}.reference-form label{display:block;margin-bottom:6px}.reference-form input:not([type=checkbox]):not([type=file]),.reference-form select,.reference-form textarea{width:100%}.reference-form p:has(input[type=checkbox]) label{display:inline}.joelma-identity{display:flex;align-items:center;gap:15px;margin:0 0 18px}.joelma-identity h1{font:42px/1 Allura,cursive;letter-spacing:0;margin:4px 0;color:#501536}.joelma-identity p{color:#74234D;font-size:14px;margin:0}.joelma-identity small{font-size:10px;letter-spacing:1px;color:#74234D}.joelma-welcome{background:#F5E7D6 url("joelma-banner.364caa822b51.png") right center/cover no-repeat;border-radius:16px;min-height:260px;padding:24px 30px;overflow:hidden;color:#501536}.joelma-welcome>div{width:50%;max-width:440px}.joelma-welcome h2{font:39px/1 Allura,cursive;margin:0 0 6px;color:#501536}.joelma-welcome p{font-size:15px;line-height:1.4;margin:4px 0 10px;max-width:350px}.blessing-divider{display:flex;align-items:center;gap:10px;width:90%;color:#74234D}.blessing-divider:before,.blessing-divider:after{content:'';height:1px;background:#9C7580;flex:1}.joelma-welcome blockquote{font:italic 16px/1.4 Georgia,serif;margin:10px 0 0}.joelma-welcome cite{display:block;font-size:11px}.home-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:18px}.home-cards>a{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:22px;min-height:155px;color:#501536;border-radius:13px;margin:0;text-decoration:none}.home-cards svg{width:35px;height:35px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;margin-bottom:8px}.home-cards strong{font-size:15px;line-height:1.35;max-width:90%}.home-cards small{font-size:12px;line-height:1.35;margin-top:3px;max-width:85%}.home-cards>a>span{position:absolute;right:15px;top:50%;font-size:27px}.pastel-pink{background:#EBD9E3}.pastel-rose{background:#F0DEE2}.pastel-cream{background:#F1EDDF}.pastel-lavender{background:#EAE2EE}.pastel-green{background:#E5EDE4}.pastel-beige{background:#F7E5D9}.home-activity{margin-top:25px}.patient-search{display:flex;align-items:center;gap:10px;background:var(--surface);border:1px solid var(--line);border-radius:11px;padding:0 13px;margin-bottom:10px}.patient-search input{border:0;background:none;flex:1;min-width:0;padding-left:0}.status-filter{display:flex;align-items:center;gap:10px;margin:8px 0 12px;font-size:12px}.status-filter select{min-height:32px;padding:3px 8px;flex:1;max-width:170px;font-size:12px}.patient-list{display:grid;gap:9px}.patient-row{display:flex;align-items:center;gap:12px;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:9px 11px;color:var(--text);min-width:0;min-height:76px}.patient-row:hover,.info-row:hover{text-decoration:none;background:var(--soft)}.patient-row>span:not(.patient-avatar){flex:1;min-width:0}.patient-row strong{font-size:14px;font-weight:600;display:block;overflow-wrap:anywhere}.patient-row small{font-size:11px;line-height:1.5}.patient-row>b{font-size:27px;color:#501536;font-weight:400}.patient-avatar{width:54px;height:54px;object-fit:cover;border-radius:50%;flex-shrink:0}.patient-avatar.initials{display:flex;align-items:center;justify-content:center;background:#CFB2BB;color:#fff;font-size:24px;font-weight:400}.patient-status{font-size:10px;line-height:1.3;padding:2px 12px;border-radius:12px;background:#D6EAD8;color:#19553B;display:inline-block}.patient-status.inactive{background:#E9E0E5;color:#655561}.photo-picker{text-align:center;margin:22px 0}.photo-picker>label{cursor:pointer;font-size:12px}.photo-circle{display:flex;align-items:center;justify-content:center;width:90px;height:90px;background:var(--soft);border-radius:50%;margin:0 auto 8px;overflow:hidden}.photo-circle svg{width:35px;height:35px;color:var(--green)}.photo-circle img{width:100%;height:100%;object-fit:cover}.photo-picker input[type=file]{max-width:100%;font-size:11px;min-height:30px;padding:5px}.photo-picker .text-button{font-size:12px}.patient-identification{display:flex;align-items:center;gap:17px;margin:16px 0 22px}.patient-identification .patient-avatar{width:80px;height:80px}.patient-identification h2{font-size:21px;line-height:1.25;margin:0 0 6px}.patient-identification p{font-size:12px;margin:6px 0 1px}.patient-identification small{font-size:12px;overflow-wrap:anywhere}.patient-quick-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin-bottom:18px}.patient-quick-actions>a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:11px 2px;font-size:11px;background:var(--soft);border-radius:10px;color:var(--green)}.patient-quick-actions svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8}.info-row{display:flex;align-items:center;gap:12px;padding:13px 15px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--text);margin:9px 0;min-height:58px}.info-row>span:first-of-type{flex:1;min-width:0}.info-row strong{font-size:13px;display:block}.info-row small{font-size:11px}.info-row>b{font-size:24px;font-weight:400}.consultation-filters{display:flex;flex-wrap:wrap;align-items:end;gap:15px;margin:20px 0}.consultation-filters p{flex:1;min-width:140px}.consultation-filters input,.consultation-filters select{width:100%}.consultation-list{max-width:950px}.saved-recording{border-bottom:1px solid var(--line);padding:15px 0}.saved-recording audio{width:100%;margin:12px 0}.audio-controls{display:flex;gap:8px}.record-screen{text-align:center;max-width:520px}.record-screen .screen-heading{margin-bottom:28px}.record-emblem{display:flex;align-items:center;justify-content:center;width:115px;height:115px;border-radius:50%;background:var(--soft);margin:14px auto 18px;border:10px solid #E7D5DD}.record-emblem svg{width:68px;height:68px;fill:#955476;stroke:#fff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.record-screen h2{font-size:21px;margin-bottom:9px}.record-description{font-size:14px;line-height:1.45;margin:8px auto 17px;max-width:300px}.record-patient{width:100%;margin:14px 0;text-align:left}.record-circle{width:92px;height:92px;display:flex;align-items:center;justify-content:center;border:6px solid #DEC3D0;border-radius:50%;background:#74234D;margin:20px auto 8px}.record-circle:before{content:'';display:block;width:31px;height:31px;border-radius:50%;background:#fff}.record-circle.active:before{border-radius:5px;width:27px;height:27px}.record-circle.active{box-shadow:0 0 0 7px #F1DEE6;animation:record-pulse 2s infinite}@keyframes record-pulse{50%{box-shadow:0 0 0 12px #F1DEE650}}@media(prefers-reduced-motion:reduce){.record-circle.active{animation:none}}.record-timer{font-variant-numeric:tabular-nums;font-size:37px;letter-spacing:3px;color:var(--green)}.record-consent{text-align:left;font-size:12px;line-height:1.5;background:var(--surface);border:1px solid var(--line);border-radius:11px;padding:13px;margin-top:16px}.record-consent label{font-size:12px;display:block;line-height:1.5}.record-actions{display:flex;justify-content:center;gap:12px;margin:15px 0}.record-screen progress{width:100%;accent-color:#74234D}.record-recovery{padding:15px;border:1px solid var(--line);border-radius:12px;background:var(--soft);text-align:left;margin:15px 0}.record-state-panel[hidden],.record-screen [hidden]{display:none}.record-state-panel audio{width:100%;margin:14px 0}.record-state-panel label{display:block;text-align:left;margin:15px 0 6px}.record-state-panel input{width:100%}.record-indicator{color:#9D3449;font-size:12px;font-weight:600}.record-warning{font-size:11px;line-height:1.5;text-align:left;margin-top:18px}.record-error{color:#9D3449;line-height:1.5;font-size:13px;background:#FBE8E9;padding:12px;border-radius:10px}.record-error:empty{display:none}.app-tabs{grid-template-columns:repeat(5,minmax(0,1fr))}.app-tabs a.active{color:var(--green)}.app-tabs a.active:after{background:#74234D}.app-tabs svg{width:22px;height:22px}.other-resources{font-size:13px}.homologation-label{padding:8px;background:#F1DEE6;color:#501536;font-size:12px;text-align:center}body main>footer{font-size:11px;color:var(--muted)}
@media(max-width:760px){.app-staff .workspace header{height:52px;padding:0 16px}.app-staff .app-wordmark{display:none}.app-staff header .header-title{display:block;font-size:10px;max-width:180px}.app-staff header .header-actions{margin-left:auto}.app-staff .workspace main{padding:15px 17px 100px}.app-shell h1{font-size:21px}.screen-heading h1{font-size:16px;letter-spacing:-.3px}.joelma-identity{gap:10px;margin:0 0 10px}.joelma-identity>img{width:76px;height:76px}.joelma-identity h1{font-size:30px;white-space:nowrap}.joelma-identity p{font-size:12px}.joelma-identity small{font-size:8px;letter-spacing:.7px}.joelma-welcome{margin-left:-17px;margin-right:-17px;border-radius:0;padding:14px 18px;min-height:174px;background-position:center}.joelma-welcome>div{width:58%;max-width:250px}.joelma-welcome h2{font-size:29px}.joelma-welcome p{font-size:11px;line-height:1.35;margin:3px 0 8px}.joelma-welcome blockquote{font-size:11px;line-height:1.25;margin-top:6px;max-width:180px}.joelma-welcome cite{font-size:9px}.blessing-divider{font-size:17px}.home-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:9px}.home-cards>a{border-radius:10px;padding:11px 12px;min-height:100px}.home-cards svg{width:30px;height:30px;margin-bottom:5px}.home-cards strong{font-size:11px;line-height:1.25;max-width:92%}.home-cards small{font-size:9px;line-height:1.35;margin-top:2px;max-width:95%;color:#57505B}.home-cards>a>span{right:8px;top:28%;font-size:21px}.home-activity{margin-top:25px}.home-activity .card-heading h2{font-size:16px}.home-activity .card-heading a{font-size:10px}.home-activity>p{font-size:12px}.reference-form p{margin:15px 0}.reference-form label{font-size:13px}.patient-search{margin-top:5px}.patient-row{min-height:73px}.patient-row strong{font-size:13px}.patient-identification h2{font-size:20px}.patient-identification .patient-avatar{width:77px;height:77px}.patient-quick-actions a{font-size:10px}.app-tabs{display:grid;background:#FCF8F5F5;backdrop-filter:blur(10px);border-top:1px solid var(--line);padding-bottom:max(10px,env(safe-area-inset-bottom));height:calc(66px + env(safe-area-inset-bottom));z-index:8}.app-tabs a{padding:7px 0 10px;gap:3px;margin:0;border-radius:0;font-size:9px;color:#66616A}.app-tabs a span{font-size:8px;max-width:100%;width:auto}.app-tabs a.active{background:transparent;color:#74234D}.app-tabs a.active:after{bottom:4px;width:43px;height:3px}.record-screen .screen-heading{margin-bottom:25px}.record-screen .record-emblem{width:107px;height:107px}.record-timer{font-size:32px}.consultation-filters{padding:15px;gap:8px}.consultation-filters p{min-width:125px}.consultation-filters label{font-size:12px}.photo-picker{margin:14px 0}.photo-picker input[type=file]{display:block;margin:auto}.status-filter{font-size:11px}.reference-screen .screen-heading{margin-bottom:17px}}
@media(min-width:761px) and (max-width:1050px){.home-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.joelma-welcome{min-height:260px}.joelma-welcome>div{width:63%}.joelma-identity h1{font-size:35px}.workspace main{padding:25px}}
@media(max-width:360px){.joelma-identity>img{width:60px;height:60px}.joelma-identity h1{font-size:25px}.joelma-identity small{font-size:7px}.home-cards strong{font-size:10px}.home-cards small{font-size:8px}.patient-identification h2{font-size:17px}.patient-identification{gap:10px}.app-tabs a span{font-size:7px}}
:root[data-theme=dark] .app-tabs{background:#30232CF5}:root[data-theme=dark] .joelma-identity h1,:root[data-theme=dark] .joelma-identity p,:root[data-theme=dark] .joelma-identity small{color:#E6A6C8}:root[data-theme=dark] .app-tabs a.active{color:#E6A6C8}

/* Override legacy workspace backgrounds and navigation spacing explicitly. */
body.app-shell,.app-shell .workspace,.app-shell main{background:var(--bg)}
.home-cards>a{gap:0}.app-shell #sidebar .brand-name{font:28px/1.05 Allura,cursive;color:var(--green);white-space:normal}.app-shell #sidebar .brand .logo-mark{width:55px;height:55px}.identity-notifications{margin-left:auto;align-self:flex-start}.photo-picker input[type=file]{position:absolute;width:1px;height:1px;clip:rect(0,0,0,0);overflow:hidden}.photo-picker input[type=file]:focus-visible{position:static;width:auto;height:auto;clip:auto}
@media(max-width:760px){body.app-staff[data-section=dashboard] .workspace header,body.app-staff[data-section=acolhidos] .workspace header,body.app-staff[data-section=gravar] .workspace header,body.app-staff[data-section=anotacoes] .workspace header{display:none}.app-staff .workspace main{padding-top:20px}.joelma-identity{gap:8px}.joelma-identity>div{min-width:0}.joelma-identity h1{font-size:28px}.joelma-identity>img{width:68px;height:68px}.identity-notifications .nav-icon{width:19px;height:19px}.joelma-identity small{font-size:7px;letter-spacing:.3px}.patient-row{gap:10px}}
@media(max-width:360px){.joelma-identity h1{font-size:23px}.joelma-identity>img{width:55px;height:55px}.joelma-identity p{font-size:10px}.joelma-identity small{font-size:6px}}

.record-emblem svg{background:#955476;border-radius:50%;padding:12px;width:84px;height:84px;fill:none;stroke:#fff}.record-consent label{display:flex;gap:8px;align-items:flex-start}.record-consent input[type=checkbox]{display:inline-block;width:16px;height:16px;min-height:16px;flex:0 0 16px;margin:3px 0 0}.record-screen .record-start{background:#74234D}.joelma-identity small{font-size:9px;letter-spacing:.2px}@media(max-width:360px){.joelma-identity small{font-size:8px}}

.app-downloads{margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}.app-downloads h3{font-size:16px;margin:0 0 14px}.app-downloads .button{display:block;width:100%;margin-top:10px;white-space:normal}.app-downloads .muted{font-size:13px;line-height:1.6;overflow-wrap:anywhere}
