:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:#eeedf4;background:#101014;color-scheme:dark;font-synthesis:none}*{box-sizing:border-box}body{margin:0}.topbar{height:84px;border-bottom:1px solid #29282f;display:flex;align-items:center;justify-content:space-between;padding:0 5vw;background:#141418}.brand{display:flex;align-items:center;gap:8px;color:inherit;text-decoration:none;font-size:21px;letter-spacing:-.6px}.brand strong{font-weight:400;color:#a6a3af}.logo{display:grid;place-items:center;background:#eea36a;color:#21170f;width:35px;height:35px;font-size:24px;font-weight:800;border-radius:10px;margin-right:6px}.badge{font-size:12px;color:#bdb9c6;display:flex;align-items:center;gap:9px}.badge i{width:7px;height:7px;background:#91c6a2;border-radius:50%}main{max-width:1440px;margin:auto;padding:55px 5vw 28px}.eyebrow{font-size:10px;letter-spacing:2.3px;font-weight:700;color:#d29f79;margin-bottom:14px}.heading{display:flex;justify-content:space-between;align-items:center;gap:20px}h1{font-size:clamp(30px,4vw,46px);letter-spacing:-1.8px;margin:0;font-weight:650}h1 span{color:#eea36a}.heading p{color:#a5a0b0;font-size:14px;line-height:1.7;margin:12px 0 0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}.secondary{border:1px solid #39363f;background:#1c1b22;color:#e7e3ed;padding:12px 17px;border-radius:8px;white-space:nowrap;font-size:13px}.secondary:hover{background:#292630}.stats{display:grid;grid-template-columns:1fr 1fr 1.2fr;gap:16px;margin:32px 0}.stats>div{padding:22px 24px;border:1px solid #302d37;border-radius:12px;background:linear-gradient(125deg,#1c1b22,#18171d)}.stats>div>span{font-size:12px;color:#a9a4b2}.stats strong{display:block;font-size:29px;font-weight:550;letter-spacing:-.8px;margin-top:9px}.stats strong.protected{font-size:21px;color:#dcb18f;margin-top:15px}.protected span{float:right;color:#a77754}.library{border:1px solid #302d37;background:#17161c;border-radius:12px;overflow:hidden}.toolbar{display:flex;gap:16px;padding:23px;border-bottom:1px solid #302d37;align-items:end}.toolbar label{display:flex;flex-direction:column;gap:9px;color:#a9a4b2;font-size:11px}.search{flex:1}input,select{border:1px solid #39353f;background:#111015;color:#e8e3ed;border-radius:7px;padding:12px;font-size:13px;width:100%}input::placeholder{color:#777280}select{min-width:158px}:focus-visible{outline:2px solid #efa569;outline-offset:3px}.list-caption{display:flex;align-items:center;justify-content:space-between;padding:20px 24px 5px}.list-caption h2{font-size:14px;margin:0;font-weight:550}.list-caption>span{color:#938c9e;font-size:12px}#status{font-size:14px;color:#b2aaba;padding:0 24px;line-height:1.6}#status:empty{display:none}.video{display:grid;grid-template-columns:44px minmax(0,1fr) auto;column-gap:16px;row-gap:10px;padding:23px 24px;border-bottom:1px solid #29262f;align-items:center}.video:last-child{border-bottom:0}.video:hover{background:#1c1a22}.file-icon{grid-row:span 2;background:#2c241f;border:1px solid #493329;color:#e3a578;width:44px;height:48px;border-radius:8px;display:grid;place-items:center;font-size:28px}.filename{min-width:0}.filename h3{font-size:14px;font-weight:500;margin:0;overflow-wrap:anywhere;line-height:1.5}.folder{color:#8d8499;font-size:11px;overflow-wrap:anywhere}.folder:empty{display:none}.metadata{grid-column:2;display:flex;flex-wrap:wrap;align-items:center;gap:9px 18px;color:#a69cab;font-size:12px}.format{color:#c5bdce;background:#2b2632;border-radius:4px;padding:3px 6px;font-size:10px;font-weight:650}.download{grid-column:3;grid-row:1 / span 2;white-space:nowrap;text-decoration:none;color:#eeb78d;font-size:12px;border:1px solid #644731;border-radius:7px;padding:11px 13px;background:#30251e}.download:hover{background:#463123;border-color:#c28b5f}footer{display:flex;justify-content:space-between;gap:18px;color:#827a8c;font-size:11px;line-height:1.8;padding-top:24px}@media(min-width:1200px){.video{grid-template-columns:44px minmax(0,1fr) 390px auto}.file-icon{grid-row:1}.metadata{grid-column:3;grid-row:1}.download{grid-column:4;grid-row:1}}@media(max-width:700px){.topbar{height:70px}.badge{font-size:10px}main{padding-top:32px}.heading{align-items:flex-start;flex-direction:column}.stats{grid-template-columns:1fr 1fr;gap:10px;margin:24px 0}.stats>div{padding:17px}.stats>div:last-child{grid-column:span 2}.stats strong{font-size:25px}.toolbar{flex-wrap:wrap;padding:17px;gap:14px}.toolbar .search{flex-basis:100%}.toolbar label:not(.search){flex:1;min-width:0}select{min-width:0}.video{padding:20px 17px;grid-template-columns:36px minmax(0,1fr);gap:10px 12px}.file-icon{width:36px;height:42px}.metadata{gap:8px 12px}.download{grid-column:2;grid-row:3;justify-self:start;margin-top:4px}footer{flex-direction:column;gap:5px}.list-caption{padding:20px 17px 5px}}
/* Preview extends the existing library layout. */
.video-actions{grid-column:3;grid-row:1 / span 2;display:flex;flex-direction:column;gap:8px;align-items:stretch}.video-actions .download{grid-area:auto;text-align:center}.preview-status{flex-basis:100%;font-size:11px;color:#ad9eb8}.preview-status[data-state="ready"]{color:#a3d6ac}.preview-status[data-state="creating"]{color:#efbf86}.preview-status[data-state="error"]{color:#f1a0a0}dialog{width:min(1100px,94vw);max-height:94vh;padding:26px;color:#eeedf4;background:#19171e;border:1px solid #49404f;border-radius:14px;overflow:auto}dialog::backdrop{background:#08070bd9}.preview-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.preview-header h2{font-size:20px;overflow-wrap:anywhere;line-height:1.5;margin:8px 0}.preview-header .eyebrow{font-size:9px}.preview-header button{flex-shrink:0}#preview-info,.preview-note,#preview-message{color:#b6aabb;font-size:13px;line-height:1.6}#preview-state{color:#e5b58c;font-size:14px}#player{width:100%;max-height:62vh;aspect-ratio:16/9;background:#000;border-radius:8px}#player-time{font-variant-numeric:tabular-nums;color:#c6bbce;font-size:13px}.preview-footer{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:20px}.preview-note{font-size:11px;margin:18px 0 0}[hidden]{display:none!important}body:has(dialog[open]){overflow:hidden}@media(min-width:1200px){.video-actions{grid-column:4;grid-row:1}}@media(max-width:700px){.video-actions{grid-column:2;grid-row:3;align-items:flex-start}.video-actions .download{margin-top:0}.preview-header h2{font-size:16px}dialog{padding:18px}}

/* The left play icon is the single preview action; busy icons still open status. */
.file-icon.preview-open{position:relative;padding:0;font-size:22px;cursor:pointer;transition:background .15s,border-color .15s,transform .15s}
.file-icon.preview-open:hover{background:#4a3223;border-color:#e3a578;transform:translateY(-1px)}
.file-icon.preview-open:active{transform:translateY(0)}
.file-icon.preview-open[data-state="creating"]{color:#b99170;border-color:#8a603d}
.file-icon.preview-open[data-state="creating"]::after{content:"";position:absolute;top:-5px;right:-5px;width:12px;height:12px;border:2px solid #514034;border-top-color:#efbf86;border-radius:50%;background:#1c1a22;animation:preview-spin 1s linear infinite}
#preview-create:disabled{opacity:.6;cursor:wait}
@keyframes preview-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.file-icon.preview-open{transition:none}.file-icon.preview-open[data-state="creating"]::after{animation:none}}

/* Small stream stills retain the same preview-button behavior. */
.video{grid-template-columns:128px minmax(0,1fr) auto}
.file-icon.preview-open{width:128px;height:72px}
.thumbnail{width:100%;height:100%;object-fit:contain;border-radius:7px;grid-area:1/1;opacity:0}
.has-thumbnail .thumbnail{opacity:1}
.play-overlay{grid-area:1/1;z-index:1;display:grid;place-items:center}
.has-thumbnail .play-overlay{width:30px;height:30px;border-radius:50%;background:#101014b8;color:#fff;font-size:14px;box-shadow:0 0 0 1px #ffffff45}
.has-thumbnail:hover .play-overlay{background:#b66e35e8}
@media(min-width:1200px){.video{grid-template-columns:128px minmax(0,1fr) 390px auto}}
@media(max-width:700px){.video{grid-template-columns:96px minmax(0,1fr)}.file-icon.preview-open{width:96px;height:54px}}
.toolbar{flex-wrap:wrap}.toolbar .search{min-width:240px;flex:1 1 280px}.original-name{display:block;font-size:11px;color:#a99bb5;overflow-wrap:anywhere;margin-top:5px}.workflow-status{font-size:11px;color:#dfc6a8;padding:3px 6px;border:1px solid #574635;border-radius:4px}.download-status{font-size:11px;color:#a5cbaa;line-height:1.5}.editor-section{border-top:1px solid #39313f;margin-top:24px;padding-top:16px}.editor-section h3{font-size:16px;margin:0 0 14px}.editor-section fieldset{padding:0;border:0;margin:0;min-width:0}.editor-section label{display:flex;flex-direction:column;gap:8px;font-size:12px;color:#b9adbf;margin-bottom:14px}.editor-grid{display:grid;grid-template-columns:2fr 1fr;gap:16px}.editor-section textarea{font:inherit;color:#eee;background:#111015;border:1px solid #39353f;border-radius:7px;padding:12px;resize:vertical;width:100%}.editor-actions,.moments-header{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.moments-header h3{margin:0;margin-right:auto}#metadata-message,#moment-message,#moment-hint{font-size:12px;color:#c7b49f;line-height:1.6}.moment-row{display:flex;gap:10px;align-items:center;border-top:1px solid #302936;padding:12px 0}.moment-comment{flex:1;white-space:pre-wrap;overflow-wrap:anywhere;min-width:0;font-size:13px}.moment-row button{font-size:11px;padding:8px}.moment-seek{font-variant-numeric:tabular-nums;color:#edb789}.moment-row .moment-tools{display:flex;gap:6px}.editor-section :disabled{opacity:.55}#moment-form{background:#201c25;border:1px solid #3a3043;padding:16px;border-radius:8px;margin-top:14px}@media(max-width:700px){.editor-grid{grid-template-columns:1fr;gap:0}.moment-row{flex-wrap:wrap}.moment-tools{width:100%}.toolbar .search{min-width:0}.toolbar label:not(.search){flex-basis:40%}}
.account-nav,header nav{display:flex;gap:14px;align-items:center;flex-wrap:wrap;font-size:12px}nav a,.auth-box a{color:#e7b38a}#account-name{color:#b7adbf}.auth-box{max-width:540px;margin:7vh auto;padding:30px;border:1px solid #39313f;border-radius:12px;background:#19171e}.auth-box h1{font-size:32px}.auth-box p{line-height:1.6;color:#b8adbf}.auth-box label{display:block;margin:20px 0;font-size:13px}.auth-box input{margin-top:8px}.user-row{display:grid;grid-template-columns:1fr 110px 110px 2fr auto;gap:14px;align-items:center}.user-row input[type=checkbox]{width:auto}.user-row label{margin:0}.audit-scroll{overflow:auto}table{border-collapse:collapse;width:100%;font-size:12px;margin:20px 0}th,td{text-align:left;padding:12px;border-bottom:1px solid #39313f;overflow-wrap:anywhere}td:last-child{max-width:400px}@media(max-width:800px){.topbar{height:auto;min-height:84px;gap:16px;padding-top:12px;padding-bottom:12px;flex-wrap:wrap}.user-row{grid-template-columns:1fr 1fr}.user-row strong,.user-row input[type=password]{grid-column:1/-1}.auth-box{margin:24px 4vw}.account-nav{gap:10px}}
