/* ============================================================
   Larry / Agent visual identity
   ============================================================ */

.avatar {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
}
.avatar svg { display: block; border-radius: var(--r-md); }
.avatar.sz-24 svg { width: 24px; height: 24px; border-radius: 5px; }
.avatar.sz-32 svg { width: 32px; height: 32px; border-radius: 6px; }
.avatar.sz-48 svg { width: 48px; height: 48px; border-radius: 9px; }
.avatar.sz-96 svg { width: 96px; height: 96px; border-radius: 16px; }

.avatar .status {
  position: absolute; right: -2px; bottom: -2px;
  width: 10px; height: 10px; border-radius: 50%;
  box-shadow: 0 0 0 2px var(--bg-canvas);
}
.avatar.sz-24 .status { width: 8px; height: 8px; box-shadow: 0 0 0 1.5px var(--bg-canvas); }
.avatar.sz-48 .status { width: 12px; height: 12px; }
.avatar.sz-96 .status { width: 18px; height: 18px; box-shadow: 0 0 0 3px var(--bg-canvas); }

.status.online  { background: var(--agent-online); }
.status.think   { background: var(--agent-think); animation: agent-pulse 1.6s var(--ease-std) infinite; }
.status.hitl    { background: var(--agent-hitl); }
.status.offline { background: var(--agent-offline); opacity: 0.6; }
.status.error   { background: var(--agent-error); }
@keyframes agent-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.35); opacity: 0.55; }
}

/* ----- Nameplate ----- */
.nm { display: inline-flex; align-items: center; gap: var(--s-2); }
.nm-compact .nm-name { font-size: var(--t-md); font-weight: 500; }

.nm-standard .nm-body { display: inline-flex; flex-direction: column; gap: 1px; }
.nm-standard .nm-line b { font-weight: 600; font-size: var(--t-md); }
.nm-standard .nm-role  { color: var(--text-tertiary); font-size: var(--t-sm); margin-left: 6px; }
.nm-standard .nm-sub   { color: var(--text-tertiary); font-size: var(--t-sm); }

.nm-expanded {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: var(--s-4);
  align-items: start;
}
.nm-expanded .nm-head { display: flex; align-items: center; gap: var(--s-2); }
.nm-expanded .nm-namebig {
  font-size: var(--t-xl); font-weight: 650; letter-spacing: -0.015em;
}
.nm-expanded .nm-role { color: var(--text-tertiary); font-size: var(--t-md); margin-top: 2px; }
.nm-expanded .nm-desc { color: var(--text-secondary); font-size: var(--t-md); margin: 8px 0 12px; }
.nm-expanded .nm-foot {
  display: flex; align-items: center; justify-content: space-between;
}
.nm-expanded .nm-price {
  font-family: var(--font-num); font-size: var(--t-md); color: var(--text-secondary);
}
