/* 69world v74: three site-wide themes, no free-form color editor */
:root { color-scheme:dark; }
html[data-world-theme="default"] {
 --theme-bg:#0d1923;--theme-panel:#233748;--theme-surface:#182b39;
 --theme-input:#233748;--theme-text:#f4f8fb;--theme-muted:#b3c7d4;
 --theme-border:#405a6b;--theme-accent:#aee5ee;--theme-message:#142c3b;
}
html[data-world-theme="soft"] {
 --theme-bg:#15232e;--theme-panel:#304454;--theme-surface:#223645;
 --theme-input:#304454;--theme-text:#f4f8fb;--theme-muted:#c4d0d8;
 --theme-border:#5a7280;--theme-accent:#b7e6e9;--theme-message:#263e4d;
}
html[data-world-theme="light"] {
 color-scheme:light;
 --theme-bg:#b0c0cc;--theme-panel:#dce7ed;--theme-surface:#c7d6e0;
 --theme-input:#e9eff3;--theme-text:#193445;--theme-muted:#486478;
 --theme-border:#a4bac9;--theme-accent:#2b728b;--theme-message:#477f98;
}
html[data-world-theme] body{
 --bg:var(--theme-bg)!important;--panel:var(--theme-panel)!important;
 --panel2:var(--theme-panel)!important;--text:var(--theme-text)!important;
 --muted:var(--theme-muted)!important;--accent:var(--theme-accent)!important;
 --line:var(--theme-border)!important;
 background:var(--theme-bg)!important;color:var(--theme-text)!important;
}
html[data-world-theme] body :is(main,.shell,.chat,.messages,.container,.page,.content,.main-content){
 color:var(--theme-text)!important;
}
html[data-world-theme] body :is(.shell .chat,.shell .messages){background:transparent!important}
html[data-world-theme] body :is(.shell .sidebar,.sidebar,.sidebarTop,.chatHeader.telegramHeader,
 .composerPill,.card,.panel,.box,.auth,.authCard,.profileCard,.creatorCard,
 .stickerPanel,.stickerTabs,.stickerGrid,.stickerManage,.stickerItem,
 .ranking-tabs,.rank-row,.hero,.section-grid .card){
 background-color:var(--theme-panel)!important;color:var(--theme-text)!important;
 border-color:var(--theme-border)!important;
}
html[data-world-theme] body :is(.stickerTabs,.stickerManage,.stickerGrid){
 background:var(--theme-panel)!important;
}
html[data-world-theme] body :is(.stickerTabs button,.stickerManage button,.person,
 .chatSidebarSearch,.chatSidebarSearch input,.field input,.field select,textarea,select){
 background-color:var(--theme-surface)!important;color:var(--theme-text)!important;
 border-color:var(--theme-border)!important;
}
html[data-world-theme] body .composerPill{background:var(--theme-input)!important}
html[data-world-theme] body :is(.who small,.small,.muted,.hint){color:var(--theme-muted)!important}
html[data-world-theme] body .bubble.mine:not(:has(.stickerBubble)){
 background:var(--theme-message)!important;color:#fff!important;
}
html[data-world-theme] body .bubble:not(.mine):not(:has(.stickerBubble)){
 background:var(--theme-panel)!important;color:var(--theme-text)!important;
}
html[data-world-theme="light"] body .shell .sidebar,
html[data-world-theme="light"] body .shell .chatHeader.telegramHeader{
 background:#dce7ed!important;
}
html[data-world-theme="light"] body .shell .composerPill{background:#e9eff3!important}
html[data-world-theme="light"] body .shell .messages{background:transparent!important}
html[data-world-theme="soft"] body .shell .sidebar,
html[data-world-theme="soft"] body .shell .chatHeader.telegramHeader,
html[data-world-theme="soft"] body .shell .composerPill{background:#304454!important}
html[data-world-theme="default"] body .shell .sidebar,
html[data-world-theme="default"] body .shell .chatHeader.telegramHeader,
html[data-world-theme="default"] body .shell .composerPill{background:#233748!important}
html[data-world-theme] body #stickerPanel .stickerTabs{
 border-top:0!important;border-bottom:1px solid var(--theme-border)!important;
}
html[data-world-theme] body #stickerPanel .stickerGrid{border-top:0!important}
html[data-world-theme] body #stickerPanel{background:var(--theme-panel)!important}
html[data-world-theme] body #world-color-launch,
html[data-world-theme] body #world-color-editor{display:none!important}
.emojiGrid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(44px,1fr))!important;gap:4px!important}
.emojiItem{background:transparent!important;border:0!important;border-radius:9px!important;font-size:29px!important;cursor:pointer!important;min-height:43px!important}
.emojiItem:hover{background:var(--theme-surface)!important}
#emojiSearch{display:block;width:100%;margin:5px 0 12px;padding:10px;border-radius:10px;
 background:var(--theme-surface);color:var(--theme-text);border:1px solid var(--theme-border)}
/* The shared top-right dock on Friends and Creators */
.world-top-dock{position:fixed;right:12px;top:0;z-index:2000;width:384px;height:84px;
 display:flex;align-items:center;gap:13px;padding:9px 13px;
 border:1px solid #466578;border-top:0;border-radius:0 0 14px 14px;
 background:linear-gradient(130deg,#1a394b,#101c2c);box-shadow:0 12px 32px #0008;
 box-sizing:border-box;color:white}
.world-top-dock button{width:46px;height:46px;border:1px solid #527488;border-radius:10px;
 background:#25485a;color:white;font-size:23px;cursor:pointer}
.world-top-dock .world-name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
 text-align:right;font-weight:700}
.world-top-dock .world-avatar{width:58px;height:58px;flex:none;border:3px solid #87aabb;
 border-radius:50%;display:grid;place-items:center;background:#213b4e;color:#fff;
 text-decoration:none;font-weight:800;overflow:hidden}
.world-top-dock .world-avatar img{width:100%;height:100%;object-fit:cover}
.world-theme-menu{position:fixed;right:20px;top:90px;z-index:2200;padding:18px;width:280px;
 background:#203748;border:1px solid #648396;border-radius:14px;color:white;box-shadow:0 12px 35px #0009}
.world-theme-menu[hidden]{display:none!important}
.world-theme-menu label{display:block;margin:10px 0}
.world-theme-menu select{width:100%;padding:9px;border-radius:8px;background:#30485b;color:white}
@media(max-width:600px){.world-top-dock{right:5px;width:min(350px,calc(100vw - 12px));height:70px}.world-top-dock .world-avatar{width:45px;height:45px}}
