:root{--bg:#f4f6f1;--surface:#fff;--surface2:#f7f8f5;--ink:#111713;--muted:#7b837d;--line:#dfe4df;--lime:#a7d62d;--lime2:#eaf6c8;--dark:#111612;--danger:#d9534f;--radius:24px;--shadow:0 18px 48px rgba(18,28,20,.07)}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,input,select,textarea{font:inherit}button{color:inherit}body{overflow-x:hidden}.hidden{display:none!important}.app-shell{min-height:100dvh}.topbar{height:72px;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(16px,3vw,44px);border-bottom:1px solid var(--line);background:rgba(255,255,255,.88);backdrop-filter:blur(18px);position:sticky;top:0;z-index:50}.brand{border:0;background:none;display:flex;align-items:center;gap:10px;padding:0;cursor:pointer}.brand img{width:38px;height:38px;border-radius:12px}.brand>span{display:flex;flex-direction:column;align-items:flex-start;line-height:1}.brand strong{font-size:18px}.brand small{font-size:9px;letter-spacing:.16em;margin-top:5px;color:var(--muted);font-weight:800}.top-actions{display:flex;align-items:center;gap:10px}.privacy-pill,.workspace-status>span{height:38px;border-radius:13px;background:#eef8ef;padding:0 13px;display:flex;align-items:center;gap:8px;font-size:11px;font-weight:900;color:#2f7045;white-space:nowrap}.privacy-pill i,.workspace-status i,.status-dot{width:8px;height:8px;background:#48ad7b;border-radius:50%}.lang-switch{height:40px;padding:3px;border-radius:13px;background:#eef0ef;display:flex}.lang-switch button{min-width:38px;border:0;background:transparent;border-radius:10px;font-size:11px;font-weight:900;cursor:pointer}.lang-switch button.active{background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.08)}.support-btn{height:40px;padding:0 13px;border:1px solid var(--line);border-radius:13px;background:#fff;text-decoration:none;display:flex;align-items:center;gap:7px;font-size:12px}.support-btn span{font-size:19px;color:#82b90d}.support-btn b{font-weight:800}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}main{width:min(1500px,calc(100% - 32px));margin:28px auto 44px}.start-card{padding:clamp(24px,5vw,58px);display:grid;grid-template-columns:minmax(0,1.05fr) minmax(300px,.75fr);gap:clamp(28px,5vw,72px);align-items:center;min-height:520px}.eyebrow{font-size:11px;letter-spacing:.18em;font-weight:900;color:#627069}.hero-copy h1,.workspace-head h1{font-size:clamp(38px,5vw,72px);line-height:.98;letter-spacing:-.045em;margin:12px 0 18px;max-width:800px}.hero-copy p{font-size:clamp(16px,1.8vw,21px);line-height:1.55;color:var(--muted);max-width:720px}.hero-badges{display:flex;flex-wrap:wrap;gap:8px;margin-top:28px}.hero-badges span{background:var(--surface2);border:1px solid var(--line);border-radius:999px;padding:9px 12px;font-size:11px;font-weight:800}.dropzone{min-height:290px;border:1.5px dashed #c9d0c9;background:linear-gradient(145deg,#fbfcfa,#f3f8ea);border-radius:22px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;cursor:pointer;transition:.18s}.dropzone:hover,.dropzone.drag{border-color:var(--lime);transform:translateY(-2px);box-shadow:0 15px 40px rgba(114,150,28,.1)}.upload-icon{width:58px;height:58px;border-radius:18px;background:var(--dark);color:#bdff3b;display:grid;place-items:center;font-size:28px}.dropzone strong{font-size:19px}.dropzone small{color:var(--muted)}.privacy-note{grid-column:1/-1;padding:18px 20px;border-radius:18px;background:#f6faf2;display:flex;gap:12px;align-items:center}.privacy-note>span{width:30px;height:30px;border-radius:50%;background:var(--lime2);display:grid;place-items:center;font-weight:900;color:#638b00}.privacy-note div{display:flex;flex-direction:column;gap:3px}.privacy-note small{color:var(--muted)}.workspace{display:flex;flex-direction:column;gap:18px}.workspace-head{display:flex;justify-content:space-between;align-items:end;padding:4px 8px}.workspace-head h1{font-size:34px;margin:6px 0 4px}.workspace-head p{margin:0;color:var(--muted);font-size:13px}.workspace-status{display:flex;align-items:center;gap:10px}.ghost-btn{height:40px;padding:0 14px;border:1px solid var(--line);border-radius:13px;background:#fff;font-size:12px;font-weight:800;cursor:pointer}.editor-layout{display:grid;grid-template-columns:minmax(340px,.82fr) minmax(560px,1.18fr);gap:18px;align-items:start}.preview-card{overflow:hidden;position:sticky;top:90px}.preview-head{min-height:70px;padding:15px 18px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.preview-head>div:first-child{display:flex;align-items:center;gap:10px}.preview-head>div:first-child>div{display:flex;flex-direction:column}.preview-head strong{font-size:13px}.preview-head small{font-size:10px;color:var(--muted);margin-top:3px}.preview-meta{display:flex;gap:6px}.preview-meta span{padding:7px 9px;background:#f3f5f3;border:1px solid var(--line);border-radius:9px;font-size:10px;font-weight:800;white-space:nowrap}.video-shell{background:#0f1411;padding:12px;display:flex;align-items:center;justify-content:center;min-height:250px;max-height:calc(100dvh - 270px)}.video-stage{position:relative;display:inline-flex;align-items:center;justify-content:center;max-width:100%;max-height:calc(100dvh - 295px);overflow:hidden;border-radius:14px;background:#090d0b}.video-stage video{display:block;max-width:100%;max-height:calc(100dvh - 295px);width:auto;height:auto;object-fit:contain;background:#090d0b}.caption-overlay{position:absolute;z-index:5;pointer-events:none;transform:translate(-50%,-50%);white-space:normal;line-height:1.08;overflow:visible;word-break:normal;text-wrap:balance}.caption-overlay .caption-box{display:inline;padding:.12em .28em;border-radius:.18em;box-decoration-break:clone;-webkit-box-decoration-break:clone}.caption-overlay span.word{display:inline-block;margin-right:.18em}.video-loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:8px;background:rgba(12,16,13,.55);color:white;font-size:11px}.video-loading span{width:8px;height:8px;border-radius:50%;background:var(--lime);animation:pulse 1s infinite alternate}@keyframes pulse{to{opacity:.35}}.player-controls{height:62px;padding:0 14px;border-top:1px solid #252d27;background:#131814;color:#fff;display:grid;grid-template-columns:40px 48px 1fr 48px 40px;align-items:center;gap:8px}.player-controls>span{font-size:10px;font-weight:800;text-align:center}.player-icon{width:38px;height:38px;border:0;border-radius:11px;background:#242b26;color:#fff;font-weight:900;cursor:pointer}.player-controls input[type=range]{width:100%;accent-color:var(--lime)}.compat-note{margin:0;padding:11px 15px;border-top:1px solid var(--line);background:#fff8e8;color:#755b1e;font-size:11px;line-height:1.45}.studio-card{overflow:visible;min-width:0;position:relative;z-index:20}.main-tabs{padding:10px;display:grid;grid-template-columns:repeat(3,1fr);gap:6px;border-bottom:1px solid var(--line);background:#f5f6f4}.main-tabs button{height:44px;border:0;border-radius:12px;background:transparent;font-size:12px;font-weight:900;cursor:pointer;color:#7a817c}.main-tabs button.active{background:#fff;color:var(--ink);box-shadow:0 3px 10px rgba(0,0,0,.07)}.main-panel{display:none;padding:20px}.main-panel.active{display:block}.panel-title{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:18px}.panel-title h2{margin:6px 0 4px;font-size:23px;letter-spacing:-.025em}.panel-title p{margin:0;color:var(--muted);font-size:12px;line-height:1.5}.engine-badge{padding:8px 10px;border-radius:9px;background:var(--dark);color:#c9ff52;font-size:10px;font-weight:900}.field-grid{display:grid;gap:10px}.field-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.field-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.setting{min-width:0;min-height:72px;border:1px solid var(--line);border-radius:14px;padding:11px 12px;background:#fff;display:flex;flex-direction:column;justify-content:center;gap:7px}.setting>span,.field-label{font-size:10px;font-weight:900;color:#555f59}.setting select{height:38px;width:100%;border:1px solid #dbe0db;border-radius:10px;background:#f8f9f7;padding:0 10px;font-size:12px;font-weight:700;color:var(--ink);min-width:0}.setting small{font-size:9px;color:var(--muted);line-height:1.35}.range-setting>span{display:flex;align-items:center;justify-content:space-between;gap:8px}.range-setting output{font-size:10px;font-weight:900;color:#657069}.range-setting input[type=range]{width:100%;accent-color:#94c51d}.primary-btn{width:100%;height:52px;margin:12px 0;border:0;border-radius:14px;background:var(--dark);color:white;font-weight:900;display:flex;align-items:center;justify-content:center;gap:12px;cursor:pointer}.primary-btn b{color:#baff37}.primary-btn:disabled{opacity:.55;cursor:not-allowed}.progress-box{margin-top:12px;padding:14px;border:1px solid var(--line);border-radius:14px;background:#fafbfa}.progress-copy,.progress-footer{display:flex;justify-content:space-between;gap:12px}.progress-copy strong{font-size:12px}.progress-copy span,.progress-footer{font-size:10px;color:var(--muted)}.progress-track{height:7px;border-radius:999px;background:#e8ece8;overflow:hidden;margin:11px 0}.progress-track i{height:100%;display:block;width:0;background:var(--lime);transition:width .2s}.empty-state{padding:34px 20px;text-align:center;border:1px dashed #d7ddd7;border-radius:16px;margin-top:12px;display:flex;flex-direction:column;gap:5px}.empty-state strong{font-size:13px}.empty-state span{font-size:11px;color:var(--muted)}.caption-editor{margin-top:12px;display:flex;flex-direction:column;gap:8px;max-height:400px;overflow:auto;padding-right:3px}.caption-row{display:grid;grid-template-columns:78px 1fr;gap:9px;border:1px solid var(--line);border-radius:13px;padding:9px}.caption-time{font-size:9px;color:#778078;font-weight:800;line-height:1.55}.caption-row textarea{resize:vertical;min-height:50px;border:0;background:#f7f8f6;border-radius:9px;padding:8px;font-size:12px;outline:none}.preset-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:14px}.preset-btn{min-width:0;border:1px solid var(--line);border-radius:14px;background:#fff;padding:8px;display:grid;grid-template-columns:minmax(62px,.72fr) minmax(0,1fr);align-items:center;gap:9px;min-height:84px;cursor:pointer;text-align:left}.preset-btn.active{border-color:#a3ce2f;background:#fbfff1;box-shadow:0 0 0 2px rgba(167,214,45,.15)}.preset-preview{height:56px;border-radius:11px;background:#131814;display:flex;align-items:center;justify-content:center;text-align:center;padding:6px;font-size:9px;line-height:1.05;text-shadow:-1px -1px #000,1px 1px #000;overflow:hidden}.preset-btn>span:last-child{min-width:0;display:flex;flex-direction:column;gap:3px}.preset-btn strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.preset-btn small{font-size:9px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.inspector-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:10px}.inspector-tabs button{height:54px;border:1px solid var(--line);border-radius:13px;background:#fff;display:grid;grid-template-columns:28px minmax(0,1fr);align-items:center;gap:8px;padding:7px 10px;text-align:left;cursor:pointer}.inspector-tabs button span,.section-head>span{width:28px;height:28px;border-radius:50%;background:#f0f2f0;display:grid;place-items:center;font-size:9px;font-weight:900;color:#8a938d}.inspector-tabs button b{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.inspector-tabs button.active{border-color:#a7d62d;background:#fbfff2}.inspector-tabs button.active span{background:#e4f4ab;color:#506700}.settings-stage{border:1px solid var(--line);border-radius:16px;padding:14px;background:#fcfdfb}.settings-panel{display:none}.settings-panel.active{display:block}.section-head{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:12px}.section-head>div{display:flex;flex-direction:column;gap:3px}.section-head strong{font-size:15px}.section-head small{font-size:10px;color:var(--muted)}.boolean-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:10px}.boolean-grid.one{grid-template-columns:minmax(0,1fr)}.boolean-row{height:48px;border:1px solid var(--line);border-radius:13px;padding:0 12px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff;cursor:pointer}.boolean-row b{font-size:10px;white-space:nowrap}.boolean-row input{position:absolute;opacity:0;pointer-events:none}.boolean-row>span{width:38px;height:21px;border-radius:999px;background:#d5dbe0;position:relative;flex:none;transition:.18s}.boolean-row>span:after{content:"";position:absolute;width:17px;height:17px;left:2px;top:2px;border-radius:50%;background:white;box-shadow:0 1px 3px rgba(0,0,0,.18);transition:.18s}.boolean-row input:checked+span{background:#9ed029}.boolean-row input:checked+span:after{transform:translateX(17px)}.color-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-bottom:10px}.color-setting{height:76px;border:1px solid var(--line);border-radius:13px;padding:9px;background:#fff;display:grid;grid-template-columns:1fr 36px;grid-template-rows:auto auto;gap:4px 8px;align-items:center}.color-setting span{font-size:10px;font-weight:900}.color-setting input{width:36px;height:36px;border:0;padding:0;background:none;grid-row:1/3;grid-column:2}.color-setting code{font-size:9px;color:var(--muted)}.position-layout{display:grid;grid-template-columns:180px minmax(0,1fr);gap:10px}.position-layout>div:first-child{border:1px solid var(--line);border-radius:14px;padding:11px}.position-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:10px}.position-grid button{aspect-ratio:1;border:1px solid var(--line);border-radius:9px;background:#f7f8f6;cursor:pointer;position:relative}.position-grid button:after{content:"";width:6px;height:6px;border-radius:50%;background:#7e8981;position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,-50%)}.position-grid button.active{border-color:#a7d62d;background:#f6fddf}.position-grid button.active:after{background:#83b509}.alignment-row{display:grid;grid-template-columns:110px 1fr;align-items:center;gap:10px;margin-top:10px}.alignment-row>span{font-size:10px;font-weight:900;color:#59625c}.segmented{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;background:#f0f2f0;padding:3px;border-radius:10px}.segmented button{height:32px;border:0;border-radius:8px;background:transparent;font-size:10px;font-weight:800;cursor:pointer}.segmented button.active{background:#fff;box-shadow:0 2px 7px rgba(0,0,0,.07)}.export-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.export-btn{min-height:96px;border:1px solid var(--line);border-radius:14px;background:#fff;padding:14px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:5px;cursor:pointer}.export-btn strong{font-size:14px}.export-btn span{font-size:10px;color:var(--muted);text-align:left}.export-btn:disabled{opacity:.45;cursor:not-allowed}.experimental strong{color:#628d00}.info-callout{margin-top:12px;padding:14px;border-radius:14px;background:#f5f8ef;display:flex;flex-direction:column;gap:4px}.info-callout strong{font-size:12px}.info-callout span{font-size:10px;color:var(--muted)}.system-card{padding:17px 19px;display:grid;grid-template-columns:240px 1fr;gap:16px;align-items:center}.system-card h2{margin:5px 0 0;font-size:16px}.system-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.system-grid>div{padding:10px 12px;background:#f6f7f5;border-radius:11px;display:flex;flex-direction:column;gap:3px;min-width:0}.system-grid span{font-size:9px;color:var(--muted)}.system-grid strong{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}footer{width:min(1500px,calc(100% - 32px));margin:0 auto;padding:20px 4px 34px;display:flex;justify-content:space-between;font-size:10px;color:#8b928d}
@media(max-width:1180px){.editor-layout{grid-template-columns:minmax(300px,.8fr) minmax(480px,1.2fr)}.preset-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.system-card{grid-template-columns:1fr}.preview-card{top:84px}}
@media(max-width:900px){.privacy-pill{display:none}.editor-layout{grid-template-columns:1fr}.preview-card{position:relative;top:auto}.video-shell{max-height:65dvh}.video-stage,.video-stage video{max-height:calc(65dvh - 24px)}.start-card{grid-template-columns:1fr;min-height:auto}.dropzone{min-height:220px}.system-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace-head{align-items:flex-start}.field-grid.three{grid-template-columns:1fr 1fr}.position-layout{grid-template-columns:1fr}.position-grid{grid-template-columns:repeat(9,1fr)}.position-grid button{aspect-ratio:1.5}}
@media(max-width:620px){main{width:calc(100% - 20px);margin-top:14px}.topbar{height:62px;padding:0 10px}.brand img{width:34px;height:34px}.brand strong{font-size:16px}.support-btn b{display:none}.support-btn{width:40px;padding:0;justify-content:center}.lang-switch button{min-width:34px}.start-card{padding:18px;border-radius:20px}.hero-copy h1{font-size:38px}.hero-copy p{font-size:15px}.hero-badges{gap:5px}.hero-badges span{font-size:9px;padding:7px 9px}.workspace-head{padding:2px;flex-direction:column;gap:12px}.workspace-head h1{font-size:27px}.workspace-status{width:100%;justify-content:space-between}.preview-head{padding:12px}.preview-head small{display:none}.preview-meta span:first-child{display:none}.video-shell{padding:8px;max-height:58dvh}.video-stage,.video-stage video{max-height:calc(58dvh - 16px)}.player-controls{grid-template-columns:36px 42px 1fr 42px 36px;padding:0 9px}.main-panel{padding:12px}.panel-title h2{font-size:19px}.field-grid.two,.field-grid.three{grid-template-columns:1fr}.preset-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.preset-btn{min-height:76px;grid-template-columns:54px minmax(0,1fr);padding:6px}.preset-preview{height:50px;font-size:8px}.inspector-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.inspector-tabs button{height:48px}.settings-stage{padding:10px}.boolean-grid{grid-template-columns:1fr}.color-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.position-grid{grid-template-columns:repeat(3,1fr)}.alignment-row{grid-template-columns:1fr}.export-grid{grid-template-columns:1fr}.system-grid{grid-template-columns:1fr 1fr}.system-card{padding:13px}.privacy-note{padding:13px}.footer{padding-left:10px;padding-right:10px}.player-controls input{min-width:0}}

/* v0.4: clear, primary video export */
.preview-export-bar{padding:10px 12px 12px;background:#fff;border-top:1px solid var(--line)}
.quick-export-btn{width:100%;min-height:48px;border:1px solid #d6dfc7;border-radius:13px;background:#f8fceb;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 12px;cursor:pointer;text-align:left}
.quick-export-btn>span{display:flex;flex-direction:column;gap:2px;min-width:0}.quick-export-btn b{font-size:11px}.quick-export-btn small{font-size:9px;color:var(--muted)}.quick-export-btn>strong{width:30px;height:30px;border-radius:9px;background:var(--dark);color:var(--lime);display:grid;place-items:center;font-size:16px;flex:none}.quick-export-btn:disabled{opacity:.46;cursor:not-allowed}
.video-download-cta{width:100%;min-height:76px;border:0;border-radius:16px;background:var(--dark);color:#fff;padding:14px 16px;display:flex;align-items:center;justify-content:space-between;gap:16px;cursor:pointer;margin-bottom:12px;text-align:left}.video-download-cta>span{display:flex;flex-direction:column;gap:3px}.video-download-cta small{font-size:9px;letter-spacing:.12em;color:#baff37;font-style:normal;font-weight:900}.video-download-cta strong{font-size:16px}.video-download-cta em{font-size:10px;color:#b8c0ba;font-style:normal}.video-download-cta>b{width:40px;height:40px;border-radius:12px;background:#242b26;color:#baff37;display:grid;place-items:center;font-size:20px}.video-download-cta:disabled{opacity:.5;cursor:not-allowed}
.export-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:620px){.video-download-cta{min-height:70px}.video-download-cta strong{font-size:15px}.export-grid.two{grid-template-columns:1fr 1fr}}


/* v0.4.1 homepage balance + real home navigation */
.start-card{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:clamp(24px,3vw,44px);
  align-items:stretch;
  min-height:unset;
  padding:clamp(28px,4vw,52px);
}
.start-card .home-panel{
  min-width:0;
  min-height:360px;
  border-radius:22px;
}
.hero-copy.home-panel{
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:clamp(14px,2vw,26px);
}
.hero-copy h1{
  font-size:clamp(44px,4.2vw,64px);
  line-height:1.01;
  max-width:660px;
  margin:14px 0 18px;
}
.hero-copy p{
  max-width:660px;
  margin:0;
}
.hero-badges{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  width:min(100%,500px);
  margin-top:26px;
}
.hero-badges span{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  text-align:center;
  padding:8px 10px;
}
.dropzone.home-panel{
  min-height:360px;
  width:100%;
  padding:28px;
}
.privacy-note{
  min-height:82px;
  justify-content:center;
  text-align:left;
}
.privacy-note>div{
  max-width:760px;
}
.brand:focus-visible,.dropzone:focus-visible{
  outline:3px solid rgba(167,214,45,.38);
  outline-offset:3px;
}

@media(max-width:900px){
  .start-card{grid-template-columns:1fr;gap:18px}
  .start-card .home-panel{min-height:auto}
  .hero-copy.home-panel{padding:12px 4px 4px;text-align:center;align-items:center}
  .hero-copy h1,.hero-copy p{max-width:720px}
  .hero-badges{width:min(100%,560px)}
  .dropzone.home-panel{min-height:240px}
  .privacy-note{grid-column:1;}
}
@media(max-width:620px){
  .start-card{padding:18px;gap:14px}
  .hero-copy.home-panel{padding:8px 0 2px}
  .hero-copy h1{font-size:clamp(36px,11vw,48px);margin:10px 0 14px}
  .hero-badges{grid-template-columns:1fr 1fr;gap:6px;margin-top:18px}
  .hero-badges span{min-height:34px;font-size:9px}
  .dropzone.home-panel{min-height:210px}
  .privacy-note{justify-content:flex-start;text-align:left;min-height:74px}
}

/* v0.4.2 app-like mobile viewport + Support page */
html,body{-webkit-text-size-adjust:100%;text-size-adjust:100%}
@media(pointer:coarse){html,body{touch-action:pan-x pan-y}}
.support-btn{cursor:pointer;font-weight:inherit}
.support-page{display:flex;flex-direction:column;gap:18px}
.support-hero{padding:clamp(30px,5vw,64px);text-align:center;display:flex;flex-direction:column;align-items:center;position:relative;overflow:hidden}
.support-hero:before{content:"";position:absolute;width:240px;height:240px;border-radius:50%;background:radial-gradient(circle,rgba(167,214,45,.13),rgba(167,214,45,0) 68%);top:-120px;left:50%;transform:translateX(-50%);pointer-events:none}
.support-hero>*{position:relative;z-index:1}
.support-hero h1{font-size:clamp(38px,5vw,64px);line-height:1;letter-spacing:-.045em;margin:14px 0 16px;max-width:850px}
.support-hero p{max-width:820px;margin:0;color:var(--muted);font-size:clamp(15px,1.6vw,19px);line-height:1.65}
.support-back{align-self:flex-start;height:38px;border:1px solid var(--line);border-radius:12px;background:#fff;padding:0 12px;display:flex;align-items:center;gap:8px;cursor:pointer;margin-bottom:24px}
.support-back span{font-size:16px}.support-back b{font-size:10px}
.support-principles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.support-tile{padding:24px;min-height:210px;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start}
.support-index{width:36px;height:36px;border-radius:12px;background:var(--lime2);color:#5e8200;display:grid;place-items:center;font-size:10px;font-weight:900;margin-bottom:26px}
.support-tile h2{font-size:18px;letter-spacing:-.02em;margin:0 0 10px}.support-tile p{font-size:12px;color:var(--muted);line-height:1.65;margin:0}
.support-roadmap{padding:clamp(24px,4vw,42px);display:grid;grid-template-columns:minmax(240px,.7fr) minmax(0,1.3fr);gap:32px;align-items:start}
.support-section-head h2{font-size:28px;letter-spacing:-.035em;margin:8px 0 10px}.support-section-head p{font-size:12px;color:var(--muted);line-height:1.6;margin:0;max-width:480px}
.roadmap-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.roadmap-grid>div{min-height:96px;border:1px solid var(--line);border-radius:14px;background:#fbfcfa;padding:14px;display:grid;grid-template-columns:30px minmax(0,1fr);gap:10px;align-items:start}.roadmap-grid span{width:30px;height:30px;border-radius:10px;background:#eef4dc;display:grid;place-items:center;font-size:9px;font-weight:900;color:#617c14}.roadmap-grid b{font-size:11px;line-height:1.45;padding-top:5px}
.support-donate{padding:22px;display:grid;grid-template-columns:64px minmax(0,1fr) auto;align-items:center;gap:18px;background:linear-gradient(135deg,#fff,#f8fceb)}
.donate-mark{width:64px;height:64px;border-radius:19px;background:var(--dark);color:#baff37;display:grid;place-items:center;font-size:31px}.donate-copy{min-width:0}.donate-copy h2{margin:6px 0 5px;font-size:20px;letter-spacing:-.025em}.donate-copy p{margin:0;color:var(--muted);font-size:11px;line-height:1.55;max-width:760px}.donate-btn{min-width:190px;height:50px;border-radius:14px;background:var(--dark);color:#fff;text-decoration:none;display:flex;align-items:center;justify-content:center;gap:12px;padding:0 16px;font-size:11px;font-weight:900}.donate-btn b{color:#baff37;font-size:17px}
@media(max-width:900px){.support-principles{grid-template-columns:1fr}.support-tile{min-height:auto}.support-roadmap{grid-template-columns:1fr}.support-donate{grid-template-columns:56px 1fr}.donate-mark{width:56px;height:56px}.donate-btn{grid-column:1/-1;width:100%}}
@media(max-width:620px){select,textarea,input[type=text],input[type=number],input[type=email],input[type=search],input[type=tel],input[type=url]{font-size:16px!important}.support-page{gap:14px}.support-hero{padding:22px 18px}.support-back{margin-bottom:18px}.support-hero h1{font-size:clamp(34px,10.5vw,46px)}.support-hero p{font-size:14px}.support-principles{gap:12px}.support-tile{padding:18px}.support-index{margin-bottom:18px}.support-roadmap{padding:20px}.roadmap-grid{grid-template-columns:1fr}.support-donate{padding:16px;gap:12px}.donate-copy h2{font-size:18px}.donate-btn{min-width:0}}

/* v0.5.0 SEO, sharing and discovery sections */

/* v0.5.1 support discovery, mobile install prompt and PWA updates */
.install-banner{position:fixed;left:50%;bottom:max(16px,env(safe-area-inset-bottom));transform:translateX(-50%);z-index:120;width:min(560px,calc(100% - 24px));min-height:76px;border:1px solid rgba(17,24,20,.12);border-radius:22px;background:rgba(255,255,255,.96);box-shadow:0 24px 70px rgba(15,22,17,.2);backdrop-filter:blur(18px);padding:12px 12px 12px 14px;display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:12px}
.install-banner>img{width:48px;height:48px;border-radius:14px}.install-copy{display:flex;flex-direction:column;min-width:0;gap:3px}.install-copy strong{font-size:13px}.install-copy span{font-size:10px;color:var(--muted);line-height:1.4}.install-action{height:42px;min-width:104px;border:0;border-radius:13px;background:var(--dark);color:#fff;font-size:11px;font-weight:900;padding:0 16px;cursor:pointer}.install-dismiss{position:absolute;right:-7px;top:-8px;width:26px;height:26px;border-radius:50%;border:1px solid var(--line);background:#fff;box-shadow:0 4px 12px rgba(0,0,0,.08);cursor:pointer;font-size:16px;line-height:1}
.app-modal{position:fixed;inset:0;z-index:140;background:rgba(8,12,9,.5);backdrop-filter:blur(8px);padding:18px;display:grid;place-items:center}.app-modal-card{position:relative;width:min(460px,100%);border:1px solid var(--line);border-radius:28px;background:#fff;box-shadow:0 28px 90px rgba(0,0,0,.26);padding:28px}.app-modal-card>img{width:70px;height:70px;border-radius:20px;margin-bottom:18px}.app-modal-card h2{font-size:28px;line-height:1.05;letter-spacing:-.035em;margin:8px 0 18px}.app-modal-card ol{list-style:none;padding:0;margin:0;display:grid;gap:10px}.app-modal-card li{border:1px solid var(--line);border-radius:16px;padding:12px;display:grid;grid-template-columns:34px 1fr;gap:10px;align-items:start}.app-modal-card li>span{width:34px;height:34px;border-radius:11px;background:#eef4dc;color:#617c14;display:grid;place-items:center;font-size:10px;font-weight:900}.app-modal-card li div{display:flex;flex-direction:column;gap:4px}.app-modal-card li b{font-size:12px}.app-modal-card li small{color:var(--muted);font-size:10px;line-height:1.45}
.update-modal-card{width:min(430px,100%);text-align:left}
.update-modal-icon{width:54px;height:54px;border-radius:17px;background:#eef4dc;color:#617c14;display:grid;place-items:center;font-size:27px;font-weight:800;margin-bottom:18px}
.update-modal-text{margin:0;color:var(--muted);font-size:12px;line-height:1.65}
.update-modal-version{margin-top:18px;border:1px solid var(--line);border-radius:14px;background:#fafbf9;min-height:50px;padding:10px 12px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.update-modal-version span{font-size:10px;color:var(--muted);font-weight:750}.update-modal-version strong{font-size:12px}
.update-modal-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;margin-top:18px}.update-modal-actions .primary-btn,.update-modal-actions .ghost-btn{margin:0;min-height:44px}
.modal-close{position:absolute;top:14px;right:14px;width:34px;height:34px;border-radius:12px;border:1px solid var(--line);background:#f8f9f7;font-size:20px;cursor:pointer}.modal-primary{margin:16px 0 0}
@media(max-width:900px){}
@media(max-width:620px){.install-banner{grid-template-columns:44px minmax(0,1fr) auto;width:calc(100% - 20px);bottom:max(10px,env(safe-area-inset-bottom));padding:10px;border-radius:18px}.install-banner>img{width:44px;height:44px}.install-copy strong{font-size:12px}.install-copy span{font-size:9px}.install-action{min-width:86px;height:40px;padding:0 12px}.app-modal{padding:12px}.app-modal-card{padding:22px 18px 18px;border-radius:24px}.app-modal-card h2{font-size:25px}.update-modal-actions{grid-template-columns:1fr}.update-modal-actions .ghost-btn{width:100%}}




/* v0.5.7 staged creator-friendly processing progress */
.progress-box{padding:15px 16px;background:linear-gradient(180deg,#fbfcfa,#f7f9f5)}
.progress-stage-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px}
.progress-step{display:inline-flex;align-items:center;min-height:24px;padding:0 9px;border-radius:999px;background:#eef4dc;color:#607d12;font-size:9px;font-weight:900;letter-spacing:.04em}
.progress-stage-row #elapsed{font-size:10px;color:var(--muted);font-weight:800}
.progress-message{display:flex;flex-direction:column;gap:4px}
.progress-message strong{font-size:13px;letter-spacing:-.01em}
.progress-message span{font-size:10px;line-height:1.5;color:var(--muted)}
.progress-track{height:8px;margin:13px 0 9px;background:#e5e9e3}
.progress-track i{transition:width .45s cubic-bezier(.22,.75,.25,1)}
.progress-footer{align-items:center}
.progress-footer #progressPercent{font-size:10px;font-weight:900;color:#4f5953}
.progress-local{font-size:8px!important;font-weight:900;letter-spacing:.11em;color:#909992!important}
@media(max-width:620px){
  .progress-box{padding:14px}
  .progress-message strong{font-size:12px}
  .progress-message span{font-size:10px}
}


/* v0.5.9 branded boot splash + dedicated product roadmap */
.app-splash{
  position:fixed;inset:0;z-index:9999;background:#f4f6f1;
  display:grid;place-items:center;opacity:1;visibility:visible;
  transition:opacity .24s ease,visibility .24s ease;
}
.app-splash-lockup{display:flex;flex-direction:column;align-items:center;text-align:center}
.app-splash-lockup img{width:82px;height:82px;border-radius:24px;box-shadow:0 18px 42px rgba(18,28,20,.11)}
.app-splash-lockup strong{margin-top:18px;font-size:26px;letter-spacing:-.035em}
.app-splash-lockup span{margin-top:7px;font-size:8px;font-weight:900;letter-spacing:.18em;color:#7b837d}
html.app-ready .app-splash{opacity:0;visibility:hidden;pointer-events:none}
@media(prefers-reduced-motion:reduce){.app-splash{transition:none}}

.support-roadmap-cta{
  padding:22px;display:grid;grid-template-columns:58px minmax(0,1fr) auto;
  align-items:center;gap:18px;background:linear-gradient(135deg,#fff,#f8fceb);
}
.support-roadmap-icon{
  width:58px;height:58px;border-radius:18px;background:#111612;color:#baff37;
  display:grid;place-items:center;font-size:22px;font-weight:900;
}
.support-roadmap-copy{min-width:0}
.support-roadmap-copy h2{margin:6px 0 5px;font-size:20px;letter-spacing:-.025em}
.support-roadmap-copy p{margin:0;color:var(--muted);font-size:11px;line-height:1.55;max-width:760px}
.roadmap-open-btn{
  min-width:180px;height:48px;border:0;border-radius:14px;background:#111612;color:#fff;
  display:flex;align-items:center;justify-content:center;gap:12px;padding:0 16px;
  font-size:11px;font-weight:900;cursor:pointer;
}
.roadmap-open-btn b{color:#baff37;font-size:16px}

.roadmap-page{display:flex;flex-direction:column;gap:16px}
.roadmap-hero{padding:clamp(24px,4vw,44px)}
.roadmap-hero-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(290px,.65fr);gap:30px;align-items:end}
.roadmap-hero h1{font-size:clamp(34px,4vw,54px);line-height:1.02;letter-spacing:-.045em;margin:12px 0 14px;max-width:760px}
.roadmap-hero p{margin:0;color:var(--muted);font-size:13px;line-height:1.65;max-width:790px}
.roadmap-support-note{
  min-height:150px;border:1px solid var(--line);border-radius:18px;background:#f8fbea;
  padding:18px;display:flex;gap:14px;align-items:flex-start;
}
.roadmap-support-mark{
  flex:0 0 38px;width:38px;height:38px;border-radius:12px;background:#111612;color:#baff37;
  display:grid;place-items:center;font-size:19px;
}
.roadmap-support-note b{display:block;font-size:12px;margin:2px 0 7px}
.roadmap-support-note p{font-size:10px;line-height:1.55}

.roadmap-legend{
  display:flex;align-items:center;justify-content:center;gap:18px;flex-wrap:wrap;
  padding:5px 0;
}
.roadmap-legend span{display:flex;align-items:center;gap:7px;font-size:9px;color:var(--muted)}
.roadmap-legend b{font-size:9px}
.roadmap-legend i{width:8px;height:8px;border-radius:50%}
.status-now{background:#8ebd16}.status-next{background:#111612}.status-later{background:#88918b}.status-explore{background:#d7dbd7}

.roadmap-board{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
.roadmap-lane{padding:22px;overflow:hidden}
.roadmap-lane>header{padding-bottom:16px;border-bottom:1px solid var(--line)}
.roadmap-lane>header>div{display:flex;align-items:center;gap:10px}
.roadmap-lane-index{
  width:32px;height:32px;border-radius:10px;background:#eef4dc;color:#617c14;
  display:grid;place-items:center;font-size:9px;font-weight:900;
}
.roadmap-lane h2{font-size:21px;letter-spacing:-.028em;margin:11px 0 6px}
.roadmap-lane>header p{margin:0;color:var(--muted);font-size:10px;line-height:1.55}
.roadmap-items{display:flex;flex-direction:column}
.roadmap-items article{
  display:grid;grid-template-columns:38px minmax(0,1fr);gap:12px;padding:15px 0;
  border-bottom:1px solid #edf0ed;
}
.roadmap-items article:last-child{border-bottom:0;padding-bottom:2px}
.roadmap-item-icon{
  width:44px;height:44px;border-radius:12px;border:1px solid var(--line);display:grid;place-items:center;flex:0 0 44px;background:#fbfcfa;color:#6a734c
}
.roadmap-item-icon svg{width:18px;height:18px;display:block;stroke:currentColor;vector-effect:non-scaling-stroke}

.roadmap-items b{display:block;font-size:11px;line-height:1.4;margin:1px 0 5px}
.roadmap-items p{margin:0;color:var(--muted);font-size:9.5px;line-height:1.55}
.lane-now{border-top:3px solid #a7d62d}.lane-next{border-top:3px solid #111612}
.lane-later{border-top:3px solid #9ca39e}.lane-explore{border-top:3px solid #d9ddd9}

.roadmap-support{
  padding:22px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:22px;align-items:center;
  background:linear-gradient(135deg,#fff,#f8fceb);
}
.roadmap-support h2{margin:6px 0 6px;font-size:20px;letter-spacing:-.025em}
.roadmap-support p{margin:0;color:var(--muted);font-size:10.5px;line-height:1.55;max-width:790px}

@media(max-width:900px){
  .support-roadmap-cta{grid-template-columns:52px minmax(0,1fr)}
  .support-roadmap-icon{width:52px;height:52px}
  .roadmap-open-btn{grid-column:1/-1;width:100%}
  .roadmap-hero-grid{grid-template-columns:1fr}
  .roadmap-board{grid-template-columns:1fr}
  .roadmap-support{grid-template-columns:1fr}
  .roadmap-support .donate-btn{width:100%}
}
@media(max-width:620px){
  .app-splash-lockup img{width:72px;height:72px;border-radius:21px}
  .app-splash-lockup strong{font-size:23px}
  .support-roadmap-cta{padding:16px;gap:12px}
  .support-roadmap-copy h2{font-size:18px}
  .roadmap-page{gap:12px}
  .roadmap-hero{padding:20px 18px}
  .roadmap-hero h1{font-size:clamp(32px,10vw,42px)}
  .roadmap-support-note{min-height:0}
  .roadmap-legend{justify-content:flex-start;padding:2px 4px}
  .roadmap-lane{padding:17px}
  .roadmap-lane h2{font-size:19px}
  .roadmap-items article{grid-template-columns:34px minmax(0,1fr);gap:10px;padding:13px 0}
  .roadmap-item-icon{width:34px;height:34px;border-radius:10px}
  .roadmap-support{padding:17px}
}


/* v0.5.10 immediate local export feedback */
.quick-export-progress{
  margin-top:9px;padding:10px 11px 11px;border:1px solid #dfe5d8;border-radius:12px;
  background:#fbfdf7;
}
.quick-export-progress-head{
  display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:2px;
}
.quick-export-progress-head span{
  font-size:8px;font-weight:900;letter-spacing:.1em;color:#788174;
}
.quick-export-progress-head strong{
  font-size:9px;font-weight:900;color:#53604f;
}
.quick-export-progress small{
  display:block;color:var(--muted);font-size:9px;line-height:1.45;
}
.export-progress-box{margin:0 0 12px}
.export-progress-stage{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
}
.export-progress-stage span{
  font-size:8px;font-weight:900;letter-spacing:.1em;color:#71806a;
}
.export-progress-stage strong{
  font-size:9px;color:#505a52;
}
.export-progress-copy{
  display:flex;flex-direction:column;gap:3px;margin-top:8px;
}
.export-progress-copy strong{font-size:12px}
.export-progress-copy span{font-size:10px;line-height:1.5;color:var(--muted)}
.export-progress-box>small{
  display:block;font-size:9px;line-height:1.45;color:var(--muted);
}
.export-progress-track{position:relative}
.export-progress-track.is-indeterminate i{
  width:32%!important;
  animation:kaptionoExportIndeterminate 1.05s ease-in-out infinite;
  transition:none;
}
.export-progress-track.is-error i{background:var(--danger)!important;animation:none}
.export-progress-track.is-done i{background:var(--lime)!important;animation:none}
@keyframes kaptionoExportIndeterminate{
  0%{transform:translateX(-115%)}
  55%{transform:translateX(145%)}
  100%{transform:translateX(320%)}
}
.quick-export-btn:disabled,
.video-download-cta:disabled{
  cursor:not-allowed;
}
.quick-export-btn:disabled:not([data-unavailable]),
.video-download-cta:disabled:not([data-unavailable]){
  opacity:.78;
}
@media(prefers-reduced-motion:reduce){
  .export-progress-track.is-indeterminate i{
    animation:none;
    width:100%!important;
    opacity:.38;
  }
}
@media(max-width:620px){
  .quick-export-progress{padding:9px 10px 10px}
  .export-progress-copy span,.export-progress-box>small{font-size:9.5px}
}


/* v0.5.11 High Accuracy + optional Enhanced */
.enhanced-option{
  margin:12px 0 14px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:16px;
  align-items:center;
  padding:14px 15px;
  border:1px solid var(--line);
  border-radius:14px;
  background:linear-gradient(135deg,#fbfcfa,#f7fbea);
}
.enhanced-copy{min-width:0}
.enhanced-title-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:5px}
.enhanced-title-row strong{font-size:12px}
.enhanced-title-row span{
  padding:3px 6px;border-radius:6px;background:#111612;color:#baff37;
  font-size:7px;font-weight:900;letter-spacing:.09em;
}
.enhanced-copy p{margin:0;color:#475048;font-size:10px;line-height:1.5}
.enhanced-copy small{display:block;margin-top:5px;color:var(--muted);font-size:8.5px;line-height:1.45}
.enhanced-toggle{
  width:76px;height:36px;border:1px solid #dce2d8;border-radius:11px;background:#fff;
  padding:4px 7px 4px 5px;display:flex;align-items:center;justify-content:space-between;
  gap:6px;cursor:pointer;transition:border-color .16s ease,background .16s ease;
}
.enhanced-toggle i{
  width:25px;height:25px;border-radius:8px;background:#e7ebe5;display:block;
  transition:background .16s ease,transform .16s ease;
}
.enhanced-toggle b{font-size:8px;letter-spacing:.08em;color:#7a837c}
.enhanced-toggle.active{background:#111612;border-color:#111612}
.enhanced-toggle.active i{background:#baff37}
.enhanced-toggle.active b{color:#fff}
@media(max-width:620px){
  .enhanced-option{grid-template-columns:minmax(0,1fr) auto;padding:13px;gap:10px}
  .enhanced-toggle{width:68px}
}


/* v0.5.12 Coming Soon states */
.enhanced-coming-soon{
  position:relative;
  opacity:.56;
  filter:saturate(.45);
  cursor:not-allowed;
  user-select:none;
}
.enhanced-coming-soon .enhanced-copy{
  filter:blur(.18px);
}
.enhanced-coming-soon .enhanced-title-row span{
  background:#687068;
  color:#fff;
}
.enhanced-coming-soon .enhanced-toggle,
.enhanced-coming-soon .enhanced-toggle:disabled{
  opacity:.72;
  cursor:not-allowed;
  background:#eef0ed;
  border-color:#dde1dc;
}
.enhanced-coming-soon .enhanced-toggle i{
  background:#d7dbd6;
}
.enhanced-coming-soon .enhanced-toggle b{
  color:#737b75;
}
#modelSelect option:disabled{
  color:#9ca39e;
}


/* v0.5.16 frame-synced word highlighting */
.caption-overlay .word{
  color:inherit;
  transform:scale(1);
  transform-origin:center 72%;
  transition:color 72ms linear,transform 82ms cubic-bezier(.2,.75,.2,1);
  will-change:color,transform;
}
.caption-overlay .word.active-word{
  color:var(--caption-highlight)!important;
  transform:scale(var(--word-active-scale,1.055));
}
@media(prefers-reduced-motion:reduce){
  .caption-overlay .word{
    transition:color 40ms linear;
    transform:none!important;
  }
}


/* v0.5.18 footer navigation */
.site-footer{
  width:min(1500px,calc(100% - 32px));
  margin:0 auto;
  padding:20px 4px 34px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  color:#8b928d;
}
.footer-meta{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  font-size:10px;
}
.footer-meta-mobile{display:none}.footer-meta-license{color:#707973;text-decoration:none;font-weight:800}.footer-meta-license:hover{color:var(--ink);text-decoration:underline}
.footer-links{
  display:flex;
  align-items:center;
  gap:4px;
  flex-wrap:wrap;
}
.footer-links button,
.footer-links a{
  border:0;
  background:transparent;
  color:#707973;
  text-decoration:none;
  font-size:10px;
  font-weight:800;
  padding:7px 9px;
  border-radius:8px;
  cursor:pointer;
}
.footer-links button:hover,
.footer-links a:hover{
  background:#eef1ed;
  color:var(--ink);
}


@media(max-width:620px){
  main{
    margin-bottom:18px;
  }
  .site-footer{
    width:calc(100% - 20px);
    flex-direction:column;
    align-items:center;
    justify-content:center;
    padding:16px 0 max(22px,env(safe-area-inset-bottom));
    gap:10px;
    border-top:1px solid var(--line);
    text-align:center;
  }
  .footer-meta-desktop{display:none}
  .footer-meta-mobile{
    order:2;
    display:flex;
    width:100%;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:3px;
    color:#8b928d;
    font-size:10px;
    line-height:1.35;
  }
  .footer-meta-mobile small{
    font-size:9px;
    color:#a0a7a2;
    font-weight:700;
  }
  .footer-links{
    order:1;
    width:100%;
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    align-items:center;
    gap:2px;
  }
  .footer-links button,
  .footer-links a{
    min-width:0;
    min-height:38px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:8px 4px;
    border-radius:9px;
    font-size:11px;
    line-height:1;
    white-space:nowrap;
  }
}

/* v0.5.27 homepage refinements */
@media(min-width:901px){
  main{
    margin-top:18px;
    margin-bottom:10px;
  }
  .start-card{
    min-height:calc(100dvh - 100px);
    padding:clamp(24px,2.8vw,38px);
    gap:clamp(16px,2vw,28px);
    grid-template-rows:minmax(0,1fr) auto;
    align-items:center;
  }
  .start-card .home-panel{
    min-height:0;
  }
  .hero-copy.home-panel{
    padding:clamp(8px,1.4vw,18px);
  }
  .hero-copy h1{
    margin:10px 0 14px;
  }
  .hero-copy p{
    line-height:1.46;
  }
  .hero-badges{
    margin-top:18px;
    gap:7px;
  }
  .hero-badges span{
    min-height:34px;
    padding:7px 10px;
  }
  .dropzone.home-panel{
    width:100%;
    min-height:0;
    height:clamp(280px,38dvh,350px);
    align-self:center;
    padding:22px;
  }
  .privacy-note{
    min-height:64px;
    padding:13px 18px;
  }
}

@media(max-width:900px){
  main{
    margin-top:10px;
    margin-bottom:8px;
  }
  .start-card{
    min-height:calc(100dvh - 82px);
    padding:clamp(12px,1.8dvh,18px);
    gap:clamp(8px,1.2dvh,12px);
    align-content:center;
  }
  .hero-copy.home-panel{
    padding:4px 0 0;
  }
  .hero-copy h1{
    margin:8px 0 10px;
  }
  .hero-copy p{
    line-height:1.42;
  }
  .hero-badges{
    margin-top:12px;
  }
  .dropzone.home-panel{
    min-height:0;
    height:clamp(155px,20dvh,190px);
    padding:16px;
  }
  .upload-icon{
    width:54px;
    height:54px;
  }
  .privacy-note{
    min-height:62px;
    padding:10px 13px;
  }
}

@media(max-width:620px){
  .start-card{
    min-height:calc(100dvh - 72px);
    padding:12px;
    gap:8px;
  }
  .hero-copy h1{
    font-size:clamp(36px,11vw,48px);
  }
  .hero-copy p{
    font-size:15px;
  }
  .hero-badges{
    margin-top:10px;
    gap:5px;
  }
  .hero-badges span{
    min-height:32px;
    padding:6px 8px;
    font-size:9px;
  }
  .dropzone.home-panel{
    height:clamp(150px,19dvh,180px);
  }
  .dropzone strong{
    font-size:19px;
  }
  .privacy-note{
    min-height:60px;
    padding:9px 11px;
  }
}


/* v0.5.27 balanced homepage + clearer model selector */
#modelSelect{font-weight:800}
#modelSelect option{font-weight:800}
#modelHint{display:block;line-height:1.45}

@media(min-width:901px){
  .start-card{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    grid-template-rows:minmax(0,1fr) auto;
    align-items:stretch;
    min-height:calc(100dvh - 100px);
    padding:clamp(28px,3vw,42px);
    gap:clamp(24px,2.6vw,40px);
  }
  .start-card .home-panel{
    min-height:100%;
  }
  .hero-copy.home-panel{
    display:flex;
    flex-direction:column;
    justify-content:center;
    padding:clamp(12px,1.8vw,22px) 0;
  }
  .hero-copy h1{
    max-width:920px;
    margin:10px 0 16px;
  }
  .hero-copy p{
    max-width:760px;
    line-height:1.5;
  }
  .hero-badges{
    margin-top:22px;
  }
  .dropzone.home-panel{
    align-self:stretch;
    height:100%;
    min-height:380px;
    padding:28px;
  }
  .privacy-note{
    min-height:72px;
    padding:14px 18px;
  }
}

@media(max-width:900px){
  .start-card{
    min-height:auto;
    padding:18px;
    gap:14px;
    align-content:start;
  }
  .hero-copy.home-panel{
    padding:8px 0 0;
    text-align:center;
    align-items:center;
  }
  .hero-copy h1,.hero-copy p{
    max-width:100%;
  }
  .hero-badges{
    justify-content:center;
    margin-top:14px;
  }
  .dropzone.home-panel{
    height:auto;
    min-height:240px;
    padding:20px 16px;
  }
  .privacy-note{
    min-height:84px;
    padding:14px;
  }
}

@media(max-width:620px){
  .start-card{
    padding:18px;
    gap:14px;
  }
  .hero-copy.home-panel{
    padding:8px 0 0;
  }
  .hero-copy h1{
    font-size:clamp(38px,11vw,56px);
    margin:10px 0 14px;
  }
  .hero-copy p{
    font-size:15px;
    line-height:1.48;
  }
  .hero-badges{
    margin-top:14px;
    gap:8px;
  }
  .hero-badges span{
    min-height:36px;
    padding:8px 10px;
    font-size:10px;
  }
  .dropzone.home-panel{
    min-height:230px;
    padding:24px 16px;
    gap:12px;
  }
  .upload-icon{
    width:60px;
    height:60px;
    font-size:30px;
  }
  .dropzone strong{
    font-size:20px;
  }
  .privacy-note{
    min-height:90px;
    padding:14px;
    align-items:flex-start;
  }
}


/* Unified AI model + speech language pickers */
.model-setting,.language-setting{position:relative;overflow:visible}
.model-native-select{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;overflow:hidden!important}
.model-picker,.language-picker{position:relative;width:100%;z-index:8}
.language-picker{z-index:7}
.model-picker-button,.language-picker-button{width:100%;min-height:44px;border:1px solid #dbe0db;border-radius:11px;background:#f8f9f7;padding:0 13px;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;cursor:pointer;color:var(--ink);font-size:14px;font-weight:400;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease}
.model-picker-button:hover,.language-picker-button:hover{border-color:#c8cec8;background:#fafbf9}
.model-picker-button:focus-visible,.language-picker-button:focus-visible{outline:none;border-color:#9abd3b;box-shadow:0 0 0 3px rgba(167,214,45,.14)}
.model-picker-copy,.language-picker-label{min-width:0;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.model-picker-copy .model-name,.language-picker-label{font-weight:500}
.model-picker-actions{display:flex;align-items:center;gap:10px;flex:none}
.model-picker-actions .model-engine{display:inline-flex;align-items:center;min-height:23px;padding:4px 8px;border-radius:999px;background:#eef4dc;color:#51631b;font-size:9px;line-height:1;font-weight:900;letter-spacing:.08em}
.picker-chevron{width:8px;height:8px;flex:none;border-right:1.8px solid #323933;border-bottom:1.8px solid #323933;transform:rotate(45deg) translate(-1px,-1px);transform-origin:center;transition:transform .16s ease}
.model-picker.open .picker-chevron,.language-picker.open .picker-chevron{transform:rotate(225deg) translate(-1px,-1px)}
.model-picker-menu,.language-picker-menu{position:absolute;left:0;right:0;top:calc(100% + 7px);z-index:120;border:1px solid #aeb5af;border-radius:14px;background:#fff;box-shadow:0 18px 42px rgba(16,24,18,.16);padding:7px;max-height:min(360px,calc(100dvh - 180px));overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.model-picker-group{display:grid;gap:3px}
.model-picker-group+.model-picker-group{margin-top:7px;padding-top:8px;border-top:1px solid #e7eae6}
.model-picker-group-title{padding:6px 10px 5px;color:#747d76;font-size:10px;line-height:1;font-weight:900;letter-spacing:.14em}
.model-picker-option,.language-picker-option{width:100%;min-height:48px;border:0;border-radius:10px;background:#fff;padding:9px 11px;text-align:left;cursor:pointer;color:var(--ink);font-size:14px;font-weight:400;line-height:1.25;transition:background .14s ease}
.model-picker-option{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px}
.language-picker-option{display:flex;align-items:center;justify-content:flex-start}
.model-option-name,.language-option-name{min-width:0;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.model-option-meta{display:inline-flex;align-items:center;justify-content:center;min-height:23px;padding:4px 8px;border-radius:999px;background:#f1f3ef;color:#69716b;font-size:9px;line-height:1;font-weight:800;white-space:nowrap}
.model-picker-option:hover,.model-picker-option:focus-visible,.language-picker-option:hover,.language-picker-option:focus-visible{background:#f4f6f1;outline:none}
.model-picker-option.active,.language-picker-option.active{background:#eef4dc}
.model-picker-option.active .model-option-meta{background:#dfeab8;color:#50621a}
.model-picker-group-cloud .model-option-meta{background:#eef1ef;color:#5e6660}
#modelHint{margin-top:1px}

@media(max-width:620px){
  .hero-copy p[data-i18n="heroText"]{max-width:500px;line-height:1.42}
  .model-picker-button,.language-picker-button{min-height:46px;font-size:16px;padding:0 13px}
  .model-picker-actions .model-engine{min-height:24px;padding:4px 8px;font-size:10px}
  .model-picker-menu,.language-picker-menu{padding:7px}
  .model-picker-group-title{padding:6px 10px 5px;font-size:10px}
  .model-picker-option,.language-picker-option{min-height:50px;padding:10px 11px;font-size:15px}
  .model-option-meta{min-height:24px;padding:4px 8px;font-size:10px}
}


/* v0.5.30 stable mobile bilingual layout */
.hero-copy h1{text-wrap:balance}
@media(max-width:900px){
  [data-i18n].i18n-stable{min-height:var(--i18n-stable-height)}
  .hero-copy h1[data-i18n="heroTitle"],
  .hero-copy p[data-i18n="heroText"]{width:100%}
}


/* v0.5.31 phone home viewport balance */
@media(max-width:620px){
  main{
    margin-top:14px;
    margin-bottom:0;
  }
  .start-card{
    min-height:calc(100svh - 88px);
    grid-template-rows:auto minmax(260px,1fr);
    align-content:stretch;
    align-items:stretch;
    padding:18px;
    padding-bottom:22px;
    gap:16px;
  }
  .privacy-note{
    display:none;
  }
  .dropzone.home-panel{
    width:100%;
    height:auto;
    min-height:260px;
    align-self:stretch;
    padding:26px 16px;
    gap:12px;
  }
  .upload-icon{
    width:62px;
    height:62px;
    font-size:31px;
  }
  .site-footer{
    margin-top:18px;
    padding-top:15px;
  }
}


/* v0.5.32 Cloud quota availability */
.model-picker-option.unavailable,
.model-picker-option:disabled{opacity:.5;cursor:not-allowed;background:#f4f5f3;color:#747c76}
.model-picker-option.unavailable:hover,
.model-picker-option:disabled:hover{background:#f4f5f3}
.model-picker-option.unavailable strong,
.model-picker-option:disabled strong{color:#737b75}


/* v0.5.35 selectable video export modes */
.export-mode-wrap{margin:0 0 12px;padding:11px;border:1px solid var(--line);border-radius:14px;background:#fafbf9}
.export-mode-wrap-quick{margin-bottom:9px;padding:9px}
.export-mode-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px;min-height:18px}
.export-mode-head>span{font-size:10px;font-weight:900;color:#4f5953}
.export-mode-head>small{font-size:9px;color:var(--muted);text-align:right}
.export-mode-selector{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.export-mode-option{min-width:0;min-height:58px;border:1px solid #dbe0db;border-radius:11px;background:#fff;padding:9px 10px;display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:left;cursor:pointer;transition:border-color .16s ease,background .16s ease,box-shadow .16s ease}
.export-mode-option>span{min-width:0;display:flex;flex-direction:column;gap:3px}
.export-mode-option strong{font-size:11px;line-height:1.2}
.export-mode-option small{font-size:9px;line-height:1.25;color:var(--muted)}
.export-mode-option>b{flex:none;padding:5px 7px;border-radius:999px;background:#eaf6c8;color:#57750d;font-size:7px;font-weight:900;letter-spacing:.04em;text-transform:uppercase}
.export-mode-option.active{border-color:#a7d62d;background:#fbfff2;box-shadow:0 0 0 2px rgba(167,214,45,.12)}
.export-mode-option.active strong{color:#18220f}
.export-mode-option:hover:not(:disabled){border-color:#b8c89b}
.export-mode-option.unavailable,.export-mode-option:disabled{opacity:.48;cursor:not-allowed}
.export-mode-wrap-quick .export-mode-head{display:none}
.export-mode-wrap-quick .export-mode-option{min-height:50px;padding:8px 9px}
.export-mode-wrap-quick .export-mode-option strong{font-size:10px}
.export-mode-wrap-quick .export-mode-option small{font-size:8px}
.export-mode-wrap-quick .export-mode-option>b{font-size:6.5px;padding:4px 6px}
@media(max-width:620px){
  .export-mode-wrap{padding:10px;margin-bottom:10px}
  .export-mode-head{align-items:flex-start;flex-direction:column;gap:2px;margin-bottom:8px}
  .export-mode-head>small{text-align:left;font-size:9.5px}
  .export-mode-selector{gap:6px}
  .export-mode-option{min-height:64px;padding:9px}
  .export-mode-option strong{font-size:11px}
  .export-mode-option small{font-size:9px}
  .export-mode-option>b{font-size:6.5px;padding:4px 5px}
  .export-mode-wrap-quick{padding:8px}
  .export-mode-wrap-quick .export-mode-option{min-height:56px}
}


/* v0.5.35 symmetrical desktop roadmap */
@media(min-width:901px){
  .roadmap-board{
    align-items:stretch;
    grid-auto-rows:1fr;
  }
  .roadmap-lane{
    height:100%;
    display:flex;
    flex-direction:column;
  }
  .roadmap-lane>header{
    min-height:132px;
  }
  .roadmap-items{
    flex:1;
    display:grid;
    grid-template-rows:repeat(4,minmax(0,1fr));
  }
  .roadmap-items article{
    min-height:88px;
    align-content:center;
  }
}


/* v0.5.37 Local AI download alternatives */
body.modal-open{overflow:hidden}
.model-download-card{width:min(500px,100%);padding:28px}
.model-download-card h2{margin:10px 0 9px;font-size:30px;line-height:1.05;letter-spacing:-.035em;padding-right:34px}
.model-download-description{margin:0;color:var(--muted);font-size:12px;line-height:1.6;max-width:420px}
.model-download-size{margin-top:18px;padding:16px 17px;border:1px solid var(--line);border-radius:16px;background:#f8fbea;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 14px;align-items:center}
.model-download-size>span{font-size:10px;font-weight:900;color:#59625c}
.model-download-size>strong{font-size:20px;letter-spacing:-.025em;color:#25320f}
.model-download-size>small{grid-column:1/-1;color:var(--muted);font-size:9px;line-height:1.45}
.model-download-local-note{margin-top:10px;padding:13px 14px;border-radius:15px;background:#f6faf2;display:grid;grid-template-columns:32px minmax(0,1fr);gap:11px;align-items:start}
.model-download-local-note>span{width:32px;height:32px;border-radius:50%;background:var(--lime2);display:grid;place-items:center;color:#638b00;font-weight:900}
.model-download-local-note>div{display:flex;flex-direction:column;gap:3px;padding-top:1px}
.model-download-local-note strong{font-size:11px}
.model-download-local-note small{font-size:9px;line-height:1.5;color:var(--muted)}
.model-download-actions{display:grid;gap:8px;margin-top:16px}
.model-download-primary{margin:0;min-height:50px}
.model-download-secondary{width:100%;height:46px;background:#fff}
.model-download-cancel{height:38px;border:0;background:transparent;color:var(--muted);font-size:10px;font-weight:800;cursor:pointer}
.model-download-cancel:hover{color:var(--ink)}
@media(max-width:620px){
  .model-download-card{padding:23px 18px 18px;border-radius:24px}
  .model-download-card h2{font-size:28px;margin-top:9px}
  .model-download-description{font-size:12px}
  .model-download-size{padding:14px;margin-top:15px}
  .model-download-size>strong{font-size:19px}
  .model-download-local-note{padding:12px}
  .model-download-primary{min-height:52px;font-size:13px}
  .model-download-secondary{height:48px;font-size:12px}
}

/* v0.5.41 privacy, consent and legal surfaces */
.privacy-banner{position:fixed;left:50%;bottom:max(18px,env(safe-area-inset-bottom));z-index:220;width:min(960px,calc(100% - 32px));padding:14px;border:1px solid rgba(17,23,19,.12);border-radius:22px;background:rgba(255,255,255,.97);box-shadow:0 24px 80px rgba(13,20,15,.18);backdrop-filter:blur(18px);display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center;opacity:0;transform:translate(-50%,18px);transition:opacity .18s ease,transform .18s ease}.privacy-banner.visible{opacity:1;transform:translate(-50%,0)}
.privacy-banner-copy{display:grid;grid-template-columns:38px minmax(0,1fr);gap:12px;align-items:start;min-width:0}.privacy-banner-mark{width:38px;height:38px;border-radius:13px;background:#eef7d6;color:#678900;display:grid;place-items:center;font-size:15px;font-weight:900}.privacy-banner-copy strong{display:block;font-size:12px;letter-spacing:-.01em;margin:1px 0 4px}.privacy-banner-copy p{margin:0;color:var(--muted);font-size:10px;line-height:1.55;max-width:650px}.privacy-banner-copy a{display:inline-flex;margin-top:5px;color:#58645c;font-size:9px;font-weight:900;text-decoration:none}
.privacy-banner-actions{display:grid;grid-template-columns:auto auto auto;gap:7px;align-items:center}.privacy-action{min-height:42px;border-radius:12px;padding:0 13px;font-size:10px;font-weight:900;cursor:pointer;white-space:nowrap}.privacy-action.primary{border:1px solid var(--dark);background:var(--dark);color:#fff}.privacy-action.secondary{border:1px solid var(--line);background:#fff;color:var(--ink)}.privacy-action.tertiary{border:0;background:#f1f3f0;color:#5f6962}
.privacy-settings-backdrop{position:fixed;inset:0;z-index:230;padding:18px;background:rgba(10,15,12,.46);backdrop-filter:blur(8px);display:grid;place-items:center;opacity:0;transition:opacity .16s ease}.privacy-settings-backdrop.visible{opacity:1}.privacy-settings-card{position:relative;width:min(520px,100%);max-height:min(760px,calc(100dvh - 32px));overflow:auto;border:1px solid var(--line);border-radius:28px;background:#fff;box-shadow:0 30px 90px rgba(0,0,0,.24);padding:28px}.privacy-settings-card h2{margin:8px 42px 9px 0;font-size:29px;line-height:1.04;letter-spacing:-.04em}.privacy-settings-intro{margin:0 0 18px;color:var(--muted);font-size:11px;line-height:1.6}.privacy-settings-close{position:absolute;top:15px;right:15px;width:36px;height:36px;border:1px solid var(--line);border-radius:12px;background:#f7f8f6;font-size:19px;cursor:pointer}.privacy-choice-list{display:grid;gap:9px}.privacy-choice{min-height:92px;border:1px solid var(--line);border-radius:16px;background:#fbfcfa;padding:14px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;cursor:pointer}.privacy-choice.locked{cursor:default;background:#f8faf4}.privacy-choice-title{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.privacy-choice-title strong{font-size:12px}.privacy-choice-title span{font-size:8px;font-weight:900;letter-spacing:.07em;color:#6c766f;background:#eef1ed;border-radius:999px;padding:4px 7px}.privacy-choice p{margin:5px 0 0;color:var(--muted);font-size:9px;line-height:1.5}.privacy-choice input{position:absolute;opacity:0;pointer-events:none}.privacy-switch,.privacy-lock-toggle{width:44px;height:24px;border-radius:999px;background:#d8ddd9;position:relative;flex:none;transition:.18s}.privacy-switch i,.privacy-lock-toggle i{position:absolute;width:20px;height:20px;left:2px;top:2px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.18);transition:.18s}.privacy-choice input:checked+.privacy-switch,.privacy-lock-toggle.on{background:#a7d62d}.privacy-choice input:checked+.privacy-switch i,.privacy-lock-toggle.on i{transform:translateX(20px)}.privacy-settings-links{display:flex;flex-wrap:wrap;gap:5px;margin:14px 0}.privacy-settings-links a{color:#68726b;text-decoration:none;font-size:9px;font-weight:850;padding:6px 8px;border-radius:8px;background:#f3f5f2}.privacy-save{width:100%;height:48px;border:0;border-radius:14px;background:var(--dark);color:#fff;font-size:11px;font-weight:900;cursor:pointer}html.privacy-modal-open,html.privacy-modal-open body{overflow:hidden}
.footer-links{gap:7px}.footer-link-group{display:flex;align-items:center;gap:3px;flex-wrap:wrap}.footer-link-divider{width:1px;height:22px;background:var(--line);margin:0 2px}
.legal-main{width:min(1040px,calc(100% - 32px));margin:30px auto 48px}.legal-hero{padding:clamp(28px,4vw,48px);margin-bottom:14px}.legal-hero h1{font-size:clamp(36px,5vw,58px);line-height:1;letter-spacing:-.045em;margin:10px 0 14px}.legal-hero p{margin:0;color:var(--muted);font-size:13px;line-height:1.65;max-width:760px}.legal-updated{display:inline-flex;margin-top:16px;padding:7px 10px;border-radius:999px;background:#f2f5ed;color:#69736c;font-size:9px;font-weight:900}.legal-content{padding:clamp(24px,4vw,42px);display:grid;grid-template-columns:210px minmax(0,1fr);gap:34px;align-items:start}.legal-toc{position:sticky;top:92px;display:flex;flex-direction:column;gap:4px}.legal-toc a{color:#78817b;text-decoration:none;font-size:10px;font-weight:850;padding:8px 9px;border-radius:9px}.legal-toc a:hover{background:#f1f3f0;color:var(--ink)}.legal-article{min-width:0}.legal-section{padding:0 0 24px;margin:0 0 24px;border-bottom:1px solid #edf0ed;scroll-margin-top:100px}.legal-section:last-child{border-bottom:0;margin-bottom:0;padding-bottom:0}.legal-section h2{font-size:21px;letter-spacing:-.025em;margin:0 0 10px}.legal-section h3{font-size:13px;margin:18px 0 7px}.legal-section p,.legal-section li{color:#626c65;font-size:11px;line-height:1.7}.legal-section p{margin:0 0 10px}.legal-section ul{margin:8px 0 0;padding-left:20px}.legal-section strong{color:#273029}.legal-callout{border:1px solid #dfe8c7;border-radius:16px;background:#f9fced;padding:15px 16px;margin:12px 0}.legal-callout strong{display:block;font-size:11px;margin-bottom:4px}.legal-callout p{margin:0;font-size:10px}.legal-lang-switch{height:40px;padding:3px;border-radius:13px;background:#eef0ef;display:flex}.legal-lang-switch button{min-width:38px;border:0;background:transparent;border-radius:10px;font-size:11px;font-weight:900;cursor:pointer}.legal-lang-switch button.active{background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.08)}.legal-home-link{width:40px;height:40px;padding:0;border:1px solid var(--line);border-radius:13px;background:#fff;text-decoration:none;display:flex;align-items:center;justify-content:center;font-size:16px;line-height:1;font-weight:850;color:var(--ink)}.page-back-nav{cursor:pointer}.legal-copy[data-lang-copy]{display:none}.legal-copy[data-lang-copy].active{display:block}
@media(max-width:900px){.privacy-banner{grid-template-columns:1fr;gap:11px}.privacy-banner-actions{grid-template-columns:repeat(3,minmax(0,1fr))}.privacy-action{white-space:normal;line-height:1.2;padding:8px 10px}.legal-content{grid-template-columns:1fr;gap:18px}.legal-toc{position:static;display:flex;flex-direction:row;overflow-x:auto;padding-bottom:4px}.legal-toc a{white-space:nowrap;background:#f4f6f2}}
@media(max-width:620px){.privacy-banner{width:calc(100% - 16px);bottom:max(8px,env(safe-area-inset-bottom));padding:13px;border-radius:22px;gap:10px}.privacy-banner-copy{grid-template-columns:34px minmax(0,1fr);gap:10px}.privacy-banner-mark{width:34px;height:34px;border-radius:11px}.privacy-banner-actions{grid-template-columns:1fr 1fr;gap:7px}.privacy-action{min-height:44px;font-size:10px}.privacy-action.tertiary{grid-column:1/-1;min-height:38px}.privacy-settings-backdrop{padding:8px;align-items:end}.privacy-settings-card{width:100%;max-height:calc(100dvh - 16px);border-radius:26px 26px 18px 18px;padding:24px 18px max(18px,env(safe-area-inset-bottom))}.privacy-settings-card h2{font-size:26px}.privacy-choice{min-height:100px;padding:13px}.footer-links{width:100%;display:flex!important;flex-direction:column;gap:5px}.footer-link-group{width:100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px}.footer-link-divider{width:100%;height:1px;margin:2px 0;background:#e7ebe7}.footer-links .footer-link-group button,.footer-links .footer-link-group a{min-width:0;min-height:38px;padding:8px 3px;font-size:10px;white-space:nowrap}.legal-main{width:calc(100% - 20px);margin:14px auto 26px}.legal-hero{padding:24px 18px;border-radius:22px}.legal-hero h1{font-size:clamp(36px,11vw,48px)}.legal-hero p{font-size:12px}.legal-content{padding:20px 18px;border-radius:22px}.legal-section h2{font-size:19px}.legal-section p,.legal-section li{font-size:11px}.legal-home-link{width:40px;padding:0;justify-content:center;font-size:16px}}

.legal-toc.legal-copy[data-lang-copy].active{display:flex}


/* v0.5.41 live Cloud daily availability */
.cloud-quota-status{
  min-height:26px;
  margin-top:2px;
  padding:6px 9px;
  border-radius:9px;
  background:#f2f8e8;
  color:#58721a;
  display:flex;
  align-items:center;
  gap:7px;
  font-size:9px;
  font-weight:850;
  line-height:1.25;
}
.cloud-quota-status i{
  width:7px;
  height:7px;
  flex:0 0 7px;
  border-radius:50%;
  background:#78ad12;
}
.cloud-quota-status.warning{background:#fff7df;color:#805e0f}
.cloud-quota-status.warning i{background:#d59a13}
.cloud-quota-status.unavailable{background:#f4f5f4;color:#7d847f}
.cloud-quota-status.unavailable i{background:#a0a6a2}
@media(max-width:620px){
  .cloud-quota-status{
    min-height:28px;
    padding:7px 9px;
    font-size:10px;
  }
}

/* v0.5.45 mobile footer hierarchy
   Footer-only rules: homepage first viewport and desktop layout remain unchanged. */
@media(max-width:620px){
  .site-footer{
    padding:18px 0 max(24px,env(safe-area-inset-bottom));
    gap:14px;
  }
  .footer-links{
    order:1;
    width:100%;
    max-width:380px;
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr));
    align-items:start;
    gap:0;
    padding:2px 0 0;
  }
  .footer-link-group{
    width:100%;
    min-width:0;
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:1px;
    padding:0 18px;
    position:relative;
  }
  .footer-link-group::before{
    display:block;
    margin:0 0 8px;
    color:#9aa19c;
    font-size:9px;
    line-height:1;
    font-weight:900;
    letter-spacing:.14em;
    text-transform:uppercase;
    text-align:left;
  }
  .footer-link-group-primary::before{content:"Kaptiono"}
  .footer-link-group-legal::before{content:"Legal"}
  .footer-link-group-primary{
    border-right:1px solid #e5e9e5;
  }
  .footer-link-divider{
    display:none!important;
  }
  .footer-links .footer-link-group button,
  .footer-links .footer-link-group a{
    width:100%;
    min-width:0;
    min-height:32px;
    padding:7px 0;
    display:flex;
    align-items:center;
    justify-content:flex-start;
    border-radius:7px;
    font-size:11px;
    line-height:1.15;
    white-space:nowrap;
    text-align:left;
  }
  .footer-links .footer-link-group button:active,
  .footer-links .footer-link-group a:active{
    background:#eef1ed;
  }
  .footer-meta-mobile{
    order:2;
    width:calc(100% - 36px);
    max-width:344px;
    margin-top:1px;
    padding-top:12px;
    border-top:1px solid #e5e9e5;
  }
}

/* Kaptiono desktop scrollbars
   Subtle visual polish for mouse/trackpad devices. Touch layouts keep the
   platform-native overlay scrollbar behavior. */
@media (hover:hover) and (pointer:fine){
  html,
  body,
  *{
    scrollbar-width:thin;
    scrollbar-color:#789b2f #161b17;
  }

  *::-webkit-scrollbar{
    width:8px;
    height:8px;
  }

  *::-webkit-scrollbar-track,
  *::-webkit-scrollbar-track-piece{
    background:#161b17;
    border-radius:999px;
  }

  *::-webkit-scrollbar-thumb{
    min-height:34px;
    background:#789b2f;
    border:2px solid #161b17;
    border-radius:999px;
  }

  *::-webkit-scrollbar-thumb:hover{
    background:#93bd38;
  }

  *::-webkit-scrollbar-thumb:active{
    background:#9fc943;
  }

  *::-webkit-scrollbar-corner{
    background:#161b17;
  }
}
/* Dropdown clipping fix: picker menus may extend outside the Studio card. */
.studio-card,.main-panel,.field-grid,.setting,.model-setting,.language-setting{overflow:visible}
@media(max-width:900px){
  .model-picker-menu,.language-picker-menu{max-height:min(56dvh,420px)}
}

/* v1.0.0 final layout symmetry + desktop picker portal */
.caption-source-grid{align-items:stretch}
.caption-source-grid>.setting{height:100%;min-height:132px;justify-content:flex-start}
.caption-source-grid>.setting>span{min-height:14px;display:flex;align-items:center}
.caption-source-grid .model-picker,.caption-source-grid .language-picker{margin-top:1px}
.caption-source-grid .setting>small{margin-top:auto;min-height:27px;display:block}

@media(min-width:901px){
  .editor-layout{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
  .preview-card,.studio-card{width:100%;min-width:0}
  .caption-source-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .model-picker-menu.picker-portal,
  .language-picker-menu.picker-portal{
    position:fixed;
    left:var(--picker-left);
    top:var(--picker-top);
    width:var(--picker-width);
    right:auto;
    z-index:10000;
    max-height:min(520px,calc(100dvh - var(--picker-top) - 18px));
    overflow-y:auto;
  }
}

@media(max-width:620px){
  .hero-copy h1[data-i18n="heroTitle"]{
    min-height:2.94em;
    display:flex;
    align-items:center;
    justify-content:center;
  }
  .hero-copy p[data-i18n="heroText"]{
    min-height:2.96em;
    display:flex;
    align-items:center;
    justify-content:center;
  }
}
/* v1.0.0 editor symmetry + stable mobile upload content */
@media(min-width:901px){
  .editor-layout{align-items:stretch}
  .preview-card,.studio-card{height:100%;align-self:stretch}
}

@media(max-width:620px){
  .dropzone.home-panel{justify-content:center;gap:0}
  .dropzone.home-panel .upload-icon{flex:none;margin:0 0 22px}
  .dropzone.home-panel strong[data-i18n="chooseVideo"]{
    min-height:28px;
    margin:0;
    display:flex;
    align-items:center;
    justify-content:center;
    line-height:1.2;
    text-align:center;
  }
  .dropzone.home-panel small[data-i18n="dropHint"]{
    min-height:22px;
    margin:14px 0 0;
    display:flex;
    align-items:center;
    justify-content:center;
    line-height:1.25;
    text-align:center;
  }
}

/* Roadmap support note: mobile only. */
@media (min-width:901px){
  #roadmapPage .roadmap-support-note{display:none!important}
  #roadmapPage .roadmap-hero-grid{grid-template-columns:minmax(0,1fr)}
}
