/* Free video tools (api/src/vidtools.js, web/tools/vidtools.js), every class vt-. Loads after seo.css and tools.css
   (the hero, privacy pill and how-to steps come from tools.css). Studio look: controls left, cards right, toolbar on top. */
.vt-app{--vt-a:0%;--vt-b:100%;margin:28px 0 0;display:grid;grid-template-columns:360px minmax(0,1fr);gap:24px;align-items:start}
.vt-app :focus-visible{outline:2px solid var(--acc);outline-offset:2px}
.vt-ic{width:20px;height:20px;flex:none}
.vt-app .vt-h{margin:0 0 12px;font-size:15px;font-weight:600;letter-spacing:0;color:var(--t1)}
.vt-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.vt-p{max-width:820px;margin:0 0 12px;font-size:17px;color:var(--t2)}
.vt-p a,.vt-rel a{color:var(--acc-text);font-weight:500}

.vt-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:44px;padding:0 18px;border-radius:12px;background:var(--t1);border:1px solid var(--t1);color:#fff;font-weight:600;font-size:15px;line-height:1;font-family:inherit;text-decoration:none;cursor:pointer;transition:transform .15s,background .15s,opacity .15s}
.vt-btn:hover{background:#292524}.vt-btn:active{transform:scale(.97)}
.vt-btn:disabled{opacity:.45;cursor:default;transform:none}
.vt-btn[hidden]{display:none}
.vt-ghost{background:var(--p);color:var(--t1);border-color:var(--line)}.vt-ghost:hover{background:var(--p);border-color:#d6d3d1}
.vt-sm{height:34px;padding:0 12px;font-size:13.5px;border-radius:10px}
.vt-file{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}
.vt-file:focus-visible+.vt-btn{outline:2px solid var(--acc);outline-offset:2px}

/* left panel */
.vt-side{position:sticky;top:96px;max-height:calc(100vh - 112px);overflow:auto;padding:20px;border:1px solid var(--line);border-radius:22px;background:var(--p);overscroll-behavior:contain}
.vt-side .vt-h{margin-top:22px}.vt-side .vt-h:first-child{margin-top:0}
.vt-drop{display:flex;flex-direction:column;align-items:center;gap:10px;padding:20px 16px;border:1.5px dashed #d6d3d1;border-radius:18px;background:var(--s2);text-align:center;transition:border-color .15s,background .15s}
.vt-drop .vt-ic{width:28px;height:28px;color:var(--t3)}
.vt-drop p{margin:0;font-size:14px;color:var(--t3)}
.vt-drop.vt-over{border-color:var(--acc);background:var(--acc-soft)}
.vt-has .vt-drop{flex-direction:row;flex-wrap:wrap;justify-content:center;padding:12px}
.vt-has .vt-drop .vt-ic,.vt-has .vt-drop p{display:none}
.vt-has .vt-drop .vt-btn{height:38px;font-size:14px;background:var(--p);color:var(--t1);border-color:var(--line)}

.vt-tasks{margin:0;padding:0;border:0;display:grid;grid-template-columns:1fr 1fr;gap:6px}
.vt-task{display:flex;gap:8px;align-items:flex-start;padding:10px;border:1px solid var(--line);border-radius:12px;background:var(--p);cursor:pointer;transition:border-color .15s,box-shadow .15s}
.vt-task:has(input:checked){border-color:var(--acc);box-shadow:0 0 0 3px var(--acc-soft)}
.vt-task input,.vt-opt input,.vt-check input,.vt-mini input{accent-color:var(--acc);margin:2px 0 0;flex:none;width:16px;height:16px}
.vt-task b,.vt-opt b{display:block;font-size:14px;font-weight:600;line-height:1.3}
.vt-task small,.vt-opt small{display:block;font-size:12.5px;color:var(--t3);line-height:1.3}

.vt-set{margin:0 0 14px;padding:0;border:0;min-width:0;display:grid;gap:10px}
.vt-set[hidden]{display:none}
.vt-set legend{padding:0;margin:0 0 8px;font-size:12.5px;font-weight:600;letter-spacing:.02em;text-transform:uppercase;color:var(--t3)}
.vt-chips{display:flex;flex-wrap:wrap;gap:6px}
.vt-chip{position:relative;cursor:pointer}
.vt-chip input{position:absolute;opacity:0;width:1px;height:1px}
.vt-chip span{display:inline-flex;align-items:center;height:36px;padding:0 13px;border:1px solid var(--line);border-radius:999px;background:var(--p);font-size:14px;font-weight:500;font-variant-numeric:tabular-nums;transition:border-color .15s,background .15s}
.vt-chip input:checked+span{border-color:var(--acc);background:var(--acc-soft);color:var(--acc-text)}
.vt-chip input:focus-visible+span{outline:2px solid var(--acc);outline-offset:2px}
.vt-chip:active span{transform:scale(.97)}
.vt-check{display:flex;gap:8px;align-items:flex-start;font-size:14px;color:var(--t2);cursor:pointer}
.vt-field{display:grid;gap:4px;font-size:13px;font-weight:500;color:var(--t2)}
.vt-field[hidden]{display:none}
.vt-field input,.vt-field select{height:40px;padding:0 10px;border:1px solid var(--line);border-radius:10px;background:var(--p);font-size:15px;line-height:1;font-family:inherit;color:var(--t1);min-width:0}
.vt-field input:disabled{background:var(--s2);color:var(--t3)}
.vt-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.vt-note{margin:0;font-size:13px;color:var(--t3)}
.vt-ratios{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.vt-ratio{display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 4px 8px;border:1px solid var(--line);border-radius:12px;cursor:pointer;transition:border-color .15s,box-shadow .15s}
.vt-ratio:has(input:checked){border-color:var(--acc);box-shadow:0 0 0 3px var(--acc-soft)}
.vt-ratio:has(input:focus-visible){outline:2px solid var(--acc);outline-offset:2px}
.vt-ratio input{position:absolute;opacity:0;width:1px;height:1px}
.vt-ratio b{font-size:13.5px;font-variant-numeric:tabular-nums}
.vt-shape{display:block;border:1.5px solid var(--t2);border-radius:3px}
.vt-ratio:has(input:checked) .vt-shape{border-color:var(--acc-text);background:rgba(121,90,249,.18)}
.vt-s916{width:14px;height:25px}.vt-s11{width:22px;height:22px}.vt-s45{width:19px;height:24px}.vt-s169{width:28px;height:16px;margin:4px 0 5px}
.vt-fills{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.vt-opt{display:flex;gap:8px;align-items:flex-start;padding:10px;border:1px solid var(--line);border-radius:12px;cursor:pointer;transition:border-color .15s,box-shadow .15s}
.vt-opt:has(input:checked){border-color:var(--acc);box-shadow:0 0 0 3px var(--acc-soft)}
.vt-bgs{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px}
.vt-bgs[hidden]{display:none}
.vt-mini{display:inline-flex;align-items:center;gap:6px;font-size:14px;cursor:pointer}.vt-mini input{margin:0}
.vt-color{width:40px;height:30px;padding:2px;border:1px solid var(--line);border-radius:8px;background:var(--p);cursor:pointer}
.vt-caps{margin:6px 0 0;padding:10px 12px;border-radius:12px;background:var(--s2);font-size:13px;line-height:1.45;color:var(--t2)}
.vt-caps.vt-bad{background:#fef3c7;color:#78350f}

/* toolbar */
.vt-main{min-width:0}
.vt-bar{position:sticky;top:85px;z-index:2;display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px 16px;padding:14px 16px;border:1px solid var(--line);border-radius:18px;background:rgba(255,255,255,.94);backdrop-filter:blur(10px)}
.vt-fmt select{min-width:110px}
.vt-go{min-width:140px}
.vt-progress{flex:1 1 200px;display:grid;gap:4px;min-width:0;align-self:center;visibility:hidden}
.vt-busy .vt-progress{visibility:visible}
.vt-progress progress{width:100%;height:8px;border:0;border-radius:99px;background:var(--s2);accent-color:var(--acc);overflow:hidden;appearance:none}
.vt-progress progress::-webkit-progress-bar{background:var(--s2);border-radius:99px}
.vt-progress progress::-webkit-progress-value{background:var(--acc);border-radius:99px;transition:width .2s}
.vt-progress progress::-moz-progress-bar{background:var(--acc);border-radius:99px}
.vt-plabel{font-size:13px;color:var(--t2);font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* cards */
.vt-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:16px}
.vt-card{min-width:0;padding:18px;border:1px solid var(--line);border-radius:20px;background:var(--p)}
.vt-stage{position:relative;display:flex;align-items:center;justify-content:center;min-height:300px;padding:12px;border-radius:14px;background:var(--s2);touch-action:none}
.vt-frame{position:relative;display:inline-block;line-height:0;max-width:100%}
.vt-media{display:block;max-width:100%;max-height:440px;border-radius:8px;background:#0c0a09}
.vt-media[hidden]{display:none}
img.vt-media{background:transparent}
.vt-empty{margin:0;font-size:14px;color:var(--t3);text-align:center}
.vt-empty[hidden]{display:none}
.vt-card>.vt-empty{display:flex;align-items:center;justify-content:center;min-height:300px;padding:12px;border-radius:14px;background:var(--s2)}
.vt-card>.vt-empty[hidden]{display:none}
.vt-has .vt-wait{display:none}
.vt-cropping{cursor:move}
.vt-crop{position:absolute;box-sizing:border-box;border:2px solid #fff;border-radius:3px;box-shadow:0 0 0 1px rgba(12,10,9,.5),0 0 0 9999px rgba(12,10,9,.55);cursor:move}
.vt-crop[hidden]{display:none}
.vt-frame:has(.vt-crop:not([hidden])){overflow:hidden;border-radius:8px}
.vt-fileinfo{margin:12px 0 0;font-size:13.5px;color:var(--t2);overflow-wrap:anywhere}
.vt-fileinfo b{color:var(--t1)}

/* trim: two range inputs on one track; the chosen part is coloured from --vt-a to --vt-b (set by the script) */
.vt-trim{margin-top:14px}
.vt-trim[hidden]{display:none}
.vt-track{position:relative;height:28px}
.vt-track::before{content:"";position:absolute;left:0;right:0;top:11px;height:6px;border-radius:99px;background:linear-gradient(90deg,var(--line) var(--vt-a),var(--acc) var(--vt-a),var(--acc) var(--vt-b),var(--line) var(--vt-b))}
.vt-app[data-task="thumb"] .vt-track::before{background:var(--line)}
.vt-range{position:absolute;inset:0;width:100%;height:28px;margin:0;background:none;pointer-events:none;appearance:none;-webkit-appearance:none}
.vt-range[hidden]{display:none}
.vt-range::-webkit-slider-runnable-track{background:none;height:28px}
.vt-range::-moz-range-track{background:none}
.vt-range::-webkit-slider-thumb{pointer-events:auto;-webkit-appearance:none;appearance:none;width:18px;height:28px;border-radius:6px;background:var(--p);border:2px solid var(--acc);box-shadow:0 1px 4px rgba(12,10,9,.2);cursor:ew-resize}
.vt-range::-moz-range-thumb{pointer-events:auto;width:14px;height:24px;border-radius:6px;background:var(--p);border:2px solid var(--acc);cursor:ew-resize}
.vt-times{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px 10px;margin-top:6px}
.vt-gap{flex:1}
.vt-time input{width:92px;font-variant-numeric:tabular-nums}
.vt-time[hidden]{display:none}
.vt-len{margin:2px 0 0;min-height:1.4em;text-align:center;font-size:13px;font-weight:600;color:var(--t2);font-variant-numeric:tabular-nums}

.vt-outmedia{display:flex;align-items:center;justify-content:center;min-height:300px;padding:12px;border-radius:14px;background:var(--s2)}
.vt-stats{display:grid;grid-template-columns:auto minmax(0,1fr);gap:6px 14px;margin:14px 0;font-size:14px}
.vt-stats dt{color:var(--t3)}.vt-stats dd{margin:0;font-weight:500;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.vt-dl{width:100%}
.vt-status{margin:12px 0 0;min-height:1.5em;font-size:14.5px;color:var(--t2)}

/* SEO parts */
.vt-table td.vt-num{white-space:nowrap;font-variant-numeric:tabular-nums;font-weight:500}
.vt-table td a{color:var(--t2)}
.vt-rel{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:10px}
.vt-rel a{display:inline-flex;align-items:center;height:42px;padding:0 16px;border:1px solid var(--line);border-radius:999px;background:var(--p);text-decoration:none;transition:border-color .15s}
.vt-rel a:hover{border-color:var(--acc)}.vt-rel a:active{transform:scale(.97)}

/* the studio breaks out of the 1120px column on wide screens; 60px spare keeps a scrollbar from adding sideways scroll */
@media (min-width:1600px){.vt-wide{width:min(1520px,calc(100vw - 60px));margin-left:50%;transform:translateX(-50%)}}
@media (max-width:1599px){.vt-cards{grid-template-columns:1fr}}
@media (max-width:1100px){.vt-app{grid-template-columns:320px minmax(0,1fr)}}
@media (max-width:860px){
  .vt-app{grid-template-columns:1fr}
  .vt-side{position:static;max-height:none;overflow:visible}
  .vt-bar{top:74px}
}
@media (max-width:720px){
  .vt-field input,.vt-field select{font-size:16px}
  .vt-bar{position:static;padding:12px}
  .vt-go{flex:1}
  .vt-stage,.vt-outmedia,.vt-card>.vt-empty{min-height:200px}
  .vt-media{max-height:60vh}
  .vt-card{padding:14px}
  .vt-gap{flex-basis:100%;height:0}
  .vt-table{min-width:640px}
}
