.expert-launcher{position:fixed;right:24px;bottom:24px;z-index:35;display:flex;align-items:center;gap:12px;padding:14px 20px;background:var(--dark);color:var(--white);border:1px solid rgba(255,255,255,.3);border-radius:30px;box-shadow:0 6px 25px #16221a30;font-size:12px;transition:background .2s,transform .2s}.expert-launcher:hover{background:var(--moss);transform:translateY(-2px)}.expert-launcher svg{width:23px;height:23px}
.expert-dialog{position:fixed;inset:auto 20px 20px auto;margin:0;padding:0;width:510px;height:min(760px,calc(100dvh - 40px));max-width:calc(100vw - 40px);max-height:calc(100dvh - 40px);background:var(--paper);color:var(--ink);border:1px solid var(--line);box-shadow:0 15px 70px #15231a40;border-radius:4px;overflow:hidden}.expert-dialog::backdrop{background:rgba(21,33,25,.33);backdrop-filter:blur(2px)}.expert-shell{height:100%;display:grid;grid-template-rows:auto minmax(0,1fr) auto}.expert-head{display:flex;justify-content:space-between;gap:16px;padding:20px 22px 16px;border-bottom:1px solid var(--line);background:var(--paper)}.expert-head .eyebrow{font-size:9px;margin:0 0 9px;letter-spacing:.12em;color:var(--moss)}.expert-head h2{font-size:23px;letter-spacing:-.035em}.expert-head-actions{display:flex;gap:0;align-items:start}.expert-head-actions .icon-button{height:36px;width:36px;font-size:23px}.expert-body{overflow-y:auto;overscroll-behavior:contain;padding:25px 24px;scroll-behavior:smooth}.expert-welcome .expert-lead{font-size:30px;line-height:1.13;letter-spacing:-.04em;max-width:350px;margin-bottom:18px}.expert-welcome>p:not(.expert-lead){font-size:13px;line-height:1.7;color:#596153}.expert-suggestions{display:grid;gap:9px;margin:24px 0}.expert-suggestions button{padding:13px 14px;text-align:left;border:1px solid var(--line);font-size:12px;line-height:1.5;display:flex;justify-content:space-between;gap:18px;background:rgba(255,255,255,.35)}.expert-suggestions button:hover{background:var(--sand)}.expert-note{font-size:10px;line-height:1.65;color:#666b61}.expert-state{font-size:12px;padding:13px 15px;background:var(--sand);border-left:2px solid var(--moss);margin:18px 0}.expert-explore{display:flex;flex-wrap:wrap;gap:18px;font-size:12px;margin-top:16px}.expert-explore a{border-bottom:1px solid var(--moss);padding-bottom:4px}.expert-log{display:grid;gap:25px}.expert-message{min-width:0;overflow-wrap:anywhere}.expert-message.user{background:#e7e9e0;margin-left:28px;padding:14px 17px;border-radius:3px}.expert-message .speaker{display:block;font-size:9px;text-transform:uppercase;letter-spacing:.12em;color:var(--moss);margin-bottom:10px}.expert-message .message-text{font-size:14px;line-height:1.75;white-space:pre-wrap}.expert-message.user .message-text{font-size:13px}.expert-message .message-text strong{font-weight:600}.expert-sources{display:flex;flex-wrap:wrap;gap:7px;margin-top:15px}.expert-sources a{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line);padding:6px 9px;background:var(--white);font-size:10px;line-height:1.5}.expert-sources a:hover{background:var(--sand)}.expert-composer{border-top:1px solid var(--line);padding:15px 20px 17px;background:var(--paper)}.expert-input-row{display:flex;gap:8px;align-items:flex-end;border:1px solid #aeb3a6;background:var(--white);padding:10px 10px 10px 13px}.expert-input-row:focus-within{outline:2px solid var(--moss);outline-offset:2px}.expert-input-row textarea{width:100%;resize:none;min-height:48px;max-height:120px;font:inherit;font-size:13px;line-height:1.5;border:0;background:transparent;color:var(--ink);outline:0}.expert-send{flex-shrink:0;display:grid;place-items:center;width:40px;height:40px;background:var(--dark);color:white;font-size:22px}.expert-send:disabled{opacity:.4}.expert-composer .expert-note{font-size:9px;line-height:1.5;margin-top:9px}.expert-progress{display:flex;gap:8px;align-items:center;font-size:12px;color:var(--moss);padding:20px 0 0}.expert-progress:before{content:'';width:6px;height:6px;border-radius:50%;background:var(--moss);animation:expert-pulse 1.5s ease-in-out infinite}.expert-error{color:#8b3c24;background:#efe3d9;padding:12px 14px;font-size:12px;line-height:1.6;margin-top:18px}.expert-error button{text-decoration:underline;font-size:12px;padding:8px 0 0;display:block}.expert-dialog button:focus-visible,.expert-dialog a:focus-visible{outline:2px solid var(--clay);outline-offset:3px}.expert-dialog textarea:disabled{cursor:not-allowed}
@keyframes expert-pulse{50%{opacity:.25}}
@media(max-width:600px){.expert-launcher{right:16px;bottom:16px;padding:12px 15px;font-size:11px}.expert-dialog{inset:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border:0;border-radius:0}.expert-head{padding:18px 18px 15px}.expert-head h2{font-size:22px}.expert-head .eyebrow{font-size:8px}.expert-body{padding:25px 20px}.expert-welcome .expert-lead{font-size:32px}.expert-composer{padding:13px 16px max(15px,env(safe-area-inset-bottom))}.expert-input-row textarea{font-size:16px}.expert-message .message-text{font-size:14px}.expert-message.user{margin-left:20px}}
@media(prefers-reduced-motion:reduce){.expert-body{scroll-behavior:auto}.expert-progress:before{animation:none}}
@media print{.expert-launcher,.expert-dialog{display:none!important}}

.expert-dialog .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.expert-composer #expert-refresh{font-size:9px;text-decoration:underline;padding:0;margin-left:4px}

.expert-reference-list{margin-top:15px}.expert-reference-list summary{cursor:pointer;font-size:11px;color:var(--moss);padding:7px 0}.expert-reference-list .expert-sources{margin-top:7px}
