/* ── The lattice profile — the wind in the lattice ─────────────── */

.lat-face-scroll { overflow-x: auto; padding: .3rem 0; }
.lat-face { display: flex; flex-direction: column; gap: 3px; width: max-content; }
.lat-row { display: flex; gap: 3px; align-items: center; }
.lat-rowlab {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: .62rem; opacity: .55; width: 1.6rem; text-align: right;
  padding-right: .35rem; flex: none;
}
.lat-cell {
  position: relative; border: none; background: none; padding: 0;
  cursor: pointer; border-radius: 4px; flex: none;
}
.lat-cell-n {
  display: flex; align-items: center; justify-content: center;
  width: 2.3rem; height: 1.9rem; border-radius: 4px;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: .72rem; font-variant-numeric: tabular-nums;
}
.lat-cell:focus-visible .lat-cell-n { outline: 2px solid currentColor; }
.lat-cell.lat-post .lat-cell-n::after {
  content: ""; position: absolute; left: 4px; right: 4px; bottom: 2px;
  height: 2px; background: currentColor; opacity: .4; border-radius: 1px;
}
.lat-cell.lat-door::before {
  content: "◆"; position: absolute; top: -0.85rem; left: 0; right: 0;
  text-align: center; font-size: .55rem; opacity: .8;
}
.lat-cell.lat-selected .lat-cell-n {
  outline: 2px solid currentColor; outline-offset: 1px;
}
.lat-legend {
  display: flex; align-items: center; gap: .5rem; margin-top: .9rem;
  font-size: .74rem; opacity: .75; flex-wrap: wrap;
}
.lat-swatch { width: 1.2rem; height: .7rem; border-radius: 3px; display: inline-block; }
.lat-legend-sep { opacity: .5; }
.lat-door-glyph { }

.lat-hint { font-size: .82rem; opacity: .6; padding: .4rem 0; }

.lat-fiber-head {
  display: flex; gap: .9rem; flex-wrap: wrap; align-items: baseline;
  font-family: var(--mono, ui-monospace, monospace); font-size: .74rem;
  opacity: .8; margin-bottom: .8rem;
}
.lat-fiber-role { text-transform: uppercase; letter-spacing: .08em; }
.lat-bound-note { opacity: .75; }

.lat-verse { margin-bottom: 1.1rem; }
.lat-verse-ref {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: .68rem; opacity: .55; margin-bottom: .35rem;
}
.lat-verse-tokens {
  display: flex; flex-wrap: wrap; gap: .45rem .55rem; direction: rtl;
}
.lat-tok { display: inline-flex; flex-direction: column; align-items: center; }
.lat-tok-hb { font-size: 1.28rem; line-height: 1.35; }
.lat-tok-gl {
  direction: ltr; font-size: .62rem; opacity: .7; max-width: 7.5rem;
  text-align: center; line-height: 1.25;
}
.lat-tok.none .lat-tok-hb, .lat-tok.none .lat-tok-gl { opacity: .3; }
.lat-tok.partial .lat-out { opacity: .3; }
.lat-tok.partial .lat-in { opacity: 1; }
.lat-bound { opacity: .85; font-size: .8em; vertical-align: .25em; }

.lat-open-chip {
  font: inherit; font-size: .8rem; cursor: pointer;
  padding: .35rem .7rem; border-radius: 5px;
  border: 1px solid currentColor; background: none; color: inherit;
  opacity: .8;
}
.lat-open-chip:hover { opacity: 1; }
