:root{
  --bg: #fbf9f4; --panel: #ffffff; --panel-2: #f4f0e6; --line: #e7deca;
  --accent: #9d7725; --accent-soft: #e9dfc9; --accent-dim: #f8f5f0;
  --text: #292314; --muted: #806f4d; --muted-2: #b8ac94;
  --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; }

.link-list{ border: 1px solid var(--line); border-radius: 10px; overflow: hidden; max-height: 360px; overflow-y: auto; }
.link-row{ display: grid; grid-template-columns: 1fr 90px; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: 12.5px; align-items: center; background: var(--panel); }
.link-row:last-child{ border-bottom: none; }
.link-row:nth-child(even){ background: var(--accent-dim); }
.link-row .u{ font-family: 'JetBrains Mono', monospace; word-break: break-all; }
.link-row .s{ text-align: right; font-weight: 700; font-size: 11px; }
.link-row .s.ok{ color: var(--good); }
.link-row .s.bad{ color: var(--bad); }
.link-row .s.pending{ color: var(--muted-2); }
.empty-msg{ padding: 16px; text-align: center; font-size: 13px; color: var(--muted-2); font-style: italic; }

.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; }
