.trell-viewer{--tv-bg:#101a21;--tv-console:#121f28;--tv-line:#35474f;--tv-ink:#f3f6f5;--tv-muted:#b5c4c6;--tv-accent:#aee7dc;margin:0;min-width:0;isolation:isolate;background:var(--tv-console);color:var(--tv-ink);border:1px solid var(--tv-line);border-radius:10px;overflow:hidden}
.trell-viewer [hidden]{display:none!important}
.tv-viewport{position:relative;width:100%;aspect-ratio:16/9;min-height:12.5rem;overflow:hidden;background:var(--tv-bg)}
.tv-poster,.tv-canvas{position:absolute;inset:0;display:block;width:100%;height:100%;border:0;margin:0}
.tv-poster{object-fit:contain}
.tv-canvas{touch-action:none;cursor:grab;user-select:none}
.tv-canvas:active{cursor:grabbing}
.tv-canvas:focus-visible{outline:2px solid var(--tv-accent);outline-offset:-5px}
.tv-launch{position:absolute;bottom:clamp(.75rem,2.3vw,1.45rem);left:clamp(.75rem,2.3vw,1.45rem)}
.trell-viewer button,.trell-viewer select{color:var(--tv-ink);font:inherit;line-height:1.2;cursor:pointer}
.trell-viewer button:focus-visible,.trell-viewer select:focus-visible{outline:2px solid var(--tv-accent);outline-offset:2px}
.trell-viewer .tv-start{display:inline-flex;align-items:center;gap:.7rem;padding:.62rem .96rem .62rem .65rem;min-height:44px;border:1px solid #b3cecb;border-radius:6px;color:#f3fffc;background:#10242ce8;box-shadow:0 3px 14px #08111765;font-size:.94rem;font-weight:650}
.tv-start-mark{padding:.23rem .32rem;border:1px solid #a5dcd1;border-radius:4px;color:#b9efe3;font-size:.75rem;font-weight:700;line-height:1}
.trell-viewer .tv-start:hover,.trell-viewer .tv-start:focus-visible{background:#203d44;border-color:var(--tv-accent)}
.trell-viewer .tv-start:disabled{cursor:progress;opacity:.84}
.tv-console{background:var(--tv-console);padding:.86rem clamp(.8rem,2.1vw,1.4rem);border-top:1px solid var(--tv-line);font-family:inherit;font-size:1rem}
.tv-console p{color:var(--tv-muted);margin:0;max-width:unset;line-height:1.45}
.tv-console .tv-caption{color:var(--tv-ink);font-size:.94rem}
.tv-controls{display:flex;align-items:center;gap:.56rem;flex-wrap:wrap;margin:0 0 .72rem}
.tv-select{display:flex;gap:.5rem;align-items:center;font-size:.88rem;font-weight:550;color:var(--tv-muted)}
.tv-select select,.tv-controls button{box-sizing:border-box;border:1px solid var(--tv-line);border-radius:5px;background-color:#172b34;font-size:.9rem!important;font-weight:520;min-height:40px;padding:.49rem .65rem}
.tv-select select{color-scheme:dark;appearance:none;padding-right:1.85rem;background-image:linear-gradient(45deg,transparent 50%,var(--tv-accent) 50%),linear-gradient(135deg,var(--tv-accent) 50%,transparent 50%);background-repeat:no-repeat;background-position:calc(100% - 13px) 52%,calc(100% - 9px) 52%;background-size:4px 4px}
.tv-controls button:hover,.tv-controls select:hover,.tv-controls button[aria-pressed=true]{background-color:#29414a;border-color:#719e9d}
.tv-zoom{display:flex;align-items:stretch}
.tv-zoom button{min-width:39px;font-size:1.08rem!important;line-height:1}
.tv-zoom button:first-child{border-radius:5px 0 0 5px}
.tv-zoom button:last-child{border-radius:0 5px 5px 0;border-left-width:0}
.tv-console .tv-help{font-size:.85rem;margin-top:.27rem}
.tv-console .tv-status:empty{display:none}
.tv-console .tv-status{font-size:.85rem;color:var(--tv-accent);margin-top:.31rem}
@media(max-width:600px){.tv-select select,.tv-controls button{min-height:44px}.tv-controls{gap:.43rem}.tv-zoom button{min-width:38px}.tv-console{padding:.7rem .85rem}.tv-console .tv-caption{font-size:.94rem}}
@media print{.tv-canvas,.tv-launch,.tv-controls,.tv-help,.tv-status{display:none!important}.trell-viewer .tv-poster[hidden]{display:block!important}.trell-viewer{break-inside:avoid}}
