.minleg-page .ml-work{border:1px solid var(--border);background:#faf9f5}
.ml-heading{display:flex;justify-content:space-between;align-items:start;gap:30px;padding:30px;border-bottom:1px solid var(--border)}
.ml-heading h2,.ml-table-heading h2,.ml-notes h2{font-size:28px;font-weight:400;letter-spacing:-.035em;margin:12px 0}
.ml-heading p:not(.calc-eyebrow),.ml-table-heading p{font-size:13px;line-height:1.8;color:var(--muted);max-width:700px}
.ml-units{display:flex;gap:4px;flex-shrink:0}
.ml-units button{padding:12px 16px;background:transparent;border:1px solid var(--border-bright);color:var(--black);font-size:12px;min-height:44px;cursor:pointer}
.ml-units [aria-pressed=true]{background:var(--black);color:var(--white)}
.ml-layout{display:grid;grid-template-columns:.95fr 1.05fr}
.ml-inputs{padding:30px;border-right:1px solid var(--border);min-width:0}
.minleg-page .calc-form{gap:22px 18px}
.ml-wide{grid-column:1/-1}
.minleg-page .field{min-width:0}
.minleg-page .field select{max-width:100%;min-width:0;text-overflow:ellipsis}
.minleg-page .field-hint{font-size:11px;line-height:1.7;margin:6px 0 0}
.minleg-page .field label{font-size:11px}
.minleg-page input[aria-invalid=true]{border-color:#a33b29}
.minleg-page select:focus-visible,.ml-table button:focus-visible,.ml-table-scroll:focus-visible{outline:2px solid #42677d;outline-offset:3px}
.minleg-page .calc-btn-row{flex-wrap:wrap}
.minleg-page .ml-material-nav{margin-top:20px;font-size:12px;line-height:1.7}
.minleg-page a{color:inherit;text-underline-offset:3px}
.ml-measurement{margin:22px 0 0;padding-top:15px;border-top:1px solid var(--border)}
.ml-measurement svg{display:block;width:100%;max-height:230px}
.ml-measurement figcaption{font-size:11px;line-height:1.7;color:var(--muted);margin-top:14px}
.ml-output{padding:30px;background:#eeebe3;min-width:0}
.ml-big-number{font-size:clamp(48px,6vw,80px);letter-spacing:-.05em;line-height:1.25;font-variant-numeric:tabular-nums;margin-top:8px}
.ml-big-number span{font-size:17px;letter-spacing:0;margin-left:12px}
#ml-alternate{font:12px/1.8 'IBM Plex Mono',monospace;color:var(--muted);margin:8px 0 20px}
.ml-badge{display:inline-block;background:#e0e8e0;border:1px solid #b3c3b2;color:#31563e;padding:5px 8px;font-size:11px}
.ml-badge[data-state=review],.ml-badge[data-state=unavailable],.ml-badge[data-state=invalid]{background:#eee2d4;border-color:#cfb698;color:#795224}
#ml-status{font-size:12px;line-height:1.8;margin:12px 0}
.ml-tool-visual{display:grid;grid-template-columns:.75fr 1.25fr;gap:20px;border-block:1px solid var(--border);padding:20px 0;margin-top:22px}
.ml-tool-visual figure{margin:0;min-width:0;text-align:center}
#ml-die-profile{width:100%;height:220px;display:block}
#ml-die-profile[hidden]{display:none}
#ml-profile-empty{font-size:12px;line-height:1.8;color:var(--muted);padding:40px 5px}
#ml-profile-label{font-size:10px;line-height:1.6;color:var(--muted);margin-top:10px}
.ml-setup-facts{margin:0;display:grid;gap:14px;align-content:center}
.ml-setup-facts dt{font-size:10px;color:var(--muted);margin-bottom:4px}
.ml-setup-facts dd{margin:0;font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.ml-leg-check{padding:20px 0;border-bottom:1px solid var(--border)}
#ml-leg-result{font-size:14px;line-height:1.8;margin-top:10px}
#ml-leg-result[data-state=below],#ml-leg-result[data-state=invalid]{color:#a33b29}
#ml-leg-result[data-state=above]{color:#31563e}
.ml-source{font-size:11px;color:var(--muted);line-height:1.8;margin-top:18px}
.ml-source a{display:inline-block;margin-top:8px}
.ml-source a[hidden]{display:none}
#ml-catalog-note{margin-top:12px;color:#795224}
.ml-copy-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:18px;font-size:12px}
#ml-copy:disabled{opacity:.45;cursor:not-allowed}
#ml-copy-fallback{font-size:12px;margin-top:14px}
#ml-copy-text{width:100%;min-height:220px;padding:12px;background:#fffefa;margin-top:8px}
#ml-error{font-size:13px;line-height:1.6;padding:12px;background:#f5e8e3;color:#a33b29;margin-bottom:15px}
.ml-comparison{padding:30px;border-top:1px solid var(--border)}
.ml-table-heading{display:flex;align-items:start;justify-content:space-between;gap:28px;margin-bottom:22px}
.ml-table-heading h2{font-size:25px;margin-top:0}
.ml-table-heading>a{font-size:12px;white-space:nowrap}
.ml-table-scroll{overflow-x:auto;overscroll-behavior-inline:contain}
.ml-table{width:100%;min-width:850px;border-collapse:collapse;font-size:12px;text-align:left}
.ml-table th,.ml-table td{padding:16px 12px;border-bottom:1px solid var(--border);vertical-align:middle}
.ml-table thead th{font-weight:400;font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);background:#eeebe3}
.ml-table tbody th{font-weight:400}
.ml-table button{border:0;border-bottom:1px solid #aaa498;background:none;cursor:pointer;font-size:12px;min-height:44px;color:var(--black);text-align:left}
.ml-table small{display:block;font-size:10px;color:var(--muted);margin-top:5px;line-height:1.6}
.ml-table strong{font-weight:500}
.ml-selected{background:#edf1ec}
.ml-selected th{border-left:3px solid #42677d}
.ml-table-status{font-size:11px;line-height:1.6}
.ml-table-status[data-state=review]{color:#795224}
.ml-table [data-comparison=below]{color:#a33b29}
.ml-notes{padding:30px;border-top:1px solid var(--border);display:grid;grid-template-columns:1fr 1fr;gap:40px}
.ml-notes h2{font-size:22px;margin-top:0}
.ml-notes p{font-size:12px;color:var(--muted);line-height:1.9}
.ml-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:950px){.ml-layout{grid-template-columns:1fr}.ml-inputs{border-right:0;border-bottom:1px solid var(--border)}.ml-measurement{max-width:420px;margin-inline:auto}.ml-tool-visual{grid-template-columns:1fr 1fr}}
@media(max-width:650px){.ml-heading,.ml-table-heading{flex-direction:column;gap:18px}.ml-heading,.ml-inputs,.ml-output,.ml-comparison,.ml-notes{padding:24px}.ml-wide{grid-column:auto}.ml-notes{grid-template-columns:1fr;gap:25px}.ml-tool-visual{gap:12px}.ml-setup-facts dd{font-size:12px}.ml-table-heading>a{white-space:normal}}
@media print{.ml-units,.calc-btn-row,.ml-copy-row,#ml-copy-fallback{display:none!important}.ml-table-scroll{overflow:visible}.ml-table{min-width:0}.ml-layout{grid-template-columns:1fr 1fr}}
