/* Same measurements and liquid treatment as the calculator result. */
.sp-card{position:relative;isolation:isolate;display:flex;flex:none;flex-direction:column;gap:8px;min-width:0;padding:12px 16px;border-radius:15px;overflow:hidden;background:var(--block-fill,#0aa31c);color:var(--block-ink,#f1eee5);font-family:SteveDashboardNunito,system-ui,sans-serif;container-type:inline-size}
.sp-card *{box-sizing:border-box}.sp-card>canvas{position:absolute;inset:0;width:100%;height:100%;z-index:-1;pointer-events:none}
.sp-card .sp-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;min-width:0}
.sp-card .sp-name{flex:1 1 auto;min-width:0;margin:0;font-size:var(--ss-type-heading,20px);font-weight:800;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;outline:none;color:inherit}
.sp-card .sp-dates{flex:0 1 auto;min-width:0;max-width:62%;font-size:var(--ss-type-small,14px);font-weight:600;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:right;color:inherit}
.sp-metrics{display:flex;align-items:baseline;justify-content:space-between;gap:clamp(2px,1cqi,8px);--sp-size:clamp(14px,calc(100cqi / var(--sp-width,8.5)),32px)}
.sp-metrics strong{display:inline-flex;align-items:baseline;gap:.125em;flex:none;min-width:0;font-size:var(--sp-size);font-weight:650;line-height:1.1;letter-spacing:-.5px;white-space:nowrap;font-variant-numeric:tabular-nums}
.sp-metrics small{font-size:max(var(--ss-type-small,14px),.5em);font-weight:650;letter-spacing:0;color:inherit}
.sp-card .sp-caption,.sp-card .sp-dates{color:inherit}
.sp-card[data-injection=true] .sp-metrics::before,.sp-card[data-injection=true] .sp-metrics::after{content:"";width:1px;height:clamp(16px,calc(var(--sp-size)*.8),26px);flex:none;align-self:center;background:var(--block-rule,rgba(255,255,255,.36))}
.sp-metrics::before{order:1}.sp-metrics [data-sp=mg]{order:2}.sp-metrics::after{order:3}.sp-metrics [data-sp=ml]{order:4}
.sp-syringe{display:block;width:100%;height:54px}.sp-caption{display:flex;justify-content:space-between;gap:8px;font-size:var(--ss-type-small,14px);font-weight:500;line-height:1.25}
.sp-card .sp-basis,.sp-card .sp-amount{margin:0;font-size:var(--ss-type-small,14px);line-height:1.3}.sp-card [hidden]{display:none!important}
@media(max-width:340px){.sp-card{padding-inline:12px}}
@container (max-width:320px){.sp-card .sp-dates{font-size:14px}}

/* One responsive result block for Add to Schedule and the calendar editor.
   Reserve the rest of the phone for controls; grow only when height allows it. */
:is(.calculator-schedule,.ss-calendar-editor){--sp-panel-height:min(860px,calc(var(--visible-height,100dvh) - 24px));--sp-block-height:clamp(144px,calc(var(--sp-panel-height) - 620px),244px);--sp-block-pad:clamp(8px,calc((var(--sp-block-height) - 160px)/7 + 8px),20px);--sp-block-gap:clamp(3px,calc((var(--sp-block-height) - 160px)/16.8 + 3px),8px);--sp-block-syringe:clamp(40px,calc((var(--sp-block-height) - 160px)/6 + 40px),54px)}
.sp-card{height:var(--sp-block-height);min-height:var(--sp-block-height);justify-content:space-between;padding-block:var(--sp-block-pad);gap:var(--sp-block-gap)}
.sp-card .sp-syringe{height:var(--sp-block-syringe);flex:none}
.sp-metrics,.sp-metrics strong,.sp-gauge,.sp-syringe{direction:ltr;unicode-bidi:isolate}
.sp-caption>span{unicode-bidi:isolate}
@media(max-width:560px){:is(.calculator-schedule,.ss-calendar-editor){--sp-panel-height:var(--visible-height,100dvh)}}
