/* Shelf levels span the whole unit; bottle controls are individual and not carded. */
.dose-shelf{margin:16px 0 22px;min-width:0}
.dose-shelf-heading{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:5px 12px;margin-bottom:7px}
.dose-shelf-title{font:700 clamp(1.2rem,5vw,1.66rem)/1.12 Georgia,serif;color:var(--green,#314237);letter-spacing:-.025em}
.dose-shelf-count{font-size:.68rem;color:var(--quiet,#746c5e);font-weight:700;letter-spacing:.07em;white-space:nowrap}
.dose-shelf-grid{
 --shelf-height:clamp(104px,34vw,172px);--shelf-caption:55px;--shelf-pitch:calc(var(--shelf-height) + var(--shelf-caption));
 list-style:none;margin:0;padding:0 3px;min-width:0;border:1px solid #dfd4bd;border-radius:16px;overflow:hidden;
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:var(--shelf-pitch);gap:0;
 background:
  repeating-linear-gradient(to bottom,transparent 0 calc(var(--shelf-height) - 5px),#dbb782 calc(var(--shelf-height) - 5px) var(--shelf-height),#a67a52 var(--shelf-height) calc(var(--shelf-height) + 1px),#8e6445 calc(var(--shelf-height) + 1px) calc(var(--shelf-height) + 3px),#dfcbb0 calc(var(--shelf-height) + 3px) calc(var(--shelf-height) + 4px),#f7efe2 calc(var(--shelf-height) + 4px) calc(var(--shelf-pitch) - 1px),#ece1cf calc(var(--shelf-pitch) - 1px) var(--shelf-pitch)),
  repeating-linear-gradient(108deg,#f1e8d72e 0 5px,#f0e8d812 6px 14px,transparent 15px 23px),
  linear-gradient(100deg,#ede3cf,#f8f1e4 50%,#efe4d1);
 box-shadow:inset 0 2px 8px #5e452512,0 4px 11px #694f2a09;
}
.dose-shelf-slot{min-width:0;height:var(--shelf-pitch)}
.dose-shelf-button{
 width:100%;height:100%;min-width:0;border:0;border-radius:13px;padding:0 3px;background:none;color:#382f25;
 display:grid;grid-template-rows:var(--shelf-height) 31px 20px;justify-items:center;text-align:center;font:inherit;cursor:pointer;
}
.dose-shelf-button:focus-visible{outline:2px solid var(--rust,#984c37);outline-offset:-2px;position:relative;z-index:1}
.dose-shelf-art{width:min(100%,108px);height:var(--shelf-height);min-width:0;display:grid;align-items:end;transition:transform .18s ease-out;transform-origin:50% 95%}
.dose-bottle{width:100%;height:100%;display:block;overflow:visible}
.dose-shelf-button:hover .dose-shelf-art,.dose-shelf-button:focus-visible .dose-shelf-art{transform:translateY(-2px)}
.dose-shelf-button:active .dose-shelf-art{transform:scale(.975) translateY(-1px)}
.dose-shelf-name{
 width:100%;max-width:145px;align-self:end;min-width:0;font-size:.73rem;font-weight:770;line-height:1.11;
 padding:0 1px 1px;overflow-wrap:anywhere;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
}
.dose-shelf-meter{align-self:start;max-width:100%;display:flex;justify-content:center;align-items:baseline;gap:4px;white-space:nowrap;font-size:.66rem;font-variant-numeric:tabular-nums;font-weight:850;color:var(--green,#314237)}
.dose-shelf-volume{font-size:.62rem;font-weight:620;color:var(--quiet,#746c5e)}
.dose-shelf-empty{border:1px dashed #ddd0b8;border-radius:14px;color:var(--quiet,#746c5e);padding:14px 12px;margin-top:8px;font-size:.84rem}
@media(min-width:530px){.dose-shelf-grid{grid-template-columns:repeat(4,minmax(0,1fr));--shelf-caption:58px}.dose-shelf-name{font-size:.79rem}.dose-shelf-art{width:min(100%,115px)}}
@media(min-width:740px){.dose-shelf-grid{--shelf-height:182px}.dose-shelf-meter{font-size:.71rem}.dose-shelf-volume{font-size:.69rem}}
@media(prefers-reduced-motion:reduce){.dose-shelf-art{transition:none}}
.dose-shelf-art{position:relative;display:block}
.dose-shelf-art>.dose-bottle{position:absolute;inset:0;width:100%;height:100%;max-height:100%}
