:root {
  --ink: #16242E;
  --ink-soft: #3D4E58;
  --paper: #F6F5F1;
  --paper-panel: #FFFFFF;
  --line: #D8D4C8;
  --teal: #2C8C7D;
  --teal-dark: #1F6459;
  --amber: #C97D2D;
  --amber-bg: #FBF0E2;
  --ok-bg: #E9F3EE;
}
 
* {
  box-sizing: border-box;
}
 
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
}
 
.sheet {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
 
/* ---------- Header ---------- */
 
header.masthead {
  border-bottom: 2px solid var(--ink);
  padding-bottom: 20px;
  margin-bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
 
header.masthead h1 {
  font-family: 'Source Serif 4', serif;
  font-weight: 600;
  font-size: 30px;
  margin: 0;
  letter-spacing: -0.01em;
}
 
header.masthead .subtitle {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 4px;
}
 
 
/* ---------- API base URL row ---------- */
 
.config-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 32px;
}
 
.config-row label {
  font-size: 13px;
  color: var(--ink-soft);
  white-space: nowrap;
}
 
.config-row input {
  flex: 1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: var(--paper-panel);
  color: var(--ink);
  border-radius: 3px;
}
 
.config-row input:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}
 
/* ---------- Status strip (health + version) ---------- */
 
.status-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 36px;
}
 
.status-cell {
  background: var(--paper-panel);
  padding: 16px 18px;
}
 
.status-cell .label {
  font-size: 11px;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
 
.status-cell .value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}
 
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #999;
  flex-shrink: 0;
}
 
.dot.up {
  background: var(--teal);
}
 
.dot.down {
  background: var(--amber);
}
 
.pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 3px;
  font-size: 13px;
}
 
.pill.blue {
  background: #E4EEF7;
  color: #1F5A8C;
}
 
.pill.green {
  background: var(--ok-bg);
  color: var(--teal-dark);
}
 
.pill.unknown {
  background: #EEE;
  color: #777;
}
 
.sha {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 3px;
}
 
/* ---------- Specimen panels (FASTA parse / translate) ---------- */
 
section.specimen {
  border: 1px solid var(--line);
  background: var(--paper-panel);
  margin-bottom: 24px;
}
 
.specimen-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
 
.specimen-header .tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-soft);
}
 
.specimen-header h2 {
  font-family: 'Source Serif 4', serif;
  font-size: 19px;
  font-weight: 600;
  margin: 0;
}
 
.specimen-body {
  padding: 18px;
}
 
.field-label {
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
 
textarea {
  width: 100%;
  min-height: 100px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  resize: vertical;
}
 
textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}
 
.row-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}
 
button {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  background: var(--teal);
  color: white;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.15s ease;
}
 
button:hover {
  background: var(--teal-dark);
}
 
button:active {
  transform: translateY(1px);
}
 
button:disabled {
  background: #B7BEC0;
  cursor: not-allowed;
}
 
/* ---------- Result output blocks ---------- */
 
.result-block {
  margin-top: 16px;
  border-top: 1px dashed var(--line);
  padding-top: 14px;
}
 
pre.output {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 12px;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 20px;
  color: var(--ink);
}
 
pre.output.error {
  background: var(--amber-bg);
  border-color: var(--amber);
  color: #8A5417;
}
 
pre.output.empty {
  color: #A6A196;
  font-style: italic;
}
 
/* ---------- Footer ---------- */
 
footer {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-soft);
}
 
/* ---------- Responsive ---------- */
 
@media (max-width: 520px) {
  .status-strip {
    grid-template-columns: 1fr;
  }
  .config-row {
    flex-direction: column;
    align-items: stretch;
  }
}