#dosed-background[hidden],#dosed-controls[hidden]{display:none!important}
#dosed-background{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:0;background:#111}
.kaleido-stage{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}
.kaleido-tile{position:absolute;left:0;top:50%;width:50%;height:100%;transform-origin:right top;overflow:hidden}
.kaleido-image{position:relative;left:100%;width:100%;height:100%;transform-origin:left top;background-size:auto;background-repeat:repeat}
html[data-register=dosed] .landing-page{background:#080a12!important;padding-bottom:110px}
.landing-page .well{position:relative;z-index:1}
.landing-page .archive-header{position:relative;z-index:20}
#dosed-controls{position:fixed;bottom:0;left:0;right:0;z-index:50;display:grid;grid-template-columns:180px minmax(180px,1fr) auto;gap:8px 20px;align-items:center;padding:12px max(20px,calc((100vw - 1280px)/2));background:rgba(9,11,19,.96);border-top:1px solid #6c6d7a;color:#eee;font:12px/1.4 system-ui,sans-serif}
#dosed-controls label{display:flex;align-items:center;gap:10px}#dosed-controls input{min-width:0;width:100%;accent-color:#df8aff}#dosed-controls input[type=url]{background:#171925;border:1px solid #666976;color:#eee;padding:7px}#dosed-controls button{padding:8px 12px;background:#232435;border:1px solid #aaa2b5;color:white;cursor:pointer}#dosed-controls .kaleido-notes{grid-column:1/-1;display:flex;justify-content:space-between;gap:12px}#dosed-controls a{color:#dbc2f6}
@media(max-width:600px){#dosed-controls{grid-template-columns:1fr auto;padding:10px 16px;gap:7px 12px}#dosed-controls .kaleido-source{grid-column:1/-1;grid-row:2}#dosed-controls .kaleido-notes{font-size:10px}html[data-register=dosed] .landing-page{padding-bottom:160px}}
/* The automated presentation has no visible controller. */
html[data-register=dosed] .landing-page{padding-bottom:0}
/* A small corner toggle reveals the optional slide-up controls. */
#dosed-control-drawer[hidden]{display:none!important}
#dosed-control-drawer{position:fixed;bottom:18px;right:18px;z-index:1000;width:max-content;max-width:calc(100vw - 36px);color:#fff;font:16px/1.5 system-ui,sans-serif}
#dosed-control-drawer>summary{display:block;list-style:none;cursor:pointer;width:max-content;margin-left:auto;padding:9px 16px;border:1px solid rgba(255,255,255,.35);border-radius:9px;background:rgba(12,10,18,.85);backdrop-filter:blur(10px)}
#dosed-control-drawer>summary::-webkit-details-marker{display:none}
#dosed-control-drawer>summary:focus-visible{outline:2px solid #fff;outline-offset:4px}
#dosed-control-drawer #dosed-controls{position:static;box-sizing:border-box;width:min(580px,calc(100vw - 36px));max-height:70dvh;overflow:auto;margin-top:10px;padding:20px;grid-template-columns:minmax(0,1fr) auto;gap:16px;border:1px solid rgba(255,255,255,.3);border-radius:12px;background:rgba(12,10,18,.88);backdrop-filter:blur(15px);font-size:16px}
#dosed-control-drawer #dosed-controls .kaleido-source{grid-column:1/-1;grid-row:auto}
#dosed-control-drawer #dosed-controls .kaleido-notes{font-size:12px;flex-wrap:wrap}
#dosed-control-drawer[open] #dosed-controls{animation:kaleido-controls-reveal .22s ease-out}
@keyframes kaleido-controls-reveal{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){#dosed-control-drawer[open] #dosed-controls{animation:none}}
@media(max-width:600px){#dosed-control-drawer{bottom:12px;right:12px;max-width:calc(100vw - 24px)}#dosed-control-drawer #dosed-controls{width:calc(100vw - 24px);padding:16px}}
#dosed-control-drawer #dosed-controls{position:absolute;bottom:calc(100% + 10px);right:0;margin-top:0}
#dosed-control-drawer #dosed-controls{left:auto;top:auto}
#dosed-control-drawer #dosed-controls{padding-top:48px}
#dosed-controls [data-close-controls]{position:absolute;top:8px;right:8px;width:36px;height:36px;padding:0;border:0;background:transparent;font-size:30px;line-height:1;color:#fff}
#dosed-controls .kaleido-upload{grid-column:1/-1;display:flex;flex-direction:column;align-items:flex-start;gap:8px}
#dosed-controls .kaleido-upload input{max-width:100%;font:inherit}
#dosed-controls .local-image-note{font-size:12px;color:#ddd}

/* Local recovery preview: pin controls and companion to opposite corners. */
#dosed-control-drawer{position:fixed!important;left:20px!important;right:auto!important;bottom:20px!important;z-index:1000}
#dosed-control-drawer>summary{margin-left:0}
#dosed-control-drawer #dosed-controls{left:0;right:auto}
#archive-chat-launch{position:fixed!important;left:auto!important;right:20px!important;bottom:20px!important;z-index:1000}
