:root { color: #29183b; background: #fbf7f1; font: 16px/1.5 system-ui, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; }
.portal-shell { max-width: 88rem; margin: 0 auto; padding: 2rem clamp(1rem, 4vw, 3.5rem); }
.portal-head, .panel-title, .badges, .owner-actions { align-items: center; display: flex; gap: .7rem; justify-content: space-between; }
.eyebrow { color: #6d28d9; font-size: .73rem; font-weight: 800; letter-spacing: .12em; margin: 0 0 .35rem; text-transform: uppercase; }
h1, h2 { letter-spacing: -.035em; line-height: 1.1; margin: 0; }
h1 { color: #3c155f; font-size: clamp(2.3rem, 5vw, 4.2rem); }
h2 { font-size: 1.25rem; }
.portal-intro { color: #62536e; max-width: 62ch; }
.badges span, .badge { background: #eadcff; border: 1px solid #cba8ec; border-radius: 999px; color: #51217d; font-size: .78rem; font-weight: 750; padding: .32rem .6rem; white-space: nowrap; }
.owner-actions { margin: 1rem 0; }
.portal-grid { display: grid; gap: 1rem; grid-template-columns: minmax(16rem, .9fr) minmax(22rem, 1.55fr) minmax(15rem, .8fr); }
.panel { background: #fff; border: 1px solid #e2d2ed; border-radius: 1rem; min-width: 0; padding: 1.1rem; }
.panel p { color: #62536e; }
.conversation-panel { background: #f7f0ff; }
.empty-note, .access-note { border-left: .2rem solid #9552c6; font-size: .92rem; padding-left: .7rem; }
button, input, textarea { font: inherit; }
button { background: #6524a3; border: 0; border-radius: .55rem; color: white; cursor: pointer; margin: .55rem .35rem .1rem 0; padding: .6rem .8rem; }
button.quiet { background: #f0e5fa; color: #51217d; }
input, textarea { background: #fff; border: 1px solid #cba8e8; border-radius: .45rem; color: #29183b; display: block; padding: .55rem; width: 100%; }
textarea { min-height: 5rem; }
label { display: block; font-size: .86rem; font-weight: 700; margin-top: .85rem; }
article { background: #fff; border: 1px solid #dec9f1; border-radius: .7rem; margin: .7rem 0; overflow-wrap: anywhere; padding: 1rem; white-space: pre-wrap; }
.licenses { margin-top: 1.5rem; }.licenses a { color: #5b21b6; }
:focus-visible { outline: 3px solid #7c3aed; outline-offset: 3px; }
@media (max-width: 62rem) { .portal-grid { grid-template-columns: 1fr 1fr; }.conversation-panel { grid-column: span 2; } }
@media (max-width: 42rem) { .portal-shell { padding: 1.2rem; }.portal-head { align-items: flex-start; flex-direction: column; }.portal-grid { grid-template-columns: 1fr; }.conversation-panel { grid-column: auto; } }
