#zenzan-chat-root{position:fixed;right:22px;bottom:22px;z-index:9999;font-family:"PingFang SC","Microsoft YaHei",Arial,sans-serif;color:#173f34}.zz-chat-launch{display:flex;align-items:center;gap:10px;border:1px solid rgba(255,255,255,.4);border-radius:999px;background:#173f34;color:#fff;padding:8px 16px 8px 8px;box-shadow:0 12px 34px rgba(18,55,45,.24);cursor:pointer;font-size:15px;letter-spacing:.03em}.zz-chat-launch:hover{background:#0f3028}.zz-chat-avatar{display:block;width:39px;height:39px;flex:none;border-radius:50%;object-fit:cover;object-position:center 35%;background:#f6efe2;border:2px solid rgba(255,255,255,.75)}.zz-chat-panel{position:absolute;right:0;bottom:66px;width:min(370px,calc(100vw - 28px));height:min(560px,calc(100dvh - 110px));display:none;grid-template-rows:auto 1fr auto;border:1px solid rgba(23,63,52,.16);border-radius:18px;overflow:hidden;background:#fbf8f1;box-shadow:0 24px 70px rgba(18,42,35,.28)}.zz-chat-panel[data-open="true"]{display:grid}.zz-chat-head{display:flex;align-items:center;gap:11px;padding:12px 15px;background:#173f34;color:#fff}.zz-chat-head-avatar{width:46px;height:46px;flex:none;border-radius:50%;object-fit:cover;object-position:center 35%;background:#f6efe2;border:2px solid rgba(255,255,255,.72)}.zz-chat-head-copy{flex:1;min-width:0}.zz-chat-head strong{display:block;font-family:Georgia,"Songti SC",serif;font-size:18px}.zz-chat-head span{display:block;margin-top:3px;font-size:12px;color:#d8e4df}.zz-chat-close{border:0;background:transparent;color:#fff;font-size:25px;cursor:pointer}.zz-chat-log{overflow:auto;padding:14px;scroll-behavior:smooth}.zz-chat-welcome{display:flex;align-items:center;gap:12px;margin:0 0 13px;padding:10px;border:1px solid #e5dfd2;border-radius:15px;background:linear-gradient(135deg,#fff 0%,#f5efe4 100%)}.zz-chat-welcome img{display:block;width:86px;height:96px;flex:none;object-fit:cover;object-position:center 35%;border-radius:12px;background:#eee5d8;box-shadow:0 5px 16px rgba(35,55,46,.1)}.zz-chat-welcome p{margin:0;color:#244d41;font-family:"Songti SC","Noto Serif CJK SC",serif;font-size:14px;line-height:1.8}.zz-chat-message{max-width:86%;margin:0 0 12px;padding:11px 13px;border-radius:14px;line-height:1.55;font-size:14px;white-space:pre-wrap}.zz-chat-message.bot{background:#fff;border:1px solid #e5dfd2;border-top-left-radius:4px}.zz-chat-message.user{margin-left:auto;background:#173f34;color:#fff;border-bottom-right-radius:4px}.zz-chat-quick{display:flex;flex-wrap:wrap;gap:7px;margin:2px 0 14px}.zz-chat-quick button{border:1px solid #b8c8c1;border-radius:999px;background:rgba(255,255,255,.58);color:#173f34;padding:7px 10px;font-size:12px;cursor:pointer}.zz-chat-form{display:grid;grid-template-columns:1fr auto;gap:8px;padding:12px;border-top:1px solid #e5dfd2;background:#fff}.zz-chat-form textarea{resize:none;min-height:42px;max-height:90px;border:1px solid #cfd8d3;border-radius:10px;padding:10px 11px;font:inherit;outline:none}.zz-chat-form textarea:focus{border-color:#173f34;box-shadow:0 0 0 2px rgba(23,63,52,.12)}.zz-chat-send{border:0;border-radius:10px;background:#173f34;color:#fff;padding:0 15px;cursor:pointer}.zz-chat-send:disabled{opacity:.55;cursor:wait}.zz-chat-note{grid-column:1/-1;margin:0;font-size:11px;color:#75817d}.zz-chat-fallback{color:#173f34;text-decoration:underline}.zz-chat-launch:focus-visible,.zz-chat-close:focus-visible,.zz-chat-quick button:focus-visible,.zz-chat-send:focus-visible{outline:3px solid #d7b56d;outline-offset:2px}@media(max-width:600px){#zenzan-chat-root{right:14px;bottom:14px}.zz-chat-launch{padding:8px}.zz-chat-launch>span:last-child{display:none}.zz-chat-panel{position:fixed;right:10px;bottom:72px;width:calc(100vw - 20px);height:min(610px,calc(100dvh - 92px));border-radius:16px}.zz-chat-welcome{gap:10px;padding:9px}.zz-chat-welcome img{width:74px;height:86px}.zz-chat-welcome p{font-size:13px}}@media(prefers-reduced-motion:reduce){.zz-chat-log{scroll-behavior:auto}}

/* Secondary services share a quiet footer; the advisor remains the only floating entry. */
.zz-chat-panel{grid-template-rows:auto minmax(0,1fr) auto auto}
.zz-chat-panel [data-sleep-links]{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px!important;padding:8px 12px!important}
.zz-chat-panel [data-sleep-links]>a,.zz-chat-panel .zz-chat-welcome-entry{min-height:44px;display:flex;align-items:center;line-height:1.5}
.zz-chat-panel .zz-chat-welcome-entry{padding:0;border:0;border-radius:0;box-shadow:none;background:transparent;color:#174c40;font:inherit;font-size:14px;cursor:pointer;text-align:left}
.zz-chat-panel .zz-chat-welcome-entry img{display:none}
.zz-chat-panel .zz-chat-welcome-entry[hidden]{display:none!important}
.zz-chat-panel .zz-chat-welcome-entry:focus-visible{outline:2px solid #a18b60;outline-offset:2px}

/* Short viewports retain a readable conversation and reachable service links. */
@media(max-height:540px){
 .zz-chat-panel{position:fixed;right:12px;top:12px;bottom:12px;width:min(640px,calc(100vw - 24px));height:auto;max-height:none;grid-template-rows:auto minmax(80px,1fr) auto auto;overflow-y:auto;overscroll-behavior:contain}
 .zz-chat-close{min-width:44px;min-height:44px;flex-shrink:0}
 .zz-chat-log{min-height:80px}
}
