:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #142524;
  background: #f3f6f5;
  --ink: #142524;
  --subtle: #4e6460;
  --line: #d6e0dd;
  --accent: #006957;
  --accent-dark: #005444;
  --tint: #eaf5f0;
  --white: #fff;
  --warning: #753a23;
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
::selection { background: #c7ecdc; color: var(--ink); }
body { margin: 0; min-width: 0; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.topbar { background: #142b28; color: #fff; }
.shell { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.topbar-inner { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark, .local { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.wordmark { font-size: 17px; font-weight: 800; letter-spacing: .055em; }
.mark { position: relative; width: 19px; height: 19px; display: inline-block; color: #9fe7cf; }
.mark::before, .mark::after { content: ""; position: absolute; width: 14px; height: 14px; border: 1.5px solid; border-radius: 2px; }
.mark::before { top: 0; left: 0; }
.mark::after { bottom: 0; right: 0; background: #142b28; }
.wordmark-divider { width: 1px; height: 17px; margin-inline: 3px 1px; background: #58726b; }
.wordmark-tool, .local { font-size: 14px; font-weight: 500; letter-spacing: 0; color: #d3e7e0; }
.local { gap: 7px; }
.local svg { width: 17px; height: 17px; fill: none; stroke: #a0ddc8; stroke-width: 1.6; stroke-linecap: round; }
.heading { padding-block: 44px 28px; }
h1, h2, p { margin: 0; }
h1 { font-size: 2.55rem; line-height: 1.13; letter-spacing: -.035em; font-weight: 730; text-wrap: balance; }
.heading p { margin-top: 10px; color: var(--subtle); line-height: 1.55; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(290px, 345px); grid-template-areas: "upload settings" "batch settings"; grid-template-rows: auto 1fr; align-items: start; gap: 18px 22px; padding-bottom: 48px; }
.dropzone { grid-area: upload; display: grid; justify-items: center; gap: 9px; padding: 28px 18px 30px; background: #e8f2ee; border: 1.5px dashed #88a79e; border-radius: 15px; text-align: center; transition: background 180ms ease-out, border-color 180ms ease-out; }
.dropzone.dragging { background: #d3eee2; border-color: var(--accent); }
.drop-symbol { width: 82px; margin-block: 0 3px; transition: transform 180ms ease-out; }
.dragging .drop-symbol { transform: translateY(-5px); }
.drop-symbol svg { width: 100%; display: block; fill: #d4ebe2; stroke: #096c5a; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.drop-symbol .symbol-front { fill: #edf8f2; }
.drop-symbol .symbol-disc { fill: var(--accent); stroke: #edf8f2; }
.drop-symbol .symbol-arrow { fill: none; stroke: white; }
h2 { font-size: 1.16rem; line-height: 1.3; letter-spacing: -.018em; font-weight: 700; }
.dropzone h2 { font-size: 1.38rem; }
.dropzone p { color: var(--subtle); font-size: .875rem; line-height: 1.5; }
.dropzone .button { margin-top: 7px; }
.button { min-height: 44px; padding: 0 15px; border-radius: 8px; border: 1px solid transparent; font-size: .9375rem; font-weight: 650; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; text-align: center; }
.secondary { background: var(--white); border-color: #a8bdb6; color: var(--ink); }
.secondary:hover:not(:disabled) { background: #f3fbf7; border-color: var(--accent); }
.primary { background: var(--accent); color: white; width: 100%; }
.primary:hover:not(:disabled) { background: var(--accent-dark); }
.button:disabled { cursor: default; }
.primary:disabled { background: #e1ebe7; color: #526761; }
.secondary:disabled { opacity: .6; }
.text-button { color: var(--accent); background: transparent; min-height: 40px; padding: 0 4px; }
.text-button:hover:not(:disabled) { text-decoration: underline; text-underline-offset: 3px; }
.text-button:disabled { color: #5c706b; }
.batch, .settings { background: var(--white); border: 1px solid var(--line); border-radius: 15px; }
.batch { grid-area: batch; min-width: 0; }
.batch-heading { min-height: 62px; padding: 10px 19px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
#total { font-size: .9rem; font-weight: 550; color: var(--subtle); margin-left: 5px; }
.empty { border-top: 1px solid var(--line); padding: 23px 19px; color: var(--subtle); font-size: .9375rem; line-height: 1.45; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px 14px; }
.filters button { color: var(--subtle); background: #f5f8f7; border: 1px solid var(--line); border-radius: 8px; min-height: 37px; padding: 4px 8px; cursor: pointer; font-size: .875rem; }
.filters button:hover { border-color: var(--accent); }
.filters button[aria-pressed="true"] { color: var(--accent-dark); background: var(--tint); border-color: #9fc9bb; font-weight: 650; }
.filters span { margin-left: 2px; font-variant-numeric: tabular-nums; }
table { width: 100%; border-spacing: 0; table-layout: fixed; text-align: left; }
th { font-size: .875rem; font-weight: 650; color: var(--subtle); background: #f3f7f5; }
th, td { border-top: 1px solid var(--line); padding: 10px 8px; vertical-align: middle; }
th:first-child, td:first-child { width: 50%; padding-left: 19px; }
th:last-child, td:last-child { padding-right: 14px; }
td { font-size: .875rem; font-variant-numeric: tabular-nums; }
.file { display: flex; align-items: center; gap: 9px; min-width: 0; }
.file img { width: 40px; height: 40px; flex: 0 0 auto; object-fit: contain; background: #eaf0ed; border-radius: 5px; }
.file span { overflow-wrap: anywhere; }
td small { display: block; margin-top: 2px; color: var(--subtle); font-size: .8125rem; }
.warnings { margin: 0 18px 15px; color: var(--warning); background: #fff4ed; padding: 10px 13px; border-radius: 8px; font-size: .875rem; overflow-wrap: anywhere; }
.warnings summary { cursor: pointer; }
.warnings ul { margin: 7px 0 2px; padding-left: 18px; max-height: 180px; overflow: auto; }
.settings { grid-area: settings; padding: 20px; }
.settings h2 { padding-bottom: 17px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; font-weight: 650; font-size: .9375rem; margin-bottom: 9px; }
.size-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 9px; }
.size-row label { display: grid; gap: 5px; font-size: .875rem; color: var(--subtle); }
select, input[type="number"] { min-width: 0; width: 100%; min-height: 43px; padding: 9px; border: 1px solid #adbfba; border-radius: 7px; color: var(--ink); background-color: var(--white); }
select { appearance: none; padding-right: 26px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='m3 5 4 4 4-4' fill='none' stroke='%234e6460' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 9px center no-repeat; }
.check { display: flex; min-height: 40px; align-items: center; gap: 8px; font-size: .875rem; cursor: pointer; margin-top: 4px; }
.check input { margin: 0; width: 16px; height: 16px; }
input[type="checkbox"], input[type="range"], progress { accent-color: var(--accent); }
#overrides { display: grid; gap: 9px; margin: 4px 0 9px; }
#overrides small, .hint, .status { color: var(--subtle); font-size: .875rem; line-height: 1.45; }
.format { margin-top: 16px; padding-top: 0; }
.format-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.format-options label { display: grid; position: relative; cursor: pointer; }
.format-options input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.format-options span { background: #f6f8f7; border: 1px solid var(--line); border-radius: 8px; display: grid; place-items: center; min-height: 42px; font-size: .875rem; font-weight: 650; color: var(--subtle); }
.format-options input:checked + span { background: var(--tint); border-color: #8dbdad; color: var(--accent-dark); }
.format-options input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.format-options input:hover + span { border-color: var(--accent); }
.quality { margin-top: 13px; }
.quality label { display: flex; align-items: baseline; justify-content: space-between; color: var(--subtle); font-size: .875rem; }
.quality output { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.quality input { width: 100%; margin: 0; height: 27px; cursor: pointer; }
.format-hint { margin-top: 8px; min-height: 2.9em; }
.actions { border-top: 1px solid var(--line); margin-top: 15px; padding-top: 15px; display: grid; gap: 8px; }
.status:empty { display: none; }
.status[data-error="true"] { color: var(--warning); }
progress { width: 100%; height: 7px; }
@media (max-width: 820px) {
  .shell { width: min(690px, calc(100% - 36px)); }
  .workspace { grid-template-columns: minmax(0, 1fr); grid-template-areas: "upload" "settings" "batch"; grid-template-rows: auto; gap: 14px; }
}
@media (max-width: 480px) {
  .shell { width: calc(100% - 28px); }
  .topbar-inner { min-height: 57px; gap: 8px; }
  .wordmark { font-size: .9375rem; gap: 7px; }
  .local { white-space: normal; font-size: .8125rem; justify-content: flex-end; }
  .local svg { flex-shrink: 0; }
  .heading { padding-block: 27px 20px; }
  h1 { font-size: 2rem; }
  .heading p { font-size: .9375rem; }
  .dropzone { padding-block: 20px; }
  th, td { padding-inline: 5px; font-size: .8125rem; overflow-wrap: anywhere; }
  td small { font-size: .75rem; }
  th:first-child, td:first-child { padding-left: 10px; width: 44%; }
  th:last-child, td:last-child { padding-right: 7px; }
  .file { gap: 5px; }
  .file img { width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
