/* The assistant shares the portfolio's typography and solid forest/cream palette. */
.portfolio-assistant { --pa-edge: 24px; --pa-vh: 100dvh; --pa-keyboard: 0px; position: fixed; z-index: 70; left: max(var(--pa-edge), env(safe-area-inset-left, 0px)); right: max(var(--pa-edge), env(safe-area-inset-right, 0px)); bottom: calc(var(--pa-edge) + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: flex-end; pointer-events: none; font-family: Outfit, Arial, sans-serif; color: var(--ink, #1c2522); line-height: 1.5; }
.portfolio-assistant[hidden]{display:none}
.pa-panel,.pa-launcher{pointer-events:auto}
.portfolio-assistant [hidden] { display: none !important; }
.portfolio-assistant button, .portfolio-assistant a { -webkit-tap-highlight-color: transparent; }
.portfolio-assistant button:disabled { cursor: default; }
.portfolio-assistant :focus-visible { outline: 2px solid var(--clay, #b96643); outline-offset: 3px; }
.pa-launcher { display: flex; align-items: center; gap: 11px; min-height: 54px; padding: 13px 20px; border: 1px solid #5c786d; border-radius: 999px; background: var(--forest, #183c34); color: var(--paper, #fffefb); box-shadow: 0 5px 22px #102a2524; font-size: 14px; font-weight: 500; transition: background-color 160ms ease, box-shadow 160ms ease; }
.pa-launcher:hover { background: var(--forest-hover, #245649); box-shadow: 0 6px 26px #102a2538; }
.pa-launcher > svg { width: 21px; height: 21px; }
.pa-launcher[aria-expanded="true"] { background: var(--forest-dark, #102a25); }
.pa-panel { position: absolute; right: 0; bottom: calc(68px + var(--pa-keyboard)); display: flex; flex-direction: column; width: min(402px, 100%); height: min(650px, calc(var(--pa-vh) - 136px - env(safe-area-inset-top, 0px))); min-height: 260px; overflow: hidden; border: 1px solid #cbd4c9; border-radius: 20px; background: var(--paper, #fffefb); box-shadow: 0 14px 60px #102a2530, 0 2px 10px #102a2510; animation: pa-enter 160ms ease-out; }
.pa-header { display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto; gap: 12px; padding: 18px 16px 17px 20px; background: var(--forest, #183c34); color: var(--paper, #fffefb); }
.pa-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pa-monogram { display: flex; align-items: baseline; justify-content: center; flex: 0 0 42px; width: 42px; height: 42px; padding-top: 5px; border: 1px solid #6e8b7b; border-radius: 50%; font-size: 23px; font-weight: 500; letter-spacing: -.07em; }
.pa-monogram > span { color: #e5b994; }
.pa-owner { margin: 0 0 2px; color: #d3ded4; font-size: 10px; font-weight: 400; letter-spacing: .075em; text-transform: uppercase; }
.pa-header h2 { margin: 0; color: inherit; font-size: 18px; font-weight: 500; letter-spacing: -.025em; line-height: 1.2; }
.pa-icon-button { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: inherit; }
.pa-icon-button:hover { background: #ffffff16; }
.pa-icon-button svg { width: 21px; height: 21px; }
.pa-toolbar { display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto; gap: 12px; min-height: 43px; padding: 2px 18px; border-bottom: 1px solid var(--line, #dce2d9); background: var(--ivory, #f6f3ec); }
.pa-mode { min-width: 0; color: #535e54; font-size: 11px; overflow-wrap: anywhere; }
.pa-clear { flex-shrink: 0; min-height: 36px; padding: 7px 0 7px 8px; border: 0; background: transparent; color: var(--forest, #183c34); font-size: 11px; text-decoration: underline; text-decoration-color: #b1c0af; text-underline-offset: 3px; }
.pa-clear:disabled { opacity: .45; text-decoration: none; }
.pa-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #b9c7b6 transparent; padding: 23px 20px 18px; scroll-behavior: auto; }
.pa-scroll:focus-visible { outline-offset: -4px; }
.pa-kicker { margin: 0 0 12px; color: #7a694e; font-size: 10px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.pa-welcome h3 { margin: 0 0 13px; color: var(--forest-dark, #102a25); font-size: 26px; font-weight: 500; line-height: 1.15; letter-spacing: -.045em; }
.pa-welcome > p:not(.pa-kicker) { margin: 0; color: var(--muted, #646c64); font-size: 13px; line-height: 1.65; }
.pa-suggestions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 22px 0 4px; }
.pa-suggestions button { display: flex; align-items: center; justify-content: space-between; gap: 5px; min-height: 48px; padding: 11px 12px; border: 1px solid #dce2d5; border-radius: 10px; background: #f7f7ef; color: var(--forest, #183c34); text-align: left; font-size: 12px; line-height: 1.35; }
.pa-suggestions button:hover { background: #ebefe3; border-color: #afc1a8; }
.pa-suggestions button:disabled { opacity: .6; }
.pa-suggestions button > span { font-size: 16px; }
.pa-messages { display: flex; flex-direction: column; gap: 20px; }
.pa-message { max-width: 100%; font-size: 14px; }
.pa-message-label { margin: 0 0 6px; color: #66715e; font-size: 10px; font-weight: 500; letter-spacing: .055em; }
.pa-message-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; }
.pa-message-user { align-self: flex-end; max-width: 92%; padding: 12px 14px; border: 1px solid #dfe4d8; border-radius: 13px 13px 3px 13px; background: #edf0e6; }
.pa-message-user .pa-message-label { color: #586752; }
.pa-message-assistant { padding-right: 4px; }
.pa-message-assistant .pa-message-label { color: var(--clay, #b96643); }
.pa-related { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.pa-related a, .pa-related button { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 35px; padding: 6px 10px; border: 1px solid #d7dfd1; border-radius: 7px; background: transparent; color: var(--forest, #183c34); font-size: 11px; line-height: 1.4; text-align: left; overflow-wrap: anywhere; }
.pa-related a:hover, .pa-related button:hover { background: #f0f3e9; border-color: #aebea6; }
.pa-related a > span { flex: 0 0 auto; }
.pa-pending { display: flex; align-items: center; gap: 9px; margin-top: 20px; color: var(--muted, #646c64); font-size: 12px; }
.pa-pending-dot { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: var(--clay, #b96643); animation: pa-breathe 1.2s ease-in-out infinite alternate; }
.pa-error, .pa-transfer-note { margin-top: 17px; padding: 12px 13px; border: 1px solid #dec6b5; border-radius: 10px; background: #fcf3ea; color: #6a3d27; font-size: 12px; line-height: 1.55; }
.pa-error p, .pa-transfer-note p { margin: 0; }
.pa-error button, .pa-transfer-note button, .pa-transfer-note a { display: inline-flex; align-items: center; min-height: 40px; margin-top: 3px; padding: 7px 0; border: 0; background: transparent; color: var(--forest, #183c34); font-size: 12px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.pa-error button:disabled { opacity: .6; }
.pa-transfer-note > div { display: flex; flex-wrap: wrap; column-gap: 15px; }
.pa-latest { align-self: center; position: absolute; bottom: 180px; z-index: 1; min-height: 34px; padding: 6px 12px; border: 1px solid #cbd6c3; border-radius: 999px; background: var(--paper, #fffefb); color: var(--forest, #183c34); box-shadow: 0 3px 12px #102a2514; font-size: 11px; }
.pa-latest > span { margin-left: 6px; }
.pa-composer { flex: 0 0 auto; padding: 12px 16px 10px; border-top: 1px solid #e7eadf; }
.pa-input-wrap { display: flex; align-items: flex-end; gap: 8px; padding: 8px 8px 8px 12px; border: 1px solid #c8d2c2; border-radius: 12px; background: var(--paper, #fffefb); }
.pa-input-wrap:focus-within { border-color: #7c9774; box-shadow: 0 0 0 2px #dfe7d680; }
.pa-input-wrap textarea { display: block; flex: 1 1 auto; width: 100%; min-width: 0; max-height: 104px; min-height: 38px; height: 42px; resize: none; padding: 2px 0; border: 0; outline: none; border-radius: 0; background: transparent; color: var(--ink, #1c2522); font: inherit; font-size: 13px; line-height: 1.5; scrollbar-width: thin; }
.pa-input-wrap textarea:focus-visible { outline: none; }
.pa-input-wrap textarea::placeholder { color: #737b70; opacity: 1; }
.pa-send, .pa-stop { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border: 0; border-radius: 9px; background: var(--forest, #183c34); color: var(--paper, #fffefb); }
.pa-send:hover, .pa-stop:hover { background: var(--forest-hover, #245649); }
.pa-send:disabled { background: #e8ece1; color: #929e89; }
.pa-send svg, .pa-stop svg { width: 21px; height: 21px; }
.pa-privacy { margin: 8px 0 0; color: #707667; font-size: 10px; line-height: 1.45; }
.pa-footer { display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto; gap: 12px; padding: 3px 18px 9px; background: var(--paper, #fffefb); }
.pa-footer a { display: inline-flex; align-items: center; gap: 7px; min-height: 35px; color: var(--forest, #183c34); font-size: 12px; font-weight: 500; }
.pa-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.pa-footer .pa-cv { color: #64705e; font-size: 11px; font-weight: 400; }
.pa-cv svg { width: 15px; height: 15px; }
.pa-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.pa-compact .pa-panel { height: calc(var(--pa-vh) - var(--pa-edge) - var(--pa-edge) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); min-height: 0; bottom: var(--pa-keyboard); }
.pa-compact .pa-launcher[aria-expanded='true'] { visibility: hidden; pointer-events: none; }
.pa-compact .pa-header { padding-block: 7px; }
.pa-compact .pa-toolbar { min-height: 44px; }
.pa-compact .pa-scroll { padding-block: 12px; }
.pa-compact .pa-composer { padding-block: 7px; }
.pa-compact .pa-privacy { font-size: 10px; margin-top: 5px; }
.pa-compact .pa-footer { padding-bottom: 3px; }
/* A short landscape window or keyboard must scroll, never cut off controls. */
.pa-short .pa-panel { overflow-y: auto; overscroll-behavior: contain; scroll-padding-block: 70px 12px; }
.pa-short .pa-header { position: sticky; top: 0; z-index: 3; }
.pa-short .pa-scroll { flex: 0 0 auto; min-height: 96px; max-height: 160px; }
.pa-short .pa-latest { position: static; flex-shrink: 0; margin-bottom: 8px; }
@keyframes pa-enter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pa-breathe { from { opacity: .45; } to { opacity: 1; } }
html[data-motion-paused='true'] .portfolio-assistant * { animation: none !important; transition: none !important; }
@media (max-width: 600px) {
  .portfolio-assistant { --pa-edge: 12px; }
  .pa-launcher { min-height: 48px; padding: 11px 16px; font-size: 12px; }
  .pa-launcher > svg { width: 20px; height: 20px; }
  .pa-launcher[aria-expanded='true'] { visibility: hidden; pointer-events: none; }
  .pa-panel { bottom: var(--pa-keyboard); width: min(402px, 100%); height: min(640px, calc(var(--pa-vh) - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px))); min-height: 0; border-radius: 16px; }
  .pa-header { padding: 14px 12px 14px 16px; }
  .pa-header h2 { font-size: 17px; }
  .pa-scroll { padding: 18px 16px 15px; }
  .pa-welcome h3 { font-size: 24px; }
  .pa-composer { padding-inline: 12px; }
  .pa-input-wrap textarea { font-size: 16px; }
  .pa-send, .pa-stop { width: 44px; height: 44px; flex-basis: 44px; }
  .pa-suggestions { margin-top: 17px; }
  .pa-icon-button { width: 44px; height: 44px; flex-basis: 44px; }
  .pa-clear, .pa-footer a, .pa-related a, .pa-related button, .pa-error button, .pa-transfer-note button, .pa-transfer-note a { min-height: 44px; }
  .pa-related { gap: 8px; }
  .pa-latest { position: relative; bottom: auto; flex-shrink: 0; min-height: 44px; margin-bottom: 8px; }
  .pa-footer { gap: 8px; }
}
@media (pointer: coarse) {
  .pa-icon-button, .pa-send, .pa-stop { width: 44px; height: 44px; flex-basis: 44px; }
  .pa-clear, .pa-footer a, .pa-related a, .pa-related button, .pa-latest, .pa-error button, .pa-transfer-note button, .pa-transfer-note a { min-height: 44px; }
  .pa-input-wrap textarea { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .portfolio-assistant *, .portfolio-assistant *::before, .portfolio-assistant *::after { animation: none !important; transition: none !important; }
}
/* Q&A library: a compact index, explicit published answers, one clear enquiry action. */
.pa-panel{width:min(440px,100%);height:min(720px,calc(var(--pa-vh) - 136px));border-radius:16px}.pa-header{padding:16px 18px}.pa-icon-button{font-size:28px;font-weight:300}.pa-tabs{display:flex;flex-shrink:0;border-bottom:1px solid #dce2d5;padding:0 16px;gap:18px}.pa-tabs button{border:0;border-bottom:2px solid transparent;background:none;padding:12px 0;font:inherit;font-size:12px;color:#667362;min-height:44px}.pa-tabs button[aria-pressed=true]{border-bottom-color:#183c34;color:#183c34}.pa-tabs span{background:#e9eee5;border-radius:20px;padding:1px 6px;margin-left:4px;font-size:10px}.pa-scroll{padding:18px}.pa-welcome h3{font-size:23px;line-height:1.2;margin-bottom:8px}.pa-welcome>p:not(.pa-kicker){font-size:12px}.pa-search-label{display:block;font-size:11px;color:#536750;margin:20px 0 6px}.pa-search-label+input{width:100%;border:1px solid #cbd4c9;border-radius:8px;padding:11px 12px;background:#fffefb;color:#173c34;font:inherit;font-size:13px;min-height:44px}.pa-categories{display:flex;gap:6px;overflow-x:auto;padding:12px 0 4px;scrollbar-width:thin}.pa-categories button{flex-shrink:0;border:1px solid #dce2d5;border-radius:20px;background:transparent;padding:6px 11px;font:inherit;font-size:11px;color:#52694d;min-height:36px}.pa-categories button[aria-pressed=true]{background:#183c34;border-color:#183c34;color:#fffefb}.pa-result-count{font-size:11px;color:#708069;margin:12px 0 6px}.pa-question-list button{display:flex;justify-content:space-between;align-items:center;gap:18px;width:100%;border:0;border-bottom:1px solid #e0e5d9;background:transparent;padding:13px 0;color:#173c34;font:inherit;font-size:13px;text-align:left;min-height:48px;line-height:1.4}.pa-question-list button:hover{background:#f4f5ed}.pa-question-list button:disabled{opacity:.5}.pa-question-list button span{font-size:18px;color:#8c9c83}.pa-more{display:block;width:100%;border:0;background:none;color:#52694d;font:inherit;font-size:12px;text-decoration:underline;min-height:44px;margin-top:5px}.pa-custom{padding-top:14px;margin-top:10px;border-top:1px solid #dce2d5}.pa-custom>p{font-size:12px;margin:0 0 8px}.pa-custom textarea,.pa-comment textarea{display:block;width:100%;resize:vertical;max-height:140px;min-height:64px;border:1px solid #cbd4c9;border-radius:8px;background:#fffefb;padding:10px 12px;color:#173c34;font:inherit;font-size:13px}.pa-custom button,.pa-comment button{min-height:42px;border:0;border-radius:7px;background:#e9eee5;color:#173c34;font:inherit;font-size:12px;padding:8px 12px;margin-top:8px}.pa-custom button:disabled,.pa-comment button:disabled{opacity:.55}.pa-footer{display:block;padding:13px 18px 15px;border-top:1px solid #dce2d5}.pa-footer .pa-enquiry{display:flex;justify-content:space-between;min-height:44px;padding:10px 14px;background:#183c34;color:#fffefb;border-radius:8px;font-size:13px;text-decoration:none}.pa-footer .pa-enquiry:hover{background:#245649}.pa-footer .pa-privacy{margin:9px 0 0;font-size:10px;line-height:1.45;color:#687760}.pa-feedback-row{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}.pa-feedback-row button{min-height:36px;padding:6px 9px;border:1px solid #dce2d5;border-radius:6px;background:transparent;color:#5b6e54;font:inherit;font-size:11px}.pa-feedback-row p{flex:1 0 100%;font-size:11px;color:#607157;margin:2px 0}.pa-message-assistant .pa-message-label{color:#7b624e}.pa-comment{margin-top:30px;border-top:1px solid #dce2d5;padding-top:16px}.pa-comment label{display:block;font-size:12px;margin-bottom:8px}.pa-comment p,.pa-empty{font-size:12px;color:#607157}.pa-message{font-size:13px}.pa-related a,.pa-related button{min-height:40px}.pa-compact .pa-panel{height:calc(var(--pa-vh) - 24px);bottom:var(--pa-keyboard)}@media(max-width:600px){.pa-panel{width:min(440px,100%);height:calc(var(--pa-vh) - 24px)}.pa-search-label+input,.pa-custom textarea,.pa-comment textarea{font-size:16px}.pa-categories button,.pa-feedback-row button{min-height:44px}.pa-footer{padding:10px 14px 12px}.pa-welcome h3{font-size:22px}.pa-scroll{padding:16px}.pa-tabs{gap:20px}}@media(max-height:380px){.pa-panel{overflow-y:auto}.pa-scroll{flex:0 0 auto;max-height:none}.pa-header{position:sticky;top:0;z-index:2}.pa-footer{flex:0 0 auto}}

.pa-arrow{height:18px;width:18px;flex:0 0 18px}.pa-comment summary{font-size:12px;color:#536750;cursor:pointer;min-height:44px;padding:10px 0}.pa-comment label{font-size:11px}.pa-comment{margin-top:16px;padding-top:6px}.pa-question-list button>span{font-family:Arial,sans-serif;font-size:24px}
