/* Chat-only decoration. All controls, room permissions and message flow stay native. */
.chat-theme-art,.chat-theme-garland,.chat-theme-love,.chat-theme-sleigh,.chat-theme-coast{display:none;pointer-events:none}
html[data-chat-ui][data-palette="bridge"]{--kira-sharp-header-bg:#f2b77d}
html[data-chat-ui][data-palette="coast"]{--kira-sharp-header-bg:#144c70}
html[data-chat-ui][data-palette="christmas"]{--kira-sharp-header-bg:#174a3a}
html[data-chat-ui][data-theme]:is([data-palette="pridepop"],[data-palette="pridesoft"],[data-palette="bridge"],[data-palette="amoledjade"],[data-palette="amoledviolet"],[data-palette="christmas"],[data-palette="coast"],[data-palette="aurora"],[data-palette="inkpaper"]){--floating-action:var(--chat-theme-action);--floating-action-ink:var(--chat-theme-action-ink)}
html[data-chat-ui]:is([data-palette="pridepop"],[data-palette="pridesoft"],[data-palette="bridge"],[data-palette="amoledjade"],[data-palette="amoledviolet"],[data-palette="christmas"],[data-palette="coast"],[data-palette="aurora"],[data-palette="inkpaper"]) .message.own .bubble{background:var(--palette-outgoing)!important;color:var(--palette-outgoing-ink)}
html[data-chat-ui]:is([data-palette="pridepop"],[data-palette="pridesoft"],[data-palette="bridge"],[data-palette="amoledjade"],[data-palette="amoledviolet"],[data-palette="christmas"],[data-palette="coast"],[data-palette="aurora"],[data-palette="inkpaper"]) .message.own .bubble :is(.bubble-footer,.read-check,.read-status){color:var(--palette-outgoing-muted)!important}
html[data-chat-ui]:is([data-palette="pridepop"],[data-palette="pridesoft"],[data-palette="bridge"],[data-palette="amoledjade"],[data-palette="amoledviolet"],[data-palette="christmas"],[data-palette="coast"],[data-palette="aurora"],[data-palette="inkpaper"]) .room-item:is(.selected,:hover){background:var(--palette-soft)!important}
html[data-chat-ui]:is([data-palette="pridepop"],[data-palette="pridesoft"],[data-palette="bridge"],[data-palette="amoledjade"],[data-palette="amoledviolet"],[data-palette="christmas"],[data-palette="coast"],[data-palette="aurora"],[data-palette="inkpaper"]) :is(.composer-plus,#sidebar>#new-chat){color:var(--chat-theme-action-ink)!important}
html[data-chat-ui]:is([data-palette="pridepop"],[data-palette="pridesoft"],[data-palette="bridge"],[data-palette="amoledjade"],[data-palette="amoledviolet"],[data-palette="christmas"],[data-palette="coast"],[data-palette="aurora"],[data-palette="inkpaper"]) .message:not(.own) .bubble{background:var(--palette-incoming)!important}
html[data-chat-ui]:is([data-palette="amoledjade"],[data-palette="amoledviolet"],[data-palette="bridge"]) :is(#conversation,.timeline){background:#000!important}
html[data-chat-ui][data-palette="pridepop"]{--floating-canvas:#eaf5ff;--floating-paper:#fff8e8}
html[data-chat-ui][data-palette="pridepop"] .messenger-bar{background:linear-gradient(112deg,#ee3153 0%,#fa9237 24%,#f5ce37 43%,#48b980 62%,#42a2d5 81%,#b354c4 100%)!important;color:#203547!important}
html[data-chat-ui][data-palette="pridepop"] .compact-brand{background:#fffefa;border-radius:14px 0 0 14px;padding:8px 10px}
html[data-chat-ui][data-palette="pridepop"] .chat-module-identity{background:#fffefa;align-self:center;min-height:41px;padding:0 12px 0 3px;border-radius:0 14px 14px 0;margin-left:-9px}
html[data-chat-ui][data-palette="pridepop"] .chat-module-identity strong{color:#203547}
html[data-chat-ui][data-palette="pridepop"] .chat-wordmark{letter-spacing:1px;text-transform:uppercase}
html[data-chat-ui][data-palette="pridepop"] .chat-theme-letter:nth-child(1){color:#b91f3b}
html[data-chat-ui][data-palette="pridepop"] .chat-theme-letter:nth-child(2){color:#a64e0a}
html[data-chat-ui][data-palette="pridepop"] .chat-theme-letter:nth-child(3){color:#167045}
html[data-chat-ui][data-palette="pridepop"] .chat-theme-letter:nth-child(4){color:#155f9c}
html[data-chat-ui][data-palette="pridepop"] #sidebar{background:#fff2ce!important;border-radius:16px}
html[data-chat-ui][data-palette="pridepop"] .sidebar-filter-stack{background:#fff2ce}
html[data-chat-ui][data-palette="pridepop"] :is(.message.own .bubble,.room-item.selected){box-shadow:inset 4px 0 #008f79}
html[data-chat-ui][data-palette="pridesoft"] .messenger-bar{border-top:4px solid transparent;border-image:linear-gradient(90deg,#d94f67,#e5a64d,#e1c963,#66a577,#5e9cbe,#9f78bc) 1}
html[data-chat-ui]:is([data-palette="pridepop"],[data-palette="christmas"],[data-palette="coast"]) .chat-theme-art{display:flex;align-items:center;justify-content:center;flex:1;max-width:250px;min-width:70px;position:relative;align-self:center}
html[data-chat-ui]:is([data-palette="pridepop"],[data-palette="christmas"],[data-palette="coast"]) .chat-header-search{width:clamp(180px,25vw,380px)}
html[data-chat-ui][data-palette="pridepop"] .chat-theme-love{display:block;position:relative;transform:rotate(-3deg);white-space:nowrap;background:#fffefa;color:#203547;padding:6px 12px;border-radius:9px;font-weight:750;letter-spacing:1px;box-shadow:0 3px 0 #00656b22}
html[data-chat-ui][data-palette="pridepop"] .chat-theme-love:after{content:"";position:absolute;right:15px;bottom:-6px;border-top:8px solid #fffefa;border-left:8px solid transparent}
html[data-chat-ui][data-palette="coast"] .messenger-bar{background:#144c70!important;color:#fff!important;border:0}
html[data-chat-ui][data-palette="coast"] .messenger-bar :is(.chat-wordmark,.chat-module-identity strong,.session-tools,.kira-header-trailing){color:#fff!important}
html[data-chat-ui][data-palette="coast"] .chat-theme-coast{display:block;width:220px;height:45px;max-width:100%;overflow:hidden}
html[data-chat-ui][data-palette="coast"] .chat-theme-coast .kt-coast-scene{display:block;width:220px!important}
html[data-chat-ui][data-palette="christmas"] .messenger-bar{height:82px;min-height:82px;background:#174a3a!important;color:#fff7e9!important;position:relative}
html[data-chat-ui][data-palette="christmas"]{--kira-shell-height:82px}
html[data-chat-ui][data-palette="christmas"] .messenger-bar :is(.chat-wordmark,.chat-module-identity strong,.session-tools,.kira-header-trailing){color:#fff7e9!important}
html[data-chat-ui][data-palette="christmas"] .chat-theme-sleigh{display:block;width:228px;max-width:100%;height:70px;object-fit:contain}
html[data-chat-ui][data-palette="christmas"] .chat-theme-garland{display:block;position:absolute;left:10px;right:10px;bottom:-3px;height:13px;background:repeating-linear-gradient(30deg,transparent 0 8px,#37724f 8px 11px,transparent 11px 18px),repeating-linear-gradient(-30deg,transparent 0 8px,#295f42 8px 11px,transparent 11px 18px);border-bottom:1px solid #b99a5b}
html[data-chat-ui][data-palette="christmas"] .chat-theme-garland span{position:absolute;left:17%;top:5px;width:7px;height:9px;border-radius:50%;background:#d9b977}
html[data-chat-ui][data-palette="christmas"] .chat-theme-garland span:nth-child(2){left:39%;background:#bd5e5d}
html[data-chat-ui][data-palette="christmas"] .chat-theme-garland span:nth-child(3){left:64%}
html[data-chat-ui][data-palette="christmas"] .chat-theme-garland span:nth-child(4){left:85%;background:#bd5e5d}
html[data-chat-ui][data-palette="christmas"] :is(.room-picture,.message,.conversation-head,.profile-button)>.avatar{overflow:visible;position:relative}
html[data-chat-ui][data-palette="christmas"] :is(.room-picture,.message,.conversation-head,.profile-button)>.avatar:after{content:"";position:absolute;z-index:1;pointer-events:none;left:5%;top:-9px;width:75%;height:15px;background:#b33842;border-bottom:5px solid #fff7e9;border-radius:90% 12% 0 0;transform:rotate(-15deg);box-shadow:11px 1px 0 -4px #fff7e9}
html[data-chat-ui][data-palette="bridge"] .messenger-bar{background:#f2b77d!important;color:#201409!important;border:0}
html[data-chat-ui][data-palette="bridge"] .messenger-bar :is(.chat-wordmark,.chat-module-identity strong,.session-tools,.kira-header-trailing){color:#201409!important}
html[data-chat-ui][data-palette="bridge"] .chat-wordmark{text-transform:uppercase;letter-spacing:2px}
html[data-chat-ui][data-palette="bridge"] #workspace{gap:0!important;padding-right:0!important;padding-bottom:0!important}
html[data-chat-ui][data-palette="bridge"] #sidebar{--bridge-head:77px;position:relative;background:#000!important;border-radius:0;padding:0 12px 10px 26px}
html[data-chat-ui][data-palette="bridge"] #sidebar:before{content:"";position:absolute;pointer-events:none;left:0;top:0;bottom:12px;width:16px;background:linear-gradient(to bottom,#f2b77d 0 var(--bridge-head),#000 var(--bridge-head) calc(var(--bridge-head) + 6px),#cf91b0 calc(var(--bridge-head) + 6px) 178px,#000 178px 184px,#b7a1e3 184px 292px,#000 292px 298px,#efbb75 298px 368px,#000 368px 374px,#d18886 374px 485px,#000 485px 491px,#f2b77d 491px)}
html[data-chat-ui][data-palette="bridge"] #sidebar:after{content:"";position:absolute;pointer-events:none;left:0;right:0;top:0;height:var(--bridge-head);background:#f2b77d;border-bottom-right-radius:6px}
html[data-chat-ui][data-palette="bridge"] #sidebar .sidebar-head{display:flex!important;position:relative;z-index:1;box-sizing:border-box;flex:none;min-height:var(--bridge-head);height:var(--bridge-head);padding:20px 10px;color:#201409}
/* Keep the structural heading available to assistive navigation without a duplicate visual label. */
html[data-chat-ui][data-palette="bridge"] .sidebar-head h1{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
html[data-chat-ui][data-palette="bridge"] #sidebar .sidebar-head{justify-content:flex-end}
html[data-chat-ui][data-palette="bridge"] #sidebar .sidebar-filter-stack{background:#000;padding-top:10px}
html[data-chat-ui][data-palette="bridge"] #conversation{position:relative;border-radius:0;background:#000!important;box-shadow:none}
html[data-chat-ui][data-palette="bridge"] #conversation:before{content:"";position:absolute;left:0;top:0;width:45px;height:45px;background:#f2b77d;pointer-events:none}
html[data-chat-ui][data-palette="bridge"] .conversation-head{position:relative;box-sizing:border-box;min-height:81px;height:81px;padding-left:25px;padding-bottom:13px;border:0;border-top-left-radius:45px;background:#000!important;z-index:1}
html[data-chat-ui][data-palette="bridge"] .conversation-head:before,html[data-chat-ui][data-palette="bridge"] .conversation-head:after{display:none}

html[data-chat-ui][data-palette="bridge"] .timeline{border-left:0}
html[data-chat-ui][data-palette="bridge"] .room-item.selected{border-radius:3px 19px 19px 3px;box-shadow:inset 5px 0 #f2b77d}
html[data-chat-ui][data-palette="bridge"] .composer.compact-composer{position:relative;border-left:14px solid #b7a1e3;border-top:8px solid #b7a1e3;border-top-left-radius:32px;margin:0;padding:16px 15px 5px}
@media(min-width:761px){html[data-chat-ui]:is([data-palette="pridepop"],[data-palette="christmas"],[data-palette="coast"]) .chat-header-search{position:static!important;transform:none!important;flex:none;margin-left:18px}html[data-chat-ui]:is([data-palette="pridepop"],[data-palette="christmas"],[data-palette="coast"]) .chat-theme-art{position:absolute;left:50%;transform:translateX(-50%);width:250px}}
@media(max-width:1100px) and (min-width:761px){html[data-chat-ui]:is([data-palette="pridepop"],[data-palette="christmas"],[data-palette="coast"]) .chat-header-search{width:180px}html[data-chat-ui][data-palette="coast"] .chat-theme-art{max-width:200px}}
@media(max-width:760px){
 html[data-chat-ui]:is([data-palette="pridepop"],[data-palette="christmas"],[data-palette="coast"]) .chat-theme-art{max-width:120px;min-width:0;margin-left:auto;margin-right:auto}
 html[data-chat-ui][data-palette="pridepop"] .chat-theme-love{font-size:11px;letter-spacing:0;padding:5px 6px}
 html[data-chat-ui][data-palette="pridepop"] .chat-wordmark{font-size:19px}
 html[data-chat-ui][data-palette="pridepop"] .compact-brand{padding:7px 6px}
 html[data-chat-ui][data-palette="pridepop"] .chat-module-identity{padding-right:7px;min-height:34px}
 html[data-chat-ui][data-palette="pridepop"] .chat-module-identity strong{font-size:16px}
 html[data-chat-ui][data-palette="coast"] .chat-theme-art{height:44px}
 html[data-chat-ui][data-palette="coast"] .chat-theme-coast{width:120px;transform:scale(.65);transform-origin:center center;overflow:visible}
 html[data-chat-ui][data-palette="coast"] .chat-theme-coast .kt-coast-scene{margin-left:-47px}
 html[data-chat-ui][data-palette="christmas"] .messenger-bar{height:76px;min-height:76px;padding-top:calc(8px + env(safe-area-inset-top,0px))}
 html[data-chat-ui][data-palette="christmas"]{--kira-shell-height:76px}
 html[data-chat-ui][data-palette="christmas"] .chat-theme-sleigh{height:55px}
 html[data-chat-ui][data-palette="bridge"] #workspace{padding-left:0!important}
 html[data-chat-ui][data-palette="bridge"] #sidebar{border-radius:0;padding-left:26px}
 html[data-chat-ui][data-palette="bridge"] #sidebar>.sidebar-scroll{padding-top:0}
 html[data-chat-ui][data-palette="bridge"] #conversation{border-radius:0}
 html[data-chat-ui][data-palette="bridge"] .conversation-head{padding-left:16px;min-height:81px;height:81px}
 html[data-chat-ui][data-palette="bridge"] .conversation-head{border-top-left-radius:28px}
 html[data-chat-ui][data-palette="bridge"] #conversation:before{width:28px;height:28px}
 html[data-chat-ui][data-palette="bridge"] .composer.compact-composer{border-left-width:8px;padding:14px 7px 5px}
}
html[data-chat-ui][data-palette="coast"] .chat-theme-art .kt-coast-scene{width:180px;height:45px;position:relative;overflow:visible}
html[data-chat-ui][data-palette="coast"] .chat-theme-art .kt-lighthouse{position:absolute;left:78px;bottom:2px;width:25px;height:37px;background:linear-gradient(to bottom,#ffffff 0 29%,#1b5d84 29% 42%,#ffffff 42% 68%,#1b5d84 68% 79%,#ffffff 79%);clip-path:polygon(24% 0,76% 0,100% 100%,0 100%)}
html[data-chat-ui][data-palette="coast"] .chat-theme-art .kt-light-roof{position:absolute;left:76px;top:0;width:29px;height:8px;background:#ffdb95;clip-path:polygon(50% 0,100% 100%,0 100%)}
html[data-chat-ui][data-palette="coast"] .chat-theme-art .kt-light-window{position:absolute;left:88px;top:9px;width:6px;height:8px;background:#f4d29b;border-radius:2px 2px 0 0}
html[data-chat-ui][data-palette="coast"] .chat-theme-art .kt-light-beam{position:absolute;left:92px;top:4px;width:78px;height:20px;background:linear-gradient(90deg,#ffe0a75c,transparent);clip-path:polygon(0 40%,100% 0,100% 100%,0 70%)}
html[data-chat-ui][data-palette="coast"] .chat-theme-art .kt-gull{position:absolute;left:24px;top:12px;width:24px;height:10px;transform:rotate(-8deg)}
html[data-chat-ui][data-palette="coast"] .chat-theme-art .kt-gull:before,html[data-chat-ui][data-palette="coast"] .chat-theme-art .kt-gull:after{content:"";position:absolute;left:0;top:0;width:13px;height:8px;border-top:2px solid #f5fbff;border-radius:50%;transform:rotate(22deg)}
html[data-chat-ui][data-palette="coast"] .chat-theme-art .kt-gull:after{left:11px;transform:rotate(-22deg)}
html[data-chat-ui][data-palette="coast"] .chat-theme-art .kt-gull.kt-gull-two{left:133px;top:16px;transform:scale(.65) rotate(12deg)}
html[data-chat-ui][data-palette="coast"] .chat-theme-art .kt-coast-waves{position:absolute;left:0;right:0;bottom:0;height:9px;background:radial-gradient(16px 6px at 16px 0,transparent 90%,#d5effb 95% 100%,transparent 110%) 0 0/32px 9px repeat-x}
html[data-chat-ui][data-palette="coast"] .chat-theme-art .kt-fishing-boat{position:absolute;left:135px;bottom:5px;width:39px;height:31px}
html[data-chat-ui][data-palette="coast"] .chat-theme-art .kt-boat-hull{position:absolute;left:0;right:0;bottom:0;height:12px;background:#eef9ff;clip-path:polygon(0 0,100% 0,82% 100%,19% 100%);border-top:2px solid #f3cc8c}
html[data-chat-ui][data-palette="coast"] .chat-theme-art .kt-boat-cabin{position:absolute;left:12px;bottom:12px;width:13px;height:9px;background:#edf8ff;border-top:2px solid #f3cc8c}
html[data-chat-ui][data-palette="coast"] .chat-theme-art .kt-boat-cabin:after{content:"";position:absolute;left:3px;top:2px;width:6px;height:4px;background:#215a7d}
html[data-chat-ui][data-palette="coast"] .chat-theme-art .kt-boat-mast{position:absolute;left:9px;bottom:11px;width:25px;height:22px;border-left:1px solid #e3f4ff}
html[data-chat-ui][data-palette="coast"] .chat-theme-art .kt-boat-mast:after{content:"";position:absolute;left:-1px;top:4px;width:29px;height:1px;background:#e3f4ff;transform:rotate(23deg);transform-origin:left center}
html[data-chat-ui][data-palette="coast"] .chat-theme-art .kt-boat-net{position:absolute;left:22px;top:11px;width:12px;height:12px;border:1px solid #b7d8e8;border-top:0;background:repeating-linear-gradient(45deg,transparent 0 3px,#b7d8e866 3px 4px);transform:skewY(16deg)}
html[data-chat-ui][data-palette="bridge"] #sidebar .chat-tools{display:flex!important;flex:none;margin:0;padding:8px 10px 6px;background:#000}

/* Desktop-only joins to the fixed 66px navigation rail; keep chat/mobile geometry. */
@media(min-width:761px){
 html[data-chat-ui][data-palette="bridge"][data-floating-navigation] #workspace:before{content:"";position:absolute;left:46px;top:0;width:20px;height:20px;background:radial-gradient(circle at left bottom,transparent 20px,#f2b77d 20.5px);pointer-events:none}
 html[data-chat-ui][data-palette="bridge"][data-floating-navigation] #sidebar:after{border-bottom-left-radius:6px}
 html[data-chat-ui][data-palette="bridge"][data-floating-navigation] #sidebar:before{clip-path:inset(var(--bridge-head) 0 0)}
}

/* LCARS controls share a single surface; native handlers and FAB remain shared. */
.chat-bridge-node,.chat-bridge-telemetry{display:none;pointer-events:none}
html[data-chat-ui][data-palette="bridge"] .chat-bridge-node{display:block;color:#201409;font-family:Impact,"Arial Narrow","sans-serif-condensed",sans-serif;font-size:23px;font-weight:400;line-height:1.1;letter-spacing:.3px;white-space:nowrap}
html[data-chat-ui][data-palette="bridge"] .chat-sidebar-controls{display:flex;flex-direction:column;flex:none;position:relative;z-index:1;margin:6px -12px 6px -26px;padding:8px 22px 8px 36px;background:#cf91b0;border-radius:6px;box-shadow:0 0 0 6px #000}
html[data-chat-ui][data-palette="bridge"] #sidebar .chat-tools{display:flex!important;flex:none;margin:0;padding:0;background:transparent}
html[data-chat-ui][data-palette="bridge"] #sidebar .sidebar-filter-stack{background:transparent;border:0;padding:10px 0 0}
html[data-chat-ui][data-palette="bridge"] #sidebar :is(.chat-filter,.filters,.attention-tools select){background:#cf91b0!important;color:#000!important}
html[data-chat-ui][data-palette="bridge"] #sidebar .chat-filter{border:1px solid #000!important;padding:2px 10px}
html[data-chat-ui][data-palette="bridge"] #sidebar #chat-filter{color:#000!important;background:transparent!important}
html[data-chat-ui][data-palette="bridge"] #sidebar #chat-filter::placeholder{color:#000!important;opacity:1}
html[data-chat-ui][data-palette="bridge"] #sidebar .chat-filter span{color:#000!important}
html[data-chat-ui][data-palette="bridge"] #sidebar .filters button{background:transparent!important;color:#000!important;box-shadow:none!important}
html[data-chat-ui][data-palette="bridge"] #sidebar .filters button.selected{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px}
html[data-chat-ui][data-palette="bridge"] #sidebar .attention-tools select{border-color:#000;height:38px;min-height:38px;color-scheme:light}
html[data-chat-ui][data-palette="bridge"] #sidebar:before{display:none}
html[data-chat-ui][data-palette="bridge"] #sidebar>.sidebar-scroll{position:relative;margin-left:-26px;margin-right:-12px;padding-left:26px;padding-right:12px}
html[data-chat-ui][data-palette="bridge"] #sidebar>.sidebar-scroll:before{content:"";position:absolute;pointer-events:none;left:0;top:0;bottom:0;width:16px;background:linear-gradient(to bottom,#b7a1e3 0 108px,#000 108px 114px,#efbb75 114px 184px,#000 184px 190px,#d18886 190px 302px,#000 302px 308px,#f2b77d 308px)}
html[data-chat-ui][data-palette="bridge"] .room-item:hover:not(.selected){border-radius:19px;box-shadow:none}
html[data-chat-ui][data-palette="bridge"] .room-item .room-select{background:transparent!important}
@media(min-width:1100px){
 html[data-chat-ui][data-palette="bridge"] .chat-bridge-telemetry{display:flex;position:absolute;right:120px;top:50%;transform:translateY(-50%);width:200px;flex-direction:column;color:#201409;font-family:Impact,"Arial Narrow","sans-serif-condensed",sans-serif;font-size:13px;font-weight:400;line-height:1.2;letter-spacing:.55px;white-space:nowrap;font-variant-numeric:tabular-nums}
}

/* LCARS lettering stays readable and static; only the active category is underlined. */
html[data-chat-ui][data-palette="bridge"] #sidebar :is(.filters button,.attention-tools select){font-family:Impact,"Arial Narrow","sans-serif-condensed",sans-serif;font-size:14px;font-weight:700;letter-spacing:.25px}
html[data-chat-ui][data-palette="bridge"] #sidebar .filters button{padding:6px 5px;text-decoration:none}
html[data-chat-ui][data-palette="bridge"] #sidebar .filters button.selected{text-decoration:underline}
@media(hover:hover){html[data-chat-ui][data-palette="bridge"] #sidebar .filters button:hover:not(.selected){background:rgba(0,0,0,.07)!important}}
html[data-chat-ui][data-palette="bridge"]:not([data-chat-search="shown"]) #sidebar .chat-tools{display:none!important}
html[data-chat-ui][data-palette="bridge"]:not([data-chat-search="shown"]) #sidebar .sidebar-filter-stack{padding-top:0}
