:root{font-family:system-ui,sans-serif;color:#172c39;background:#f1f5f8;line-height:1.5}*{box-sizing:border-box}body{margin:0}header{display:flex;gap:1.2rem;align-items:center;padding:1rem 5%;background:#122637;color:white}.brand{font-size:1.4rem;font-weight:750}header button{margin-left:auto}main{max-width:1120px;margin:2rem auto;padding:0 1rem}h1{font-size:1.8rem;line-height:1.2}h2{font-size:1.25rem}section{background:white;border:1px solid #d9e3e9;border-radius:12px;padding:1.3rem;margin:1rem 0}nav{display:flex;gap:.5rem;flex-wrap:wrap}button,.button{background:#075f59;color:white;border:0;padding:.7rem 1rem;border-radius:6px;font-size:1rem;cursor:pointer;min-height:44px}button.secondary{background:#e3edf0;color:#19333f}button.danger{background:#a13232}button:disabled{opacity:.55;cursor:wait}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible{outline:3px solid #df9e21;outline-offset:3px}input,select,textarea{display:block;width:100%;font:inherit;padding:.65rem;border:1px solid #859ca8;border-radius:6px;background:white}input[type=checkbox]{display:inline;width:auto;margin-right:.6rem}label{display:block;margin:.7rem 0}form{max-width:650px}.row{display:flex;gap:.7rem;align-items:end;flex-wrap:wrap}.row>*{flex:1;min-width:180px}.muted,small{color:#48616f}#notice:not(:empty){padding:1rem;background:#fff2d1;border:1px solid #e6ca7c;border-radius:8px;margin-bottom:1rem}.error{color:#8a1a1a}table{border-collapse:collapse;width:100%;font-size:.95rem}td,th{padding:.7rem;text-align:left;border-bottom:1px solid #dbe5e9}th{background:#e9f1f4}.table{overflow:auto}a{color:#005e85;overflow-wrap:anywhere}.pill{display:inline-block;background:#d5eee8;padding:.2rem .55rem;border-radius:20px}progress{width:100%;accent-color:#087c6e}footer{text-align:center;color:#526b78;padding:1rem;font-size:.85rem}.secret{background:#edf4f8;padding:.8rem;overflow-wrap:anywhere}.checklist{max-height:200px;overflow:auto;border:1px solid #c2d1d9;padding:.6rem}.login{max-width:480px;margin:2rem auto}@media(max-width:640px){header{flex-wrap:wrap;gap:.5rem}main{margin:1rem auto}section{padding:1rem}td,th{padding:.5rem}.row>*{min-width:100%}}

td small{display:inline-block;max-width:260px;overflow-wrap:anywhere}textarea{font-family:ui-monospace,monospace}section[data-caption-panel] button{margin:.25rem .2rem .25rem 0}
.library-toolbar{display:flex;gap:.7rem;align-items:center;flex-wrap:wrap;margin:.6rem 0 1rem}.library-toolbar>span{font-size:.85rem}.video-cards{display:flex;flex-direction:column;gap:1rem}.video-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(190px,240px);gap:.5rem 1.5rem;border:1px solid #cddde3;border-radius:10px;padding:1.1rem;min-width:0;background:#fbfdfd}.video-heading{display:grid;grid-template-columns:24px minmax(0,1fr);gap:.2rem .5rem;align-items:center}.video-heading h3{margin:0;font-size:1.12rem;overflow-wrap:anywhere}.video-heading p{grid-column:2;margin:0}.video-heading input{width:20px;height:20px}.video-files,.video-status,.video-review,.video-card progress{grid-column:1;min-width:0}.video-files p{margin:.25rem 0;font-size:.9rem;overflow-wrap:anywhere}.video-files .pill{margin:.15rem .35rem .15rem 0;font-size:.85rem}.video-status{margin:.4rem 0;font-weight:600;overflow-wrap:break-word}.video-actions{grid-column:2;grid-row:1/span 6;display:flex;flex-direction:column;gap:.5rem;align-self:start}.video-actions button,.video-review button{max-width:100%;white-space:normal}.video-review{display:flex;gap:.5rem;flex-wrap:wrap}.video-review button{background:#075f59;color:white}.video-card progress[hidden],button[hidden]{display:none}.bulk-controls,.video-create{border:1px solid #d3e1e6;border-radius:8px;padding:.8rem;margin:1rem 0}.bulk-controls summary,.video-create summary{font-weight:650;cursor:pointer;min-height:32px}.bulk-controls .inline-check{display:flex;align-items:start;gap:.4rem}.bulk-controls input[type=checkbox]{margin-top:.3rem;flex:none}.video-create>section{border:0;margin:0;padding:.7rem 0}.video-cards>section{margin:0;border-left:4px solid #087c6e}.video-cards>section textarea{max-width:100%}#notice:not(:empty){position:sticky;top:.5rem;z-index:5;box-shadow:0 2px 8px #0001}nav button{flex:0 1 auto}
@media(max-width:720px){.video-card{grid-template-columns:minmax(0,1fr);padding:.9rem;gap:.5rem}.video-actions{grid-column:1;grid-row:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}.video-actions button{padding:.65rem .5rem;font-size:.92rem}.video-review button{width:100%}.library-toolbar{align-items:start;flex-direction:column}nav{gap:.35rem}nav button{padding:.6rem .7rem;font-size:.93rem}.bulk-controls>button{width:100%}.video-files,.video-status{font-size:.95rem}}

.video-heading{grid-template-columns:44px minmax(0,1fr)}.video-heading .video-select{display:grid;place-items:center;width:44px;min-height:44px;margin:0}.video-heading .video-select input{margin:0;width:22px;height:22px}.video-heading .video-select[hidden]{display:none}.video-heading.no-video{grid-template-columns:minmax(0,1fr)}.video-heading.no-video p{grid-column:1}
