/* ==========================================================================
   Pixel Table Lamp — table.css
   Loaded on top of pixel.css. Only what the table lamp adds: the designer
   tabs (shared, but they live here so the pendant sheet stays untouched),
   the stability readout, and the per-part breakdown.
   ========================================================================== */

/* --- stability, the fact you cannot see by looking --------------------- */

.tl-tipchip {
  position: absolute;
  inset-inline-start: .75rem;
  bottom: 2.6rem;
  z-index: 3;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(31, 122, 77, .35);
  color: var(--ok);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .03em;
  padding: .22rem .55rem;
  border-radius: 999px;
}
.tl-tipchip.warn { color: var(--warn); border-color: rgba(168, 98, 10, .4); }
.tl-tipchip.bad  { color: var(--bad);  border-color: rgba(179, 38, 30, .4); }
#tl-canvas.lit ~ .tl-tipchip {
  background: rgba(23, 18, 16, .72);
  border-color: rgba(255, 190, 110, .4);
}

/* --- two parts, two lines ----------------------------------------------- */

.tl-parts {
  display: grid;
  gap: .4rem;
  margin-top: .85rem;
}
.tl-part {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  padding: .45rem .65rem;
  background: rgba(5, 36, 94, .04);
  border-inline-start: 3px solid var(--ember);
  border-radius: 2px;
}
.tl-part b {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy);
}
.tl-part span { font-size: .72rem; color: var(--muted); text-align: end; }

/* --- a view setting, deliberately not shaped like a design control ------- */

.tl-viewtoggle {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin: .2rem 0 .35rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  user-select: none;
}
.tl-viewtoggle input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--ember);
  cursor: pointer;
  flex: none;
}

/* --- how much of the floor the hole takes -------------------------------
   A share, not a measurement: the slider above already gives millimetres,
   and what this answers is the question millimetres cannot — whether the
   opening is a hole in a floor or a floor around a hole.                   */

.tl-holebar {
  position: relative;
  height: 5px;
  margin: .5rem 0 .1rem;
  border-radius: 999px;
  background: var(--line-2);
  overflow: hidden;
}
.tl-holebar span {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--fill, 0%);
  border-radius: 999px;
  background: var(--ember);
  transition: width .12s linear;
}
