/* Conversational extension, matching the original pearl/sage/copper guide. */
.marianne-teaser{display:flex;width:100%;align-items:center;gap:15px;text-align:left;background:linear-gradient(110deg,#edf1e7,#faf5e8);border:1px solid #dbe2d2;border-radius:16px;padding:14px 19px;margin:-5px 0 24px;color:var(--green-dark)}
.marianne-teaser b{display:block;font-family:var(--serif);font-size:21px;font-weight:400}.marianne-teaser small{display:block;font-size:12px;color:#657463;margin-top:2px}.teaser-icon{background:white;border-radius:50%;height:44px;width:44px;display:grid;place-items:center;flex-shrink:0}.teaser-tag{margin-left:auto;font-size:10px;padding:6px 10px;border:1px solid #cfd8c3;border-radius:20px;white-space:nowrap}.marianne-teaser>.icon{margin-left:auto}.main-nav{gap:12px}.nav-meta{font-size:10px}.marianne-nav{color:var(--copper);border:1px solid #dfcfb8}.marianne-nav .icon{width:19px}
.marianne-dialog{padding:0;width:min(1130px,calc(100% - 48px));height:min(835px,calc(100dvh - 48px));max-height:calc(100dvh - 48px);border:1px solid #d9dfd0;border-radius:26px;box-shadow:0 25px 130px #203d3b48;color:var(--ink);overflow:hidden;background:var(--paper)}.marianne-dialog::backdrop{background:#213d365b;backdrop-filter:blur(6px)}.chat-layout{display:grid;grid-template-columns:290px minmax(0,1fr);height:100%;min-height:0}.chat-aside{background:linear-gradient(160deg,#e7ecdf,#eef0e7 45%,#f4edde);padding:34px 27px;display:flex;flex-direction:column;border-right:1px solid var(--line);overflow:hidden}.chat-emblem .brand-symbol{width:34px;height:49px;margin-bottom:28px}.chat-aside .eyebrow{font-size:8px;letter-spacing:2px}.chat-aside h2{font-size:36px;letter-spacing:-1px;margin:12px 0 15px}.chat-aside p{font-size:13px;line-height:1.75;color:#617360}.chat-aside-art{height:185px;border-radius:60% 60% 14px 14px;overflow:hidden;background:#e4e8da;margin:20px -2px 13px}.chat-aside-art svg{height:100%;width:100%;object-fit:cover}.chat-aside-caption{font-family:var(--serif);font-style:italic;color:var(--green);font-size:14px}.chat-aside-privacy{display:flex;gap:9px;margin-top:auto;padding-top:20px;border-top:1px solid #d3dbc9}.chat-aside-privacy .icon{width:14px;height:14px;flex-shrink:0;margin-top:4px}.chat-aside-privacy p{font-size:10px;margin:0}.chat-main{display:flex;flex-direction:column;min-height:0;min-width:0;background:#fffefa}.chat-header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:23px 26px 14px}.chat-header h2{font-size:31px;letter-spacing:-.65px;margin:0 0 4px}.chat-header p{font-size:12px;color:var(--muted);margin:0}.chat-header .icon-btn{flex-shrink:0}.chat-status{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 26px 10px}.chat-mode{display:inline-flex;gap:7px;align-items:center;font-size:10px;font-weight:600;color:#946137}.chat-mode i{height:6px;width:6px;border-radius:50%;background:#c19153;flex-shrink:0}.chat-mode.is-live{color:#426341}.chat-mode.is-live i{background:#63845a}.chat-status>button{font-size:11px;text-decoration:underline;text-underline-offset:3px;padding:6px 0;color:var(--green-dark);white-space:nowrap}.chat-notice{font-size:11px;line-height:1.6;color:#786646;padding:10px 26px;background:#f7f0e2;border-top:1px solid #eee5d4;border-bottom:1px solid #eee5d4}.chat-context{display:flex;align-items:center;gap:9px;background:#f5f7f0;padding:11px 26px;font-size:11px;border-bottom:1px solid var(--line)}.chat-context>.icon{height:16px;width:16px;color:var(--green);flex-shrink:0}.chat-context>span{white-space:nowrap;color:var(--muted)}.chat-context select{min-width:0;flex:1;padding:5px 18px 5px 6px;color:var(--green-dark);background:transparent;border:0;font-size:12px;font-weight:600}.chat-context button{margin-left:auto;min-height:30px;min-width:30px}.chat-context button .icon{width:17px}.chat-stream{flex:1;overflow:auto;overscroll-behavior:contain;padding:20px 26px 24px;min-height:0;scrollbar-width:thin;scrollbar-color:#d5ddcc transparent}.chat-welcome{text-align:center;padding:5px 0 13px}.chat-welcome[hidden]{display:none}.chat-avatar{height:51px;width:51px;display:grid;place-items:center;border:1px solid #d3c2a2;border-radius:50%;font-family:var(--serif);font-style:italic;color:var(--copper);font-size:32px;background:#f8f1e5;margin:0 auto 16px}.chat-welcome h3{font-size:25px;margin-bottom:12px}.chat-welcome>p{font-size:13px;color:#6a7464;max-width:440px;margin:0 auto 20px;line-height:1.7}.chat-starters{display:grid;grid-template-columns:1fr 1fr;gap:9px;text-align:left}.chat-starters button{display:flex;gap:10px;align-items:center;background:#f7f8f1;border:1px solid #e0e5d7;border-radius:12px;padding:13px 12px;min-height:62px;font-size:12px;line-height:1.45}.chat-starters button>.icon:first-child{color:var(--copper);height:19px;width:19px}.chat-starters button>.icon:last-child{margin-left:auto;width:14px;height:14px}.chat-starters button:hover{background:#edf1e4}.chat-message{margin-bottom:23px}.chat-message.user{margin-left:15%;background:#e9eee2;border:1px solid #dce4d1;border-radius:17px 17px 3px 17px;padding:14px 17px}.chat-message.user p{font-size:14px;line-height:1.65;margin:5px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}.chat-who{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:650;color:var(--green-dark);margin-bottom:10px}.chat-who small{font-size:9px;font-weight:400;color:#8a816d;margin-left:auto}.mini-avatar{width:25px;height:25px;display:grid;place-items:center;font-family:var(--serif);font-size:18px;font-style:italic;color:var(--copper);border-radius:50%;background:#f5eddf}.chat-answer{font-size:14px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.chat-results{display:grid;gap:10px;margin-top:15px}.chat-place{display:flex;align-items:stretch;gap:12px;background:#f9f8f1;border:1px solid #e4e5d9;border-radius:14px;padding:11px}.chat-place-art{width:75px;min-height:88px;flex-shrink:0;border-radius:10px;overflow:hidden;background:#e8ecdf}.chat-place-art svg{height:100%;width:100%}.chat-place-body{min-width:0;flex:1;padding:3px 0}.chat-place h3{font-size:21px;margin:0 0 4px;line-height:1.2}.chat-place p{font-size:11px;color:var(--muted);margin:0 0 10px}.chat-place-actions{display:flex;gap:7px 14px;flex-wrap:wrap}.chat-place-actions button{display:inline-flex;align-items:center;gap:4px;padding:2px 0;font-size:10px;color:var(--green-dark);text-align:left}.chat-place-actions .icon{height:13px;width:13px}.chat-place-actions button:hover{text-decoration:underline}.chat-route{display:flex;align-items:center;gap:10px;background:var(--green-dark);color:#fffdf6;border-radius:11px;margin-top:13px;padding:12px 14px;text-align:left;width:100%;font-size:12px}.chat-route>.icon:last-child{margin-left:auto}.chat-sources{border-top:1px solid #e4e4d8;margin-top:13px;padding-top:10px;color:#74806d;font-size:10px}.chat-sources summary{cursor:pointer}.chat-sources a{display:inline-flex;align-items:center;gap:3px;padding:5px 8px 0 0;font-size:10px}.chat-sources .icon{height:11px;width:11px}.chat-follow{display:flex;flex-wrap:wrap;gap:7px;margin-top:13px}.chat-follow button{border:1px solid #d9dfd0;border-radius:20px;padding:6px 10px;font-size:10px;background:white;text-align:left}.chat-follow button:hover{background:var(--sage)}.chat-working{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:12px}.chat-dots{height:9px;width:9px;border-radius:50%;background:#9dac8d;animation:chatPulse 1s ease-in-out infinite}.is-error{border-left:3px solid #b4895d;padding-left:14px}.chat-composer{margin:0 20px;padding:9px 9px 9px 15px;border:1px solid #cfd9c3;box-shadow:0 4px 18px #31502709;border-radius:15px;background:#fffefa;display:flex;align-items:center;gap:10px;flex-shrink:0}.chat-composer textarea{flex:1;min-width:0;resize:none;min-height:46px;max-height:110px;font:14px/1.5 var(--sans);color:var(--ink);background:transparent;border:0;outline:none;padding:5px 0}.chat-composer textarea::placeholder{color:#929a86}.chat-composer button{min-width:44px;height:44px;border-radius:11px;background:var(--green-dark);color:#fff;display:flex;align-items:center;gap:5px;justify-content:center;padding:0 11px}.chat-composer button>span{font-size:11px}.chat-composer-foot{display:flex;justify-content:space-between;gap:10px;padding:8px 26px 15px;font-size:8px;color:#87927c;flex-shrink:0}.chat-settings{padding:35px;max-width:650px;margin:auto;height:100%;overflow:auto}.chat-settings header{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.chat-settings header .chat-avatar{margin:0}.chat-settings h2{font-size:34px}.chat-settings>p{font-size:14px;line-height:1.8;color:#657460}.chat-settings label:not(.chat-consent){display:block;font-size:12px;font-weight:650;margin:22px 0 8px}.chat-settings input[type=password]{width:100%;padding:14px;border:1px solid #cbd6be;border-radius:11px;font-size:13px}.chat-consent{display:flex;align-items:flex-start;gap:11px;margin:18px 0 24px;font-size:12px;line-height:1.7}.chat-consent input{margin-top:5px;accent-color:var(--green)}.chat-settings .button{margin:8px 10px 12px 0}.chat-settings .settings-notice{border-radius:12px;padding:18px;margin:22px 0}.chat-settings .chat-small{font-size:10px;color:var(--muted);margin-top:30px}#marianneConnectStatus{font-size:12px;color:#976637;min-height:1em}
@keyframes chatPulse{50%{opacity:.35;transform:scale(.8)}}
@media(max-width:1150px){.main-nav{gap:6px}.nav-button{padding:10px 14px}}
@media(max-width:900px){.chat-layout{grid-template-columns:220px minmax(0,1fr)}.chat-aside{padding:28px 20px}.chat-aside h2{font-size:30px}.chat-aside-art{height:140px}}
@media(max-width:780px){.marianne-teaser{gap:10px;padding:13px 12px;margin-bottom:18px}.marianne-teaser b{font-size:20px}.marianne-teaser small{font-size:11px}.teaser-tag{display:none}.marianne-nav{border:0}.main-nav{gap:0;padding-left:5px;padding-right:5px}.nav-button{font-size:9px;padding:5px 2px 4px;min-width:0}.marianne-dialog{width:100%;height:100dvh;max-height:100dvh;max-width:100%;margin:0;border:0;border-radius:0}.chat-layout{display:flex}.chat-aside{display:none}.chat-main{width:100%}.chat-header{padding:17px 17px 10px;padding-top:max(17px,env(safe-area-inset-top))}.chat-header h2{font-size:27px}.chat-header p{font-size:11px}.chat-header .icon-btn{width:37px;height:37px}.chat-status{padding:0 17px 9px}.chat-status>button{font-size:10px}.chat-mode{font-size:9px}.chat-notice{padding:9px 17px;font-size:10px}.chat-context{padding:9px 15px;gap:6px}.chat-context>span{font-size:10px}.chat-context select{font-size:11px}.chat-stream{padding:19px 16px}.chat-welcome h3{font-size:26px}.chat-welcome>p{font-size:13px}.chat-starters{grid-template-columns:1fr}.chat-starters button{min-height:49px;padding:11px 12px}.chat-message.user{margin-left:10%;padding:12px 14px}.chat-who small{font-size:8px}.chat-answer{font-size:14px}.chat-place{gap:9px;padding:9px}.chat-place-art{width:52px}.chat-place h3{font-size:20px}.chat-place p{font-size:10px}.chat-place-actions button{min-height:30px}.chat-composer{margin:0 12px;border-radius:14px;padding-left:12px}.chat-composer textarea{font-size:16px}.chat-composer button>span{display:none}.chat-composer-foot{font-size:7px;padding:7px 17px max(12px,env(safe-area-inset-bottom))}.chat-settings{padding:25px 20px}.chat-settings h2{font-size:31px}.chat-settings>p{font-size:13px}.chat-settings input[type=password]{font-size:16px}.chat-consent{font-size:12px}}
@media(prefers-reduced-motion:reduce){.chat-dots{animation:none}}
