@font-face{
  font-family:Geist;
  src:url('/fonts/geist-latin.woff2') format('woff2');
  font-display:swap;
  font-weight:100 900
}
@font-face{
  font-family:Geist;
  src:url('/fonts/geist-vietnamese.woff2') format('woff2');
  font-display:swap;
  font-weight:100 900;
  unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB
}
:root{
  --bg:#f7f8f7;
  --surface:#fff;
  --text:#202b25;
  --muted:#69736c;
  --line:#e3e8e4;
  --accent:#18794e;
  --accent-dark:#11613d;
  --tint:#edf5ef;
  --radius:12px
}
*{
  box-sizing:border-box
}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:Geist,Arial,sans-serif;
  font-size:14px;
  -webkit-font-smoothing:antialiased
}
button,input{
  font:inherit
}
button,a,input{
  touch-action:manipulation
}
button{
  cursor:pointer
}
button:disabled{
  cursor:default;
  opacity:.45
}
a{
  color:inherit;
  text-decoration:none
}
button{
  color:inherit
}
button:focus-visible,a:focus-visible,input:focus-visible{
  outline:3px solid #3c9c6b;
  outline-offset:4px
}
button{
  transition:background .15s,border-color .15s,transform .15s
}
button:not(:disabled):active{
  transform:translateY(1px)
}
[hidden]{
  display:none!important
}
h1,h2,p{
  margin:0
}
fieldset{
  border:0;
  padding:0;
  margin:0;
  min-width:0
}
input{
  accent-color:var(--accent)
}
.site-header{
  height:88px;
  max-width:1328px;
  padding:0 48px;
  margin:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line)
}
.brand{
  display:flex;
  align-items:center;
  font-size:26px;
  letter-spacing:-1.2px;
  font-weight:750
}
.brand>span:not(.brand-mark):not(.brand-period){
  font-weight:450
}
.brand-period{
  color:var(--accent)
}
.brand-mark{
  position:relative;
  display:flex;
  gap:4px;
  margin-right:11px;
  transform:rotate(-12deg)
}
.brand-mark i{
  display:block;
  width:8px;
  height:24px;
  background:var(--accent);
  border-radius:2px
}
.brand-mark i+ i{
  transform:translateY(-4px)
}
nav{
  display:flex;
  align-items:center;
  gap:32px;
  font-size:13px
}
nav a{
  height:88px;
  display:flex;
  align-items:center;
  position:relative
}
.nav-active:after{
  content:'';
  position:absolute;
  height:2px;
  background:var(--accent);
  bottom:0;
  left:0;
  right:0
}
.text-button{
  border:0;
  background:none;
  padding:5px 0;
  color:var(--muted);
  font-size:12px
}
.text-button:hover{
  color:var(--accent)
}
.text-button span{
  margin-left:6px
}
.header-note{
  font-size:11px;
  color:var(--muted);
  display:flex;
  align-items:center;
  gap:8px
}
.status-dot{
  display:inline-block;
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--accent);
  flex-shrink:0
}
.muted-dot{
  background:#9ca89f
}
main{
  max-width:1112px;
  margin:auto;
  padding:0 28px
}
.intro{
  padding:56px 0 34px
}
.intro-label{
  font-size:10px;
  font-weight:600;
  letter-spacing:1.8px;
  color:var(--muted);
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:18px
}
.tiny-cut{
  color:var(--accent);
  font-size:16px;
  font-weight:700;
  letter-spacing:1px
}
h1{
  font-weight:550;
  font-size:52px;
  line-height:1.15;
  letter-spacing:-2.5px
}
h1>span{
  color:var(--accent)
}
.intro>p{
  color:var(--muted);
  font-size:14px;
  margin-top:14px
}
.mobile-break{
  display:none
}
.workspace{
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--surface);
  box-shadow:0 4px 16px #213b2703;
  overflow:hidden
}
.workspace-grid{
  display:grid;
  grid-template-columns:1.35fr 1fr
}
.source-panel{
  padding:28px 32px 24px;
  border-right:1px solid var(--line)
}
.settings-panel{
  padding:28px 30px 24px
}
.section-title{
  display:flex;
  align-items:center;
  gap:9px;
  margin-bottom:24px;
  min-height:24px
}
.section-title h2{
  font-size:15px;
  font-weight:600;
  letter-spacing:-.3px
}
.step{
  font-size:10px;
  color:#65766b;
  display:grid;
  place-items:center;
  border:1px solid var(--line);
  border-radius:5px;
  width:24px;
  height:24px;
  font-variant-numeric:tabular-nums
}
.section-aside{
  font-size:10px;
  color:var(--muted);
  margin-left:auto
}
.source-tabs{
  padding:4px;
  background:#f3f5f3;
  border:1px solid #edf0ed;
  border-radius:8px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:4px;
  margin-bottom:20px
}
.tab{
  background:transparent;
  border:1px solid transparent;
  border-radius:5px;
  padding:9px 5px;
  font-size:12px;
  color:var(--muted)
}
.tab.active{
  background:var(--surface);
  box-shadow:0 1px 4px #24352b0a;
  border-color:var(--line);
  color:var(--text);
  font-weight:550
}
.tab>span{
  display:inline-block;
  margin-right:6px;
  font-size:16px
}
.tab .youtube-symbol{
  font-size:9px;
  border:1px solid currentColor;
  border-radius:4px;
  padding:1px 4px;
  vertical-align:1px
}
.dropzone{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  width:100%;
  height:239px;
  border:1.5px dashed #ccd9cf;
  border-radius:10px;
  background:#fafcf9;
  padding:24px;
  overflow:hidden
}
.dropzone:hover,.dropzone.dragging{
  background:var(--tint);
  border-color:var(--accent)
}
.upload-mark{
  display:grid;
  place-items:center;
  width:48px;
  height:48px;
  border:1px solid #dce7df;
  border-radius:14px;
  background:#fff;
  box-shadow:0 3px 3px #233c2804;
  font-size:30px;
  font-weight:300;
  color:var(--accent);
  margin-bottom:18px
}
.dropzone strong{
  font-size:14px;
  font-weight:550;
  max-width:100%;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis
}
.dropzone>span:not(.upload-mark){
  font-size:12px;
  color:var(--muted);
  margin-top:7px
}
.browse-label{
  color:var(--accent);
  text-decoration:underline;
  text-underline-offset:3px
}
.dropzone>span.file-types{
  font-size:10px;
  margin-top:24px;
  color:#77827a
}
.source-footnote{
  font-size:10px;
  color:var(--muted);
  margin-top:14px;
  display:flex;
  align-items:center;
  gap:7px
}
.source-footnote>span{
  font-size:17px;
  color:#89978c
}
.youtube-input-area{
  height:239px;
  padding:22px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fafcf9;
  display:flex;
  flex-direction:column;
  justify-content:center
}
.link-illustration{
  font-size:26px;
  color:var(--accent);
  margin-bottom:18px
}
.youtube-input-area label{
  font-size:12px;
  font-weight:550;
  margin-bottom:10px
}
.youtube-input-area input{
  min-width:0;
  width:100%;
  padding:12px;
  border:1px solid #cdd7cf;
  border-radius:6px;
  background:white;
  font-size:12px
}
.youtube-input-area p{
  font-size:10px;
  color:var(--muted);
  margin-top:12px
}
legend{
  font-size:11px;
  font-weight:550;
  margin-bottom:12px
}
.presets{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:8px
}
.preset{
  height:44px;
  background:white;
  border:1px solid var(--line);
  border-radius:7px;
  font-size:16px;
  font-weight:550
}
.preset>span{
  font-size:11px;
  font-weight:400;
  margin-left:2px;
  color:var(--muted)
}
.preset:hover{
  border-color:#9ebfa9
}
.preset.active{
  border-color:var(--accent);
  color:var(--accent);
  background:var(--tint);
  box-shadow:0 0 0 1px var(--accent)
}
.preset.active>span{
  color:var(--accent)
}
.custom-duration{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top:13px
}
.custom-duration>label{
  font-size:11px;
  color:var(--muted)
}
.custom-duration>div{
  border:1px solid var(--line);
  border-radius:6px;
  display:flex;
  align-items:center;
  height:34px
}
.custom-duration input{
  width:66px;
  padding:6px 0 6px 12px;
  border:0;
  background:transparent;
  color:var(--text);
  font-size:12px
}
.custom-duration div>span{
  font-size:10px;
  color:var(--muted);
  padding:0 11px
}
.field-hint{
  font-size:10px;
  color:var(--muted);
  margin-top:10px;
  min-height:14px
}
.workspace-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-top:1px solid var(--line);
  background:#fcfdfb;
  padding:18px 30px
}
.workspace-footer>span{
  font-size:11px;
  color:var(--muted);
  display:flex;
  gap:9px;
  align-items:center
}
.primary-button{
  background:var(--accent);
  color:white;
  border:1px solid var(--accent);
  border-radius:7px;
  padding:13px 23px;
  font-size:12px;
  font-weight:550;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:13px;
  white-space:nowrap;
  min-height:44px
}
.primary-button:hover{
  background:var(--accent-dark);
  border-color:var(--accent-dark)
}
#submit-button{
  min-width:175px
}
#submit-button>span{
  font-size:17px
}
.secondary-button{
  background:white;
  border:1px solid var(--line);
  border-radius:6px;
  padding:9px 15px;
  font-size:12px;
  min-height:38px
}
.secondary-button:hover{
  border-color:var(--accent)
}
.error-banner{
  padding:16px 20px;
  border:1px solid #e6c6c1;
  background:#fff4f1;
  color:#913e30;
  border-radius:8px;
  margin-top:18px;
  font-size:13px
}
.empty-results{
  text-align:center;
  padding:47px 0 43px
}
.empty-results h2{
  font-size:14px;
  font-weight:500;
  color:#758079;
  margin:16px 0 7px
}
.empty-results p{
  font-size:11px;
  color:#7d8780
}
.timeline-art{
  height:31px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  position:relative;
  width:112px;
  margin:auto
}
.timeline-art span{
  display:block;
  height:22px;
  width:23px;
  background:#e8eee9;
  border:1px solid #dae3dc;
  border-radius:3px
}
.timeline-art span:nth-child(2){
  background:#dfe9e1
}
.timeline-art i{
  height:34px;
  width:2px;
  left:54px;
  position:absolute;
  top:0;
  background:#8bab96
}
.timeline-art i:before{
  content:'';
  position:absolute;
  width:6px;
  height:5px;
  left:-2px;
  background:#8bab96;
  border-radius:1px;
  top:-2px
}
.site-footer{
  border-top:1px solid var(--line);
  padding:23px 0 30px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  font-size:10px;
  color:var(--muted)
}
.site-footer>span:first-child{
  font-weight:600;
  font-size:16px;
  letter-spacing:-.6px;
  color:var(--text)
}
.footer-accent{
  color:var(--accent)
}
.footer-divider{
  margin:0 10px;
  color:#adb7af
}
.progress-panel{
  background:white;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:24px;
  margin-top:24px
}
.progress-top{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:center
}
.processing-label{
  color:var(--accent);
  font-size:11px
}
.progress-top h2{
  font-size:16px;
  margin-top:7px;
  font-weight:550;
  word-break:break-word
}
progress{
  appearance:none;
  width:100%;
  height:5px;
  margin:24px 0 9px;
  border:0;
  background:var(--tint);
  border-radius:10px;
  overflow:hidden
}
progress::-webkit-progress-bar{
  background:var(--tint)
}
progress::-webkit-progress-value{
  background:var(--accent)
}
progress::-moz-progress-bar{
  background:var(--accent)
}
.progress-details{
  display:flex;
  justify-content:space-between;
  color:var(--muted);
  font-size:11px
}
.results{
  padding:37px 0
}
.results-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px
}
.complete-label{
  font-size:10px;
  color:var(--accent);
  margin-bottom:9px
}
.complete-label>span{
  margin-left:5px
}
.results-header h2{
  font-size:25px;
  letter-spacing:-.8px;
  font-weight:550
}
.results-header h2>span{
  color:var(--accent)
}
.results-header p{
  font-size:11px;
  color:var(--muted);
  margin-top:8px;
  line-height:1.6
}
.button-tag{
  font-size:8px;
  border-left:1px solid #ffffff40;
  padding-left:10px;
  letter-spacing:.5px
}
.selection-toolbar{
  margin:26px 0 18px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px
}
.selection-toolbar label{
  display:flex;
  align-items:center;
  gap:7px;
  font-size:11px;
  cursor:pointer
}
.selection-toolbar input{
  margin:0;
  width:14px;
  height:14px
}
.selection-toolbar label>span{
  margin-left:7px;
  color:var(--muted);
  font-size:10px
}
.selection-toolbar>div{
  display:flex;
  gap:20px;
  align-items:center
}
.selection-download{
  font-size:11px;
  background:transparent;
  border:0;
  padding:5px 0;
  color:var(--accent)
}
.clips-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:15px
}
.clip-card{
  background:white;
  border:1px solid var(--line);
  border-radius:9px;
  overflow:hidden;
  position:relative;
  content-visibility:auto;
  contain-intrinsic-size:auto 205px
}
.clip-card.selected{
  border-color:var(--accent);
  box-shadow:0 0 0 1px var(--accent)
}
.clip-visual{
  position:relative;
  aspect-ratio:16/9;
  background:#e8eee9;
  display:block;
  width:100%;
  border:0;
  padding:0;
  overflow:hidden
}
.clip-visual img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  filter:brightness(.9)
}
.clip-card .clip-check{
  position:absolute;
  top:10px;
  left:10px;
  margin:0;
  width:17px;
  height:17px;
  z-index:1;
  cursor:pointer;
  box-shadow:0 1px 4px #0002
}
.clip-length{
  position:absolute;
  bottom:9px;
  right:9px;
  border-radius:4px;
  background:#172a22c9;
  color:white;
  padding:3px 6px;
  font-size:9px;
  font-variant-numeric:tabular-nums
}
.play-icon{
  display:grid;
  place-items:center;
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:30px;
  height:30px;
  background:#ffffffeb;
  border-radius:50%;
  font-size:10px;
  color:var(--accent);
  padding-left:2px
}
.clip-visual:hover .play-icon{
  background:white;
  transform:translate(-50%,-50%) scale(1.1)
}
.clip-info{
  padding:12px;
  display:flex;
  justify-content:space-between;
  gap:6px;
  align-items:center
}
.clip-info strong{
  font-size:11px;
  font-weight:550
}
.clip-info p{
  font-size:9px;
  color:var(--muted);
  margin-top:5px;
  font-variant-numeric:tabular-nums
}
.clip-download{
  width:30px;
  height:30px;
  border:1px solid var(--line);
  border-radius:6px;
  display:grid;
  place-items:center;
  font-size:17px;
  color:var(--muted)
}
.clip-download:hover{
  color:var(--accent);
  border-color:var(--accent)
}
.retention-note{
  text-align:center;
  color:var(--muted);
  font-size:10px;
  margin-top:24px
}
.show-more{
  display:block;
  margin:24px auto 0
}
.history-section{
  padding:0 0 30px
}
.history-section h2{
  font-size:13px;
  font-weight:550;
  margin-bottom:12px
}
.history-item{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 0;
  gap:15px
}
.history-item strong{
  font-size:12px;
  font-weight:500;
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  max-width:70vw
}
.history-item small{
  display:block;
  font-size:10px;
  color:var(--muted);
  margin-top:4px
}
.history-item button{
  white-space:nowrap
}
.history-item+.history-item{
  border-top:1px solid var(--line)
}
dialog{
  border:1px solid var(--line);
  border-radius:14px;
  padding:26px;
  max-width:520px;
  width:calc(100% - 32px);
  box-shadow:0 20px 100px #16251b25;
  color:var(--text)
}
dialog::backdrop{
  background:#14251c66;
  backdrop-filter:blur(3px)
}
.dialog-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:20px
}
.dialog-top h2{
  font-size:19px;
  font-weight:550
}
.icon-button{
  border:0;
  background:#f0f4f1;
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  border-radius:6px;
  font-size:23px;
  flex-shrink:0
}
dialog p,dialog li{
  font-size:12px;
  line-height:1.8;
  color:var(--muted)
}
dialog p{
  margin-top:14px
}
dialog ol{
  padding-left:20px
}
dialog li{
  padding:4px 0
}
#preview-dialog{
  max-width:800px
}
#preview-dialog video{
  width:100%;
  max-height:65dvh;
  background:#14251c;
  border-radius:7px
}
#preview-dialog .primary-button{
  margin-top:18px
}
.toast{
  position:fixed;
  bottom:24px;
  left:50%;
  transform:translateX(-50%);
  background:var(--text);
  color:white;
  padding:13px 20px;
  border-radius:8px;
  font-size:12px;
  box-shadow:0 6px 25px #0002;
  z-index:20;
  max-width:calc(100vw - 32px)
}
.dropzone>span.file-types,.empty-results h2,.empty-results p{
  color:var(--muted)
}
@media(min-width:1400px){
  .intro{
    padding-top:72px
  }
  .empty-results{
    padding:55px 0
  }
}
@media(max-width:1023px){
  .site-header{
    padding:0 28px
  }
  .header-note{
    display:none
  }
  .source-panel{
    padding:24px
  }
  .settings-panel{
    padding:24px
  }
  .clips-grid{
    grid-template-columns:repeat(3,1fr)
  }
  .section-aside{
    font-size:9px
  }
}
@media(max-width:767px){
  .site-header{
    height:72px;
    padding:0 20px
  }
  .brand{
    font-size:24px
  }
  nav{
    gap:18px
  }
  nav a{
    display:none
  }
  .header-note{
    display:none
  }
  main{
    padding:0 20px
  }
  .intro{
    padding:36px 0 26px
  }
  .intro-label{
    font-size:9px;
    margin-bottom:14px
  }
  h1{
    font-size:40px;
    letter-spacing:-1.8px
  }
  .intro>p{
    font-size:12px;
    line-height:1.6;
    max-width:300px
  }
  .workspace-grid{
    grid-template-columns:1fr
  }
  .source-panel{
    border-right:0;
    border-bottom:1px solid var(--line);
    padding:23px 20px
  }
  .settings-panel{
    padding:23px 20px 15px
  }
  .section-title{
    margin-bottom:18px
  }
  .section-aside{
    font-size:10px
  }
  .dropzone,.youtube-input-area{
    height:210px
  }
  .settings-panel .section-title{
    margin-bottom:22px
  }
  .workspace-footer{
    padding:16px 20px;
    gap:12px
  }
  .workspace-footer>span{
    font-size:10px;
    max-width:145px;
    line-height:1.6
  }
  #submit-button{
    min-width:130px;
    padding:12px 16px
  }
  .site-footer{
    flex-wrap:wrap;
    gap:12px;
    padding:20px 0
  }
  .site-footer>span:last-child{
    width:100%;
    font-size:9px
  }
  .site-footer>span:nth-child(2){
    font-size:9px
  }
  .empty-results{
    padding:38px 0
  }
  .results-header{
    align-items:flex-start;
    gap:12px
  }
  .results-header h2{
    font-size:21px;
    max-width:240px;
    line-height:1.2
  }
  .results-header>.primary-button{
    padding:10px 12px;
    font-size:10px;
    gap:6px
  }
  .button-tag{
    display:none
  }
  .results-header p{
    font-size:10px
  }
  .selection-toolbar{
    align-items:flex-start
  }
  .selection-toolbar label{
    flex-wrap:wrap;
    font-size:10px
  }
  .selection-toolbar label>span{
    display:none
  }
  .selection-toolbar>div{
    gap:15px
  }
  .selection-download,.selection-toolbar .text-button{
    font-size:10px
  }
  .clips-grid{
    grid-template-columns:repeat(2,1fr);
    gap:12px
  }
  .clip-info{
    padding:10px
  }
  .clip-info p{
    font-size:8px
  }
  .retention-note{
    line-height:1.6
  }
  .progress-panel{
    padding:20px
  }
  .progress-top h2{
    font-size:14px
  }
  .progress-details{
    font-size:10px
  }
  .mobile-break{
    display:block
  }
}
@media(prefers-reduced-motion:reduce){
  *,*:before,*:after{
    transition:none!important;
    animation:none!important;
    scroll-behavior:auto!important
  }
}

/* A focused stage replaces the previous form/results scroll stack. */
.site-header { height: 72px; }
nav a { height: 72px; }
.intro { padding: 32px 0 20px; text-align: center; }
.intro-label { justify-content: center; margin-bottom: 12px; }
h1 { font-size: 40px; letter-spacing: -1.8px; }
.intro > p { margin: 10px auto 0; }
.mobile-break { display: none; }
.flow-steps { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 640px; margin: 6px auto 24px; padding: 0; list-style: none; gap: 12px; }
.flow-steps li { position: relative; }
.flow-steps li:not(:last-child)::after { content: ''; position: absolute; right: -13px; top: 17px; width: 14px; height: 1px; background: var(--line); }
.flow-steps button { display: flex; gap: 9px; align-items: center; justify-content: center; width: 100%; border: 0; background: transparent; padding: 2px 0; color: var(--muted); font-size: 12px; }
.flow-steps button > span { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-size: 11px; background: var(--surface); }
.flow-steps button[aria-current] { color: var(--accent); font-weight: 600; }
.flow-steps button[aria-current] > span { background: var(--accent); border-color: var(--accent); color: white; }
.flow-steps button:disabled { opacity: .6; }
.workspace, .progress-panel, .error-banner { max-width: 640px; margin-left: auto; margin-right: auto; }
.workspace-grid { display: block; }
.source-panel { border: 0; padding: 26px 30px 22px; }
.settings-panel { padding: 26px 30px 28px; }
.source-panel .section-title, .settings-panel .section-title { margin-bottom: 20px; }
.dropzone, .youtube-input-area { height: 218px; }
.source-summary { display: flex; align-items: center; gap: 13px; padding: 16px; border: 1px solid var(--line); border-radius: 9px; margin-bottom: 28px; background: #fafcf9; }
.source-summary-mark { display: grid; place-items: center; background: var(--tint); color: var(--accent); width: 34px; height: 38px; border-radius: 6px; font-size: 11px; flex-shrink: 0; }
.source-summary > div { min-width: 0; flex: 1; }
.source-summary strong { display: block; font-size: 12px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.source-summary p { font-size: 10px; color: var(--muted); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.source-summary button { flex-shrink: 0; }
.workspace-footer { padding: 16px 30px; }
#next-button, #submit-button { min-width: 148px; }
.duration-field legend { font-size: 12px; margin-bottom: 15px; }
.presets { gap: 12px; }
.preset { height: 54px; font-size: 20px; }
.custom-duration { margin-top: 20px; }
.custom-duration > label { font-size: 12px; }
.field-hint { margin-top: 14px; }
.progress-panel { margin-top: 0; margin-bottom: 32px; }
.results { padding: 8px 0 25px; }
.result-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; align-items: center; }
.result-actions > button { min-width: 0; height: 38px; min-height: 38px; padding: 9px 15px; border-radius: 6px; }
.history-section { max-width: 640px; margin: 26px auto 0; padding-bottom: 24px; }
.history-section summary { cursor: pointer; font-size: 12px; color: var(--muted); padding: 6px 0; }
.site-footer { margin-top: 28px; }
#error-banner { margin-top: 16px; margin-bottom: 16px; }
#empty-results { display: none; }
@media (max-width: 767px) {
  .intro { padding: 26px 0 16px; }
  .intro-label { margin-bottom: 10px; }
  h1 { font-size: 32px; letter-spacing: -1.4px; }
  .intro > p { font-size: 11px; max-width: 100%; }
  .flow-steps { gap: 8px; margin-bottom: 20px; }
  .flow-steps button { font-size: 10px; gap: 6px; }
  .flow-steps button > span { width: 26px; height: 26px; font-size: 10px; }
  .flow-steps li:not(:last-child)::after { top: 15px; right: -9px; width: 10px; }
  .source-panel, .settings-panel { padding: 22px 20px; }
  .dropzone, .youtube-input-area { height: 205px; }
  .source-summary { padding: 12px; gap: 10px; margin-bottom: 24px; }
  .source-summary strong { font-size: 11px; }
  .source-summary button { font-size: 10px; }
  .workspace-footer { padding: 15px 20px; }
  #next-button, #submit-button { min-width: 125px; }
  .presets { gap: 8px; }
  .preset { height: 48px; font-size: 18px; }
  .results-header { flex-direction: column; gap: 16px; }
  .results-header h2 { max-width: none; font-size: 23px; }
  .result-actions { width: 100%; justify-content: space-between; }
  .result-actions .primary-button, .result-actions .secondary-button { padding: 10px 15px; font-size: 11px; }
  .selection-toolbar { margin-top: 20px; }
  .site-footer { margin-top: 20px; }
}
h2[tabindex="-1"]:focus { outline: none; }

.youtube-preview { display: flex; align-items: center; gap: 14px; text-align: left; margin-top: 20px; }
.youtube-preview img { width: 128px; height: 72px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.youtube-preview > div { min-width: 0; }
.youtube-preview strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; }
.summary-thumbnail { width: 80px; height: 45px; object-fit: cover; border-radius: 5px; flex-shrink: 0; }
progress:indeterminate { background: linear-gradient(to right, transparent 0%, var(--accent) 40%, transparent 80%) var(--tint); background-size: 40% 100%; background-repeat: no-repeat; animation: loading-progress 1.8s ease-in-out infinite alternate; }
progress:indeterminate::-webkit-progress-bar { background: transparent; }
progress:indeterminate::-moz-progress-bar { background: transparent; }
@keyframes loading-progress { from { background-position: 0% 0; } to { background-position: 100% 0; } }
@media (prefers-reduced-motion: reduce) { progress:indeterminate { animation: none; background-position: 50% 0; } }

.delete-selected { color: #a13b35; }
@media (max-width: 767px) {
  .selection-toolbar { flex-wrap: wrap; }
  .selection-toolbar > div { flex-wrap: wrap; justify-content: flex-end; gap: 14px; width: 100%; }
}
#desktop-logout[hidden] { display: none; }
