.pa-root { color: #171717; font: 400 15px/1.55 var(--layout-ui, 'Lato', Arial, sans-serif); }
.pa-root *, .pa-root *::before, .pa-root *::after { box-sizing: border-box; }
.pa-root button, .pa-root textarea, .pa-root input { font: inherit; }
.pa-root button { cursor: pointer; }
.pa-root [hidden] { display: none !important; }
.pa-root button:disabled { cursor: wait; opacity: .55; }
.pa-root :is(button, a, textarea, input):focus-visible, .pa-inline:focus-visible { outline: 2px solid #7351bd; outline-offset: 4px; }
.pa-trigger { position: relative; display: inline-flex; align-items: center; flex-shrink: 0; gap: 7px; min-height: 44px; padding: 0 0 0 24px; border: 0; border-left: 0; border-radius: 0; background: transparent; color: #171717; font: 700 15px/1.3 var(--layout-ui, 'Lato', Arial, sans-serif); white-space: nowrap; cursor: pointer; transition: opacity 180ms ease; }
.pa-trigger::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 20px; background: #dedade; transform: translateY(-50%); }
.pa-trigger[aria-expanded="true"]::before { display: none; }
.pa-trigger .pa-trigger-star { color: #7351bd; font-size: 20px; line-height: 1; }
.pa-trigger:hover { opacity: .65; }
.pa-trigger[aria-expanded="true"] { justify-content: center; width: 44px; height: 44px; padding: 0; gap: 0; border: 0; border-radius: 4px; background: #eee8fa; }
.pa-trigger[aria-expanded="true"] .pa-trigger-label { display: none; }
.pa-trigger[aria-expanded="true"]:hover { opacity: 1; background: #e5dcf6; }
.pa-trigger:focus-visible { outline: 2px solid #7351bd; outline-offset: 4px; }
:root { --pa-width: 410px; --pa-purple: #7351bd; --pa-lavender: var(--layout-accent, #c5c0e7); --pa-line: #e6e1ee; }
.pa-panel { position: fixed; z-index: 1200; inset: 0 0 0 auto; width: var(--pa-width); max-width: 100%; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; border-left: 1px solid var(--pa-line); border-radius: 0; background: #faf9fc; color: #242126; box-shadow: none; overflow: hidden; }
.pa-panel[open] { display: flex; flex-direction: column; animation: pa-enter 200ms ease-out; }
.pa-panel::backdrop { background: transparent; }
/* Quiet, single-line chrome; the empty conversation sits near the composer. */
.pa-header { display: flex; align-items: center; flex-shrink: 0; justify-content: space-between; gap: 12px; min-height: 72px; padding: 12px 16px 12px 24px; border-bottom: 1px solid var(--pa-line); }
.pa-brand, .pa-actions { display: flex; align-items: center; }
.pa-brand { gap: 2px; min-width: 0; }
.pa-brand-star { margin-right: 7px; color: var(--pa-purple); font-size: 24px; line-height: 1; }
.pa-actions { gap: 6px; }
.pa-header h2 { margin: 0; color: #242126; font: 700 17px/1.3 'Muli', Arial, sans-serif; letter-spacing: -.04em; }
.pa-root .pa-icon { display: inline-grid; place-items: center; flex-shrink: 0; width: 36px; height: 40px; padding: 8px; border: 0; border-radius: 8px; background: transparent; color: #69616f; line-height: 1; }
.pa-icon svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.pa-root .pa-info-toggle { color: #89808f; }
.pa-root .pa-icon:hover { color: var(--pa-purple); background: #eeebf6; }
.pa-root .pa-icon:disabled { opacity: .45; cursor: default; background: transparent; }
.pa-info { flex-shrink: 0; padding: 16px 24px; border-bottom: 1px solid var(--pa-line); background: #f1eef8; }
.pa-context { margin: 0 0 10px; color: var(--pa-purple); font-size: 12px; font-weight: 700; }
.pa-note { margin: 0; font-size: 12px; line-height: 1.6; color: #69616f; }
.pa-remember-label { display: flex; align-items: center; min-height: 36px; gap: 6px; margin-top: 8px; color: #69616f; font-size: 12px; cursor: pointer; }
.pa-remember { accent-color: var(--pa-purple); }
.pa-scroll { display: flex; flex-direction: column; min-height: 0; flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 28px 20px 12px; }
.pa-scroll > * { flex-shrink: 0; }
.pa-intro { margin-top: auto; padding-top: 28px; }
.pa-intro h3 { margin: 0 0 26px; color: #242126; font: 700 32px/1.2 'Muli', Arial, sans-serif; letter-spacing: -.045em; }
.pa-intro h3 span { display: inline-block; background: linear-gradient(var(--pa-lavender), var(--pa-lavender)) left 88% / 100% 28% no-repeat; }
.pa-prompts { display: grid; gap: 2px; margin: 0 0 18px; }
.pa-prompts button { display: flex; align-items: baseline; gap: 8px; width: 100%; padding: 6px 0; min-height: 34px; text-align: left; color: #69616f; background: transparent; border: 0; border-radius: 0; font-size: 14px; line-height: 1.55; }
.pa-prompts button > span:first-child { color: var(--pa-purple); flex-shrink: 0; font-size: 17px; line-height: 1.25; }
.pa-prompts button:hover { color: var(--pa-purple); }
.pa-prompts button:hover > span:last-child { text-decoration: underline; text-underline-offset: 4px; }
.pa-scroll.has-messages .pa-prompts { border-top: 1px solid var(--pa-line); padding-top: 14px; margin-top: 8px; }
.pa-message { padding: 0 0 24px; overflow-wrap: anywhere; color: #403b44; }
.pa-message p { margin: 0 0 13px; font-size: 15px; line-height: 1.65; }
.pa-message p:last-child { margin-bottom: 0; }
.pa-message-label, .pa-input-label, .pa-loading-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.pa-message-user { width: fit-content; max-width: 94%; margin: 0 0 26px auto; padding: 14px 16px; background: #eee9f8; border: 1px solid #e4dcf2; border-radius: 14px 14px 3px 14px; }
.pa-message a { display: block; margin-top: 10px; width: fit-content; color: var(--pa-purple); font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; padding-block: 5px; }
.pa-message small { display: block; margin-top: 8px; color: #7b7282; font-size: 11px; }
.pa-message small.pa-message-context { margin: 0 0 10px; color: var(--pa-purple); font-weight: 700; }
.pa-message-context::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 6px; border-radius: 50%; background: var(--pa-purple); vertical-align: 2px; }
.pa-status { display: flex; align-items: center; gap: 6px; min-height: 28px; margin: 4px 0 12px; }
.pa-loading-dot { width: 7px; height: 7px; border-radius: 50%; background: #9575cd; animation: pa-thinking 1.2s ease-in-out infinite; }
.pa-loading-dot:nth-of-type(3) { animation-delay: .15s; }
.pa-loading-dot:nth-of-type(4) { animation-delay: .3s; }
@keyframes pa-thinking { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
.pa-error { margin-bottom: 14px; padding: 12px; background: #fff3ef; border: 1px solid #b56950; border-radius: 0; color: #742f1b; }
.pa-error p { margin: 0; font-size: 13px; }
.pa-retry { padding: 8px 0; min-height: 44px; color: inherit; border: 0; background: transparent; text-decoration: underline; }
.pa-form { flex-shrink: 0; padding: 12px 20px max(20px, env(safe-area-inset-bottom)); background: transparent; }
.pa-compose { display: flex; align-items: center; padding: 8px 10px 8px 16px; gap: 8px; border: 1px solid #ded6eb; border-radius: 12px; background: #fff; }
.pa-compose textarea { display: block; flex: 1; width: 100%; min-width: 0; max-height: 110px; resize: none; padding: 6px 0; border: 0; background: transparent; color: #242126; line-height: 1.5; font-size: 16px; }
.pa-compose textarea::placeholder { color: #857a90; }
.pa-compose:focus-within { border-color: var(--pa-purple); box-shadow: 0 0 0 3px #7351bd0d; }
.pa-root .pa-compose textarea:focus-visible { outline: none; }
.pa-root .pa-send { width: 34px; height: 34px; border-radius: 8px; background: var(--pa-purple); color: #fff; }
.pa-root .pa-send:hover:not(:disabled) { background: #6040a4; color: #fff; }
.pa-root .pa-send:disabled { opacity: 1; background: #eee9f6; color: #a99aba; }
.pa-inline { display: block; margin: 30px auto; padding: 12px 18px; border: 1px solid #b4b4ae; border-radius: 24px; background: #fff; color: #171717; font: 700 14px/1.5 var(--layout-ui, Arial, sans-serif); cursor: pointer; }
body.pa-docked { margin-right: var(--pa-width); --layout-gutter: clamp(24px, 3.5vw, 48px); }
.pa-docked .portfolio-header.navbar { right: var(--pa-width); }
.pa-docked .portfolio-header.nav-hidden { opacity: 1; transform: none; pointer-events: auto; }
.pa-docked.home-page .hero-title { font-size: clamp(36px, calc((100vw - 410px) * .058), 72px); }
.pa-docked.home-page .heading-6 { white-space: normal; }
.pa-docked .pa-companion { position: fixed; z-index: 1100; inset: 80px calc(var(--pa-width) + 20px) 20px 20px; width: auto; height: auto; margin: 0; max-width: none; max-height: none; box-shadow: 0 8px 35px #0002; }
.pa-docked .pa-companion .vibe-project-dialog-scroll { display: block; padding: 28px; }
.pa-docked .pa-companion .vibe-project-dialog-intro { position: static; }
.pa-docked .pa-companion .case-study-popup-layout { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
.pa-docked .pa-companion .case-study-popup-intro { max-height: 180px; padding: 20px; }
@media (min-width: 1000px) and (max-width: 1400px) {
  .pa-docked .hero-wrap { padding-inline: 32px; }
  .pa-docked .section { padding-inline: 32px; }
  .pa-docked .project { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; grid-template-areas: "heading" "media" "copy"; gap: 28px; }
  .pa-docked .mockup-column { width: min(100%, 560px); justify-self: center; }
  .pa-docked .about-page-main { width: calc(100% - 64px); grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .pa-docked .columns-3 { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 999px) {
  html.pa-scroll-locked { overflow: hidden; overscroll-behavior: none; }
  html.pa-scroll-locked body { position: fixed; inset: var(--pa-scroll-lock-offset) 0 auto; width: 100%; overflow: hidden; }
  body.pa-open { overflow: hidden; overscroll-behavior: none; }
  .pa-panel { width: 100%; border: 0; }
  .pa-panel::backdrop { background: #faf9fc; }
}
@keyframes pa-enter { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) {
  .portfolio-nav.pa-nav { gap: 12px; }
  .portfolio-nav.pa-nav a, .pa-trigger { font-size: 13px; }
  .pa-trigger { padding-left: 12px; gap: 5px; }
  .pa-trigger .pa-trigger-star { color: #7351bd; font-size: 17px; }
  .pa-panel { inset: 0; width: 100%; max-width: none; height: 100dvh; border: 0; border-radius: 0; }
  .pa-header { padding-top: max(20px, env(safe-area-inset-top)); }
  .pa-header, .pa-scroll, .pa-form { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 380px) {
  .portfolio-header .portfolio-shell.pa-nav-shell { width: calc(100% - 32px); gap: 8px; }
  .pa-nav-shell .portfolio-logo { font-size: 17px; }
  .portfolio-nav.pa-nav { gap: 8px; }
  .portfolio-nav.pa-nav a, .pa-trigger { font-size: 12px; }
  .pa-trigger { padding-left: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .pa-panel[open], .pa-loading-dot { animation: none; }
  .pa-trigger { transition: none; }
}
