@import "https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+TC:wght@400;500;600;700&display=swap";
:root{--green:#006c56;--green-dark:#005442;--ink:#20453b;--muted:#788780;--line:#dfe7e2;--soft:#edf3ef;--page:#eef2ef}*{box-sizing:border-box}html,body{overscroll-behavior:none;height:100%;margin:0}body{background:var(--page);color:var(--ink);font:14px/1.6 DM Sans,Noto Sans TC,sans-serif}button,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}button,textarea,select{-webkit-tap-highlight-color:transparent}button:focus-visible,textarea:focus-visible,select:focus-visible{outline-offset:2px;outline:3px solid #69b9a3}h1,p{margin:0}.page-shell{height:100dvh;height:var(--app-height,100dvh);place-items:center;padding:24px;display:grid}.assistant-card{border:1px solid var(--line);background:#fff;border-radius:20px;flex-direction:column;width:min(100%,620px);height:min(900px,100%);min-height:0;display:flex;overflow:hidden;box-shadow:0 16px 60px #193e3510}.brand-row{flex:none;align-items:center;gap:10px;padding:18px 22px 12px;display:flex}.brand-seal{border:1.5px solid var(--green);width:36px;height:36px;color:var(--green);border-radius:50%;place-items:center;font-size:21px;display:grid}.brand-name{color:var(--green);font-size:11px;line-height:1.5;display:grid}.brand-name span{font-size:10px}.language-select{margin-left:auto}.language-select select{border:1px solid var(--line);color:var(--ink);background:#fff;border-radius:18px;min-height:36px;padding:7px 10px;font-size:12px}.chat-title{border-bottom:1px solid var(--line);flex:none;justify-content:space-between;align-items:baseline;gap:8px;padding:0 22px 14px;display:flex}.chat-title h1{letter-spacing:-.5px;font-size:19px}.chat-title span{color:var(--muted);font-size:11px}.chat-title i{background:#33816c;border-radius:50%;width:6px;height:6px;margin-right:6px;display:inline-block}.conversation{overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#cedbd4 transparent;background:#f3f5f2;flex-direction:column;flex:1;gap:18px;min-height:0;padding:18px 20px 24px;display:flex;overflow-y:auto}.conversation-date{color:#91a098;align-self:center;margin-bottom:4px;font-size:11px}.message{flex:none;align-items:flex-start;gap:9px;max-width:91%;display:flex}.message.assistant{align-self:flex-start}.message.user{align-self:flex-end;max-width:85%}.message-avatar{border:1px solid var(--line);width:30px;height:30px;color:var(--green);background:#fff;border-radius:9px;flex:none;place-items:center;font-size:18px;display:grid}.message-body{min-width:0}.message-name{color:var(--muted);margin-bottom:5px;font-size:10px;display:block}.message p{white-space:pre-wrap;overflow-wrap:anywhere;background:#fff;border:1px solid #e6ebe5;border-radius:3px 13px 13px;padding:11px 14px;font-size:14px;line-height:1.8}.message.user p{background:#d8eee3;border-color:#cce5d7;border-radius:13px 3px 13px 13px}.conversation-hint{text-align:center;color:#95a29a;margin:30px 0;font-size:12px}.composer{border-top:1px solid var(--line);background:#fff;flex:none;padding:14px 16px 10px}.input-row{align-items:stretch;gap:9px;display:flex}.input-row textarea{resize:vertical;border:1px solid var(--line);width:100%;min-width:0;height:76px;max-height:130px;color:var(--ink);background:#fafcf9;border-radius:11px;flex:1;padding:12px;font-size:16px;line-height:1.6;display:block}.input-row textarea::placeholder{color:#9aa79f;font-size:13px}.send-button{background:var(--green);color:#fff;border:0;border-radius:11px;flex-direction:column;flex:none;justify-content:center;align-items:center;gap:3px;width:55px;font-size:11px;display:flex}.send-button svg{width:22px;height:22px}.send-button:hover:not(:disabled){background:var(--green-dark)}.send-button:disabled{color:#98a79e;opacity:1;background:#e8eeea}.voice-row{align-items:center;gap:10px;min-height:48px;margin-top:10px;display:flex}.mode-switch{color:#61756a;background:0 0;border:0;border-radius:8px;flex-direction:column;flex:none;justify-content:center;align-self:stretch;align-items:center;gap:1px;width:46px;font-size:10px;display:flex}.mode-switch svg{width:23px;height:23px}.mode-switch:hover{background:var(--soft)}.hold-button{height:48px;color:var(--ink);touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;background:#eef4ef;border:1px solid #d5e2d9;border-radius:10px;flex:1;justify-content:center;align-items:center;gap:10px;font-size:15px;font-weight:600;transition:background .15s,color .15s;display:flex}.hold-button.is-listening{background:var(--green);border-color:var(--green);color:#fff}.voice-bars{align-items:center;gap:3px;height:20px;display:flex}.voice-bars i{background:currentColor;border-radius:2px;width:2px;height:7px;display:block}.voice-bars i:nth-child(2),.voice-bars i:nth-child(4){height:13px}.voice-bars i:nth-child(3){height:19px}.is-listening .voice-bars i{animation:.7s ease-in-out infinite alternate wave}.is-listening .voice-bars i:nth-child(2n){animation-delay:.2s}.typing-hint{color:#96a299;flex:1;font-size:11px}.composer-status{text-align:center;color:#8c9b92;min-height:17px;margin-top:7px;font-size:10px}.error-message{color:#b04431;margin-bottom:8px;font-size:12px}.permission-notice{color:#6d7d73;margin-bottom:8px;font-size:12px}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}@keyframes wave{to{transform:scaleY(.4)}}@media (max-width:640px){.page-shell{padding:0}.assistant-card{width:100%;height:100%;box-shadow:none;border:0;border-radius:0}.brand-row{padding:calc(12px + env(safe-area-inset-top)) 16px 8px}.chat-title{padding:0 16px 11px}.chat-title h1{font-size:17px}.chat-title span{font-size:10px}.conversation{gap:16px;padding:16px 12px 22px}.composer{padding:11px 12px max(8px,env(safe-area-inset-bottom))}.message{max-width:94%}.message p{padding:10px 12px;font-size:14px}.input-row textarea{height:68px}.send-button{width:50px}.hold-button{height:48px}.voice-row{margin-top:8px}.composer-status{margin-top:6px}}@media (max-width:360px){.chat-title span{display:none}.brand-row{padding-left:12px;padding-right:12px}.message{max-width:98%}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;animation:none!important}}
