:root{
  --bg: #fafbf4; --panel: #ffffff; --panel-2: #f3f4e6; --line: #e4e7ca;
  --accent: #919d25; --accent-soft: #e6e9c9; --accent-dim: #f7f8f0;
  --text: #272914; --muted: #7a804d; --muted-2: #b4b894;
  --good: #259d5b; --bad: #b3402f;
}

.dropzone{ border: 2px dashed var(--line); border-radius: 10px; padding: 16px; text-align: center; cursor: pointer; margin-bottom: 12px; transition: border-color .15s ease, background .15s ease; }
.dropzone:hover, .dropzone.dragover{ border-color: var(--accent); background: var(--accent-dim); }
.dropzone .main{ font-size: 12.5px; font-weight: 600; }
.dropzone .sub{ font-size: 11px; color: var(--muted); margin-top: 3px; }
input[type=file]{ display: none; }

textarea#input{ width: 100%; min-height: 160px; max-height: 400px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; resize: vertical; font-family: 'JetBrains Mono', monospace; font-size: 12.5px; line-height: 1.6; background: var(--panel-2); color: var(--text); overflow: auto; }
textarea#input:focus{ outline: none; border-color: var(--accent); }

.progress-wrap{ display: none; margin: 14px 0; }
.progress-wrap.show{ display: block; }
.progress-bar-track{ height: 8px; background: var(--panel-2); border-radius: 4px; overflow: hidden; border: 1px solid var(--line); }
.progress-bar-fill{ height: 100%; background: var(--accent); width: 0%; transition: width .2s ease; }
.progress-label{ font-size: 11.5px; color: var(--muted); margin-top: 6px; }

.stats-strip{ display: flex; gap: 10px; margin: 14px 0; }
.stat-card{ flex: 1; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; text-align: center; }
.stat-card .num{ font-size: 18px; font-weight: 800; font-family: 'JetBrains Mono', monospace; }
.stat-card .num.good{ color: var(--good); }
.stat-card .num.bad{ color: var(--bad); }
.stat-card .lbl{ font-size: 10px; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); margin-top: 2px; }

.img-grid{ display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; max-height: 400px; overflow-y: auto; padding: 4px; }
.img-card{ border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--panel-2); }
.img-card .thumb{ height: 90px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.img-card .thumb img{ max-width: 100%; max-height: 100%; object-fit: contain; }
.img-card .thumb .broken-icon{ font-size: 22px; color: var(--bad); }
.img-card .thumb .pending-icon{ font-size: 12px; color: var(--muted-2); }
.img-card .url{ font-size: 10px; padding: 6px 8px; font-family: 'JetBrains Mono', monospace; word-break: break-all; color: var(--muted); border-top: 1px solid var(--line); }
.img-card .status{ font-size: 10px; font-weight: 700; padding: 4px 8px; }
.img-card.ok .status{ color: var(--good); }
.img-card.bad .status{ color: var(--bad); }
.empty-msg{ padding: 16px; text-align: center; font-size: 13px; color: var(--muted-2); font-style: italic; grid-column: 1 / -1; }

.btns{ display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.app{ padding: 11px 20px; border: none; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 13.5px; font-family: 'Inter', sans-serif; color: #fff; background: var(--accent); transition: filter .15s ease; }
.app:hover{ filter: brightness(1.08); }
.gray{ background: var(--line); color: var(--text); }

.note{ margin-top: 14px; font-size: 12px; color: var(--muted); line-height: 1.6; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; }
