/* Histórico: conserva el visor claro, el encaje y la publicidad existentes. */
.webcam-history-modes{display:flex;gap:3px;padding:3px;width:max-content;max-width:100%;border:1px solid #dce6ed;background:#edf3f7;border-radius:10px;margin-top:5px}
.webcam-history-modes button{min-height:34px;padding:5px 13px;border:0;border-radius:7px;background:transparent;color:#4a687c;font:inherit;font-size:12px;font-weight:600;cursor:pointer}
.webcam-history-modes button[aria-pressed=true]{background:#193f57;color:#fff}
.webcam-history{flex:1 0 100%;min-width:0;padding:12px 0 5px;color:#294c61;font-size:12px}
.webcam-history[hidden],.webcam-history-message[hidden],.webcam-history-stamp[hidden]{display:none}
.webcam-history-heading,.webcam-history-playback{display:flex;align-items:center;justify-content:space-between;gap:8px 14px;flex-wrap:wrap}
.webcam-history-heading label{display:flex;gap:10px;align-items:baseline;flex-wrap:wrap}
.webcam-history-heading strong{font-size:21px;font-variant-numeric:tabular-nums;letter-spacing:-.04em}
.webcam-history-heading>span,.webcam-history-axis,.webcam-history-position,.webcam-history-note{color:#5d7789;font-size:11px}
.webcam-history input[type=range]{width:100%;height:28px;margin:3px 0 0;accent-color:#24617f;cursor:ew-resize}
.webcam-history-axis{display:flex;justify-content:space-between;gap:12px;margin-bottom:12px;font-variant-numeric:tabular-nums}
.webcam-history-playback{justify-content:flex-start;gap:8px}
.webcam-history-playback button{min-height:36px;padding:6px 12px;border:1px solid #dce6ed;border-radius:7px;background:#fff;color:#315d75;font:inherit;font-size:12px;cursor:pointer}
.webcam-history-playback button[data-action=play]{background:#193f57;color:white;border-color:#193f57;min-width:165px}
.webcam-history-playback button:disabled{opacity:.45;cursor:default}
.webcam-history-playback label{display:flex;align-items:center;gap:7px;margin-left:4px;font-size:11px}
.webcam-history-playback select{max-width:110px;padding:7px;border:1px solid #dce6ed;border-radius:7px;background:white;color:#315d75;font:inherit;font-size:12px}
.webcam-history-position{margin-left:auto;font-variant-numeric:tabular-nums}
.webcam-history-note{margin:8px 0 0;line-height:1.5}
.webcam-history-message{position:absolute;inset:30% 15%;display:grid;place-items:center;margin:0;text-align:center;color:#3b6179;font-size:14px;pointer-events:none}
.webcam-history-stamp{position:absolute;left:12px;top:12px;padding:5px 9px;border:1px solid #dce6ed;border-radius:7px;background:#fffffff0;color:#31566d;font-size:11px;font-variant-numeric:tabular-nums;pointer-events:none}
.webcam-viewer.is-history #webcam-viewer-auto,.webcam-viewer.is-history #webcam-auto-progress{display:none}
.webcam-viewer.is-history[open]{grid-template-rows:auto minmax(clamp(260px,45dvh,580px),1fr) auto auto auto}
.webcam-viewer.is-history.no-thumbnails[open]{grid-template-rows:auto minmax(clamp(260px,45dvh,580px),1fr) auto auto}
.image-screen.is-screen-expanded .webcam-history{padding-top:2px}.image-screen.is-screen-expanded .webcam-history-note{display:none}
.image-screen.is-screen-expanded .webcam-history-stamp{top:auto;bottom:200px}
@media(max-width:700px){.webcam-history-modes button{min-height:38px}.webcam-history-heading{gap:3px}.webcam-history-heading label{gap:6px}.webcam-history-heading>span{width:100%}.webcam-history-position{margin-left:0;width:100%}.webcam-history-playback button{min-height:40px;padding-inline:10px}.webcam-history-playback label{margin-left:0}.webcam-history-playback select{font-size:16px;padding:5px}.webcam-history-modes{margin-top:7px}.webcam-history-stamp{top:8px;left:8px;font-size:10px}.image-screen.is-screen-expanded .webcam-history{max-height:200px;overflow:auto}.image-screen.is-screen-expanded .webcam-history-heading>span,.image-screen.is-screen-expanded .webcam-history-position{display:none}.image-screen.is-screen-expanded .webcam-history-stamp{bottom:240px}}
.image-screen.is-screen-clean .webcam-history-stamp,.image-screen.is-screen-clean .webcam-history-message{visibility:hidden}
.webcam-history{order:-1}
.webcam-viewer.is-history .webcam-viewer-thumbnails{min-height:110px}
.webcam-viewer.is-history .webcam-viewer-thumbnail img{height:64px;aspect-ratio:auto}
@media(max-width:700px){
 .webcam-viewer.is-history[open]{grid-template-rows:auto auto auto auto auto;align-content:start}
 .webcam-viewer.is-history.no-thumbnails[open]{grid-template-rows:auto auto auto auto}
 .webcam-viewer.is-history .webcam-viewer-thumbnails{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));min-height:0;overflow:visible}
 .webcam-viewer.is-history .webcam-viewer-thumbnail{min-width:0}
 .webcam-viewer.is-history .webcam-viewer-thumbnail img{height:58px}
}
