.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
#demo-how .btn + .btn { margin-left: 0.5rem; }

.tv { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 1.25rem; align-items: start; }
@media (max-width: 900px) { .tv { grid-template-columns: 1fr; } }

.tv-list { border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); overflow: hidden; }
.tv-bar { display: flex; gap: 0.5rem; padding: 0.7rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tv-bar select, .tv-bar input {
  font: inherit; font-size: 0.9rem; padding: 0.4rem 0.55rem; min-width: 0;
  border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--ink);
}
.tv-bar input { flex: 1 1 100px; }
#tv-rows { max-height: 540px; overflow: auto; margin: 0; padding: 0; list-style: none; }
#tv-rows button {
  display: block; width: 100%; text-align: left; font: inherit; font-size: 0.9rem;
  padding: 0.65rem 0.8rem; border: 0; border-bottom: 1px solid var(--line-soft);
  background: transparent; color: var(--ink); cursor: pointer;
}
#tv-rows button:hover { background: color-mix(in oklab, var(--lime) 14%, transparent); }
#tv-rows button:focus-visible { outline: 3px solid var(--lime); outline-offset: -3px; }
#tv-rows button[aria-pressed="true"] { background: color-mix(in oklab, var(--lime) 20%, transparent); box-shadow: inset 3px 0 0 var(--lime-dark); }
#tv-rows b { font-family: var(--mono); font-weight: 600; }
#tv-rows small { display: block; color: var(--ink-3); font-size: 0.78rem; margin-top: 0.1rem; }
.tv-none { padding: 0.7rem 0.8rem; color: var(--ink-2); }

.tv-empty { color: var(--ink-2); padding: 1rem 0; }
.tv-step { border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); padding: 0.85rem 1.1rem; margin: 0 0 0.8rem; }
.tv-step h3 { margin: 0 0 0.4rem; font-size: 0.98rem; }
.tv-step h3 span {
  display: inline-block; min-width: 1.5rem; height: 1.5rem; line-height: 1.5rem; text-align: center;
  border-radius: 50%; background: var(--lime); color: var(--navy); font-size: 0.78rem; font-weight: 700; margin-right: 0.55rem;
}
.tv-step p { margin: 0.3rem 0; font-size: 0.92rem; color: var(--ink-2); }
.tv-step p.tv-q { color: var(--ink); font-weight: 600; }
.tv-step p.tv-a { color: var(--ink); }
.tv-step code { font-family: var(--mono); font-size: 0.84rem; word-break: break-all; color: var(--ink); }
.tv-step pre {
  margin: 0.5rem 0 0; padding: 0.75rem 0.9rem; border-radius: 8px; overflow: auto;
  background: var(--navy); color: #d8e4ec; font-size: 0.82rem;
}
.tv-step pre code { color: inherit; word-break: normal; }

.tv-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; margin-top: 0.5rem; }
.tv-sheet { border-collapse: collapse; font-family: var(--mono); font-size: 0.82rem; width: 100%; background: var(--bg); }
.tv-sheet th, .tv-sheet td { border: 1px solid var(--line-soft); padding: 0.25rem 0.65rem; text-align: right; white-space: nowrap; }
.tv-sheet th { background: var(--bg-2); font-weight: 500; text-align: center; color: var(--ink-3); }
.tv-sheet td.l { text-align: left; font-family: var(--font); }
.tv-sheet td.hit { background: var(--lime); color: var(--navy); font-weight: 700; outline: 2px solid var(--lime-dark); }
.tv-ok { color: var(--accent); font-weight: 700; }
.tv-note { margin: 1.1rem 0 0; font-size: 0.85rem; color: var(--ink-3); max-width: 70ch; }
