/* KBatch labs — typing + collab */
.labs-page {
  margin: 0;
  min-height: 100vh;
  background: var(--bg, #0d1117);
  color: var(--ink, #e6edf3);
  font-family: ui-sans-serif, system-ui, sans-serif;
}

.labs-header {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 8px;
}

.labs-brand {
  color: var(--accent, #58a6ff);
  text-decoration: none;
  font-size: 0.85rem;
}

.labs-header h1 {
  margin: 8px 0 4px;
  font-size: 1.45rem;
}

.labs-lead {
  color: var(--faint, #8b949e);
  font-size: 0.9rem;
  line-height: 1.45;
}

.labs-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 16px 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.labs-card {
  border: 1px solid var(--line-soft, #30363d);
  border-radius: 10px;
  padding: 12px 14px;
  background: color-mix(in srgb, var(--bg, #0d1117) 90%, #161b22);
}

.labs-card h2 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.labs-links {
  margin: 0;
  padding-left: 1.1rem;
  line-height: 1.55;
  font-size: 0.88rem;
}

.typing-lab,
.collab-lab {
  border: 1px solid var(--line-soft, #30363d);
  border-radius: 12px;
  padding: 14px;
  background: #161b22;
}

.typing-lab-head,
.collab-lab-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}

.typing-lab-meta,
.collab-lab-meta {
  font-size: 0.75rem;
  color: var(--faint, #8b949e);
}

.typing-prompt {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.05rem;
  line-height: 1.5;
  padding: 10px 12px;
  border-radius: 8px;
  background: #0d1117;
  border: 1px solid #30363d;
  color: #79c0ff;
  min-height: 3.2em;
}

.typing-input,
.collab-room-input {
  width: 100%;
  box-sizing: border-box;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #30363d;
  background: #0d1117;
  color: inherit;
  font: inherit;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  resize: vertical;
}

.typing-lab-actions,
.collab-lab-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.typing-result {
  margin: 10px 0 0;
  font-size: 0.9rem;
  color: #3fb950;
}

.collab-room-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--faint, #8b949e);
}

.collab-feed {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  max-height: 240px;
  overflow: auto;
  font-size: 0.82rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.collab-feed li {
  padding: 6px 0;
  border-bottom: 1px solid #21262d;
  color: #c9d1d9;
}

.collab-feed-empty,
.collab-hint {
  color: var(--faint, #8b949e);
  font-size: 0.8rem;
}

.collab-hint {
  margin: 10px 0 0;
}

/* Inline embeds on dictionary page */
.labs-inline-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 800px) {
  .labs-inline-row {
    grid-template-columns: 1fr;
  }
}

.edu-concepts-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
  align-items: baseline;
}

.edu-subject-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.edu-subject h4,
.edu-tools-cat h4 {
  margin: 0 0 4px;
  font-size: 0.78rem;
  color: var(--accent, #58a6ff);
}

.edu-subject ul,
.edu-tools-cat ul {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--ink, #e6edf3);
}

.letter-lang-tag.is-prefix {
  color: #fdba74;
  font-weight: 700;
}
