:root{font-family:Arial,Helvetica,sans-serif;color:#202c33;background:#e5ddd5;font-synthesis:none}
*{box-sizing:border-box}
html,body{height:100%;margin:0}
button,input{font:inherit}
button{cursor:pointer}
button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #ffc857;outline-offset:2px}
[hidden]{display:none!important}
body{display:flex;align-items:stretch;justify-content:center;padding:24px 3vw;background:linear-gradient(#00a884 0 128px,#d8dfe2 128px)}
.chat-list,.chat-app{height:calc(100dvh - 48px);max-height:960px;min-height:520px;box-shadow:0 8px 40px #111b212b}
.chat-list{width:350px;flex:none;background:#fff;border-right:1px solid #dce2e5;display:flex;flex-direction:column}
.chat-list-top{height:66px;background:#f0f2f5;display:flex;align-items:center;gap:11px;padding:0 16px}
.chat-list-top>div:last-child,.chat-list-copy{display:flex;flex-direction:column;min-width:0}
.chat-list-top strong{font-size:15px}
.chat-list-top span{font-size:12px;color:#667781;margin-top:2px}
.brand-avatar{height:41px;width:41px;flex:none;border-radius:50%;background:#075e54;color:#fff;display:grid;place-items:center;font-size:14px;font-weight:800}
.chat-list-search{margin:11px 12px;border-radius:8px;background:#f0f2f5;color:#667781;font-size:14px;padding:9px 13px}
.chat-list-item{display:flex;align-items:center;gap:12px;background:#f0f2f5;padding:14px 13px}
.chat-list-copy{flex:1;gap:4px}
.chat-list-copy strong{font-size:16px}
.chat-list-copy span{font-size:13px;color:#667781;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-list-time{align-self:flex-start;font-size:11px;color:#667781}
.chat-list-help{padding:18px 24px;color:#667781;font-size:14px;line-height:1.55}
.chat-app{width:min(100%,960px);display:flex;flex-direction:column;position:relative;overflow:hidden;background:#efeae2}
.chat-header{height:66px;min-height:66px;display:flex;align-items:center;justify-content:space-between;padding:0 17px;background:#075e54;color:#fff;position:relative;z-index:5}
.chat-brand{display:flex;align-items:center;gap:12px;min-width:0}
.header-back{border:0;background:transparent;color:#fff;font-size:38px;line-height:1;width:25px;height:42px;padding:0;margin-right:-4px}
.avatar{width:42px;height:42px;flex:none;border-radius:50%;display:grid;place-items:center;background:#cce9dc;color:#075e54;font-size:22px;font-weight:800}
.chat-brand-copy{display:flex;flex-direction:column;gap:4px;min-width:0}
.chat-brand-copy strong{font-size:18px;line-height:1}
.chat-brand-copy span{font-size:12px;color:#e2f5ed;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.header-menu{width:42px;height:42px;border:0;background:transparent;color:#fff;font-size:27px;line-height:1;border-radius:50%}
.header-menu:hover,.header-menu[aria-expanded=true]{background:#ffffff26}
.header-dropdown{position:absolute;right:10px;top:58px;min-width:205px;background:#fff;color:#202c33;border-radius:5px;box-shadow:0 6px 24px #111b2138;display:flex;flex-direction:column;padding:5px 0;z-index:8}
.header-dropdown button,.header-dropdown a{display:block;width:100%;border:0;background:none;color:inherit;text-align:left;text-decoration:none;font-size:14px;padding:14px 18px}
.header-dropdown button:hover,.header-dropdown a:hover{background:#f0f2f5}
.secure-note{align-self:center;margin:11px auto 0;padding:6px 10px;border-radius:7px;background:#fff6d5;color:#54656f;font-size:11px;text-align:center;box-shadow:0 1px 2px #111b2118;z-index:1}
.progress-wrap{margin:8px 6% 0;padding:9px 12px;background:#fffc;border-radius:8px;z-index:1;box-shadow:0 1px 2px #111b2114}
.progress-meta{display:flex;justify-content:space-between;margin-bottom:7px;font-size:12px;color:#54656f;font-weight:700}
.progress-track{height:5px;border-radius:10px;background:#dce5df;overflow:hidden}
.progress-fill{height:100%;width:0;background:#00a884;transition:width .2s}
.chat-area{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:16px max(5%,22px) 22px;background:#efeae2 url('assets/chat-pattern.svg') repeat;background-size:400px 400px;scrollbar-color:#bfc8c7 transparent}
.date-pill{width:max-content;margin:0 auto 22px;padding:6px 11px;border-radius:7px;background:#e2f0f2;color:#54656f;font-size:11px;box-shadow:0 1px 2px #111b2119}
.message{position:relative;max-width:min(85%,530px);width:max-content;min-width:104px;margin:0 0 12px;padding:9px 12px 19px;border-radius:0 8px 8px 8px;background:#fff;box-shadow:0 1px 1px #111b2126;font-size:16px;line-height:1.42;overflow-wrap:anywhere}
.message::before{content:'';position:absolute;left:-7px;top:0;border-top:8px solid #fff;border-left:8px solid transparent}
.message::after{content:attr(data-time);position:absolute;bottom:4px;right:9px;color:#667781;font-size:10px;line-height:1}
.message p{margin:0 0 10px}
.message p:last-child{margin-bottom:0}
.message.question{font-weight:600}
.message.answer{margin-left:auto;background:#d9fdd3;border-radius:8px 0 8px 8px;padding-right:48px;max-width:min(80%,500px)}
.message.answer::before{left:auto;right:-7px;border-top-color:#d9fdd3;border-left:0;border-right:8px solid transparent}
.message.answer::after{content:attr(data-time)}
.message.muted{font-size:14px;color:#54656f}
.message-title{font-size:14px;font-weight:700;color:#075e54;margin-bottom:7px!important}
.audio-label{font-size:13px;color:#54656f;margin:12px 0 5px!important;font-weight:700}
.audio-help{font-size:13px;color:#54656f}
.voice-note{width:min(320px,calc(100vw - 92px));display:flex;align-items:center;gap:9px;padding:6px 4px 5px 0}
.voice-play{width:43px;height:43px;flex:none;border:0;border-radius:50%;background:#d9f1e6;color:#075e54;font-size:20px;line-height:1;display:grid;place-items:center}
.voice-play:hover{background:#c4e9d8}
.voice-track{min-width:0;flex:1;position:relative;padding-top:4px}
.voice-wave{height:28px;display:flex;align-items:center;justify-content:space-between;gap:1px;pointer-events:none}
.voice-bar{flex:1 1 2px;min-width:1px;max-width:3px;border-radius:3px;background:#a7b8b0}
.voice-bar.played{background:#00a884}
.voice-seek{position:absolute;inset:0 0 12px;width:100%;height:28px;opacity:0;cursor:pointer}
.voice-track:focus-within{outline:2px solid #ffc857;outline-offset:2px;border-radius:4px}
.voice-time{display:block;color:#667781;font-size:11px;line-height:14px}
.voice-speed{min-width:38px;height:29px;flex:none;border:0;border-radius:15px;background:#e7eeeb;color:#075e54;font-size:12px;font-weight:800}
.voice-speed:hover{background:#d8e9e1}
.voice-media{display:none}
.answer-area{background:#f0f2f5;box-shadow:0 -1px 2px #111b2112;padding:12px max(5%,16px) calc(12px + env(safe-area-inset-bottom));max-height:48%;overflow-y:auto;display:flex;flex-direction:column;gap:8px}
.answer-area:empty{display:none}
.choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.choices.one{grid-template-columns:1fr}
.choice,.primary,.secondary,.text-button{min-height:48px;padding:10px 13px;border-radius:11px;font-size:15px;font-weight:700;line-height:1.25;text-align:center}
.choice{border:1px solid #c7d6d1;background:#fff;color:#075e54}
.choice:hover,.choice:focus-visible{background:#e7f5ed;border-color:#00a884}
.primary{width:100%;border:0;background:#008f70;color:#fff}
.primary:hover,.primary:focus-visible{background:#007f64}
.renewal-link{display:flex;align-items:center;justify-content:center;box-sizing:border-box;text-decoration:none}
.primary:disabled{background:#a1b9b2;cursor:wait}
.secondary{width:100%;border:1px solid #c5d8d1;background:#fff;color:#075e54}
.text-button{width:100%;border:0;background:transparent;color:#075e54;font-size:14px}
.back{align-self:center;min-height:34px;border:0;background:transparent;color:#54656f;font-size:13px;font-weight:700;padding:4px 8px}
.field-label{display:block;color:#54656f;font-size:13px;font-weight:700;margin-bottom:6px}
.field{width:100%;height:51px;border:1px solid #d1d7db;border-radius:10px;padding:0 14px;background:#fff;color:#202c33;font-size:17px;outline:none}
.field:focus{border-color:#00a884;box-shadow:0 0 0 3px #00a88422}
.hint{font-size:13px;line-height:1.45;color:#54656f;margin:5px 0}
.error{color:#a12727;font-size:13px;font-weight:700;margin:5px 0}
.form-actions{margin-top:9px}
.province-filter{margin-bottom:7px}
.province-list{max-height:185px;overflow-y:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:2px}
.province-list .choice{font-size:13px;min-height:42px}
.asset-card{display:flex;align-items:center;gap:9px;padding:11px;border:1px solid #d1ded7;border-radius:9px;background:#fff;color:#335146;font-size:14px;font-weight:700;overflow-wrap:anywhere}
.asset-card .icon{font-size:22px}
.recording{padding:10px;border-radius:9px;background:#fff0e8;color:#9d3c26;font-weight:700;text-align:center}
.summary{max-width:min(100%,560px);margin:0 0 14px;padding:8px 13px;background:#fff;border-radius:8px;box-shadow:0 1px 2px #111b211a}
.summary-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid #e9edef;font-size:14px}
.summary-row:last-child{border-bottom:0}
.summary-row div{min-width:0}
.summary-row small{display:block;color:#667781;margin-bottom:3px}
.summary-row strong{display:block;overflow-wrap:anywhere}
.edit{flex:none;border:1px solid #c9dbd4;border-radius:7px;padding:7px 10px;background:#edf8f2;color:#075e54;font-size:12px;font-weight:700}
.complete-badge{padding:10px;border-radius:8px;background:#ddf7e7;color:#075e54;font-weight:700}
@media(max-width:800px){body{padding:0;background:#efeae2}.chat-list{display:none}.chat-app{width:100%;height:100dvh;max-height:none;min-height:0;box-shadow:none}.chat-header{height:61px;min-height:61px;padding:0 12px}.chat-area{padding:15px 15px 20px;background-size:360px 360px}.answer-area{max-height:52%;padding-left:12px;padding-right:12px}.message{max-width:90%}}
@media(max-width:360px){.chat-brand-copy strong{font-size:16px}.chat-brand-copy span{font-size:11px}.message{font-size:15px}.choice,.primary,.secondary{font-size:14px}}
