#loadDistributionBottomPanel.hasAxleLoads.is-expanded{max-height:270px;overflow-y:auto;scrollbar-gutter:stable;}
.axleLoadTabs{grid-column:1/-1;display:flex;gap:6px;align-items:center;}
.axleLoadTabs .btn{min-height:27px;font-size:11px;}
.axleLoadTabs [aria-pressed="true"]{border-color:var(--accent,#365bd6);box-shadow:inset 0 -2px var(--accent,#365bd6);}
#loadDistributionBottomPanel.is-axle-mode>.loadDistributionPanelMain,
#loadDistributionBottomPanel.is-axle-mode>.loadDistributionStats{display:none;}
.axleLoadSection{grid-column:1/-1;min-width:0;display:grid;gap:5px;color:var(--text);font-size:11px;}
.axleLoadSection[hidden]{display:none;}
.axleLoadToolbar{display:flex;gap:6px;align-items:center;min-width:0;}
.axleLoadToolbar select{flex:1;min-width:0;max-width:360px;height:28px;}
.axleLoadToolbar .btn{min-height:28px;font-size:10px;flex-shrink:0;}
.axleLoadToolbar [data-axle="verify"]{border-color:var(--accent,#365bd6);font-weight:700;}
.axleLoadToolbar [data-axle="manage"]{margin-inline-start:auto;}
.axleLoadToolbar [hidden],.axleProfileForm [hidden]{display:none!important;}
.axleLoadCards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%;max-width:660px;justify-self:center;}
.axleLoadCard{display:grid;gap:4px;min-width:0;padding:10px 8px;text-align:center;font-variant-numeric:tabular-nums;border:1px solid var(--line);background:var(--surface3);border-radius:4px;}
.axleLoadCard span,.axleLoadCard small{overflow-wrap:anywhere;}
.axleLoadCard strong{font-size:14px;}
.axleLoadNumbers{margin-top:2px;}
.axleLoadNumbers table{margin-top:6px;}
.axleLoadMissing ul{margin:5px 0;padding-inline-start:20px;}
.axleLoadMissing{padding:10px;border:1px solid var(--line);border-inline-start:3px solid var(--accent,#365bd6);border-radius:4px;line-height:1.5;}
.axleLoadMissing[hidden],.axleLoadMissing [hidden],.axleLoadBreakdown [hidden]{display:none!important;}
.axleLoadMissing li+li{margin-top:8px;}
.axleLoadMissing p{margin:3px 0;color:var(--muted);}
.axleLoadMissing .btn{margin-top:4px;}
.axleLoadBreakdown{width:100%;max-width:760px;justify-self:center;min-width:0;}
.axleLoadBreakdown summary{text-align:center;}
.axleLoadBreakdown tr:last-child{font-weight:700;}
.axleLoadStatus{font-size:12px;}
.axleLoadStatus[data-state="exceeded"],.axleLoadExceeded{color:var(--danger,#ce3646);font-weight:800;}
.axleLoadStatus[data-state="not_evaluated"]{color:var(--muted);}
.axleLoadNote{color:var(--muted);line-height:1.45;overflow-wrap:anywhere;}
.axleLoadTable{border-collapse:collapse;width:100%;font-size:11px;table-layout:fixed;font-variant-numeric:tabular-nums;}
.axleLoadTable th,.axleLoadTable td{padding:4px 6px;border:1px solid var(--line);text-align:end;overflow-wrap:anywhere;}
.axleLoadTable th:first-child{text-align:start;}
.axleLoadTable thead,.axleLoadTable tbody th{background:var(--surface3);font-weight:700;}
.axleLoadHelp summary{cursor:pointer;color:var(--muted);font-size:10px;}
.axleLoadHelp p{margin:6px 0;line-height:1.5;color:var(--muted);}
.axleProfileBackdrop{z-index:15000;align-items:center;justify-content:center;padding:14px;}
.axleProfileModal{width:min(760px,calc(100vw - 28px));max-width:760px;max-height:calc(100dvh - 28px);overflow-y:auto;padding:16px;border-radius:6px;background:var(--panel);color:var(--text);border:1px solid var(--line);}
.axleProfileModal header,.axleProfileModal footer,.axleProfilePicker{display:flex;gap:8px;align-items:center;}
.axleProfileModal header{justify-content:space-between;padding-bottom:10px;border-bottom:1px solid var(--line);margin-bottom:12px;}
.axleProfilePicker{margin-bottom:12px;flex-wrap:wrap;}
.axleProfilePicker select{flex:1;min-width:160px;}
.axleProfileGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;}
.axleProfileGrid label{display:flex;flex-direction:column;gap:5px;font-size:12px;min-width:0;}
.axleProfileGrid input,.axleProfileGrid select,.axleProfilePicker select,.axleLoadToolbar select{box-sizing:border-box;width:100%;border:1px solid var(--line);border-radius:4px;padding:6px 8px;background:var(--surface3);color:var(--text);}
.axleProfileGrid input{min-width:0;}
.axleProfileForm>.axleLoadNote{display:block;margin-top:12px;}
.axleProfileFields{border:0;padding:0;margin:0;min-width:0;}
.axleProfileGroup{border:1px solid var(--line);border-radius:4px;padding:12px;margin:12px 0;}
.axleProfileGroup h3{margin:0 0 5px;font-size:13px;}
.axleProfileGroup>p{margin:0 0 10px;}
.axleProfileGrid span[data-number]::before{content:attr(data-number) '. ';font-weight:800;color:var(--accent,#365bd6);}
.axleProfileDiagram{margin:0 0 12px;padding:8px;background:var(--surface3);border:1px solid var(--line);border-radius:4px;}
.axleProfileDiagram svg{display:block;width:min(100%,400px);height:auto;max-height:150px;margin-inline:auto;color:var(--muted);}
.axleProfileDiagram svg [data-dimension]{stroke:var(--accent,#365bd6);}
.axleProfileDiagram svg .is-focused{stroke:var(--text);stroke-width:4px;}
.axleProfileDiagram figcaption{text-align:center;font-size:11px;}
.axleProfileScope{display:flex;gap:8px;align-items:center;font-size:12px;margin:10px 0;}
.axleProfileScope select{min-width:0;max-width:260px;padding:6px 8px;background:var(--surface3);color:var(--text);border:1px solid var(--line);border-radius:4px;}
.axleProfileAdvanced{margin:12px 0;}
.axleProfileAdvanced summary{cursor:pointer;font-size:12px;margin-bottom:10px;}
.axleProfileReadOnly{padding:8px;border:1px solid var(--line);}
.axleProfileModal header{position:sticky;top:-16px;background:var(--panel);z-index:1;padding-top:8px;}
.axleProfileModal footer{position:sticky;bottom:-16px;background:var(--panel);padding-bottom:8px;z-index:1;}
.axleProfileMessage{color:var(--muted);overflow-wrap:anywhere;}
.axleProfileMessage:empty{display:none;}
.axleProfileModal footer{padding-top:10px;border-top:1px solid var(--line);}
/* The desktop workbench reserves a fixed status row. Grow that existing row
   with the tab, rather than letting the inspector cover clipped results. */
body.desktop-workbench.layout-desktop #workspaceStatusStrip #loadDistributionBottomPanel.hasAxleLoads.is-expanded{max-height:156px;overflow-y:auto;}
body.desktop-workbench.layout-desktop #workspaceStatusStrip #loadDistributionBottomPanel.hasAxleLoads.is-axle-mode.is-expanded{max-height:calc(min(360px,50dvh) - 80px);}
body.desktop-workbench.layout-desktop #workspaceStatusStrip #loadDistributionBottomPanel.is-axle-mode>.loadDistributionPanelMain,
body.desktop-workbench.layout-desktop #workspaceStatusStrip #loadDistributionBottomPanel.is-axle-mode>.loadDistributionStats{display:none;}
body.desktop-workbench.layout-desktop:not(.bottom-dock-collapsed):has(#loadDistributionBottomPanel.hasAxleLoads.is-expanded) #main{grid-template-rows:var(--workbench-command-height) minmax(0,1fr) 236px;}
body.desktop-workbench.layout-desktop:not(.bottom-dock-collapsed):has(#loadDistributionBottomPanel.hasAxleLoads.is-expanded) #workspaceStatusStrip{min-height:236px;height:236px;}
body.desktop-workbench.layout-desktop:not(.bottom-dock-collapsed):has(#loadDistributionBottomPanel.hasAxleLoads.is-axle-mode.is-expanded) #main{grid-template-rows:var(--workbench-command-height) minmax(0,1fr) min(360px,50dvh);}
body.desktop-workbench.layout-desktop:not(.bottom-dock-collapsed):has(#loadDistributionBottomPanel.hasAxleLoads.is-axle-mode.is-expanded) #workspaceStatusStrip{min-height:min(360px,50dvh);height:min(360px,50dvh);}
body.layout-mobile #loadDistributionBottomPanel.hasAxleLoads.is-expanded{max-height:min(300px,42dvh);}
body.layout-mobile #capacityCard:has(#loadDistributionBottomPanel.hasAxleLoads.is-expanded){max-height:calc(100dvh - 160px);overflow-y:auto;}
@media(max-width:600px){
  #loadDistributionBottomPanel.hasAxleLoads.is-expanded{max-height:min(300px,42dvh);}
  .axleLoadToolbar{flex-wrap:wrap;}
  .axleLoadToolbar select{flex-basis:100%;max-width:none;}
  .axleLoadTable{font-size:10px;}
  .axleLoadTable th,.axleLoadTable td{padding:4px 3px;}
  .axleProfileGrid{grid-template-columns:1fr;}
  .axleProfileModal{padding:12px;}
  .axleProfileGroup{padding:10px;}
  .axleProfileModal header{top:-12px;}
  .axleProfileModal footer{bottom:-12px;}
}
