.tlm-workbench {
  background: #121621;
  border: 1px solid #2b3347;
  border-radius: 14px;
  padding: 20px;
  color: #f3f1ec;
}

.tlm-tabbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid #252d40;
  padding-bottom: 14px;
}

.tlm-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 9px;
  border: 1px solid #2d3548;
  background: #171c29;
  color: #b7bfce;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.tlm-tab:hover {
  border-color: #e5b85c;
  color: #f3f1ec;
}

.tlm-tab.is-active {
  background: rgba(229, 184, 92, 0.14);
  border-color: #e5b85c;
  color: #f3f1ec;
}

.tlm-tab-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  color: #e5b85c;
}

.tlm-exposure-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.tlm-eyebrow {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: #e5b85c;
  margin-bottom: 4px;
}

.tlm-panel-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  margin: 0;
  line-height: 1.2;
  color: #f3f1ec;
}

.tlm-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tlm-chip,
.tlm-link-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #323b52;
  background: #181e2c;
  color: #d6dce8;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.tlm-chip:hover,
.tlm-chip.is-active,
.tlm-link-pill:hover {
  border-color: #e5b85c;
  background: rgba(229, 184, 92, 0.16);
  color: #f3f1ec;
}

.tlm-dual-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 20px;
  align-items: start;
}

.tlm-plate-card {
  background: #0d1018;
  border: 1px solid #283044;
  border-radius: 12px;
  padding: 14px;
}

.tlm-plate-svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  border: 1px solid #242b3d;
}

.tlm-slider-row {
  margin-top: 14px;
}

.tlm-slider-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.83rem;
  color: #b7bfce;
  margin-bottom: 8px;
}

.tlm-slider-label strong {
  color: #e5b85c;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
}

.tlm-slider-row input[type="range"] {
  width: 100%;
  accent-color: #e5b85c;
  cursor: pointer;
}

.tlm-scale-marks {
  display: flex;
  justify-content: space-between;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  color: #8b95a9;
  margin-top: 4px;
}

.tlm-etym-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.tlm-etym-box {
  background: #171c29;
  border: 1px solid #283146;
  border-radius: 10px;
  padding: 14px;
}

.tlm-mono-tag {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 5px;
  background: #0e121b;
  border: 1px solid #2d364c;
  color: #aab3c6;
}

.tlm-mono-tag.is-amber {
  color: #e5b85c;
  border-color: rgba(229, 184, 92, 0.45);
}

.tlm-etym-box h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.4rem;
  margin: 8px 0 6px;
  color: #f3f1ec;
}

.tlm-etym-box h3 span {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 400;
  color: #98a2b6;
}

.tlm-etym-box p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.6;
  color: #c7cedc;
}

.tlm-live-verdict {
  background: #0e121b;
  border: 1px solid rgba(229, 184, 92, 0.4);
  border-radius: 10px;
  padding: 15px 16px;
}

.tlm-verdict-kicker {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  color: #e5b85c;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.tlm-live-verdict h4 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  color: #f3f1ec;
}

.tlm-live-verdict p {
  margin: 0;
  font-size: 0.87rem;
  line-height: 1.62;
  color: #c7cedc;
}

/* TAB 2: GLYPHS */
.tlm-glyph-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.tlm-glyph-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 6px;
  border-radius: 10px;
  border: 1px solid #2b3347;
  background: #171c29;
  color: #c5ccd9;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 600;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.tlm-glyph-btn:hover,
.tlm-glyph-btn.is-active {
  border-color: #e5b85c;
  background: rgba(229, 184, 92, 0.13);
  color: #f3f1ec;
  transform: translateY(-1px);
}

.tlm-glyph-btn svg {
  width: 36px;
  height: 36px;
}

.tlm-glyph-detail {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  background: #0e121b;
  border: 1px solid #283146;
  border-radius: 12px;
  padding: 18px;
}

.tlm-glyph-art {
  width: 132px;
  height: 132px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 184, 92, 0.14), #141926 72%);
  border: 1px solid rgba(229, 184, 92, 0.45);
}

.tlm-glyph-art svg {
  width: 86px;
  height: 86px;
}

.tlm-glyph-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.tlm-glyph-copy h3,
.tlm-node-card h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem;
  margin: 0 0 6px;
  color: #f3f1ec;
}

.tlm-glyph-poem {
  font-style: italic;
  color: #e5b85c;
  margin: 0 0 8px;
  font-size: 0.92rem;
}

.tlm-glyph-copy p,
.tlm-node-card p {
  margin: 0 0 10px;
  font-size: 0.88rem;
  line-height: 1.62;
  color: #c7cedc;
}

.tlm-glyph-clue {
  padding: 10px 12px;
  border-radius: 8px;
  background: #161b28;
  border: 1px solid #2b344a;
  font-size: 0.84rem;
  color: #d6dce8;
}

.tlm-glyph-clue strong {
  color: #e5b85c;
}

/* TAB 3: TREE OF LIFE */
.tlm-tree-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.tlm-tree-canvas {
  background: #0d1018;
  border: 1px solid #283146;
  border-radius: 12px;
  padding: 12px;
}

.tlm-tree-svg {
  width: 100%;
  height: auto;
  display: block;
}

.tlm-sef-node {
  cursor: pointer;
}

.tlm-node-card,
.tlm-riddles-box {
  background: #0e121b;
  border: 1px solid #283146;
  border-radius: 12px;
  padding: 16px;
}

.tlm-riddles-box {
  margin-top: 14px;
}

.tlm-riddles-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  font-size: 0.86rem;
}

.tlm-riddles-head span {
  color: #939db2;
  font-size: 0.78rem;
}

.tlm-digit-pills {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}

.tlm-digit-btn {
  min-height: 38px;
  border-radius: 7px;
  border: 1px solid #2d364c;
  background: #171c29;
  color: #d6dce8;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
}

.tlm-digit-btn.is-active,
.tlm-digit-btn:hover {
  border-color: #e5b85c;
  background: rgba(229, 184, 92, 0.18);
  color: #e5b85c;
}

.tlm-digit-desc {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: #c7cedc;
}

@media (max-width: 860px) {
  .tlm-tabbar {
    grid-template-columns: 1fr;
  }
  .tlm-dual-grid,
  .tlm-tree-layout,
  .tlm-glyph-detail {
    grid-template-columns: 1fr;
  }
  .tlm-etym-pair {
    grid-template-columns: 1fr;
  }
  .tlm-glyph-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .tlm-digit-pills {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
