/* Section-specific styles, layered on top of styles.css */

/* ---------- Ticker ---------- */
.ticker-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 14px 0 28px;
  padding: 8px 14px;
  background: var(--ink-1);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.ticker-label {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-0);
  background: var(--accent-warm);
  padding: 4px 8px;
  border-radius: 2px;
}
.ticker-clip {
  flex: 1;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}
.ticker-track {
  display: flex;
  gap: 22px;
  white-space: nowrap;
  animation: tickerScroll 80s linear infinite;
}
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--fg-mute);
}
.ticker-glyph { color: var(--accent); font-family: var(--mono); font-weight: 600; }
.ticker-word { color: var(--paper); font-weight: 500; }
.ticker-note { color: var(--fg-mute); font-style: italic; font-family: var(--serif); }
.ticker-time { font-family: var(--mono); font-size: 11px; color: var(--fg-dim); }
.ticker-dot { color: var(--fg-dim); margin: 0 4px; }

/* ---------- Page ---------- */
.page { padding-top: 12px; min-height: 60vh; }
.page-foot { margin-top: 64px; }

.page-intro { margin-bottom: 28px; max-width: 70ch; }
.page-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 36px;
  letter-spacing: -0.02em;
  margin: 8px 0 6px;
  color: var(--paper);
}
.page-lede { color: var(--fg-mute); font-size: 16px; line-height: 1.6; max-width: 60ch; }

/* ---------- Dashboard layout ---------- */
.dash-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 18px;
  margin-top: 4px;
}
.dash-hero { grid-column: 1; grid-row: 1; padding: 32px; }
.dash-hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin: 10px 0 14px;
  text-wrap: balance;
}
.dash-hero-lede { color: var(--paper-dim); font-size: 16px; line-height: 1.6; max-width: 56ch; }
.dash-hero-actions { margin-top: 22px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.teach-cta {
  grid-column: 2;
  grid-row: 1 / 3;
  position: relative;
  background: linear-gradient(155deg, var(--ink-2) 0%, #1a2540 100%);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.18s, border-color 0.18s;
  display: flex;
  flex-direction: column;
}
.teach-cta:hover { transform: translateY(-2px); border-color: var(--accent-warm); }
.teach-cta-bg { position: absolute; inset: 0; pointer-events: none; }
.teach-cta-glyph {
  position: absolute;
  font-size: 360px;
  line-height: 1;
  font-style: italic;
  color: var(--accent-warm);
  opacity: 0.07;
  right: -40px;
  bottom: -120px;
  transform: rotate(8deg);
}
.teach-cta-inner { position: relative; z-index: 1; display: flex; flex-direction: column; height: 100%; }
.teach-cta-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 32px;
  line-height: 1.1;
  margin: 8px 0 12px;
  color: var(--paper);
  letter-spacing: -0.015em;
}
.teach-cta-lede { color: var(--paper-dim); font-size: 14px; line-height: 1.55; }
.teach-cta-row {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.teach-cta-input {
  font-size: 13px;
  color: var(--fg-mute);
  background: rgba(0,0,0,0.25);
  border: 1px dashed var(--line);
  padding: 10px 12px;
  border-radius: 4px;
  flex: 1;
}
.teach-cta-input em { color: var(--accent); font-style: italic; }
.teach-cta-arrow {
  font-family: var(--serif);
  font-size: 28px;
  font-style: italic;
  color: var(--accent-warm);
}
.teach-cta-margin {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 22px;
  color: var(--accent-warm);
  transform: rotate(8deg);
}

.dash-stats { grid-column: 1; grid-row: 2; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px dashed var(--line);
}
.stat-block { display: flex; flex-direction: column; gap: 4px; }
.stat-label { font-size: 10px; }
.stat-value {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 400;
  font-feature-settings: 'lnum';
  color: var(--paper);
  line-height: 1;
  margin-top: 4px;
  letter-spacing: -0.02em;
}
.stat-value.accent { color: var(--accent); font-style: italic; }
.stat-sub { font-size: 12px; color: var(--fg-mute); font-family: var(--mono); margin-top: 2px; }
.confbar-wrap { padding-top: 18px; }
.confbar-track {
  display: flex;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--ink-3);
  gap: 2px;
}
.confbar-seg.conf-confirmed { background: var(--conf-confirmed); }
.confbar-seg.conf-high { background: var(--conf-high); }
.confbar-seg.conf-medium { background: var(--conf-medium); }
.confbar-seg.conf-uncertain { background: var(--conf-uncertain); }
.confbar-seg.conf-guess { background: var(--conf-guess); }
.confbar-seg.conf-unknown { background: var(--conf-unknown); }
.confbar-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
.confbar-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.confbar-dot { width: 8px; height: 8px; border-radius: 999px; }
.confbar-dot.conf-confirmed { background: var(--conf-confirmed); }
.confbar-dot.conf-high { background: var(--conf-high); }
.confbar-dot.conf-medium { background: var(--conf-medium); }
.confbar-dot.conf-uncertain { background: var(--conf-uncertain); }
.confbar-dot.conf-guess { background: var(--conf-guess); }
.confbar-dot.conf-unknown { background: var(--conf-unknown); }

.dash-recent { grid-column: 1; grid-row: 3; }
.dash-recent-title { font-size: 22px; font-weight: 500; margin: 8px 0 14px; color: var(--paper); }
.recent-list { list-style: none; margin: 0; padding: 0; }
.recent-row {
  display: grid;
  grid-template-columns: 28px auto 1fr auto;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px dashed var(--line);
  font-size: 14px;
}
.recent-row:first-child { border-top: none; }
.recent-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-0);
  background: var(--accent);
}
.recent-glyph.kind-promoted { background: var(--conf-confirmed); }
.recent-glyph.kind-demoted { background: var(--conf-guess); }
.recent-glyph.kind-rule { background: var(--conf-medium); color: var(--ink-0); }
.recent-glyph.kind-example { background: var(--paper); color: var(--ink-0); }
.recent-word { color: var(--paper); font-weight: 500; }
.recent-note { color: var(--fg-mute); font-family: var(--serif); font-style: italic; }
.recent-time { color: var(--fg-dim); font-size: 11px; }

.dash-wotm { grid-column: 2; grid-row: 3; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.wotm-word {
  font-family: var(--serif);
  font-style: italic;
  font-size: 56px;
  line-height: 1;
  color: var(--paper);
  margin: 8px 0 0;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.wotm-pron { color: var(--fg-mute); font-size: 12px; letter-spacing: 0.04em; }
.wotm-def { color: var(--paper-dim); margin: 6px 0 0; font-size: 15px; font-style: italic; font-family: var(--serif); }
.wotm-ex { margin-top: 14px; padding: 12px; border-left: 2px solid var(--accent); background: rgba(0,0,0,0.18); border-radius: 0 4px 4px 0; }
.wotm-ex-conlang { font-size: 14px; color: var(--paper); }
.wotm-ex-en { font-size: 13px; color: var(--fg-mute); font-style: italic; font-family: var(--serif); margin-top: 4px; }

/* ---------- Dictionary ---------- */
.dict-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.dict-search-wrap { flex: 1; position: relative; }
.dict-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--fg-mute);
  font-family: var(--mono);
  font-size: 16px;
}
.dict-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--fg-mute);
  font-size: 12px;
  padding: 4px;
}
.dict-sort { display: flex; gap: 6px; flex-shrink: 0; }

.dict-filters { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.filter-group { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.filter-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-dim);
  width: 80px;
  flex-shrink: 0;
}
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }

.dict-meta { padding: 4px 0 14px; border-bottom: 1px solid var(--line); }

.dict-group { margin-top: 28px; }
.dict-group-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 8px;
  margin-bottom: 6px;
}
.dict-group-letter {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 38px;
  color: var(--accent-warm);
  line-height: 1;
  width: 44px;
}
.dict-group-rule { flex: 1; height: 1px; background: var(--line); }

.dict-list { display: flex; flex-direction: column; }
.dict-row { border-bottom: 1px solid var(--line-soft); transition: background 0.15s; }
.dict-row:hover { background: rgba(56, 189, 248, 0.03); }
.dict-row.open { background: var(--ink-1); }
.dict-row-main {
  display: grid;
  grid-template-columns: 160px 130px 100px 1fr 110px 24px;
  align-items: center;
  gap: 18px;
  padding: 14px 16px;
  width: 100%;
  text-align: left;
}
.dict-row-word {
  font-size: 18px;
  font-weight: 600;
  color: var(--paper);
  font-family: var(--mono);
  letter-spacing: -0.01em;
}
.dict-row-pron { color: var(--fg-mute); font-size: 12px; }
.dict-row-cat {
  font-family: var(--serif);
  font-style: italic;
  color: var(--fg-mute);
  font-size: 13px;
}
.dict-row-meaning { color: var(--paper-dim); font-size: 14px; }
.dict-row-caret {
  color: var(--fg-dim);
  font-family: var(--mono);
  font-size: 16px;
  text-align: center;
  transition: color 0.15s;
}
.dict-row.open .dict-row-caret { color: var(--accent-warm); }

.dict-row-detail {
  padding: 4px 16px 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 1px dashed var(--line);
  margin-top: 0;
}
.dict-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-top: 14px;
}
.dict-detail-val { color: var(--paper); margin-top: 6px; font-size: 15px; }
.dict-detail-siblings { margin-top: 4px; }
.dict-sibling {
  display: flex; align-items: baseline; gap: 12px;
  padding: 8px 0; border-bottom: 1px solid var(--line);
}
.dict-sibling:last-child { border-bottom: none; }
.dict-sibling-cat { min-width: 80px; color: var(--fg-mute); font-size: 14px; }
.dict-sibling-meaning { flex: 1; color: var(--paper); font-size: 14px; }
.dict-detail-notes p { color: var(--paper-dim); margin: 6px 0 0; font-style: italic; font-family: var(--serif); font-size: 15px; }
.dict-detail-evidence ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.dict-detail-evidence li { display: flex; gap: 10px; align-items: baseline; font-size: 13px; }
.evidence-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  background: var(--ink-2);
  border: 1px solid var(--line);
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 2px;
  text-decoration: none;
  flex-shrink: 0;
}
.evidence-tag:hover { background: var(--accent); color: var(--ink-0); }
.evidence-snippet { color: var(--fg-mute); font-style: italic; font-family: var(--serif); }

/* ---------- Related items in word detail ---------- */
.dict-detail-related {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.related-conj-table {
  border-collapse: collapse;
  margin-top: 6px;
}
.related-conj-table td {
  padding: 2px 0;
  font-size: 13px;
}

.empty-state { text-align: center; padding: 80px 20px; }

/* ---------- Edit panel ---------- */
.edit-panel {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.edit-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.edit-row-inline {
  display: flex;
  align-items: center;
  gap: 12px;
}
.edit-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.edit-actions {
  display: flex;
  gap: 10px;
  padding-top: 6px;
}
.ai-result {
  padding: 12px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 4px;
  font-size: 13px;
  color: var(--paper-dim);
}

/* ---------- Conjugations ---------- */
.conj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.conj-card {
  background: var(--ink-1);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px 18px 16px;
  transition: border-color 0.15s;
  position: relative;
}
.conj-card:hover { border-color: var(--fg-dim); }
.conj-card.irregular {
  border-color: rgba(244, 63, 94, 0.4);
  background: linear-gradient(to bottom right, var(--ink-1), rgba(244, 63, 94, 0.04));
}
.conj-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.conj-inf {
  font-family: var(--serif);
  font-style: italic;
  font-size: 30px;
  font-weight: 500;
  color: var(--paper);
  margin-top: 4px;
  letter-spacing: -0.015em;
  line-height: 1;
}
.conj-flag {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-warm);
  border: 1px solid var(--accent-warm);
  padding: 3px 6px;
  border-radius: 2px;
}
.conj-table { width: 100%; border-collapse: collapse; }
.conj-table tr { border-top: 1px dashed var(--line); }
.conj-table tr:first-child { border-top: none; }
.conj-pron { padding: 6px 0; color: var(--fg-mute); font-size: 12px; width: 50%; }
.conj-form { padding: 6px 0; color: var(--paper); text-align: right; font-size: 14px; font-weight: 500; }
.conj-notes { color: var(--paper-mute); font-size: 12px; margin: 12px 0 0; padding-top: 10px; border-top: 1px dashed var(--line); }

/* ---------- Grammar ---------- */
.rules-list { list-style: none; margin: 0; padding: 0; counter-reset: rule; }
.rule-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.rule-item:first-child { border-top: 2px solid var(--line); }
.rule-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 32px;
  color: var(--accent-warm);
  line-height: 1;
  letter-spacing: -0.02em;
}
.rule-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.rule-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  color: var(--paper);
  margin: 0;
  letter-spacing: -0.01em;
}
.rule-detail { color: var(--paper-dim); font-size: 15px; line-height: 1.6; margin: 0; max-width: 62ch; }

/* ---------- Examples ---------- */
.ex-list { list-style: none; margin: 0; padding: 0; }
.ex-item {
  display: grid;
  grid-template-columns: 50px 1.2fr 1fr auto;
  gap: 22px;
  align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.ex-item:first-child { border-top: 2px solid var(--line); }
.ex-num { color: var(--fg-dim); font-size: 12px; }
.ex-conlang { font-size: 19px; color: var(--paper); font-family: var(--mono); letter-spacing: -0.005em; }
.ex-en { font-size: 16px; color: var(--paper-dim); }
.ex-meta { display: flex; align-items: center; gap: 10px; }
.ex-link {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-mute);
  text-decoration: none;
  letter-spacing: 0.04em;
}
.ex-link:hover { color: var(--accent); }

/* ---------- Settings drawer ---------- */
.drawer-scrim {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(7, 9, 15, 0.7);
  backdrop-filter: blur(4px);
  display: flex; justify-content: flex-end;
  animation: scrimIn 0.2s;
}
@keyframes scrimIn { from { opacity: 0; } to { opacity: 1; } }
.drawer {
  width: 460px;
  max-width: 100%;
  background: var(--ink-1);
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column;
  animation: drawerIn 0.28s ease;
}
@keyframes drawerIn { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.drawer-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
}
.drawer-body { padding: 22px 26px; display: flex; flex-direction: column; gap: 22px; flex: 1; }
.drawer-row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 0;
  border-top: 1px dashed var(--line);
}
.drawer-row:first-of-type { border-top: none; padding-top: 0; }
.drawer-label { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--paper); }
.drawer-help { font-size: 12px; color: var(--fg-mute); margin-top: 2px; max-width: 30ch; }
.drawer-foot { margin-top: auto; padding-top: 18px; border-top: 1px dashed var(--line); }

.switch {
  width: 42px; height: 24px;
  border-radius: 999px;
  background: var(--ink-3);
  border: 1px solid var(--line);
  position: relative;
  transition: background 0.18s;
  cursor: pointer;
}
.switch.on { background: var(--conf-confirmed); border-color: var(--conf-confirmed); }
.switch-knob {
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  border-radius: 999px;
  background: var(--paper);
  transition: transform 0.18s;
}
.switch.on .switch-knob { transform: translateX(18px); }

/* ---------- Teach me ---------- */
.teach-shell {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  min-height: 70vh;
}
.teach-side {
  border-right: 1px solid var(--line);
  padding-right: 24px;
}
.teach-side-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 24px;
  margin: 8px 0 10px;
  color: var(--paper);
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.teach-side-lede { color: var(--fg-mute); font-size: 14px; line-height: 1.55; }
.teach-samples { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.teach-sample {
  display: flex;
  align-items: baseline;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 4px;
  border: 1px dashed transparent;
  transition: all 0.15s;
}
.teach-sample:hover { background: var(--ink-1); border-color: var(--line); }
.teach-sample:disabled { opacity: 0.5; cursor: not-allowed; }
.teach-sample-num { color: var(--fg-dim); font-size: 11px; flex-shrink: 0; }
.teach-sample-text { color: var(--paper-dim); font-size: 14px; }
.teach-sample:hover .teach-sample-text { color: var(--paper); }
.teach-side-foot {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

.teach-main {
  display: flex;
  flex-direction: column;
  background: var(--ink-1);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.teach-stream {
  flex: 1;
  overflow-y: auto;
  padding: 28px 32px;
  min-height: 400px;
  max-height: 70vh;
}
.teach-empty { text-align: center; padding: 60px 20px; }
.teach-empty-glyph {
  font-family: var(--serif);
  font-style: italic;
  font-size: 120px;
  color: var(--accent-warm);
  opacity: 0.3;
  line-height: 1;
}
.teach-empty-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 28px;
  margin: 6px 0 10px;
  color: var(--paper);
  letter-spacing: -0.015em;
}
.teach-empty-lede { color: var(--fg-mute); font-size: 15px; max-width: 50ch; margin: 0 auto; }

.exchange { margin-bottom: 32px; padding-bottom: 28px; border-bottom: 1px dashed var(--line); }
.exchange:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.exchange-q { margin-bottom: 18px; }
.exchange-q-label, .exchange-a-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--fg-dim);
  display: block;
  margin-bottom: 6px;
}
.exchange-a-label { color: var(--accent-warm); }
.exchange-a-body { display: flex; flex-direction: column; gap: 18px; }

.teach-section {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  align-items: baseline;
}
.teach-section-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.teach-section.kind-answer .teach-section-label { color: var(--conf-confirmed); }
.teach-section.kind-flags .teach-section-label { color: var(--accent-warm); }
.teach-section-text { color: var(--paper-dim); font-size: 15px; line-height: 1.65; }
.teach-section.kind-answer .teach-section-text {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--paper);
  font-style: italic;
}
.teach-section.kind-answer strong { font-style: normal !important; font-family: var(--mono) !important; font-size: 22px; color: var(--accent) !important; }

.teach-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--accent);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: blink 0.9s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.teach-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: var(--ink-2);
}
.teach-input-prompt { color: var(--accent-warm); font-size: 18px; font-weight: 600; }
.teach-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--fg);
  font: inherit;
  font-family: var(--mono);
  font-size: 14px;
  outline: none;
}
.teach-input::placeholder { color: var(--fg-dim); font-style: italic; font-family: var(--serif); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .app-shell { padding: 18px 18px 60px; }
  .masthead { grid-template-columns: 1fr; gap: 8px; }
  .masthead-left, .masthead-right { align-items: flex-start; }
  .masthead-title { font-size: 30px; text-align: left; }
  .masthead-sub { text-align: left; }
  .dash-grid { grid-template-columns: 1fr; }
  .dash-hero, .teach-cta, .dash-stats, .dash-recent, .dash-wotm {
    grid-column: 1 !important; grid-row: auto !important;
  }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dict-row-main {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "word conf"
      "meaning meaning"
      "pron pron"
      "cat caret";
  }
  .dict-row-word { grid-area: word; }
  .dict-row-pron { grid-area: pron; }
  .dict-row-cat { grid-area: cat; }
  .dict-row-meaning { grid-area: meaning; }
  .dict-row-caret { grid-area: caret; }
  .teach-shell { grid-template-columns: 1fr; }
  .teach-side { border-right: none; border-bottom: 1px solid var(--line); padding-right: 0; padding-bottom: 24px; }
  .teach-section { grid-template-columns: 1fr; gap: 4px; }
  .ex-item { grid-template-columns: 1fr; gap: 6px; }
  .tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { padding: 12px 12px; font-size: 15px; gap: 6px; }
}

/* ---------- Bot Central ---------- */
.bc-shell { max-width: 800px; }
.bc-status {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 0; border-bottom: 1px solid var(--line); margin-bottom: 20px;
}
.bc-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.bc-state { font-size: 11px; letter-spacing: 0.1em; color: var(--paper); }
.bc-ts { font-size: 12px; color: var(--fg-mute); margin-left: auto; }
.bc-empty { text-align: center; padding: 60px 0; }
.bc-timeline { display: flex; flex-direction: column; gap: 8px; }
.bc-card {
  background: var(--ink-1); border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
}
.bc-card.minor { opacity: 0.6; }
.bc-card.request { border-color: var(--conf-medium); }
.bc-card.request .bc-badge { background: var(--conf-medium); }
.bc-card-head {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 12px 16px; background: none; border: none; color: var(--fg);
  cursor: pointer; text-align: left; font-size: 14px;
}
.bc-card-head:hover { background: rgba(255,255,255,0.02); }
.bc-card-chevron { font-size: 10px; color: var(--fg-dim); width: 14px; }
.bc-card-title { flex: 1; }
.bc-card-time { font-size: 11px; color: var(--fg-mute); }
.bc-badge {
  font-size: 11px; padding: 1px 6px; border-radius: 3px;
  background: var(--conf-confirmed); color: var(--ink-0);
  font-family: var(--mono); letter-spacing: 0.05em;
}
.bc-card.minor .bc-badge { background: var(--fg-dim); }
.bc-card-body { padding: 0 16px 16px; }
.bc-section { margin-top: 12px; }
.bc-section-label {
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg-dim); margin-bottom: 6px;
}
.bc-messages { display: flex; flex-direction: column; gap: 3px; }
.bc-msg { display: flex; gap: 8px; font-size: 13px; line-height: 1.5; }
.bc-msg-tag {
  flex-shrink: 0; font-size: 10px; padding: 1px 5px; border-radius: 2px;
  background: var(--ink-0); color: var(--fg-mute); align-self: baseline;
}
.bc-msg-tag.jorn { background: var(--accent-warm); color: var(--ink-0); font-weight: 600; }
.bc-msg-text { color: var(--fg); word-break: break-word; }
.bc-quote {
  margin: 6px 0 0; padding: 10px 14px; border-left: 3px solid var(--accent-warm);
  background: rgba(255,255,255,0.02); font-style: italic; font-size: 13px;
  color: var(--paper-mute, var(--fg)); line-height: 1.6;
}
.bc-stats { display: flex; flex-wrap: wrap; gap: 6px; }
.bc-chip {
  font-size: 11px; padding: 3px 8px; border-radius: 3px;
  background: var(--ink-0); border: 1px solid var(--line); color: var(--fg-mute);
}
.bc-entries { display: flex; flex-direction: column; gap: 6px; }
.bc-entries .bc-chip { display: inline-block; width: fit-content; }
.bc-controls {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-bottom: 8px;
}
.bc-controls-row {
  background: var(--ink-1); border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px;
}
.bc-ctrl-grid { display: flex; flex-direction: column; gap: 10px; }
.bc-ctrl-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.bc-ctrl-item > span:first-child { flex: 1; }
.bc-ctrl-label { font-size: 12px; color: var(--fg-mute); display: block; }
.bc-ctrl-help { font-size: 10px; color: var(--fg-dim); display: block; margin-top: 2px; }
.bc-countdown {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 10px; background: var(--ink-0); border: 1px solid var(--line); border-radius: 4px;
}
.bc-countdown-label { font-size: 10px; color: var(--fg-dim); letter-spacing: 0.05em; }
.bc-countdown-val { font-size: 13px; color: var(--conf-confirmed); }
