/* Align related cards in three consistent rows without nested card padding. */
.workspace-grid{grid-template-columns:minmax(0,.9fr) minmax(0,1fr) minmax(0,1.2fr);gap:14px;align-items:stretch}
.hourly-stack,.line-stack,.deadline-stack{display:contents}
.hourly-stack>.card:nth-child(1){grid-column:1;grid-row:1}
.hourly-stack>.card:nth-child(2){grid-column:1;grid-row:2}
.hourly-stack>.card:nth-child(3){grid-column:1;grid-row:3}
.line-stack>.vat:nth-child(1){grid-column:2;grid-row:1}
.line-stack>.vat:nth-child(2){grid-column:2;grid-row:2}
.line-stack>.milk-requirements{grid-column:2;grid-row:3}
.deadline-stack>.card:nth-child(1){grid-column:3;grid-row:1}
.deadline-stack>.card:nth-child(2){grid-column:3;grid-row:2}
.deadline-stack>.card:nth-child(3){grid-column:3;grid-row:3}
.card,.vat{padding:15px;border-radius:12px;min-width:0}
.workspace-grid>.setup-stack{grid-column:1/-1;grid-row:4;gap:14px}
.bottom-bar{grid-row:5}
.rate-explanation{padding:10px 12px;border-top:1px solid var(--line);line-height:1.4;margin:0}
.setup-stack .card{align-self:start}
@media(max-width:940px){
 .workspace-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .hourly-stack,.line-stack,.deadline-stack{display:flex;flex-direction:column;gap:14px}
 .hourly-stack{grid-column:1;grid-row:1}.line-stack{grid-column:2;grid-row:1;padding:0;border:0;background:none;box-shadow:none}
 .deadline-stack{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .deadline-stack>.card:nth-child(n){grid-row:auto;grid-column:auto}.deadline-stack>.card:nth-child(3){grid-column:1/-1}
 .workspace-grid>.setup-stack{grid-row:3}.bottom-bar{grid-row:4}
}
@media(max-width:700px){
 .workspace-grid{display:flex;flex-direction:column;gap:14px}
 .hourly-stack,.line-stack,.deadline-stack,.workspace-grid>.setup-stack{display:flex;flex-direction:column;gap:14px}
 .workspace-grid .card,.workspace-grid .vat{width:100%}
}
