/* cell-explorer — scoped styles */
.label-3d.ce-label { border-inline-start: 3px solid var(--c, #fff); transition: opacity .25s, background .2s; }
.label-3d.ce-label.dim { opacity: .28; }
.label-3d.ce-label.sel { background: rgba(255, 255, 255, .95); color: #141a2e; opacity: 1; box-shadow: 0 0 0 2px var(--c); }
.ce-tip {
  position: absolute; top: 0; left: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .15s;
  padding: 3px 9px; border-radius: 7px; font-size: 12.5px; font-weight: 600; white-space: nowrap;
  background: rgba(255, 255, 255, .94); color: #141a2e; box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}
.ce-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ce-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 10px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface);
  font-size: 12.5px; font-weight: 600; color: var(--ink-2); cursor: pointer;
}
.ce-chip i { width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.ce-chip:hover { background: var(--surface-2); }
.ce-chip[aria-pressed="true"] { background: var(--subject-soft); border-color: var(--subject); color: var(--ink); }
.ce-card h3 { margin: 0 0 6px; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.ce-card h3 i { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.ce-card p { margin: 0 0 8px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.ce-card .ce-kind { font-weight: 600; color: var(--subject); margin-top: -4px; }
.ce-card .ce-meta { font-size: 13px; }
.ce-card .ce-meta b { color: var(--ink); }
.ce-card .ce-hint { font-style: italic; color: var(--muted); margin: 0; }
.ce-presence { display: flex; flex-wrap: wrap; gap: 6px; }
.ce-pres { font-size: 12.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.ce-pres.yes { background: #dcfce7; color: #166534; }
.ce-pres.no { background: var(--surface-2); color: var(--muted); }
.ce-compare { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
.ce-compare th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; padding: 4px; text-align: center; }
.ce-compare th:first-child, .ce-compare td:first-child { text-align: start; }
.ce-compare td { padding: 3px 4px; border-top: 1px solid var(--line); color: var(--ink-2); }
.ce-compare td:not(:first-child) { text-align: center; width: 64px; }
.ce-guess {
  width: 40px; height: 30px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface-2);
  font-weight: 700; font-size: 15px; cursor: pointer; color: var(--ink);
}
.ce-guess:hover { border-color: var(--subject); }
.ce-guess.ok { background: #dcfce7; border-color: #16a34a; color: #166534; }
.ce-guess.bad { background: #fee2e2; border-color: #dc2626; color: #991b1b; }
.ce-guess.blank { border-style: dashed; }

/* let long hints wrap on narrow screens */
.sim-stage .stage-hint { white-space: normal; width: max-content; max-width: calc(100% - 24px); text-align: center; }
