.support-page{background:#f4f8f5}
.support-header{height:82px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100% - 1180px)/2))}
.support-header .brand img{width:40px;height:40px;border-radius:8px}
.support-header .brand strong{font-size:23px}
.support-back{font-size:14px;display:flex;align-items:center;gap:10px;min-height:44px}
.chat-shell{display:grid;grid-template-columns:252px minmax(0,1fr);gap:32px;width:min(1180px,calc(100% - 48px));height:calc(100dvh - 146px);min-height:480px;max-height:860px;margin:32px auto}
.support-sidebar{display:flex;flex-direction:column;padding:20px 0;min-width:0}
.support-intro h1{font-size:28px;line-height:1.45;max-width:220px;font-weight:650}
.support-intro p{font-size:14px;line-height:1.9;color:var(--muted);margin-top:14px;max-width:220px}
.support-topics{display:grid;gap:8px;margin-top:32px}
.support-topics a{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border:1px solid transparent;border-radius:7px;min-height:52px}
.support-topics a:hover{background:#e9f2eb}
.support-topics a[aria-current]{background:#fff;border-color:#bad4c2;color:var(--green);font-weight:600}
.support-topics a>span:last-child{font-size:18px}
.support-history-note{margin-top:auto;padding-top:24px;font-size:12px;color:var(--muted)}
.chat-conversation{display:flex;flex-direction:column;min-width:0;min-height:0;background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.conversation-heading{display:flex;align-items:center;gap:12px;flex-shrink:0;padding:18px 22px;border-bottom:1px solid var(--line)}
.support-avatar{display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;border-radius:50%;background:var(--green);color:#fff;font-weight:650;font-size:22px}
.conversation-heading h2{font-size:17px;font-weight:600}
.conversation-heading p{font-size:12px;color:var(--muted);margin-top:4px}
.conversation-topic{margin-left:auto;font-size:12px;color:var(--green-mid);white-space:nowrap}
.chat-notice{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:10px 20px;background:#fff5ec;border-bottom:1px solid #f0d7c0;font-size:13px;flex-shrink:0}
.chat-notice[hidden]{display:none}
.chat-notice button{flex-shrink:0;background:none;border:0;text-decoration:underline;color:var(--green);min-height:32px;cursor:pointer}
.chat-messages{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:24px 10px;background:#fafcf9;scrollbar-gutter:stable}
.chat-empty{padding:56px 12px;text-align:center;color:var(--muted);font-size:14px}
.chat-message{display:flex;flex-direction:column;align-items:flex-start;margin-bottom:20px}
.chat-message.is-mine{align-items:flex-end}
.message-meta{display:flex;gap:10px;color:var(--muted);font-size:11px;margin-bottom:5px}
.message-bubble{padding:11px 15px;border:1px solid #e0e8e1;border-radius:3px 12px 12px 12px;background:#fff;max-width:82%;white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.8}
.is-mine .message-bubble{background:#dceee1;border-color:#cee2d4;border-radius:12px 3px 12px 12px}
.chat-message.is-system{align-items:center}
.is-system .message-bubble{background:none;border:0;font-size:12px;color:var(--muted);text-align:center;padding:0}
.message-bubble img{display:block;max-width:min(220px,100%);max-height:260px;object-fit:contain}
.message-state{font-size:11px;color:var(--muted);margin-top:5px;display:flex;align-items:center;gap:10px}
.message-state button{color:#a33214;background:none;border:0;text-decoration:underline;min-height:32px;cursor:pointer}
.chat-composer{flex-shrink:0;border-top:1px solid var(--line);padding:14px 10px 16px}
.chat-attachment{min-width:0;padding-bottom:10px;font-size:12px;color:var(--muted)}
.chat-attachment[hidden]{display:none}
.chat-attachment-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(64px,1fr));gap:8px;max-height:144px;overflow:auto;padding:4px 0;margin:5px 0}
.chat-attachment-item{position:relative;min-width:0}
.chat-attachment-item img{display:block;width:100%;height:64px;object-fit:contain;background:#f4f8f5;border:1px solid var(--line);border-radius:4px}
.chat-attachment-item button{position:absolute;right:0;top:0;display:grid;place-items:center;width:30px;height:30px;border:0;border-radius:0 4px 0 4px;background:#fff;color:var(--green);font-size:21px;cursor:pointer}
.chat-attachment-item button:disabled{opacity:.4;cursor:default}
.chat-attachment small{font-size:11px}
.composer-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.chat-composer textarea{display:block;resize:vertical;width:100%;min-height:64px;max-height:160px;padding:8px 0;border:0;background:transparent;color:var(--ink);font:inherit;font-size:15px;line-height:1.6;outline-offset:3px}
.chat-composer textarea:focus-visible{outline:2px solid #176ba0}
.chat-composer textarea:disabled{opacity:.65}
.composer-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:7px}
.composer-actions small{min-width:0;flex:1;font-size:11px;color:var(--muted)}
.composer-buttons{display:flex;align-items:center;gap:8px;flex-shrink:0}
.chat-image-select{display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--green);cursor:pointer}
.chat-image-select:disabled{opacity:.4;cursor:default}
.chat-image-select:focus-visible,.chat-attachment-item button:focus-visible{outline:2px solid #176ba0;outline-offset:2px}
.composer-actions .button{min-height:42px;padding:8px 17px;font-size:14px;gap:14px;cursor:pointer;border:0}
.composer-actions .button:disabled{opacity:.5;cursor:default}
.chat-noscript{padding:12px}
@media(max-width:800px){
.support-header{height:66px;padding:0 16px}
.support-header .brand strong{font-size:20px}.support-header .brand small{display:none}
.support-header .brand img{width:34px;height:34px}.support-back{font-size:13px}
.chat-shell{width:100%;height:calc(100dvh - 66px);min-height:400px;max-height:none;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);gap:0;margin:0}
.support-sidebar{padding:10px 14px;border-bottom:1px solid var(--line)}
.support-intro,.support-history-note{display:none}
.support-topics{display:flex;gap:6px;margin:0;overflow:auto}
.support-topics a{flex:1 0 auto;justify-content:center;min-height:40px;padding:8px 11px;font-size:13px;border-radius:5px}
.support-topics a>span:last-child{display:none}
.chat-conversation{border:0;border-radius:0}
.conversation-heading{padding:12px 16px;gap:10px}.conversation-heading h2{font-size:16px}.conversation-topic{font-size:11px}
.support-avatar{width:36px;height:36px;flex-basis:36px;font-size:20px}
.chat-messages{padding:18px 10px}.message-bubble{max-width:88%;font-size:15px}
.chat-composer{padding:10px 10px calc(12px + env(safe-area-inset-bottom))}
.chat-composer textarea{min-height:52px;max-height:104px}.composer-actions small{font-size:10px}
.chat-notice{padding:8px 14px}
}
@media(max-width:360px){.conversation-topic{display:none}.support-topics a{padding-inline:8px}.composer-actions small{max-width:130px}}
.support-embedded .support-header{display:none}
.support-embedded .chat-shell{width:100%;height:100dvh;min-height:0;max-height:none;margin:0;gap:20px;padding:0 10px;grid-template-columns:200px minmax(0,1fr)}
.support-embedded .chat-conversation{border-top:0;border-bottom:0;border-radius:0}
.support-launcher{position:fixed;right:24px;bottom:24px;z-index:90;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:64px;height:64px;border:0;border-radius:50%;background:var(--green);color:#fff;box-shadow:0 4px 14px #123d3226;cursor:pointer;font:inherit;font-size:12px}
.support-launcher .fa{font-size:24px}
.support-launcher b{position:absolute;top:-4px;right:-5px;min-width:23px;height:23px;padding:0 5px;border:2px solid #fff;border-radius:12px;background:#b83b24;color:#fff;font-size:11px;line-height:19px;font-weight:600}
.support-launcher b[hidden]{display:none}
.support-launcher:focus-visible,.support-dialog-bar button:focus-visible{outline:3px solid #176ba0;outline-offset:3px}
.support-announcement{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.support-modal-open{overflow:hidden}
.support-dialog{width:min(1080px,calc(100% - 48px));height:min(820px,calc(100dvh - 64px));max-width:none;max-height:none;margin:auto;padding:0;border:0;border-radius:12px;background:#fff;color:var(--ink);overflow:hidden}
.support-dialog[open]{display:flex;flex-direction:column}
.support-dialog::backdrop{background:#102b245c}
.support-dialog-bar{height:54px;flex:0 0 54px;padding:0 20px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}
.support-dialog-bar strong{font-size:16px;font-weight:600}
.support-dialog-bar button{min-height:44px;display:flex;align-items:center;gap:16px;padding:0 4px;border:0;background:none;color:var(--green);font:inherit;font-size:13px;cursor:pointer}
.support-dialog-bar button span{font-size:27px;font-weight:400}
.support-dialog iframe{display:block;width:100%;min-height:0;flex:1;border:0}
@media(max-width:800px){
.support-launcher{right:16px;bottom:calc(88px + env(safe-area-inset-bottom));width:58px;height:58px}
.support-dialog{width:100%;height:100dvh;border-radius:0}
.support-dialog-bar{padding:0 16px}
.support-embedded .chat-shell{padding:0 10px;gap:0;grid-template-columns:minmax(0,1fr)}
}
