/* Lair check panel + flagged spaces */
.lair-check { margin: 1.25rem 0 0; max-width: 46rem; background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; }
.lair-check > summary { cursor: pointer; padding: .55rem .75rem; font-weight: 700; display: flex; flex-wrap: wrap; gap: .25rem .6rem; align-items: baseline; }
.lc-summary { font-size: .78rem; font-weight: 500; color: var(--muted); }
.lc-summary[data-state="ok"] { color: #7bd88f; }
.lc-summary[data-state="error"] { color: #ff9ca1; }
.lc-list { list-style: none; margin: 0; padding: 0 .75rem .25rem; display: grid; gap: .3rem; font-size: .82rem; }
.lc-head { display: grid; grid-template-columns: 1.1rem auto 1fr; gap: .4rem; align-items: baseline; }
.lc-icon { text-align: center; }
.lc-detail { color: var(--muted); text-align: right; overflow-wrap: anywhere; }
.lc-list li[data-status="ok"] .lc-icon { color: #7bd88f; }
.lc-list li[data-status="todo"] .lc-icon { color: var(--muted); }
.lc-list li[data-status="error"] .lc-icon, .lc-list li[data-status="error"] .lc-label { color: #ff9ca1; }
.lc-msg { margin: .2rem 0 0 1.5rem; padding-left: .5rem; border-left: 2px solid #b8323a; color: var(--text); font-size: .78rem; }
.lc-more { color: var(--muted); border-left-color: var(--line); }
.lc-note { margin: 0; padding: .3rem .75rem .6rem; color: var(--muted); font-size: .72rem; }

.cell.flag { outline: 2px solid #e5484d; outline-offset: -2px; }
.cell.flag::after {
  content: '!';
  position: absolute; top: 2px; right: 3px;
  width: 1.1em; height: 1.1em; display: grid; place-items: center;
  border-radius: 50%; background: #e5484d; color: #fff; font-size: calc(var(--cell) * .2); font-weight: 800; line-height: 1;
  pointer-events: none;
}
@media print { .lair-check, .cell.flag::after { display: none !important; } .cell.flag { outline: none; } }
