/* EI-core — shared Entity Interface primitives for ICore sovereign surfaces.
   Self-hosted, zero-CDN, vertical-only (no tabs), Brave/Shields-ON safe.
   Designed to be reused by use / uix / lifepioneer / lifeagent. */

:root {
  --ei-bg: #0a0a0f;
  --ei-bg2: #12121a;
  --ei-bg3: #1a1a28;
  --ei-fg: #e8e8f0;
  --ei-dim: #6b6b80;
  --ei-accent: #00bfa5;
  --ei-accent2: #00e6c3;
  --ei-blue: #4f8cff;
  --ei-ok: #3ddc84;
  --ei-bad: #ff5f6d;
  --ei-border: #1e1e30;
  --ei-radius: 12px;
}

/* ── Proof badge (self-attesting UI) ── */
.ei-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  font-family: system-ui, sans-serif;
  border: 1px solid var(--ei-border);
  background: var(--ei-bg3);
  color: var(--ei-dim);
  white-space: nowrap;
}
.ei-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ei-dim);
  flex-shrink: 0;
}
.ei-badge.ok { border-color: rgba(61,220,132,.5); color: var(--ei-ok); }
.ei-badge.ok .dot { background: var(--ei-ok); box-shadow: 0 0 8px rgba(61,220,132,.6); }
.ei-badge.bad { border-color: rgba(255,95,109,.5); color: var(--ei-bad); }
.ei-badge.bad .dot { background: var(--ei-bad); }
.ei-badge.pending { border-color: rgba(79,140,255,.5); color: var(--ei-blue); }
.ei-badge.pending .dot { background: var(--ei-blue); animation: eiPulse 1.4s infinite; }
@keyframes eiPulse { 0%,100% { opacity: 1 } 50% { opacity: .3 } }

/* ── Vertical mesh view (sovereign-agent node list) ── */
.ei-mesh {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 0;
}
.ei-mesh-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.ei-mesh-title {
  font-size: 13px; font-weight: 700; color: var(--ei-blue);
  letter-spacing: .3px;
}
.ei-mesh-meta { font-size: 11px; color: var(--ei-dim); }
.ei-node {
  border: 1px solid var(--ei-border);
  border-radius: var(--ei-radius);
  background: linear-gradient(180deg, var(--ei-bg3), var(--ei-bg2));
  padding: 12px 14px;
  animation: eiFade .35s ease-out;
}
.ei-node.self { border-color: rgba(0,191,165,.5); box-shadow: 0 0 14px rgba(0,191,165,.18); }
@keyframes eiFade { from { opacity: 0; transform: translateY(8px) } to { opacity: 1; transform: none } }
.ei-node-top {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 6px;
}
.ei-node-name { font-size: 14px; font-weight: 600; color: var(--ei-fg); }
.ei-node-domain { font-size: 11px; color: var(--ei-dim); font-family: ui-monospace, monospace; }
.ei-node-role {
  font-size: 10px; text-transform: uppercase; letter-spacing: .5px;
  color: var(--ei-accent2); border: 1px solid rgba(0,230,195,.4);
  padding: 1px 7px; border-radius: 8px;
}
.ei-node-uses { font-size: 11px; color: var(--ei-dim); margin: 4px 0; }
.ei-node-uses b { color: var(--ei-fg); font-weight: 600; }
.ei-node-intents { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.ei-intent {
  font-size: 10px; color: #9fc0ff;
  background: rgba(79,140,255,.1);
  border: 1px solid rgba(79,140,255,.3);
  padding: 2px 8px; border-radius: 8px;
}
.ei-node-proof { margin-top: 8px; font-size: 10px; color: var(--ei-dim); font-family: ui-monospace, monospace; }
.ei-node-proof.notverified { color: var(--ei-bad); }
.ei-node-conformance { font-size: 10px; color: var(--ei-dim); margin-top: 3px; }

/* ── Verification console (reusable, self-attesting) ── */
.ei-verify {
  border: 1px solid rgba(61,220,132,.4);
  border-radius: var(--ei-radius);
  background: linear-gradient(180deg,#0b1410,#0a0a0f);
  padding: 12px 14px; font-size: 12px; line-height: 1.55;
}
.ei-verify .ev-head { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 6px; }
.ei-verify .ev-row { color: var(--ei-dim); }
.ei-verify .ev-row b { color: var(--ei-fg); }
.ei-verify .ev-canon { margin-top: 6px; word-break: break-all; color: #2a3a40; font-family: ui-monospace, monospace; font-size: 10px; max-height: 54px; overflow: hidden; }

/* Vertical-only: never horizontal tabs. Scroll is vertical. */
.ei-scroll-y { overflow-y: auto; scrollbar-width: thin; }
