:root{--ink:#182f43;--paper:#f9f8f4;--accent:#f3c843;--muted:#697581;--line:#dfe3e5;--card:#fff;--red:#b3261e;--green:#1d6b33;--radius:14px}
*{box-sizing:border-box}
html,body{margin:0}
body{background:var(--paper);color:var(--ink);font:14px/1.6 -apple-system,"system-ui","Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;-webkit-text-size-adjust:100%}
body.noscroll{overflow:hidden}
a{color:inherit;text-decoration:none}
h1,h2,h3,p{margin:0}
h1{font-size:22px;line-height:1.3}
h3{font-size:15px}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
button:disabled{opacity:.45;cursor:default}
.muted{color:var(--muted);font-size:13px}
.center{text-align:center}
.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.row{display:flex;gap:10px;align-items:center}
.row.end{justify-content:flex-end;margin-top:16px}
.row.sep{border-top:1px solid var(--line);padding-top:16px}
.row.wrapx{flex-wrap:wrap;justify-content:flex-end}
.grow{flex:1}

/* buttons & inputs */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:40px;padding:0 18px;border:1px solid var(--ink);border-radius:10px;background:var(--ink);color:#fff;font-weight:650;white-space:nowrap;transition:filter .15s,transform .15s}
.btn:hover:not(:disabled){filter:brightness(1.25)}
.btn.ghost{background:var(--card);color:var(--ink);border-color:var(--line);font-weight:600}
.btn.ghost:hover:not(:disabled){filter:none;border-color:var(--ink)}
.btn.danger{background:var(--red);border-color:var(--red)}
.btn.ghost.danger{background:var(--card);color:var(--red);border-color:var(--line)}
.btn.sm{height:34px;padding:0 13px;font-size:13px}
.btn.big{width:100%;height:50px;font-size:15px;margin-top:18px;border-radius:12px}
.link{background:none;border:0;padding:0;color:var(--muted);font-size:13px;text-decoration:underline;text-underline-offset:3px}
.link:hover{color:var(--ink)}
.link.danger{color:var(--red)}
.inp{display:block;width:100%;height:44px;padding:0 13px;border:1px solid var(--line);border-radius:10px;background:#fbfbf9;outline:none;min-width:0}
textarea.inp{height:auto;padding:10px 13px;resize:vertical;line-height:1.6}
.inp:focus{border-color:var(--ink);background:#fff;box-shadow:0 0 0 3px rgba(24,47,67,.08)}
.inp.sm{height:36px;width:auto;font-size:13px;padding:0 8px}
.lbl{display:block;font-size:13px;font-weight:650;margin:14px 0 7px}
.card{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:22px 24px;margin-bottom:18px}
.card .inp+.inp{margin-top:10px}
.card h3{margin-bottom:12px}
.pill{display:inline-block;margin-left:8px;padding:1px 9px;border-radius:99px;background:#eef1f3;font-size:11px;color:var(--muted)}
.pill.bad{background:#fbe9e7;color:var(--red);margin-left:0}
.warn-box{background:#fdf3f2;color:#7a2e28;border-radius:10px;padding:10px 14px;font-size:13px;margin:12px 0}
.code-box{font:700 16px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace;background:#fff8dc;border:1px dashed #d8b23a;border-radius:12px;padding:14px;text-align:center;word-break:break-all;user-select:all;margin:12px 0}
.kv{display:grid;grid-template-columns:auto 1fr;gap:6px 14px;margin:10px 0;font-size:13px}
.kv code{font-weight:700;user-select:all}

/* top bar */
.top{position:sticky;top:0;z-index:20;min-height:60px;display:flex;align-items:center;gap:26px;row-gap:4px;padding:0 max(20px,3vw);background:color-mix(in srgb,var(--paper) 92%,transparent);backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
.top.plain{justify-content:space-between}
.brand{display:flex;align-items:center;gap:10px;font-size:17px;letter-spacing:.5px}
.logo{border-radius:9px;display:block}
.top nav{display:flex;gap:4px}
.top nav a{padding:7px 13px;border-radius:9px;color:var(--muted);font-weight:600}
.top nav a.on,.top nav a:hover{color:var(--ink);background:rgba(24,47,67,.06)}
.top-right{margin-left:auto;display:flex;align-items:center;gap:16px}
.usage{display:flex;flex-direction:column;gap:3px;font-size:11px;color:var(--muted);min-width:110px}
.usage i,.bar{display:block;height:4px;border-radius:9px;background:#e6e9ea;overflow:hidden}
.usage u,.bar u{display:block;height:100%;background:var(--ink);border-radius:9px;text-decoration:none}
.usage u.hot{background:var(--red)}
.who{font-weight:650}
.main{padding:24px max(20px,3vw) 90px}
.narrow{max-width:560px;margin:0 auto}
.narrow h1,.wide h1{margin-bottom:18px}
.wide{max-width:1180px;margin:0 auto}

/* auth */
.auth{min-height:100vh;display:flex;flex-direction:column}
.auth-body{flex:1;display:grid;grid-template-columns:1fr minmax(320px,440px);gap:6vw;align-items:center;padding:40px max(20px,6vw);max-width:1200px;width:100%;margin:0 auto}
.auth-hero .logo{margin-bottom:28px;border-radius:18px}
.eyebrow{font-size:11px;font-weight:750;letter-spacing:2.4px;text-transform:uppercase;margin-bottom:14px}
.auth-hero h1{font-size:clamp(28px,3.4vw,40px);font-weight:800}
.auth-home{white-space:nowrap}
.auth-card{border-radius:22px;padding:32px 30px 24px;box-shadow:0 18px 50px rgba(24,47,67,.06);margin:0}
.auth-card h2{font-size:22px;margin-bottom:6px}
.auth-card .muted{margin-bottom:18px}
.auth-card .inp{margin-top:12px;height:46px}
.cap-row{display:flex;gap:10px;align-items:center;margin-top:12px}
.cap-row .inp{margin-top:0;text-transform:uppercase}
.cap-img{height:46px;width:138px;border-radius:10px;border:1px solid var(--line);cursor:pointer;flex:none;background:#f3f3ee}
.hint{font-size:12px;color:var(--muted);margin-top:6px}
.form-err{color:var(--red);font-size:13px;min-height:20px;margin-top:10px;white-space:pre-line}
.auth-links{display:flex;gap:18px;justify-content:center;flex-wrap:wrap;margin-top:8px;font-size:13px}
.auth-links a{text-decoration:underline;text-underline-offset:3px}

/* library */
.lib{display:grid;grid-template-columns:210px 1fr;gap:28px;max-width:1500px;margin:0 auto}
.side{position:sticky;top:84px;align-self:start;display:flex;flex-direction:column;gap:2px}
.side-item{display:flex;justify-content:space-between;align-items:center;padding:9px 12px;border-radius:10px;font-weight:600;color:var(--muted)}
.side-item span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.side-item small{font-weight:500;font-size:11px;opacity:.8}
.side-item.on,.side-item:hover{background:rgba(24,47,67,.07);color:var(--ink)}
.side-title{font-size:11px;font-weight:750;letter-spacing:1.6px;color:var(--muted);margin:18px 12px 6px;text-transform:uppercase}
.side-add{margin-top:6px;padding:9px 12px;border:1px dashed var(--line);border-radius:10px;background:none;color:var(--muted);text-align:left}
.side-add:hover{border-color:var(--ink);color:var(--ink)}
.lib-main{position:relative;min-height:50vh}
.lib-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:18px;flex-wrap:wrap}
.tools{display:flex;gap:10px}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:18px}
.vcard{position:relative;display:block;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;transition:transform .15s,box-shadow .15s,border-color .15s}
.vcard:hover{transform:translateY(-2px);box-shadow:0 10px 26px rgba(24,47,67,.08)}
.vcard.sel{border-color:var(--ink);box-shadow:0 0 0 2px var(--ink)}
.vcard.busy{cursor:default}
.vcard img,.vcard[draggable="false"]{-webkit-user-drag:none}
.thumb{position:relative;aspect-ratio:16/9;background:#101c27;display:grid;place-items:center;overflow:hidden}
.thumb img{width:100%;height:100%;object-fit:contain}
.dur,.tag{position:absolute;bottom:7px;right:7px;background:rgba(0,0,0,.72);color:#fff;font-size:11px;padding:1px 6px;border-radius:5px}
.tag{right:auto;left:7px;background:var(--accent);color:var(--ink);font-weight:700}
.state{color:#fff;font-size:13px;padding:5px 12px;border-radius:99px;background:rgba(255,255,255,.14)}
.state.failed{background:var(--red)}
.pick{position:absolute;top:8px;left:8px;width:26px;height:26px;border-radius:8px;border:2px solid #fff;background:rgba(0,0,0,.35);color:var(--ink);font-weight:800;font-size:13px;display:grid;place-items:center;padding:0;opacity:0;transition:opacity .15s}
.vcard:hover .pick,.pick.on,.lib:has(.pick.on) .pick{opacity:1}
.pick.on{background:var(--accent);border-color:var(--accent)}
.vmeta{padding:11px 13px 13px}
.vmeta b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vmeta span{font-size:12px;color:var(--muted)}
.empty{grid-column:1/-1;text-align:center;padding:70px 20px;border:1px dashed var(--line);border-radius:18px;color:var(--muted)}
.empty b{display:block;font-size:16px;color:var(--ink);margin-bottom:6px}
.drop-hint{display:none;position:absolute;inset:0;border:2px dashed var(--ink);border-radius:18px;background:rgba(249,248,244,.92);place-items:center;font-size:18px;font-weight:700;z-index:5}
.dragging .drop-hint{display:grid}
.selbar{position:fixed;left:50%;bottom:18px;transform:translate(-50%,140%);width:min(940px,calc(100vw - 24px));background:var(--ink);color:#fff;border-radius:16px;padding:12px 16px;box-shadow:0 14px 40px rgba(0,0,0,.25);transition:transform .2s;z-index:30;visibility:hidden}
.selbar.show{transform:translate(-50%,0);visibility:visible}
.sel-top{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.selbar .btn{border-color:var(--accent);background:var(--accent);color:var(--ink);height:36px}
.selbar .btn.ghost{background:transparent;color:#fff;border-color:rgba(255,255,255,.35)}
.selbar .btn.ghost.danger{color:#ffb4ab}
.selbar .link{color:rgba(255,255,255,.7)}
.sel-why{display:none;flex-wrap:wrap;gap:2px 14px;margin-top:8px;font-size:12px;line-height:1.5;color:rgba(255,255,255,.72)}
@media (hover:none),(max-width:640px){.sel-why{display:flex}}
.chips{display:flex;gap:6px;align-items:center;margin-top:10px;overflow-x:auto;padding-bottom:2px}
.chips small{opacity:.7;flex:none}
.chip{display:inline-flex;align-items:center;gap:2px;background:rgba(255,255,255,.12);border-radius:8px;padding:2px 4px;flex:none;cursor:grab}
.chip em{font-style:normal;font-size:12px;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 4px}
.chip button{background:none;border:0;color:#fff;width:22px;height:24px;border-radius:5px;padding:0;font-size:15px}
.chip button:hover:not(:disabled){background:rgba(255,255,255,.2)}
.merge-list{margin:0 0 6px;padding-left:22px;max-height:180px;overflow:auto}
.merge-list small{color:var(--muted)}

/* uploads panel */
.uploads{position:fixed;right:18px;top:72px;width:320px;max-width:calc(100vw - 24px);background:var(--card);border:1px solid var(--line);border-radius:14px;box-shadow:0 14px 40px rgba(24,47,67,.18);z-index:40;max-height:min(60vh,520px);display:flex;flex-direction:column;overflow:hidden}
.up-head{display:flex;justify-content:space-between;align-items:center;padding:10px 12px 10px 16px;border-bottom:1px solid #eef0f1;flex:none}
.up-head .x{width:30px;height:30px;border-radius:8px;font-size:22px}
.up-head .x:hover{background:rgba(24,47,67,.08);color:var(--ink)}
.up-list{overflow:auto;padding:2px 16px 10px}
.up-item:first-child{border-top:0}
.move-list{display:flex;flex-direction:column;gap:8px}
.move-item{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--card);text-align:left}
.move-item:hover:not(:disabled){border-color:var(--ink);background:#faf8f0}
.move-item small{color:var(--muted);font-size:12px}
.up-item{padding:7px 0;border-top:1px solid #eef0f1}
.up-name{font-weight:600;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.up-meta{font-size:12px;color:var(--muted);margin-bottom:4px}
.up-meta.bad{color:var(--red)}
.x{background:none;border:0;font-size:22px;line-height:1;color:var(--muted);padding:0 4px}

/* modal & toast */
.modal-back{position:fixed;inset:0;background:rgba(16,28,39,.45);display:grid;place-items:center;padding:16px;z-index:60}
.modal{width:min(480px,100%);max-height:calc(100vh - 32px);overflow:auto;background:var(--card);border-radius:18px;box-shadow:0 30px 80px rgba(0,0,0,.3)}
.modal.wide{width:min(640px,100%)}
.modal-head{display:flex;justify-content:space-between;align-items:center;padding:18px 22px 0}
.modal-head h3{font-size:17px}
.modal-body{padding:14px 22px 22px}
.confirm-text{font-size:15px;line-height:1.7}
.people{list-style:none;margin:0 0 6px;padding:0}
.people li{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid #eef0f1}
.people li>span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* the share list: a name is never cut short; the row wraps instead */
.share-people li{flex-wrap:wrap;row-gap:6px}
.share-people li>span{flex:1 1 150px;overflow:visible;text-overflow:clip;white-space:normal;overflow-wrap:anywhere}
.share-people li>select{flex:0 1 auto;min-width:0;max-width:100%}
.share-people li>.role-hint{flex:1 0 100%;margin:0}
.role-hint{white-space:normal;overflow-wrap:anywhere}
.people small{color:var(--muted)}
.people em{font-style:normal;font-size:12px;color:var(--muted)}
.add-row .row{flex-wrap:wrap}
.add-row .row .inp{flex:1 1 150px}
/* what the team's creator lets each member do: switches under the member's name, and in the add form */
.people li.with-rights{flex-wrap:wrap;row-gap:6px}
.rights{flex-basis:100%;display:flex;flex-wrap:wrap;gap:6px 16px;font-size:13px}
.add-row .rights{margin-top:6px}
.right-switch{display:inline-flex;align-items:center;gap:6px;cursor:pointer;white-space:nowrap}
.right-switch input{accent-color:var(--accent);width:15px;height:15px;margin:0}
/* what each switch means, one line each, at the top of the creator's dialog */
.rights-help{list-style:none;margin:6px 0 10px;padding:8px 12px;border-radius:10px;background:#f6f7f4;font-size:12px;line-height:1.6;color:var(--muted)}
.rights-help b{color:var(--ink);margin-right:8px;white-space:nowrap}
.tools .no-upload{align-self:center;margin:0}
#toasts{position:fixed;top:72px;left:50%;transform:translateX(-50%);z-index:80;display:flex;flex-direction:column;gap:8px;align-items:center;pointer-events:none}
.toast{background:var(--ink);color:#fff;padding:9px 18px;border-radius:10px;font-size:13px;box-shadow:0 8px 24px rgba(0,0,0,.2);transition:opacity .4s,transform .4s}
.toast.bad{background:var(--red)}
.toast.out{opacity:0;transform:translateY(-8px)}
/* a toast with a link to follow ("Show me"): it can be clicked, the others let clicks through */
.toast.act{pointer-events:auto;display:flex;align-items:center;gap:14px;max-width:calc(100vw - 24px)}
.toast-act{flex-shrink:0;background:none;border:0;padding:0;font:inherit;font-weight:700;color:var(--accent);text-decoration:underline;text-underline-offset:3px;white-space:nowrap;cursor:pointer}
.toast.bad .toast-act{color:#fff}

/* player */
.player-page{max-width:1500px;margin:0 auto}
.loading{padding:80px;text-align:center;color:var(--muted)}
.pl-head{display:flex;align-items:center;gap:16px;margin-bottom:16px;flex-wrap:wrap}
.back{color:var(--muted);font-weight:600;white-space:nowrap}
.back:hover{color:var(--ink)}
.pl-title{flex:1;min-width:180px}
.pl-title h1{font-size:19px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pl-title small{color:var(--muted);font-size:12px}
.pl-grid{display:grid;grid-template-columns:minmax(0,1fr) 370px;gap:22px;align-items:start}
.pl-wrap{background:#0b141c;border-radius:16px;overflow:hidden;position:relative}
.stage{position:relative;aspect-ratio:16/9;max-height:calc(100vh - 290px);width:100%;background:#000;cursor:pointer}
.stage video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;visibility:hidden;background:#000}
.stage video.on{visibility:visible}
.rv-mark{position:absolute;inset:0;z-index:2;pointer-events:none;background-repeat:repeat;background-position:center}
/* comments crossing the picture: the script sets the layer's height (its lines) and --dm-fs (letter size) from the size of the picture */
.dm-layer{position:absolute;left:0;right:0;top:0;height:112px;max-height:100%;z-index:3;overflow:hidden;pointer-events:none}
.dm{position:absolute;left:100%;max-width:none;white-space:nowrap;pointer-events:auto;cursor:pointer;border:0;border-radius:999px;padding:.36em .93em;background:rgba(8,14,20,.6);color:#fff;font-size:var(--dm-fs,14px);line-height:1.3;animation:dm-move 7s linear forwards}
.dm b{color:var(--accent);font-weight:700;margin-right:2px}
.dm-tc{font-variant-numeric:tabular-nums;font-weight:600;opacity:.82;margin-right:.45em}
.dm:hover{background:rgba(8,14,20,.85);animation-play-state:paused}
.dm-layer.hold .dm{animation-play-state:paused}
@keyframes dm-move{to{transform:translateX(var(--dm-x,-200vw))}}
.cbtn.dmbtn{font-size:14px}
.seg-flash{position:absolute;left:16px;top:14px;background:rgba(0,0,0,.6);color:#fff;font-size:13px;padding:5px 12px;border-radius:8px;opacity:0;pointer-events:none;max-width:80%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.seg-flash.show{animation:flash 2.4s ease}
@keyframes flash{0%,70%{opacity:1}100%{opacity:0}}
.controls{background:#0b141c;color:#fff;padding:6px 14px 10px;user-select:none}
.tl{position:relative;height:26px;cursor:pointer;touch-action:none}
.tl-rail{position:absolute;left:0;right:0;top:11px;height:5px;border-radius:9px;background:rgba(255,255,255,.22);overflow:hidden}
.tl-fill{display:block;height:100%;width:0;background:var(--accent)}
.tl-knob{position:absolute;top:6px;width:14px;height:14px;margin-left:-7px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.5);pointer-events:none}
.tl-ticks i{position:absolute;top:7px;width:2px;height:13px;margin-left:-1px;background:rgba(255,255,255,.75);pointer-events:none}
.tl-mark{position:absolute;top:-1px;width:12px;height:12px;margin-left:-6px;padding:0;border:2px solid #0b141c;border-radius:50% 50% 50% 0;transform:rotate(-45deg);background:#ff7a59;z-index:2}
.tl-mark.guest{background:#4aa8ff}
.tl-mark.done{background:#8b979f}
.tl-mark:hover{transform:rotate(-45deg) scale(1.35)}
.tl-tip{position:absolute;bottom:26px;transform:translateX(-50%);background:#fff;color:var(--ink);font-size:12px;font-weight:700;padding:3px;border-radius:8px;white-space:nowrap;opacity:0;pointer-events:none;text-align:center;z-index:3;box-shadow:0 4px 14px rgba(0,0,0,.45)}
.tl-tip span{display:block;padding:0 6px;line-height:18px}
.tl-pic{display:none;border-radius:5px;background-color:#000;background-repeat:no-repeat;margin-bottom:2px}
.csel.on{background:var(--accent);color:var(--ink)}
.keytable td{padding:7px 10px 7px 0;border:0}
.keytable td:first-child{white-space:nowrap;width:1%}
kbd{font:600 12px/1 ui-monospace,Menlo,Consolas,monospace;background:rgba(127,127,127,.16);border:1px solid rgba(127,127,127,.35);border-radius:5px;padding:4px 7px}
.tl-tip.show{opacity:1}
.cbar{display:flex;align-items:center;gap:8px;margin-top:2px}
.cbtn{width:34px;height:34px;border:0;border-radius:8px;background:none;color:#fff;font-size:15px;padding:0;flex:none}
.cbtn:hover{background:rgba(255,255,255,.14)}
.cbtn.play{background:var(--accent);color:var(--ink);font-size:13px}
.time{font:600 13px/1 ui-monospace,SFMono-Regular,Menlo,monospace;margin-left:6px;white-space:nowrap}
.segname{font-size:12px;opacity:.7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.csel{background:rgba(255,255,255,.1);color:#fff;border:0;border-radius:7px;height:30px;padding:0 4px}
.csel option{color:#000}
.vol{width:72px;accent-color:var(--accent)}
.pl-wrap.fs,.pl-wrap.pseudo-fs{border-radius:0;display:flex;flex-direction:column;background:#000}
.pl-wrap.pseudo-fs{position:fixed;inset:0;z-index:70}
.pl-wrap.fs .stage,.pl-wrap.pseudo-fs .stage{flex:1;max-height:none;aspect-ratio:auto;height:100%}
.pl-wrap.fs .controls,.pl-wrap.pseudo-fs .controls{position:absolute;left:0;right:0;bottom:0;background:linear-gradient(transparent,rgba(0,0,0,.85));padding:30px 20px 14px;transition:opacity .3s}
.pl-wrap.idle{cursor:none}
.pl-wrap.idle .controls{opacity:0}
.seg-list{display:flex;gap:8px;overflow-x:auto;margin-top:12px;padding-bottom:4px}
.seg-item{flex:none;display:flex;gap:8px;align-items:center;width:210px;padding:6px;border:1px solid var(--line);border-radius:10px;background:var(--card);text-align:left}
.seg-item.on{border-color:var(--ink);box-shadow:0 0 0 1px var(--ink)}
/* the uploader's name sits in the top right corner of the card's white part; the title keeps clear of it */
.vby{float:right;margin:2px 0 0 8px;max-width:55%;font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.seg-item.picked{background:#fff6d6;border-color:#d9b63a}
.seg-pick{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:12px}
.seg-pick:empty{display:none}
.seg-pick .seg-read{margin-left:auto}
.seg-item img{width:64px;height:36px;object-fit:cover;border-radius:5px;background:#101c27;flex:none}
.seg-item span{min-width:0}
.seg-item b{display:block;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.seg-item small{font-size:11px;color:var(--muted)}
.keys{font-size:12px;color:var(--muted);margin-top:10px}
.cm-panel{background:var(--card);border:1px solid var(--line);border-radius:16px;display:flex;flex-direction:column;max-height:calc(100vh - 150px);position:sticky;top:76px;overflow:hidden}
.cm-form{padding:14px 16px;border-bottom:1px solid var(--line)}
.cm-form-top{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--muted);margin-bottom:8px}
.cm-at{font:700 13px/1 ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--ink);background:#fff8dc;padding:4px 8px;border-radius:6px}
.cm-form .row.end{margin-top:10px}
/* title, previous/next and the three filters on one line; with long labels (German) the filters take a line of their own, at the right, instead of being cut */
.cm-bar{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;padding:12px 16px 8px;gap:8px}
.cm-bar h3{flex:1 1 auto}
.cm-bar .seg-tabs{flex-wrap:wrap;justify-content:flex-end}
.cm-bar .seg-tabs button{white-space:nowrap}
.seg-tabs{display:flex;gap:4px}
.seg-tabs button{border:1px solid var(--line);background:var(--card);border-radius:8px;height:28px;padding:0 9px;font-size:12px;color:var(--muted)}
.seg-tabs button.on{background:var(--ink);border-color:var(--ink);color:#fff}
.cm-list{overflow:auto;padding:0 10px 12px;flex:1}
.cm-scroll{flex:1;min-height:0;overflow:auto}
.cm-scroll .cm-list{overflow:visible;flex:none}
.cm-scroll>.wf-stack{gap:10px;padding:0 10px 12px}
.cm-scroll>.wf-stack:empty{display:none}
.cm-scroll>.wf-stack h3{margin:6px 6px 0;font-size:13px}
.cm-empty{padding:30px 14px;text-align:center;color:var(--muted);font-size:13px}
.cm{padding:10px;border-radius:10px;border:1px solid transparent}
.cm+.cm{margin-top:2px}
.cm:hover,.cm.hl{background:#faf8f0;border-color:#eee6c9}
.cm.done{opacity:.62}
.cm-top{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.tc{border:0;border-radius:6px;background:var(--ink);color:#fff;font:700 12px/1 ui-monospace,SFMono-Regular,Menlo,monospace;padding:5px 7px}
.cm-seg{font-size:11px;background:#eef1f3;border-radius:5px;padding:1px 6px;color:var(--muted)}
.cm-author{font-weight:650;font-size:13px;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cm-check{display:flex;align-items:center;gap:4px;font-size:12px;color:var(--muted);cursor:pointer}
.cm-check input{accent-color:var(--green);width:15px;height:15px;margin:0}
.cm-text{margin:6px 0 2px;white-space:pre-wrap;overflow-wrap:anywhere}
.cm-foot{display:flex;justify-content:space-between;align-items:center;gap:8px}
.cm-foot small{color:var(--green);font-size:11px}
.cm-foot span{display:flex;gap:10px}
.cm.editing .row.end{margin-top:8px}

/* admin */
.stats{display:grid;grid-template-columns:2fr repeat(4,1fr);gap:14px;margin-bottom:18px}
.stat{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:14px 18px}
.stat b{display:block;font-size:24px}
.stat span{font-size:12px;color:var(--muted);display:block}
.stat small{font-size:11px;color:var(--muted)}
.table-wrap{padding:0;overflow-x:auto}
table{width:100%;border-collapse:collapse;font-size:13px}
th,td{text-align:left;padding:11px 14px;border-bottom:1px solid #eef0f1;white-space:nowrap}
th{font-size:12px;color:var(--muted);font-weight:600;background:#fbfbf9}
tr:last-child td{border-bottom:0}
tr.off td{opacity:.55}
td small{color:var(--muted)}
td.acts{display:flex;gap:12px}

/* responsive */
@media (max-width:1000px){
  .pl-grid{grid-template-columns:minmax(0,1fr)}
  .cm-panel{position:static;max-height:none}
  .stage{max-height:60vh}
}
@media (max-width:820px){
  .lib{grid-template-columns:1fr;gap:14px}
  .side{position:static;flex-direction:row;overflow-x:auto;gap:6px;padding-bottom:4px}
  .side-item{flex:none;border:1px solid var(--line);background:var(--card);gap:6px}
  .side-title{display:none}
  .side-add{flex:none;margin:0}
  .auth-body{grid-template-columns:1fr;padding:24px 16px}
  .auth-hero{display:none}
  .top{gap:10px;row-gap:2px;padding:6px 14px}
  .usage,.brand b{display:none}
  .top-right{gap:10px}
  .main{padding:16px 14px 110px}
  .grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
  .pick{opacity:1}
  .stats{grid-template-columns:1fr 1fr}
  .vol,.segname{display:none}
  .keys{display:none}
  .time{font-size:11px}
  .cbar{gap:4px;flex-wrap:wrap}
  .cbtn{width:32px}
  .pl-head .row.wrapx{justify-content:flex-start}
  .pl-more{position:relative;margin-left:auto}
  .pl-more-pop{top:calc(100% + 6px);right:0;z-index:30}
  .pl-more-pop a.pop-item{text-decoration:none}
  .pl-more-pop .pop-item.danger{color:#ffb4ab}
}
.row>.inp+.inp,.card .row .inp+.inp{margin-top:0}
.tools{flex-wrap:wrap;justify-content:flex-end}
.tools .inp.sm{height:40px}
.sel-top .row{flex-wrap:wrap}
.link{white-space:nowrap}
@media (max-width:820px){.selbar .btn{height:34px;padding:0 12px;font-size:13px}.sel-top{gap:8px}}
.sec-title{grid-column:1/-1;display:flex;align-items:baseline;gap:8px;margin-top:2px}
.sec-title b{font-size:15px}
.sec-title small{color:var(--muted);font-size:12px}
.sec-rule{grid-column:1/-1;height:1px;background:var(--line);margin:10px 0 4px}
.pl-wrap{container-type:inline-size}
@container (max-width:650px){.vol,.segname{display:none}}
@container (max-width:470px){.keysbtn{display:none}}

/* ---------------------------------------------------------------- landing page */
.lp{--y:#f3c843;--bg:#070b12;--tx:#eef2f6;--mu:#93a0ad;--ln:rgba(255,255,255,.1);min-height:100vh;background:var(--bg);color:var(--tx);overflow:hidden;position:relative;font-size:15px}
.lp:before{content:"";position:absolute;inset:-200px -10% auto;height:900px;pointer-events:none;background:radial-gradient(600px 380px at 22% 30%,rgba(243,200,67,.2),transparent 70%),radial-gradient(700px 420px at 78% 18%,rgba(104,92,255,.28),transparent 70%),radial-gradient(520px 340px at 55% 62%,rgba(0,200,255,.14),transparent 70%)}
.lp>*{position:relative}
.lp-top{display:flex;align-items:center;justify-content:space-between;max-width:1180px;margin:0 auto;padding:18px 24px}
.lp-brand{display:flex;align-items:center;gap:10px;font-size:17px;letter-spacing:.5px}
.lp-nav{display:flex;align-items:center;gap:10px}
.lp-lang{background:none;border:0;color:var(--mu);font-size:13px;padding:6px}
.lp-lang:hover{color:var(--tx)}
.lp-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:44px;padding:0 22px;border-radius:12px;border:1px solid var(--ln);background:rgba(255,255,255,.05);color:var(--tx);font-weight:650;white-space:nowrap;transition:transform .15s,background .15s,box-shadow .15s}
.lp-btn:hover{background:rgba(255,255,255,.12);transform:translateY(-1px)}
.lp-btn.primary{background:var(--y);border-color:var(--y);color:#17212b;box-shadow:0 8px 30px rgba(243,200,67,.28)}
.lp-btn.primary:hover{background:#ffd95a;box-shadow:0 10px 36px rgba(243,200,67,.42)}
.lp-btn.sm{height:36px;padding:0 15px;font-size:13px;border-radius:10px;box-shadow:none}
.lp-btn.big{height:54px;padding:0 30px;font-size:16px;border-radius:14px}
.lp-hero{max-width:1180px;margin:0 auto;padding:56px 24px 40px;text-align:center}
.lp-badge{display:inline-flex;align-items:center;gap:8px;padding:6px 14px;border:1px solid var(--ln);border-radius:99px;background:rgba(255,255,255,.04);color:#cfd6dd;font-size:13px}
.lp-badge i{width:7px;height:7px;border-radius:50%;background:var(--y);box-shadow:0 0 10px var(--y)}
.lp-hero h1{font-size:clamp(38px,6.6vw,76px);line-height:1.12;letter-spacing:-1px;margin:22px 0 18px;font-weight:800}
.lp-hero h1 span{background:linear-gradient(92deg,#f3c843 0%,#ff9d5c 45%,#b08cff 100%);-webkit-background-clip:text;background-clip:text;color:transparent}
.lp-sub{max-width:680px;margin:0 auto;color:var(--mu);font-size:17px;line-height:1.75}
.lp-cta{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:30px}
.lp-note{margin-top:14px;color:var(--mu);font-size:13px}
.lp-mock{margin:54px auto 0;max-width:1040px;border:1px solid var(--ln);border-radius:18px;background:#0d131c;box-shadow:0 40px 120px rgba(0,0,0,.6),0 0 0 1px rgba(255,255,255,.03),0 0 80px rgba(104,92,255,.18);text-align:left;overflow:hidden}
.lp-mock-bar{display:flex;align-items:center;gap:7px;padding:11px 14px;border-bottom:1px solid var(--ln);color:var(--mu);font-size:12px}
.lp-mock-bar i{width:10px;height:10px;border-radius:50%;background:#2b3440}
.lp-mock-bar span{margin-left:10px}
.lp-mock-body{display:grid;grid-template-columns:minmax(0,1fr) 290px}
.lp-player{padding:14px;min-width:0}
.lp-screen{position:relative;aspect-ratio:16/9;border-radius:10px;overflow:hidden;background:#000}
.lp-scene{position:absolute;inset:0;background:radial-gradient(60% 80% at 30% 60%,#f0a35a 0,transparent 60%),radial-gradient(50% 70% at 75% 35%,#5d4bd6 0,transparent 65%),linear-gradient(160deg,#1a2740,#0b0f1a);animation:lpdrift 14s ease-in-out infinite alternate}
.lp-scene:after{content:"";position:absolute;inset:0;background:linear-gradient(rgba(0,0,0,0) 55%,rgba(0,0,0,.55)),repeating-linear-gradient(0deg,rgba(255,255,255,.03) 0 1px,transparent 1px 3px)}
@keyframes lpdrift{to{transform:scale(1.15) translate(-3%,2%)}}
.lp-chip{position:absolute;left:12px;top:12px;background:rgba(0,0,0,.55);padding:4px 10px;border-radius:7px;font-size:12px}
.lp-pin{position:absolute;left:34%;top:46%;width:16px;height:16px;border-radius:50%;background:#ff7a59;box-shadow:0 0 0 0 rgba(255,122,89,.7);animation:lppulse 2s infinite}
.lp-pin span{position:absolute;left:24px;top:-9px;background:#fff;color:#17212b;font-size:12px;font-weight:600;padding:6px 10px;border-radius:9px;white-space:nowrap}
@keyframes lppulse{70%{box-shadow:0 0 0 16px rgba(255,122,89,0)}100%{box-shadow:0 0 0 0 rgba(255,122,89,0)}}
.lp-tl{position:relative;height:30px;margin-top:10px}
.lp-rail{position:absolute;left:0;right:0;top:13px;height:5px;border-radius:9px;background:rgba(255,255,255,.18);overflow:hidden}
.lp-rail i{display:block;height:100%;width:24%;background:var(--y);animation:lpplay 9s linear infinite}
@keyframes lpplay{from{width:6%}to{width:96%}}
.lp-tl u{position:absolute;top:9px;width:2px;height:13px;background:rgba(255,255,255,.6)}
.lp-tl b{position:absolute;top:1px;width:11px;height:11px;margin-left:-5px;border-radius:50% 50% 50% 0;transform:rotate(-45deg);background:#ff7a59;border:2px solid #0d131c}
.lp-tl b.done{background:#8b979f}
.lp-hover{position:absolute;left:52%;bottom:24px;transform:translateX(-50%);background:#fff;border-radius:8px;padding:3px;text-align:center;color:#17212b;font-size:11px;font-weight:700;box-shadow:0 8px 24px rgba(0,0,0,.5)}
.lp-hover i{display:block;width:104px;height:58px;border-radius:5px;background:radial-gradient(60% 80% at 60% 55%,#f0a35a 0,transparent 60%),linear-gradient(160deg,#3b2f8a,#0b0f1a)}
.lp-hover span{display:block;padding:2px 0 0}
.lp-ctl{display:flex;align-items:center;gap:12px;color:#cfd6dd;font-size:13px;padding:2px 2px 0}
.lp-ctl .p{width:28px;height:28px;border-radius:7px;background:var(--y);color:#17212b;display:grid;place-items:center;font-size:11px}
.lp-ctl .g{flex:1}
.lp-ctl .tc{font-variant-numeric:tabular-nums}
.lp-ctl .r{background:rgba(243,200,67,.18);color:var(--y);padding:2px 8px;border-radius:6px;font-weight:700}
.lp-side{border-left:1px solid var(--ln);padding:14px;display:flex;flex-direction:column;gap:10px}
.lp-side h4{margin:0 0 2px;font-size:13px;color:var(--mu);font-weight:600}
.lp-cm{background:rgba(255,255,255,.05);border:1px solid var(--ln);border-radius:10px;padding:10px 12px;font-size:12.5px}
.lp-cm div{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.lp-cm b{color:var(--y);font-variant-numeric:tabular-nums}
.lp-cm span{color:var(--mu)}
.lp-cm em{margin-left:auto;font-style:normal;color:#6fd08a;font-size:11.5px}
.lp-cm p{margin-top:5px;color:#dfe5ea}
.lp-cm.done p{color:var(--mu);text-decoration:line-through}
.lp-sec{max-width:1180px;margin:0 auto;padding:80px 24px 10px;text-align:center}
.lp-sec h2,.lp-final h2{font-size:clamp(26px,3.6vw,40px);line-height:1.25;letter-spacing:-.5px;font-weight:800}
.lp-lead{max-width:640px;margin:14px auto 0;color:var(--mu);font-size:16px;line-height:1.7}
.lp-feats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:44px;text-align:left}
.lp-feat{border:1px solid var(--ln);border-radius:16px;padding:22px;background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.02));transition:transform .2s,border-color .2s}
.lp-feat:hover{transform:translateY(-4px);border-color:rgba(243,200,67,.5)}
.lp-ic{width:42px;height:42px;border-radius:11px;display:grid;place-items:center;background:rgba(243,200,67,.14);margin-bottom:16px}
.lp-ic svg{width:22px;height:22px;fill:none;stroke:var(--y);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.lp-feat h3{font-size:16px;margin-bottom:8px}
.lp-feat p{color:var(--mu);font-size:13.5px;line-height:1.7}
.lp-vs{display:grid;grid-template-columns:1fr 1fr;gap:16px;max-width:900px;margin:40px auto 0;text-align:left}
.lp-vs div{border:1px solid var(--ln);border-radius:16px;padding:22px 24px;background:rgba(255,255,255,.03)}
.lp-vs small{display:block;color:var(--mu);font-size:12px;letter-spacing:1px;margin-bottom:8px}
.lp-vs p{font-size:16px;line-height:1.7}
.lp-vs .old p{color:var(--mu)}
.lp-vs .new{border-color:rgba(243,200,67,.55);background:rgba(243,200,67,.07)}
.lp-vs .new small{color:var(--y)}
.lp-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:40px;text-align:left}
.lp-step{border-top:2px solid var(--ln);padding:20px 4px 0}
.lp-step b{font-size:13px;color:var(--y);letter-spacing:2px}
.lp-step h3{font-size:20px;margin:8px 0}
.lp-step p{color:var(--mu);line-height:1.7}
.lp-final{max-width:1132px;margin:90px auto 0;padding:60px 24px;text-align:center;border:1px solid var(--ln);border-radius:24px;background:radial-gradient(500px 240px at 50% 0,rgba(243,200,67,.2),transparent 70%),rgba(255,255,255,.03)}
.lp-final p{color:var(--mu);margin-top:12px;font-size:16px}
.lp-foot{display:flex;justify-content:space-between;max-width:1180px;margin:0 auto;padding:40px 24px 34px;color:var(--mu);font-size:13px}
@media (max-width:980px){.lp-feats{grid-template-columns:repeat(2,1fr)}.lp-mock-body{grid-template-columns:1fr}.lp-side{border-left:0;border-top:1px solid var(--ln)}}
@media (max-width:640px){
  .lp-top{padding:14px 16px}.lp-brand b{display:none}.lp-nav{gap:6px}
  .lp-hero{padding:34px 16px 20px}.lp-sub{font-size:15px}.lp-btn.big{height:50px;width:100%}.lp-cta{flex-direction:column}
  .lp-mock{margin-top:36px}.lp-pin span{display:none}.lp-ctl{gap:8px;font-size:12px}
  .lp-sec{padding:56px 16px 6px}.lp-feats,.lp-vs,.lp-steps{grid-template-columns:1fr}
  .lp-final{margin:60px 16px 0;padding:40px 18px}.lp-foot{padding:30px 16px;flex-direction:column;gap:6px}
}
@media (prefers-reduced-motion:reduce){.lp-scene,.lp-rail i,.lp-pin{animation:none}}

/* ---- folders, views, team members */
.fthumb{background:#eef0ec}
.ficon{position:relative;width:38%;max-width:92px;aspect-ratio:4/3;background:var(--accent);border-radius:4px 9px 9px 9px;margin-top:8%}
.ficon:before{content:'';position:absolute;left:0;bottom:100%;width:46%;height:18%;background:var(--accent);border-radius:6px 8px 0 0;margin-bottom:-1px}
.fcard.drop,.crumb.drop{outline:3px solid var(--accent);outline-offset:2px}
.fcard .pick.gap{display:none}
.more{position:absolute;top:8px;right:8px;width:28px;height:28px;border:0;border-radius:8px;background:rgba(24,47,67,.08);color:var(--ink);font-size:16px;line-height:1;padding:0;opacity:0;transition:opacity .15s}
.vcard:hover .more,.more:focus{opacity:1}
.more:hover{background:rgba(24,47,67,.18)}
/* a video that can be sent back (撤回): its ⋯ is always there and stands out from the picture, and the card's
   meta line carries the button itself */
.more.shown{opacity:1;background:#fff;box-shadow:0 1px 5px rgba(0,0,0,.35)}
.more.shown:hover{background:var(--accent)}
.back-btn{margin-left:8px;padding:1px 9px;border:1px solid var(--ink);border-radius:99px;background:#fff;color:var(--ink);font-size:12px;font-weight:650;line-height:1.5;white-space:nowrap;cursor:pointer}
.back-btn:hover{background:var(--accent);border-color:var(--accent)}
.btn.ai-read{border-color:var(--accent);font-weight:700}
.tag.tr{left:auto;right:7px;bottom:auto;top:7px;max-width:70%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.25)}
.lv{font-style:normal;margin-left:6px;padding:0 6px;border-radius:99px;background:#eef1f3;white-space:nowrap}
.vcols{display:none}
.crumbs{align-items:center;flex-wrap:wrap}
.crumbs .sep{color:var(--muted)}
.crumb{font-weight:700;font-size:15px;color:var(--muted);border-radius:6px;padding:0 2px}
.crumb:hover{color:var(--ink);text-decoration:underline}
.sec-title .grow{flex:1}
.btn.sm{height:32px;padding:0 12px;font-size:13px}
.views button{min-width:38px;font-size:14px;line-height:1}
.grid.small{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.grid.small .vmeta{padding:8px 10px 10px;font-size:13px}
.grid.small .vmeta span{font-size:11px}
.grid.list{display:block}
.grid.list .vcard,.lhead{display:grid;grid-template-columns:28px 84px minmax(0,1fr) 64px 84px 132px;align-items:center;gap:12px;padding:6px 14px;border-radius:12px;margin-bottom:6px}
.grid.list .vcard:hover{transform:none}
.grid.list .thumb{border-radius:6px;grid-column:2}
.grid.list .pick{position:static;opacity:1;grid-column:1;grid-row:1;border-color:var(--line);background:#fff}
.grid.list .pick.on{background:var(--accent);border-color:var(--accent)}
.grid.list .pick.gap{display:block;visibility:hidden}
.grid.list .vmeta{padding:0;grid-column:3;min-width:0}
.grid.list .vcols{display:contents;font-size:12px;color:var(--muted)}
.grid.list .dur,.grid.list .tag,.grid.list .state{display:none}
.grid.list .more{position:static;opacity:1;grid-column:6;justify-self:end;grid-row:1}
.grid.list .sec-title,.grid.list .sec-rule{margin:14px 0 10px}
.grid.list .ficon{margin-top:10%;width:46%}
.lhead{margin-bottom:2px;padding-top:0;padding-bottom:0;font-size:12px}
.lh{border:0;background:none;padding:4px 0;text-align:left;color:var(--muted);font-weight:700;font-size:12px}
.lh.on{color:var(--ink)}
.lh.on:after{content:' ↓'}
.members{padding:14px 18px;margin-bottom:18px}
.mem-head{display:flex;align-items:baseline;gap:8px;margin-bottom:10px}
.mem-head .grow{flex:1}
.mem-head small{color:var(--muted)}
.mem-list{display:flex;flex-wrap:wrap;gap:8px}
.mem{display:inline-flex;align-items:center;gap:6px;padding:6px 8px 6px 12px;border:1px solid var(--line);border-radius:99px;background:#fff}
.mem small{color:var(--muted)}
.mem .pill{margin-left:0}
.mtag{font-size:12px;font-weight:700;padding:2px 10px;border-radius:99px;background:#eef1f3;color:var(--ink);white-space:nowrap}
.mtag.collab{background:var(--accent)}
.plus{width:22px;height:22px;border-radius:50%;border:1px solid var(--line);background:#fff;color:var(--ink);font-weight:800;line-height:1;padding:0}
.plus:hover{background:var(--ink);color:#fff;border-color:var(--ink)}
.move-item.on{border-color:var(--ink);background:#faf8f0}
.move-item.danger b{color:var(--red)}
.move-list{max-height:60vh;overflow:auto}
@media (max-width:820px){
  .grid.list .vcard,.lhead{grid-template-columns:28px 64px minmax(0,1fr) 56px}
  .grid.list .vcols span:nth-child(n+2),.lhead .lh:nth-child(n+5){display:none}
  .grid.list .more{grid-column:4}
}

/* ---------------------------------------------------------------- review tools: drawing, zoom, frame grab, loop range, guides */
.ic{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;display:block;margin:auto;pointer-events:none}
.stage{overflow:hidden;touch-action:pan-y}
.zoomer{position:absolute;inset:0;transform-origin:0 0}
.pic{position:absolute;overflow:hidden;pointer-events:none}
.draw-cv{position:absolute;inset:0;width:100%;height:100%}
.guides{position:absolute;inset:0;pointer-events:none}
.pl-wrap.zoomed .stage{cursor:grab;touch-action:none}
.pl-wrap.drawing .stage{cursor:default;touch-action:none}
.pl-wrap.drawing .pic{pointer-events:auto;cursor:crosshair}
.pl-wrap.drawing .tl{opacity:.35;pointer-events:none}
.zoom-badge{display:none;position:absolute;right:12px;top:12px;z-index:4;border:0;border-radius:8px;background:rgba(0,0,0,.62);color:#fff;font:700 12px/1 ui-monospace,Menlo,monospace;padding:7px 10px}
.pl-wrap.zoomed .zoom-badge{display:block}
.zoom-badge:hover{background:var(--accent);color:var(--ink)}
.ptools{display:flex;align-items:center;gap:2px}
.tsep{width:1px;height:18px;background:rgba(255,255,255,.2);margin:0 5px;flex:none}
.cbtn.tool{opacity:.85}
.cbtn.tool:hover{opacity:1}
.cbtn.tool.on{background:var(--accent);color:var(--ink);opacity:1}
@container (max-width:1080px){.cbar{flex-wrap:wrap}.ptools{order:20;flex-basis:100%;margin-top:2px}}
.drawbar{display:none;flex-wrap:wrap;align-items:center;gap:6px 10px;padding:8px 12px;background:#111c27;border-top:1px solid rgba(255,255,255,.08);color:#fff}
.pl-wrap.drawing .drawbar{display:flex}
.pl-wrap.drawing.fs .controls,.pl-wrap.drawing.pseudo-fs .controls{position:static;background:#0b141c;padding:6px 14px 10px}
.dr-group{display:flex;align-items:center;gap:3px}
.dr-group+.dr-group{padding-left:10px;border-left:1px solid rgba(255,255,255,.14)}
.dr-send{flex:1;min-width:230px;gap:6px}
.dbtn{width:32px;height:32px;border:0;border-radius:8px;background:none;color:#fff;padding:0;display:grid;place-items:center}
.dbtn:hover:not(:disabled){background:rgba(255,255,255,.14)}
.dbtn.on{background:var(--accent);color:var(--ink)}
.ddot{display:block;border-radius:50%;background:currentColor}
.dcol{width:22px;height:22px;border-radius:50%;border:2px solid rgba(255,255,255,.35);padding:0;margin:0 2px}
.dcol.on{border-color:#fff;box-shadow:0 0 0 2px var(--accent)}
.dr-text{flex:1;min-width:90px;height:32px;border-radius:8px;border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.08);color:#fff;padding:0 10px}
.dr-text::placeholder{color:rgba(255,255,255,.5)}
.dok,.dcancel{height:32px;border-radius:8px;border:0;padding:0 14px;font-weight:650;white-space:nowrap}
.dok{background:var(--accent);color:var(--ink)}
.dcancel{background:rgba(255,255,255,.12);color:#fff}
.dr-inline{position:absolute;min-width:120px;max-width:70%;margin:0;padding:0 4px;border:1px dashed rgba(255,255,255,.85);border-radius:4px;background:rgba(0,0,0,.45);font-weight:700;line-height:1.25;outline:0}
.pop{display:none;position:absolute;z-index:8;min-width:210px;background:#101a24;border:1px solid rgba(255,255,255,.16);border-radius:12px;padding:6px;color:#fff;box-shadow:0 12px 40px rgba(0,0,0,.55);font-size:13px}
.pop.show{display:block}
.pop hr{border:0;border-top:1px solid rgba(255,255,255,.12);margin:5px 4px}
.pop-item{display:block;width:100%;text-align:left;border:0;background:none;color:#fff;padding:9px 10px;border-radius:8px;white-space:nowrap}
.pop-item:hover:not(:disabled){background:rgba(255,255,255,.12)}
.pop-row{display:flex;align-items:center;gap:8px;padding:7px 10px;border-radius:8px;cursor:pointer}
.pop-row:hover{background:rgba(255,255,255,.08)}
.pop-row input{accent-color:var(--accent);width:15px;height:15px;margin:0}
.pop-sel{background:rgba(255,255,255,.12);color:#fff;border:0;border-radius:6px;height:26px;padding:0 4px}
.pop-sel option{color:#000}
.tl-range{display:none;position:absolute;top:7px;height:13px;margin:0;background:rgba(88,176,255,.32);border-left:2px solid #58b0ff;border-right:2px solid #58b0ff;border-radius:2px;pointer-events:none;box-sizing:border-box;min-width:2px}
.tl-range.open{border-right:0;background:none}
.tl-span{position:absolute;top:3px;height:4px;border-radius:2px;background:#ff7a59;opacity:.85;pointer-events:none;min-width:3px}
.tl-span.done{background:#8b979f}
.g-v,.g-h,.g-cx,.g-cy{position:absolute;background:rgba(255,255,255,.55);box-shadow:0 0 1px rgba(0,0,0,.9)}
.g-v{top:0;bottom:0;width:1px}
.g-h{left:0;right:0;height:1px}
.g-cx{left:46%;right:46%;top:50%;height:1px}
.g-cy{top:44%;bottom:44%;left:50%;width:1px}
.g-safe{position:absolute;border:1px dashed rgba(255,255,255,.7);box-shadow:0 0 1px rgba(0,0,0,.9)}
.g-safe span,.g-crop span{position:absolute;left:4px;top:3px;font-size:10px;line-height:1;color:#fff;text-shadow:0 0 3px #000;white-space:nowrap}
.g-crop{position:absolute;border:1px solid var(--accent);box-shadow:0 0 0 4000px rgba(0,0,0,.6)}
.g-crop span{color:var(--accent)}
.cm-atw{display:flex;align-items:center;gap:4px}
.cm-atx{border:0;background:none;color:var(--muted);font-size:17px;line-height:1;padding:0 4px}
.cm-atx:hover{color:var(--red)}
.cm-nav{display:flex;gap:3px;margin-left:auto}
.cm-nav button{width:26px;height:28px;border:1px solid var(--line);background:var(--card);border-radius:8px;color:var(--muted);font-size:16px;line-height:1;padding:0}
.cm-nav button:hover{border-color:var(--ink);color:var(--ink)}
.cm-pen{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:6px;background:#fff1ec;color:#e2562f}
.cm-pen .ic{width:13px;height:13px}
.cm-text.none{color:var(--muted);font-style:italic}
@media (max-width:820px){.dr-send{min-width:100%}.dr-group+.dr-group{padding-left:6px}}

/* Team review workflow */
.wf-stack{display:flex;flex-direction:column;gap:16px}
.wf-field{display:flex;flex-direction:column;gap:6px;margin:10px 0}
.wf-field>span{font-size:13px;color:var(--muted,#9299a5)}
.wf-switch-row{display:flex;align-items:center;gap:14px;padding:12px 0}
.wf-parts-bar{position:relative;height:30px;margin:8px 0;border-radius:8px;background:rgba(24,47,67,.1);overflow:hidden;touch-action:pan-y;user-select:none;-webkit-user-select:none}
.wf-part{position:absolute;top:0;bottom:0;min-width:3px;background:var(--accent);border-left:2px solid var(--ink);border-right:2px solid var(--ink);box-sizing:border-box}
.wf-part.ghost{background:rgba(243,200,67,.45);border-style:dashed;pointer-events:none}
.wf-parts-list{display:flex;flex-direction:column;gap:6px;margin:6px 0}
.wf-part-row{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.wf-part-row b{min-width:44px;font-size:13px}
.wf-part-row small{white-space:nowrap}
.wf-clock-key{margin-left:50px}
.wf-reply-form{display:none;flex-direction:column;gap:6px;margin-top:6px}
.wf-reply-form.show{display:flex}
.inp.wf-clock{width:118px;height:34px;padding:0 4px;font:600 13px/1 ui-monospace,Menlo,Consolas,monospace;text-align:center}
.wf-steps{margin:2px 0}
.wf-switch{position:relative;display:inline-block;width:48px;height:28px;flex-shrink:0}
.wf-switch input{opacity:0;width:0;height:0}
.wf-slider{position:absolute;inset:0;border-radius:30px;background:#555;cursor:pointer;transition:.2s}
.wf-slider:before{content:"";position:absolute;width:22px;height:22px;left:3px;top:3px;background:white;border-radius:50%;transition:.2s}
.wf-switch input:checked+.wf-slider{background:#b48d17}
.wf-switch input:checked+.wf-slider:before{transform:translateX(20px)}
.wf-switch input:focus-visible+.wf-slider{outline:3px solid #f3c843;outline-offset:3px}
.wf-reply{border-left:2px solid #666;padding:8px 12px;margin:8px 0}
.wf-replies{margin-top:10px;font-size:13px}
.wf-guest{max-width:1100px;margin:32px auto;padding:0 20px}
.wf-video{width:100%;max-height:65vh;background:#000;border-radius:10px}
.wf-compare{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start}
.wf-stage{position:relative;line-height:0}
.wf-compare-draw{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.wf-result .inp{width:100%}
.wf-result{padding-bottom:18px}
@media(max-width:760px){.wf-compare{grid-template-columns:1fr}.top-right{flex-wrap:wrap}.wf-guest{margin:16px auto}}

.wf-stage .wf-video{display:block;max-height:none;height:auto}

/* player: waiting for the H.264 copy on a browser that cannot play the original */
.pl-wait{max-width:520px;margin:18vh auto 0;padding:0 20px;text-align:center;color:var(--muted,#6b7280);line-height:1.8}

/* accounts and bug reports */
.pill.root{background:#fdf3d0;color:#7a5b00}
td.acts{flex-wrap:wrap;row-gap:4px}
.bug-admin h3{display:flex;align-items:center}
.bug-list{display:flex;flex-direction:column;gap:12px;margin-top:14px}
.bug-item{border:1px solid var(--line);border-radius:12px;padding:14px 16px;background:#fbfbf9}
.bug-item.new{border-color:#e9c96a;background:#fffbee}
.bug-meta{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;font-size:13px}
.bug-text{margin:8px 0 4px;white-space:pre-wrap;word-break:break-word}
.bug-ua{display:block;font-size:11px;word-break:break-all}
.bug-ctl{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px 14px;margin-top:12px}
.bug-ctl label{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--muted)}
.bug-ctl label.grow{flex:1 1 220px}
.bug-ctl label.grow .inp{width:100%}
.bug-box{border-top:1px solid var(--line);flex:none}
.bug-box summary{display:flex;align-items:center;gap:8px;padding:11px 16px;font-size:13px;font-weight:600;color:#7a5b00;background:#fffbee;cursor:pointer;list-style:none;user-select:none}
.bug-box summary::-webkit-details-marker{display:none}
.bug-box summary::after{content:"+";margin-left:auto;font-size:16px;color:#b08900}
.bug-box[open] summary::after{content:"−"}
.bug-dot{width:8px;height:8px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 3px rgba(243,200,67,.3);flex:none}
.bug-body{padding:12px 16px 14px;max-height:46vh;overflow:auto}
.bug-body p{font-size:13px;line-height:1.7;color:var(--muted);margin:0 0 10px}
.bug-body small{display:block;margin-top:6px;font-size:11px}
.bug-body .row.end{margin-top:10px;align-items:center;gap:14px}
.bug-mine{margin-top:12px}
.bug-mine-item{border-top:1px solid var(--line);padding:10px 0}
.bug-mine-item p{margin:6px 0 0;font-size:13px;color:var(--ink);white-space:pre-wrap;word-break:break-word}
.bug-mine-item .pill{margin-left:0;margin-right:6px}
.bug-mine-item .bug-reply{padding-left:10px;border-left:3px solid var(--accent);color:var(--muted)}
.pill.st-confirmed,.pill.st-fixed{background:#e5f3e8;color:var(--green)}
.pill.vip{background:#fdf3d0;color:#7a5b00}

/* player: quality button, buffering notice */
.cbtn.qbtn{width:auto;min-width:44px;padding:0 9px;height:30px;border-radius:7px;background:rgba(255,255,255,.1);font-size:12px;font-weight:600}
.cbtn.qbtn.on{background:var(--accent);color:var(--ink)}
.pop-item.q-item b{display:block;font-weight:600}
.pop-item.q-item small{display:block;margin-top:2px;font-size:11px;opacity:.65;white-space:normal}
.pop-item.q-item.sel b::after{content:" ✓";color:var(--accent)}
.pop-item:disabled{opacity:.45}
.buf{display:none;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:3;align-items:center;gap:10px;padding:10px 16px;border-radius:999px;background:rgba(0,0,0,.66);color:#fff;font-size:13px;pointer-events:none;white-space:nowrap}
.buf.show{display:flex}
.buf i{width:16px;height:16px;border-radius:50%;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;animation:bufspin .8s linear infinite;flex:none}
@keyframes bufspin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.buf i{animation-duration:2.4s}}

/* Language names stay readable without downloading font packs. */
.locale-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.locale-grid .btn{white-space:normal;min-height:44px}.fb-lang{max-width:180px;white-space:normal}.top{flex-wrap:wrap}.top-right{flex-wrap:wrap}.fb-tool,.fb-role-list article,.fb-steps li{min-width:0;overflow-wrap:anywhere}@media(max-width:440px){.fb-lang{max-width:125px}.locale-grid{grid-template-columns:1fr}.top-right{gap:10px}}
.bill-link{font-weight:650;color:var(--ink)}.bill-link.on{text-decoration:underline}
.tl-ai-marks{position:absolute;inset:0;pointer-events:none}
.tl-ai{position:absolute;top:-12px;width:9px;height:9px;margin-left:-4.5px;padding:0;border:1px solid #fff;background:#7f77dd;transform:rotate(45deg);pointer-events:auto;cursor:pointer;z-index:2}
.tl-ai.high{background:#534ab7}.tl-ai:hover{transform:rotate(45deg) scale(1.4)}
.ai-note{display:flex;flex-wrap:wrap;gap:6px;align-items:baseline;padding:6px 0;border-top:1px solid var(--line)}
.ai-note p{margin:0;flex:1 1 100%}.ai-note-tag{font-size:11px;font-weight:650;color:#3c3489;background:#eeedfe;border-radius:4px;padding:1px 6px}
.ai-organize{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:0 16px 8px}.ai-organize:empty{display:none}
.ai-entry{padding:0;margin:4px 0}.ai-organize-label{font-size:12px;font-weight:650;color:#3c3489}
.ai-comment-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:6px;font-size:13px}
.ai-bulk{display:flex;flex-direction:column;gap:6px;padding:10px 12px;border:1px solid var(--line,#ddd);border-radius:10px}
.ai-bulk-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.ai-bulk-row>:first-child{min-width:170px}
/* payments */
.ok-box{background:#eef6f0;color:#1f5133;border-radius:10px;padding:10px 14px;font-size:13px;margin:12px 0}
.pay-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}
.pay-card{display:flex;flex-direction:column;gap:8px;padding:14px;border:1px solid var(--line);border-radius:12px;background:#fff;min-width:0}
.pay-price{font-size:24px;font-weight:700}
.row.wrapx.pay-methods{justify-content:flex-start}.pay-methods>[hidden]{display:none}
.pay-facts{display:grid;grid-template-columns:auto 1fr;gap:6px 16px;margin:0}.pay-facts dt{color:var(--muted)}.pay-facts dd{margin:0;overflow-wrap:anywhere}
.pay-ok{color:#2d6a43;font-size:13px;font-weight:600}.pay-warn{color:#9a4a1b;font-size:13px;font-weight:600}
.pay-products td{vertical-align:top}.pay-mini{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--muted)}.pay-mini+.pay-mini{margin-top:6px}.pay-products td .inp+.inp{margin-top:6px}

/* phone header: the bar grows with what it holds (it used to stay 60px high and spill over the page title);
   at phone width its links flow over two tidy rows and the bar scrolls away with the page */
@media (max-width:640px){
  .top{position:relative;column-gap:10px;padding:6px 12px}
  .top nav a{padding:6px 8px}
  .top-right{display:contents}
  .top-right .link{font-size:13px}
}

/* folder menu: there is no hover on a touch screen, so the ⋯ button is always shown there */
@media (hover:none),(max-width:820px){.more{opacity:1}}

/* uploads: each running file can be cancelled; × (or the title) folds the panel to one line while files run;
   on a phone the panel is a bar along the bottom that stays out of the way of the selection bar */
.up-head .up-title{display:flex;flex-direction:column;align-items:stretch;gap:5px;flex:1;min-width:0;background:none;border:0;padding:0;text-align:left;color:inherit;font:inherit}
.up-total{width:100%}
.uploads.min .up-list{display:none}
.uploads.min .up-head{border-bottom:0}
.up-row{display:flex;align-items:center;gap:6px}
.up-row .up-name{flex:1;min-width:0}
.up-cancel{flex:none;width:24px;height:24px;border-radius:6px;font-size:18px}
.up-cancel:hover{background:rgba(179,38,30,.08);color:var(--red)}
.up-meta.warn{color:#9a4a1b}
@media (max-width:640px){
  .uploads{top:auto;left:10px;right:10px;bottom:calc(10px + env(safe-area-inset-bottom,0px));width:auto;max-width:none;max-height:45vh}
  body:has(.selbar.show) .uploads .up-list{display:none}
  body:has(#uploads) .selbar.show{bottom:calc(74px + env(safe-area-inset-bottom,0px))}
}

/* a failed video: the uploader can have it processed again (library card and player) */
.state-box{display:flex;flex-direction:column;align-items:center;gap:8px}
.state-box .btn{background:var(--accent);border-color:var(--accent);color:var(--ink)}
.pl-wait-acts{justify-content:center;margin-top:16px}
/* guest page: who invites at the door; on a wide screen the box for writing sits beside the picture */
.wf-guest-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.wf-guest-top h1{font-size:20px;margin:0}
.wf-guest-who{font-size:22px;line-height:1.45;margin:6px 0 0}
.wf-guest-door{max-width:560px}
.wf-guest-main{display:flex;flex-direction:column;gap:16px}
.wf-guest-write{display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.wf-guest-write .inp{width:100%}
@media(min-width:1000px){
  .wf-guest{max-width:1320px}
  .wf-guest-main.has-side{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:20px;align-items:start}
  .wf-guest-main.has-side .wf-video{max-height:calc(100vh - 230px)}
  .wf-guest-side{position:sticky;top:12px;max-height:calc(100vh - 24px);overflow:auto}
}
.auth-hint:empty{display:none}
.auth-hint{margin-top:6px}
/* choosing parts: marks under the bar; the guest page's way on when a part has ended */
.wf-parts-scale{display:flex;justify-content:space-between;margin:-4px 0 6px;font:11px ui-monospace,Menlo,Consolas,monospace;color:var(--muted)}
.wf-guest-next{display:none;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 14px;border-radius:12px;background:#fff6d6;border:1px solid #ecd98a;font-weight:600}
.wf-guest-next.show{display:flex}
.auth-remember{gap:8px;margin-top:12px;font-size:13px;color:var(--muted);align-items:center}
.merge-layer{gap:8px;margin-top:10px;align-items:center;font-size:13px}
.marquee{position:fixed;z-index:60;border:1px solid var(--ink);background:rgba(243,200,67,.18);border-radius:3px;pointer-events:none}
/* who is online, in the top right of the team's members card: one row, an arrow for up to twenty names, then it scrolls */
.on-box{display:flex;flex-direction:column;align-items:flex-end;gap:4px;max-width:46%;margin-right:14px}
.on-head{display:flex;align-items:center;gap:8px;color:var(--muted)}
.on-more{text-decoration:none;font-size:14px;padding:0 4px}
.on-list{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:4px 12px;font-size:12px}
/* opened: four names a row; twenty names (five rows) show, more than that scrolls -- the owner's number */
.on-box.open .on-list{display:grid;grid-template-columns:repeat(4,auto);padding-right:4px}
.on-box.open .on-mem{line-height:18px;max-width:9em;overflow:hidden;text-overflow:ellipsis}
.on-box.open .on-list.scroll{max-height:106px;overflow-y:auto}
.on-mem{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;color:var(--muted)}
.on-mem.on{color:var(--ink)}
.on-mem i{width:8px;height:8px;border-radius:50%;background:#c9ccd1;flex:none}
.on-mem.on i{background:#2fb65a;box-shadow:0 0 0 3px rgba(47,182,90,.18)}
/* a team's trash bin */
.trash-row{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid #e9e6df}
.trash-what{flex:1;min-width:0;display:flex;flex-direction:column}
.trash-what b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.trash-what .hint{margin-top:2px}
/* the mark after a VIP account's name */
.vip-mark{display:inline-block;margin-left:6px;padding:0 6px;border-radius:99px;background:var(--accent);color:var(--ink);font-size:10px;font-weight:800;line-height:16px;letter-spacing:.04em;vertical-align:middle}
