/* SSHCA Chat. Calm, readable, out of the way. */
:root{--sshc-brand:#1C7A55;--sshc-ink:#1F2A24;--sshc-muted:#4F5D55;--sshc-line:#DCE4DF;--sshc-soft:#EEF5F1;--sshc-bg:#fff;--sshc-safe:env(safe-area-inset-bottom,0px)}
.sshc,.sshc *{box-sizing:border-box}
.sshc{font-family:system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;color:var(--sshc-ink);line-height:1.5;letter-spacing:normal;text-transform:none;-webkit-tap-highlight-color:transparent}
.sshc button,.sshc textarea{font:inherit;color:inherit;letter-spacing:normal;text-transform:none;margin:0}
.sshc a{color:var(--sshc-brand)}

/* Launcher */
.sshc-launch{position:fixed;right:20px;bottom:calc(20px + var(--sshc-safe));z-index:2147482800;display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:0 18px 0 14px;border:0!important;border-radius:999px;background:var(--sshc-brand)!important;color:#fff!important;font-size:16px!important;font-weight:600;box-shadow:0 6px 18px rgba(0,0,0,.18);cursor:pointer;transition:opacity .2s,transform .2s}
.sshc-launch:hover{filter:brightness(1.06)}
.sshc-launch:focus-visible{outline:3px solid #fff;box-shadow:0 0 0 6px var(--sshc-brand)}
.sshc-launch svg{width:22px;height:22px;flex:none}
.sshc-launch.sshc-hide,.sshc.sshc-open .sshc-launch{opacity:0;pointer-events:none;transform:translateY(8px)}
html.sm-lock .sshc-launch{display:none}

/* Panel */
.sshc-panel{position:fixed;right:20px;bottom:calc(20px + var(--sshc-safe));z-index:2147483100;width:min(400px,calc(100vw - 40px));height:min(620px,calc(100vh - 40px));display:none;flex-direction:column;background:var(--sshc-bg);border:1px solid var(--sshc-line);border-radius:18px;box-shadow:0 18px 50px rgba(0,0,0,.22);overflow:hidden}
.sshc.sshc-open .sshc-panel{display:flex}
.sshc-head{display:flex;align-items:center;gap:10px;padding:14px 10px 12px 18px;border-bottom:1px solid var(--sshc-line);background:var(--sshc-bg)}
.sshc-head-txt{flex:1;min-width:0}
.sshc-title{font-size:18px;font-weight:700;margin:0;line-height:1.25}
.sshc-sub{font-size:14px;color:var(--sshc-muted);margin:2px 0 0}
.sshc-x{width:44px;height:44px;border:0!important;background:none!important;border-radius:12px;display:grid;place-items:center;cursor:pointer;color:var(--sshc-muted)!important;padding:0!important}
.sshc-x:hover,.sshc-x:focus-visible{background:var(--sshc-soft)!important;color:var(--sshc-ink)!important}
.sshc-x svg{width:22px;height:22px}

.sshc-log{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:16px 16px 8px;font-size:17px;scroll-behavior:smooth}
.sshc-msg{margin:0 0 14px;max-width:92%}
.sshc-bot{margin-right:auto}
.sshc-me{margin-left:auto;max-width:85%;background:var(--sshc-brand);color:#fff;border-radius:16px 16px 4px 16px;padding:10px 14px;white-space:pre-wrap;word-wrap:break-word}
.sshc-bubble{background:var(--sshc-soft);border-radius:16px 16px 16px 4px;padding:12px 14px}
.sshc-bubble p{margin:0 0 8px}
.sshc-bubble p:last-child{margin-bottom:0}
.sshc-pre{color:var(--sshc-muted)}
.sshc-note{font-size:15px;color:var(--sshc-muted);border-left:3px solid var(--sshc-line);padding-left:10px}
.sshc-bubble ul{margin:4px 0 8px;padding-left:22px}
.sshc-bubble li{margin:2px 0}
.sshc-links{display:flex;flex-direction:column;gap:8px;margin:10px 0 0}
.sshc-link{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:46px;padding:10px 14px;border:1px solid var(--sshc-line);border-radius:12px;background:#fff;color:var(--sshc-ink)!important;text-decoration:none!important;font-size:16px;font-weight:600;line-height:1.3}
.sshc-link:hover,.sshc-link:focus-visible{border-color:var(--sshc-brand)}
.sshc-link svg{width:18px;height:18px;flex:none;color:var(--sshc-brand)}
.sshc-src{font-size:14px;color:var(--sshc-muted);margin:8px 2px 0}
.sshc-src a{color:var(--sshc-muted)!important;text-decoration:underline}
.sshc-rel{font-size:15px;margin:8px 2px 0}
.sshc-rel ul{margin:4px 0 0;padding-left:20px}
.sshc-card{margin:10px 0 0;padding:12px 14px;border:1px solid var(--sshc-line);border-radius:14px;background:#fff}
.sshc-card b{display:block;font-size:16px;margin-bottom:8px}
.sshc-card-row{display:flex;flex-direction:column;gap:8px}
.sshc-btn{display:flex;white-space:nowrap;align-items:center;justify-content:center;gap:6px;min-height:46px;padding:0 14px;border-radius:12px;font-size:16px;font-weight:600;text-decoration:none!important;cursor:pointer}
.sshc-btn-main{background:var(--sshc-brand);color:#fff!important;border:0}
.sshc-btn-alt{background:#fff;color:var(--sshc-brand)!important;border:1px solid var(--sshc-brand)}
.sshc-fb{display:flex;align-items:center;gap:6px;margin:8px 2px 0;font-size:14px;color:var(--sshc-muted)}
.sshc-fb button{border:1px solid var(--sshc-line)!important;background:#fff!important;border-radius:999px;min-height:36px;min-width:52px;padding:0 12px!important;cursor:pointer;font-size:14px!important;color:var(--sshc-ink)!important}
.sshc-fb button:hover,.sshc-fb button:focus-visible{border-color:var(--sshc-brand)!important}
.sshc-chips{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 12px}
.sshc-chip{border:1px solid var(--sshc-brand)!important;background:#fff!important;color:var(--sshc-brand)!important;border-radius:999px;min-height:44px;padding:8px 14px!important;font-size:15px!important;font-weight:600;cursor:pointer;text-align:left;line-height:1.3}
.sshc-chip:hover,.sshc-chip:focus-visible{background:var(--sshc-soft)!important}
.sshc-typing{display:inline-flex;gap:5px;padding:14px 16px}
.sshc-typing i{width:8px;height:8px;border-radius:50%;background:var(--sshc-muted);opacity:.35;animation:sshc-dot 1.2s infinite}
.sshc-typing i:nth-child(2){animation-delay:.2s}.sshc-typing i:nth-child(3){animation-delay:.4s}
@keyframes sshc-dot{0%,80%,100%{opacity:.25}40%{opacity:.85}}

.sshc-foot{border-top:1px solid var(--sshc-line);padding:10px 12px calc(10px + var(--sshc-safe));background:var(--sshc-bg)}
.sshc-form{display:flex;align-items:flex-end;gap:8px}
.sshc-in{flex:1;min-height:48px;max-height:140px;resize:none;border:1px solid #B9C6BF!important;border-radius:14px!important;padding:12px 14px!important;font-size:17px!important;line-height:1.35!important;background:#fff!important;color:var(--sshc-ink)!important;box-shadow:none!important;outline:none}
.sshc-in:focus{border-color:var(--sshc-brand)!important;box-shadow:0 0 0 3px rgba(28,122,85,.18)!important}
.sshc-send{width:48px;height:48px;flex:none;border:0!important;border-radius:14px;background:var(--sshc-brand)!important;color:#fff!important;display:grid;place-items:center;cursor:pointer;padding:0!important}
.sshc-send[disabled]{opacity:.45;cursor:default}
.sshc-send svg{width:22px;height:22px}
.sshc-fine{font-size:13px;color:var(--sshc-muted);margin:6px 4px 0;line-height:1.35}
.sshc-tel{white-space:nowrap;font-weight:600}
.sshc-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Phones: a small round button above the hub bar. The chat opens full screen. */
@media (max-width:900px){
	.sshc-launch{right:14px;width:52px;height:52px;min-height:0;padding:0!important;justify-content:center;border-radius:50%}
	.sshc-launch .sshc-launch-txt{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
	body.sm-has-bar .sshc-launch{bottom:calc(var(--sm-bar,64px) + 8px + var(--sshc-safe) + 14px)}
	.sshc-panel{inset:0;right:0;bottom:0;width:100%;height:100%;height:100dvh;border-radius:0;border:0}
	.sshc-head{padding-top:calc(12px + env(safe-area-inset-top,0px))}
	html.sshc-lock,html.sshc-lock body{overflow:hidden}
}
@media (prefers-reduced-motion:reduce){.sshc *,.sshc-launch{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
@media print{.sshc{display:none!important}}
