/* R3: composição de início e registros. Tokens e controles vêm do shell. */
@media screen {
 .fe-app .fe-page{padding-top:32px!important;padding-bottom:24px!important;min-width:0}
 .fe-app .fe-page-heading{margin-bottom:24px}
 .fe-app .fe-page-heading h1{font-size:32px;margin:0 0 10px;color:var(--fe-title);font-weight:600;line-height:1.2}
 .fe-page-heading p{margin:0;color:var(--fe-muted);font-size:14px;line-height:1.65;max-width:750px}
 .fe-app .fe-search-box{display:flex;align-items:center;gap:14px;min-width:0;min-height:68px;padding:12px 20px;border:1px solid var(--fe-line);border-radius:20px;background:#fff;box-shadow:0 2px 5px rgba(24,36,96,.025)}
 .fe-search-box>i{flex:0 0 22px;font-size:20px;color:#a0adc3}
 .fe-search-box>input{min-width:0;width:100%;flex:1;border:0;outline:0;background:transparent;color:var(--fe-ink);font-size:17px;padding:5px 0}
 .fe-search-box>input::placeholder{color:#8c9ab1;opacity:1}
 .fe-search-box:focus-within{border-color:#899bc4;box-shadow:var(--focus)}
 .fe-search-hint{margin:12px 0 24px;font-size:12px;color:var(--fe-muted);line-height:1.55}
 .fe-section-intro{margin:0 0 14px}.fe-app .fe-section-intro h2{font-size:14px;margin:0 0 4px;color:var(--fe-primary);letter-spacing:0}.fe-section-intro p{font-size:12px;color:var(--fe-muted);margin:0}
 .fe-dashboard-shortcuts{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px;margin-bottom:20px}
 .fe-dashboard-shortcut{display:flex;align-items:center;gap:10px;min-width:0;min-height:101px;padding:14px 12px;border:1px solid var(--fe-line);border-radius:16px;background:#fff;color:var(--fe-primary)!important;text-decoration:none!important;box-shadow:0 2px 5px rgba(24,36,96,.025)}
 .fe-dashboard-shortcut>i{display:grid;place-items:center;width:40px;height:40px;flex:0 0 40px;background:var(--fe-primary-soft);border-radius:12px;color:var(--fe-primary);font-size:21px}
 .fe-dashboard-shortcut>span{min-width:0}.fe-dashboard-shortcut strong{display:block;font-size:13px;line-height:1.35}.fe-dashboard-shortcut small{display:block;font-size:11px;line-height:1.5;color:var(--fe-muted);margin-top:4px;overflow-wrap:anywhere}
 .fe-dashboard-shortcut:hover{background:#fbfcff;border-color:#bfcde6}
 .fe-dashboard-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));border:1px solid var(--fe-line);border-radius:16px;background:#fff;margin:0 0 24px;overflow:hidden}
 .fe-dashboard-metric{display:flex;flex-direction:column;gap:4px;padding:15px 18px;min-width:0;border-right:1px solid var(--fe-line)}
 .fe-dashboard-metric:last-child{border:0}.fe-dashboard-metric span{font-size:11px;color:var(--fe-muted)}.fe-dashboard-metric strong{font-size:23px;line-height:1.3;color:var(--fe-primary);font-variant-numeric:tabular-nums}.fe-dashboard-metric a{font-size:11px;text-decoration:none}
 .fe-dashboard-activity{margin-bottom:24px}.fe-dashboard-charts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
 .fe-chart-card{min-width:0;background:#fff;border:1px solid var(--fe-line);border-radius:16px;padding:18px}.fe-app .fe-chart-card h3{font-size:14px;margin:0 0 16px}.fe-chart-card .chart-box{position:relative;height:200px}
 .fe-empty-note{display:flex;align-items:flex-start;gap:12px;background:#fff;border:1px solid var(--fe-line);border-radius:14px;padding:16px 18px;color:var(--fe-muted);font-size:13px;line-height:1.6}
 .fe-empty-note>i{color:#899abb;font-size:20px;flex:0 0 22px}.fe-empty-note p{margin:0}.fe-empty-note strong{color:var(--fe-ink);display:block;font-size:13px}
 .fe-resource-details{margin-top:14px;border:1px solid var(--fe-line);border-radius:14px;background:#fff;padding:12px 16px}.fe-resource-details summary{font-size:12px;color:var(--fe-primary);cursor:pointer}.fe-resource-details .chart-box{height:190px;max-width:400px;margin:12px auto 0}
 .fe-recent-sessions{display:grid;gap:10px}.fe-recent-session{display:flex;align-items:center;gap:16px;border:1px solid var(--fe-line);border-radius:16px;padding:16px 18px;background:#fff;min-width:0}
 .fe-session-date{flex:0 0 104px;font-size:13px;color:var(--fe-primary)}.fe-session-date small{display:block;font-size:11px;color:var(--fe-muted);margin-top:4px}.fe-recent-session-copy{flex:1;min-width:0;overflow-wrap:anywhere}.fe-recent-session-copy strong{font-size:14px}.fe-recent-session-copy p{margin:4px 0 0;font-size:12px;color:var(--fe-muted)}
 .fe-app .fe-patients-page{max-width:1244px}
 .fe-patient-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;align-items:center}.fe-app .fe-patient-toolbar>.btn{min-height:50px;border-radius:14px!important;padding-inline:18px}
 .fe-patient-list-info{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:14px 0 24px;color:var(--fe-muted);font-size:12px;flex-wrap:wrap}.fe-patient-list-info p{margin:0}.fe-patient-list-info output{font-size:12px}
 .fe-patient-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr)) auto;align-items:end;gap:16px;margin:16px 0;padding:18px;border:1px solid var(--fe-line);border-radius:16px;background:#fff}.fe-patient-filters label{margin-bottom:6px;display:block;font-size:12px;color:var(--fe-muted)}
 .fe-patient-list{display:grid;gap:12px;min-width:0}
 .fe-patient-record{display:flex;align-items:center;gap:16px;min-width:0;min-height:98px;padding:18px 20px;border:1px solid var(--fe-line);border-radius:22px;background:#fff;box-shadow:0 2px 6px rgba(24,36,96,.035)}
 .fe-patient-avatar{display:grid;place-items:center;width:54px;height:54px;flex:0 0 54px;border-radius:50%;background:var(--fe-primary);color:#fff;font-size:24px}
 .fe-patient-copy{flex:1;min-width:0;overflow-wrap:anywhere}.fe-patient-name{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}.fe-app .fe-patient-name h2{font-size:15px;letter-spacing:0;margin:0;line-height:1.4;color:var(--fe-primary)}.fe-patient-id{font-size:12px;color:var(--fe-muted)}
 .fe-patient-secondary{display:flex;flex-wrap:wrap;gap:4px 14px;margin:4px 0 0;color:#566881;font-size:13px;line-height:1.5}.fe-patient-meta{display:flex;flex-wrap:wrap;gap:4px 14px;margin-top:6px;font-size:11px;color:var(--fe-muted)}
 .fe-patient-actions{display:flex;align-items:center;gap:4px;flex:0 0 auto}.fe-app .fe-patient-actions .btn-icon{display:grid;place-items:center;width:40px;height:40px;border:0;background:transparent;border-radius:12px;color:var(--fe-primary);font-size:20px;text-decoration:none}.fe-app .fe-patient-actions .btn-icon:hover{background:var(--fe-primary-soft)}
 .fe-patient-action-menu{position:relative}.fe-patient-action-menu summary{list-style:none;cursor:pointer}.fe-patient-action-menu summary::-webkit-details-marker{display:none}
 .fe-patient-actions .dropdown-menu{position:absolute;right:0;left:auto;top:calc(100% + 4px);min-width:190px;z-index:30;border:1px solid var(--fe-line);border-radius:14px;padding:7px;box-shadow:0 10px 26px rgba(24,36,96,.08)}
 .fe-patient-action-menu[open]>.dropdown-menu{display:block}
 .fe-app .fe-patient-actions .dropdown-item{display:flex;gap:9px;align-items:center;font-size:13px;padding:10px 12px;border-radius:8px;min-height:40px;color:var(--fe-ink);background:transparent}.fe-app .fe-patient-actions .dropdown-item:hover{background:var(--fe-primary-soft)}
 .fe-patient-actions form{margin:0}.fe-app .fe-patient-actions .dropdown-item.xdel{color:#a43f50;border:0;width:100%}.fe-patient-actions [data-fe-contact-slot]:empty{display:none}
 .fe-patients-help{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;align-items:center;margin-top:20px;color:var(--fe-muted);font-size:12px}
 .fe-patients-help button{border:0;padding:8px 0;background:transparent;color:var(--fe-primary);font-size:12px;text-decoration:none;min-height:40px}
 .fe-patient-empty[hidden],.fe-patient-record[hidden],.fe-patient-filters[hidden]{display:none!important}
 @media(max-width:1280px){.fe-dashboard-shortcuts{grid-template-columns:repeat(4,minmax(0,1fr))}.fe-dashboard-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.fe-dashboard-metric:nth-child(3){border-right:0}.fe-dashboard-metric:nth-child(-n+3){border-bottom:1px solid var(--fe-line)}}
 @media(max-width:860px){.fe-app .fe-page{padding-top:24px!important}.fe-app .fe-page-heading h1{font-size:28px}.fe-app .fe-page-heading{margin-bottom:20px}.fe-dashboard-shortcuts{grid-template-columns:repeat(3,minmax(0,1fr))}.fe-patient-toolbar{grid-template-columns:minmax(0,1fr) auto}.fe-patient-toolbar .fe-search-box{grid-column:1/-1}.fe-patient-toolbar>#btnNew{justify-self:end}.fe-dashboard-charts{grid-template-columns:1fr}.fe-patient-filters{grid-template-columns:1fr 1fr}.fe-patient-filters>.btn{grid-column:1/-1}.fe-app .fe-search-box{min-height:60px;padding:10px 14px;gap:10px}.fe-search-box>input{font-size:16px}.fe-patient-actions .dropdown-item{min-height:44px!important}}
 @media(max-width:600px){.fe-dashboard-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}.fe-dashboard-shortcut{min-height:88px;padding:12px;gap:9px}.fe-dashboard-shortcut>i{width:34px;height:34px;flex-basis:34px;font-size:19px}.fe-dashboard-shortcut strong{font-size:12px}.fe-dashboard-shortcut small{font-size:10px}.fe-dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.fe-dashboard-metric{padding:12px 14px}.fe-dashboard-metric:nth-child(3){border-right:1px solid var(--fe-line)}.fe-dashboard-metric:nth-child(2n){border-right:0}.fe-dashboard-metric:nth-child(-n+4){border-bottom:1px solid var(--fe-line)}.fe-recent-session{gap:10px;padding:14px;flex-wrap:wrap}.fe-session-date{flex-basis:100%;display:flex;justify-content:space-between;gap:12px}.fe-session-date small{margin:0}.fe-recent-session>.btn{padding:9px 10px}.fe-patient-record{padding:16px 14px;gap:12px;border-radius:18px;display:grid;grid-template-columns:44px minmax(0,1fr)}.fe-patient-avatar{width:44px;height:44px;font-size:22px;align-self:start}.fe-patient-actions{grid-column:2;justify-content:flex-end;border-top:1px solid var(--fe-line);padding-top:7px;margin-top:3px}.fe-app .fe-patient-actions .btn-icon{width:44px;height:44px}.fe-patient-meta{gap:5px 12px}.fe-patient-list-info{margin-bottom:18px;gap:8px}.fe-patient-filters{grid-template-columns:1fr}.fe-search-box>.btn{padding:9px 10px;font-size:12px}.fe-page-heading p{font-size:13px}}
}
@media print{.fe-patient-toolbar,.fe-patient-filters,.fe-patients-help,.fe-patient-actions{display:none!important}.fe-patient-record{break-inside:avoid}}
