body[data-tool] .mat-dimension{display:grid;grid-template-columns:minmax(0,1fr) 100px;gap:8px}
body[data-tool] .mat-dimension select{margin:0}
body[data-tool] .mat-check{display:flex;align-items:flex-start;gap:10px;line-height:1.6;margin:18px 0}
body[data-tool] .mat-check input{flex:none;width:20px;height:20px;min-height:20px;padding:0;margin:2px 0 0}
body[data-tool] #matAdvanced{border-top:1px solid var(--line);padding-top:18px;margin-top:18px}
body[data-tool] #matAdvanced p,body[data-tool] #matNotes{font-size:13px;line-height:1.7;color:var(--muted)}
body[data-tool] #matAdvanced .grid{margin-top:16px}
body[data-tool] #matCalculate{background:var(--brand);color:white;margin-top:0;border-color:var(--brand);flex-basis:100%}
body[data-tool] #matDownload{background:var(--brand);color:white;overflow-wrap:anywhere}
body[data-tool] #matStatus,body[data-tool] #toolError,body[data-tool] #matNotes{overflow-wrap:anywhere}
body[data-tool] #matNotes{padding-left:20px}
/* Aggregate ordering units remain visible before and after calculation. */
body[data-tool="crushed-stone"] .aggregate-order{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 14px}
body[data-tool="crushed-stone"] .aggregate-order>div{min-width:0;border:1px solid #c5d3bd;border-radius:8px;background:#fffdf7;padding:18px 14px}
body[data-tool="crushed-stone"] .aggregate-order h3{font:600 15px/1.4 system-ui,sans-serif;margin:0;color:#244633}
body[data-tool="crushed-stone"] .aggregate-order p{font:600 clamp(28px,3.2vw,42px)/1.15 Georgia,serif;letter-spacing:-1px;margin:12px 0 8px;color:#193e31;overflow-wrap:anywhere}
body[data-tool="crushed-stone"] .aggregate-order span{font-size:12px;color:#52614f;display:block;line-height:1.5}
body[data-tool="crushed-stone"] .aggregate-order-note,body[data-tool="crushed-stone"] .aggregate-material-help,body[data-tool="crushed-stone"] .aggregate-depth-help{font-size:13px;line-height:1.65;color:var(--muted);margin:8px 0 18px;overflow-wrap:anywhere}
body[data-tool="crushed-stone"] #matAdvanced{margin-top:18px}
body[data-tool="crushed-stone"] #matAdvanced .mat-check{margin:16px 0 0}
body[data-tool="crushed-stone"] #matDensityUnit{margin-top:0}
body[data-tool="crushed-stone"] .aggregate-figure{margin:20px 0;background:#f8f7ee;border:1px solid #d5ddce;border-radius:8px;overflow:hidden}
.aggregate-figure svg{display:block;width:100%;height:auto;max-height:310px}
.aggregate-surface{fill:url(#aggregateStone)}
[data-texture="sand"] .aggregate-surface{fill:url(#aggregateSand)}
.aggregate-measure{fill:none;stroke:#48644f;stroke-width:1.5;marker-start:url(#aggregateArrow);marker-end:url(#aggregateArrow)}
.aggregate-label{font:12px system-ui,sans-serif;fill:#294c37;text-anchor:middle}
body[data-tool="crushed-stone"] .aggregate-figure figcaption{padding:0 18px 15px;display:flex;justify-content:space-between;align-items:baseline;gap:10px;flex-wrap:wrap;font-size:12px;line-height:1.5;color:#53614e}
body[data-tool="crushed-stone"] .aggregate-figure strong{font-size:14px;color:#244633}
body[data-tool="crushed-stone"] .aggregate-precise dd{max-width:58%;overflow-wrap:anywhere}
body[data-tool="crushed-stone"] #matResult{align-self:start}
body[data-tool="crushed-stone"] form{align-self:start}
body[data-tool="crushed-stone"] #aggregateEquivalents{margin:18px 0;font-size:13px}
body[data-tool="crushed-stone"] #aggregateEquivalents summary{cursor:pointer;color:var(--brand);min-height:32px}
body[data-tool="crushed-stone"] .aggregate-area{min-width:0;margin:18px 0;padding:18px;border:1px solid #d5ddce;border-radius:8px}
body[data-tool="crushed-stone"] .aggregate-area legend{padding:0 7px;font-size:15px;font-weight:650;color:#244633}
body[data-tool="crushed-stone"] .aggregate-area .grid{margin-top:14px}
body[data-tool="crushed-stone"] #aggregateAddArea{display:block;width:100%;min-height:44px;border:1px dashed #829e88;border-radius:6px;background:#f6f8f1;color:var(--brand);font-weight:600;padding:10px}
body[data-tool="crushed-stone"] .aggregate-area [data-remove-area]{margin-top:14px;min-height:44px;padding:8px 12px;border:1px solid #cbd4c4;border-radius:5px;background:transparent;color:#74503b;font-size:13px}
body[data-tool="crushed-stone"] #aggregateAreaStatus{font-size:13px;color:var(--muted);margin:8px 0;line-height:1.5}
body[data-tool="crushed-stone"] #aggregateAreaBreakdown{margin:18px 0 22px;border-top:1px solid #c5d3bd;padding-top:18px}
body[data-tool="crushed-stone"] #aggregateAreaBreakdown h3{font-size:15px;margin:0 0 8px}
body[data-tool="crushed-stone"] #aggregateAreaRows{margin:0}
body[data-tool="crushed-stone"] #aggregateAreaRows>div{display:flex;justify-content:space-between;flex-wrap:wrap;gap:5px 12px;padding:10px 0;border-bottom:1px solid #d5ddce}
body[data-tool="crushed-stone"] #aggregateAreaRows dt{font-size:13px}
body[data-tool="crushed-stone"] #aggregateAreaRows dd{font-size:13px;overflow-wrap:anywhere}
body[data-tool="crushed-stone"] #aggregateViewControls{display:flex;gap:12px;align-items:center;margin-top:18px}
body[data-tool="crushed-stone"] #aggregateViewControls select{flex:1;min-width:0;width:auto}
body[data-tool="crushed-stone"] #aggregateViewControls label{flex:none}
body[data-tool="crushed-stone"] #matPrint{overflow-wrap:anywhere}
@media(max-width:600px){body[data-tool="crushed-stone"] .aggregate-area{padding:12px}body[data-tool="crushed-stone"] .aggregate-area .mat-dimension{grid-template-columns:minmax(0,1fr) 80px;gap:6px}body[data-tool="crushed-stone"] .aggregate-area .mat-dimension select{padding-left:7px;padding-right:4px}}
@media print{#aggregateAddArea,[data-remove-area],#aggregateAreaStatus,#aggregateViewControls{display:none!important}.aggregate-area{break-inside:avoid}}
/* Realistic illustrative samples with source-backed descriptions. */
body[data-tool="crushed-stone"] #aggregateSelectedMaterial{margin:20px 0 24px;overflow:hidden;background:#fffdf7;border:1px solid #d5ddce;border-radius:8px}
body[data-tool="crushed-stone"] #aggregateSelectedImage{display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:cover}
body[data-tool="crushed-stone"] .aggregate-selected-copy{padding:18px}
body[data-tool="crushed-stone"] .aggregate-eyebrow{text-transform:uppercase;letter-spacing:1.3px;font-size:11px;font-weight:650;color:#72563e;margin:0 0 8px;line-height:1.6}
body[data-tool="crushed-stone"] .aggregate-selected-copy h3{font:600 25px/1.2 Georgia,serif;color:#193e31;margin:0 0 12px}
body[data-tool="crushed-stone"] .aggregate-selected-copy>p:not(.aggregate-eyebrow){font-size:13px;color:#53614e;line-height:1.7;margin:10px 0}
body[data-tool="crushed-stone"] .aggregate-selected-copy .aggregate-image-note{font-size:11px!important;margin:14px 0 0!important}
body[data-tool="crushed-stone"] .aggregate-selected-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:14px;font-size:12px}
body[data-tool="crushed-stone"] #aggregateZoom,body[data-tool="crushed-stone"] #aggregateCloseImage{background:#f6f8f1;border:1px solid #b9c9b1;color:var(--brand);padding:10px 12px;min-height:44px;border-radius:5px;font-size:12px;cursor:pointer}
body[data-tool="crushed-stone"] .aggregate-gallery{grid-column:1/-1;margin:38px 0 8px;padding:30px 0 0;border-top:1px solid #d5ddce;min-width:0}
body[data-tool="crushed-stone"] .aggregate-guide-heading{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:16px}
body[data-tool="crushed-stone"] .aggregate-guide-heading h2{font:600 clamp(24px,3vw,32px)/1.2 Georgia,serif;letter-spacing:-.7px;color:#193e31;margin:0;max-width:23ch}
body[data-tool="crushed-stone"] .aggregate-guide-heading>p{font-size:14px;line-height:1.7;color:#53614e;max-width:36ch;margin:0}
body[data-tool="crushed-stone"] .aggregate-guide-note{font-size:12px;line-height:1.75;color:#53614e;max-width:110ch;margin:0 0 24px}
body[data-tool="crushed-stone"] .aggregate-material-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
body[data-tool="crushed-stone"] .aggregate-material-card{display:flex;flex-direction:column;min-width:0;overflow:hidden;border:1px solid #d5ddce;background:#fffdf7;border-radius:8px}
body[data-tool="crushed-stone"] .aggregate-material-card[data-selected="true"]{border-color:#22674f;box-shadow:0 0 0 2px #22674f}
body[data-tool="crushed-stone"] .aggregate-material-card>img{width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;display:block}
body[data-tool="crushed-stone"] .aggregate-card-copy{padding:20px;display:flex;flex-direction:column;flex:1;align-items:start}
body[data-tool="crushed-stone"] .aggregate-card-copy h3{font:600 23px/1.25 Georgia,serif;color:#193e31;margin:0 0 10px}
body[data-tool="crushed-stone"] .aggregate-card-copy p{font-size:13px;color:#53614e;line-height:1.75;margin:0 0 12px}
body[data-tool="crushed-stone"] .aggregate-card-copy a{font-size:12px;margin-top:auto;padding:4px 0 16px}
body[data-tool="crushed-stone"] .aggregate-card-copy button{width:100%;min-height:44px;padding:10px 12px;border:1px solid #b9c9b1;border-radius:5px;background:#f6f8f1;color:var(--brand);font-size:13px;cursor:pointer;line-height:1.5}
body[data-tool="crushed-stone"] .aggregate-card-copy button[aria-pressed="true"]{background:var(--brand);color:white;border-color:var(--brand)}
body[data-tool="crushed-stone"] #aggregateImageDialog{width:min(850px,calc(100vw - 32px));max-height:calc(100vh - 32px);padding:22px;border:1px solid #b9c9b1;border-radius:10px;background:#fffdf7;color:#193e31;overflow:auto}
#aggregateImageDialog::backdrop{background:#15231bcc}
body[data-tool="crushed-stone"] .aggregate-dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:16px}
body[data-tool="crushed-stone"] .aggregate-dialog-heading h2{font:600 24px/1.3 Georgia,serif;margin:0}
#aggregateDialogImage{display:block;width:100%;max-height:68vh;height:auto;object-fit:contain;border-radius:5px}
#aggregateImageDialog>p{font-size:12px;line-height:1.7;margin:14px 0 0}
@media(max-width:900px){body[data-tool="crushed-stone"] .aggregate-material-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){body[data-tool="crushed-stone"] .aggregate-material-grid{grid-template-columns:1fr}body[data-tool="crushed-stone"] .aggregate-guide-heading{display:block}body[data-tool="crushed-stone"] .aggregate-guide-heading>p{margin-top:12px}body[data-tool="crushed-stone"] .aggregate-card-copy{padding:18px}body[data-tool="crushed-stone"] .aggregate-dialog-heading{align-items:start}body[data-tool="crushed-stone"] #aggregateImageDialog{padding:14px}}
@media print{.aggregate-gallery,#aggregateZoom{display:none!important}#aggregateSelectedImage{max-height:170px;object-fit:cover}#aggregateSelectedMaterial{break-inside:avoid}}
@media(max-width:600px){body[data-tool="crushed-stone"] .aggregate-order{gap:8px}body[data-tool="crushed-stone"] .aggregate-order>div{padding:14px 10px}body[data-tool="crushed-stone"] .aggregate-order h3{font-size:14px}body[data-tool="crushed-stone"] .aggregate-precise>div{flex-direction:column;gap:4px}body[data-tool="crushed-stone"] .aggregate-precise dd{max-width:none;text-align:left}}
@media(max-width:600px){body[data-tool] .mat-dimension{grid-template-columns:minmax(0,1fr) 90px}body[data-tool] #field-matLength,body[data-tool] #field-matWidth,body[data-tool] #field-matHeight{min-width:0}body[data-tool] form .grid{grid-template-columns:1fr}body[data-tool] #matAllRows>div{align-items:flex-start;flex-direction:column;gap:4px}body[data-tool] #matAllRows dd{text-align:left}}
@media print{#matExample,#matReset,#matDownload{display:none!important}#matResult{break-inside:auto}#matAllRows>div{break-inside:avoid}body[data-tool] #matDetails{display:block}body[data-tool] .mat-dimension{grid-template-columns:minmax(0,1fr) 90px}body[data-tool] form .grid{grid-template-columns:1fr 1fr}}

/* Ordering, comparison and shared-footprint layers. */
body[data-tool="crushed-stone"] .aggregate-order{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center}
.aggregate-or{font-weight:700;color:#667064}
#aggregateLayers{margin-top:1.5rem;padding-top:1rem;border-top:1px solid #cbd2c4}
.aggregate-layer{margin:1rem 0;padding:1rem;border:1px solid #bbc8b5;border-radius:12px;min-width:0}
.aggregate-layer label{display:block;margin-top:.65rem}
.aggregate-layer input[type="checkbox"]{width:auto}
.aggregate-layer button{margin-top:1rem}
.aggregate-layer-density-note{font-size:.85rem;color:#52604e}
#aggregateLayerResults>section{padding:1rem;background:#edf1e8;border:1px solid #ced8c4;border-radius:12px;margin:1rem 0}
.aggregate-layer-quantity{font-size:1.35rem;font-weight:700}
#aggregateCompareDialog{width:min(900px,94vw);max-height:90vh;border:1px solid #b7c5ae;border-radius:16px;padding:1.25rem;overflow:auto}
#aggregateCompareDialog::backdrop{background:#182619b3}
.aggregate-compare-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1rem}
.aggregate-compare-grid img{width:100%;height:auto;aspect-ratio:1;object-fit:cover}
.aggregate-compare-grid select{width:100%;margin:.5rem 0 1rem}
#aggregateCopyStatus textarea{display:block;width:100%;min-height:180px}
@media(max-width:600px){#aggregateCompareDialog{padding:.75rem}.aggregate-compare-grid{gap:.5rem}.aggregate-compare-grid .aggregate-card-copy{padding:.6rem}.aggregate-compare-grid h3{font-size:1rem}.aggregate-compare-grid p{font-size:.85rem}}
@media print{#aggregateLayers button,#aggregateCompare,#aggregateCompareDialog,#aggregateCopy,#aggregateCopyStatus{display:none!important}}
body[data-tool="crushed-stone"] .ci-footer{flex-wrap:wrap;gap:12px}
