/* V2.15.0 / DESIGN V1.9.0 — content-aware Bento Grid, existing palette retained. */
.shell main{container:portal / inline-size}
.shell main .panel{container:card / inline-size}
.shell main :is(.grid,.content-grid,.form-grid,.document-grid,.metric-grid,.feature-grid,.fields,.sk-grid){min-width:0}
.shell main :is(.panel,.metric,.hero,.grid>*,.content-grid>*,.form-grid>*,.document-grid>*){min-width:0;max-width:100%}
.shell main .metric-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(11px,1.4vw,20px)}
.shell main .metric-grid>.metric:last-child:nth-child(odd){grid-column:1/-1}
.shell main .bento-dashboard{display:grid;grid-template-columns:minmax(0,1fr);gap:clamp(14px,1.6vw,24px);align-items:stretch}
.bento-dashboard>.panel{margin:0}
.shell main .grid.two,.shell main .grid.three,.shell main .form-grid{grid-template-columns:minmax(0,1fr)}
.shell main .document-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.shell main .sk-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.shell main .feature-grid{grid-template-columns:minmax(0,1fr)}
.shell main .fields{grid-template-columns:minmax(0,1fr)}
.shell main .fields>.full,.shell main .fields>.full-span,.shell main .form-grid>.full{grid-column:1/-1}
.shell main .hero h2{font-size:clamp(23px,3vw,38px)}
.shell main .metric strong{font-size:clamp(25px,3vw,40px);overflow-wrap:anywhere}
.shell main .table-wrap{max-width:100%;overflow:auto;overscroll-behavior-inline:contain}
@container portal (min-width:560px){
 .shell main .grid.two,.shell main .form-grid,.shell main .bento-dashboard{grid-template-columns:repeat(2,minmax(0,1fr))}
 .bento-admin>.panel:last-child:nth-child(odd){grid-column:1/-1}
 .bento-driver>.panel:nth-child(3){grid-column:1/-1}
 .shell main .feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .shell main .document-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .shell main .metric-grid:has(>.metric:nth-child(3):last-child),.shell main .sk-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .shell main .metric-grid:has(>.metric:nth-child(3):last-child)>.metric:last-child{grid-column:auto}
}
@container portal (min-width:900px){
 .shell main .metric-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
 .shell main .metric-grid>.metric:last-child:nth-child(odd){grid-column:auto}
 .shell main .grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
 .shell main .bento-dashboard{grid-template-columns:repeat(3,minmax(0,1fr))}
 .bento-admin>.panel:last-child:nth-child(odd){grid-column:auto}
 .bento-driver>.panel:first-child{grid-column:span 2}
 .bento-driver>.panel:nth-child(3){grid-column:span 2;grid-row:span 2}
 .shell main .document-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
 .shell main .feature-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@container portal (max-width:340px){.shell main .document-grid{grid-template-columns:minmax(0,1fr)}}
@container card (min-width:420px){.shell main .fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media print{.shell main{container-type:normal}.shell main .bento-dashboard{display:block}.bento-dashboard>.panel{break-inside:avoid;margin-bottom:16px}}
