
  :root {
    --bg:#0a0a0a;
    --panel:#121212;
    --panel-2:#181818;
    --ink:#fafafa;
    --ink-60:rgba(250,250,250,.6);
    --ink-40:rgba(250,250,250,.38);
    --line:rgba(255,255,255,.08);
    --line-strong:rgba(255,255,255,.18);
    --red:#e5484d;
    --red-bg:rgba(229,72,77,.08);
  }
  * { box-sizing:border-box; margin:0; padding:0; }
  body {
    background:var(--bg); color:var(--ink);
    font-family:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif !important;
    min-height:100vh; -webkit-font-smoothing:antialiased; padding-top:60px;
  }

  /* ── NAV ── */
  nav {
    position:fixed; top:0; left:0; right:0; z-index:300; height:60px;
    display:flex; align-items:center; justify-content:space-between; padding:0 48px;
    background:rgba(10,10,10,.88); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
    border-bottom:1px solid var(--line);
  }
  @media (max-width:640px){ nav { padding:0 20px; } }
  .nav-brand { text-decoration:none; display:flex; align-items:center; gap:8px; }
  .nav-brand img { height:30px; width:auto; display:block; }
  .nav-brand .b1 { font-weight:300; color:var(--ink-60); }
  .nav-brand .b2 { font-weight:600; color:var(--ink); }
  .nav-right { display:flex; align-items:center; gap:22px; }
  .nav-link { color:var(--ink-60); font-size:.85rem; font-weight:500; text-decoration:none; }
  .nav-link:hover { color:var(--ink); }
  .nav-launch { background:#fff; color:#0a0a0a; font-size:.85rem; font-weight:700; padding:9px 22px; border-radius:50px; text-decoration:none; }

  .frame { max-width:960px; margin:0 auto; padding:0 24px 96px; }

  /* ── HEADER ── */
  .page-head { padding:58px 0 36px; text-align:center; }
  .eyebrow { display:inline-block; font-size:11px; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:var(--ink-40); margin-bottom:16px; }
  .page-head h1 { font-size:clamp(1.9rem,3.2vw,2.9rem); font-weight:800; letter-spacing:-.03em; line-height:1.14; margin-bottom:14px; color:#fff; }
  .page-head .lede { color:var(--ink-60); font-size:16px; line-height:1.65; max-width:600px; margin:0 auto; }
  .trust { display:flex; justify-content:center; gap:10px 26px; flex-wrap:wrap; margin-top:24px; }
  .trust span { display:inline-flex; align-items:center; gap:7px; font-size:12.5px; color:var(--ink-60); font-weight:500; }

  /* ── STEPPER ── */
  .stepper { display:flex; justify-content:center; margin:38px 0 28px; }
  .stepper .s { display:flex; align-items:center; gap:9px; font-size:12.5px; font-weight:600; color:var(--ink-40); padding:0 18px; position:relative; }
  .stepper .s + .s::before { content:""; position:absolute; left:-14px; top:50%; width:28px; height:1px; background:var(--line-strong); transform:translateY(-50%); }
  .stepper .num { width:24px; height:24px; border-radius:50%; border:1.5px solid var(--line-strong); display:inline-flex; align-items:center; justify-content:center; font-size:11.5px; font-weight:700; color:var(--ink-40); transition:all .25s; }
  .stepper .s.active { color:var(--ink); }
  .stepper .s.active .num { background:#fff; border-color:#fff; color:#0a0a0a; }
  .stepper .s.done { color:var(--ink-60); }
  .stepper .s.done .num { border-color:var(--ink-60); color:var(--ink-60); }
  @media (max-width:640px){ .stepper .label { display:none; } .stepper .s { padding:0 10px; } }

  /* ── PANELS ── */
  .panel { background:var(--panel); border:1px solid var(--line); border-radius:14px; padding:28px; margin-bottom:16px; }
  .panel-title { font-size:11.5px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--ink-40); margin-bottom:18px; }

  /* ── UPLOAD ── */
  .dropzone { border:1.5px dashed var(--line-strong); border-radius:12px; padding:56px 30px; text-align:center; cursor:pointer; position:relative; transition:border-color .2s, background .2s; }
  .dropzone:hover, .dropzone.drag { border-color:#fff; background:rgba(255,255,255,.03); }
  .dropzone input { position:absolute; inset:0; opacity:0; cursor:pointer; width:100%; height:100%; }
  .dropzone h3 { font-size:16.5px; font-weight:700; margin:14px 0 6px; color:#fff; }
  .dropzone p { font-size:13.5px; color:var(--ink-60); }
  .dz-formats { margin-top:16px; font-size:12px; color:var(--ink-40); }

  /* ── EDITOR ── */
  #editor { display:none; }
  #editor.show { display:block; }

  .video-shell { background:#000; border-radius:12px; overflow:hidden; position:relative; border:1px solid var(--line); }
  #videoPlayer { width:100%; max-height:48vh; display:block; object-fit:contain; background:#000; }

  /* draggable preview bands */
  .band { position:absolute; left:0; right:0; display:flex; justify-content:center; cursor:grab; touch-action:none; padding:2px 24px; z-index:5; }
  .band.dragging { cursor:grabbing; }
  .band .band-inner { display:flex; flex-direction:column; align-items:center; gap:2px; pointer-events:none; }
  .band .band-text { font-weight:700; line-height:1.3; text-align:center; border-radius:3px; white-space:nowrap; max-width:90vw; overflow:hidden; text-overflow:ellipsis; }
  .band .band-tag { font-size:10px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:rgba(255,255,255,.85); background:rgba(0,0,0,.55); border:1px solid rgba(255,255,255,.25); padding:1px 7px; border-radius:999px; }
  .band:hover .band-tag, .band.dragging .band-tag { background:#fff; color:#000; }

  .filemeta { display:flex; align-items:center; justify-content:space-between; gap:14px; margin:14px 0 0; padding:12px 16px; background:var(--panel-2); border:1px solid var(--line); border-radius:10px; }
  .filemeta .fname { font-size:13.5px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .filemeta .fsize { font-size:12px; color:var(--ink-60); margin-top:2px; font-variant-numeric:tabular-nums; }
  .estline { margin-top:12px; font-size:12.5px; color:var(--ink-60); line-height:1.5; display:none; }
  .estline.show { display:block; }
  .estline strong { color:var(--ink); font-variant-numeric:tabular-nums; }

  .btn-ghost { background:transparent; border:1px solid var(--line-strong); border-radius:8px; padding:8px 14px; color:var(--ink-60); font-size:12.5px; font-weight:600; cursor:pointer; white-space:nowrap; font-family:inherit; }
  .btn-ghost:hover { border-color:#fff; color:var(--ink); }

  /* ── TRACKS ── */
  .track-row { display:grid; grid-template-columns:1fr 150px 34px; gap:10px; align-items:center; margin-bottom:10px; }
  @media (max-width:560px){ .track-row { grid-template-columns:1fr 120px 34px; } }
  .track-row select, .fld select {
    width:100%; background:var(--panel-2); border:1px solid var(--line-strong); border-radius:9px;
    padding:10px 12px; font-size:13.5px; color:var(--ink); cursor:pointer; appearance:none; font-family:inherit;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23fafafa' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat:no-repeat; background-position:right 12px center;
  }
  .track-row select:focus, .fld select:focus { outline:none; border-color:#fff; }
  .track-x { width:34px; height:38px; border-radius:8px; border:1px solid var(--line); background:transparent; color:var(--ink-40); font-size:15px; cursor:pointer; }
  .track-x:hover { border-color:var(--red); color:var(--red); }
  .track-x:disabled { opacity:.25; cursor:not-allowed; }
  .add-track { margin-top:4px; background:transparent; border:1px dashed var(--line-strong); border-radius:9px; padding:10px; width:100%; color:var(--ink-60); font-size:13px; font-weight:600; cursor:pointer; font-family:inherit; }
  .add-track:hover { border-color:#fff; color:var(--ink); }
  .add-track:disabled { opacity:.3; cursor:not-allowed; }
  .track-hint { font-size:12px; color:var(--ink-40); margin-top:10px; line-height:1.5; }

  .fld label { font-size:11px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--ink-40); display:block; margin-bottom:7px; }
  .opts3 { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
  @media (max-width:560px){ .opts3 { grid-template-columns:1fr; } }

  /* ── SEGMENT (collapsed by default) ── */
  .seg-toggle { display:flex; align-items:center; justify-content:space-between; gap:12px; }
  .seg-toggle .lbl { font-size:13.5px; font-weight:600; }
  .seg-toggle .sub { font-size:12px; color:var(--ink-40); margin-top:3px; }
  .switch { position:relative; width:42px; height:24px; flex-shrink:0; cursor:pointer; }
  .switch input { opacity:0; width:0; height:0; }
  .switch .sl { position:absolute; inset:0; background:var(--line-strong); border-radius:999px; transition:.2s; }
  .switch .sl::before { content:""; position:absolute; width:18px; height:18px; left:3px; top:3px; background:#0a0a0a; border-radius:50%; transition:.2s; }
  .switch input:checked + .sl { background:#fff; }
  .switch input:checked + .sl::before { transform:translateX(18px); }
  #segTools { display:none; margin-top:20px; }
  #segTools.show { display:block; }

  .tl-head { display:flex; align-items:center; gap:14px; margin-bottom:12px; flex-wrap:wrap; }
  .play-btn { width:36px; height:36px; border-radius:50%; border:1px solid var(--line-strong); background:#fff; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; }
  .time-display { font-size:13px; font-variant-numeric:tabular-nums; color:var(--ink-60); }
  .seg-chip { margin-left:auto; background:var(--panel-2); border:1px solid var(--line-strong); border-radius:8px; padding:6px 12px; font-size:12px; font-weight:700; font-variant-numeric:tabular-nums; color:var(--ink); }
  .tl-bar { position:relative; height:10px; background:rgba(255,255,255,.08); border-radius:5px; margin:16px 12px 6px; cursor:pointer; touch-action:none; }
  .tl-filled { position:absolute; top:0; left:0; height:100%; background:rgba(255,255,255,.2); border-radius:5px; pointer-events:none; }
  .tl-region { position:absolute; top:0; height:100%; background:#fff; border-radius:5px; pointer-events:none; }
  .tl-handle { position:absolute; top:50%; transform:translate(-50%,-50%); width:20px; height:20px; border-radius:50%; background:#fff; border:2px solid #0a0a0a; box-shadow:0 0 0 1.5px #fff, 0 1px 6px rgba(0,0,0,.6); cursor:ew-resize; z-index:10; touch-action:none; }
  .tl-handle::after { content:""; position:absolute; inset:-10px; }
  .tl-labels { display:flex; justify-content:space-between; font-size:11.5px; color:var(--ink-40); margin:8px 12px 0; font-variant-numeric:tabular-nums; }
  .precise { display:flex; gap:12px; margin-top:16px; flex-wrap:wrap; }
  .precise .pg { flex:1; min-width:130px; }
  .precise label { font-size:11px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--ink-40); display:block; margin-bottom:6px; }
  .precise input { width:100%; background:var(--panel-2); border:1px solid var(--line-strong); border-radius:9px; padding:10px 12px; font-size:14px; color:var(--ink); font-variant-numeric:tabular-nums; font-family:inherit; }
  .precise input:focus { outline:none; border-color:#fff; }

  /* ── ACTION ── */
  .btn-primary { width:100%; padding:16px; background:#fff; border:none; border-radius:11px; color:#0a0a0a; font-size:15px; font-weight:800; cursor:pointer; letter-spacing:.01em; display:flex; align-items:center; justify-content:center; gap:10px; transition:opacity .2s; font-family:inherit; }
  .btn-primary:disabled { opacity:.3; cursor:not-allowed; }
  .btn-primary:not(:disabled):hover { opacity:.85; }

  /* ── PROGRESS ── */
  #progress { display:none; }
  #progress.show { display:block; }
  .pbar-label { display:flex; justify-content:space-between; font-size:12.5px; color:var(--ink-60); font-weight:600; margin-bottom:8px; font-variant-numeric:tabular-nums; }
  .pbar-label .strong { color:var(--ink); font-weight:700; }
  .pbar { height:8px; background:rgba(255,255,255,.08); border-radius:4px; overflow:hidden; margin-bottom:18px; }
  .pbar-fill { height:100%; width:0%; background:#fff; border-radius:4px; transition:width .4s; }
  .stage-line { display:flex; justify-content:space-between; align-items:center; font-size:13px; color:var(--ink-60); padding:10px 14px; background:var(--panel-2); border:1px solid var(--line); border-radius:9px; }
  .stage-line .stage-name { display:inline-flex; align-items:center; gap:10px; font-weight:600; color:var(--ink); }
  .stage-line .times { font-variant-numeric:tabular-nums; }
  .spinner { width:14px; height:14px; border:2px solid rgba(255,255,255,.18); border-top-color:#fff; border-radius:50%; animation:spin .7s linear infinite; display:inline-block; }
  @keyframes spin { to { transform:rotate(360deg); } }

  /* ── RESULT ── */
  #result { display:none; }
  #result.show { display:block; }
  .result-box { background:var(--panel-2); border:1px solid var(--line-strong); border-radius:12px; padding:30px; text-align:center; }
  .result-box h3 { font-size:18px; font-weight:800; margin:12px 0 6px; color:#fff; }
  .result-box p { font-size:13.5px; color:var(--ink-60); margin-bottom:20px; }
  .btn-download { display:inline-flex; align-items:center; gap:9px; background:#fff; color:#0a0a0a; font-weight:800; padding:13px 30px; border-radius:10px; text-decoration:none; font-size:14px; }
  .btn-again { display:block; margin:14px auto 0; }

  .errbox { display:none; background:var(--red-bg); border:1px solid rgba(229,72,77,.35); border-radius:10px; padding:14px 16px; font-size:13.5px; color:#f2a8aa; margin-bottom:16px; line-height:1.5; }
  .errbox.show { display:block; }

  .privacy { margin-top:32px; padding:18px 22px; border:1px solid var(--line); border-radius:12px; display:flex; gap:13px; align-items:flex-start; background:var(--panel); }
  .privacy p { font-size:12.5px; color:var(--ink-60); line-height:1.6; }
  .privacy strong { color:var(--ink); }
  .foot { text-align:center; font-size:12px; color:var(--ink-40); margin-top:26px; }

/* StreamTranslate studio — one theme, shared brand, no delayed restyling. */
:root{color-scheme:light;--bg:#fff;--panel:#fff;--panel-2:#f5f8fc;--ink:#151719;--ink-60:#50515c;--ink-40:#62626c;--line:#d9d4df;--line-strong:#a49baa;--accent:#1857b6;--red:#b52636;--red-bg:#fff0f2}
body.video-studio{font-family:Inter,system-ui,sans-serif!important;padding-top:0;background:#fff}
nav{position:relative;height:auto;min-height:84px;padding:18px 40px;background:#fff;border-bottom:2px solid #151719;backdrop-filter:none}
.nav-brand,.nav-link,.nav-launch{font-family:Bungee,system-ui,sans-serif;font-weight:400;color:var(--ink)}
.nav-brand{font-size:18px;gap:10px}.nav-brand img{width:32px;height:32px}.nav-link{font-size:11px;display:inline-flex;align-items:center;min-height:44px}.nav-launch{background:#151719;color:white;font-size:11px;padding:15px 22px;border-radius:12px}
.frame{max-width:1160px;padding:0 30px 64px}
.page-head{display:grid;grid-template-columns:1.2fr 1fr;gap:60px;text-align:left;align-items:center;padding:42px 0 36px}
.eyebrow,.page-head h1,.trust,.panel-title,.stepper,.btn-primary,.btn-download,.browse-label,.dropzone h3,.result-box h3,.studio-footer{font-family:Bungee,system-ui,sans-serif;font-weight:400}
.eyebrow{font-size:10px;letter-spacing:0;color:var(--accent);margin-bottom:18px}
.page-head h1{font-size:clamp(36px,4.6vw,60px);line-height:1.12;letter-spacing:-.025em;color:var(--ink);font-weight:400;margin-bottom:20px}
.page-head h1 em{font-style:normal;color:var(--accent)}
.page-head .lede{margin:0;max-width:48ch;font-size:16px;line-height:1.65;color:#484851}
.trust{justify-content:flex-start;gap:16px;margin-top:24px}.trust span{color:#404047;font-size:9px}
.studio-art{height:310px;border:3px solid #151719;border-radius:22px;overflow:hidden;position:relative;box-shadow:7px 7px 0 #e9ddf8;background:#27231f}
.studio-art img{width:100%;height:100%;object-fit:cover;object-position:50% 56%}
.studio-caption{position:absolute;left:16px;right:16px;bottom:16px;padding:12px 15px;background:#fff;border:2px solid #151719;border-radius:10px;font-size:13px;font-weight:600;box-shadow:3px 3px 0 #151719}
.studio-caption small{display:block;color:#62626c;font-size:9px;margin-bottom:4px}.studio-caption strong{display:block;color:var(--accent);font-size:17px}
.stepper{margin:24px 0;justify-content:flex-start;gap:12px}.stepper .s{padding:0;flex:1;gap:10px;font-size:10px}.stepper .s+.s:before{display:none}.stepper .num{border-radius:8px;width:32px;height:32px;background:#f4f1f7;color:#62626c;border:1px solid #ddd5e5}.stepper .s.active{color:var(--accent)}.stepper .s.active .num{background:var(--accent);border-color:var(--accent);color:white}.stepper .s.done .num{background:#edf9f0;color:#08723b;border-color:#add1b9}
.panel{border:2px solid #151719;border-radius:18px;padding:26px;margin-bottom:20px;min-width:0}.panel-title{font-size:13px;letter-spacing:0;color:var(--ink)}
#uploadPanel{background:#f5f8fc}.dropzone{border:2px dashed #9ab4d3;background:#fff;border-radius:13px;padding:30px 20px}.dropzone:focus-within{outline:3px solid var(--accent);outline-offset:4px}.dropzone:hover,.dropzone.drag{border-color:var(--accent);background:#edf4fc}.dropzone>svg{color:var(--accent);width:30px;height:30px}.dropzone h3{color:var(--ink);font-size:21px;margin:10px 0}.browse-label{display:inline-flex;background:#151719;color:#fff;border-radius:10px;padding:14px 23px;margin:4px 0 14px;font-size:12px}.dropzone p{font-size:13px}.dz-formats{font-size:12px}
.fld select,.track-row select,.precise input{background-color:#fff;color:var(--ink);border:1.5px solid #aaa1b3;min-height:48px;font-size:16px;padding-right:28px;background-image:none;appearance:auto}
.fld label{font-size:12px;color:#45434b;letter-spacing:.02em}.btn-ghost{min-height:44px;background:#fff;color:var(--ink);border:1.5px solid #151719}.btn-ghost:hover{background:#f5f8fc;border-color:var(--accent)}
.track-row{grid-template-columns:minmax(0,1fr) minmax(100px,150px) 44px}.track-x{width:44px;height:48px;color:var(--ink);border:1px solid #a49baa;background:#fff}.add-track{min-height:48px;color:var(--accent);border:1.5px dashed var(--accent);background:#f5f8fc}.add-track:hover{background:#e6effa;border-color:var(--accent)}
button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.switch{width:48px;height:30px}.switch:before{content:'';position:absolute;inset:-7px 0}.switch .sl{background:#c7c1cd}.switch .sl:before{width:22px;height:22px;left:4px;top:4px;background:#fff}.switch input:checked+.sl{background:var(--accent)}.switch input:checked+.sl:before{transform:translateX(18px)}.switch:focus-within{outline:3px solid var(--accent);outline-offset:3px;border-radius:20px}
.btn-primary{background:var(--accent);color:#fff;border:2px solid var(--accent);font-size:15px;min-height:56px}.btn-primary:disabled{opacity:.5}.btn-download{background:#151719;color:#fff;min-height:48px}.btn-download svg path{stroke:currentColor}
.pbar{background:#e4ebf2;height:12px}.pbar-fill{background:var(--accent)}.spinner{border-color:#c5d5e8;border-top-color:var(--accent)}
.result-box{background:#edf9f0;border:2px solid #08723b}.result-box>svg{color:#08723b}.result-box h3{color:#08723b}.result-box p{color:#36483c}.errbox{color:#922030}.privacy{border:1px solid #d4c9df;background:#f6f8fb}.privacy>svg{color:var(--accent)}
.tl-bar{background:#e1e7ed}.tl-region{background:var(--accent)}.tl-filled{background:#b4cdec}.tl-handle{border-color:var(--accent);box-shadow:0 0 0 1px #fff}.play-btn{width:44px;height:44px}
.studio-footer{padding:24px 40px;border-top:2px solid #151719;display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:11px}.studio-footer div{display:flex;gap:24px;flex-wrap:wrap}.studio-footer a{color:#151719;text-decoration:none;min-height:44px;display:inline-flex;align-items:center}
@media(max-width:700px){nav{padding:14px 18px;gap:12px;flex-wrap:wrap}.nav-brand{font-size:14px}.nav-brand img{width:28px;height:28px}.nav-right{gap:12px}.nav-link{font-size:9px}.nav-launch{font-size:9px;padding:13px 14px}.frame{padding:0 16px 40px}.page-head{grid-template-columns:1fr;gap:22px;padding:30px 0 18px}.page-head h1{font-size:clamp(35px,9.5vw,56px)}.page-head .lede{font-size:15px}.studio-art{height:190px;box-shadow:4px 4px 0 #e9ddf8}.studio-art img{object-position:50% 61%}.studio-caption{inset:auto 12px 12px;padding:8px 12px}.studio-caption strong{font-size:15px}.trust{gap:12px;margin-top:18px}.trust span{font-size:8px}.stepper{gap:7px;margin:22px 0}.stepper .s{padding:0;gap:5px;flex-direction:column;align-items:flex-start;font-size:8px}.stepper .label{display:inline}.panel{padding:18px 14px}.panel-title{font-size:11px;line-height:1.6}.dropzone{padding:25px 12px}.dropzone h3{font-size:17px}.track-row{grid-template-columns:minmax(0,1fr) 105px 44px;gap:6px}.track-row select{padding:10px 5px;font-size:16px}.opts3{grid-template-columns:1fr}.privacy{padding:16px 12px}.stage-line{flex-wrap:wrap;gap:10px}.studio-footer{padding:20px 18px;align-items:flex-start;flex-direction:column;gap:6px}.studio-footer div{gap:18px}.result-box{padding:24px 14px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}.spinner{animation:none}}

.has-video .page-head{display:block;padding-block:28px 10px}.has-video .page-head h1{font-size:28px}.has-video .page-head h1 br{display:none}.has-video .page-head .studio-art,.has-video .page-head .lede,.has-video .page-head .trust,.has-video .page-head .eyebrow{display:none}
@media(max-width:700px){.studio-art{height:140px}.page-head{gap:18px}.page-head .lede{font-size:14px}.studio-caption{font-size:11px}.studio-caption strong{font-size:13px}.dropzone{padding:20px 12px}}
.switch input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;z-index:1;cursor:pointer}

/* The upload is the focal point: one centered heading, no decorative scene. */
.page-head{display:block;text-align:center;padding:52px 0 24px}.page-head h1{font-size:clamp(27px,4.5vw,52px);line-height:1.25;margin:0 0 18px;letter-spacing:-.025em}.page-head .lede{max-width:70ch;margin:0 auto;font-size:16px}.video-price{font-size:13px;color:var(--accent);font-weight:650;margin:20px 0 0}.stepper{max-width:760px;margin:24px auto;justify-content:center}.stepper .s{justify-content:center}#uploadPanel{max-width:940px;margin:0 auto 20px;padding:20px}#uploadPanel>.panel-title{display:none}.dropzone{padding:48px 24px}.dropzone>svg{width:40px;height:40px}.dropzone h3{font-size:24px}.has-video .video-price{display:none}.has-video .page-head{text-align:center}.quote-box{background:#f5f8fc;border:2px solid #1857b6;border-radius:14px;padding:24px;margin:20px 0;text-align:center}.quote-box[hidden]{display:none}.quote-box strong{display:block;font:28px Bungee,system-ui,sans-serif;margin:10px 0}.quote-box p{margin:12px 0;font-size:14px;line-height:1.6}.quote-box button{width:100%}@media(max-width:700px){.page-head{padding:32px 0 20px}.page-head h1{font-size:clamp(23px,6.7vw,38px)}.page-head .lede{font-size:14px}.video-price{font-size:12px;line-height:1.8}.stepper .s{align-items:center}.dropzone{padding:36px 12px}.dropzone h3{font-size:19px}#uploadPanel{padding:12px}}

/* Source and translation each have one language control and their own position. */
.language-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:18px;margin-bottom:16px}
#trackRows{display:contents}
.language-card{min-width:0;padding:16px;border:1.5px solid #c9d8e8;border-radius:14px;background:#f6f8fb}
.language-card .fld select{width:100%}
.subtitle-position{margin-top:16px}
.subtitle-position label{font-size:10px;color:var(--ink-60)}
.remove-language{display:block;min-height:44px;margin-top:12px;border:0;background:transparent;color:var(--accent);font:inherit;font-size:12px;cursor:pointer;text-decoration:underline}
#addTrackBtn[hidden]{display:none}

/* Visible timing guidance without competing with the upload. */
.processing-estimate{max-width:720px;margin:24px auto 0;padding:16px 20px;border:2px solid #c9d8e8;border-radius:16px;background:#f6f8fb}
.processing-estimate p{color:var(--ink);font-size:16px;line-height:1.5}
.processing-estimate strong:last-child{color:var(--accent)}
.processing-estimate .estimate-detail{margin-top:6px;color:var(--ink-60);font-size:12px;line-height:1.55}
@media(max-width:640px){.processing-estimate{padding:14px 16px}.processing-estimate p{font-size:15px}}

.band-remove{position:absolute;top:-8px;left:8px;width:30px;height:30px;border:2px solid #171717;border-radius:50%;background:#fff;color:#171717;font:700 22px/1 Inter,sans-serif;cursor:pointer;pointer-events:auto;z-index:3}.band-remove:disabled{opacity:.45;cursor:default}
.job-bar{text-align:center;margin:0 auto 20px}.job-tabs{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin-bottom:12px}.job-tab,.new-job{display:inline-block;padding:10px 14px;border:1.5px solid #c9d8e8;border-radius:10px;text-decoration:none;color:var(--accent);background:#f6f8fb;font-size:13px;font-weight:700;max-width:100%;overflow-wrap:anywhere}.job-tab[aria-current]{border-color:var(--accent)}.job-bar p{font-size:12px;color:var(--ink-60);margin-top:8px}.new-job{border-color:var(--accent)}

/* Subtitle scale follows the actual video, including portrait uploads. */
.video-shell{width:min(100%,calc(48vh * var(--video-aspect,1.7777778)));margin-inline:auto}
.band .band-inner{max-width:100%;min-width:0}
.band .band-text{white-space:normal;overflow:visible;text-overflow:clip;max-width:100%;overflow-wrap:break-word}
.fld input[type=range]{width:calc(100% - 42px);vertical-align:middle;accent-color:var(--accent);min-height:32px}
.fld output{display:inline-block;width:38px;text-align:right;font-size:13px;font-variant-numeric:tabular-nums}
.size-reset{display:block;border:0;background:none;color:var(--accent);text-decoration:underline;font:inherit;font-size:12px;cursor:pointer;margin-top:6px;min-height:32px}
.spinner[hidden]{display:none}
.auto-download{display:flex;align-items:center;gap:10px;font-size:14px;margin:20px 0;line-height:1.5}
.auto-download input{width:18px;height:18px;accent-color:var(--accent);flex-shrink:0}
.nav-account{background:#f5f8fc;color:var(--accent);border:1.5px solid var(--accent);border-radius:10px;padding:10px 14px;font:600 13px Inter,sans-serif;cursor:pointer}
.account-prompt{text-align:center;font-size:14px;line-height:1.6;margin:16px 0 24px}
.account-prompt span{display:block;font-size:12px;color:var(--ink-60);margin-top:4px}
.account-prompt button,.result-account{border:0;background:transparent;color:var(--accent);font:700 14px Inter,sans-serif;text-decoration:underline;cursor:pointer;min-height:36px}
.result-account{margin-bottom:18px}
.account-panel{scroll-margin-top:80px}.account-panel[hidden],.account-panel [hidden]{display:none}
.account-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
.account-heading h2{font:22px Bungee,system-ui,sans-serif}
.account-panel p{font-size:14px;line-height:1.6;color:var(--ink-60);margin:10px 0}
.account-fields{display:flex;align-items:end;gap:12px;margin-top:16px;flex-wrap:wrap}
.account-fields label{flex:1;min-width:180px;font-size:13px;font-weight:600}
.account-fields input{display:block;width:100%;margin-top:6px;border:1.5px solid #c9d8e8;border-radius:10px;padding:12px;color:var(--ink);background:#fff;font:16px Inter,sans-serif}
.history-jobs{display:grid;gap:14px;margin-top:20px}.history-job{border:1.5px solid #c9d8e8;border-radius:14px;padding:18px;background:#f6f8fb;min-width:0}
.history-job h3{font:700 16px Inter,sans-serif;overflow-wrap:anywhere}.history-job p{margin:6px 0;font-size:13px}
.history-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}.history-actions .btn-ghost{text-decoration:none}
@media(max-width:640px){nav{padding:0 12px}.nav-right{gap:8px}.nav-account{padding:8px;font-size:11px}.nav-launch{padding:8px;font-size:11px}.nav-brand span{display:none}.account-heading h2{font-size:18px}.account-prompt{font-size:13px}}

.band .band-inner{position:relative;transform:translateY(-50%)}.band .band-tag{position:absolute;top:-22px;white-space:nowrap}

.subtitle-downloads{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin:24px 0}.subtitle-downloads[hidden]{display:none}.subtitle-downloads a{border:2px solid var(--line-strong);border-radius:12px;padding:12px 16px;font-size:14px;color:var(--ink);background:white}

/* Compact workspace: the interface uses the brand face; caption previews keep their selected face. */
body.video-studio{font-family:Bungee,system-ui,sans-serif!important}
.video-studio :is(button,input,select,textarea){font-family:inherit}
.page-head{padding:26px 0 12px}.page-head h1{font-size:clamp(25px,3.3vw,42px);margin-bottom:10px}
.page-head .lede{max-width:none;font-size:13px;line-height:1.6}
.processing-estimate{display:inline-block;margin:12px auto 0;padding:7px 14px;border-width:1px;border-radius:9px}
.processing-estimate p{font-size:11px;line-height:1.6}.video-price{font-size:11px;margin-top:9px}
.account-prompt{font-size:11px;margin:6px 0 12px}.account-prompt button,.nav-account,.result-account{font-family:inherit;font-size:11px}
.job-bar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:flex-start;margin-bottom:12px}
.job-tabs{justify-content:flex-start;margin:0;gap:7px}.new-job{font:inherit;font-size:11px;min-height:40px;cursor:pointer}
.workspace-tab{display:flex;border:1.5px solid #c9d8e8;background:#f6f8fb;border-radius:9px;max-width:300px;overflow:hidden}
.workspace-tab:has([aria-selected=true]){border-color:var(--accent);background:#e9f2ff}
.workspace-tab button{border:0;background:none;color:var(--accent);cursor:pointer;font:inherit;font-size:10px;padding:10px;min-height:40px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.workspace-tab .tab-close{font:20px system-ui;flex-shrink:0;padding-inline:8px}
.editor-frame{border:0;width:100%;display:block;height:400px}.editor-frame[hidden]{display:none}
.video-editor{padding:0;min-height:0!important}.video-editor .frame{max-width:none;padding:0 1px 12px}.video-editor .stepper{margin:10px auto 14px}.video-editor #uploadPanel{padding:12px;max-width:none}.video-editor .dropzone{padding:22px 16px}.video-editor .dropzone>svg{width:26px;height:26px}.video-editor .dropzone h3{font-size:19px;margin:8px 0}.video-editor .dropzone p{display:none}.video-editor .dz-formats{margin-top:12px;font-size:10px}.video-editor .browse-label{font-size:10px;padding:12px 18px}.privacy p{font-size:9px}
.account-dialog{margin:auto;padding:26px;border:2px solid #171717;border-radius:18px;width:min(440px,calc(100vw - 32px));color:var(--ink);background:#fff;max-height:90vh;overflow:auto;font-size:12px;line-height:1.6}.account-dialog::backdrop{background:rgba(18,12,26,.35);backdrop-filter:blur(5px)}.account-dialog h2{font-size:19px;margin:8px 0 12px}.account-dialog p{margin:12px 0}.account-dialog .dialog-close{float:right;border:0;background:none;cursor:pointer;font:24px system-ui;padding:0 4px}.account-fields input{font-family:inherit;font-size:13px}.account-dialog [hidden]{display:none}
.video-library .library{padding:32px 40px 60px;max-width:none;width:100%;min-height:70vh}.library-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:24px}.library-heading h1{font-size:32px;margin-bottom:8px}.library-heading p{font-size:11px;color:var(--ink-60)}.library-toolbar{display:flex;align-items:end;gap:18px;flex-wrap:wrap;margin-bottom:18px}.library-toolbar label{font-size:10px;flex:1;max-width:480px}.library-toolbar input{display:block;margin-top:7px;padding:12px;width:100%;border:1.5px solid #c9d8e8;border-radius:9px;font-size:13px}.video-list-head,.video-row{display:grid;grid-template-columns:minmax(240px,2.3fr) repeat(5,minmax(80px,1fr)) minmax(105px,1fr);gap:18px;align-items:center}.video-list-head{font-size:9px;padding:12px 16px;color:var(--ink-60);border-bottom:2px solid #171717}.video-row{padding:18px 16px;border-bottom:1px solid #c9d8e8;font-size:11px}.video-row a{color:var(--accent)}.video-name{min-width:0}.video-file{display:block;overflow-wrap:anywhere;text-decoration:none}.video-file:hover{text-decoration:underline}.video-name small{display:block;font-size:9px;color:var(--ink-60);margin-top:5px}.video-tools button,.rename-form button{border:0;background:none;text-decoration:underline;color:var(--accent);font:inherit;font-size:10px;cursor:pointer;min-height:36px}.video-tools details{font-size:9px}.video-tools details a{display:block;padding:8px 0}.rename-form{display:flex;gap:8px;flex-wrap:wrap}.rename-form[hidden]{display:none}.rename-form input{width:100%;padding:8px;border:1px solid #c9d8e8;font-size:12px}.library-retention,.library-empty,#libraryMessage{font-size:11px;margin:20px 0;line-height:1.7;color:var(--ink-60)}
@media(max-width:850px){.video-list-head{display:none}.video-row{grid-template-columns:repeat(3,1fr);gap:12px}.video-name{grid-column:1/-1}.video-metric::before{content:attr(data-label);display:block;font-size:8px;color:var(--ink-60);margin-bottom:4px}.video-library .library{padding:24px 16px 40px}.library-heading h1{font-size:24px}.library-heading{align-items:start}.video-tools{grid-column:1/-1}.page-head .lede{font-size:11px}.processing-estimate p{font-size:10px}.account-prompt{font-size:10px}.nav-account{font-size:9px}.workspace-tab{max-width:220px}}

/* Use the landing page's clear outlines and distinct blue, green and warm accents. */
.video-studio .nav-account{min-height:48px;padding:12px 24px;border:2px solid #151719;border-radius:999px;background:#151719;color:#fff;font-size:13px;box-shadow:3px 3px 0 #d6e8db}
.nav-account:hover{background:#08723b}.nav-account:active{box-shadow:none;transform:translate(1px,1px)}
.processing-estimate{border:1.5px solid #c5a854;border-radius:999px;background:#fff8df}.processing-estimate strong:last-child{color:#675016}
.video-price{color:#08723b}.new-job{color:#08723b;background:#edf9f0;border:1.5px solid #08723b;border-radius:9px}
.workspace-tab{border-color:#aebdcc;background:#fff}.workspace-tab:has([aria-selected=true]){border-color:#1857b6;background:#edf4fc}
#uploadPanel{background:#edf4fc;border:2px solid #151719;box-shadow:4px 4px 0 #c6d8ed}.dropzone{border-color:#7f9fbe}.browse-label{border-radius:999px}
.quote-box{background:#edf9f0;border:2px solid #08723b;box-shadow:4px 4px 0 #d4e8db}.quote-box strong{color:#08723b}
.btn-primary{background:#151719;border-color:#151719;box-shadow:3px 3px 0 #c8d9ce}.btn-primary:hover:not(:disabled){background:#08723b;border-color:#08723b}
.privacy{background:#f7f8f7;border-color:#d5ded8}.privacy>svg{color:#08723b}
.video-editor{display:flow-root} /* Contain the stepper margin so frame height includes it. */
.profile-dialog{width:min(510px,calc(100vw - 32px));box-shadow:6px 6px 0 #151719}
.profile-email{overflow-wrap:anywhere;color:var(--ink-60);font-size:11px}
.account-stats{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}
.account-stats>div{padding:15px;border:1.5px solid #aebdcc;border-radius:12px;background:#edf4fc}
.account-stats>div:nth-child(2){background:#edf9f0;border-color:#add1b9}.account-stats>div:nth-child(3){background:#fff8df;border-color:#dbc986}.account-stats>div:nth-child(4){background:#fff1ee;border-color:#dfb9ae}
.account-stats dt{font-size:9px;color:#50515c}.account-stats dd{font-size:21px;line-height:1.3;margin-top:8px;overflow-wrap:anywhere}
.profile-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;border-top:1px solid #d6ded8;padding-top:18px}
.account-launch{font-size:10px;padding:12px 14px;border:1.5px solid #151719;border-radius:999px;text-decoration:none;color:#151719}
.profile-actions .btn-ghost{font-size:10px;border:0;text-decoration:underline;margin-left:auto}
@media(max-width:640px){.video-studio .nav-account{font-size:11px;padding:10px 19px;min-height:44px}.profile-dialog{padding:22px 18px}.account-stats{gap:9px}.account-stats>div{padding:12px}.account-stats dd{font-size:19px}}

/* The parent viewport bounds previews; iframe vh grows with its own content. */
.video-editor .video-shell{--preview-height:400px;width:min(100%,calc(var(--preview-height) * var(--video-aspect,1.77778)));max-height:var(--preview-height);overflow:visible}
.video-editor #videoPlayer{width:100%;height:auto;max-height:var(--preview-height);display:block;object-fit:contain;border-radius:12px}
.video-editor .band-inner{pointer-events:auto;max-width:100%;cursor:grab;touch-action:none}
.video-editor .band-caption{position:relative;display:block;max-width:100%}
.video-editor .band-caption:focus{outline:none}
.video-editor .band.selected .band-caption,.video-editor .band-caption:focus-visible{outline:1px solid #fff;outline-offset:3px;border-radius:1px;box-shadow:0 0 0 4px #0003}
.video-editor .band-controls{position:absolute;left:0;right:auto;bottom:100%;display:flex;align-items:center;padding-bottom:3px;white-space:nowrap;cursor:grab;touch-action:none;opacity:0;pointer-events:none}
.video-editor .band.selected .band-controls,.video-editor .band:focus-within .band-controls,.video-editor .band.dragging .band-controls{opacity:1;pointer-events:auto}
.video-editor .band-tag{position:static;display:inline-flex;align-items:center;gap:4px;pointer-events:auto;font:500 9px/1.2 Inter,system-ui,sans-serif;letter-spacing:0;text-transform:none;padding:2px 5px;border-radius:4px;background:rgba(0,0,0,.55);color:#fff}
.video-editor .band-tag svg{fill:currentColor;flex:none;opacity:.8}
.video-editor .band-text{display:block;max-width:100%;overflow-wrap:break-word;text-align:center}
.video-editor .track-hint{font:400 12px/1.5 Inter,system-ui,sans-serif;color:var(--ink-60);text-transform:none}
.video-editor .option-note{font:400 12px/1.5 Inter,system-ui,sans-serif;color:var(--ink-60);text-transform:none}
.track-appearance{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.track-appearance .fld{min-width:0;margin-top:12px}
.track-appearance select{padding:8px;font-size:12px;min-height:38px}
.track-appearance .track-size{grid-column:1/-1}
.caption-tools{display:flex;align-items:end;justify-content:space-between;flex-wrap:wrap;gap:20px;margin-top:18px;padding-top:18px;border-top:1px solid #d6dedc}
.placement-presets [role=group]{display:flex;flex-wrap:wrap;gap:6px}
.placement-presets button{font-family:inherit;font-size:11px;padding:10px 12px;border:2px solid #181a1b;border-radius:8px;background:#fff;color:#181a1b;cursor:pointer}
.placement-presets button[aria-pressed=true]{background:#e9f7ed;border-color:#08783e;color:#08783e}
.control-label{display:block;margin-bottom:8px;font-size:12px}
.language-picker{position:relative}
.language-choice{width:100%;display:block;text-align:left;padding:12px;border:2px solid #b7c6d4;border-radius:10px;background:white;color:#181a1b;font:inherit;cursor:pointer}
.language-popover{position:absolute;top:calc(100% + 5px);left:0;right:0;z-index:30;padding:8px;border:2px solid #181a1b;border-radius:12px;background:#fff;box-shadow:0 8px 20px #0002}
.language-popover[hidden]{display:none}
.language-popover input{width:100%;box-sizing:border-box;padding:10px;border:1px solid #b7c6d4;border-radius:6px;font:inherit;font-size:12px}
.language-results{max-height:176px;overflow-y:auto;margin-top:6px}
.language-results button{width:100%;height:44px;display:block;padding:8px 10px;text-align:left;border:0;background:#fff;font:inherit;font-size:12px;cursor:pointer}
.language-results button:hover,.language-results button:focus,.language-results button[aria-selected=true]{background:#eaf1fb;color:#1957ba;outline-offset:-2px}
.library-back{font-size:28px;line-height:1;text-decoration:none;color:#181a1b;padding:8px;margin-right:12px}
.video-studio nav .library-back+.nav-brand{margin-right:auto}
.pbar{position:relative;overflow:hidden}
.pbar.is-working:after{content:'';position:absolute;inset:0;background:repeating-linear-gradient(110deg,transparent 0 12px,#ffffff66 12px 24px);background-size:60px 100%;animation:video-progress 1s linear infinite;pointer-events:none}
@keyframes video-progress{to{background-position:60px 0}}
@media(prefers-reduced-motion:reduce){.pbar.is-working:after{animation:none}}
@media(max-width:600px){.video-editor .band-tag{font-size:9px}.video-editor .opts3{grid-template-columns:1fr 1fr}.library-back{margin-right:4px;padding:4px}}
.video-support-button{position:fixed;bottom:18px;right:18px;z-index:50;border:2px solid #17191a;border-radius:24px;background:#fff;color:#17191a;padding:12px 18px;font:inherit;font-size:12px;box-shadow:3px 3px 0 #17191a;cursor:pointer}
.video-support-button.needs-attention{background:#fff0c9}
.video-support-panel{position:fixed;bottom:80px;right:18px;width:min(340px,calc(100vw - 36px));box-sizing:border-box;z-index:51;background:#fff;border:3px solid #17191a;border-radius:18px;padding:22px;box-shadow:5px 5px 0 #17191a}
.video-support-panel[hidden]{display:none}.video-support-panel h2{font-size:20px;padding-right:16px;margin:0 0 18px}.video-support-panel label{display:block;margin:12px 0;font-size:12px}.video-support-panel input,.video-support-panel textarea{display:block;width:100%;box-sizing:border-box;margin-top:6px;padding:10px;border:1px solid #aab8bd;border-radius:8px;font:14px Inter,sans-serif}.video-support-panel .btn-primary{font-size:12px;padding:12px;min-height:40px}.video-support-panel [role=status]{font-size:12px}

.result-account-toast{margin:20px auto;max-width:620px;padding:16px 20px;border:2px solid #bad2c3;border-radius:16px;background:white;display:flex;align-items:center;gap:16px;text-align:left}.result-account-toast p{margin:0;font-size:11px;flex:1;overflow-wrap:anywhere}.result-account-toast button{flex-shrink:0;font-size:11px}.video-name>button{display:block;border:0;background:none;color:var(--accent);font:inherit;font-size:10px;text-decoration:underline;cursor:pointer;min-height:36px;padding:0}.video-tools{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.library-download{font-size:11px;font-weight:bold}.account-dialog .subtitle-downloads{justify-content:flex-start}.account-dialog h2{overflow-wrap:anywhere}@media(max-width:600px){.result-account-toast{flex-direction:column;align-items:flex-start}}

/* Keep the full video price readable on desktop and phones. */
.page-head .video-price{font-size:20px;font-weight:750;line-height:1.5;margin-top:18px}.page-head .video-price-detail{font-size:14px;line-height:1.6;margin:8px auto 0;max-width:65ch}

/* Keep playback outside the subtitle positioning canvas. */
.video-editor .preview-playback{display:flex;align-items:center;gap:10px;width:100%;max-width:600px;margin:14px auto 0;padding:8px 10px;border:1px solid #d6dedc;border-radius:10px;background:#f7f9f8;box-sizing:border-box}
.video-editor .preview-playback .play-btn,.video-editor .preview-mute{width:36px;height:36px;min-width:36px;border:1px solid #bdc8c2;border-radius:50%;background:#fff;color:#17191a;display:inline-flex;align-items:center;justify-content:center;padding:0;cursor:pointer}
.video-editor #previewSeek{flex:1;min-width:30px;width:0;margin:0;height:24px;accent-color:#08783e;cursor:pointer}
.video-editor .preview-playback .time-display{font:400 12px/1.4 Inter,system-ui,sans-serif;font-variant-numeric:tabular-nums;white-space:nowrap;text-transform:none;letter-spacing:0;color:#505b55}
.video-editor .preview-playback button:focus-visible,.video-editor #previewSeek:focus-visible{outline:2px solid #08783e;outline-offset:3px}
@media(max-width:420px){.video-editor .preview-playback{gap:7px;padding:6px}.video-editor .preview-playback .time-display{font-size:11px}}

.video-editor .preview-layout{display:grid;grid-template-columns:146px minmax(0,1fr) 146px;align-items:start;gap:18px}
.video-editor .phone-mode-tools{padding-top:3px;font:12px/1.5 Inter,system-ui,sans-serif;letter-spacing:0;text-transform:none}
.video-editor .phone-mode-tools .control-label{font:600 12px/1.5 Inter,system-ui,sans-serif;margin-bottom:10px}
.video-editor .phone-mode-buttons{display:flex;flex-direction:column;gap:7px}
.video-editor .phone-mode-buttons button{font:500 12px/1.4 Inter,system-ui,sans-serif;text-transform:none;text-align:left;padding:10px 12px;border:1px solid #bfcac4;border-radius:8px;background:#fff;color:#303b35;cursor:pointer}
.video-editor .phone-mode-buttons button[aria-pressed=true]{border-color:#08783e;background:#edf9f0;color:#065e30}
.video-editor .phone-mode-buttons button:focus-visible{outline:2px solid #08783e;outline-offset:2px}
.video-editor .phone-mode-tools p{font:11px/1.5 Inter,system-ui,sans-serif;color:#66746b;margin:10px 0 0}
.video-editor .preview-stage{position:relative;display:flex;align-items:center;justify-content:center;min-width:0;width:100%;margin-inline:auto}
.video-editor .phone-preview .preview-stage{background:transparent}
.video-editor .video-shell{container-type:inline-size}

.video-editor .social-guide{position:absolute;inset:0;z-index:15;pointer-events:none;user-select:none;color:#fff;opacity:.6;container-type:inline-size;font:500 10px/1.35 Inter,system-ui,sans-serif;letter-spacing:0;text-transform:none;text-shadow:0 1px 3px #000a;background:none}
.video-editor .social-guide[hidden]{display:none}
.video-editor .social-guide svg{display:block;width:20px;height:20px;width:9cqw;height:9cqw;flex-shrink:0;filter:drop-shadow(0 1px 2px #0006)}
.video-editor .social-top{position:absolute;top:6%;left:7%;right:7%;display:flex;align-items:center;justify-content:center;gap:12px;font-size:4.5cqw}
.video-editor .social-top>svg{position:absolute;right:0;width:7cqw;height:7cqw}.video-editor .social-top strong{font-weight:700}.video-editor .social-top strong:after{content:'';display:block;width:20px;margin:4px auto 0;border-bottom:2px solid #fff}
.video-editor .instagram .social-top{justify-content:space-between;top:5%;font-size:6cqw}.video-editor .instagram .social-top strong:after{display:none}
.video-editor .social-actions{position:absolute;right:5%;bottom:18%;display:flex;flex-direction:column;align-items:center;gap:4.5cqw}
.video-editor .social-avatar{border:1px solid #fff;border-radius:50%;padding:4px}.video-editor .social-avatar svg{width:7cqw;height:7cqw}
.video-editor .social-record{display:grid;place-items:center;width:11cqw;height:11cqw;border:3px solid #fff7;border-radius:50%;background:#1117;font-size:7cqw}
.video-editor .social-more{font-size:8cqw;line-height:.5;letter-spacing:1px}
.video-editor .social-caption{position:absolute;left:6%;right:22%;bottom:11%;display:flex;flex-direction:column;gap:2cqw;font-size:4cqw}.video-editor .social-caption strong{font-weight:700;font-size:4.5cqw}
.video-editor .instagram .social-actions{bottom:18%}.video-editor .instagram .social-caption{bottom:12%}
.video-editor .social-nav{position:absolute;left:0;right:0;bottom:0;height:8%;display:flex;align-items:center;justify-content:space-around;background:none;border-top:0}.video-editor .social-nav svg{width:7cqw;height:7cqw}
@media(max-width:850px){.video-editor .preview-layout{grid-template-columns:116px minmax(0,1fr);gap:12px}.video-editor .phone-mode-buttons button{padding:9px}.video-editor .preview-layout:not(.phone-preview) .preview-stage{align-self:center}}
@media(max-width:520px){.video-editor .preview-layout{grid-template-columns:86px minmax(0,1fr);gap:10px}.video-editor .phone-mode-tools .control-label{font-size:11px}.video-editor .phone-mode-buttons button{font-size:11px;padding:9px 6px}.video-editor .phone-mode-tools p{font-size:10px}}

/* TikTok Studio phone-mode assets are 750x1596 (375x798 logical px).
   Source video starts at logical y=48 and is 9:16. Crop only the device
   chrome outside that video rectangle; retain the original UI coordinates. */
.video-editor .social-guide{border-radius:12px;overflow:hidden}
.video-editor .social-guide.tiktok{opacity:.4}
.video-editor .tiktok-studio-layer{position:absolute;top:-12.8cqw;left:0;width:100%;height:auto;max-width:none;display:block;pointer-events:none;user-select:none}
.video-editor .phone-preview-fit .preview-stage{width:min(100%,225px);aspect-ratio:9/16;container-type:inline-size;background:transparent}
.video-editor .phone-preview-fit .video-shell{--preview-height:min(400px,177.7778cqw);background:transparent;border:0;flex-shrink:0}
