.tree-view {
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.45;
  margin: 0;
  padding: 0.7rem 0.8rem;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 8px;
  max-height: 18rem;
  overflow: auto;
}

.tree-view .ok { color: #047857; }
.tree-view .broken { color: var(--err); font-weight: 650; }
.tree-view .abs { color: #1d4ed8; }
.tree-view .rel { color: #b45309; }

.link-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 0.78rem;
}

.link-table th,
.link-table td {
  text-align: left;
  padding: 0.35rem 0.4rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.link-table .ok { color: #047857; }
.link-table .broken { color: var(--err); font-weight: 650; }

.scenario-grid {
  display: grid;
  gap: 0.45rem;
}

.scenario-grid button {
  text-align: left;
  font-size: 0.88rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.78rem;
}

.scenario-grid button:hover { border-color: var(--accent); }
.scenario-grid button.is-active {
  border-color: var(--accent);
  color: var(--accent);
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

@media (max-width: 720px) {
  .compare-grid { grid-template-columns: 1fr; }
}

.compare-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.7rem;
  background: var(--surface2);
  font-size: 0.88rem;
}

.compare-card h3 {
  margin: 0 0 0.35rem;
  font-family: var(--mono);
  font-size: 0.95rem;
}

.compare-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.lr-term {
  font-family: var(--mono);
  font-size: 0.84rem;
  background: #1a222c;
  color: #e8eef4;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  min-height: 8rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.lr-scroll {
  flex: 1;
  overflow: auto;
  padding: 0.65rem 0.8rem;
  white-space: pre-wrap;
  line-height: 1.45;
}

.lr-scroll .out { color: #b8c4d0; }
.lr-scroll .err { color: #f5a8a8; }
.lr-scroll .muted { color: #7a8a9a; }
.lr-scroll .ok { color: #8fd4a8; }

.lr-prompt-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.8rem;
  border-top: 1px solid #2a3542;
  background: #141b23;
}

.lr-prompt { color: #7dcea0; }
.lr-line {
  flex: 1;
  background: transparent;
  border: none;
  color: #e8eef4;
  font: inherit;
  outline: none;
}

.quick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.55rem;
}

.quick-row button {
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 0.28rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  cursor: pointer;
}

.quick-row button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cheat-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.cheat-table th,
.cheat-table td {
  text-align: left;
  padding: 0.4rem 0.45rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.hint-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.hint-list li { margin: 0.35rem 0; }

.root-banner {
  font-family: var(--mono);
  font-size: 0.88rem;
  margin: 0 0 0.65rem;
  padding: 0.5rem 0.65rem;
  background: var(--surface2);
  border-radius: 8px;
  border: 1px solid var(--line);
}
