/* Video UI uses existing theme variables and no external assets. */
.video-workspace{display:grid;grid-template-columns:minmax(270px,.9fr) minmax(0,1.3fr);gap:20px;align-items:start}.video-column{min-width:0;display:grid;gap:20px}.video-page{min-width:0;max-width:100%}.video-page h2,.video-page h3{overflow-wrap:anywhere}.video-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.video-actions,.video-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.video-tabs [aria-selected=true]{font-weight:700;border-color:var(--accent,#666)}.video-page label{display:block;margin:12px 0 5px}.video-page label.inline-check{display:flex;align-items:center;gap:8px}.video-page input[type=checkbox]{width:auto}.video-page select,.video-page textarea,.video-page input:not([type=checkbox]):not([type=hidden]){max-width:100%;box-sizing:border-box;width:100%;min-width:0}.video-page fieldset{border:0;padding:0;margin:0;min-width:0}.video-page pre{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;max-height:420px;overflow:auto;padding:12px;border:1px solid var(--border, #8884);border-radius:8px;font-size:12px;line-height:1.6;min-height:44px;max-width:100%;box-sizing:border-box}.video-metadata{display:grid;grid-template-columns:minmax(110px,.6fr) minmax(0,1fr);gap:8px 12px;font-size:13px}.video-metadata dt{font-weight:600}.video-metadata dd{margin:0;overflow-wrap:anywhere;min-width:0}.video-price{border:1px solid var(--border,#8884);padding:14px;border-radius:12px;margin-top:16px}.video-history{display:grid;gap:8px}.video-history button{text-align:left;white-space:normal;overflow-wrap:anywhere;line-height:1.5}.video-filter{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.video-filter label{flex:1 1 160px}.video-page [hidden]{display:none!important}.video-page .table-wrap{overflow-x:auto}.video-page small{display:block;overflow-wrap:anywhere}.playground-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}.playground-tabs a{display:inline-flex;padding:10px 14px;border:1px solid var(--border,#8884);border-radius:8px;text-decoration:none}.playground-tabs .active{font-weight:700}.video-page button:disabled{cursor:not-allowed;opacity:.55}@media(max-width:900px){.video-workspace{grid-template-columns:minmax(0,1fr)}.video-metadata{grid-template-columns:110px minmax(0,1fr)}}@media(max-width:440px){.video-metadata{grid-template-columns:minmax(0,1fr)}.video-metadata dd{margin-bottom:7px}.video-tabs .btn,.video-actions .btn{flex:1 1 auto;white-space:normal}}

#videoQuote { white-space: pre-line; }

.video-options{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.video-options>div{min-width:0}.video-player{display:block;width:100%;max-height:70vh;border-radius:var(--radius,12px);margin:1rem 0;background:#090b0f}.video-player[hidden]{display:none}.video-page fieldset{min-width:0}.video-page code,.video-page dd{overflow-wrap:anywhere}.video-admin-tabs{display:flex;flex-wrap:wrap;gap:.5rem}.video-admin-raw{white-space:pre-wrap;overflow-wrap:anywhere;max-height:26rem;overflow:auto}@media(max-width:560px){.video-options{grid-template-columns:1fr}.video-metadata{grid-template-columns:1fr!important}}

.video-contract-example { max-height: 32rem; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Player remains in the result column in both orientations; preserve source ratio. */
.video-page .video-player { box-sizing: border-box; width: 100%; height: auto; max-width: 100%; max-height: min(56vh, 32rem); object-fit: contain; }
.video-history-item.btn { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .35rem .75rem; width: 100%; max-width: 100%; padding: .8rem 1rem; box-sizing: border-box; text-align: left; white-space: normal; }
.video-history-title { min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.video-history-status { min-width: 0; overflow-wrap: anywhere; font-size: .85em; }
.video-history-id { grid-column: 1 / -1; min-width: 0; font-size: .8em; opacity: .8; overflow-wrap: anywhere; }
@media (max-width: 440px) { .video-history-item.btn { grid-template-columns: minmax(0,1fr); } .video-page .video-player { max-height: 50vh; } }

/* User-wide history is independent of the submission key. */
.media-key-history-item{display:grid;width:100%;min-width:0;gap:.25rem;text-align:left;white-space:normal;overflow-wrap:anywhere;margin-block:.35rem}
.media-key-history-item>span{min-width:0;max-width:100%;overflow-wrap:anywhere}
.media-key-history-item>span:first-child{font-weight:600}
.media-key-history-item>span:last-child{font-size:.85em}

.video-reference-previews{display:flex;flex-wrap:wrap;gap:.5rem}.video-reference-previews img{width:96px;height:96px;object-fit:contain;border-radius:.4rem}
