.shutter-stages{position:absolute;z-index:5;left:50%;bottom:max(12px,env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(3,1fr);width:min(380px,86%);padding-top:20px;transform:translateX(-50%);touch-action:manipulation;opacity:1;visibility:visible;transition:none}
/* A native range replaces the decorative rule. Its 32px hit area ends
   where the stage buttons begin; only a 1px track and 8px thumb are visible. */
#shutter-progress{position:absolute;z-index:1;top:-12px;left:0;width:100%;height:32px;margin:0;padding:0;border:0;border-radius:0;appearance:none;-webkit-appearance:none;background:transparent;cursor:grab;touch-action:none;-webkit-tap-highlight-color:transparent}
#shutter-progress::-webkit-slider-runnable-track{height:1px;border:0;background:linear-gradient(to right,rgba(138,53,41,.65) 0 calc(clamp(0,var(--progress,0),1) * 100%),#DED9D3 calc(clamp(0,var(--progress,0),1) * 100%) 100%)}
#shutter-progress::-moz-range-track{height:1px;border:0;background:#DED9D3}
#shutter-progress::-moz-range-progress{height:1px;background:rgba(138,53,41,.65)}
#shutter-progress::-webkit-slider-thumb{width:8px;height:8px;margin-top:-3.5px;border:0;border-radius:50%;appearance:none;-webkit-appearance:none;background:#8A3529;box-shadow:none;cursor:grab}
#shutter-progress::-moz-range-thumb{width:8px;height:8px;border:0;border-radius:50%;background:#8A3529;box-shadow:none;cursor:grab}
#shutter-progress:active{cursor:grabbing}
#shutter-progress:active::-webkit-slider-thumb{cursor:grabbing}
#shutter-progress:active::-moz-range-thumb{cursor:grabbing}
#shutter-progress:focus-visible{outline:1px solid #4E8577;outline-offset:3px}
.shutter-stages button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;min-width:0;min-height:40px;margin:0;padding:4px 6px;border:0;border-radius:0;background:transparent;color:#888681;font-family:ArchiveSans,var(--font-body,sans-serif);cursor:pointer;-webkit-tap-highlight-color:transparent}
.shutter-stages button:first-of-type{align-items:flex-start;padding-left:0}
.shutter-stages button:last-of-type{align-items:flex-end;padding-right:0}
.shutter-stage-number{font-size:10px;font-weight:400;line-height:1.3;letter-spacing:.06em;font-variant-numeric:tabular-nums}
.shutter-stage-label{font-size:9px;font-weight:400;line-height:1.3;letter-spacing:.01em;white-space:nowrap}
.shutter-stages button:hover,.shutter-stages button[aria-current="step"],.shutter-stages button[aria-pressed="true"],.shutter-stages button.is-active{color:#55595D}
.shutter-stages button[aria-current="step"] .shutter-stage-number,.shutter-stages button[aria-pressed="true"] .shutter-stage-number,.shutter-stages button.is-active .shutter-stage-number{color:#8A3529}
.shutter-stages button:focus-visible{outline:1px solid #4E8577;outline-offset:3px}

/* The single native red thumb owns input. The hint follows its current value. */
.shutter-stages[hidden],body[data-hosted="true"] .archive .shutter-stages{display:none}
.shutter-drag-hint{position:absolute;z-index:2;top:-12px;left:calc(4px + (100% - 8px) * clamp(0,var(--progress,0),1));width:14px;height:7px;transform:translateX(-50%);color:#8A3529;pointer-events:none;user-select:none}
.shutter-drag-hint svg{display:block;width:14px;height:7px;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.shutter-drag-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:649px){.shutter-stages{width:min(380px,86%);bottom:max(14px,env(safe-area-inset-bottom))}.shutter-stages button{min-height:44px}}
@media(max-height:560px) and (min-width:650px){.shutter-stages{bottom:max(3px,env(safe-area-inset-bottom));padding-top:20px}.shutter-stages button{min-height:36px}}
