.tql-shell{--tql-primary:#123a75;--tql-accent:#d95b8b;--tql-warm:#f5f0e8;--tql-border:#e2e5ea;--tql-text:#263445;--tql-muted:#748092;display:flex;flex-direction:column;min-height:640px;max-height:760px;overflow:hidden;border-radius:12px;background:#fff;box-shadow:0 2px 12px rgba(24,39,75,.10);border:1px solid var(--tql-border);font-family:inherit;color:var(--tql-text)}.tql-shell *{box-sizing:border-box}.tql-header{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:20px 22px;background:var(--tql-primary);color:#fff;border-bottom:1px solid rgba(255,255,255,.15)}.tql-brand h2{margin:0 0 4px;color:#fff;font-size:26px;line-height:1.2;font-weight:600}.tql-brand p{margin:0;color:rgba(255,255,255,.82);font-size:12px;line-height:1.5}.tql-online{display:flex;align-items:center;gap:7px;white-space:nowrap;color:#fff;font-size:12px}.tql-pulse{width:8px;height:8px;border-radius:50%;background:#8bd4a8;box-shadow:0 0 0 4px rgba(139,212,168,.15);animation:tqlpulse 1.8s infinite}@keyframes tqlpulse{50%{box-shadow:0 0 0 7px rgba(139,212,168,0)}}.tql-messages{flex:1;min-height:240px;overflow-y:auto;padding:20px;background:#fff;scroll-behavior:smooth}.tql-loading,.tql-empty{padding:30px 12px;text-align:center;color:var(--tql-muted);font-size:14px}.tql-message{display:flex;flex-direction:column;align-items:flex-start;margin:0 0 17px}.tql-message-head{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:0 0 5px;color:var(--tql-muted);font-size:11px}.tql-message-name{color:#263445;font-weight:700}.tql-message-bubble{max-width:min(82%,680px);padding:10px 14px;border-radius:4px 12px 12px 12px;background:var(--tql-warm);color:#263445;font-size:14px;line-height:1.6;overflow-wrap:anywhere;white-space:pre-wrap}.tql-message-actions{display:flex;gap:10px;margin:5px 0 0 2px}.tql-report-button{border:0;padding:2px 0;background:transparent;color:#6b7280;font-size:11px;text-decoration:underline;cursor:pointer}.tql-report-button:hover{color:#a12643}.tql-notice{display:none;margin:10px 16px 0;padding:9px 12px;border-radius:6px;background:#eef7f1;color:#245a38;font-size:13px}.tql-notice.is-visible{display:block}.tql-notice.is-error{background:#fff0f0;color:#8b2020}.tql-form{display:block;border-top:1px solid var(--tql-border);padding:14px 16px;background:#fff}.tql-input{display:block;width:100%;min-height:68px;resize:vertical;padding:11px 12px;border:1px solid #d6dbe2;border-radius:7px;background:#fff;color:#263445;font:inherit;font-size:14px;line-height:1.5;outline:none}.tql-input:focus{border-color:#527cb8;box-shadow:0 0 0 3px rgba(82,124,184,.14)}.tql-form-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px}.tql-helper{color:var(--tql-muted);font-size:11px;line-height:1.4}.tql-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:38px;padding:9px 16px;border:0;border-radius:6px;background:var(--tql-accent);color:#fff;font-size:13px;font-weight:600;cursor:pointer;transition:opacity .2s}.tql-button:hover{opacity:.9;color:#fff}.tql-button:disabled{opacity:.55;cursor:wait}.tql-button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.tql-gate{min-height:0;max-height:none}.tql-gate-body{padding:36px 20px;text-align:center}.tql-lock{font-size:28px}.tql-gate-body h3{margin:10px 0;color:var(--tql-text);font-size:21px}.tql-gate-body p{margin:0 0 18px;color:var(--tql-muted);font-size:14px}.tql-register-link{display:inline-block;margin-left:14px;color:var(--tql-primary);font-size:13px}.tql-shell .tql-button{text-decoration:none}.tql-shell .screen-reader-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:600px){.tql-shell{min-height:600px;max-height:78vh;border-radius:9px}.tql-header{padding:16px;align-items:flex-start}.tql-brand h2{font-size:22px}.tql-online{font-size:11px;padding-top:4px}.tql-messages{padding:15px}.tql-message-bubble{max-width:94%}.tql-form{padding:12px}.tql-form-bottom{align-items:flex-start;flex-direction:column}.tql-button{align-self:flex-end}.tql-helper{order:2}}
/* The Quilt — Live sign-in welcome screen */
.tql-shell{--tql-primary:#56877E;--tql-accent:#56877E;--tql-warm:#f1f5f2;--tql-border:#e2ebe8;--tql-text:#102f37;--tql-muted:#5f6d7b}
.tql-header{background:#56877E}
.tql-gate{min-height:0;max-height:none;border-radius:22px;border-color:#e2eeeb;box-shadow:0 12px 34px rgba(39,91,84,.10);overflow:hidden}
.tql-gate-header{position:relative;min-height:150px;padding:30px 5%;overflow:hidden;background:linear-gradient(110deg,#56877E 0%,#4b7c74 100%)}
.tql-gate-header:after{content:"♡  ❧  ♡";position:absolute;right:4%;bottom:-24px;color:rgba(255,255,255,.12);font-size:100px;letter-spacing:8px;transform:rotate(-8deg);pointer-events:none}
.tql-gate .tql-brand h2{font-size:clamp(26px,3vw,42px);letter-spacing:.1px}
.tql-gate .tql-brand p{font-size:clamp(13px,1.25vw,18px);color:rgba(255,255,255,.92)}
.tql-gate-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);gap:clamp(28px,5vw,76px);align-items:center;padding:clamp(28px,4vw,56px) clamp(24px,5vw,66px);background:linear-gradient(135deg,#fff 0%,#fbfdfc 100%)}
.tql-welcome{min-width:0}
.tql-eyebrow{margin:0 0 12px!important;color:#56877E!important;font-size:14px!important;font-weight:800;letter-spacing:4px;line-height:1.4}
.tql-welcome h3{margin:0 0 14px;color:#102f37;font-size:clamp(30px,4vw,52px);font-weight:750;line-height:1.08;letter-spacing:-1.5px}
.tql-welcome-copy{max-width:650px;margin:0 0 28px;color:#5f6d7b;font-size:clamp(15px,1.5vw,19px);line-height:1.6}
.tql-benefit{display:flex;align-items:center;gap:18px;margin:20px 0}
.tql-benefit-icon{display:flex;flex:0 0 58px;width:58px;height:58px;align-items:center;justify-content:center;border-radius:50%;background:#e6efeb;color:#285d56;font-size:32px;line-height:1}
.tql-benefit strong{display:block;margin-bottom:3px;color:#102f37;font-size:17px;font-weight:750}
.tql-benefit p{margin:0;color:#5f6d7b;font-size:14px;line-height:1.5}
.tql-signin-card{position:relative;isolation:isolate;overflow:hidden;padding:clamp(26px,3.5vw,44px) clamp(22px,3.5vw,42px);border:1px solid #e3ece9;border-radius:24px;background:rgba(255,255,255,.94);box-shadow:0 14px 35px rgba(22,55,52,.09);text-align:center}
.tql-signin-card:after{content:"♡  ❧";position:absolute;z-index:-1;right:-4px;bottom:-35px;color:#edf5f2;font-size:88px;letter-spacing:4px;pointer-events:none}
.tql-signin-emblem{display:flex;width:68px;height:68px;align-items:center;justify-content:center;margin:0 auto 12px;color:#56877E;font-size:65px;line-height:1}
.tql-signin-card h3{margin:0;color:#102f37;font-size:clamp(29px,3vw,42px);font-weight:750;line-height:1.15;letter-spacing:-.8px}
.tql-signin-subtitle{display:flex;align-items:center;justify-content:center;gap:12px;margin:8px 0 16px;color:#56877E;font-size:clamp(16px,1.7vw,22px);font-weight:700;line-height:1.4}
.tql-signin-subtitle span{height:1px;flex:1;max-width:64px;background:#a7c4bd}
.tql-signin-copy{margin:0 0 28px;color:#5f6d7b;font-size:16px;line-height:1.55}
.tql-shell .tql-signin-button{display:flex;width:100%;min-height:62px;gap:14px;padding:16px 20px;border:1px solid #4a7c73;border-radius:14px;background:#56877E;color:#fff;font-size:17px;font-weight:750;box-shadow:0 8px 18px rgba(86,135,126,.20);transition:background .2s,transform .2s,box-shadow .2s}
.tql-shell .tql-signin-button:hover{background:#426f67;color:#fff;box-shadow:0 10px 22px rgba(86,135,126,.28);transform:translateY(-1px)}
.tql-signin-button svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tql-signin-button b{margin-left:auto;font-size:25px;font-weight:400;line-height:1}
@media(max-width:760px){.tql-gate-header{min-height:0;padding:24px}.tql-gate-layout{grid-template-columns:1fr;gap:28px;padding:28px 20px}.tql-welcome h3{font-size:34px}.tql-welcome-copy{font-size:16px}.tql-benefit{gap:13px;margin:16px 0}.tql-benefit-icon{flex-basis:48px;width:48px;height:48px;font-size:27px}.tql-signin-card{padding:28px 22px}.tql-signin-card h3{font-size:32px}.tql-signin-copy{font-size:15px}.tql-desktop-break{display:none}}
@media(max-width:420px){.tql-gate{border-radius:14px}.tql-gate-header{padding:20px}.tql-gate .tql-brand h2{font-size:25px}.tql-gate-layout{padding:24px 16px}.tql-welcome h3{font-size:29px}.tql-benefit strong{font-size:15px}.tql-benefit p{font-size:13px}.tql-shell .tql-signin-button{min-height:56px;padding:14px;font-size:15px}}

/* Logged-in chat layout mirrors the teal sign-in welcome screen. */
.tql-member-shell{min-height:760px;max-height:none;border-radius:22px;border-color:#e2eeeb;box-shadow:0 12px 34px rgba(39,91,84,.10);overflow:hidden;background:linear-gradient(135deg,#fff 0%,#fbfdfc 100%)}
.tql-member-header{position:relative;min-height:150px;padding:30px 5%;overflow:hidden;background:linear-gradient(110deg,#56877E 0%,#4b7c74 100%)}
.tql-member-header:after{content:"♡  ❧  ♡";position:absolute;right:4%;bottom:-24px;color:rgba(255,255,255,.12);font-size:100px;letter-spacing:8px;transform:rotate(-8deg);pointer-events:none}
.tql-member-header .tql-brand,.tql-member-header .tql-online{position:relative;z-index:1}
.tql-member-header .tql-brand h2{font-size:clamp(26px,3vw,42px)}
.tql-member-header .tql-brand p{font-size:clamp(13px,1.25vw,18px);color:rgba(255,255,255,.92)}
.tql-member-layout{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:clamp(24px,4vw,58px);align-items:stretch;padding:clamp(24px,3.5vw,48px) clamp(20px,4vw,58px);background:linear-gradient(135deg,#fff 0%,#fbfdfc 100%)}
.tql-member-welcome{padding:12px 0;align-self:center}
.tql-member-welcome .tql-welcome-copy{font-size:clamp(15px,1.3vw,18px)}
.tql-member-welcome .tql-benefit{gap:14px;margin:20px 0}
.tql-chat-card{display:flex;flex-direction:column;min-width:0;min-height:570px;overflow:hidden;border:1px solid #e3ece9;border-radius:22px;background:rgba(255,255,255,.96);box-shadow:0 14px 35px rgba(22,55,52,.08)}
.tql-chat-card-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:22px 24px;border-bottom:1px solid #e5eeeb;background:#fbfdfc}
.tql-chat-card-heading .tql-eyebrow{margin-bottom:5px!important;font-size:10px!important;letter-spacing:2px}
.tql-chat-card-heading h3{margin:0;color:#102f37;font-size:clamp(20px,2vw,27px);line-height:1.25}
.tql-chat-status{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;color:#426f67;font-size:12px;font-weight:700}
.tql-chat-status i{width:8px;height:8px;border-radius:50%;background:#6abf8b;box-shadow:0 0 0 4px rgba(106,191,139,.14)}
.tql-chat-card .tql-messages{flex:1;min-height:280px;max-height:460px;padding:22px;background:linear-gradient(180deg,#fff 0%,#fcfdfc 100%)}
.tql-chat-card .tql-message-bubble{background:#edf4f1;border-radius:4px 14px 14px 14px}
.tql-chat-card .tql-form{margin-top:auto;padding:16px 18px 18px;border-top:1px solid #e5eeeb;background:#fff}
.tql-chat-card .tql-input{min-height:76px;border-color:#d4e2dd;border-radius:10px}
.tql-chat-card .tql-input:focus{border-color:#56877E;box-shadow:0 0 0 3px rgba(86,135,126,.15)}
.tql-chat-card .tql-button{min-height:42px;border-radius:9px;background:#56877E}
.tql-chat-card .tql-button:hover{background:#426f67}
@media(max-width:900px){.tql-member-layout{grid-template-columns:1fr;gap:24px}.tql-member-welcome{padding:0}.tql-member-welcome .tql-welcome h3{font-size:34px}.tql-member-welcome .tql-welcome-copy{max-width:720px}.tql-chat-card{min-height:560px}}
@media(max-width:600px){.tql-member-shell{min-height:0;border-radius:14px}.tql-member-header{min-height:0;padding:22px 20px;align-items:center}.tql-member-header .tql-brand h2{font-size:25px}.tql-member-header .tql-brand p{font-size:12px}.tql-member-layout{padding:24px 16px}.tql-chat-card{min-height:520px;border-radius:16px}.tql-chat-card-heading{padding:18px 16px}.tql-chat-card .tql-messages{padding:16px;min-height:250px}.tql-chat-card .tql-form{padding:12px}.tql-chat-card .tql-form-bottom{align-items:flex-start;flex-direction:column}.tql-chat-card .tql-button{align-self:flex-end}.tql-chat-card .tql-helper{order:2}}
/* Guest viewing: messages remain public, posting requires sign-in. */
.tql-guest-cta{margin-top:auto;padding:20px 18px;border-top:1px solid #e5eeeb;background:#fff;text-align:center}
.tql-guest-cta p{margin:0 0 12px;color:#5f6d7b;font-size:14px}
.tql-shell .tql-guest-cta .tql-signin-button{display:flex;width:100%;min-height:48px;align-items:center;justify-content:center;gap:12px;padding:12px 18px;border-radius:10px;background:#56877E;color:#fff;font-size:15px;font-weight:750;text-decoration:none}
.tql-guest-cta .tql-signin-button b{font-size:22px;font-weight:400}
.tql-member-shell .tql-member-welcome .tql-eyebrow{margin-bottom:12px!important}
