/* Cabinet navigation uses the existing Era palette, typography and form components. */
.dashboard-shell{display:grid;grid-template-columns:210px minmax(0,1fr);gap:30px;max-width:1580px;margin:0 auto;padding:30px clamp(18px,3vw,44px) 64px;align-items:start}
.dashboard-shell .dashboard{width:100%;max-width:none;margin:0;padding:0;min-width:0}
.dashboard-navigation{position:sticky;top:100px;min-width:0}
.dashboard-navigation nav{display:flex;flex-direction:column;gap:6px}
.dashboard-navigation a{display:flex;gap:12px;align-items:center;min-height:48px;padding:12px 16px;border-radius:12px;color:var(--ink);font-size:15px;font-weight:600;text-decoration:none;transition:background .15s,color .15s}
.dashboard-navigation a:hover{background:#e4ebff}
.dashboard-navigation a[aria-current=page]{background:var(--blue);color:#fff;font-weight:800}
.dashboard-navigation svg{width:21px;height:21px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.dashboard-nav-group{margin:26px 16px 8px;font-size:12px;color:#52627a}
.dashboard-mobile-nav{display:none}
.dashboard-page .dashboard-hero{align-items:start;margin-bottom:28px;gap:28px}
.dashboard-page .dashboard-hero h1{font-size:clamp(24px,2.1vw,32px);line-height:1.3;letter-spacing:-.045em;margin:0 0 12px}
.dashboard-page .dashboard-hero p{line-height:1.55;max-width:65ch}
.dashboard-page .new-proposal-actions{min-width:220px;max-width:300px;flex-shrink:0}
.dashboard-page .new-proposal-actions p{font-size:12px}
.dashboard-shell .portal-panel{padding:24px;border-radius:18px;box-shadow:none;scroll-margin-top:90px}
.dashboard-shell .panel-heading .eyebrow{display:none}
.dashboard-shell .panel-heading h2{font-size:20px;line-height:1.4;margin-top:0}
.dashboard-shell .panel-heading p{line-height:1.5;max-width:75ch}
.dashboard-shell .proposal-filters{display:grid;grid-template-columns:minmax(200px,1.4fr) repeat(3,minmax(140px,1fr));gap:12px}
.dashboard-shell .proposal-filters label{max-width:none}
.proposal-filter-fields{display:contents}
#proposalFiltersToggle{display:none}
.proposal-kind{display:block;width:fit-content;margin:0 0 8px;padding:4px 8px;border-radius:4px;background:#e5ecff;color:#233c7c;font-size:12px;font-weight:700}
@media(max-width:820px){
 .dashboard-shell .proposal-filters{display:block}
 #proposalFiltersToggle{display:block;width:100%;min-height:44px;text-align:left;margin-bottom:12px}
 #proposalFiltersToggle::after{content:'';float:right;width:8px;height:8px;margin:3px 4px 0 12px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg)}
 #proposalFiltersToggle[aria-expanded=true]::after{transform:rotate(225deg);margin-top:8px}
 .proposal-filter-fields{display:none}
 .proposal-filter-fields.is-expanded{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}
}
@media(max-width:600px){.proposal-filter-fields.is-expanded{grid-template-columns:1fr}}
.proposal-list-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:14px 0}
.proposal-list-toolbar label,.proposal-pagination label{display:flex;align-items:center;gap:10px;color:#52627a;font-size:13px}
.proposal-list-toolbar select,.proposal-pagination select,.dashboard-mobile-nav select{min-height:44px;border:1px solid #bac8df;border-radius:10px;padding:8px 28px 8px 12px;color:var(--ink);background:#fff;font:inherit}
.dashboard-shell .proposal-row{grid-template-columns:minmax(0,1.5fr) minmax(115px,.7fr) minmax(155px,1fr);padding:18px;background:#f5f7fc;border:1px solid var(--line);border-radius:12px;gap:10px 20px}
.dashboard-shell .proposal-row strong{overflow-wrap:anywhere}
.dashboard-shell .proposal-row .row-actions{grid-column:1/-1;max-width:none;justify-content:flex-start;border-top:1px solid var(--line);padding-top:12px}
.dashboard-shell .proposal-row .row-date{display:block;line-height:1.6;font-variant-numeric:tabular-nums}
.dashboard-shell .row-actions .portal-button{min-height:40px}
.proposal-pagination{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:16px;margin-top:24px;border-top:1px solid var(--line);padding-top:20px}
.proposal-pagination .portal-button{min-height:44px}
#proposalPageStatus{color:#52627a;font-size:13px;font-variant-numeric:tabular-nums}
#proposalLoadError{line-height:1.6}#proposalLoadError .portal-button{margin-left:8px}
#proposalsSection[aria-busy=true] .proposal-list{opacity:.5;pointer-events:none}
.dashboard-shell input:focus-visible,.dashboard-shell select:focus-visible,.dashboard-shell textarea:focus-visible{outline:2px solid var(--blue);outline-offset:2px;box-shadow:none}
.dashboard-shell .user-row{grid-template-columns:minmax(0,1fr) auto;overflow-wrap:anywhere}
.dashboard-shell .user-row>span:empty{display:none}
.dashboard-shell .user-row .row-actions{grid-column:1/-1;justify-content:flex-start}
@media(max-width:1200px){
 .dashboard-shell{grid-template-columns:185px minmax(0,1fr);gap:20px}
 .dashboard-shell .proposal-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
 .dashboard-page .dashboard-hero{flex-direction:column;gap:20px}
 .dashboard-page .new-proposal-actions{align-items:flex-start;text-align:left;max-width:none}
 .dashboard-shell .cases-list{grid-template-columns:1fr}
 .dashboard-shell .user-form{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:900px){
 .dashboard-shell{display:block;padding-top:18px}
 .dashboard-navigation{position:static;margin-bottom:24px}
 .dashboard-navigation nav{display:none}
 .dashboard-mobile-nav{display:flex;align-items:center;gap:12px;color:#52627a;font-size:13px}
 .dashboard-mobile-nav select{flex:1;max-width:340px;font-size:16px}
 .dashboard-shell .proposal-row .row-date{grid-column:auto}
}
@media(max-width:600px){
 .dashboard-shell{padding:16px 12px 36px}
 .dashboard-page .portal-brand>div{display:none}
 .dashboard-shell .portal-panel{padding:18px 14px;border-radius:14px}
 .dashboard-shell .panel-heading{flex-wrap:wrap;gap:12px}
 .dashboard-page .dashboard-hero h1{font-size:24px}
 .dashboard-shell .proposal-filters{grid-template-columns:1fr}
 .dashboard-shell .proposal-row{grid-template-columns:1fr;padding:14px}
 .dashboard-shell .proposal-row .row-date{grid-column:1}
 .dashboard-shell .proposal-row .row-actions{gap:8px}
 .dashboard-shell .row-actions .portal-button,.dashboard-shell .case-actions .portal-button{min-height:44px}
 .dashboard-shell input,.dashboard-shell textarea,.dashboard-shell select{font-size:16px;min-height:44px;max-width:100%}
 .dashboard-shell .user-form{grid-template-columns:1fr}
 .dashboard-shell .library-case{grid-template-columns:1fr}
 .dashboard-shell .library-case img,.dashboard-shell .case-no-image{width:100%;height:180px;min-height:0}
 .proposal-pagination{gap:10px}
 .proposal-pagination label{font-size:0;gap:0}
 .proposal-pagination label select{font-size:16px;max-width:80px}
 .proposal-pagination .portal-button{padding:10px 12px}
 #proposalPageStatus{font-size:12px}
}
@media(prefers-reduced-motion:reduce){.dashboard-navigation a{transition:none}}
