:root{color-scheme:dark}body{margin:0;background:#080f14;color:#e7f2ed;font:14px/1.5 system-ui}*{box-sizing:border-box}a{color:#35ed88}button{font:600 13px system-ui;background:#163325;color:#dbffec;border:1px solid #367350;border-radius:5px;padding:10px 14px;cursor:pointer}button:hover{border-color:#35ed88}#store-stage{height:calc(100dvh - var(--xs-bar-h,46px));min-height:360px;position:relative;margin-top:0;overflow:hidden}canvas{width:100%;height:100%;display:block;touch-action:none}.store-caption{position:absolute;left:30px;top:20px;pointer-events:none;padding:18px 22px;background:#071015df;border:1px solid #284338;border-radius:7px;max-width:400px}.store-caption a,.store-caption button{pointer-events:auto}.store-caption h1{font-size:32px;letter-spacing:-.035em;margin:5px 0}.store-caption p{margin:4px 0;color:#a2b7ae}.store-caption .eyebrow{font:10px ui-monospace,monospace;letter-spacing:.15em;color:#35ed88}.store-caption div{display:flex;align-items:center;gap:18px;margin-top:15px}#store-status{position:absolute;bottom:16px;left:25px;right:25px;font:12px ui-monospace,monospace;background:#0a151fdf;padding:10px 15px;border:1px solid #264236;border-radius:4px;pointer-events:none}dialog{color:#e8f7ef;background:#0b1720;border:1px solid #2c5c43;border-radius:8px;max-width:760px;width:calc(100vw - 36px);max-height:85dvh;overflow:auto}dialog::backdrop{background:#0009}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.dialog-heading h2{margin:8px 0 15px;font-size:22px}#store-video{width:100%;max-height:52dvh;background:#000}#tracks{padding-left:22px}#tracks button{margin:5px 0;text-align:left;width:100%}#tracks button[aria-current=true]{border-color:#35ed88;background:#1b5035}#inventory-list{line-height:2}.embed .store-caption{left:12px;top:12px;padding:12px}.embed .store-caption h1{font-size:24px}.embed #store-status{left:12px;bottom:8px;font-size:10px}.embed body{padding-top:0!important}.embed #store-stage{margin-top:0;height:100dvh}.embed #topBar,.embed #xsOptions,.embed #xsAdvanced,.embed #xsExpert{display:none!important}@media(max-width:600px){.store-caption{left:12px;top:12px;padding:12px}.store-caption h1{font-size:25px}}
#foto-real{position:fixed;left:0;right:0;bottom:0;top:var(--xs-bar-h,46px);z-index:40;background:#05090c}#foto-real[hidden]{display:none}.embed #foto-real{top:0}
/* Contenido segmentado · Puerta Cam → carril → player virtual + MetaHuman */
#segmented-dialog{max-width:1180px}
.seg-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(220px,.8fr);gap:14px 18px}
.seg-grid h3{margin:0 0 8px;font-size:14px;color:#a2b7ae;font-weight:600}
.seg-stage{position:relative;aspect-ratio:16/9;background:#000;border:1px solid #284338;border-radius:6px;overflow:hidden}
.seg-stage video,.seg-stage canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.seg-stage canvas[hidden],.seg-stage video[hidden]{display:none!important}
#seg-overlay{pointer-events:none}
.seg-sources{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.seg-sources button{padding:7px 10px;font-size:12px}
.seg-sources button[aria-pressed=true]{background:#1b5035;border-color:#35ed88}
#seg-cam-status,#seg-mh-status,#seg-note{font:12px ui-monospace,monospace;color:#b3c7bc;margin:6px 0}
.seg-links{font-size:12px;margin:4px 0}
.seg-state .seg-lane{display:flex;align-items:center;gap:10px;font-size:26px;margin:4px 0 10px}
.seg-state .seg-lane strong{font-size:22px;color:#35ed88}
.seg-state dl{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;margin:0;font-size:12px}
.seg-state dt{color:#7f968b}.seg-state dd{margin:0;color:#e7f2ed;word-break:break-word}
.seg-screens{display:grid;grid-template-columns:3fr 1fr;gap:10px}
.seg-screens figure{margin:0;background:#000;border:1px solid #284338;border-radius:6px;overflow:hidden}
.seg-screens figure.landscape{aspect-ratio:16/9}.seg-screens figure.portrait{aspect-ratio:9/16;max-height:260px}
.seg-screens video,.seg-screens img{width:100%;height:100%;object-fit:contain;display:block}
.seg-screens figcaption{font:11px ui-monospace,monospace;color:#b3c7bc;padding:5px 8px;background:#071015}
.seg-mh-stage{aspect-ratio:9/16;max-height:320px;background:#000;border:1px solid #284338;border-radius:6px;overflow:hidden}
#seg-mh{width:100%;height:100%;border:0;display:block}
.seg-caption{font-size:13px;color:#dbffec;min-height:1.4em}
.seg-voice{font-size:12px;color:#b3c7bc}
@media(max-width:820px){.seg-grid{grid-template-columns:1fr}.seg-screens{grid-template-columns:2fr 1fr}}

/* La tarjeta gana un tercer botón (Contenido segmentado): ancho y salto de línea sin romper el embed */
.store-caption{max-width:470px}.store-caption div{flex-wrap:wrap;gap:10px 14px}
