/* The Portrait's chat panel (staff room and landing page), 2026-11-11. */
.portrait-dlg {
  width: min(560px, calc(100vw - 32px)); max-height: min(86vh, 760px); padding: 0;
  display: none; flex-direction: column;
  border: var(--line) solid var(--c-lantern); border-radius: 18px;
  background: var(--c-midnight); color: var(--c-bone);
  box-shadow: 0 0 0 4px var(--c-ink), 0 0 40px color-mix(in srgb, var(--c-toxic) 35%, transparent);
}
.portrait-dlg[open] { display: flex; }
.portrait-dlg::backdrop { background: color-mix(in srgb, var(--c-ink) 70%, transparent); }
.pt-head { display: flex; align-items: center; gap: 0.9rem; padding: 0.9rem 1rem; border-bottom: 3px solid var(--c-ink); background: var(--c-plum); }
.pt-frame {
  flex: 0 0 auto; width: 72px; aspect-ratio: 4 / 5; padding: 5px; border-radius: 6px;
  background: linear-gradient(135deg, var(--c-lantern), color-mix(in srgb, var(--c-lantern) 55%, var(--c-ink)));
  box-shadow: 0 0 0 3px var(--c-ink);
}
.pt-frame img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 2px; }
.pt-name { margin: 0; font-family: var(--font-display); font-size: 1.5rem; color: var(--c-lantern); }
.pt-role { margin: 0; font-size: 0.85rem; color: var(--c-parchment); }
.pt-close { margin-left: auto; align-self: flex-start; border: 0; background: none; color: var(--c-bone); font-size: 1.3rem; cursor: pointer; }
.pt-log { flex: 1 1 auto; min-height: 120px; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.6rem; }
.pt-msg { margin: 0; max-width: 85%; padding: 0.6rem 0.85rem; border-radius: 14px; line-height: 1.35; animation: pt-in 250ms ease-out; }
.pt-msg.him { align-self: flex-start; background: var(--c-parchment); color: var(--c-ink); border: 3px solid var(--c-ink); border-bottom-left-radius: 4px; }
.pt-msg.me { align-self: flex-end; background: var(--c-royal); color: var(--c-bone); border-bottom-right-radius: 4px; }
.pt-msg.typing { opacity: 0.7; }
@keyframes pt-in { from { opacity: 0; transform: translateY(6px); } }
.pt-chips { flex: 0 0 auto; max-height: 34%; overflow-y: auto; padding: 0.4rem 1rem 0.6rem; border-top: 3px solid var(--c-ink); }
.pt-topic { margin: 0.5rem 0 0.3rem; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--c-parchment); }
.pt-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pt-chip {
  border: 2px solid var(--c-lantern); border-radius: 999px; padding: 0.3rem 0.75rem;
  background: none; color: var(--c-bone); font: 700 0.85rem var(--font-body); cursor: pointer;
}
.pt-chip:hover, .pt-chip:focus-visible { background: var(--c-lantern); color: var(--c-ink); }
.pt-ask { display: flex; gap: 0.5rem; padding: 0.7rem 1rem 1rem; }
.pt-ask input { flex: 1; min-width: 0; padding: 0.55rem 0.8rem; border-radius: 10px; border: 3px solid var(--c-ink); background: var(--c-bone); color: var(--c-ink); font: 600 1rem var(--font-body); }

/* Landing: the founder in a small gold frame, bottom left (the sound button is bottom right). */
.portrait-fab {
  position: fixed; left: 16px; bottom: 16px; z-index: 40; display: flex; align-items: center; gap: 0.6rem;
  padding: 0.4rem 0.9rem 0.4rem 0.4rem; border: 3px solid var(--c-lantern); border-radius: 14px;
  background: color-mix(in srgb, var(--c-midnight) 88%, transparent); color: var(--c-bone); cursor: pointer;
  font: 800 0.95rem var(--font-body); box-shadow: 0 0 0 3px var(--c-ink), 0 0 22px color-mix(in srgb, var(--c-toxic) 30%, transparent);
  transition: transform var(--t-fast, 150ms);
}
.portrait-fab:hover, .portrait-fab:focus-visible { transform: translateY(-2px); box-shadow: 0 0 0 3px var(--c-ink), 0 0 26px var(--c-toxic); }
.portrait-fab .pt-frame { width: 52px; }
@media (max-width: 600px) { .portrait-fab-text { display: none; } .portrait-fab { padding: 0.35rem; } }
