/* Independent namespace: does not style Studio, Elementor or Channel editor controls. */
.dchd-widget{--dchd-navy:#142340;--dchd-blue:#315ee0;--dchd-silver:#e7ebf3;--dchd-gold:#e7bc4a;--dchd-text:#1a2440;--dchd-soft:#f5f7fb;font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:var(--dchd-text);font-size:14px;line-height:1.45;box-sizing:border-box;isolation:isolate}
.dchd-widget *{box-sizing:border-box}.dchd-widget button,.dchd-widget textarea{font:inherit}.dchd-widget [hidden]{display:none!important}
.dchd-widget.dchd-floating{position:fixed;right:max(18px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));z-index:2147482000;display:flex;flex-direction:column;align-items:flex-end;pointer-events:none}
.dchd-floating>*{pointer-events:auto}
.dchd-launcher{display:flex;gap:10px;align-items:center;border:1px solid rgba(255,255,255,.24);border-radius:999px;padding:6px 14px 6px 6px;background:linear-gradient(125deg,#16284b,#315ee0);box-shadow:0 12px 35px rgba(15,28,62,.34);color:#fff;font-weight:750;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease}
.dchd-launcher:hover{transform:translateY(-2px);box-shadow:0 15px 42px rgba(15,28,62,.43)}.dchd-launcher:focus-visible,.dchd-panel button:focus-visible,.dchd-panel textarea:focus-visible{outline:3px solid var(--dchd-gold);outline-offset:3px}
.dchd-launcher img{height:52px;width:52px;border-radius:50%;object-fit:cover;background:#fff;border:2px solid #fff}.dchd-launcher-glint{color:#f2d17f;font-size:19px;margin-left:1px}
.dchd-panel{display:flex;flex-direction:column;width:min(390px,calc(100vw - 24px));height:min(610px,calc(100dvh - 125px));max-height:610px;border-radius:19px;background:#fff;box-shadow:0 22px 75px rgba(18,28,56,.28);overflow:hidden;border:1px solid #dce3ef;text-align:left}
.dchd-floating .dchd-panel{margin-bottom:12px}.dchd-embedded{max-width:650px;margin:18px auto}.dchd-embedded .dchd-panel{width:100%;max-height:none;height:580px;box-shadow:0 14px 45px rgba(20,35,64,.13)}
.dchd-header{display:flex;align-items:center;gap:12px;padding:12px 14px;background:linear-gradient(110deg,#11203c,#243e72);color:#fff;flex-shrink:0;min-height:78px;border-bottom:3px solid var(--dchd-gold)}
.dchd-header-avatar{object-fit:cover;width:47px;height:47px;flex-shrink:0;border:2px solid #fff;border-radius:50%;background:#fff}.dchd-headline{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}.dchd-headline strong{font-size:17px;letter-spacing:.15px;line-height:1.2;color:#fff}.dchd-headline small{font-size:11px;opacity:.88;white-space:normal;line-height:1.2;color:#fff}.dchd-headline i{display:inline-block;width:7px;height:7px;background:#73d7af;border-radius:50%;margin-right:5px}
.dchd-icon-button{width:31px;height:31px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.24);border-radius:8px;color:#fff;background:rgba(255,255,255,.12);cursor:pointer;flex-shrink:0}
.dchd-icon-button:hover{background:rgba(255,255,255,.25)}
.dchd-messages{overflow-y:auto;overscroll-behavior:contain;flex:1;min-height:0;padding:16px 13px;display:flex;flex-direction:column;gap:12px;background:linear-gradient(#f8faff,#fff 55%)}
.dchd-intro{display:flex;align-items:flex-end;gap:6px;margin:0 auto 6px;width:90%;padding:6px 5px 9px;border-bottom:1px solid #e5eaf3}.dchd-intro img{width:76px;height:96px;object-fit:contain;object-position:center bottom;flex-shrink:0}.dchd-intro div{display:flex;flex-direction:column;gap:4px;padding:6px 0 12px}.dchd-intro strong{font-size:16px;color:#132c5d}.dchd-intro span{font-size:12px;color:#5e6b82}
.dchd-message{display:flex;flex-direction:column;gap:4px;max-width:94%;align-self:flex-start}.dchd-message-user{align-self:flex-end;max-width:87%}.dchd-message-label{font-size:10px;font-weight:750;letter-spacing:.6px;text-transform:uppercase;color:#536582;margin:0 7px}.dchd-message-user .dchd-message-label{text-align:right}
.dchd-message-body{white-space:pre-wrap;overflow-wrap:break-word;word-break:normal;padding:12px 13px;background:#fff;border:1px solid #e4e9f2;border-radius:4px 13px 13px 13px;box-shadow:0 2px 8px rgba(23,39,70,.045);font-size:13px;line-height:1.58;color:#26324b}
.dchd-message-user .dchd-message-body{color:#fff;background:#315ee0;border-color:#315ee0;border-radius:13px 4px 13px 13px}.dchd-sources{color:#68758b;font-size:10px;padding:0 7px;line-height:1.35}
.dchd-suggestions{display:flex;flex-wrap:wrap;gap:6px;padding:8px 12px;border-top:1px solid #edf0f5;background:#fff}.dchd-suggestions button{font-size:11px;font-weight:650;color:#24468a;background:#f2f5fd;border:1px solid #dce5fa;border-radius:999px;cursor:pointer;padding:7px 9px}.dchd-suggestions button:hover{border-color:#315ee0;background:#eaf0ff}
.dchd-form{display:flex;align-items:center;gap:8px;padding:8px 10px 8px 12px;border-top:1px solid #e8edf5;background:#fff;margin:0}.dchd-form textarea{width:100%;min-height:52px;max-height:112px;resize:vertical;padding:10px 10px 8px;color:#25334e;border:1px solid #d5ddec;border-radius:12px;background:#f9fafe;box-shadow:none;line-height:1.4}.dchd-form textarea::placeholder{color:#7a879d}.dchd-form button{height:38px;width:38px;border:0;border-radius:10px;color:#fff;font-size:21px;background:var(--dchd-blue);cursor:pointer;flex-shrink:0}.dchd-form button:hover{background:#1e48bf}.dchd-form button:disabled{opacity:.5;cursor:not-allowed}
.dchd-footer{display:flex;justify-content:space-between;gap:8px;padding:0 13px 9px;background:#fff;color:#68768d;font-size:10px;line-height:1.3}.dchd-footer a{color:#2756cd;text-decoration:underline}.dchd-admin-note{padding:14px;border:1px dashed #a1a8bb;background:#f4f6fa}
@media(max-width:500px){.dchd-floating{right:10px;bottom:10px}.dchd-floating .dchd-panel{width:calc(100vw - 20px);height:min(640px,calc(100dvh - 104px));border-radius:14px}.dchd-launcher img{height:44px;width:44px}.dchd-launcher{padding:5px 12px 5px 5px;font-size:13px}.dchd-panel .dchd-intro img{width:64px;height:85px}}
@media(prefers-reduced-motion:reduce){.dchd-launcher{transition:none}}
