/* styles for things.js: the legend shown on a cut face, and the card note */
.thLegend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-panel, 6px); padding: 5px 8px; box-shadow: var(--lift); font-size: 12.5px; max-width: 560px }
.thLegend .thLH { color: var(--muted); margin-right: 2px }
.thLegend .thLg { border: 0; background: none; padding: 3px 6px; cursor: pointer; color: var(--ink-2, var(--ink)); font-size: 12.5px; display: inline-flex; align-items: center; gap: 6px }
.thLegend .thLg:hover { background: var(--paper-2, #eee); color: var(--ink) }
.thLegend .thLg i { width: 11px; height: 11px; border-radius: 2px; border: 1px solid rgba(23,32,42,.35); display: inline-block }
.thLegend .thLN { flex-basis: 100%; color: var(--muted); font-size: 12px }
.thNote { margin: 0 0 10px; font-size: 12.5px }
@media (max-width: 860px) {
  /* phone: the layer buttons get a whole row of their own (scrolling sideways when there are many) and the legend sits under it in one scrolling line */
  #controls .thModes { flex: 1 1 100%; max-width: 100%; overflow-x: auto; scrollbar-width: none }
  #controls .thModes::-webkit-scrollbar { display: none }
  #controls .thModes button { flex: none }
  .thLegend { flex: 1 1 100%; max-width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none }
  .thLegend::-webkit-scrollbar { display: none }
  .thLegend .thLH, .thLegend .thLg { flex: none; white-space: nowrap }
  .thLegend .thLN { display: none }
}

#sceneSecs .thLegend .thLg { padding: 3px 8px 3px 0 }
#sceneSecs .thLegend .thLN { display: block; margin-top: 4px }
