/* SMAU FILE
 * Path: css/smau-inspector.css
 * Owns: the CANON INSPECTOR overlay (js/creator/creator.inspector.js) — global
 * search, the canon roster, one object's references, the relationship report,
 * the continuity audit and the promise ledger. Creator sessions only.
 * OS chrome: above app views and above the dice sheet, below calls.
 */

#smau-inspector {
  position: absolute;
  inset: 0;
  z-index: 295;
  display: none;
}
#smau-inspector[data-state="open"] { display: block; }

#smau-inspector .insp-scrim {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 12, 0.55);
}

#smau-inspector .insp-panel {
  position: absolute;
  left: 8px; right: 8px; top: 42px; bottom: 10px;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: rgba(20, 24, 34, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
  color: #fff;
  overflow: hidden;
  animation: inspUp 200ms ease-out;
}
@keyframes inspUp {
  from { transform: translateY(18px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  #smau-inspector .insp-panel { animation: none; }
}

#smau-inspector .insp-head {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 12px 8px;
}
#smau-inspector .insp-title { flex: 1; font-size: 15px; font-weight: 800; }
#smau-inspector .insp-close {
  width: 30px; height: 30px; border: none; border-radius: 10px; cursor: pointer;
  background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.8);
}

#smau-inspector .insp-tabs {
  display: flex; gap: 4px; padding: 0 10px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
#smau-inspector .insp-tab {
  flex: 1;
  padding: 7px 4px; border-radius: 10px; cursor: pointer;
  font-size: 11.5px; font-weight: 700;
  background: rgba(255, 255, 255, 0.05); color: rgba(255, 255, 255, 0.72);
  border: 1px solid transparent;
}
#smau-inspector .insp-tab.on {
  color: #fff; border-color: rgba(126, 224, 163, 0.5);
  background: rgba(126, 224, 163, 0.14);
}

#smau-inspector .insp-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px 12px 6px;
  -webkit-overflow-scrolling: touch;
}

#smau-inspector .insp-note {
  min-height: 16px;
  padding: 4px 14px 10px;
  font-size: 11.5px;
  color: #7ee0a3;
}

#smau-inspector .insp-input {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 11px;
  border-radius: 11px;
  font-size: 13px;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
#smau-inspector .insp-search { margin-bottom: 6px; }

#smau-inspector .insp-sub { font-size: 11.5px; opacity: 0.6; margin: 2px 0 8px; }
#smau-inspector .insp-hdr {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  opacity: 0.5; margin: 12px 0 6px; font-weight: 800;
}
#smau-inspector .insp-empty {
  font-size: 12.5px; opacity: 0.6; line-height: 1.5; padding: 14px 2px;
}

#smau-inspector .insp-row {
  display: flex; align-items: center; gap: 8px;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  padding: 9px 10px;
  margin-bottom: 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
}
#smau-inspector .insp-row.as-btn { cursor: pointer; }
#smau-inspector .insp-row.danger { border-color: rgba(255, 120, 120, 0.4); }
#smau-inspector .insp-row-main { flex: 1; min-width: 0; }
#smau-inspector .insp-row-title { font-size: 13px; font-weight: 700; }
#smau-inspector .insp-row-sub { font-size: 11px; opacity: 0.55; margin-top: 2px; }
#smau-inspector .insp-row-snip {
  font-size: 11.5px; opacity: 0.78; margin-top: 3px; line-height: 1.4;
}
#smau-inspector .insp-tag {
  font-size: 9.5px; padding: 1px 5px; border-radius: 999px; vertical-align: middle;
  background: rgba(255, 255, 255, 0.12); opacity: 0.8;
}

#smau-inspector .insp-ref {
  display: flex; align-items: flex-start; gap: 6px;
  padding: 8px 8px;
  margin-bottom: 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
#smau-inspector .insp-ref.detached { opacity: 0.5; border-style: dashed; }
#smau-inspector .insp-ref-main {
  flex: 1; min-width: 0; text-align: left; cursor: pointer;
  background: none; border: none; color: #fff; padding: 0;
}
#smau-inspector .insp-pick { padding-top: 2px; }

#smau-inspector .insp-entity { padding: 4px 2px 10px; }
#smau-inspector .insp-entity-name { font-size: 17px; font-weight: 800; }
#smau-inspector .insp-back {
  background: none; border: none; cursor: pointer; padding: 0 0 8px;
  color: rgba(255, 255, 255, 0.7); font-size: 12px;
}

#smau-inspector .insp-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
#smau-inspector .insp-btn {
  padding: 8px 12px; border-radius: 11px; cursor: pointer; font-size: 12px; font-weight: 700;
  background: rgba(255, 255, 255, 0.07); color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
#smau-inspector .insp-btn.primary { background: rgba(126, 224, 163, 0.18); border-color: rgba(126, 224, 163, 0.5); }
#smau-inspector .insp-btn.danger { background: rgba(255, 120, 120, 0.14); border-color: rgba(255, 120, 120, 0.4); }
#smau-inspector .insp-mini {
  padding: 5px 9px; border-radius: 9px; cursor: pointer; font-size: 11px; font-weight: 700;
  background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  white-space: nowrap;
}

#smau-inspector .insp-issue {
  padding: 9px 10px; margin-bottom: 7px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  border-left: 3px solid rgba(255, 255, 255, 0.2);
}
#smau-inspector .insp-issue.sev-block { border-left-color: #ff7878; }
#smau-inspector .insp-issue.sev-warn { border-left-color: #ffc46b; }
#smau-inspector .insp-issue.sev-info { border-left-color: #7fb6ff; }
#smau-inspector .insp-fix { font-size: 11.5px; opacity: 0.7; margin-top: 4px; font-style: italic; }

#smau-inspector .insp-ask {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(4, 6, 12, 0.6);
  z-index: 2;
}
#smau-inspector .insp-ask-card {
  width: min(320px, 88%);
  padding: 14px;
  border-radius: 16px;
  background: rgba(26, 30, 42, 0.99);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}
#smau-inspector .insp-ask-card .insp-input { margin-top: 8px; }
