.tp-resource-text{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:16px;line-height:1.85;max-height:55dvh;overflow:auto;padding:20px;border:1px solid var(--line);border-radius:12px;background:#07110b;color:var(--text);margin:0;user-select:text}.tp-resource-image{display:block;max-width:100%;max-height:65dvh;margin:auto;border-radius:12px;object-fit:contain}.tp-resource-video{width:100%;max-height:65dvh;border-radius:12px;background:#000}.tp-resource-pdf{width:100%;height:65dvh;border:0;border-radius:12px;background:#fff}.tp-material .row.wrap{gap:8px}.tp-material .row.wrap button{white-space:normal;text-align:center}.tp-community{max-width:calc(100% - 24px);position:fixed;right:max(18px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));z-index:70;color:#edf8ef;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}.tp-community *{box-sizing:border-box}.tp-community [hidden]{display:none!important}.tp-community button,.tp-community input,.tp-community textarea{font:inherit}.tp-chat-launch{display:flex;align-items:center;gap:10px;min-height:44px;padding:8px 12px;border:1px solid #39ff75;border-radius:16px;background:#24ff62;color:#062511;font-size:13px;font-weight:750;cursor:pointer;box-shadow:0 12px 38px #0009}.tp-chat-symbol{font-size:22px;line-height:1}.tp-chat-badge{display:grid;place-content:center;min-width:25px;height:25px;padding:0 5px;border-radius:20px;background:#071a0d;color:#fff;font-size:12px}.tp-chat-window{display:flex;flex-direction:column;width:420px;max-width:calc(100vw - 32px);height:min(680px,83dvh);overflow:hidden;border:1px solid #315b3b;border-radius:20px;background:#09140d;box-shadow:0 25px 80px #000b}.tp-chat-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 19px;background:linear-gradient(130deg,#173e25,#0c2113);border-bottom:1px solid #31503a;flex-shrink:0}.tp-chat-header strong{display:block;font-size:16px}.tp-chat-header small{display:block;font-size:12px;color:#a6c9ae;margin-top:5px}.tp-chat-close{width:37px;height:37px;border:1px solid #3a6245;border-radius:10px;background:#102719;color:#eaffed;font-size:25px!important;cursor:pointer}.tp-chat-info{padding:10px 17px;color:#8eaf98;font-size:12px;line-height:1.5;background:#0b1b11;border-bottom:1px solid #203d29}.tp-chat-alert{display:flex;align-items:center;gap:10px;justify-content:space-between;padding:11px 14px;background:#17351f;border-bottom:1px solid #365940;font-size:13px;line-height:1.5}.tp-chat-alert button{flex-shrink:0;font-size:12px;background:transparent;border:1px solid #4c8158;border-radius:7px;color:#78ff9b;padding:6px;cursor:pointer}.tp-chat-history{padding:8px;text-align:center}.tp-chat-history button{border:0;background:transparent;color:#8dd6a0;font-size:13px;padding:5px;cursor:pointer}.tp-chat-messages{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:15px;scrollbar-width:thin;scrollbar-color:#315d3e transparent;min-height:80px}.tp-chat-empty{font-size:14px;color:#8da795;line-height:1.8;text-align:center;padding:25px 12px}.tp-chat-message{max-width:94%;width:fit-content;padding:12px 13px;margin:0 0 13px;border:1px solid #294432;border-radius:14px 14px 14px 4px;background:#102117}.tp-chat-message.is-mine{margin-left:auto;background:#173823;border-color:#315b3b;border-radius:14px 14px 4px 14px}.tp-chat-author{display:flex;align-items:center;gap:7px;margin-bottom:7px}.tp-chat-author strong{font-size:13px;color:#8bffa9;overflow-wrap:anywhere}.tp-chat-author span{font-size:9px;font-weight:750;letter-spacing:1px;padding:3px 5px;border-radius:4px;background:#285135;color:#a2ffb8}.tp-chat-message-text{font-size:15px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}.tp-chat-picture{margin-top:9px}.tp-chat-picture img{display:block;width:100%;min-width:130px;max-width:290px;max-height:250px;aspect-ratio:4/3;object-fit:contain;background:#061009;border-radius:9px}.tp-chat-picture small{display:block;color:#8eae97;font-size:11px;line-height:1.4;margin-top:5px;overflow-wrap:anywhere}.tp-chat-message-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin-top:10px}.tp-chat-message-footer time{color:#8ea797;font-size:11px}.tp-chat-message-footer>div{display:flex;flex-wrap:wrap;gap:5px}.tp-chat-message-footer button{border:1px solid #35563e;background:#0a1c11;color:#c2e7cc;border-radius:7px;padding:6px 8px;font-size:14px;min-height:36px;cursor:pointer}.tp-chat-attachment{display:flex;gap:10px;align-items:center;justify-content:space-between;border-top:1px solid #31513b;padding:10px 14px;background:#17301e;font-size:13px;overflow-wrap:anywhere}.tp-chat-attachment button{border:0;background:transparent;color:#afffc2;cursor:pointer;font-size:13px}.tp-chat-composer{padding:13px 14px 12px;border-top:1px solid #294633;flex-shrink:0;background:#0c1b12}.tp-chat-input-label{font-size:12px;color:#adc6b5;display:block;margin-bottom:7px}.tp-chat-composer textarea{display:block;width:100%;resize:vertical;max-height:130px;min-height:63px;border:1px solid #355c40;border-radius:11px;background:#06110a;color:#f0fff4;outline:none;padding:11px;font-size:16px;line-height:1.5}.tp-chat-composer textarea:focus{border-color:#48fa7b}.tp-chat-compose-actions{display:flex;align-items:center;gap:9px;margin-top:9px}.tp-chat-upload{position:relative;overflow:hidden;display:block;flex-shrink:0;padding:9px;border:1px solid #355c40;border-radius:9px;font-size:14px;color:#b6e2c2;cursor:pointer}.tp-chat-upload input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;font-size:16px}.tp-chat-status{font-size:11px;color:#8ba894;line-height:1.4;flex:1}.tp-chat-send{padding:10px 15px;border:1px solid #24ff62;border-radius:9px;background:#24ff62;color:#092a12;font-size:13px;font-weight:750;cursor:pointer}.tp-chat-send:disabled{opacity:.5;cursor:wait}.tp-chat-composer>small{display:block;color:#789783;font-size:10px;line-height:1.5;margin-top:8px}@media(max-width:520px){.tp-community{right:12px;bottom:max(12px,env(safe-area-inset-bottom))}.tp-chat-window{width:calc(100vw - 24px);max-width:100%;height:min(740px,87dvh);border-radius:17px}.tp-chat-launch{padding:10px 13px;min-height:49px;font-size:13px}.tp-chat-header{padding:15px}.tp-chat-messages{padding:12px}.tp-chat-message{max-width:97%;padding:11px}.tp-chat-message-text{font-size:15px}.tp-chat-message-footer button{font-size:14px;padding:8px}.tp-chat-compose-actions{gap:7px}.tp-chat-upload{font-size:13px;padding:9px 7px}.tp-resource-text{font-size:16px;padding:15px}}

.tp-resource-preview{margin:0;min-width:0}.tp-resource-preview figcaption{margin-top:10px;font-size:13px;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}.tp-resource-file{min-width:0}.tp-resource-image{width:auto;height:auto}.tp-resource-error p{margin:8px 0 12px;overflow-wrap:anywhere}

.tp-material-media{position:relative;display:grid;place-content:center;width:100%;min-height:170px;max-height:260px;margin:14px 0;border-radius:12px;background:#050c08;overflow:hidden}.tp-material-media img{display:block;max-width:100%;max-height:260px;object-fit:contain;margin:auto}.tp-material-media span{font-size:14px;line-height:1.6;padding:16px;color:#a3beab;overflow-wrap:anywhere}.tp-material-media [hidden]{display:none!important}.tp-install-card{margin-bottom:24px}.tp-install-card p{line-height:1.7}.tp-install-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
.tp-install-actions [hidden]{display:none!important}

.tp-community .tp-chat-launch{min-height:44px;padding:8px 12px;gap:6px;font-size:13px;border-radius:12px}
