:root { color-scheme: light; --ink:#17211b; --muted:#778078; --paper:#f5f3ee; --card:#fff; --green:#c6ff65; --line:#dedfd8; }
* { box-sizing:border-box; }
body { margin:0; background:var(--paper); color:var(--ink); font:14px/1.4 "Segoe UI",sans-serif; overflow:hidden; user-select:none; }
button,input { font:inherit; }
.titlebar { height:48px; display:flex; align-items:center; justify-content:space-between; padding-left:18px; background:#101713; color:#f8faf6; -webkit-app-region:drag; }
.brand { height:100%; display:flex; align-items:center; }
.brand img { display:block; width:auto; height:23px; max-width:165px; object-fit:contain; }
.window-controls { height:100%; display:flex; -webkit-app-region:no-drag; }
.title-button { width:46px; height:100%; border:0; background:transparent; color:#cbd1cc; cursor:pointer; font-size:16px; }
.home-button { display:grid; place-items:center; text-decoration:none; font-size:21px; }
.title-button:hover { background:#263029; color:white; }.title-button.close:hover { background:#d84a4a; }.settings-button { font-size:25px; }
main { height:calc(100vh - 48px); padding:38px; display:flex; flex-direction:column; align-items:center; }

.drop-zone {
  width: min(720px, 100%);
  flex: 0 0 210px;
  min-height: 210px;

  border: 1.5px dashed #bfc4ba;
  border-radius: 18px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  outline: none;
  cursor: pointer;

  transition: .18s;
  background: rgba(255,255,255,.33);
}

.drop-zone:hover,.drop-zone.dragging { border-color:#7aa826; background:#f9ffe9; transform:scale(1.005); }
.drop-icon { width:64px; height:64px; margin-bottom:15px; padding:10px; display:grid; place-items:center; border:1px solid #344139; border-radius:17px; background:#18231d; box-shadow:0 9px 20px #17211b25; }
.drop-icon img { display:block; width:100%; height:100%; object-fit:contain; }
h1 { font-size:25px; margin:0 0 4px; letter-spacing:-.7px; } .drop-zone p { color:#6f776f; margin:0 0 18px; display: flex; justify-content: center;}.drop-zone small { color:#9a9f99; font-size:11px; letter-spacing:.6px; }
.drop-zone.compact { flex:0 0 78px; min-height:78px; border-radius:13px; flex-direction:row; justify-content:flex-start; padding:14px 20px; gap:14px; }
.drop-zone.compact .drop-icon { width:44px; height:44px; margin:0; padding:7px; border-radius:12px; }.drop-zone.compact h1 { font-size:17px; }.drop-zone.compact p { margin:0; font-size:12px; }.drop-zone.compact small { margin-left:auto; }
.queue-area { display:none; width:min(720px,100%); flex:1; min-height:0; margin-top:18px; }.queue-area.visible { display:flex; flex-direction:column; }
.queue-toolbar { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }.queue-toolbar div { display:flex; flex-direction:column; }.queue-toolbar span { color:#8c938d; font-size:11px; margin-top:2px; }
.queue { overflow:auto; display:grid; gap:8px; padding-right:3px; }


.faq-section {
  width: min(720px, 100%);
  flex: 1;
  min-height: 0;

  margin-top: 22px;
  padding-bottom: 8px;

  overflow-y: auto;
}

.faq-section.hidden {
  display: none;
}

.faq-heading {
  margin-bottom: 16px;
}

.faq-heading small {
  display: block;
  margin-bottom: 3px;

  color: #7a817a;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.3px;
}

.faq-heading h2 {
  margin: 0;

  color: var(--ink);
  font-size: 20px;
  letter-spacing: -.4px;
}

.faq-heading p {
  margin: 4px 0 0;
  color: #858c86;
  font-size: 12px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.faq-item {
  padding: 14px 15px;

  background: rgba(255,255,255,.55);
  border: 1px solid #e0e2dc;
  border-radius: 10px;
}

.faq-item h3 {
  margin: 0 0 6px;

  color: #273129;
  font-size: 12px;
  font-weight: 700;
}

.faq-item p {
  margin: 0;

  color: #777f78;
  font-size: 11px;
  line-height: 1.55;
}


.job { background:white; border:1px solid #e4e5de; padding:10px 12px; border-radius:11px; display:grid; grid-template-columns:44px minmax(0,1fr) auto; align-items:center; gap:5px 12px; box-shadow:0 3px 12px #17211b0b; cursor:default; }
.thumb { width:44px; height:44px; object-fit:cover; border-radius:7px; grid-row:1/3; background:#eef0eb; }.job-info { min-width:0; }.job-name { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-weight:600; }.job-meta { display:block; color:#929892; font-size:11px; }.job-status.done { color:#4d7d08; }.job-status.error { color:#bc3939; }
.job-actions { display:flex; gap:6px; }.job-actions button { border:1px solid #dfe1db; background:#f7f8f4; border-radius:7px; padding:6px 9px; cursor:pointer; font-size:11px; }.job-actions button:hover { border-color:#a9b19f; }.job-actions button:disabled { opacity:.5; cursor:default; }
.progress { grid-column:2/-1; height:3px; background:#ebede7; overflow:hidden; border-radius:4px; }.progress span { display:block; height:100%; width:0; background:#88c329; transition:width .15s; }.job.complete .progress span { width:100%!important; }
.primary-button { border:0; background:#17211b; color:white; border-radius:8px; padding:9px 14px; cursor:pointer; font-weight:600; }.primary-button:hover { background:#29382f; }.primary-button:disabled { opacity:.45; cursor:default; }.secondary-button { border:1px solid #d8dbd4; background:white; color:#475048; border-radius:8px; padding:9px 14px; cursor:pointer; }
.output-button { margin-top:14px; border:0; background:transparent; color:#4f5951; text-decoration:underline; text-underline-offset:3px; cursor:pointer; }


.nav-download {
  height: 38px;
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-right: 4px;
  padding: 5px 12px 5px 9px;
  background: #050705;
  border: 1px solid #fff;
  border-radius: 7px;
  color: #fff;
  text-decoration: none;
  -webkit-app-region: no-drag;
  transition: background .15s ease, border-color .15s ease;
}

.nav-download:hover {
  background: #18211b;
  border-color: var(--green);
  color: #fff;
}

.nav-download-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  fill: currentColor;
}

.nav-download-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1px;
  line-height: 1;
}

.nav-download-text small {
  font-size: 8px;
  font-weight: 400;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
}

.nav-download-text strong {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
}

.hosted-status {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 10px;

  color: #cfd5d0;
  font-size: 11px;
  font-weight: 600;
}

.status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #999;
}

.hosted-status.online .status-dot {
  background: #75d437;
}

.hosted-status.offline .status-dot {
  background: #e45252;
}

.hosted-status.online .status-text {
  color: #dce6d5;
}

.hosted-status.offline .status-text {
  color: #dce6d5;
}

.hosted-note {
  display: none;

  text-align: center;
  color: #6c746c;
  font-size: 12px;
  margin: 14px;
}

.hosted-note.visible {
  display: block;
}

.job-actions .download-button {
  background: #202821;
  color: #fff;
  border-color: #202821;
}



.download-page main { justify-content:center; }.download-panel { width:min(720px,100%); min-height:360px; border:1.5px dashed #bfc4ba; border-radius:18px; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:46px 28px; text-align:center; background:rgba(255,255,255,.33); }.download-panel .drop-icon { flex:0 0 auto; }.download-panel h1 { margin-top:3px; }.download-panel>p { max-width:510px; color:#6f776f; margin:8px 0 24px; }.download-actions { display:flex; justify-content:center; gap:11px; flex-wrap:wrap; }.download-action { min-height:44px; display:inline-flex; align-items:center; justify-content:center; gap:9px; padding:10px 16px; border:1px solid #c9cdc5; border-radius:9px; background:#fff; color:#273129; font-weight:650; text-decoration:none; box-shadow:0 4px 13px #17211b0b; }.download-action:hover { border-color:#7aa826; transform:translateY(-1px); }.download-action.primary { border-color:#17211b; background:#17211b; color:#fff; }.download-action.primary:hover { border-color:#334238; background:#29382f; }.download-action svg { width:19px; height:19px; fill:currentColor; }.download-meta { margin-top:16px; color:#929892; font-size:11px; }.download-page .window-controls { align-items:center; }.download-page .nav-download { color:var(--green); border-color:#61784d; }

@media(max-width:600px){.hosted-status{display:none}.nav-download{margin-right:5px}.download-panel{min-height:330px;padding:34px 20px}.download-actions{width:100%}.download-action{width:100%}}
.settings-panel { position:fixed; top:48px; right:0; bottom:0; width:355px; background:#fff; z-index:3; padding:28px; box-shadow:-12px 0 40px #17211b18; transform:translateX(105%); transition:transform .22s ease; }
.settings-panel.open { transform:none; }.scrim { position:fixed; inset:48px 0 0; background:#17211b26; visibility:hidden; opacity:0; transition:.2s; z-index:2; }.scrim.open { visibility:visible; opacity:1; }
.settings-heading { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:35px; }.settings-heading small { color:#8a918a; font-size:10px; letter-spacing:1.3px; }.settings-heading h2 { margin:2px 0 0; font-size:25px; }.settings-heading button { background:#f0f1ed; border-radius:50%; width:40px; height:40px; cursor:pointer; font-size:20px; padding-bottom:5px;}
.settings-tabs { display:grid; grid-template-columns:1fr 1fr; border-bottom:1px solid #e3e5df; margin:-17px 0 4px; }.settings-tabs button { border:0; border-bottom:2px solid transparent; background:transparent; padding:11px; color:#858c86; cursor:pointer; }.settings-tabs button.active { color:#17211b; border-bottom-color:#76a922; font-weight:700; }.settings-tab { display:none; }.settings-tab.active { display:block; }
.field-label { display:flex; justify-content:space-between; font-size:12px; font-weight:700; margin:25px 0 11px; }.field-label output { color:#618b1a; }
input[type=range] { width:100%; accent-color:#6f9d1e; }.segmented { display:grid; grid-template-columns:repeat(3,1fr); background:#f0f1ed; border-radius:9px; padding:3px; }.segmented button { border:0; padding:8px; border-radius:7px; background:transparent; cursor:pointer; color:#6a716b; }.segmented button.active { background:#17211b; color:white; }
.size-fields { margin-top:14px; }.size-fields.two { display:grid; grid-template-columns:1fr 1fr; gap:10px; }.size-fields.hidden { display:none; }.size-fields label { position:relative; display:block; color:#777e77; font-size:11px; }.size-fields input { width:100%; margin-top:5px; padding:10px 33px 10px 10px; border:1px solid var(--line); border-radius:8px; outline:none; }.size-fields span { position:absolute; right:10px; bottom:10px; color:#a0a59f; }.hint { color:#929892; font-size:11px; line-height:1.5; margin-top:15px; }
.check-row { display:flex; align-items:center; gap:8px; margin-top:15px; font-size:12px; cursor:pointer; }.check-row.hidden { display:none; }.check-row input { accent-color:#6f9d1e; }
.format-options { display:grid; gap:9px; }.format-options button { position:relative; display:grid; grid-template-columns:1fr auto; text-align:left; border:1px solid #e0e2dc; border-radius:10px; background:#fafbf8; padding:12px 13px; cursor:pointer; color:#17211b; }.format-options button:hover { border-color:#b7bfaf; }.format-options button.active { border-color:#77a62b; background:#f7ffe8; box-shadow:0 0 0 1px #77a62b inset; }.format-options strong { font-size:13px; }.format-options span { grid-column:1/-1; color:#8c938d; font-size:11px; margin-top:2px; }.format-options b { color:#638c20; font-size:9px; text-transform:uppercase; letter-spacing:.7px; }.format-note { margin-top:14px; }
.crop-modal { position:fixed; inset:0; z-index:10; background:#111813d9; display:none; align-items:center; justify-content:center; padding:28px; }.crop-modal.open { display:flex; }.crop-dialog { width:min(900px,100%); height:min(700px,100%); background:#f8f8f4; border-radius:16px; display:flex; flex-direction:column; overflow:hidden; box-shadow:0 30px 80px #0007; }
.crop-heading { height:72px; flex:none; padding:17px 22px; display:flex; justify-content:space-between; align-items:center; background:white; border-bottom:1px solid #e3e4de; }.crop-heading small { color:#8a918a; font-size:9px; letter-spacing:1.2px; }.crop-heading h2 { font-size:17px; margin:1px 0 0; max-width:650px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.crop-heading button { border:0; background:#eef0eb; width:31px; height:31px; border-radius:50%; font-size:20px; cursor:pointer; }
.crop-stage { min-height:0; flex:1; margin:20px; display:flex; align-items:center; justify-content:center; background:#202821; border-radius:10px; overflow:hidden; }.crop-stage canvas { max-width:100%; max-height:100%; cursor:crosshair; }.crop-footer { min-height:65px; flex:none; padding:10px 20px 16px; display:flex; align-items:center; justify-content:space-between; gap:15px; }.crop-footer>span { color:#747c75; font-size:12px; }.crop-footer>div { display:flex; gap:8px; }
@media (max-width: 700px) {

  /* Let the whole webpage scroll */
  body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  main {
    height: auto;
    min-height: calc(100vh - 48px);
    padding: 20px 16px 28px;
    overflow: visible;
  }

  /* Empty upload area */
  .drop-zone {
    flex: none;
    width: 100%;
    min-height: 220px;
    padding: 22px 16px;
  }

  .drop-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 12px;
  }

  .drop-zone h1 {
    font-size: 20px;
    line-height: 1.2;
    text-align: center;
  }

  .drop-zone p {
    margin: 4px 0 12px;
    text-align: center;
  }

  .drop-zone small {
    text-align: center;
    line-height: 1.4;
  }

  /* Compact upload box after files are added */
  .drop-zone.compact {
    flex: none;
    width: 100%;
    min-height: 72px;
    padding: 12px 14px;
    gap: 10px;
    flex-direction: row;
    align-items: center;
    overflow: hidden;
  }

  .drop-zone.compact .drop-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    margin: 0;
  }

  .drop-zone.compact .drop-copy {
    min-width: 0;
    flex: 1;
  }

  .drop-zone.compact h1 {
    font-size: 14px;
    line-height: 1.25;
    text-align: left;
  }

  .drop-zone.compact p {
    margin: 2px 0 0;
    font-size: 11px;
    text-align: left;
  }

  /* Hide supported format text in compact mobile mode */
  .drop-zone.compact > small {
    display: none;
  }

  /* Queue grows naturally - no inner scrollbar */
  .queue-area,
  .queue-area.visible {
    flex: none;
    width: 100%;
    min-height: 0;
    overflow: visible;
  }

  .queue {
    overflow: visible;
    height: auto;
    max-height: none;
  }

  /* Allow long filenames/buttons to stay inside card */
  .job {
    width: 100%;
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .thumb {
    width: 40px;
    height: 40px;
  }

  .job-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .progress {
    grid-column: 1 / -1;
  }

  /* FAQ grows naturally - no inner scrollbar */
  .faq-section {
    flex: none;
    width: 100%;
    min-height: 0;
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .settings-panel {
    width: min(355px, 100%);
  }
}
