/* Compact bottle drawer; its height is reserved below the wall. */
html{scroll-padding-bottom:calc(var(--bottle-dock-height,60px) + 16px)}
body:has(.bottle-dock) main{padding-bottom:calc(var(--bottle-dock-height,60px) + 32px)}
.selected-bottle.bottle-dock{box-sizing:border-box;left:0;right:0;bottom:0;z-index:80;display:flex;align-items:center;gap:16px;padding:10px 24px calc(10px + env(safe-area-inset-bottom));border:0;border-top:2px solid #a87c40;background-color:#21150f;background-image:linear-gradient(90deg,#100b09e8,#27190dd1 45%,#100b09e8),repeating-linear-gradient(2deg,transparent 0 3px,#d49a5022 4px,transparent 5px 11px,#06040255 12px,transparent 14px 28px),repeating-linear-gradient(178deg,#50301c 0 2px,#2d1b12 3px 7px,#3b2417 8px 11px);box-shadow:0 -4px 18px #0008;color:#f5ebdf}
.bottle-dock [hidden]{display:none!important}
.selected-bottle.bottle-dock p,.selected-bottle.bottle-dock h2{margin:0;grid-area:auto}
.bottle-dock #dock-prompt{font:400 .9rem/1.5 system-ui,sans-serif;color:#d6c4ab;padding:8px 0}
.bottle-dock #selected-photo{width:42px;height:60px;object-fit:contain;flex:none;grid-area:auto;background:none;border:0}
.bottle-dock #dock-identity{flex:1;min-width:0}
.bottle-dock #selected-producer{font-size:.65rem;line-height:1.3;letter-spacing:.1em;color:#d8af6b}
.bottle-dock #selected-name{font:400 1rem/1.3 Georgia,serif;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#f5ebdf}
.bottle-dock #selected-meta{font-size:.7rem;line-height:1.5;color:#c7b7a2}
.bottle-dock #dock-actions{display:flex;flex:none;gap:8px;align-items:center}
.selected-bottle.bottle-dock button,.selected-bottle.bottle-dock a.button{grid-area:auto;box-sizing:border-box;margin:0;min-height:44px;padding:9px 12px;white-space:nowrap;font:400 .8rem/1.4 system-ui,sans-serif;text-decoration:none;border:1px solid #9b754b;border-radius:5px;background:linear-gradient(#33251be8,#21170ff2);color:#f5ebdf;text-align:center}
.selected-bottle.bottle-dock .gold-button{background:linear-gradient(#e5bf7f,#c69a57);color:#21150e}
.selected-bottle.bottle-dock #dock-toggle{flex:none;border-color:transparent;background:transparent;color:#d8af6b}
.bottle-dock button:hover,.bottle-dock a.button:hover{filter:brightness(1.2)}
.bottle-dock :focus-visible{outline:3px solid #f2c574;outline-offset:3px}
.bottle-dock #dock-notices{position:absolute;bottom:100%;right:16px;max-width:calc(100% - 32px);background:#21150f;border-radius:5px 5px 0 0}
.bottle-dock #dock-notices p:not([hidden]){padding:6px 12px;font-size:.75rem}
.bottle-dock:not(.is-expanded) #selected-producer,.bottle-dock:not(.is-expanded) #selected-meta{display:none}
@media(max-width:1050px){
 .selected-bottle.bottle-dock{flex-wrap:wrap;gap:6px 12px;padding:8px 16px calc(8px + env(safe-area-inset-bottom))}
 .bottle-dock #selected-photo{height:44px;width:30px}
 .bottle-dock #dock-actions{order:4;flex:1 0 100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
 .selected-bottle.bottle-dock #dock-actions>*{white-space:normal;display:flex;align-items:center;justify-content:center;padding:6px;font-size:.75rem}
 .bottle-dock #selected-name{font-size:.9rem}
 .bottle-dock #selected-producer{display:none}
 .selected-bottle.bottle-dock #dock-toggle{padding:8px 4px;font-size:.75rem}
}
@media(max-width:420px){.bottle-dock #dock-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.bottle-dock #selected-name{-webkit-line-clamp:2}}
@media print{.selected-bottle.bottle-dock{display:none}}
/* Clear legacy full-width action placement inside the new responsive row. */
.bottle-dock #dock-actions > #selected-artwork,.bottle-dock #dock-actions > #selected-profile{grid-area:auto;justify-self:stretch;width:auto}

/* Bottle action explanations open upward to stay inside the viewport. */
.bottle-dock #dock-actions > *{position:relative}
.bottle-dock .dock-action-label{font:inherit;color:inherit;margin:0;letter-spacing:inherit}
.bottle-dock .dock-action-description{position:absolute;bottom:100%;left:50%;transform:translateX(-50%);width:210px;padding:12px 14px;box-sizing:border-box;border:1px solid #a87c40;border-radius:5px;background:#24180f;color:#e8dac7;box-shadow:0 -4px 18px #0008;font:400 .8rem/1.5 system-ui,sans-serif;text-align:left;white-space:normal;visibility:hidden;opacity:0;transition:opacity .15s,visibility .15s;cursor:default}
.bottle-dock #dock-actions > *:hover .dock-action-description,.bottle-dock #dock-actions > *:focus-visible .dock-action-description{visibility:visible;opacity:1;transition-delay:.3s}
.bottle-dock #dock-actions > *:focus-visible .dock-action-description{transition-delay:0s}
@media(max-width:1050px){
 .selected-bottle.bottle-dock #dock-actions > *{flex-direction:column;gap:3px}
 .bottle-dock .dock-action-label{font-weight:600}
 .bottle-dock .dock-action-description{position:static;transform:none;width:auto;padding:0;border:0;background:none;box-shadow:none;text-align:center;font:400 .65rem/1.35 system-ui,sans-serif;color:inherit;visibility:visible;opacity:1;transition:none}
}
@media(prefers-reduced-motion:reduce){.bottle-dock .dock-action-description{transition:none}}
