/* No declarations below 1024px: the existing mobile interface is preserved. */
@media(min-width:1024px){
.app.hf-home-app{--home-bg:#f5f7fa;--home-panel:#fff;--home-border:#e2e7ed;--home-ink:#15191f;--home-muted:#718092;min-height:100vh;background:var(--home-bg)!important;color:var(--home-ink)}
html[data-theme=dark] .app.hf-home-app{--home-bg:#101215;--home-panel:#191c21;--home-border:#303640;--home-ink:#f5f7fa;--home-muted:#a5afbd}
.app.hf-home-app>header{display:none!important}
.app.hf-home-app main.admin.hf-home-main{box-sizing:border-box!important;width:calc(100% - 238px)!important;max-width:none!important;margin:0 0 0 238px!important;padding:0 30px 28px!important;background:var(--home-bg)!important;min-height:100vh}
.app.hf-home-app main.admin.hf-home-main>.page-head{display:none!important}
.hf-home-main[data-home-mode=overview]>.search,.hf-home-main[data-home-mode=overview]>.patient-list{display:none!important}
.hf-home-main[data-home-mode=patients] .hf-home-overview{display:none!important}
.hf-home-main[data-home-mode=patients]>.search{margin:24px 0 16px!important}
.hf-home-main[data-home-mode=patients]>.patient-list{display:block!important}
.hf-home-sidebar{box-sizing:border-box;position:fixed;left:0;top:0;bottom:0;width:238px;z-index:30;padding:26px 16px 18px;background:#0d0f11;color:#fff;display:flex;flex-direction:column;overflow-y:auto;border-right:1px solid #25292e}
.hf-home-brand{display:flex;align-items:center;gap:12px;margin:0 8px 30px}.hf-home-brand img{width:44px;height:44px;object-fit:cover;border-radius:50%}.hf-home-brand b{font-size:18px;letter-spacing:-.5px}
.hf-home-sidebar nav{display:grid;gap:6px}.hf-home-sidebar nav button{display:flex;align-items:center;gap:13px;width:100%;border:1px solid transparent;border-radius:9px;background:transparent;color:#e0e3e7;font:inherit;font-size:13px;text-align:left;padding:13px 12px;cursor:pointer;box-shadow:none;min-height:45px}
.hf-home-sidebar nav button:hover,.hf-home-sidebar nav button.is-active{background:#24282e;color:#fff;border-color:#333940}.hf-home-sidebar svg{width:20px;height:20px;flex-shrink:0}.hf-home-sidebar nav .hf-home-nav-separator{margin-top:20px;border-top:1px solid #30343a;border-radius:0;padding-top:23px}.hf-home-sidebar nav button:disabled{opacity:.55;cursor:progress}
.hf-home-sidebar footer{margin-top:auto;padding:24px 10px 0;border-top:1px solid #30343a;display:grid;gap:6px}.hf-home-sidebar footer strong{font-size:13px}.hf-home-sidebar footer small{color:#a8b0ba;font-size:11px}.hf-home-sidebar footer>div{display:flex;justify-content:space-between;padding-top:8px}.hf-home-sidebar .hf-home-link{color:#dce0e5}
.hf-desktop-home{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--home-ink);font-size:14px}.hf-desktop-home *{box-sizing:border-box}.hf-desktop-home button,.hf-home-sidebar button{font-family:inherit}
.hf-home-toolbar{min-height:84px;display:flex;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid var(--home-border);margin-bottom:23px}.hf-home-toolbar>span{font-size:12px;color:var(--home-muted);white-space:nowrap}.hf-home-toolbar>span b{color:var(--home-ink)}.hf-home-toolbar i{font-style:normal;margin:0 10px}.hf-home-toolbar-actions{display:flex;align-items:center;gap:12px}.hf-home-search{display:flex;align-items:center;gap:10px;width:clamp(210px,25vw,400px);border:1px solid var(--home-border);border-radius:8px;padding:11px 13px;background:var(--home-panel);margin:0!important;box-shadow:0 3px 10px #121a2a03}.hf-home-search svg{width:17px;height:17px}.hf-home-search input{width:100%;min-width:0;background:transparent!important;color:var(--home-ink)!important;border:0!important;outline:none;font:inherit!important;font-size:12px!important;padding:0!important;height:auto!important;box-shadow:none!important}
.hf-home-primary{border:1px solid #111!important;background:#111!important;color:#fff!important;border-radius:8px;padding:11px 16px!important;white-space:nowrap;font-size:12px!important;min-height:40px!important;cursor:pointer}.hf-home-primary:hover{background:#30343a!important}
.hf-home-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:0 0 24px}.hf-home-heading h1{font-size:clamp(24px,2.1vw,33px)!important;color:var(--home-ink)!important;line-height:1.2;margin:16px 0 7px!important;letter-spacing:-1px}.hf-home-heading p{font-size:13px!important;color:var(--home-muted)!important;margin:0!important}.hf-home-heading p:first-child{color:var(--home-ink)!important;font-weight:600;margin-bottom:4px!important}.hf-home-heading small{color:var(--home-muted);font-size:11px;text-transform:capitalize}
.hf-home-link{display:inline-flex;align-items:center;gap:5px;background:transparent!important;border:0!important;padding:3px 0!important;color:var(--home-ink);font-size:11px!important;cursor:pointer;white-space:nowrap;box-shadow:none!important}.hf-home-link svg{width:15px;height:15px}
.hf-home-kpis{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(280px,1.5fr);gap:16px;margin-bottom:16px}.hf-home-card{position:relative;min-width:0;background:var(--home-panel);border:1px solid var(--home-border);border-radius:12px;padding:21px 20px;box-shadow:0 4px 16px #111d3303;color:var(--home-ink)}
.hf-home-card h2{display:flex;align-items:center;gap:9px;font-size:14px!important;color:var(--home-ink)!important;line-height:1.35;margin:0 0 14px!important;font-weight:650}.hf-home-card h2 svg{width:22px;height:22px;flex-shrink:0}.hf-home-card>small,.hf-home-card header small{display:block;font-size:10px!important;line-height:1.5;color:var(--home-muted)}.hf-home-income>strong{display:block;font-size:clamp(23px,2.2vw,34px);line-height:1.3;margin:16px 0 10px;letter-spacing:-.9px;font-weight:700;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.hf-home-attendances{padding:19px 18px 12px}.hf-home-attendances h2{margin-bottom:8px!important}.hf-home-attendances table{width:100%;border-collapse:collapse;font-size:12px}.hf-home-attendances th,.hf-home-attendances td{border-bottom:1px solid var(--home-border);padding:8px 4px}.hf-home-attendances th{text-align:left;font-weight:400}.hf-home-attendances thead th{font-size:10px;color:var(--home-muted)}.hf-home-attendances td,.hf-home-attendances thead th:not(:first-child){text-align:center}.hf-home-attendances td{font-weight:650;font-size:16px}.hf-home-attendances>small{margin-top:8px;font-size:9px!important}
.hf-home-lower{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(270px,1fr);gap:16px;align-items:stretch}.hf-home-agenda{padding:20px 14px}.hf-home-agenda>header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:0 5px 18px}.hf-home-agenda h2{font-size:18px!important;margin-bottom:4px!important}.hf-home-outline{border:1px solid var(--home-border)!important;background:var(--home-panel)!important;color:var(--home-ink)!important;padding:9px 11px!important;border-radius:6px;cursor:pointer;font-size:11px!important;white-space:nowrap}.hf-home-appointment{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:17px 12px;border:1px solid var(--home-border);border-bottom:0;background:transparent;color:var(--home-ink);font:inherit;cursor:pointer;min-height:76px}.hf-home-appointment:first-child{border-radius:8px 8px 0 0}.hf-home-appointment:last-child{border-bottom:1px solid var(--home-border);border-radius:0 0 8px 8px}.hf-home-appointment:only-child{border-radius:8px}.hf-home-appointment:hover{background:var(--home-bg)}.hf-home-appointment time{font-size:12px;font-weight:650;flex:0 0 38px}.hf-home-initials{display:grid;place-items:center;width:35px;height:35px;flex-shrink:0;border-radius:50%;background:var(--home-bg);border:1px solid var(--home-border);font-size:11px;font-weight:650}.hf-home-person{display:grid;gap:4px;min-width:0;flex:1}.hf-home-person b{font-size:12px;font-weight:600;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.hf-home-person small{font-size:10px;color:var(--home-muted);white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.hf-home-status{font-size:9px;color:#956314;background:#fff5df;padding:5px 8px;border-radius:20px;white-space:nowrap;max-width:125px;overflow:hidden;text-overflow:ellipsis}.hf-home-status.is-confirmed{background:#e8f6ee;color:#237044}.hf-home-agenda-add{width:100%;margin-top:12px;padding:12px!important;border-radius:7px;border:1px solid var(--home-border)!important;background:transparent!important;color:var(--home-ink)!important;cursor:pointer;font-size:12px!important}
.hf-home-secondary{display:grid;gap:14px;align-content:start}.hf-home-card-link{position:absolute;top:22px;right:18px;font-size:10px!important}.hf-home-secondary h2{margin-bottom:5px!important;padding-right:80px}.hf-home-secondary .hf-home-card>strong{display:block;font-size:24px;letter-spacing:-.5px;margin:18px 0 10px;font-variant-numeric:tabular-nums}.hf-home-track{height:10px;background:var(--home-border);border-radius:10px;overflow:hidden;margin:14px 0 9px}.hf-home-track>span{display:block;height:100%;background:#282e37;border-radius:10px;transition:width .2s}.hf-home-patients>strong{font-size:20px!important}.hf-home-movement>strong{position:absolute;top:8px;right:20px;margin:10px 0!important}.hf-home-bars{display:flex;gap:12px;align-items:flex-end;justify-content:space-around;min-height:96px;margin-top:12px}.hf-home-bars>div{display:flex;flex:1;align-items:center;flex-direction:column;justify-content:flex-end;gap:5px}.hf-home-bars b{font-size:10px;font-weight:600}.hf-home-bars span{display:block;width:75%;border-radius:3px 3px 0 0;background:#aab4c1}.hf-home-bars small{font-size:9px;color:var(--home-muted);white-space:nowrap}.hf-home-notice{color:#a7671b;font-size:12px}.hf-home-notice:empty{display:none}.hf-home-updated{font-size:10px;color:var(--home-muted);text-align:right;margin:12px 0 0}.hf-home-empty{padding:40px 15px;text-align:center;color:var(--home-muted);font-size:12px}.hf-home-empty p{font-size:12px;line-height:1.6}.hf-desktop-home button:focus-visible,.hf-home-sidebar button:focus-visible{outline:2px solid #6298dc!important;outline-offset:3px}
html[data-theme=dark] .hf-home-track>span{background:#bcc4cf}html[data-theme=dark] .hf-home-status{background:#392c18;color:#f4cd8b}html[data-theme=dark] .hf-home-status.is-confirmed{background:#19392b;color:#a0ddba}
@media(max-width:1200px){.app.hf-home-app main.admin.hf-home-main{padding-left:20px!important;padding-right:20px!important;margin-left:210px!important;width:calc(100% - 210px)!important}.hf-home-sidebar{width:210px}.hf-home-brand{gap:8px}.hf-home-brand b{font-size:16px}.hf-home-toolbar>span{display:none}.hf-home-toolbar-actions{width:100%;justify-content:space-between}.hf-home-search{width:65%}.hf-home-kpis{grid-template-columns:1fr 1fr;gap:12px}.hf-home-attendances{grid-column:1/-1}.hf-home-attendances table{max-width:100%}.hf-home-lower{grid-template-columns:1fr}.hf-home-secondary{grid-template-columns:1fr 1fr}.hf-home-movement{grid-column:1/-1}.hf-home-income{padding:17px}.hf-home-heading h1{font-size:26px!important}.hf-home-sidebar nav button{font-size:12px}}
}

/* Mobile keeps the existing button cards and spacing, with the six remaining shortcuts. */
@media(max-width:1023px){
 main.admin:has(> .patient-list)>.page-head .admin-head-actions>.hf-dashboard-patient-summary{order:1!important}
 main.admin:has(> .patient-list)>.page-head .admin-head-actions>.apn-management-action{order:2!important}
 main.admin:has(> .patient-list)>.page-head .admin-head-actions>.hf-open-agenda{order:5!important}
 main.admin:has(> .patient-list)>.page-head .admin-head-actions>.hf-export-button{order:6!important}
 main.admin:has(> .patient-list)>.page-head .admin-head-actions>button:not(.hf-dashboard-patient-summary):not(.apn-management-action):not(.hf-open-agenda):not(.hf-export-button){order:3!important}
}

/* Remove only the unused dashboard shortcut; leave the agenda module unchanged. */
main.admin:has(> .patient-list)>.page-head .admin-head-actions>.hf-open-employees{display:none!important}
/* V416: fit the desktop overview into the available viewport. */
@media(min-width:1024px){
 .app.hf-home-app main.admin.hf-home-main[data-home-mode=overview]{height:100dvh;min-height:0!important;padding:0 22px 14px!important;overflow:hidden}
 .hf-home-main[data-home-mode=overview]>.hf-desktop-home{height:100%;min-height:0;display:grid;grid-template-rows:64px minmax(0,1fr);gap:12px}
 .hf-home-toolbar{min-height:0;height:64px;margin:0;gap:12px}
 .hf-home-greeting{display:grid;gap:4px;flex-shrink:0}.hf-home-greeting>b{font-size:12px;font-weight:650}.hf-home-greeting>small{font-size:10px;color:var(--home-muted)}
 .hf-home-toolbar-actions{width:auto;gap:10px}.hf-home-search{width:clamp(200px,24vw,360px);padding:9px 12px}.hf-home-search input{font-size:11px!important}.hf-home-primary{padding:9px 13px!important;min-height:36px!important;font-size:11px!important}.hf-home-refresh{padding:8px!important;border:1px solid var(--home-border)!important;border-radius:7px;width:34px;height:34px;justify-content:center}.hf-home-refresh svg{width:15px;height:15px}
 .hf-home-overview{min-height:0;display:grid;grid-template-rows:126px minmax(0,1fr);gap:12px;position:relative}
 .hf-home-kpis{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(270px,1.45fr);gap:12px;margin:0;min-height:0}
 .hf-home-card{padding:14px 16px;border-radius:10px;box-shadow:none}.hf-home-card h2{font-size:12px!important;margin-bottom:8px!important;gap:7px}.hf-home-card h2 svg{width:18px;height:18px}.hf-home-card>small,.hf-home-card header small{font-size:9px!important}
 .hf-home-income>strong{font-size:clamp(23px,2.1vw,31px);margin:9px 0 5px}.hf-home-attendances{grid-column:auto;padding:10px 13px}.hf-home-attendances h2{font-size:12px!important;margin-bottom:2px!important}.hf-home-attendances th,.hf-home-attendances td{padding:5px 3px;font-size:11px}.hf-home-attendances td{font-size:14px}.hf-home-attendances thead th{font-size:9px}.hf-home-attendances>small{margin-top:5px;font-size:8px!important}
 .hf-home-lower{grid-template-columns:minmax(0,1.55fr) minmax(270px,1fr);gap:12px;min-height:0;align-items:stretch}
 .hf-home-agenda{display:flex;flex-direction:column;min-height:0;padding:14px 12px}.hf-home-agenda>header{padding:0 3px 11px;flex-shrink:0}.hf-home-agenda h2{font-size:15px!important}.hf-home-outline{padding:7px 9px!important;font-size:10px!important}.hf-home-agenda>[data-home-agenda-list]{min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
 .hf-home-appointment{padding:11px 9px;min-height:61px;gap:9px}.hf-home-appointment time{font-size:11px}.hf-home-person b{font-size:11px}.hf-home-person small{font-size:9px}.hf-home-initials{width:30px;height:30px;font-size:10px}.hf-home-status{font-size:8px;padding:4px 6px}.hf-home-agenda-add{margin-top:9px;padding:9px!important;font-size:11px!important;flex-shrink:0}.hf-home-empty{padding:20px 12px;font-size:11px}.hf-home-empty p{font-size:11px}
 .hf-home-secondary{grid-template-columns:1fr;grid-template-rows:minmax(110px,1.1fr) minmax(88px,.8fr) minmax(130px,1.2fr);gap:10px;min-height:0;align-content:stretch}.hf-home-secondary>.hf-home-card{min-height:0}.hf-home-secondary h2{padding-right:72px}.hf-home-card-link{top:15px;right:15px;font-size:9px!important}.hf-home-secondary .hf-home-card>strong{font-size:21px;margin:10px 0 6px}.hf-home-patients>strong{font-size:17px!important}.hf-home-track{height:8px;margin:11px 0 6px}.hf-home-movement{grid-column:auto}.hf-home-movement>strong{top:3px;right:16px}.hf-home-bars{min-height:75px;margin-top:7px;gap:8px}.hf-home-bars>div{gap:3px}.hf-home-bars b,.hf-home-bars small{font-size:8px}
 .hf-home-updated{display:none!important}.hf-home-notice:empty{display:none}.hf-home-notice:not(:empty){position:absolute;left:0;right:0;bottom:0;z-index:3;margin:0;padding:7px 10px;background:var(--home-panel);border:1px solid var(--home-border);border-radius:6px;font-size:10px}
 .hf-home-sidebar{padding:20px 14px 14px}.hf-home-brand{margin-bottom:24px}.hf-home-brand img{width:38px;height:38px}.hf-home-sidebar nav{gap:4px}.hf-home-sidebar nav button{padding:10px 12px;min-height:40px;font-size:12px}.hf-home-sidebar nav .hf-home-nav-separator{margin-top:12px;padding-top:17px}.hf-home-sidebar footer{padding-top:16px}
 html:not([data-theme=dark]) .hf-home-card{border:1px solid #111!important}html:not([data-theme=dark]) .hf-home-search,html:not([data-theme=dark]) .hf-home-outline,html:not([data-theme=dark]) .hf-home-agenda-add{border-color:#111!important}
 @media(max-height:700px){
  .hf-home-main[data-home-mode=overview]>.hf-desktop-home{grid-template-rows:56px minmax(0,1fr);gap:10px}.hf-home-toolbar{height:56px}.hf-home-overview{grid-template-rows:115px minmax(0,1fr);gap:10px}.hf-home-card{padding:11px 13px}.hf-home-secondary{grid-template-rows:minmax(100px,1fr) minmax(79px,.75fr) minmax(118px,1.1fr);gap:8px}.hf-home-secondary .hf-home-card>strong{margin:8px 0 5px;font-size:20px}.hf-home-bars{min-height:65px;margin-top:4px}.hf-home-bars span{max-height:44px}.hf-home-track{margin:8px 0 5px}.hf-home-card-link{top:12px;right:12px}.hf-home-sidebar nav button{min-height:35px;padding:8px 12px}.hf-home-brand{margin-bottom:17px}.hf-home-sidebar footer{padding-top:12px}.hf-home-appointment{min-height:55px;padding:9px}
 }
}
@media(min-width:1024px){
 .hf-home-kpis>.hf-home-card{height:100%;min-height:0}
 .hf-home-attendances table{line-height:1.2}.hf-home-attendances thead th{padding-top:2px;padding-bottom:2px}.hf-home-attendances tbody th,.hf-home-attendances tbody td{padding-top:4px;padding-bottom:4px}
}
@media(min-width:1024px){.hf-home-attendances>small{display:none!important}}
/* V417: full-width agenda, two equally sized monthly charts, memory details in dialog. */
@media(min-width:1024px){
 .hf-home-lower{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) 162px;gap:12px}
 .hf-home-chart-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-height:0}
 .hf-home-chart-row>.hf-home-card{min-height:0;overflow:hidden;padding:13px 16px}
 .hf-home-chart-row h2{padding-right:0!important;margin-bottom:4px!important;font-size:12px!important}
 .hf-home-chart-row .hf-home-movement>strong{position:static;display:block;margin:3px 0 2px!important;text-align:center;font-size:18px;line-height:1.15}
 .hf-home-chart-row .hf-home-movement>small{text-align:center;font-size:9px!important}
 .hf-home-chart-row .hf-home-bars{min-height:72px;margin-top:5px;gap:10px}
 .hf-home-chart-row .hf-home-bars>div{min-width:0;gap:3px}
 .hf-home-chart-row .hf-home-bars b{max-width:100%;font-size:9px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-variant-numeric:tabular-nums}
 .hf-home-chart-row .hf-home-bars span{max-height:40px;width:70%}
 .hf-home-chart-row .hf-home-bars small{font-size:8px}
 .hf-home-utility[hidden]{display:none!important}
 .hf-memory-patients{margin-top:20px;padding-top:17px;border-top:1px solid currentColor}
 .hf-memory-patients h3{font-size:14px;margin:0 0 10px}
 .hf-memory-patients strong{display:block;font-size:23px;line-height:1.3}
 .hf-memory-patients p{font-size:12px;margin:8px 0 0;opacity:.75}
 @media(max-height:700px){
  .hf-home-lower{grid-template-rows:minmax(0,1fr) 145px;gap:10px}
  .hf-home-chart-row{gap:10px}.hf-home-chart-row>.hf-home-card{padding:10px 13px}
  .hf-home-chart-row h2{font-size:11px!important;margin-bottom:2px!important}
  .hf-home-chart-row .hf-home-movement>strong{font-size:16px;margin-top:2px!important}
  .hf-home-chart-row .hf-home-bars{min-height:62px;margin-top:3px}
  .hf-home-chart-row .hf-home-bars span{max-height:34px}
 }
}
@media(min-width:1024px){.hf-home-chart-row h2{justify-content:center;text-align:center}}
/* V418: desktop modules occupy the workspace; original mobile presentation remains intact. */
@media(min-width:1024px){
 body.hf-embedded-workspace{--hf-workspace-offset:238px}
 .app.hf-module-app{min-height:100dvh}
 .app.hf-module-app>main.admin.hf-home-module{box-sizing:border-box!important;margin:0 0 0 var(--hf-workspace-offset)!important;width:calc(100% - var(--hf-workspace-offset))!important;max-width:none!important;height:100dvh;min-height:0!important;overflow:auto;padding:18px 24px 32px!important;background:var(--home-bg)!important;color:var(--home-ink)}
 .app.hf-module-app>main.admin.hf-home-module>.back{margin:0 0 12px!important;font-size:12px}
 .app.hf-module-app>main.admin.hf-home-module>.page-head{position:sticky;top:-18px;z-index:8;background:var(--home-bg);padding:14px 0!important;margin:0 0 15px!important;border-bottom:1px solid var(--home-border)}
 .app.hf-module-app>main.admin.hf-home-module>.page-head h1{font-size:26px!important;margin:0 0 6px!important}
 .app.hf-module-app>main.admin.hf-home-module>.page-head p{font-size:12px!important}
 body.hf-embedded-workspace>.hf-agenda-overlay:not(.employees),body.hf-embedded-workspace>.apn-finance-overlay{box-sizing:border-box!important;position:fixed!important;left:var(--hf-workspace-offset)!important;right:0!important;top:0!important;bottom:0!important;width:calc(100% - var(--hf-workspace-offset))!important;height:100dvh!important;z-index:20!important;overflow:hidden!important}
 body.hf-embedded-workspace .hf-home-sidebar{z-index:40}
 body.hf-embedded-workspace>.hf-agenda-overlay:not(.employees)>.hf-agenda-app{height:100%;min-height:0!important;display:flex;flex-direction:column;overflow:hidden}
 body.hf-embedded-workspace>.hf-agenda-overlay:not(.employees) .hf-agenda-head{display:flex!important;flex-wrap:wrap!important;flex-shrink:0;position:relative!important;top:0!important;gap:8px!important;padding:12px 16px!important;background:#fff!important;color:#111!important;border-bottom:1px solid #111;box-shadow:none!important}
 body.hf-embedded-workspace>.hf-agenda-overlay:not(.employees) .hf-agenda-head>.hf-agenda-brand,body.hf-embedded-workspace>.hf-agenda-overlay:not(.employees) .hf-agenda-head>.hf-theme-toggle{display:none!important}
 body.hf-embedded-workspace>.hf-agenda-overlay:not(.employees) .hf-agenda-head nav{display:flex!important;flex:1!important;gap:4px!important;order:0!important;width:auto!important;overflow:auto!important}
 body.hf-embedded-workspace>.hf-agenda-overlay:not(.employees) .hf-agenda-head nav button,body.hf-embedded-workspace>.hf-agenda-overlay:not(.employees) .hf-agenda-exit{color:#111!important;font-size:11px!important;padding:9px 10px!important}
 body.hf-embedded-workspace>.hf-agenda-overlay:not(.employees) .hf-agenda-head nav button.active{background:#111!important;color:#fff!important}
 body.hf-embedded-workspace>.hf-agenda-overlay:not(.employees) .hf-agenda-search-button{color:#111!important;border-color:#c2c7ce!important;background:transparent!important}
 body.hf-embedded-workspace>.hf-agenda-overlay:not(.employees) .hf-agenda-page{box-sizing:border-box;flex:1;min-height:0;overflow:auto;width:100%;max-width:none!important;margin:0!important;padding:18px!important}
 body.hf-embedded-workspace>.hf-agenda-overlay:not(.employees) .hf-agenda-notice{margin:0;padding:0 16px;flex-shrink:0}
 body.hf-embedded-workspace>.apn-finance-overlay>.apn-fin-app{box-sizing:border-box;height:100%;width:100%!important;max-width:none!important;margin:0!important;padding:18px 22px 10px!important;display:flex;flex-direction:column;overflow:hidden}
 body.hf-embedded-workspace>.apn-finance-overlay .apn-fin-head{flex-shrink:0;margin-bottom:14px!important;gap:12px}
 body.hf-embedded-workspace>.apn-finance-overlay .apn-fin-head h1{font-size:26px!important}
 body.hf-embedded-workspace>.apn-finance-overlay .apn-fin-head p{font-size:12px!important}
 body.hf-embedded-workspace>.apn-finance-overlay .apn-fin-tabs{flex-shrink:0}
 body.hf-embedded-workspace>.apn-finance-overlay [data-fin-body]{flex:1;min-height:0;overflow:auto;padding-right:5px;overscroll-behavior:contain}
 body.hf-embedded-workspace>.apn-finance-overlay [data-fin-notice]{flex-shrink:0;margin:4px 0 0}
 html[data-theme=dark] body.hf-embedded-workspace>.hf-agenda-overlay:not(.employees) .hf-agenda-head{background:#15181c!important;color:#fff!important;border-color:#353a43}
 html[data-theme=dark] body.hf-embedded-workspace>.hf-agenda-overlay:not(.employees) .hf-agenda-head nav button,html[data-theme=dark] body.hf-embedded-workspace>.hf-agenda-overlay:not(.employees) .hf-agenda-exit,html[data-theme=dark] body.hf-embedded-workspace>.hf-agenda-overlay:not(.employees) .hf-agenda-search-button{color:#fff!important}
 html[data-theme=dark] body.hf-embedded-workspace>.hf-agenda-overlay:not(.employees) .hf-agenda-head nav button.active{background:#fff!important;color:#111!important}
 @media(max-width:1200px){body.hf-embedded-workspace{--hf-workspace-offset:210px}.app.hf-module-app>main.admin.hf-home-module{padding-left:18px!important;padding-right:18px!important}.hf-home-sidebar nav button span{font-size:11px;line-height:1.3}}
}

/* V420: taller monthly charts and compact agenda with visible utility cards. */
@media(min-width:1024px){
 .hf-home-lower{grid-template-columns:minmax(0,1.55fr) minmax(240px,1fr);grid-template-rows:minmax(0,1fr) clamp(220px,40vh,324px)}
 .hf-home-agenda{grid-column:1;grid-row:1}
 .hf-home-secondary{grid-column:2;grid-row:1;grid-template-columns:1fr;grid-template-rows:1fr 1fr;gap:10px;align-content:stretch}
 .hf-home-secondary>.hf-home-card{padding:10px 13px;overflow:hidden}
 .hf-home-secondary h2{font-size:11px!important;margin-bottom:3px!important;padding-right:72px}
 .hf-home-secondary .hf-home-card>strong{font-size:19px!important;margin:5px 0 3px}
 .hf-home-secondary .hf-home-track{margin:6px 0 4px;height:6px}
 .hf-home-secondary .hf-home-card-link{top:10px;right:12px}
 .hf-home-secondary .hf-home-card>small{font-size:8px!important}
 .hf-home-chart-row{grid-column:1/-1;grid-row:2}
 .hf-home-chart-row>.hf-home-card{display:flex;flex-direction:column}
 .hf-home-chart-row .hf-home-bars{flex:1;min-height:0;align-items:stretch;margin-top:10px}
 .hf-home-chart-row .hf-home-bars>div{justify-content:flex-end}
 .hf-home-chart-row .hf-home-bars span{max-height:140px}
 .hf-home-chart-row .hf-home-bars b{font-size:11px}
 .hf-home-chart-row .hf-home-bars small{font-size:10px}
 @media(max-height:700px){
  .hf-home-lower{grid-template-rows:minmax(0,1fr) clamp(180px,36vh,252px)}
  .hf-home-secondary{gap:8px}.hf-home-secondary>.hf-home-card{padding:8px 11px}
  .hf-home-secondary .hf-home-card>strong{font-size:16px!important;margin:3px 0 2px}
  .hf-home-secondary h2{font-size:10px!important}.hf-home-secondary .hf-home-card-link{top:8px;font-size:8px!important}
  .hf-home-chart-row .hf-home-bars span{max-height:110px}
 }
}

/* V422: compact agenda actions and unclipped memory summary. */
@media(min-width:1024px){
 .hf-home-agenda-actions{display:flex;align-items:center;gap:7px;flex-shrink:0}
 .hf-home-agenda-actions>.hf-home-outline{flex:0 0 118px;width:118px;min-height:30px;min-width:118px;text-align:center;border-radius:7px}
 .hf-home-secondary>.hf-home-memory{display:flex;flex-direction:column;justify-content:center;padding:7px 12px;gap:0}
 .hf-home-secondary .hf-home-memory h2{line-height:1.15;margin:0 0 2px!important}
 .hf-home-secondary .hf-home-memory>small{line-height:1.1;font-size:8px!important}
 .hf-home-secondary .hf-home-memory>strong{font-size:16px!important;line-height:1.1;margin:2px 0 3px}
 .hf-home-secondary .hf-home-memory .hf-home-track{height:5px;min-height:5px;flex-shrink:0;margin:2px 0 3px}
 .hf-home-chart-row h2{font-size:14px!important;line-height:1.2}
 .hf-home-chart-row .hf-home-movement>strong{font-size:22px;line-height:1.15;margin:2px 0!important}
 .hf-home-chart-row .hf-home-bars{margin-top:6px}
 @media(max-height:700px){
  .hf-home-secondary .hf-home-memory>strong{font-size:14px!important;margin:1px 0 2px}
  .hf-home-secondary .hf-home-memory>small{font-size:7px!important}
  .hf-home-chart-row h2{font-size:13px!important}
  .hf-home-chart-row .hf-home-movement>strong{font-size:20px}
 }
 @media(max-width:1100px){
  .hf-home-agenda>header{gap:6px;flex-wrap:wrap}
  .hf-home-agenda-actions{margin-left:auto}
 }
}
