:root{
  --bg: #f4f6fb; --panel: #ffffff; --panel-2: #e6ebf4; --line: #cad5e7;
  --accent: #25519d; --accent-soft: #c9d4e9; --accent-dim: #f0f2f8;
  --text: #141c29; --muted: #4d5f80; --muted-2: #94a1b8;
}

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

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

.section-title{ font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); margin: 20px 0 8px; }
.res-list{ border: 1px solid var(--line); border-radius: 10px; overflow: hidden; max-height: 200px; overflow-y: auto; }
.res-row{ display: grid; grid-template-columns: 90px 1fr; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--line); font-size: 12px; background: var(--panel); }
.res-row:nth-child(even){ background: var(--accent-dim); }
.res-row .tag{ font-weight: 700; color: var(--accent); font-family: 'JetBrains Mono', monospace; }
.res-row .url{ font-family: 'JetBrains Mono', monospace; word-break: break-all; }
.empty-msg{ padding: 14px; font-size: 12.5px; color: var(--muted-2); font-style: italic; }

.source-view{ background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 14px; font-family: 'JetBrains Mono', monospace; font-size: 12px; line-height: 1.8; white-space: pre-wrap; word-break: break-word; max-height: 320px; overflow: auto; }

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