/* Desktop header only: preserve the established mobile layout. */
.chat-desktop-control189{display:none!important}
.chat-summary189[hidden]{display:none!important}
@media(min-width:901px){
 body.chat-route .chat-reference-layout .chat-workspace-header{position:relative;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);direction:ltr;align-items:center;min-height:68px;padding:12px 20px!important}
 body.chat-route .chat-reference-layout .chat-header-title{grid-column:1;grid-row:1;justify-self:start;min-width:0;direction:rtl;max-width:calc(100% - 110px)}
 body.chat-route .chat-reference-layout .chat-current-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 body.chat-route .chat-reference-layout .chat-header-actions{grid-column:2;grid-row:1;justify-self:end;display:flex!important;direction:rtl;gap:4px!important}
 body.chat-route .chat-reference-layout .chat-header-actions>.chat-icon-button{width:34px;min-width:34px;height:36px;padding:8px}
 body.chat-route .chat-reference-layout .chat-desktop-control189{display:inline-flex!important;align-items:center;justify-content:center}
 body.chat-route .chat-reference-layout .chat-header-divider{display:none}
 body.chat-route .chat-reference-layout .chat-upgrade{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);isolation:isolate;overflow:hidden;white-space:nowrap;direction:rtl;font-size:13px!important;padding:9px 18px!important;min-height:38px;border:1px solid #a7c9ff;background:linear-gradient(120deg,#edf5ff,#fff 45%,#e0edff);box-shadow:0 2px 18px #2177e92b;color:#1259c5;animation:chat-access-glow189 5s ease-in-out infinite}
 body.chat-route .chat-reference-layout .chat-upgrade::after{content:'';position:absolute;inset:-50% auto -50% -50%;width:25%;transform:skewX(-20deg);background:linear-gradient(90deg,transparent,#fff9,transparent);pointer-events:none;animation:chat-access-shine189 7s ease-in-out infinite;z-index:-1}
 body.chat-route .chat-reference-layout .chat-header-actions .chat-desktop-control189[aria-expanded=true]{background:#e9f1ff;color:#1259c5}
 body.chat-route .chat-reference-layout .chat-workspace{position:relative}
 .chat-summary189{position:absolute;top:76px;right:18px;z-index:45;width:min(370px,calc(100% - 36px));max-height:calc(100% - 100px);overflow:auto;overscroll-behavior:contain;box-sizing:border-box;padding:18px;border:1px solid #dce7f7;border-radius:18px;background:#fff;box-shadow:0 12px 40px #193b6124;direction:rtl}
 .chat-summary-heading189{display:flex;align-items:center;justify-content:space-between;gap:12px}.chat-summary-heading189 h3{font-size:16px;margin:0}.chat-summary-heading189 button{border:0;background:transparent;cursor:pointer;padding:6px;color:inherit}.chat-summary-heading189 .ui-icon{width:20px;height:20px}.chat-summary189 ol{padding-inline-start:22px;margin-bottom:0}.chat-summary189 li{padding:10px 0;border-bottom:1px solid #edf2f8}.chat-summary189 li:last-child{border:0}.chat-summary189 li b{font-size:12px;color:#315d94}.chat-summary189 li p{line-height:1.9;overflow-wrap:anywhere;margin:4px 0}.chat-summary189 li small{color:#78879c;font-size:10px}
}
@media(min-width:901px) and (max-width:1200px){body.chat-route .chat-reference-layout .chat-header-actions>[data-workspace-panel=notifications],body.chat-route .chat-reference-layout .chat-header-actions>.chat-profile-avatar{display:none!important}}
@media(max-width:900px){.chat-summary189{display:none!important}}
.chat-share-actions189{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}#chat-share-text189{width:100%;box-sizing:border-box;direction:rtl;resize:vertical;max-height:50dvh;line-height:1.8}
@keyframes chat-access-glow189{0%,100%{box-shadow:0 2px 16px #2177e929}50%{box-shadow:0 3px 25px #2177e94a}}
@keyframes chat-access-shine189{0%,72%{left:-50%}92%,100%{left:130%}}
@media(prefers-reduced-motion:reduce){body.chat-route .chat-reference-layout .chat-upgrade,body.chat-route .chat-reference-layout .chat-upgrade::after{animation:none!important}}

/* Also cover a stale app render, before the cleanup observer runs. */
.chat-workspace-header [data-workspace-panel="notifications"],
.chat-workspace-header .chat-profile-avatar,
.chat-workspace-header a[href="#dashboard"],
.chat-workspace-header a[href="#login"],
.chat-workspace-header a[href="/#dashboard"],
.chat-workspace-header a[href="/#login"],
body.chat-route #site-header #account-button{display:none!important}
