:root {
  --bg: #0a0f1a;
  --surface: #0f172a;
  --surface-2: #111827;
  --border: #1e293b;
  --border-2: #1e3a5f;
  --accent: #38bdf8;
  --accent-2: #7dd3fc;
  --text: #cbd5e1;
  --muted: #475569;
  --dim: #334155;
  --A: #eab308;
  --T: #ef4444;
  --C: #3b82f6;
  --G: #22c55e;
  --pos: #f97316;
  --green-hi: #86efac;
  --red-lo: #fca5a5;
  --gold: #ffc400;
  --cyan: #00e5ff;
  --good: #86efac;
  --warn: #facc15;
  --bad: #fb7185;
  --panel: #1e2633;
  --panel2: #252f3f;
  --panel3: #2d394c;
  --soft: #c7d2e1;
  --shadow: rgba(0,0,0,0.28);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.45 system-ui, 'Segoe UI', 'Roboto', Arial, sans-serif;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }

/* ── HEADER ── */
.suite-header {
  background: var(--surface);
  border-bottom: 2px solid var(--border-2);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.suite-header h1 {
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.suite-header .subtitle {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.1em;
}

/* ── TAB NAV ── */
.tab-nav {
  display: flex;
  gap: 2px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  padding: 0 12px;
  overflow-x: auto;
  flex-wrap: nowrap;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  padding: 10px 16px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tab-btn:hover {
  color: var(--text);
  border-bottom-color: var(--dim);
}

.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ── PANELS ── */
.panel-container {
  padding: 16px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.tool-panel {
  display: none;
}

.tool-panel.active {
  display: block;
}

/* ── CARDS ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.card h3 {
  color: var(--accent);
  font-size: 13px;
  margin-bottom: 8px;
  font-weight: 600;
}

.card.info {
  border-color: var(--border-2);
  background: var(--surface-2);
}

/* ── FORM ELEMENTS ── */
.field { margin-bottom: 10px; }
.field label {
  display: block;
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}

textarea, input[type="text"], input[type="file"], select {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.15s;
}

textarea:focus, input:focus, select:focus {
  border-color: var(--accent);
}

textarea {
  resize: vertical;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
}

/* ── BUTTONS ── */
.btn {
  background: var(--accent);
  color: #000;
  border: none;
  padding: 7px 16px;
  border-radius: 4px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn:hover { opacity: 0.85; }
.btn:disabled { opacity: 0.4; cursor: default; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-sm { padding: 4px 10px; font-size: 11px; }

.btn-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 8px 0;
}

/* ── TABLES ── */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

th, td {
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
}

th {
  color: var(--accent-2);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.04em;
}

tr:hover td { background: var(--surface-2); }

/* ── BASE CHIPS ── */
.base { 
  display: inline-block;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  width: 22px; height: 22px;
  line-height: 22px;
  text-align: center;
  border-radius: 3px;
  font-size: 12px;
}
.base-A { background: var(--A); color: #000; }
.base-T { background: var(--T); color: #000; }
.base-C { background: var(--C); color: #fff; }
.base-G { background: var(--G); color: #000; }
.base-sm { width: 18px; height: 18px; line-height: 18px; font-size: 10px; }

/* ── STATUS BADGES ── */
.badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
}
.badge-good { background: #065f46; color: var(--good); }
.badge-warn { background: #713f12; color: var(--warn); }
.badge-bad { background: #7f1d1d; color: var(--bad); }
.badge-info { background: #1e3a5f; color: var(--accent-2); }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--dim); }

/* ── RESPONSIVE ── */
/* ── MAPPER SPECIFIC ── */
.mapper-row-alt td { background: var(--surface-2); }
.mapper-star { cursor:pointer;color:var(--dim);font-size:14px; }
.mapper-star.active { color:var(--gold);text-shadow:0 0 6px rgba(255,196,0,0.4); }
.mapper-diff { background:rgba(251,113,133,0.15) !important;color:var(--bad);font-weight:600; }
.mapper-highlight { background:rgba(56,189,248,0.15) !important;transition:background 1s; }
.mapper-allele { font-size:11px;padding:2px 4px;min-width:50px; }
.muted { color:var(--muted); }

/* ── BIOVAT SPECIFIC ── */
.bio-base-cell .base { width:26px;height:24px;line-height:24px;font-size:11px;margin:0 1px; }
.bio-base-cell .base sub { font-size:7px;opacity:0.65; }

@media (max-width: 640px) {
  .suite-header { flex-direction: column; align-items: flex-start; }
  .tab-btn { font-size: 11px; padding: 8px 10px; }
  .panel-container { padding: 10px 12px; }
}
