/* Specificity shields below resolve earlier !important shell selectors without
   altering feature styles or individual chat personalization.
   v170 product shell. Loaded last to resolve historic shell overrides.
   Game canvases, chat personalization and call media retain their own styles. */
:root{--ui-bg:#0c101b;--ui-surface:#151b29;--ui-raised:#1b2334;--ui-ink:#edf2fc;--ui-muted:#99a8c2;--ui-line:rgba(167,185,223,.13);--ui-accent:#9b91ff;--ui-shadow:0 18px 55px rgba(0,0,0,.24);--ui-safe-top:env(safe-area-inset-top,0px);--ui-safe-bottom:env(safe-area-inset-bottom,0px);--ui-top-height:72px;--ui-bottom-height:0px;--ui-workspace:calc(var(--halo-viewport-height,100dvh) - var(--ui-top-height) - var(--ui-safe-top) - 24px)}
html[data-theme="light"]{--ui-bg:#f1f4fa;--ui-surface:#fff;--ui-raised:#f6f8fd;--ui-ink:#202c44;--ui-muted:#60718d;--ui-line:rgba(52,76,113,.12);--ui-accent:#6454d5;--ui-shadow:0 14px 45px rgba(43,63,102,.08)}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body{background:var(--ui-bg)!important;color:var(--ui-ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.5}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .ambient{opacity:.16!important;pointer-events:none}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .app-shell{width:100%!important;max-width:1680px!important;margin:0 auto!important;padding:var(--ui-safe-top) max(20px,env(safe-area-inset-right,0px)) 20px max(20px,env(safe-area-inset-left,0px))!important;box-sizing:border-box!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .topbar{position:relative!important;inset:auto!important;height:var(--ui-top-height)!important;min-height:var(--ui-top-height)!important;margin:0!important;padding:12px 4px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;transform:none!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .wordmark{font-size:23px!important;gap:10px!important;color:var(--ui-ink)!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .logo-mark{width:34px!important;height:34px!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .topbar-actions{position:relative!important;inset:auto!important;display:flex!important;align-items:center!important;gap:8px!important;width:auto!important;flex-wrap:nowrap!important;transform:none!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .topbar-actions button,html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .topbar-actions select{min-height:42px!important;border:1px solid var(--ui-line)!important;border-radius:13px!important;background:var(--ui-surface)!important;color:var(--ui-ink)!important;font-size:12px!important;box-shadow:none!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .header-language{margin:0!important;min-width:0!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .header-profile-button{gap:8px!important;padding:4px 12px 4px 5px!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .header-profile-avatar{width:30px!important;height:30px!important;border-radius:10px!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .header-profile-label{font-size:12px!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .account-menu{position:static!important;display:block!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .social-shell{display:grid!important;grid-template-columns:84px minmax(0,1fr)!important;gap:18px!important;padding:0!important;margin:0!important;min-height:var(--ui-workspace)!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .social-rail{position:sticky!important;top:12px!important;inset-inline:auto!important;bottom:auto!important;width:84px!important;height:var(--ui-workspace)!important;min-height:0!important;max-height:var(--ui-workspace)!important;padding:14px 7px!important;border:1px solid var(--ui-line)!important;border-radius:24px!important;background:var(--ui-surface)!important;box-shadow:none!important;flex-direction:column!important;box-sizing:border-box!important;backdrop-filter:none!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .social-rail-brand{display:grid!important;font-size:9px!important;gap:8px!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .social-nav{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;width:100%!important;margin:auto 0!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .social-nav-button{min-height:67px!important;gap:5px!important;padding:9px 4px!important;border:0!important;border-radius:17px!important;color:var(--ui-muted)!important;transition:background .2s,color .2s,transform .2s!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .social-nav-button b{font-size:10px!important;font-weight:650!important;letter-spacing:0!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .social-nav-button .nav-icon{width:24px!important;height:24px!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .social-nav-button.is-active{background:color-mix(in srgb,var(--ui-accent) 16%,transparent)!important;color:var(--ui-accent)!important;box-shadow:none!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .social-rail-security{display:grid!important;color:var(--ui-muted)!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .social-rail-security small{display:none!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .social-main{min-width:0!important;padding:0!important;background:transparent!important;border:0!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .social-main-header{min-height:80px!important;padding:0 4px 20px!important;align-items:center!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .social-main-header h1{font-size:30px!important;letter-spacing:-.04em!important;color:var(--ui-ink)!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .overline{color:var(--ui-muted)!important;letter-spacing:.12em!important;font-size:10px!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .social-card,html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .glass-panel,html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .hg-library{border:1px solid var(--ui-line)!important;border-radius:24px!important;background:var(--ui-surface)!important;box-shadow:var(--ui-shadow)!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body.social-authenticated[data-halo-social-view="chats"] #social-shell.social-shell .social-rail,
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body.social-authenticated[data-halo-social-view="chats"] #social-shell.social-shell>.social-main,
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body.social-authenticated[data-halo-social-view="chats"] .social-view[data-social-panel="chats"],
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body.social-authenticated[data-halo-social-view="chats"] .social-dashboard-grid,
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body.social-authenticated[data-halo-social-view="chats"] .social-contacts-card,
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body.social-authenticated[data-halo-social-view="chats"] #direct-chat-card:not([hidden]),
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body.social-authenticated[data-halo-social-view="chats"] #halo-group-detail:not([hidden]){height:var(--ui-workspace)!important;min-height:0!important;max-height:var(--ui-workspace)!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body.social-authenticated[data-halo-social-view="chats"] .social-dashboard-grid{display:grid!important;grid-template-columns:320px minmax(0,1fr)!important;gap:18px!important;overflow:hidden!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body.social-authenticated[data-halo-social-view="chats"] .social-contacts-card{display:flex!important;flex-direction:column!important;padding:18px!important;background:var(--ui-surface)!important;overflow:hidden!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .social-card-head{gap:8px!important;align-items:center!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .social-card-head h2{font-size:18px!important;font-weight:700!important;color:var(--ui-ink)!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .social-contact-head-actions{gap:6px!important;flex-shrink:0!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .social-count{width:24px!important;height:24px!important;font-size:10px!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .social-new-invite{width:40px!important;min-width:40px!important;min-height:40px!important;padding:0!important;border-radius:12px!important;border:1px solid var(--ui-line)!important;background:var(--ui-raised)!important;color:var(--ui-accent)!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .social-search{margin:18px 0 12px!important;padding:0 13px!important;min-height:46px!important;flex-shrink:0!important;border:1px solid var(--ui-line)!important;background:var(--ui-raised)!important;border-radius:14px!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .social-search input{height:44px!important;min-height:44px!important;font-size:13px!important;color:var(--ui-ink)!important;background:transparent!important;border:0!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .social-contact-list{min-height:0!important;overflow:auto!important;gap:7px!important;padding:2px!important;scrollbar-width:thin}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body.social-authenticated .social-contact{grid-template-columns:44px minmax(0,1fr) 36px!important;gap:10px!important;padding:11px 9px!important;min-height:76px!important;border:1px solid transparent!important;background:transparent!important;border-radius:16px!important;box-shadow:none!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body.social-authenticated .social-contact.is-active,html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body.social-authenticated .social-contact:hover{background:color-mix(in srgb,var(--ui-accent) 12%,transparent)!important;border-color:color-mix(in srgb,var(--ui-accent) 24%,transparent)!important;box-shadow:none!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body.social-authenticated .social-contact-avatar{width:44px!important;height:44px!important;border-radius:15px!important;font-size:13px!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body.social-authenticated .social-contact-identity strong{font-size:14px!important;font-weight:650!important;color:var(--ui-ink)!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body.social-authenticated .social-contact-identity small,html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body.social-authenticated .social-contact-identity .social-contact-last-seen{font-size:11px!important;line-height:1.45!important;color:var(--ui-muted)!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body.social-authenticated .social-contact-menu{width:36px!important;min-width:36px!important;min-height:40px!important;color:var(--ui-muted)!important;background:transparent!important;border:0!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .direct-chat-card,html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .halo-group-thread{position:relative!important;grid-column:2!important;grid-row:1!important;border:1px solid var(--ui-line)!important;border-radius:24px!important;background:var(--ui-surface)!important;overflow:hidden!important;min-width:0!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .direct-chat-header{padding:15px 20px!important;gap:12px!important;border-bottom:1px solid var(--ui-line)!important;background:var(--ui-surface)!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .direct-chat-header h2{font-size:17px!important;color:var(--ui-ink)!important;letter-spacing:-.02em!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .direct-chat-header p,html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .direct-chat-meta{font-size:11px!important;line-height:1.5!important;color:var(--ui-muted)!important;flex-wrap:wrap!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .direct-chat-identity{min-width:0!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .direct-chat-identity h2{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .direct-chat-actions{gap:6px!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .direct-chat-actions button,html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .chat-tool-button{min-width:40px!important;min-height:40px!important;border:1px solid var(--ui-line)!important;border-radius:13px!important;background:var(--ui-raised)!important;color:var(--ui-accent)!important;box-shadow:none!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .direct-chat-notice{padding:8px 16px!important;font-size:10px!important;line-height:1.5!important;color:var(--ui-muted)!important;background:transparent!important;border-color:var(--ui-line)!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .direct-chat-messages{padding:24px!important;scrollbar-width:thin;overscroll-behavior:contain}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .direct-chat-empty{transform:none!important;position:static!important;inset:auto!important;width:100%!important;max-width:none!important;min-height:100%!important;color:var(--ui-muted)!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .direct-chat-empty h3{font-size:22px!important;font-weight:650!important;color:var(--ui-ink)!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .direct-chat-empty p{font-size:13px!important;line-height:1.65!important;max-width:330px!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .direct-chat-form{padding:12px 18px 16px!important;border-top:1px solid var(--ui-line)!important;background:var(--ui-surface)!important;gap:8px!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .direct-chat-translate{font-size:11px!important;color:var(--ui-muted)!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body #direct-chat-input,html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .halo-group-input{min-height:48px!important;border:1px solid var(--ui-line)!important;border-radius:16px!important;background:var(--ui-raised)!important;color:var(--ui-ink)!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .social-empty{min-height:0!important;flex:1!important;padding:30px 14px!important;color:var(--ui-muted)!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .social-empty p{font-size:12px!important;line-height:1.65!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .social-profile-grid{grid-template-columns:minmax(0,1fr) minmax(300px,.85fr)!important;gap:20px!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .social-profile-card,html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .halo-profile-personalization-card{padding:26px!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .social-profile-card label,html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .personalization-grid label{font-size:13px!important;color:var(--ui-ink)!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .social-profile-card label small,html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .personalization-grid small,html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .profile-avatar-note{font-size:11px!important;color:var(--ui-muted)!important;line-height:1.6!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .social-profile-card input,html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .social-profile-card textarea,html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .social-profile-card select,html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .personalization-grid select{min-height:46px!important;border-radius:13px!important;background:var(--ui-raised)!important;border:1px solid var(--ui-line)!important;color:var(--ui-ink)!important;font-size:14px!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .social-accent-button,html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .social-muted-button,html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .social-avatar-button{min-height:44px!important;border-radius:13px!important;font-size:13px!important;font-weight:650!important;padding:10px 16px!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .social-accent-button{background:linear-gradient(135deg,#8d7ef7,#636be7)!important;color:#fff!important;border:1px solid transparent!important;box-shadow:0 6px 18px rgba(101,92,221,.19)!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .social-muted-button,html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .social-avatar-button{background:var(--ui-raised)!important;color:var(--ui-ink)!important;border:1px solid var(--ui-line)!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .hg-library{padding:26px!important;margin:0!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .hg-library h2{font-size:30px!important;letter-spacing:-.035em!important;color:var(--ui-ink)!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .hg-library>p{color:var(--ui-muted)!important;font-size:13px!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .hg-categories{display:flex!important;flex-wrap:wrap!important;gap:8px!important;padding:5px!important;border-radius:16px!important;background:var(--ui-raised)!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .hg-categories button{flex:1!important;min-height:42px!important;font-size:12px!important;border-radius:12px!important;color:var(--ui-muted)!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .hg-categories button.is-selected{background:var(--ui-accent)!important;color:#fff!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .hg-catalog{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(170px,1fr))!important;gap:12px!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .hg-catalog>button{min-height:86px!important;padding:15px!important;border:1px solid var(--ui-line)!important;background:var(--ui-raised)!important;border-radius:17px!important;color:var(--ui-ink)!important;transition:transform .2s,background .2s,border-color .2s!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .hg-catalog>button b{font-size:13px!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .hg-catalog>button small{font-size:10px!important;color:var(--ui-muted)!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .hg-catalog>button.is-selected{border-color:var(--ui-accent)!important;background:color-mix(in srgb,var(--ui-accent) 14%,var(--ui-surface))!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .hg-invite{display:flex!important;gap:12px!important;flex-wrap:wrap!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .hg-invite label{flex:1!important;min-width:180px!important;color:var(--ui-muted)!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .hg-invite select,html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body #hg-create{min-height:48px!important;border-radius:14px!important;font-size:13px!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .halo-contact-details-sidebar{background:var(--ui-surface)!important;border:1px solid var(--ui-line)!important;border-radius:22px!important;box-shadow:var(--ui-shadow)!important;padding:0!important;transition:transform .24s cubic-bezier(.2,.8,.2,1),opacity .2s!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .halo-contact-sidebar-head{padding:18px!important;border-bottom:1px solid var(--ui-line)!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .halo-contact-sidebar-scroll{padding:22px!important;overscroll-behavior:contain}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .halo-contact-sidebar-scroll p,html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .halo-contact-detail-row{font-size:12px!important;color:var(--ui-muted)!important;line-height:1.6!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .halo-group-editor label{font-size:12px!important;color:var(--ui-ink)!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .halo-group-editor input,html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .halo-group-editor textarea,html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .halo-group-editor select{min-height:44px!important;font-size:14px!important;background:var(--ui-raised)!important;color:var(--ui-ink)!important;border:1px solid var(--ui-line)!important;border-radius:12px!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .halo-group-member{gap:9px!important;padding:12px 0!important;flex-wrap:wrap!important;font-size:12px!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .halo-group-member button{min-height:38px!important;border-radius:10px!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .social-toast{top:calc(var(--ui-safe-top) + 80px)!important;border-radius:16px!important;font-size:13px!important;padding:14px 18px!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body dialog:not(.halo-avatar-viewer){max-width:min(560px,calc(100vw - 32px))!important;max-height:calc(var(--halo-viewport-height,100dvh) - var(--ui-safe-top) - var(--ui-safe-bottom) - 40px)!important;border:1px solid var(--ui-line)!important;border-radius:26px!important;background:var(--ui-surface)!important;color:var(--ui-ink)!important;box-shadow:0 35px 100px rgba(0,0,0,.4)!important;overscroll-behavior:contain}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body dialog::backdrop{background:rgba(7,11,20,.6)!important;backdrop-filter:blur(9px)!important;-webkit-backdrop-filter:blur(9px)!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body dialog[open]{animation:halo-ui-arrive .26s cubic-bezier(.18,.8,.25,1) both}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .social-dialog-card,html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .halo-avatar-editor-card{background:var(--ui-surface)!important;border:0!important;border-radius:inherit!important;color:var(--ui-ink)!important;padding:28px!important;box-shadow:none!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .social-dialog-card>p:not(.overline){font-size:13px!important;color:var(--ui-muted)!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body dialog button{min-height:42px!important;border-radius:12px!important;font-size:13px!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .social-dialog-close,html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .halo-contact-details-close{display:grid!important;place-items:center!important;width:40px!important;min-height:40px!important;background:var(--ui-raised)!important;color:var(--ui-muted)!important;border:1px solid var(--ui-line)!important;font-size:24px!important;border-radius:12px!important}
.halo-ui-dialog{width:460px;padding:0;color:var(--ui-ink)}
.halo-ui-card{padding:30px}
.halo-ui-mark{display:grid;width:48px;height:48px;place-items:center;border-radius:16px;background:color-mix(in srgb,var(--ui-accent) 15%,transparent);color:var(--ui-accent);font-size:24px;margin-bottom:18px}
.halo-ui-card h2{margin:0 0 10px;font-size:23px;letter-spacing:-.035em;color:var(--ui-ink)}
.halo-ui-card p{margin:0;color:var(--ui-muted);font-size:14px;line-height:1.7;white-space:pre-line;overflow-wrap:anywhere}
.halo-ui-input{box-sizing:border-box;width:100%;min-height:110px;max-height:220px;margin-top:20px;padding:14px;border:1px solid var(--ui-line);border-radius:14px;background:var(--ui-raised);color:var(--ui-ink);font:inherit;resize:vertical}
.halo-ui-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;margin-top:26px}
.halo-ui-actions button{padding:12px 18px;border:1px solid var(--ui-line);background:var(--ui-raised);color:var(--ui-ink);cursor:pointer;font-weight:650}
.halo-ui-actions .halo-ui-primary{background:#7568e8;color:#fff;border-color:transparent}
.halo-ui-actions .halo-ui-danger{background:#c6415d;color:#fff;border-color:transparent}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .halo-ui-exit{border:1px solid var(--ui-line);border-radius:26px;background:var(--ui-surface);color:var(--ui-ink);box-shadow:var(--ui-shadow)}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body button{touch-action:manipulation}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body button:focus-visible,html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body a:focus-visible,html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body input:focus-visible,html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body select:focus-visible,html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body textarea:focus-visible{outline:3px solid var(--ui-accent)!important;outline-offset:3px!important}
@media(hover:hover){html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .social-nav-button:hover,html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .hg-catalog>button:not(:disabled):hover{transform:translateY(-2px)!important;background:color-mix(in srgb,var(--ui-accent) 10%,var(--ui-surface))!important}}
@keyframes halo-ui-arrive{from{opacity:0;transform:translateY(14px) scale(.97)}to{opacity:1;transform:none}}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body:not(.social-authenticated) .app-shell{height:var(--halo-viewport-height,100dvh)!important;min-height:0!important;overflow:auto!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body:not(.social-authenticated) .auth-screen{height:auto!important;min-height:calc(var(--halo-viewport-height,100dvh) - var(--ui-top-height) - var(--ui-safe-top) - 28px)!important;padding:20px 0 28px!important;overflow:visible!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body:not(.social-authenticated) .auth-card{height:auto!important;max-height:none!important;min-height:0!important;padding:28px!important;overflow:visible!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body.home-solid:not(.social-authenticated) .auth-card{background:var(--ui-surface)!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body:not(.social-authenticated) .auth-card .auth-form:not([hidden]){overflow:visible!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .auth-form input,html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .auth-form select{font-size:16px!important;min-height:48px!important;background:var(--ui-raised)!important;color:var(--ui-ink)!important;border-color:var(--ui-line)!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .auth-form label{font-size:13px!important;color:var(--ui-ink)!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .auth-primary{min-height:48px!important;border-radius:14px!important}
@media(max-width:1100px) and (min-width:768px){html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body.social-authenticated[data-halo-social-view="chats"] .social-dashboard-grid{grid-template-columns:280px minmax(0,1fr)!important;gap:12px!important}html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .social-shell{grid-template-columns:76px minmax(0,1fr)!important;gap:12px!important}html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .social-rail{width:76px!important}html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .direct-chat-header{padding:12px!important;gap:8px!important}html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .direct-chat-actions span{display:none!important}html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .social-profile-grid{grid-template-columns:1fr!important}html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .halo-contact-details-sidebar{position:absolute!important;inset:0 0 0 auto!important;width:min(340px,100%)!important;max-width:100%!important;height:100%!important;z-index:35!important}}
@media(max-width:767px){
 :root{--ui-top-height:64px;--ui-bottom-height:76px;--ui-workspace:calc(var(--halo-viewport-height,100dvh) - var(--ui-top-height) - var(--ui-safe-top) - var(--ui-bottom-height) - var(--ui-safe-bottom) - 14px)}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .app-shell{padding:var(--ui-safe-top) max(12px,env(safe-area-inset-right,0px)) calc(var(--ui-bottom-height) + var(--ui-safe-bottom) + 12px) max(12px,env(safe-area-inset-left,0px))!important}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .topbar{padding:10px 2px!important}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .wordmark{font-size:21px!important}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .topbar-actions{gap:6px!important}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .topbar-actions>.header-language{display:none!important}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .topbar-actions.is-mobile-open>.header-language{position:absolute!important;display:block!important;top:50px!important;right:0!important;z-index:80!important;padding:12px!important;border:1px solid var(--ui-line)!important;border-radius:16px!important;background:var(--ui-surface)!important;box-shadow:var(--ui-shadow)!important}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .topbar-actions .mobile-utility-toggle{display:grid!important;place-items:center!important;width:38px!important;min-height:40px!important;order:4!important}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .topbar-actions>#halo-theme-toggle{display:grid!important;width:38px!important;min-height:40px!important}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .topbar-actions>#header-profile-button:not([hidden]){display:flex!important;padding:4px!important;min-width:40px!important;min-height:40px!important}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .header-profile-label{display:none!important}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .topbar-actions>#account-menu{display:none!important}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .topbar-actions.is-mobile-open>#account-menu:not([hidden]){position:absolute!important;display:block!important;top:122px!important;right:0!important;z-index:81!important;padding:8px!important;border-radius:14px!important;background:var(--ui-surface)!important;box-shadow:var(--ui-shadow)!important}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .social-shell{display:block!important;min-height:0!important;padding:0!important}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .social-rail{position:fixed!important;top:auto!important;bottom:0!important;left:0!important;right:0!important;width:100%!important;height:calc(var(--ui-bottom-height) + var(--ui-safe-bottom))!important;min-height:0!important;max-height:none!important;padding:8px max(12px,env(safe-area-inset-right,0px)) calc(8px + var(--ui-safe-bottom)) max(12px,env(safe-area-inset-left,0px))!important;border:0!important;border-top:1px solid var(--ui-line)!important;border-radius:24px 24px 0 0!important;background:var(--ui-surface)!important;z-index:40!important;box-shadow:0 -10px 36px rgba(0,0,0,.1)!important}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .social-rail-brand,html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .social-rail-security{display:none!important}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .social-nav{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:3px!important;margin:0!important}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .social-nav-button{min-height:58px!important;padding:6px 2px!important;gap:3px!important;border-radius:16px!important}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .social-nav-button b{font-size:10px!important}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .social-main-header{min-height:70px!important;padding:6px 4px 18px!important}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .social-main-header h1{font-size:27px!important}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body.social-authenticated[data-halo-social-view="chats"] .social-main-header{display:none!important}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body.social-authenticated[data-halo-social-view="chats"] .social-dashboard-grid{display:block!important;overflow:hidden!important}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body.social-authenticated[data-halo-social-view="chats"] .social-contacts-card{padding:16px!important;border-radius:22px!important}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body.social-authenticated[data-halo-social-view="chats"] .social-dashboard-grid.direct-chat-open>.social-contacts-card{display:none!important}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body.social-authenticated[data-halo-social-view="chats"] #direct-chat-card:not([hidden]),html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body.social-authenticated[data-halo-social-view="chats"] #halo-group-detail:not([hidden]){width:100%!important;display:grid!important;position:relative!important;inset:auto!important;border-radius:22px!important}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .direct-chat-header{padding:12px 10px!important;gap:8px!important;grid-template-columns:32px 38px minmax(0,1fr) auto!important}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .direct-chat-header>button{display:grid!important;width:32px!important;height:38px!important;min-height:38px!important;color:var(--ui-ink)!important;background:var(--ui-raised)!important;border:0!important;border-radius:10px!important}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .direct-chat-header .social-contact-avatar{width:38px!important;height:38px!important;border-radius:13px!important}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .direct-chat-header h2{font-size:14px!important}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .direct-chat-header p{font-size:10px!important}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .direct-chat-actions{gap:4px!important}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .direct-chat-actions button{width:34px!important;min-width:34px!important;min-height:38px!important;padding:6px!important;border-radius:11px!important}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .direct-chat-actions span{display:none!important}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .direct-chat-notice{font-size:9px!important;padding:6px 10px!important}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .direct-chat-messages{padding:16px!important}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .direct-chat-form{padding:9px 10px 12px!important}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body #direct-chat-form>div{width:100%!important;max-width:100%!important}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body #direct-chat-input,html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .halo-group-input{font-size:16px!important;min-height:46px!important}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .halo-contact-details-sidebar{position:absolute!important;inset:0!important;width:100%!important;max-width:100%!important;height:100%!important;z-index:35!important;border-radius:22px!important}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .social-profile-grid{display:block!important}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .social-profile-card,html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .halo-profile-personalization-card{padding:20px!important}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .social-profile-identity{flex-wrap:wrap!important}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .personalization-grid{grid-template-columns:1fr!important}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .personalization-wide{grid-column:1!important}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .hg-library{padding:20px 16px!important;border-radius:22px!important}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .hg-library h2{font-size:24px!important}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .hg-catalog{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .hg-catalog>button{min-height:84px!important;padding:12px!important}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .hg-catalog>button b{font-size:12px!important}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .hg-categories button{font-size:11px!important;padding:8px 6px!important;min-width:0!important}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .hg-invite{flex-direction:column!important}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body dialog:not(.halo-avatar-viewer){margin:auto auto calc(12px + var(--ui-safe-bottom))!important;width:calc(100% - 24px)!important;max-width:560px!important;border-radius:26px!important}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .halo-ui-card,html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .social-dialog-card,html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .halo-avatar-editor-card{padding:24px 20px!important}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body dialog[open]{animation-name:halo-ui-sheet}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .halo-ui-actions button{flex:1;min-width:110px}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .social-toast{top:calc(var(--ui-safe-top) + 70px)!important;right:12px!important;left:12px!important;max-width:none!important}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body:not(.social-authenticated) .auth-screen{display:block!important;padding:8px 0 20px!important}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body:not(.social-authenticated) .auth-hero{display:none!important}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body:not(.social-authenticated) .auth-card{width:100%!important;max-width:500px!important;margin:0 auto!important;padding:24px 20px!important}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body.halo-keyboard-open{--ui-bottom-height:0px;--ui-safe-bottom:0px}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body.halo-keyboard-open .social-rail{display:none!important}
}
@keyframes halo-ui-sheet{from{opacity:0;transform:translateY(34px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body *,html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body *::before,html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body *::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
/* Hidden state always wins; feature modules depend on this contract. */
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body [hidden],html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body.social-authenticated [hidden],html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .hg-catalog>button[hidden]{display:none!important}
/* Shell geometry must also override the oldest fixed frame and ID rules. */
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body.social-authenticated{height:auto!important;min-height:100dvh!important;overflow-y:auto!important;margin:0!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body.social-authenticated .app-shell{height:auto!important;min-height:100dvh!important;overflow:visible!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .social-nav-button{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .header-profile-avatar{display:grid!important;place-items:center!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .social-rail-brand{padding:0!important;border:0!important;background:transparent!important;border-radius:0!important;box-shadow:none!important}
@media(max-width:767px){
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body.social-authenticated[data-halo-social-view="chats"] #social-shell.social-shell .social-rail{height:calc(var(--ui-bottom-height) + var(--ui-safe-bottom))!important;min-height:0!important;max-height:none!important}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body.halo-keyboard-open #social-shell.social-shell .social-rail{display:none!important}
}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body.social-authenticated{--cc-panel:var(--ui-surface);--cc-panel-deep:var(--ui-bg);--cc-panel-raised:var(--ui-raised);--cc-text:var(--ui-ink);--cc-muted:var(--ui-muted);--cc-line:var(--ui-line);--cc-accent:var(--halo-chat-accent,var(--ui-accent));--cc-accent-soft:color-mix(in srgb,var(--cc-accent) 16%,var(--ui-surface));--cc-incoming:var(--ui-raised);--cc-outgoing:color-mix(in srgb,var(--cc-accent) 22%,var(--ui-surface))}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body :is(#direct-chat-composer,#halo-group-composer){grid-template-columns:40px 40px minmax(0,1fr) 40px 44px!important;gap:6px!important;padding:6px!important;border-radius:20px!important;background:var(--ui-raised)!important;border:1px solid var(--ui-line)!important;box-shadow:none!important;transform:none!important;width:100%!important;box-sizing:border-box!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body :is(#direct-chat-input,#halo-group-input){width:100%!important;min-width:0!important;min-height:44px!important;font-size:15px!important;padding:8px!important;background:transparent!important;border:0!important;border-radius:12px!important;color:var(--ui-ink)!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body :is(#direct-chat-composer,#halo-group-composer)>button{width:40px!important;min-width:40px!important;height:44px!important;min-height:44px!important;border:0!important;border-radius:14px!important;background:transparent!important;color:var(--ui-muted)!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body :is(#direct-chat-send,#halo-group-submit){width:44px!important;min-width:44px!important;background:var(--ui-accent)!important;color:#fff!important;border-radius:15px!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body #halo-group-detail:not([hidden]){display:flex!important;flex-direction:column!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body #halo-group-detail .halo-group-chat{flex:1 1 auto!important;min-height:0!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body #halo-group-detail>.direct-chat-header{flex:none!important;grid-template-areas:"avatar identity actions"!important;grid-template-columns:44px minmax(0,1fr) auto!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body #halo-group-detail .direct-chat-actions{grid-area:actions!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .halo-chat-tool-card{background:var(--ui-surface)!important;color:var(--ui-ink)!important;border:0!important;padding:26px!important;box-shadow:none!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .halo-upload-dialog{padding:28px!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body :is(.halo-combined-tools-menu,.halo-group-add-menu){background:var(--ui-surface)!important;color:var(--ui-ink)!important;border:1px solid var(--ui-line)!important;box-shadow:var(--ui-shadow)!important;animation:halo-ui-arrive .2s ease both}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body .halo-upload-circle{background:color-mix(in srgb,var(--ui-accent) 16%,var(--ui-surface))!important;color:var(--ui-accent)!important;border-color:var(--ui-line)!important}
@media(max-width:767px){
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body :is(#direct-chat-composer,#halo-group-composer){grid-template-columns:32px 32px minmax(0,1fr) 32px 42px!important;gap:3px!important;padding:5px!important}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body :is(#direct-chat-composer,#halo-group-composer)>button{width:32px!important;min-width:32px!important;height:42px!important;min-height:42px!important}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body :is(#direct-chat-send,#halo-group-submit){width:42px!important;min-width:42px!important}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body :is(#direct-chat-input,#halo-group-input){font-size:16px!important}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body #halo-group-detail>.direct-chat-header{grid-template-areas:"back avatar identity actions"!important;grid-template-columns:32px 38px minmax(0,1fr) auto!important}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body #halo-group-detail>.direct-chat-header>.halo-group-back{display:grid!important;grid-area:back!important}
 html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body #halo-group-detail>.direct-chat-header>.halo-group-avatar{width:38px!important;min-width:38px!important;height:38px!important}
}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body.social-authenticated[data-halo-social-view="chats"] #halo-group-detail:not([hidden]){display:flex!important;flex-direction:column!important}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body :is(#direct-chat-composer,#halo-group-composer)>:is(#direct-chat-send,#halo-group-submit){width:44px!important;min-width:44px!important;background:var(--ui-accent)!important;color:#fff!important;border-radius:15px!important}
@media(max-width:767px){html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body :is(#direct-chat-composer,#halo-group-composer)>:is(#direct-chat-send,#halo-group-submit){width:42px!important;min-width:42px!important}}
/* Keep legacy UI variables acyclic and aligned in both appearance modes. */
:root{--halo-shell-bg:#0c101b;--halo-shell-line:rgba(167,185,223,.13)}
html[data-theme="light"]{--halo-shell-bg:#f1f4fa;--halo-shell-line:rgba(52,76,113,.12)}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body.social-authenticated{--ui-bg:var(--halo-shell-bg);--ui-line:var(--halo-shell-line);--ui-text:var(--ui-ink)}
html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body :is(.halo-group-call-panel,.halo-group-call-incoming){background:var(--ui-surface)!important;color:var(--ui-ink)!important;border:1px solid var(--ui-line)!important;box-shadow:var(--ui-shadow)!important;animation:halo-ui-arrive .25s ease both}
@media(max-width:767px){html:root:not(#legacy-shell):not(#legacy-layout):not(#legacy-theme) body :is(.halo-group-call-panel,.halo-group-call-incoming){bottom:calc(var(--ui-bottom-height) + var(--ui-safe-bottom) + 12px)!important;max-height:calc(var(--halo-viewport-height,100dvh) - var(--ui-top-height) - var(--ui-safe-top) - var(--ui-bottom-height) - var(--ui-safe-bottom) - 30px)!important;overflow:auto!important}}
