.vl-input-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: end;
  margin-bottom: 0.75rem;
}
.vl-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1 1 16rem;
}
.vl-field label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.vl-field input {
  font-family: var(--mono);
  font-size: 1.05rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  width: 100%;
}
.vl-field input.is-bad {
  border-color: var(--err);
  background: var(--err-bg);
}

.vl-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}
.vl-presets button {
  font-family: var(--mono);
  font-size: 0.78rem;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--surface2);
  color: var(--ink);
  cursor: pointer;
}
.vl-presets button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.vl-anatomy {
  display: grid;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.86rem;
  margin-bottom: 0.75rem;
}
.vl-anatomy div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  padding: 0.4rem 0.55rem;
  background: var(--surface2);
  border-radius: 8px;
}
.vl-anatomy .k { color: var(--muted); }
.vl-anatomy .v { font-weight: 600; color: var(--ink); }

.vl-bits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0.35rem 0 0.65rem;
}
.vl-bit {
  min-width: 1.85rem;
  height: 2rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--surface2);
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.vl-bit.is-1 {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}
.vl-bit.is-xz {
  background: var(--warn-bg);
  border-color: var(--warn);
  color: var(--warn);
}
.vl-bit.is-sign {
  outline: 2px solid var(--signal);
  outline-offset: 1px;
}
.vl-bit span {
  font-size: 0.55rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1;
}

.vl-out {
  margin: 0;
  padding: 0.65rem 0.75rem;
  background: var(--term-bg);
  color: var(--term-fg);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.vl-status {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  min-height: 1.25em;
}
.vl-status.ok { color: var(--ok); }
.vl-status.warn { color: var(--warn); }
.vl-status.err { color: var(--err); }

.vl-hint {
  margin: 0.55rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.vl-chal-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}
.vl-chal-head h2 { margin: 0; }
.vl-chal-progress {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--muted);
}
.vl-chal-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.4rem;
  margin-bottom: 0.65rem;
  max-height: min(36vh, 320px);
  overflow: auto;
}
.vl-chal-item {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
  text-align: left;
  padding: 0.5rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}
.vl-chal-item:hover,
.vl-chal-item.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.vl-chal-item.is-cleared .vl-chal-mark { color: var(--ok); }
.vl-chal-mark {
  font-family: var(--mono);
  color: var(--muted);
  flex-shrink: 0;
}
.vl-chal-title { font-weight: 650; font-size: 0.9rem; display: block; }
.vl-chal-meta {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}
.vl-chal-prompt {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
}

@media print {
  .site-header,
  .site-footer,
  .eyebrow,
  .hero,
  .challenge,
  .starter-note,
  .no-print {
    display: none !important;
  }
}
