:root {
  color-scheme: light;
  --orange: #f97316;
  --orange-dark: #c2410c;
  --orange-soft: #fff1e8;
  --ink: #24170f;
  --muted: #806f63;
  --line: #eadfd7;
  --surface: #fffdfb;
  --shadow: 0 24px 70px rgba(91, 43, 18, .11);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; color: var(--ink); background: #fff9f5; }
button, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, select:focus-visible, .drop-zone:focus-visible { outline: 3px solid #fdba74; outline-offset: 3px; }
.app-shell { max-width: 960px; margin: 0 auto; padding: 0 28px 34px; }.privacy-page { max-width: 760px; padding-top: 56px; }.privacy-hero { padding-top: 64px; }.privacy-card { padding: 30px; }.privacy-card p { color: var(--muted); font-size: .9rem; line-height: 1.65; }.privacy-card code { padding: 2px 5px; border-radius: 4px; background: var(--orange-soft); color: var(--orange-dark); }
.topbar { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { color: var(--ink); display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand strong { display: block; font-size: 1.05rem; letter-spacing: -.03em; }
.brand small { display: block; color: var(--muted); font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; margin-top: 2px; }
.brand-mark { width: 34px; height: 34px; display: inline-flex; align-items: end; justify-content: center; gap: 3px; padding: 8px 7px; border-radius: 11px; background: var(--orange); box-shadow: 0 7px 18px rgba(249, 115, 22, .26); }
.brand-mark span { display: block; width: 4px; border-radius: 99px; background: #fff; }
.brand-mark span:nth-child(1) { height: 9px; opacity: .75; }.brand-mark span:nth-child(2) { height: 16px; }.brand-mark span:nth-child(3) { height: 12px; opacity: .88; }
.privacy-pill { display: inline-flex; align-items: center; gap: 7px; color: #5c7762; font-size: .74rem; font-weight: 700; letter-spacing: .02em; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #54a566; box-shadow: 0 0 0 4px #e4f3e5; }
main { padding-bottom: 22px; }.hero { padding: 60px 0 40px; max-width: 690px; }.eyebrow { color: var(--orange-dark); font-size: .66rem; font-weight: 800; letter-spacing: .16em; }.hero h1 { margin: 12px 0 18px; font-size: clamp(3.1rem, 7vw, 5.6rem); line-height: .91; letter-spacing: -.075em; font-weight: 820; }.hero h1 em { color: var(--orange); font-style: normal; }.hero-copy { max-width: 470px; color: var(--muted); font-size: 1.03rem; line-height: 1.65; margin: 0; }
.workspace { background: var(--surface); border: 1px solid rgba(234, 223, 215, .95); border-radius: 25px; box-shadow: var(--shadow); overflow: hidden; }.drop-zone { margin: 14px; min-height: 265px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border: 1.5px dashed #eab99b; border-radius: 17px; background: linear-gradient(145deg, #fffaf7, #fff4ed); cursor: pointer; transition: .2s ease; }.drop-zone:hover, .drop-zone.dragging { border-color: var(--orange); background: #fff0e6; transform: translateY(-1px); }.drop-icon { width: 54px; height: 54px; margin-bottom: 17px; position: relative; border-radius: 16px; background: var(--orange-soft); color: var(--orange); }.drop-icon .arrow { position: absolute; left: 25px; top: 12px; width: 4px; height: 20px; border-radius: 2px; background: currentColor; }.drop-icon .arrow::after { content: ""; position: absolute; left: -6px; bottom: -1px; width: 13px; height: 13px; border-right: 4px solid currentColor; border-bottom: 4px solid currentColor; transform: rotate(45deg); }.drop-icon .tray { position: absolute; left: 13px; bottom: 10px; width: 28px; height: 12px; border: 3px solid currentColor; border-top: 0; border-radius: 0 0 7px 7px; }.drop-zone h2, .settings-panel h2, .progress-panel h2, .result-panel h2, .how-it-works h2 { margin: 0; letter-spacing: -.04em; }.drop-zone h2 { font-size: 1.28rem; }.drop-zone p { margin: 7px 0 0; color: var(--muted); font-size: .88rem; }.inline-button { border: 0; padding: 0; color: var(--orange-dark); background: none; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }.drop-note { font-size: .7rem !important; color: #ae9c90 !important; margin-top: 25px !important; }
.file-panel, .settings-panel, .progress-panel, .result-panel { padding: 26px 30px 30px; }.file-panel { border-top: 1px solid var(--line); }.file-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }.file-type { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 10px; color: var(--orange-dark); background: var(--orange-soft); font-size: .58rem; font-weight: 900; letter-spacing: .05em; }.file-details { min-width: 0; flex: 1; }.file-details strong, .file-details span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.file-details strong { font-size: .9rem; }.file-details span { color: var(--muted); font-size: .74rem; margin-top: 3px; }.icon-button { width: 30px; height: 30px; border: 0; color: var(--muted); background: transparent; font-size: 1.55rem; line-height: 1; cursor: pointer; }.icon-button:hover { color: var(--ink); }.file-panel video { display: block; width: 100%; max-height: 390px; border-radius: 13px; background: #1e1510; }
.settings-panel, .progress-panel, .result-panel { border-top: 1px solid var(--line); }.section-heading, .progress-topline { display: flex; align-items: start; justify-content: space-between; gap: 18px; }.section-heading h2, .progress-topline h2 { margin-top: 6px; font-size: 1.4rem; }.format-badge { padding: 7px 9px; border-radius: 8px; color: #a3471a; background: var(--orange-soft); font-size: .63rem; font-weight: 900; letter-spacing: .12em; }.preset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 24px 0 18px; }.preset { min-height: 68px; padding: 12px 10px; text-align: left; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink); cursor: pointer; transition: .18s ease; }.preset:hover { border-color: #f4b58d; }.preset.active { border-color: var(--orange); background: #fff5ee; box-shadow: 0 0 0 2px #ffe0cc; }.preset strong, .preset span { display: block; }.preset strong { font-size: .78rem; }.preset span { margin-top: 5px; color: var(--muted); font-size: .68rem; }.control-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.field-label { color: var(--muted); font-size: .72rem; font-weight: 750; }.field-label select { display: block; width: 100%; margin-top: 7px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fff; font-size: .8rem; cursor: pointer; }.settings-note { display: flex; align-items: start; gap: 8px; margin: 16px 0 20px; color: var(--muted); font-size: .72rem; line-height: 1.45; }.settings-note span { color: var(--orange); }.primary-button { min-height: 49px; display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; border: 0; border-radius: 10px; padding: 0 17px; color: #fff; background: var(--orange); box-shadow: 0 8px 17px rgba(249, 115, 22, .22); font-weight: 800; font-size: .84rem; text-decoration: none; cursor: pointer; transition: .18s ease; }.primary-button:hover { background: var(--orange-dark); transform: translateY(-1px); }.primary-button:disabled { opacity: .55; cursor: not-allowed; transform: none; }.settings-panel .primary-button { width: 100%; }.button-arrow { font-size: 1.2rem; font-weight: 500; }.progress-panel { padding-top: 30px; padding-bottom: 32px; }.progress-topline strong { color: var(--orange-dark); font-size: 1.7rem; letter-spacing: -.06em; }.progress-track { height: 9px; margin: 25px 0 12px; overflow: hidden; border-radius: 99px; background: #f4e6dd; }.progress-fill { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #fb923c, var(--orange-dark)); transition: width .16s ease; }.progress-status { min-height: 20px; margin: 0; color: var(--muted); font-size: .77rem; }.text-button { display: block; margin: 16px auto 0; padding: 4px; border: 0; color: var(--muted); background: transparent; font-size: .75rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }.text-button:hover { color: var(--orange-dark); }.result-panel { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; background: #fffaf6; }.result-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: #328249; background: #e7f5e9; font-weight: 900; }.result-copy h2 { margin-top: 5px; font-size: 1.25rem; }.result-copy p { margin: 5px 0 0; color: var(--muted); font-size: .76rem; }.download-button { grid-column: 1 / -1; }.result-panel .text-button { grid-column: 1 / -1; margin-top: -5px; }
.how-it-works { padding: 55px 5px 42px; }.compact { margin-bottom: 23px; }.compact h2 { font-size: 1.45rem; margin-top: 7px; }.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }.step { position: relative; padding-top: 14px; border-top: 1px solid var(--line); }.step span { color: var(--orange); font-size: .68rem; font-weight: 900; }.step strong { display: block; margin-top: 12px; font-size: .83rem; }.step p { margin: 6px 0 0; color: var(--muted); font-size: .74rem; line-height: 1.45; }.support-area { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.ad-slot, .support-card { min-height: 108px; padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.58); }.ad-slot { display: flex; flex-direction: column; justify-content: center; gap: 4px; color: var(--muted); }.top-ad-slot { margin: 12px 0 0; min-height: 82px; flex-direction: row; align-items: center; gap: 14px; background: linear-gradient(105deg, #fff5ee, #fffaf7); }.top-ad-slot .ad-label { margin-right: auto; }.top-ad-slot strong { color: var(--ink); font-size: .8rem; }.top-ad-slot span:last-child { font-size: .68rem; overflow-wrap: anywhere; }.ad-slot strong { color: var(--ink); font-size: .78rem; }.ad-slot span:last-child { font-size: .68rem; overflow-wrap: anywhere; }.ad-label { color: #ad9b8e; font-size: .57rem; font-weight: 800; letter-spacing: .13em; }.support-card { display: flex; align-items: center; justify-content: space-between; gap: 13px; }.support-card strong, .support-card span { display: block; }.support-card strong { font-size: .78rem; }.support-card span { margin-top: 5px; color: var(--muted); font-size: .66rem; }.coffee-link { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 9px 11px; border-radius: 9px; color: #8a3e12; background: #ffeadb; font-size: .68rem; font-weight: 800; text-decoration: none; }.coffee-link:hover { background: #ffdbc4; }.footer { display: flex; justify-content: space-between; gap: 15px; padding: 25px 3px 0; color: #aa9689; font-size: .66rem; }.footer a { color: var(--orange-dark); text-underline-offset: 3px; }
@media (max-width: 650px) { .app-shell { padding: 0 16px 25px; }.topbar { min-height: 70px; }.privacy-pill { font-size: .65rem; }.hero { padding: 42px 0 29px; }.hero h1 { font-size: clamp(3rem, 15vw, 4.2rem); }.workspace { border-radius: 19px; }.drop-zone { margin: 9px; min-height: 245px; }.file-panel, .settings-panel, .progress-panel, .result-panel { padding-left: 19px; padding-right: 19px; }.preset-grid, .control-grid, .support-area { grid-template-columns: 1fr; }.preset-grid { gap: 7px; }.preset { min-height: unset; }.steps { gap: 15px; grid-template-columns: 1fr; }.step { padding: 12px 0 0 38px; border-top: 0; border-left: 1px solid var(--line); }.step span { position: absolute; left: -1px; top: 12px; transform: translateX(-50%); background: #fff9f5; padding: 2px 0; }.support-card { align-items: flex-start; flex-direction: column; }.coffee-link { width: 100%; justify-content: center; }.footer { flex-direction: column; padding-left: 3px; } }
/* Chrome toolbar popup: keep the full workflow in a compact, scrollable panel. */
@media (max-width: 600px) {
  body { width: 400px; max-width: 100vw; overflow-x: hidden; }
  .app-shell { padding: 0 14px 18px; }
  .topbar { min-height: 62px; }
  .privacy-pill { font-size: .62rem; }
  .hero { padding: 24px 0 20px; }
  .hero h1 { font-size: 2.65rem; }
  .hero-copy { font-size: .82rem; line-height: 1.45; }
  .workspace { border-radius: 16px; }
  .drop-zone { min-height: 178px; margin: 8px; }
  .drop-icon { width: 44px; height: 44px; margin-bottom: 12px; transform: scale(.85); }
  .drop-zone h2 { font-size: 1.05rem; }
  .drop-note { margin-top: 16px !important; }
  .file-panel, .settings-panel, .progress-panel, .result-panel { padding: 18px; }
  .file-panel video { max-height: 185px; }
  .section-heading h2, .progress-topline h2 { font-size: 1.12rem; }
  .preset-grid { margin: 15px 0 12px; }
  .preset { min-height: 58px; padding: 9px 8px; }
  .preset strong { font-size: .7rem; }
  .preset span { font-size: .61rem; }
  .field-label select { padding: 9px 10px; }
  .settings-note { margin: 12px 0 15px; font-size: .66rem; }
  .primary-button { min-height: 43px; font-size: .76rem; }
  .how-it-works { padding: 26px 2px 20px; }
  .steps { gap: 10px; }
  .step { padding-top: 8px; padding-left: 30px; }
  .step strong { margin-top: 6px; font-size: .75rem; }
  .step p { font-size: .66rem; }
  .support-area { gap: 8px; }
  .ad-slot, .support-card { min-height: 88px; padding: 13px; }
  .top-ad-slot { min-height: 58px; margin-top: 8px; gap: 8px; padding: 10px 12px; }
  .top-ad-slot .ad-label { margin-right: 0; }
  .top-ad-slot strong { font-size: .68rem; }
  .top-ad-slot span:last-child { font-size: .58rem; }
  .support-card { flex-direction: column; align-items: flex-start; }
  .coffee-link { width: 100%; justify-content: center; padding: 8px; }
  .footer { flex-direction: column; padding-top: 17px; font-size: .59rem; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }
