/* Retain Mosaeli's visual identity; reduce competing emphasis and mobile friction. */
:root{--ux-space:1rem;--ux-line:#dce3ee;--ux-surface:#fff;--ux-ink:#142249}
.main{min-width:0}
.main .page-head h1{font-size:clamp(1.5rem,2.4vw,2rem);line-height:1.2}
.main .page-head p{max-width:65ch;font-size:1rem;line-height:1.6}
.main .card{box-shadow:none}
.main .eyebrow,.main .soft-label{font-size:.75rem;letter-spacing:.06em}
.ux-disclosure{margin:1rem 0;border:1px solid var(--ux-line);border-radius:1rem;background:var(--ux-surface);min-width:0}
.ux-disclosure>summary,.ux-profile-section>summary{padding:1rem;font-size:.9375rem;font-weight:750;cursor:pointer;min-height:48px}
.ux-disclosure>.card{border:0;margin:0!important}
.ux-disclosure>*:not(summary):not(.card){margin:0 1rem 1rem}
.ux-disclosure>summary:focus-visible,.ux-nav-group>summary:focus-visible,.ux-profile-section>summary:focus-visible{outline:3px solid #1261ef;outline-offset:2px}
.ux-nav-group{margin:.25rem 0;border-top:1px solid #edf0f5}
.ux-nav-group>summary{min-height:48px;padding:.875rem .75rem;cursor:pointer;font-weight:800;font-size:.9375rem;color:#17264d}
.ux-nav-children{display:grid;gap:.25rem;padding:0 0 .5rem .5rem}
.ux-nav-children .nav-btn{width:100%;font-size:.875rem;min-height:44px}
.ux-nav-children .nav-btn .plus-badge{font-size:.75rem}
.ux-task-tabs{display:flex;gap:.5rem;flex-wrap:wrap;margin:0 0 1.25rem}
.ux-task-tabs .btn{min-height:44px;padding:.625rem .875rem;font-size:.875rem}
.ux-task-tabs .active{background:#eaf1ff;color:#174ea6;border-color:#b4caff}
.md-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.md-summary-grid[data-count="4"]{grid-template-columns:repeat(4,minmax(0,1fr))!important}
.md-overview .md-quick-panel.ux-empty-panel{min-height:0!important;align-self:start}
.ux-empty-panel .md-quick-empty{padding:1rem!important;min-height:0!important}
.ux-empty-panel .md-panel-note{display:none}
.md-overview-panels{align-items:start!important;margin-top:20px}
.shell:has(.md-overview){height:auto!important;min-height:calc(100dvh - 130px)!important}
.md-overview{height:auto!important;min-height:0!important;display:flex!important;flex-direction:column}
.md-overview-head{order:0}.md-summary-grid{order:1}.md-overview-panels{order:2}.ux-status-guide{order:3}.md-overview-bottom{order:4}
.md-overview .md-quick-list{flex:initial!important;min-height:0!important}
.ux-status-guide{background:transparent;border:0;margin:.75rem 0}
.ux-status-guide>summary{padding:.5rem 0;min-height:44px;font-size:.8125rem;color:#52617a}
.md-summary-tile{box-shadow:none!important}
.auth-alt{display:none!important}
.ux-password-toggle{border:0;background:transparent;color:#174ea6;text-align:left;min-height:44px;font:700 .875rem inherit;cursor:pointer}
.auth-panel .ux-consent{display:flex!important;align-items:flex-start;gap:.75rem;font-size:.875rem;line-height:1.6}
.auth-panel .ux-consent input{width:20px;height:20px;min-height:20px;flex:none;margin-top:3px}
.auth-panel .ux-consent a{text-decoration:underline}
.ux-capture-details{border-top:1px solid var(--ux-line);margin:1rem 0}
.ux-capture-details>summary{padding:1rem 0;min-height:48px;font-weight:700;cursor:pointer}
.quick-sheet .quick-row{grid-template-columns:1fr!important}
.quick-sheet .form-actions{position:sticky;bottom:0;background:white;padding:1rem 0 .5rem;margin-top:1rem;z-index:2;border-top:1px solid var(--ux-line)}
.quick-sheet .field{margin:1rem 0}
.ux-profile-section{margin:1rem 0;border:1px solid var(--ux-line);border-radius:1rem;padding:0 1rem;background:white}
.ux-profile-section>summary{padding-left:0;padding-right:0}
.ux-profile-section .status-editor{grid-template-columns:1fr!important}
.ux-section-help,.ux-profile-progress{font-size:.875rem;line-height:1.6;color:#536179}
.ux-profile-section .field{margin:1rem 0}
.ux-formatting{border:0;margin:.5rem 0;background:transparent}
.ux-formatting>summary{padding:.5rem;min-height:44px;font-size:.8125rem}
.rich-toolbar button{min-width:32px;min-height:32px}
.ux-resource-tools{display:grid;grid-template-columns:1fr 1fr;gap:.5rem 1rem;margin:1rem 0}
.ux-resource-tools label{font-size:.875rem;font-weight:700}
.ux-resource-tools label[for="ux-resource-search"]{grid-column:1;grid-row:1}
.ux-resource-tools #ux-resource-search{grid-column:1;grid-row:2}
.ux-resource-tools label[for="ux-resource-kind"]{grid-column:2;grid-row:1}
.ux-resource-tools #ux-resource-kind{grid-column:2;grid-row:2}
.ux-resource-count{grid-column:1/-1;font-size:.875rem;color:#536179}
.resource[hidden]{display:none!important}
.care-team-section{margin-top:1.5rem}
.ir-shell{min-width:0}
.ir-filters .ir-filter-grid{min-width:0}
.ux-disclosure .ir-chart-grid{padding:1rem;margin:0}
.card,.input,select,textarea{max-width:100%;box-sizing:border-box}
@media(max-width:860px){
 .auth-shell{display:flex!important;flex-direction:column!important;padding:.75rem!important;gap:1rem!important}
 .auth-story{padding:1rem!important;min-height:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;gap:.5rem!important}
 .auth-story .brand{width:160px!important;max-width:55vw!important}
 .auth-story>div,.auth-story>p,.auth-values{display:none!important}
 .auth-back{margin:0!important;min-height:32px}
 .auth-panel-wrap{padding:0!important}
 .auth-panel{padding:1.25rem!important;border-radius:1.25rem!important}
 .topbar{display:flex!important;flex-wrap:wrap!important;height:auto!important;min-height:64px;gap:.5rem!important;padding:.75rem!important;justify-content:flex-start!important;width:100%;box-sizing:border-box}
 .topbar>.brand{width:126px!important;flex:0 0 126px;max-width:40vw}
 .topbar-center{display:none!important}
 .topbar .family-avatar-menu{flex:0 0 36px!important;width:36px!important;margin:0!important;order:4!important}
 .topbar .notification-button{flex:0 0 36px!important;width:36px!important;margin:0!important;order:3!important}
 .topbar [data-workspace-search],.topbar .workspace-search-trigger{order:2!important;width:36px!important;min-width:36px!important}
 .topbar .mg-tour-trigger,.topbar [data-mg-tour],.topbar [data-guided-tour]{order:5!important;flex:1 1 75px!important;min-width:0!important}
 .topbar .quick-capture-btn{order:6!important;flex:1 1 75px!important;min-width:0!important}
 .topbar .ml-header-task{order:7!important;flex:1 1 75px!important;min-width:0!important}
 .topbar .btn{padding:.5rem!important;font-size:.8125rem!important;min-height:44px!important}
 .topbar .icon-btn,.topbar .notification-button{min-width:36px!important;min-height:40px!important}
 .topbar>*{max-width:100%;box-sizing:border-box}
 .family-avatar-menu .account-popover{position:fixed;right:.75rem;top:65px;width:calc(100vw - 1.5rem)}
 .main{padding:1.25rem .9375rem 100px!important}
 .mobile-nav .nav-btn{font-size:.75rem!important;min-width:0;padding:.375rem!important;min-height:56px}
 .mobile-nav{grid-template-columns:repeat(5,minmax(0,1fr))!important;padding-bottom:env(safe-area-inset-bottom)}
 .md-overview-panels{order:1;display:flex!important;flex-direction:column;gap:.75rem!important;margin-top:16px}
 .md-overview-panels>*{width:100%}
 .md-summary-grid{order:2;gap:.5rem!important;margin-top:16px}
 .md-summary-grid[data-count="4"]{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .md-summary-tile{min-height:94px!important;padding:.75rem!important;border-radius:.875rem!important}
 .md-tile-top{font-size:.75rem!important;gap:.25rem}
 .md-tile-icon,.md-tile-note{display:none!important}
 .md-summary-tile>strong{font-size:1.5rem!important}
 .md-overview-bottom{flex-wrap:wrap;gap:.75rem!important}
 .quick-capture-wrap{padding:0!important;align-items:stretch!important}
 .quick-sheet{width:100%!important;max-width:none!important;max-height:100dvh!important;min-height:100dvh;border-radius:0!important;padding:1.25rem!important;display:flex;flex-direction:column}
 .quick-sheet .form-actions{margin-top:auto}
 .quick-sheet .form-actions>div{flex:1;justify-content:flex-end}
 .quick-sheet [data-quick-another]{font-size:.8125rem}
 .ux-resource-tools{grid-template-columns:1fr}
 .ux-resource-tools>*{grid-column:1!important;grid-row:auto!important}
 .ux-profile-section{padding:0 .75rem}
 .ir-filter-grid{grid-template-columns:1fr!important}
 .cost-grid{grid-template-columns:minmax(0,1fr)!important;min-width:0}
 .cost-row,.cost-row-head,.cost-range{min-width:0;overflow-wrap:anywhere}
 .cost-range{white-space:normal!important}
 .task:has([data-manage-caregiver]){grid-template-columns:32px minmax(0,1fr)!important}
 .task:has([data-manage-caregiver])>div{min-width:0;overflow-wrap:anywhere}
 .task [data-manage-caregiver],.task:has([data-manage-caregiver])>.form-actions{grid-column:2}
 .task:has([data-care-task-status]){grid-template-columns:minmax(0,1fr)!important;gap:1rem}
 .task:has([data-care-task-status])>*{min-width:0}
 .task:has([data-care-task-status]) .calendar-share-actions{display:flex;flex-wrap:wrap;gap:.5rem}
 .task:has([data-care-task-status]) .input{width:100%}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
