/* Persistent support — isolated widget and namespaced administration. */
:host{all:initial;font-family:Tahoma,Arial,sans-serif;color:#302540}*{box-sizing:border-box}.rt-widget{position:fixed;right:24px;bottom:24px;z-index:2147483000;font-family:Tahoma,Arial,sans-serif;color:#302540;line-height:1.8}.rt-widget button,.rt-widget input,.rt-widget textarea,.rt-widget select{font:inherit}.rt-widget button{cursor:pointer}.rt-widget [hidden]{display:none!important}.rt-launch{width:62px;height:62px;display:grid;place-items:center;border:3px solid #ffffffb0;border-radius:24px 24px 10px 24px;background:linear-gradient(140deg,#9571d2,#6947a7);color:#fff;box-shadow:0 12px 35px #60339140;transition:transform .2s}.rt-launch:hover{transform:translateY(-3px)}.rt-dot{position:absolute;right:1px;top:0;width:13px;height:13px;border-radius:50%;background:#64c9af;border:2px solid white}.rt-window{position:absolute;right:0;bottom:78px;width:380px;height:min(620px,calc(100dvh - 120px));background:#fcfaff;border:1px solid #e5d9ef;border-radius:26px;box-shadow:0 24px 90px #39264b30;overflow:hidden;display:flex;flex-direction:column;animation:rt-rise .25s ease-out}.rt-head{display:flex;align-items:center;gap:12px;background:linear-gradient(115deg,#7852b2,#9c7ac8);padding:19px;color:#fff;min-height:87px}.rt-head b{font-size:14px}.rt-head small{display:block;font-size:10px;color:#efe5f7}.rt-avatar{width:42px;height:44px;border:1px solid #ffffff60;border-radius:15px;background:#ffffff20;display:grid;place-items:center;font-size:30px}.rt-close{margin-right:auto;border:0;background:#ffffff20;border-radius:50%;color:#fff;width:29px;height:29px;font-size:22px;display:grid;place-items:center;line-height:1}.rt-body{min-height:0;overflow:auto;flex:1;padding:18px;display:flex;flex-direction:column}.rt-intro{padding:6px 2px 18px}.rt-intro>span{font-size:10px;color:#9b82b3}.rt-intro h3{font-size:17px;margin:12px 0 7px;line-height:1.9}.rt-intro p,.rt-empty{font-size:11px;color:#95849f;line-height:2}.rt-new{display:block;text-decoration:none;text-align:center;border:0;background:#8059b9;color:white;border-radius:13px;padding:11px;font-size:12px;width:100%}.rt-new:disabled{opacity:.45}.rt-threads{margin-top:16px}.rt-threads>button{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 12px;border:1px solid #ebe1f3;border-radius:15px;background:white;width:100%;margin:8px 0;text-align:right;color:#705785}.rt-threads b{display:block;font-size:12px}.rt-threads small{display:block;font-size:9px;color:#a28fab;margin-top:4px}.rt-threads i{font-style:normal;font-size:11px;color:white;background:#7d5bb1;border-radius:50%;padding:2px 8px}.rt-pages{display:flex;align-items:center;justify-content:center;gap:12px;font-size:10px;margin-top:12px}.rt-pages button,.rt-back,.rt-export{border:0;background:#eee6f5;color:#8767a5;padding:6px 11px;border-radius:9px;font-size:10px}.rt-pages button:disabled{opacity:.4}.rt-create{display:grid;gap:12px}.rt-create h3{font-size:16px}.rt-create label{display:grid;gap:6px;font-size:11px;color:#8b709f}.rt-create input,.rt-create select,.rt-create textarea{width:100%;padding:10px;border:1px solid #ded0ea;background:white;border-radius:10px;color:#574363}.rt-create textarea{resize:vertical}.rt-conversation-top{display:flex;justify-content:space-between;gap:10px}.rt-subject{font-size:13px;line-height:1.9;margin:14px 0 6px}.rt-state{font-size:9px;color:#9a86aa;display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.rt-resolve{border:0;background:none;color:#9472b3;font-size:9px}.rt-log{flex:1;min-height:110px;overflow:auto;padding:5px 2px;scroll-behavior:smooth}.rt-bubble{width:90%;margin:10px 0;padding:11px 13px;border-radius:16px 16px 5px 16px;background:#eae0f6}.rt-staff{margin-right:auto;border-radius:16px 16px 16px 5px;background:#e5f1ed}.rt-bubble p{font-size:12px;line-height:2;white-space:pre-wrap;overflow-wrap:anywhere;margin:4px 0}.rt-bubble small{font-size:9px;color:#9680aa}.rt-bubble time{display:block;font-size:8px;color:#a18dab}.rt-older{border:1px solid #dfd0ea;border-radius:12px;background:white;color:#9478a9;display:block;margin:auto;padding:7px;font-size:10px}.rt-compose{background:#fff;padding:12px 15px;border-top:1px solid #eee4f4}.rt-compose form{display:flex;gap:8px;align-items:center}.rt-compose textarea{resize:none;border:1px solid #e6dcee;border-radius:12px;padding:10px;min-height:57px;max-height:120px;flex:1;min-width:0;font-size:12px;color:#584067;background:#fcfaff}.rt-send{border:0;border-radius:13px;background:#8059b9;color:#fff;width:38px;height:40px;font-size:22px}.rt-send:disabled{opacity:.5}.rt-compose>small{font-size:8px;color:#b09dbb;display:block;margin-top:5px}.rt-error{font-size:10px;color:#b45a74;padding:0 17px;margin:0;max-height:60px;overflow:auto}.rt-sr{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden}.rt-widget :focus-visible{outline:3px solid #56b8a1;outline-offset:2px}
.rt-admin{border:1px solid #e3d9ee;background:white;border-radius:22px;overflow:hidden}.rt-admin-toolbar{padding:20px;background:#faf7fd;display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}.rt-search{display:flex;gap:10px;flex:1}.rt-search input{min-width:130px}.rt-inbox{display:grid;grid-template-columns:290px 1fr;min-height:580px}.rt-thread-list{border-left:1px solid #ece4f3;max-height:800px;overflow:auto;padding:13px}.rt-thread-list>button{width:100%;padding:17px;border:1px solid #ece4f3;border-radius:15px;margin:6px 0;text-align:right;background:#fcfaff;display:grid;gap:5px;color:#6c567d}.rt-thread-list>button.selected{background:#ede3f7;border-color:#c7aee0}.rt-thread-list b{font-size:13px}.rt-thread-list span,.rt-thread-list small,.rt-thread-list time{font-size:10px}.rt-thread-list i{font-size:10px;color:#458e7d;font-style:normal}.rt-admin-conversation{padding:25px;min-width:0}.rt-admin-empty{text-align:center;padding:110px 0;color:#aa90be;font-size:36px}.rt-admin-empty h2{font-size:21px}.rt-admin-empty p{font-size:13px}.rt-conversation-title{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.rt-conversation-title>div{margin-left:auto}.rt-conversation-title h2{font-size:19px}.rt-conversation-title small{font-size:10px;color:#a38bb6}.rt-conversation-title select{width:auto;min-width:90px}.rt-admin-log{height:360px;overflow:auto;background:#fcfaff;border-radius:18px;padding:18px;margin:20px 0}.rt-admin-message{max-width:85%;background:#ede4f7;border-radius:16px;padding:12px 16px;margin-bottom:12px}.rt-admin-message.staff{background:#e7f2ed;margin-right:auto}.rt-admin-message.note{background:#fff1d9;border:1px dashed #e0bf85;max-width:100%}.rt-admin-message p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:2;font-size:13px;margin:5px 0}.rt-admin-message small{font-size:10px;color:#9b85a9}.rt-admin-reply{display:grid;gap:10px}.rt-admin-reply>div{display:flex;align-items:center;justify-content:space-between;gap:10px}.rt-admin-reply label{display:flex;align-items:center;gap:8px;font-size:12px}.rt-admin-reply input{width:auto}.rt-settings{padding:25px;border-top:1px solid #e5d7ef}.rt-settings label{display:block;margin:14px 0}.rt-settings input[type=checkbox]{width:auto}.rt-settings form{max-width:700px}.rt-choice-dialog{border:1px solid #e4d8ee;border-radius:28px;width:min(920px,calc(100% - 24px));max-height:90dvh;padding:0;background:#fcfaff;color:#3e2d50}.rt-choice-dialog::backdrop{background:#35244370;backdrop-filter:blur(5px)}.rt-full-choice{font-family:Tahoma,Arial,sans-serif;padding:35px;animation:rt-rise .4s ease-out}.rt-choice-top{display:flex;align-items:center;justify-content:space-between;color:#9a7bae;font-size:11px}.rt-choice-close{width:30px;height:30px;border:0;border-radius:50%;background:#efe5f6;color:#9270ac;font-size:23px}.rt-full-choice h1{font-size:30px;margin:24px 0 10px;line-height:1.7}.rt-full-choice>p{font-size:13px;color:#9986a6;line-height:2}.rt-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:25px 0}.rt-choice-grid article{padding:25px;border:1px solid #e2d2ee;border-radius:23px;background:#f4eef9;display:flex;flex-direction:column;align-items:stretch}.rt-choice-grid article:nth-child(2){background:#eaf4ef;border-color:#d0e5dc}.rt-choice-icon{display:grid;place-items:center;width:50px;height:50px;font-size:28px;color:#a080bc;background:#e9ddf3;border-radius:17px;margin-bottom:15px}.rt-choice-icon.mint{background:#daeee3;color:#6da18c}.rt-choice-grid h2{font-size:19px;margin:5px 0}.rt-choice-grid p,.rt-choice-grid li{font-size:12px;line-height:2.1;color:#95819e}.rt-choice-grid ul{padding-right:17px}.rt-result-options{max-height:210px;overflow:auto;margin:15px 0;flex:1}.rt-result-options label{display:flex;gap:10px;background:#fff9;padding:12px;border-radius:11px;margin:6px 0;cursor:pointer}.rt-result-options input{width:auto}.rt-result-options b,.rt-result-options small{display:block;font-size:11px}.rt-result-options small{color:#a68db6;font-size:10px;margin-top:5px}.rt-choice-grid button{border:0;padding:13px 17px;border-radius:12px;background:#8059b3;color:white;cursor:pointer;margin-top:auto;font:inherit;font-size:12px}.rt-choice-grid article:nth-child(2) button{background:#649e87}.rt-choice-grid button:disabled{opacity:.45;cursor:default}.rt-choice-back{font-size:12px;color:#9274a9;text-decoration:none}.rt-choice-note{color:#a75974!important}.rt-choice-dialog button:focus-visible{outline:3px solid #52b6a0;outline-offset:3px}
@keyframes rt-rise{from{opacity:0;transform:translateY(15px)}to{opacity:1;transform:translateY(0)}}@media(max-width:850px){.rt-inbox{grid-template-columns:1fr}.rt-thread-list{max-height:260px;border-left:0;border-bottom:1px solid #ece4f3;display:grid;grid-template-columns:1fr 1fr;gap:8px}.rt-search{flex-wrap:wrap}.rt-admin-conversation{padding:18px}.rt-admin-log{height:330px}.rt-choice-grid{grid-template-columns:1fr}.rt-full-choice{padding:22px}.rt-full-choice h1{font-size:25px}}@media(max-width:480px){.rt-widget{right:14px;bottom:max(14px,env(safe-area-inset-bottom))}.rt-launch{width:56px;height:56px;border-radius:21px}.rt-window{right:-4px;width:calc(100vw - 20px);height:min(620px,calc(100dvh - 100px));bottom:70px}.rt-admin-toolbar{padding:13px}.rt-thread-list{grid-template-columns:1fr}.rt-full-choice{padding:18px}.rt-choice-grid article{padding:20px}}
@media(prefers-reduced-motion:reduce){.rt-window,.rt-launch,.rt-full-choice{animation:none!important;transition:none!important}.rt-log{scroll-behavior:auto}}@media print{.rt-widget,rt-support{display:none!important}}
/* FAQ guide and expanded admin knowledge tools */
.rt-guide{padding:6px 0 20px}.rt-guide-label{display:inline-block;padding:5px 11px;border-radius:30px;background:#eee4fa;color:#7954b0;font-size:11px}.rt-guide h3{line-height:1.8;margin:14px 0 8px}.rt-guide>p{font-size:12px;line-height:2;color:#887693}.rt-guide-search{display:grid;gap:9px;margin:20px 0}.rt-guide-search label{font-size:12px}.rt-guide input,.rt-faq-filter{box-sizing:border-box;width:100%;padding:12px;border:1px solid #e4d9ee;border-radius:13px;background:white;font:inherit;color:#3d3050}.rt-guide-result:not(:empty){padding:18px;border:1px solid #dfd4eb;background:#f6f0fb;border-radius:18px;margin:18px 0;font-size:13px;line-height:2}.rt-faq-list details{border:1px solid #e7deef;border-radius:15px;padding:12px;margin:10px 0;background:white}.rt-faq-list summary{font-size:12px;line-height:1.9;cursor:pointer;color:#654386}.rt-faq-list p{font-size:12px;line-height:2.1;color:#72637e;white-space:pre-wrap}.rt-faq-list{margin-top:14px}.rt-open-guide,.rt-suggestion{border:1px solid #e1d5ed;background:#f5eefb;color:#755095;border-radius:12px;padding:10px 13px;font:inherit;cursor:pointer;margin:5px 0;display:block;width:100%;text-align:right}.rt-guide-human{margin-top:22px}.rt-guide .rt-new{width:100%}.rt-faq-editor{display:grid;gap:18px;max-height:65vh;overflow:auto;padding:10px 4px}.rt-faq-editor fieldset{border:1px solid #dfd4eb;border-radius:18px;padding:20px;background:#fcfaff}.rt-faq-editor label{display:block;margin:10px 0;font-size:13px}.rt-faq-editor input:not([type=checkbox]),.rt-faq-editor textarea,.rt-faq-editor select{box-sizing:border-box;width:100%;border:1px solid #dfd4eb;border-radius:11px;padding:11px;background:white;font:inherit}.rt-faq-editor textarea{resize:vertical}.rt-faq-editor .faq-remove,.rt-delete{color:#ad5268;background:#fff0f4;border:1px solid #f0d5de;border-radius:10px;padding:9px 13px;cursor:pointer}.rt-macro-search{width:100%;box-sizing:border-box;border:1px solid #e3d8ed;border-radius:10px;padding:10px;font:inherit}.rt-admin-toolbar{flex-wrap:wrap}.rt-faq-form>.primary,.rt-faq-add{margin-top:18px}.rt-admin-log,.rt-guide{overflow-wrap:anywhere}

/* 3.3: shadow-root styles must be applied here, separately from page CSS. */
@media(max-width:800px){
 .rt-widget{right:max(12px,env(safe-area-inset-right));bottom:calc(14px + env(safe-area-inset-bottom) + var(--rt-support-lift,0px));font-size:14px}
 .rt-launch{width:56px;height:56px;touch-action:manipulation}
 .rt-window{position:fixed;inset:calc(12px + var(--rt-visual-top,0px)) 10px auto;width:auto;height:calc(var(--rt-visual-height,100dvh) - 94px - env(safe-area-inset-bottom));max-height:700px;border-radius:24px;bottom:auto;display:flex;flex-direction:column}
 .rt-window[hidden]{display:none!important}.rt-head{flex-shrink:0;padding:16px}.rt-head small{font-size:11px}
 .rt-body{min-height:0;flex:1;overscroll-behavior:contain;padding:18px 14px;scrollbar-width:thin}
 .rt-close{width:44px;height:44px;min-width:44px}.rt-send{width:46px;height:46px;min-width:46px}
 .rt-compose{padding:10px 12px}.rt-compose textarea,.rt-create input,.rt-create textarea,.rt-create select,.rt-guide input,.rt-faq-filter{font-size:16px;line-height:1.8}
 .rt-compose textarea{min-height:50px}.rt-create input,.rt-create select,.rt-guide input{min-height:46px}
 .rt-new,.rt-back,.rt-export,.rt-resolve,.rt-suggestion,.rt-pages button,.rt-faq-list summary{min-height:44px;font-size:13px}
 .rt-bubble{width:94%;font-size:14px;overflow-wrap:anywhere}.rt-bubble p{line-height:2}
 .rt-guide-result{font-size:14px}.rt-faq-list details{padding:8px 11px}.rt-faq-list summary{padding:7px 0;line-height:1.9}
 .rt-conversation-top{gap:8px;flex-wrap:wrap}.rt-state{flex-wrap:wrap;gap:8px}.rt-error{flex-shrink:0;margin:0 12px;font-size:12px}
 .rt-guide p{font-size:14px}.rt-faq-list p{font-size:14px;line-height:2}
}
@media(max-height:520px) and (orientation:landscape){.rt-window{inset:8px 10px;height:calc(100dvh - 16px);max-height:none}.rt-head{padding:8px 12px}.rt-head small{display:none}.rt-launch{width:48px;height:48px}}
@media(prefers-reduced-motion:reduce){.rt-widget *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

:host{--rt-purple:#135bd1;--rt-primary:#135bd1}.rt-launch,.rt-send,.rt-new{background:#135bd1}.rt-head{background:linear-gradient(120deg,#072657,#164d91)}.rt-avatar{background:#ffffff1a;color:white;font:700 13px sans-serif}.rt-window{border-color:#c8dcf6}@media(max-width:680px){.rt-launch{bottom:78px}.rt-window{bottom:143px;max-height:calc(100dvh - 180px)}}
@media(max-width:680px){.rt-widget{bottom:80px;right:14px}.rt-window{bottom:70px;height:min(620px,calc(100dvh - 200px));max-height:calc(100dvh - 200px)}}

:host([admin]) .rt-widget{right:auto;left:24px;bottom:24px}:host([admin]) .rt-window{right:auto;left:0}@media(max-width:800px){:host([admin]) .rt-widget{left:16px;bottom:18px}:host([admin]) .rt-window{left:0;right:auto;width:min(380px,calc(100vw - 32px));bottom:70px;max-height:calc(100dvh - 110px)}}
