:root {
  --bg: #0f1419;
  --card: #1a2332;
  --border: #2d3a4d;
  --text: #e7ecf3;
  --muted: #9aa8bc;
  --accent: #3d9cf0;
  --accent2: #2ecc71;
  --danger: #e74c3c;
  --warn: #f39c12;
  --radius: 12px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  background: radial-gradient(1200px 600px at 10% -10%, #1b2a40, transparent), var(--bg);
  color: var(--text);
  line-height: 1.45;
  min-height: 100vh;
}
header {
  padding: 1.5rem 1.25rem 0.5rem;
  max-width: 960px;
  margin: 0 auto;
}
header h1 { margin: 0 0 0.35rem; font-size: 1.55rem; font-weight: 650; }
header p { margin: 0.25rem 0; color: var(--muted); }
header a { color: var(--accent); }
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 1.25rem 3rem;
  display: grid;
  gap: 1rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}
.drop {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: border-color .15s, background .15s;
}
.drop.drag { border-color: var(--accent); background: rgba(61,156,240,.08); }
.row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-top: 0.75rem; }
button, .btn {
  appearance: none;
  border: 0;
  border-radius: 8px;
  padding: 0.55rem 0.95rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  background: var(--accent);
  color: #041018;
}
button.secondary, .btn.secondary { background: #2a3648; color: var(--text); }
button:disabled { opacity: 0.45; cursor: not-allowed; }
button.good { background: var(--accent2); color: #062015; }
label.opt { display: flex; gap: 0.4rem; align-items: center; color: var(--muted); font-size: 0.95rem; }
select, input[type=text] {
  background: #0f1722;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  font: inherit;
}
.file-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.2rem 0; border-bottom: 1px solid #243044; }
.muted { color: var(--muted); font-size: 0.9rem; }
.progress {
  height: 8px;
  background: #0f1722;
  border-radius: 99px;
  overflow: hidden;
  margin-top: 0.75rem;
}
.progress > div { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width .2s; }
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}
.ok { color: var(--accent2); font-weight: 650; }
.bad { color: var(--danger); font-weight: 650; }
.privacy-hits { margin-top: 0.75rem; background: #2a1820; border: 1px solid #5a2a34; border-radius: 8px; padding: 0.75rem; }
pre#jsonView {
  margin: 0;
  max-height: 420px;
  overflow: auto;
  background: #0b111a;
  border-radius: 8px;
  padding: 0.75rem;
  font-size: 0.82rem;
  white-space: pre-wrap;
  word-break: break-word;
}
.status { min-height: 1.4em; margin-top: 0.5rem; }
.status.ok { color: var(--accent2); }
.status.error { color: var(--danger); }
footer { max-width: 960px; margin: 0 auto 2rem; padding: 0 1.25rem; color: var(--muted); font-size: 0.85rem; }
@media (max-width: 600px) {
  header h1 { font-size: 1.25rem; }
  button { width: 100%; }
}

/* Tabs */
.tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.25rem;
}
.tab {
  background: #2a3648;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-weight: 650;
}
.tab.active {
  background: var(--accent);
  color: #041018;
  border-color: transparent;
}
.tab:hover:not(.active) { color: var(--text); }

.logo{width:64px;height:64px;vertical-align:middle;margin-right:.5rem;border-radius:8px;flex-shrink:0;}
h1{display:flex;align-items:center;gap:.35rem;flex-wrap:wrap;}

p.note{background:rgba(80,140,255,.12);border:1px solid rgba(80,140,255,.35);padding:.75rem 1rem;border-radius:8px;margin:0.75rem 0;}
.hint{display:block;font-size:.85em;opacity:.8;font-weight:normal;margin-top:.25rem;max-width:36rem;line-height:1.35;}
.force-opt{max-width:40rem;}
code{font-size:.9em;}

.upload-progress{margin-top:.75rem;}
.upload-progress .progress{margin:.35rem 0;}
.upload-progress .muted{font-size:.9em;}

.upload-progress{margin-top:.85rem;}
.upload-progress-bar{height:10px;}
