.pcg-rail{display:flex;flex-direction:column;width:100%;min-width:0;background:var(--background);border:1px solid var(--border);border-radius:var(--radius-lg,12px);overflow:hidden}.pcg-rail,.pcg-rail *,.pcg-rail :after,.pcg-rail :before{box-sizing:border-box}.pcg-identity{display:flex;align-items:flex-start;gap:12px;padding:16px 16px 12px}.pcg-avatar{width:44px;height:44px;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--radius-full,9999px);background:linear-gradient(135deg,#8b5cf6,#6366f1);color:#ffffff;font-size:15px;font-weight:600;letter-spacing:.02em}.pcg-identity-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.pcg-name{font-size:14px;font-weight:600;line-height:1.3;color:var(--foreground)}.pcg-role{font-size:12px;line-height:1.3;color:var(--muted-foreground)}.pcg-avail{display:inline-flex;align-items:center;gap:5px;width:fit-content;margin-top:6px;padding:3px 8px;background:color-mix(in srgb,var(--status-success,#22c55e) 12%,transparent);color:var(--status-success,#22c55e);font-size:11px;font-weight:500}.pcg-avail,.pcg-avail-dot{border-radius:var(--radius-full,9999px)}.pcg-avail-dot{width:6px;height:6px;flex-shrink:0;background:currentColor}.pcg-avail--off{background:var(--accent);color:var(--muted-foreground)}.pcg-stats{display:grid;grid-template-columns:repeat(3,1fr);padding:10px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}.pcg-stat{display:flex;flex-direction:column;align-items:center;gap:2px;padding:4px 0;min-width:0}.pcg-stat+.pcg-stat{border-left:1px solid var(--border)}.pcg-stat-value{font-size:13px;font-weight:600;line-height:1.2;color:var(--foreground)}.pcg-stat-label{font-size:10px;line-height:1;color:var(--muted-foreground);text-transform:uppercase;letter-spacing:.04em}.pcg-specialties{display:flex;flex-wrap:wrap;gap:6px;padding:10px 14px}.pcg-chip{display:inline-flex;align-items:center;padding:3px 9px;border-radius:var(--radius-full,9999px);border:1px solid var(--border);background:var(--accent);font-size:11px;color:var(--muted-foreground);white-space:nowrap}.pcg-divider{height:1px;background:var(--border)}.pcg-actions{padding:4px 0;display:flex;flex-direction:column}.pcg-action{display:flex;align-items:center;gap:10px;padding:8px 14px;font-size:13px;color:var(--foreground)}.pcg-action-icon{font-size:15px;line-height:1;flex-shrink:0;color:var(--muted-foreground)}.pcg-footer{padding:10px 14px;border-top:1px solid var(--border);text-align:center}.pcg-footer-link{font-size:12px;color:var(--muted-foreground)}.pcg-body{position:relative;display:grid;grid-template-columns:minmax(0,1fr);min-width:0}.pcg-scene{grid-area:1/1;display:flex;flex-direction:column;min-width:0;min-height:0;width:100%;z-index:0}.pcg-scene--profile .pcg-footer{margin-top:auto}.pcg-scene--chat .pcg-messages{flex:1 1 auto}.pcg-scene--profile{visibility:hidden;opacity:0;pointer-events:none}.pcg-scene--chat{visibility:visible;opacity:1;z-index:1}.pcg-rail[data-phase="0"] .pcg-scene--profile{visibility:visible;opacity:1;pointer-events:auto;z-index:1}.pcg-rail[data-phase="0"] .pcg-scene--chat,.pcg-rail[data-phase="1"] .pcg-scene--profile{visibility:hidden;opacity:0;pointer-events:none;z-index:0}.pcg-rail[data-phase="1"] .pcg-scene--chat{visibility:visible;opacity:1;pointer-events:auto;z-index:1}.pcg-messages{display:flex;flex-direction:column;justify-content:flex-end;gap:12px;padding:12px 14px 8px;min-height:0}.pcg-msg-row{display:flex;align-items:flex-end;gap:8px}.pcg-msg-row--client{flex-direction:row-reverse}.pcg-msg-avatar{width:28px;height:28px;flex-shrink:0;align-self:flex-end;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--radius-full,9999px);background:linear-gradient(135deg,#8b5cf6,#6366f1);color:#ffffff;font-size:10px;font-weight:600}.pcg-bubble-wrap{display:flex;flex-direction:column;gap:3px;align-items:flex-start;max-width:calc(100% - 44px)}.pcg-msg-row--client .pcg-bubble-wrap{align-items:flex-end}.pcg-bubble{padding:9px 12px;border-radius:var(--radius-lg,12px) var(--radius-lg,12px) var(--radius-lg,12px) var(--radius-xs,4px);background:var(--card);border:1px solid var(--border);color:var(--foreground);font-size:13px;line-height:1.55;word-break:break-word}.pcg-msg-row--client .pcg-bubble{border-radius:var(--radius-lg,12px) var(--radius-lg,12px) var(--radius-xs,4px) var(--radius-lg,12px);background:var(--primary);border:none;color:var(--primary-foreground)}.pcg-msg-time{padding:0 2px;font-size:10px;color:var(--muted-foreground)}.pcg-typing{display:inline-flex;align-items:center;gap:4px;padding:10px 14px;background:var(--card);border:1px solid var(--border);border-radius:var(--radius-lg,12px) var(--radius-lg,12px) var(--radius-lg,12px) var(--radius-xs,4px)}.pcg-dot{width:5px;height:5px;border-radius:var(--radius-full,9999px);background:var(--muted-foreground);opacity:.5}@media (prefers-reduced-motion:no-preference){.pcg-dot{animation:pcg-dot-bounce 1.2s ease infinite}.pcg-dot:nth-child(2){animation-delay:.2s}.pcg-dot:nth-child(3){animation-delay:.4s}@keyframes pcg-dot-bounce{0%,60%,to{transform:translateY(0);opacity:.4}30%{transform:translateY(-5px);opacity:1}}}.pcg-composer{flex-shrink:0;padding:8px 14px 12px;border-top:1px solid var(--border)}.pcg-input-row{display:flex;align-items:flex-end;gap:8px;width:100%}.pcg-textarea{flex:1;min-width:0;min-height:36px;padding:8px 12px;border:1px solid var(--border);background:var(--card);font-size:13px;line-height:1.5;display:flex}.pcg-send,.pcg-textarea{border-radius:var(--radius-md,8px);color:var(--muted-foreground);align-items:center}.pcg-send{width:36px;height:36px;flex-shrink:0;display:inline-flex;justify-content:center;background:var(--accent);font-size:15px}.pcg-send--active{background:var(--primary);color:var(--primary-foreground)}.pcg-hints{display:flex;align-items:center;gap:6px;margin-top:6px}.pcg-hint{font-size:11px;color:var(--muted-foreground);opacity:.7}@media (prefers-reduced-motion:no-preference){.pcg-scene{transition:opacity .45s cubic-bezier(.4,0,.2,1),visibility .45s}.pcg-run[data-phase="0"] .pcg-action--primary{animation:pcg-press .4s ease-out both;animation-delay:2.1s}.pcg-run[data-phase="0"] .pcg-action--primary .pcg-action-icon{animation:pcg-icon-tint .4s ease-out both;animation-delay:2.1s}.pcg-run[data-phase="1"] .pcg-composer,.pcg-run[data-phase="1"] .pcg-msg-row{animation:pcg-fade-up .4s ease-out both}.pcg-run[data-phase="1"] .pcg-msg-row:first-child{animation-delay:.12s}.pcg-run[data-phase="1"] .pcg-msg-row:nth-child(2){animation-delay:.36s}.pcg-run[data-phase="1"] .pcg-composer{animation-delay:.2s}@keyframes pcg-press{0%{background:transparent}40%{background:var(--accent)}to{background:transparent}}@keyframes pcg-icon-tint{0%,to{color:var(--muted-foreground)}40%{color:var(--primary)}}@keyframes pcg-fade-up{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}}@media (prefers-reduced-motion:reduce){.pcg-scene{transition:none}}