* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-size: 16px;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  background: #f8fafc;
  color: #0f172a;
}

a {
  color: #1d4ed8;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.card {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid #e2e8f0;
}

.stack {
  display: grid;
  gap: 16px;
}

.header {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.title {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
}

.subtitle {
  color: #475569;
  margin: 4px 0 0;
}

.controls {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

input,
select,
button {
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #cbd5f5;
  background: #ffffff;
}

button {
  cursor: pointer;
  background: #2563eb;
  color: #ffffff;
  border: none;
  font-weight: 600;
}

button.secondary {
  background: #e2e8f0;
  color: #0f172a;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
}

.status {
  font-size: 14px;
  color: #475569;
}

.warning {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
  padding: 12px;
  border-radius: 8px;
}

.logo-wrap {
  display: flex;
  justify-content: center;
}

.logo {
  max-width: 360px;
  width: 100%;
  height: auto;
}

.footer {
  text-align: center;
  color: #94a3b8;
  font-size: 12px;
  padding: 8px 0 16px;
}

.genome-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.genome-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.genome-window {
  position: relative;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  background: #ffffff;
}

.scale {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #94a3b8;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  margin-bottom: 12px;
}

.transcript {
  padding: 6px 0;
  border-bottom: 1px dashed #e2e8f0;
}

.transcript:last-child {
  border-bottom: none;
}

.transcript-label {
  font-size: 11px;
  color: #475569;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  margin-bottom: 6px;
}

.track {
  position: relative;
  height: 32px;
}

.track-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: #e2e8f0;
  transform: translateY(-50%);
}

.exon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 4px;
  min-width: 4px;
  border: 1px solid #1d4ed8;
  background: #60a5fa;
  height: 14px;
  cursor: pointer;
}

.exon.coding {
  background: #1d4ed8;
  height: 20px;
}

.exon.selected {
  outline: 2px solid #f97316;
  outline-offset: 2px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.table th,
.table td {
  border: 1px solid #e2e8f0;
  padding: 8px;
  text-align: left;
  vertical-align: top;
}

.table th {
  background: #f1f5f9;
  font-weight: 600;
}

.table td {
  word-break: break-all;
}

.table .priority {
  background: #fff7ed;
  color: #9a3412;
  font-weight: 700;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button {
  background: #e2e8f0;
  color: #0f172a;
  border: 1px solid #cbd5f5;
  font-weight: 600;
}

.filter-button.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #1d4ed8;
}

.table-wrapper {
  overflow-x: auto;
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.section-subtitle {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 13px;
}

.empty {
  padding: 16px;
  border: 1px dashed #cbd5f5;
  border-radius: 8px;
  color: #64748b;
}

.details {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 12px 12px;
  background: #f8fafc;
}

.details-summary {
  cursor: pointer;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
}

.details-hint {
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
}
