@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap');

:root {
  --wb-bg: #0f172a;
  --wb-card: rgba(255, 255, 255, 0.04);
  --wb-border: rgba(255, 255, 255, 0.1);
  --wb-text: #f8fafc;
  --wb-muted: #94a3b8;
  --wb-accent: #3b82f6;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Outfit', system-ui, sans-serif;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  background-attachment: fixed;
  color: var(--wb-text);
  min-height: 100vh;
}
.wv-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--wb-border);
  background: rgba(0, 0, 0, 0.25);
}
.wv-brand { font-weight: 700; font-size: 1.1rem; }
.wv-meta { color: var(--wb-muted); font-size: 0.85rem; }
.wv-main { max-width: 1200px; margin: 0 auto; padding: 24px 20px 48px; }
.wv-wes-launch .wes-launch-steps {
  margin: 20px 0 0;
  padding-left: 1.25rem;
  line-height: 1.55;
  font-size: 0.92rem;
}
.wv-wes-launch .wes-launch-steps li { margin-bottom: 8px; }
.wes-launch-url {
  display: block;
  word-break: break-all;
  font-size: 0.82rem;
  line-height: 1.45;
}
.banner.ok {
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
}
.card {
  background: var(--wb-card);
  border: 1px solid var(--wb-border);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 20px;
}
h1 { margin: 0 0 8px; font-size: 1.5rem; }
h2 { margin: 0 0 12px; font-size: 1.1rem; }
.muted { color: var(--wb-muted); font-size: 0.92rem; }
.muted-link { color: var(--wb-muted); text-decoration: none; font-size: 0.9rem; }
.muted-link:hover { color: var(--wb-accent); }
.row-between { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; justify-content: space-between; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--wb-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--wb-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { border-color: var(--wb-accent); color: var(--wb-accent); }
.btn.secondary { background: transparent; }
.btn.disabled { opacity: 0.4; pointer-events: none; }
.btn-row .btn { min-width: 88px; text-align: center; }
table.wv-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.wv-table th, table.wv-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--wb-border);
}
table.wv-table tr:hover td { background: rgba(255, 255, 255, 0.03); }
table.wv-table a { color: var(--wb-accent); text-decoration: none; }
.entry-sidebar {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.entry-sidebar li a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--wb-border);
  color: var(--wb-muted);
  text-decoration: none;
  font-size: 0.88rem;
}
.entry-sidebar li.active a {
  border-color: var(--wb-accent);
  color: var(--wb-text);
  background: rgba(59, 130, 246, 0.12);
}
.entry-sidebar li.done a { border-color: rgba(52, 211, 153, 0.35); }
.banner {
  padding: 12px 14px;
  border-radius: 8px;
  margin: 0 0 12px;
  font-size: 0.92rem;
}
.banner.warn { background: rgba(251, 191, 36, 0.12); border: 1px solid rgba(251, 191, 36, 0.35); }
.banner.error { background: rgba(248, 113, 113, 0.12); border: 1px solid rgba(248, 113, 113, 0.35); }
.copy-paste-card { margin-top: 16px; }
.copy-paste-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.copy-paste-textarea {
  width: 100%;
  min-height: 200px;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.35);
  color: #e2e8f0;
  border: 1px solid var(--wb-border);
  border-radius: 8px;
  padding: 12px;
}
.saved-badge {
  font-size: 0.75rem;
  color: var(--wb-muted);
  font-weight: 500;
  margin-left: 8px;
}
#app:empty::after {
  content: 'Loading export…';
  color: var(--wb-muted);
  display: block;
  padding: 24px;
}
.wv-list-nav {
  margin-bottom: 4px;
}
.wv-list-nav .btn { text-decoration: none; }
.wv-search-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--wb-muted);
  margin-bottom: 8px;
}
.wv-search-input {
  width: 100%;
  max-width: 32rem;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--wb-border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--wb-text);
  font-family: inherit;
  font-size: 0.95rem;
  margin-bottom: 8px;
}
.wv-search-input:focus {
  outline: none;
  border-color: var(--wb-accent);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}
.wv-search-count {
  margin: 0 0 14px;
  font-size: 0.85rem;
}
.wv-table--entries { margin-top: 4px; }
.wv-actions-cell { white-space: nowrap; }
.wv-actions-cell a { color: var(--wb-accent); text-decoration: none; font-weight: 600; }
.wv-actions-cell a:hover { text-decoration: underline; }
.wv-action-sep { color: var(--wb-muted); margin: 0 6px; }

.classification {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}
.classification.pathogenic {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.classification.benign {
  background: rgba(56, 189, 248, 0.15);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.3);
}
.classification.vus {
  background: rgba(248, 113, 113, 0.05);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.wb-class-select {
  width: 100%;
  max-width: 320px;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--wb-border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--wb-text);
  font: inherit;
}
.wb-class-select:disabled {
  opacity: 0.85;
  cursor: not-allowed;
}
.wb-class-offline-hint {
  font-size: 0.82rem;
  margin: 8px 0 0;
  line-height: 1.4;
}

.ki-app-card .ki-app-desc {
  margin: 0 0 12px;
  font-size: 0.88rem;
  line-height: 1.45;
}
.ki-app-helper {
  padding: 12px 14px;
  border: 1px solid var(--wb-border);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.88rem;
}
.ki-app-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}
.ki-app-fields code {
  font-size: 0.88rem;
}
.ki-app-actions {
  margin-top: 10px;
}
