:root {
  color-scheme: dark;
  --bg: #07101f;
  --bg-2: #0d1930;
  --glass: rgba(18, 31, 55, 0.72);
  --glass-strong: rgba(22, 38, 66, 0.9);
  --glass-soft: rgba(255, 255, 255, 0.055);
  --border: rgba(183, 217, 255, 0.15);
  --border-strong: rgba(183, 217, 255, 0.25);
  --text: #f5f8ff;
  --muted: #96a9c4;
  --subtle: #69809f;
  --blue: #1ea8ff;
  --blue-2: #6ad8ff;
  --purple: #7b67ff;
  --green: #36d78d;
  --red: #ff7185;
  --amber: #ffc66d;
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --range-progress: 69%;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; }
body {
  overflow: hidden;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 82% -10%, rgba(30, 168, 255, 0.18), transparent 38%),
    radial-gradient(circle at 0% 100%, rgba(123, 103, 255, 0.15), transparent 38%),
    linear-gradient(145deg, var(--bg), var(--bg-2));
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid rgba(80, 194, 255, 0.95);
  outline-offset: 3px;
}

.ambient {
  position: fixed;
  width: 440px;
  height: 440px;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .22;
}
.ambient-one { right: -160px; top: -170px; background: var(--blue); }
.ambient-two { left: -180px; bottom: -230px; background: var(--purple); }

.app-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  height: 100%;
  padding: 18px;
  gap: 14px;
}

.glass {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.032)), var(--glass);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px rgba(255,255,255,.08), var(--shadow);
  backdrop-filter: blur(28px) saturate(145%);
  -webkit-backdrop-filter: blur(28px) saturate(145%);
}

.topbar {
  min-height: 76px;
  padding: 12px 16px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 13px; min-width: 0; }
.brand-mark { width: 48px; height: 48px; border-radius: 15px; box-shadow: 0 10px 26px rgba(12, 153, 245, .35); }
.brand h1 { margin: 0 0 2px; font-size: 20px; line-height: 1.1; letter-spacing: -.02em; }
.brand p { margin: 0; color: var(--muted); font-size: 12.5px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.privacy-pill, .count-chip, .format-badge, .tiny-badge {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
  color: #cfe1f8;
  border-radius: 999px;
}
.privacy-pill { height: 34px; gap: 8px; padding: 0 13px; font-size: 12px; font-weight: 650; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(54,215,141,.09), 0 0 16px rgba(54,215,141,.55); }
.icon-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.055);
  cursor: pointer;
  transition: .18s ease;
}
.icon-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-button:hover:not(:disabled) { transform: translateY(-1px); background: rgba(255,255,255,.1); }
.icon-button:disabled { opacity: .35; cursor: default; }

.workspace {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(330px, .78fr);
  gap: 14px;
}
.files-panel, .settings-panel { min-height: 0; border-radius: var(--radius-xl); overflow: hidden; }
.files-panel { padding: 22px; display: flex; flex-direction: column; }
.settings-panel { padding: 21px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(143,178,221,.3) transparent; }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.panel-heading h2 { font-size: 22px; margin: 2px 0 0; letter-spacing: -.025em; }
.eyebrow { color: var(--blue-2); font-size: 9.5px; font-weight: 800; letter-spacing: .15em; }
.count-chip { height: 28px; padding: 0 11px; font-size: 11px; font-weight: 700; }
.format-badge { height: 27px; padding: 0 10px; font-size: 10px; font-weight: 800; letter-spacing: .08em; color: var(--blue-2); border-color: rgba(63,188,255,.25); background: rgba(30,168,255,.09); }

.drop-zone {
  position: relative;
  min-height: 270px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 28px;
  text-align: center;
  border: 1px dashed rgba(129, 190, 241, .34);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 30%, rgba(37, 168, 255, .11), transparent 38%),
    rgba(255,255,255,.025);
  overflow: hidden;
  cursor: pointer;
  transition: .22s ease;
}
.drop-zone::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.035), transparent 70%);
  transform: translateX(-100%);
  transition: transform .5s ease;
}
.drop-zone:hover, .drop-zone.is-dragging { border-color: rgba(71, 193, 255, .8); background-color: rgba(29, 157, 238, .07); transform: translateY(-1px); }
.drop-zone:hover::before, .drop-zone.is-dragging::before { transform: translateX(100%); }
.drop-orbit { width: 94px; height: 94px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, rgba(32,173,255,.18), transparent 68%); border: 1px solid rgba(82,199,255,.16); box-shadow: 0 0 50px rgba(31,164,255,.16); }
.drop-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 19px; background: linear-gradient(145deg, #25b4ff, #197ee9); box-shadow: inset 0 1px rgba(255,255,255,.35), 0 16px 35px rgba(10,132,230,.35); }
.drop-icon svg { width: 28px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.drop-zone h3 { margin: 17px 0 6px; font-size: 22px; letter-spacing: -.025em; }
.drop-zone p { margin: 0 0 20px; color: var(--muted); font-size: 13px; }

.secondary-button, .primary-button, .text-button {
  border: 0;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, opacity .16s ease;
}
.secondary-button {
  min-height: 39px;
  padding: 0 17px;
  border-radius: 13px;
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,.075);
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: inset 0 1px rgba(255,255,255,.08);
}
.secondary-button:hover:not(:disabled) { transform: translateY(-1px); background: rgba(255,255,255,.115); }
.secondary-button.compact { min-height: 34px; padding: 0 13px; font-size: 11.5px; }
.secondary-button.danger { color: #ffb0ba; border-color: rgba(255,113,133,.22); }
.text-button { padding: 6px 0; background: transparent; color: var(--blue-2); font-size: 12px; font-weight: 700; }
.text-button:hover { color: white; }

.file-list-wrap { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.list-toolbar { height: 34px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.07); margin-bottom: 8px; }
.select-all-label { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); cursor: pointer; }
.select-all-label input, .file-check { accent-color: var(--blue); }
.file-list { min-height: 0; overflow-y: auto; padding-right: 5px; scrollbar-width: thin; scrollbar-color: rgba(143,178,221,.3) transparent; }
.file-row {
  display: grid;
  grid-template-columns: 22px 54px minmax(0, 1fr) auto 30px;
  align-items: center;
  gap: 10px;
  min-height: 70px;
  padding: 8px 9px;
  border: 1px solid transparent;
  border-radius: 15px;
  transition: .16s ease;
}
.file-row + .file-row { margin-top: 4px; }
.file-row:hover { background: rgba(255,255,255,.046); border-color: rgba(255,255,255,.06); }
.file-row.is-unchecked { opacity: .48; }
.file-thumb { width: 54px; height: 54px; border-radius: 11px; object-fit: cover; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08); }
.file-info { min-width: 0; }
.file-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; font-weight: 700; }
.file-meta { display: block; margin-top: 4px; color: var(--muted); font-size: 10.5px; }
.file-size { color: #c6d6ea; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.remove-file { width: 28px; height: 28px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; cursor: pointer; }
.remove-file:hover { color: #fff; background: rgba(255,255,255,.08); }
.remove-file svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.setting-block { padding: 15px 0; border-top: 1px solid rgba(255,255,255,.075); }
.settings-heading + .setting-block { border-top: 0; padding-top: 3px; }
.field-label, .sub-label { font-size: 11.5px; font-weight: 750; color: #dce8f8; }
.field-help { margin: 8px 1px 0; color: var(--muted); font-size: 10.5px; line-height: 1.45; }
.field-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.segmented { margin-top: 10px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: 14px; background: rgba(0,0,0,.16); }
.segment { height: 34px; padding: 0 7px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 10.5px; font-weight: 750; cursor: pointer; }
.segment:hover { color: var(--text); }
.segment.active { color: white; background: linear-gradient(145deg, rgba(31,171,255,.9), rgba(40,111,232,.9)); box-shadow: inset 0 1px rgba(255,255,255,.28), 0 5px 15px rgba(21,126,230,.2); }
.value-pill { min-width: 51px; text-align: center; padding: 5px 8px; border-radius: 9px; color: var(--blue-2); background: rgba(31,168,255,.1); border: 1px solid rgba(63,187,255,.2); font-size: 10.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.value-pill.small { min-width: 43px; padding: 4px 7px; }
.range { width: 100%; height: 18px; margin: 0; appearance: none; background: transparent; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 5px; border-radius: 999px; background: linear-gradient(90deg, var(--blue) var(--range-progress), rgba(255,255,255,.12) var(--range-progress)); }
.range::-webkit-slider-thumb { appearance: none; width: 17px; height: 17px; margin-top: -6px; border-radius: 50%; background: white; border: 3px solid var(--blue); box-shadow: 0 3px 13px rgba(0,0,0,.3); }
.range:disabled { opacity: .45; cursor: default; }
.range-labels { display: flex; justify-content: space-between; margin-top: 2px; color: var(--subtle); font-size: 9px; }
.presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 11px; }
.preset { height: 30px; border: 1px solid var(--border); border-radius: 10px; background: rgba(255,255,255,.035); color: var(--muted); font-size: 10px; font-weight: 750; cursor: pointer; }
.preset.active { color: white; border-color: rgba(57,184,255,.45); background: rgba(30,168,255,.12); }
.select-control { width: 100%; height: 39px; margin-top: 9px; padding: 0 12px; border: 1px solid var(--border); border-radius: 12px; background: rgba(0,0,0,.18); color: var(--text); font-size: 11.5px; }
.tiny-badge { height: 22px; padding: 0 8px; color: var(--blue-2); font-size: 8.5px; font-weight: 800; letter-spacing: .05em; }
.palette-controls { margin-top: 13px; padding: 12px; border-radius: 14px; border: 1px solid rgba(255,255,255,.07); background: rgba(0,0,0,.12); }
.palette-label-row { margin-bottom: 5px; }

.switch-row, .inline-field { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.switch-row { position: relative; cursor: pointer; }
.switch-row + .inline-field, .inline-field + .inline-field { margin-top: 14px; }
.switch-row strong, .inline-field strong { display: block; font-size: 10.8px; line-height: 1.3; }
.switch-row small, .inline-field small { display: block; margin-top: 3px; color: var(--muted); font-size: 9.5px; line-height: 1.3; }
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch { flex: 0 0 auto; width: 39px; height: 23px; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.08); transition: .18s ease; }
.switch::before { content: ""; display: block; width: 15px; height: 15px; border-radius: 50%; background: #d9e4f2; transition: transform .18s ease; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.switch-row input:checked + .switch { background: linear-gradient(145deg, var(--blue), #287bea); }
.switch-row input:checked + .switch::before { transform: translateX(16px); background: white; }
.switch-row.slim { margin-top: 10px; }
input[type="color"] { width: 34px; height: 29px; padding: 3px; border: 1px solid var(--border); border-radius: 9px; background: rgba(255,255,255,.05); }
.suffix-input { width: 112px; height: 32px; padding: 0 9px; border: 1px solid var(--border); border-radius: 9px; background: rgba(0,0,0,.17); color: var(--text); font-size: 10.5px; text-align: right; }

.output-options { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 10px; }
.output-choice { min-width: 0; min-height: 65px; display: grid; grid-template-columns: 30px minmax(0,1fr); align-items: center; gap: 8px; padding: 9px; border: 1px solid var(--border); border-radius: 13px; background: rgba(255,255,255,.03); cursor: pointer; transition: .16s ease; }
.output-choice input { position: absolute; opacity: 0; }
.output-choice.active { border-color: rgba(62,187,255,.5); background: rgba(30,168,255,.09); }
.choice-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,.06); color: var(--blue-2); }
.choice-icon svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.output-choice strong { display: block; font-size: 10.5px; }
.output-choice small { display: block; margin-top: 3px; color: var(--muted); font-size: 8.5px; }

.direct-save-controls {
  margin-top: 10px;
  padding: 11px 12px;
  border: 1px solid rgba(91, 198, 255, .16);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(30,168,255,.075), rgba(255,255,255,.025));
}
.direct-save-controls .switch-row.slim { margin-top: 0; }
.direct-save-help { margin: 9px 0 0; line-height: 1.4; }
.output-choice.is-fallback .choice-icon { color: #ffc86e; }

.progress-card, .result-card { margin-top: auto; border-radius: 19px; border: 1px solid var(--border); background: linear-gradient(145deg, rgba(30,168,255,.09), rgba(255,255,255,.035)); }
.progress-card { padding: 17px; }
.progress-topline { display: flex; justify-content: space-between; gap: 12px; }
.progress-card h3, .result-card h3 { margin: 4px 0 0; font-size: 15px; }
.progress-card p, .result-card p { color: var(--muted); margin: 7px 0 0; font-size: 10.5px; }
.progress-count { font-size: 11px; font-weight: 800; color: var(--blue-2); }
.progress-track { height: 7px; margin-top: 15px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.1); }
.progress-bar { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--blue-2)); box-shadow: 0 0 18px rgba(44,183,255,.4); transition: width .25s ease; }
.live-results { max-height: 90px; overflow-y: auto; margin-top: 11px; }
.live-result { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-top: 1px solid rgba(255,255,255,.05); font-size: 9.5px; }
.live-result span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #c9d9ec; }
.live-result .saving { color: var(--green); font-weight: 750; }
.live-result .error { color: var(--red); font-weight: 750; }
.result-card { min-height: 92px; padding: 16px; display: grid; grid-template-columns: 47px minmax(0,1fr) auto; gap: 12px; align-items: center; }
.result-icon { width: 47px; height: 47px; display: grid; place-items: center; border-radius: 15px; color: white; background: linear-gradient(145deg, #3ddd97, #20a66f); box-shadow: 0 12px 28px rgba(34,190,125,.22); }
.result-icon svg { width: 27px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.result-copy { min-width: 0; }

.action-dock { min-height: 76px; padding: 11px 12px 11px 19px; border-radius: 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.batch-summary { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.batch-summary span { color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.batch-summary strong { font-size: 16px; font-variant-numeric: tabular-nums; }
.dock-actions { display: flex; align-items: center; gap: 8px; }
.primary-button { min-width: 240px; height: 50px; padding: 0 17px 0 20px; border-radius: 16px; display: flex; justify-content: space-between; align-items: center; gap: 18px; color: white; background: linear-gradient(135deg, #1fb6ff, #246ee9 66%, #6f65ee); box-shadow: inset 0 1px rgba(255,255,255,.3), 0 12px 28px rgba(22,115,226,.3); font-size: 13px; font-weight: 800; }
.primary-button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: inset 0 1px rgba(255,255,255,.36), 0 16px 35px rgba(22,115,226,.36); }
.primary-button:disabled { opacity: .42; cursor: default; filter: grayscale(.25); }
.button-arrow { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.14); font-size: 18px; }

.toast-region { position: fixed; right: 26px; bottom: 100px; z-index: 20; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { max-width: 340px; padding: 12px 14px; border-radius: 13px; color: white; background: rgba(22,35,57,.96); border: 1px solid var(--border-strong); box-shadow: 0 15px 40px rgba(0,0,0,.3); font-size: 11px; animation: toast-in .2s ease; }
.toast.error { border-color: rgba(255,113,133,.35); }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }

[hidden] { display: none !important; }

@media (max-width: 980px) {
  .workspace { grid-template-columns: minmax(0, 1.15fr) minmax(310px, .85fr); }
  .files-panel { padding: 18px; }
  .settings-panel { padding: 18px; }
}

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

@media (prefers-contrast: more) {
  :root { --border: rgba(220,235,255,.35); --muted: #b7c5d8; }
  .glass { background: rgba(10,22,40,.94); backdrop-filter: none; }
}

/* PWA shell additions */
.install-button {
  min-height: 36px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(86, 198, 255, .3);
  border-radius: 12px;
  color: #eaf8ff;
  background: linear-gradient(145deg, rgba(31,171,255,.22), rgba(73,103,232,.16));
  box-shadow: inset 0 1px rgba(255,255,255,.1);
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 750;
}
.install-button:hover:not(:disabled) { transform: translateY(-1px); background: linear-gradient(145deg, rgba(31,171,255,.32), rgba(73,103,232,.23)); }
.install-button:disabled { opacity: .55; cursor: default; }
.install-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.output-choice.is-disabled { opacity: .42; cursor: not-allowed; filter: grayscale(.2); }
.update-banner {
  position: fixed;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 40;
  width: min(520px, calc(100vw - 28px));
  padding: 13px 14px 13px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-radius: 17px;
  transform: translateX(-50%);
}
.update-banner strong, .update-banner span { display: block; }
.update-banner strong { font-size: 12.5px; }
.update-banner span { margin-top: 3px; color: var(--muted); font-size: 10.5px; }
.noscript {
  position: fixed;
  inset: 20px;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 30px;
  border-radius: 24px;
  color: white;
  background: #101c31;
  text-align: center;
}

@media (max-width: 860px) {
  html, body { min-height: 100%; height: auto; }
  body { overflow-x: hidden; overflow-y: auto; }
  .app-shell {
    min-height: 100dvh;
    height: auto;
    grid-template-rows: auto auto auto;
    padding:
      max(12px, env(safe-area-inset-top))
      max(12px, env(safe-area-inset-right))
      max(12px, env(safe-area-inset-bottom))
      max(12px, env(safe-area-inset-left));
    gap: 12px;
  }
  .workspace { min-height: auto; grid-template-columns: 1fr; gap: 12px; }
  .files-panel, .settings-panel { min-height: 0; overflow: visible; }
  .files-panel { min-height: 520px; }
  .file-list { max-height: 480px; }
  .settings-panel { max-height: none; }
  .action-dock {
    position: sticky;
    bottom: max(8px, env(safe-area-inset-bottom));
    z-index: 12;
  }
  .ambient { width: 330px; height: 330px; filter: blur(80px); }
}

@media (max-width: 620px) {
  .app-shell { gap: 10px; }
  .topbar { min-height: 68px; padding: 10px 11px; border-radius: 19px; }
  .brand { gap: 10px; }
  .brand-mark { width: 43px; height: 43px; border-radius: 13px; }
  .brand h1 { font-size: 18px; }
  .brand p { font-size: 10.5px; }
  .topbar-actions { gap: 7px; }
  .privacy-pill { height: 34px; padding: 0 10px; font-size: 10.5px; }
  .install-button { width: 36px; padding: 0; justify-content: center; }
  .install-button span { display: none; }
  .files-panel, .settings-panel { padding: 17px; border-radius: 22px; }
  .files-panel { min-height: 500px; }
  .panel-heading h2 { font-size: 20px; }
  .drop-zone { min-height: 350px; padding: 30px 18px; border-radius: 20px; }
  .drop-zone h3 { font-size: 20px; }
  .drop-zone p { max-width: 280px; font-size: 12px; line-height: 1.45; }
  .file-row { grid-template-columns: 22px 48px minmax(0, 1fr) 30px; gap: 8px; min-height: 66px; padding: 7px 5px; }
  .file-thumb { width: 48px; height: 48px; }
  .file-size { display: none; }
  .file-name { font-size: 11.5px; }
  .file-meta { font-size: 9.5px; }
  .output-options { grid-template-columns: 1fr; }
  .action-dock { min-height: 0; padding: 12px; flex-direction: column; align-items: stretch; gap: 11px; border-radius: 20px; }
  .batch-summary { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
  .batch-summary strong { font-size: 14px; }
  .dock-actions { width: 100%; }
  .dock-actions .secondary-button { flex: 0 0 auto; }
  .primary-button { min-width: 0; width: 100%; height: 50px; }
  .toast-region { right: 12px; left: 12px; bottom: 124px; }
  .toast { max-width: none; }
  .result-card { grid-template-columns: 44px minmax(0,1fr); }
  .result-icon { width: 44px; height: 44px; }
  .result-card .secondary-button { grid-column: 1 / -1; width: 100%; }
}

@media (max-width: 390px) {
  .brand p { display: none; }
  .privacy-pill span:last-child { display: none; }
  .privacy-pill { width: 34px; justify-content: center; padding: 0; }
  .status-dot { flex: 0 0 auto; }
  .segmented { gap: 3px; padding: 3px; }
  .segment { padding: 0 4px; font-size: 10px; }
  .inline-field { align-items: flex-start; }
  .suffix-input { width: 102px; }
}

@media (display-mode: standalone) {
  .install-button { display: none !important; }
}
