.custom-panel{display:flex;flex-direction:column;min-height:240px;padding:0!important;background:linear-gradient(145deg,color-mix(in srgb,var(--accent) 9%,#141b1df0),#10191bea)!important;overflow:hidden!important}.custom-heading{display:flex;align-items:center;gap:12px;padding:18px;border-bottom:1px solid #ffffff18}.custom-heading>div{flex:1;min-width:0}.custom-heading h2{font-size:16px;margin:0;overflow-wrap:anywhere}.custom-heading small{font-size:12px;overflow-wrap:anywhere}.custom-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:color-mix(in srgb,var(--accent) 15%,transparent);color:var(--accent);flex-shrink:0}.custom-panel svg,.custom-setup svg{width:22px;height:22px}.custom-heading button{display:grid;place-items:center;padding:8px;min-height:36px;background:#ffffff07}.custom-feed{flex:1;min-height:140px;max-height:650px;overflow:auto;overscroll-behavior:contain;padding:14px;display:flex;flex-direction:column;gap:12px}.custom-message{flex-shrink:0;max-width:92%;padding:12px;border:1px solid #ffffff13;border-radius:16px;background:#ffffff08;align-self:flex-start;overflow-wrap:anywhere}.custom-message.out{align-self:flex-end;background:color-mix(in srgb,var(--accent) 16%,transparent)}.custom-message p{white-space:pre-wrap;margin:0;font-size:14px}.custom-message footer{display:flex;gap:12px;justify-content:space-between;margin-top:8px;font-size:11px;color:var(--muted)}.custom-message img{display:block;max-height:240px;object-fit:contain;border-radius:10px}.custom-message audio,.custom-message video{max-width:100%;width:100%}.custom-compose{padding:12px;border-top:1px solid #ffffff14;position:relative}.custom-chat-tools{display:flex;gap:6px;margin-bottom:8px}.custom-chat-tools button,.custom-file-button{display:grid;place-items:center;min-width:38px;min-height:38px;border:1px solid var(--line);border-radius:10px;background:#ffffff05;padding:8px;cursor:pointer}.custom-input-row{display:flex;gap:8px}.custom-input-row textarea{resize:vertical;min-height:42px;max-height:130px;width:100%;flex:1;min-width:0;background:#0003;border:1px solid var(--line);color:var(--text);border-radius:12px;padding:10px;font:inherit;font-size:14px}.custom-send{background:color-mix(in srgb,var(--accent) 24%,transparent);padding:10px}.custom-status{padding:10px 16px;margin:0!important;font-size:12px;color:var(--muted);overflow-wrap:anywhere}.custom-open{align-self:flex-start;font-size:12px;background:transparent;border:0;margin:0 8px;padding:4px 8px;min-height:28px}.custom-drop{margin:18px;border:1px dashed color-mix(in srgb,var(--accent) 50%,transparent);border-radius:18px;text-align:center;display:grid;justify-items:center;gap:12px;padding:24px 12px;outline-offset:3px}.custom-drop>svg{width:32px;height:32px;color:var(--accent)}.custom-drop p,.custom-warning{font-size:12px;color:var(--muted)}.custom-warning{padding:0 18px}.custom-upload-result{padding:14px 18px;display:grid;gap:10px}.custom-upload-result input{width:100%;font-size:12px}.custom-picker{position:absolute;bottom:100%;left:8px;right:8px;max-height:240px;overflow:auto;display:flex;flex-wrap:wrap;gap:6px;padding:12px;background:var(--panel);border:1px solid var(--line);border-radius:16px;z-index:5}.custom-picker button{padding:5px;min-width:40px}.custom-picker img{width:60px;height:60px;object-fit:contain}.custom-setup{background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:26px;width:min(650px,94vw);max-height:90dvh;overflow:auto;padding:26px}.custom-setup::backdrop{background:#0009;backdrop-filter:blur(6px)}.custom-types{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:20px 0}.custom-types label{display:grid;justify-items:center;gap:8px;padding:14px 6px;border:1px solid var(--line);border-radius:14px;font-size:13px}.custom-types label:has(:checked){border-color:var(--accent);background:color-mix(in srgb,var(--accent) 12%,transparent)}.custom-field{display:grid;gap:7px;margin:14px 0;font-size:13px}.custom-chat-options,.custom-size-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:18px 0}.custom-chat-options label,.custom-size-fields label{display:flex;align-items:center;gap:8px;font-size:13px}.custom-setup-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:20px}.custom-setup-note,.custom-setup-error{font-size:13px}.custom-chat-tools .recording{color:#ff7070;border-color:#ff7070}.home-widget:has(.custom-panel){overflow:visible}.home-widget>.custom-panel{height:100%;max-height:100%}.custom-panel[hidden],.custom-panel [hidden],.custom-setup [hidden]{display:none!important}@media(max-width:760px){.custom-heading{padding:12px;gap:8px}.custom-setup{padding:18px}.custom-types{gap:6px}.custom-types label{font-size:11px}.custom-message{max-width:98%}}
