/* CogmemAi Identity: editor + playground. Sits on developer.css (hfb-dev-* tokens). */
.hfb-id-app { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
.hfb-id-side { background: #16162a; border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; padding: 16px; position: sticky; top: 90px; }
.hfb-id-side__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.hfb-id-side__head h3 { margin: 0; font-size: 15px; color: #fff; }
.hfb-id-btn-sm { padding: 6px 12px !important; font-size: 13px !important; }
.hfb-id-list { list-style: none; margin: 0; padding: 0; }
.hfb-id-item { padding: 10px 12px; border-radius: 10px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; border: 1px solid transparent; }
.hfb-id-item:hover { background: rgba(255,255,255,0.04); }
.hfb-id-item.is-active { background: rgba(6,182,212,0.12); border-color: rgba(6,182,212,0.35); }
.hfb-id-item__name { color: #fff; font-weight: 600; font-size: 14px; }
.hfb-id-item__meta { color: rgba(255,255,255,0.5); font-size: 12px; }
.hfb-id-empty { color: rgba(255,255,255,0.5); font-size: 13px; padding: 8px 4px; }
.hfb-id-turns { color: rgba(255,255,255,0.45); font-size: 12px; margin: 12px 4px 0; }

.hfb-id-main { min-width: 0; }
.hfb-id-editor { background: #16162a; border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; padding: 20px; }
.hfb-id-row { margin-bottom: 14px; }
.hfb-id-row label { display: block; color: rgba(255,255,255,0.7); font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.hfb-id-row input[type="text"], .hfb-id-row textarea { width: 100%; background: #0f0f23; color: #fff; border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; padding: 10px 12px; font-size: 16px; line-height: 1.45; font-family: inherit; }
.hfb-id-row textarea { resize: vertical; }
.hfb-id-row input:focus, .hfb-id-row textarea:focus { outline: none; border-color: #06b6d4; box-shadow: 0 0 0 3px rgba(6,182,212,0.18); }
.hfb-id-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hfb-id-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.hfb-id-pick { display: inline-flex; align-items: center; gap: 8px; background: #0f0f23; border: 1px solid rgba(255,255,255,0.12); border-radius: 999px; padding: 6px 12px 6px 8px; color: #fff; font-size: 13px; cursor: pointer; }
.hfb-id-pick em { color: rgba(255,255,255,0.5); font-style: normal; margin-left: 4px; }
.hfb-id-pick input { accent-color: #06b6d4; }
.hfb-id-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.hfb-id-danger { color: #f87171 !important; border-color: rgba(248,113,113,0.4) !important; }
.hfb-id-status { font-size: 13px; color: #02ffba; }
.hfb-id-status.is-error { color: #f87171; }

.hfb-id-play, .hfb-id-exportbox { margin-top: 24px; background: #16162a; border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; padding: 20px; }
.hfb-id-play__head h3 { margin: 0 0 4px; color: #fff; font-size: 18px; }
.hfb-id-play__head p { margin: 0 0 14px; color: rgba(255,255,255,0.6); font-size: 14px; }
.hfb-id-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.hfb-id-col { background: #0f0f23; border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; display: flex; flex-direction: column; min-height: 320px; max-height: 520px; }
.hfb-id-col__head { padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.hfb-id-col__head strong { color: #fff; font-size: 14px; }
.hfb-id-col__head span { color: rgba(255,255,255,0.45); font-size: 12px; }
.hfb-id-col__log { padding: 10px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.hfb-id-msg { border-radius: 10px; padding: 9px 11px; font-size: 14px; line-height: 1.45; color: #fff; max-width: 100%; word-wrap: break-word; }
.hfb-id-msg--user { background: rgba(139,92,246,0.18); align-self: flex-end; }
.hfb-id-msg--assistant { background: rgba(255,255,255,0.05); align-self: flex-start; }
.hfb-id-msg.is-pending { color: rgba(255,255,255,0.5); font-style: italic; }
.hfb-id-msg.is-error { border: 1px solid rgba(248,113,113,0.4); }
.hfb-id-msg.is-denied { border: 1px solid rgba(248,113,113,0.5); }
.hfb-id-meta { color: rgba(255,255,255,0.4); font-size: 11px; margin-top: 6px; }
.hfb-id-verdict { margin-top: 8px; padding: 7px 9px; border-radius: 8px; font-size: 12px; line-height: 1.4; color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.04); border-left: 3px solid rgba(255,255,255,0.2); }
.hfb-id-verdict.is-allow { border-left-color: #02ffba; }
.hfb-id-verdict.is-ask { border-left-color: #fbbf24; }
.hfb-id-verdict.is-deny { border-left-color: #f87171; background: rgba(248,113,113,0.08); }
.hfb-id-verdict.is-muted { opacity: 0.6; }
.hfb-id-verdict__tag { font-weight: 700; color: #fff; }
.hfb-id-verdict__rule { margin-top: 4px; color: rgba(255,255,255,0.75); }
.hfb-id-verdict__note { color: rgba(255,255,255,0.55); }
.hfb-id-composer { display: flex; gap: 10px; margin-top: 14px; }
.hfb-id-composer input { flex: 1; background: #0f0f23; color: #fff; border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; padding: 10px 12px; font-size: 16px; }
.hfb-id-hint { color: rgba(255,255,255,0.45); font-size: 12px; margin: 10px 0 0; }
.hfb-id-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.hfb-id-tab { background: #0f0f23; color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.12); border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; }
.hfb-id-tab.is-active { color: #fff; border-color: #06b6d4; background: rgba(6,182,212,0.12); }
.hfb-id-code { background: #0f0f23; color: #e2e8f0; border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; padding: 14px; font-size: 12.5px; line-height: 1.5; overflow-x: auto; white-space: pre-wrap; word-break: break-word; max-height: 420px; }

.hfb-id-demo { display: grid; grid-template-columns: 280px 1fr; gap: 20px; align-items: start; }
.hfb-id-demo__card { background: #16162a; border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; padding: 18px; }
.hfb-id-demo__card h3 { margin: 0 0 6px; color: #fff; font-size: 17px; }
.hfb-id-demo__card h4 { margin: 14px 0 6px; color: rgba(255,255,255,0.6); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.hfb-id-demo__card ul { margin: 0; padding-left: 18px; color: rgba(255,255,255,0.85); font-size: 13px; line-height: 1.5; }
.hfb-id-demo__voice { color: rgba(255,255,255,0.7); font-size: 13px; margin: 0; }
.hfb-id-demo__main { min-width: 0; }
.hfb-id-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.hfb-id-chip { background: #0f0f23; color: #fff; border: 1px solid rgba(139,92,246,0.5); border-radius: 999px; padding: 7px 12px; font-size: 13px; cursor: pointer; }
.hfb-id-chip:hover { border-color: #8b5cf6; background: rgba(139,92,246,0.15); }
.hfb-id-turnstile { margin-top: 12px; }

@media (max-width: 900px) {
  .hfb-id-demo { grid-template-columns: 1fr; }
  .hfb-id-app { grid-template-columns: 1fr; }
  .hfb-id-side { position: static; }
  .hfb-id-cols { grid-template-columns: 1fr; }
  .hfb-id-columns { grid-template-columns: 1fr; }
  .hfb-id-composer { flex-direction: column; }
}

.hfb-id-transcript__user { color: rgba(255,255,255,0.85); font-size: 15px; background: rgba(139,92,246,0.12); border-radius: 10px; padding: 10px 14px; margin: 0 0 14px; }
.hfb-id-transcript__verdict { font-size: 12.5px; color: rgba(255,255,255,0.8); border-left: 3px solid rgba(255,255,255,0.2); padding: 6px 9px; margin: 8px 0 0; background: rgba(255,255,255,0.04); border-radius: 6px; }
.hfb-id-transcript__verdict.is-allow { border-left-color: #02ffba; }
.hfb-id-transcript__verdict.is-ask { border-left-color: #fbbf24; }
.hfb-id-transcript__verdict.is-deny { border-left-color: #f87171; }
