/* Tenant chat only. app.css remains the shared legacy stylesheet. */
html{height:100%;overflow:hidden;--conversation-font:"Manrope",ui-sans-serif,system-ui,sans-serif}
body.chat{height:100vh;height:100dvh;min-height:0;overflow:hidden;display:grid;grid-template-columns:260px minmax(0,960px);justify-content:center;gap:clamp(24px,4vw,64px);padding:clamp(20px,3vh,40px) clamp(24px,4vw,72px);font-family:var(--conversation-font);background:var(--paper);background-image:radial-gradient(ellipse at 8% 5%,color-mix(in srgb,var(--accent) 9%,transparent),transparent 60%)}
body.chat>[hidden],[hidden]{display:none!important}
a,.link,.bubble a.inl,.meta a.src{color:var(--link,var(--accent))}
.identity{border:0;background:transparent;padding:26px 0;display:flex;flex-direction:column;min-width:0;gap:30px;overflow:auto}
.identity .wrap{display:block;padding:0;margin:0;width:100%}
.eyebrow{font-size:10px;font-weight:800;letter-spacing:.18em;color:var(--muted);margin:0 0 34px}
.hd,.hd.wide{display:flex;flex-direction:column;align-items:flex-start;gap:22px;min-width:0}
img.logo,img.logo.sq{max-width:200px;max-height:72px;width:auto;height:auto;object-fit:contain}
h1.t{font-size:clamp(25px,2.2vw,34px);line-height:1.17;letter-spacing:-.045em;font-weight:800;overflow-wrap:anywhere}
html.font-serif h1.t{font-family:Georgia,"Times New Roman",serif;font-weight:500;letter-spacing:-.035em}
.sub{font-size:14px;line-height:1.65;margin:16px 0 0;max-width:25ch}
.identity-note{margin-top:auto;padding-top:44px;color:var(--muted)}
.identity-mark{display:grid;place-items:center;width:42px;height:42px;border:1px solid var(--line);border-radius:14px;color:var(--link,var(--accent));font-size:25px;margin-bottom:18px}
.identity-note p{font-size:13px;line-height:1.7;margin:0}
.chat-panel{height:100%;min-height:0;min-width:0;display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:24px;box-shadow:0 16px 64px color-mix(in srgb,var(--ink) 6%,transparent);overflow:hidden}
.panel-heading{display:flex;align-items:center;gap:13px;padding:22px 30px;border-bottom:1px solid var(--line);flex:none}
.assistant-symbol{width:40px;height:40px;display:grid;place-items:center;border:1px solid var(--line);border-radius:13px;font-size:26px;color:var(--link,var(--accent));background:var(--paper)}
.panel-heading h2{font-size:15px;letter-spacing:-.02em;line-height:1.4;margin:0;font-weight:800}
.panel-heading p{font-size:12px;line-height:1.5;margin:2px 0 0;color:var(--muted)}
.ai-badge{margin-left:auto;font-size:10px;font-weight:700;color:var(--muted);border:1px solid var(--line);border-radius:99px;padding:5px 9px;white-space:nowrap}
.chat-panel .wrap{max-width:780px;width:100%;padding:0 30px;margin:0 auto}
main#log{flex:1 1 0;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:26px 0 20px;background:transparent;scroll-behavior:auto}
.notice{margin-bottom:24px!important}
.notice .label{font-size:11px;line-height:1.6;margin:0}
.notice .legal{margin-top:5px}
#msgs{display:flex;flex-direction:column;gap:20px}
.msg{margin:0;max-width:100%;min-width:0}
.bubble{font-size:15px;line-height:1.75;padding:15px 19px;border-radius:17px;max-width:92%}
.bot .bubble{background:var(--paper);border:1px solid var(--line);color:var(--ink);border-top-left-radius:5px}
.user .bubble{border-bottom-right-radius:5px}
.meta{gap:8px;margin-top:9px;font-size:12px;padding:0 3px}
.meta a.src{min-width:32px;min-height:30px;display:inline-flex;align-items:center;justify-content:center}
.disc{font-size:12px;color:var(--muted);max-width:65ch}
.prod{max-width:100%;margin-top:12px}
.starter-wrap{margin-top:28px!important}
.starter-label{font-size:10px;letter-spacing:.12em;text-transform:uppercase;font-weight:800;color:var(--muted);margin:0 0 10px}
.chips{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:0}
.chip{font-size:12px;line-height:1.55;border:1px solid var(--line);padding:13px 15px;border-radius:12px;background:var(--surface);min-height:48px;transition:border-color .15s,background .15s}
.chip:hover{background:var(--paper)}
.chat-panel footer{flex:0 0 auto;min-width:0;padding:18px 0 16px;background:var(--surface);border-top:1px solid var(--line);z-index:1}
form.ask{align-items:flex-end;border:1px solid var(--line);background:var(--paper);padding:7px;border-radius:17px;gap:8px;box-shadow:0 2px 6px color-mix(in srgb,var(--ink) 3%,transparent)}
form.ask:focus-within{border-color:var(--link,var(--accent));outline:2px solid color-mix(in srgb,var(--accent) 15%,transparent);outline-offset:2px}
form.ask textarea{font-family:var(--conversation-font);border:0;background:transparent;border-radius:10px;padding:9px 10px;line-height:1.6;font-size:15px;min-height:44px;max-height:140px;outline:none}
form.ask textarea:focus-visible{outline:none}
button.send{min-height:44px;padding:10px 16px;font-size:13px;border-radius:11px;display:flex;gap:13px;align-items:center;justify-content:center}
button.send span{font-size:18px;line-height:1}
.think{margin:0;font-size:12px;min-height:0;line-height:1.6}
.think:not(:empty){margin-top:9px}
footer .label.legal.short{font-size:10px;line-height:1.7;margin:10px 0 0;color:var(--muted)}
footer .label.legal.credit{font-size:10px;margin-top:3px}
footer button.link{font-size:inherit;padding:0 2px}
.retry{font:inherit;font-size:13px;color:var(--accent-ink);background:var(--accent);border:0;border-radius:9px;padding:9px 16px;margin-top:15px;cursor:pointer}
.unavailable .notice{border:1px solid var(--line);border-radius:12px;padding:20px!important;width:calc(100% - 60px)}
html.pre body>*{visibility:visible}
html.pre body{background:var(--paper)}
html.pre body::before{display:none}
html.pre .hd{opacity:.4}
html.pre .panel-heading p::after{content:" Connecting…"}
html.pre .chat-panel main::after{content:"";display:block;margin:0 30px;width:min(75%,360px);height:90px;border-radius:16px;background:var(--paper)}
@media(min-width:1700px){body.chat{grid-template-columns:280px minmax(0,1040px);gap:72px}.panel-heading{padding-top:26px;padding-bottom:26px}.bubble{font-size:16px}}
@media(max-width:1000px){body.chat{grid-template-columns:210px minmax(0,1fr);gap:24px;padding:20px}.identity{padding:20px 0}h1.t{font-size:27px}.chat-panel .wrap{padding:0 22px}.panel-heading{padding:20px 22px}}
@media(max-width:720px){body.chat{display:flex;gap:0;padding:0;background:var(--surface)}.identity{flex:none;padding:16px 20px;border-bottom:1px solid var(--line);overflow:visible;gap:0}.identity .wrap{display:block}.eyebrow,.identity-note{display:none}.hd,.hd.wide{flex-direction:row;align-items:center;gap:12px}img.logo,img.logo.sq{max-width:96px;max-height:39px}h1.t{font-size:18px;line-height:1.25;letter-spacing:-.025em}.sub{font-size:11px;line-height:1.45;margin:3px 0 0;max-width:none}.chat-panel{flex:1;min-height:0;width:100%;border:0;border-radius:0;box-shadow:none}.panel-heading{padding:13px 20px;gap:10px}.panel-heading h2{font-size:13px}.panel-heading p{font-size:11px}.assistant-symbol{height:32px;width:32px;font-size:22px;border-radius:10px}.ai-badge{font-size:9px}.chat-panel .wrap{padding:0 18px}main#log{padding:18px 0}.notice{margin-bottom:18px!important}.notice .label{font-size:10px}.bubble{font-size:14px;padding:12px 15px;max-width:95%;line-height:1.7}#msgs{gap:16px}.starter-wrap{margin-top:20px!important}.chip{font-size:11px;padding:10px 12px;min-height:44px}.chip:nth-child(n+3){display:block}.chat-panel footer{padding:12px 0 max(11px,env(safe-area-inset-bottom))}footer .label.legal.short,footer .label.legal.credit{font-size:10px}.unavailable .notice{width:calc(100% - 36px)}}
body.embed{display:flex;gap:0;padding:0;background:var(--surface)}
body.embed .identity{flex:none;padding:12px 16px;border-bottom:1px solid var(--line);overflow:visible}
body.embed .eyebrow,body.embed .identity-note,body.embed .panel-heading{display:none}
body.embed .identity .wrap{display:block;padding:0 38px 0 0}
body.embed .hd,body.embed .hd.wide{flex-direction:row;align-items:center;gap:10px}
body.embed img.logo{max-height:34px;max-width:90px}
body.embed h1.t{font-size:16px;line-height:1.3}
body.embed .sub{font-size:11px;line-height:1.4;margin:3px 0 0;max-width:none}
body.embed .chat-panel{flex:1;width:100%;min-height:0;border:0;border-radius:0;box-shadow:none}
body.embed .chat-panel .wrap{padding:0 15px}
body.embed main#log{padding:15px 0}
body.embed .bubble{font-size:14px;padding:11px 14px}
body.embed .notice{margin-bottom:15px!important}
body.embed .chat-panel footer{padding:11px 0 max(10px,env(safe-area-inset-bottom))}
@media(max-height:560px){.identity{padding-top:12px;padding-bottom:12px}.identity-note{display:none}.panel-heading{padding-top:10px;padding-bottom:10px}.panel-heading p{display:none}.chat-panel footer{padding-top:9px;padding-bottom:8px}.notice{margin-bottom:14px!important}.chips{grid-template-columns:repeat(2,minmax(0,1fr))}.chip:nth-child(n+3){display:none}.think:not(:empty){margin-top:4px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Final usability polish: brand-coloured line icons and comfortable legal/source targets. */
.assistant-symbol svg,.identity-mark svg{display:block;width:22px;height:22px}
.identity-mark{border:0;border-radius:0;place-items:start;width:26px;height:26px;margin-bottom:12px}
footer .label.legal.short,footer .label.legal.credit{font-size:11px;line-height:1.6}
@media(max-width:720px){.meta a.src{min-width:44px;min-height:44px}footer .label.legal.short,footer .label.legal.credit{font-size:11px}}
body.embed .meta a.src{min-width:44px;min-height:44px}

/* Reading space: the answer is primary, enquiries expand only on request. */
@media(min-width:721px){body.chat{padding:12px 24px;gap:32px;grid-template-columns:240px minmax(0,1120px)}.identity{padding:18px 0}.panel-heading{padding:12px 24px}.panel-heading p{display:none}.assistant-symbol{width:30px;height:30px;border-radius:9px}.chat-panel{border-radius:18px}.chat-panel footer{padding:10px 0}.chat-panel .wrap{max-width:920px;padding-left:24px;padding-right:24px}main#log{padding:18px 0}.notice{margin-bottom:16px!important}.chat-panel footer .label.legal.short,.chat-panel footer .label.legal.credit{display:inline;font-size:11px;line-height:1.6;margin:0}.chat-panel footer .label.legal.credit::before{content:" · "}form.ask{margin-bottom:7px}}
.enquiry{margin-top:12px;max-width:100%;font-size:13px}
.enquiry summary{display:list-item;list-style:disclosure-closed;cursor:pointer;width:fit-content;min-height:44px;padding:11px 15px;border:1px solid var(--line);border-radius:10px;color:var(--link,var(--accent));background:var(--paper);font-weight:700}
.enquiry[open] summary{list-style:disclosure-open;margin-bottom:12px}
.enquiry summary:focus-visible{outline:2px solid var(--focus,var(--accent));outline-offset:3px}
.enquiry form.lead{margin-top:0;max-width:100%}
@media(max-width:720px){.identity{padding:12px 18px}.panel-heading{padding:9px 18px}.panel-heading p{display:none}.chat-panel footer{padding-top:9px;padding-bottom:max(9px,env(safe-area-inset-bottom))}.chat-panel footer .label.legal.short{margin-top:6px}.chat-panel footer .label.legal.credit{margin-top:0}}
body.embed .identity{padding:10px 15px}
.enquiry summary{display:flex;align-items:center;gap:9px;list-style:none}
.enquiry summary::-webkit-details-marker{display:none}
.enquiry summary::before{content:"›";font-size:18px;line-height:1;transform:rotate(0deg)}
.enquiry[open] summary::before{transform:rotate(90deg)}
/* Keep the customer's identity present in the reading panel, using their actual palette. */
.panel-heading{border-top:3px solid var(--accent)}
.panel-heading h2{overflow-wrap:anywhere}
@media(min-width:721px){img.logo,img.logo.sq{max-width:220px;max-height:84px}}
@media(max-width:720px){img.logo,img.logo.sq{max-width:110px;max-height:44px}}
body.embed img.logo{max-width:90px;max-height:34px}
/* Avoid browser anchoring undoing explicit response placement; preserve deliberate reading. */
main#log,#msgs{overflow-anchor:none}
.chat-panel{position:relative}
.latest-reply{position:absolute;right:24px;bottom:calc(var(--composer-height,110px) + 8px);z-index:3;border:1px solid var(--line);border-radius:99px;padding:10px 15px;min-height:44px;background:var(--accent);color:var(--accent-ink);font:inherit;font-size:12px;font-weight:700;cursor:pointer;box-shadow:0 2px 8px color-mix(in srgb,var(--ink) 12%,transparent)}
.latest-reply:focus-visible{outline:2px solid var(--focus,var(--accent));outline-offset:3px}
@media(max-width:720px){.latest-reply{right:18px}}
