/* v1025 Conversation Atelier — conversation-only visual tokens. */
:root{--chat-canvas:#fffaf4;--chat-header:#ffffff;--chat-incoming:#ffffff;--chat-outgoing:#ffe2b8;--chat-composer:#ffffff;--chat-text:#040612;--chat-muted:#4b5563;--chat-accent:#b95612;--chat-border:rgba(128,91,56,.2);--chat-outgoing-border:rgba(185,86,18,.46)}
html[data-chat-theme="obsidian-gold"]{--chat-canvas:#080a0d;--chat-header:#101318;--chat-incoming:#151920;--chat-outgoing:#342a16;--chat-composer:#11151b;--chat-text:#f8fafc;--chat-muted:#cbd5e1;--chat-accent:#e0bd4c;--chat-border:rgba(255,255,255,.14);--chat-outgoing-border:rgba(224,189,76,.52)}
html[data-chat-theme="royal-sapphire"]{--chat-canvas:#07111f;--chat-header:#0c192c;--chat-incoming:#10213a;--chat-outgoing:#21477d;--chat-composer:#0d1b31;--chat-text:#f8fbff;--chat-muted:#c6d5ee;--chat-accent:#8db0ff;--chat-border:rgba(198,213,238,.2);--chat-outgoing-border:rgba(118,160,255,.58)}
html[data-chat-theme="emerald-reserve"]{--chat-canvas:#06130f;--chat-header:#0a1b15;--chat-incoming:#10261e;--chat-outgoing:#18513c;--chat-composer:#0b2018;--chat-text:#f3fff9;--chat-muted:#b8d8c9;--chat-accent:#62e2b1;--chat-border:rgba(184,216,201,.19);--chat-outgoing-border:rgba(77,214,161,.54)}
html[data-chat-theme="rose-noire"]{--chat-canvas:#170a11;--chat-header:#21101a;--chat-incoming:#2b1722;--chat-outgoing:#5d2c46;--chat-composer:#25131d;--chat-text:#fff7fa;--chat-muted:#dfbdca;--chat-accent:#f3a0bb;--chat-border:rgba(223,189,202,.2);--chat-outgoing-border:rgba(239,141,174,.56)}
html[data-chat-theme="amethyst-night"]{--chat-canvas:#100a1b;--chat-header:#171026;--chat-incoming:#211733;--chat-outgoing:#4a2d70;--chat-composer:#1b122b;--chat-text:#fbf8ff;--chat-muted:#d2c4e5;--chat-accent:#c5a9ff;--chat-border:rgba(210,196,229,.2);--chat-outgoing-border:rgba(185,148,255,.56)}
html[data-chat-theme="arctic-silver"]{--chat-canvas:#edf2f7;--chat-header:#ffffff;--chat-incoming:#ffffff;--chat-outgoing:#d4e5f5;--chat-composer:#f8fafc;--chat-text:#101827;--chat-muted:#4b5b70;--chat-accent:#405f83;--chat-border:rgba(82,107,137,.24);--chat-outgoing-border:rgba(64,95,131,.46)}
html[data-chat-theme="sunset-copper"]{--chat-canvas:#17100c;--chat-header:#211710;--chat-incoming:#2b1d14;--chat-outgoing:#60351b;--chat-composer:#251911;--chat-text:#fff9f3;--chat-muted:#e2c6b2;--chat-accent:#ee9f60;--chat-border:rgba(226,198,178,.2);--chat-outgoing-border:rgba(224,138,69,.58)}
html[data-design-authority="v1024"] :is(#messages-list,.community-chat-messages){background:var(--chat-canvas)!important;background-image:none!important;color:var(--chat-text)!important;transition:none!important}
html[data-design-authority="v1024"] :is(.chat-heading,.community-chat-head){background:var(--chat-header)!important;color:var(--chat-text)!important;border-color:var(--chat-border)!important}
html[data-design-authority="v1024"] :is(.messages .msg:not(.me),.community-message:not(.mine)){background:var(--chat-incoming)!important;background-image:none!important;color:var(--chat-text)!important;border-color:var(--chat-border)!important;border-inline-start:3px solid color-mix(in srgb,var(--chat-muted) 34%,transparent)!important;box-shadow:0 5px 16px color-mix(in srgb,var(--chat-text) 7%,transparent)!important}
html[data-design-authority="v1024"] :is(.messages .msg.me,.community-message.mine){background:var(--chat-outgoing)!important;background-image:none!important;color:var(--chat-text)!important;-webkit-text-fill-color:var(--chat-text)!important;border-color:var(--chat-outgoing-border)!important;border-inline-end:3px solid var(--chat-accent)!important;box-shadow:0 6px 18px color-mix(in srgb,var(--chat-accent) 14%,transparent)!important}
html[data-design-authority="v1024"] :is(.messages .msg.me,.community-message.mine,.messages .msg:not(.me),.community-message:not(.mine)) :where(.message-text,.message-time,.forwarded-label,.message-translation,.message-translation b,.message-translation span,.message-translation small,.attachment small){color:var(--chat-text)!important;-webkit-text-fill-color:var(--chat-text)!important;opacity:1!important}
html[data-design-authority="v1024"] :is(.messages .msg.me,.community-message.mine,.messages .msg:not(.me),.community-message:not(.mine)) a{color:var(--chat-text)!important;-webkit-text-fill-color:var(--chat-text)!important;text-decoration:underline!important;text-underline-offset:3px!important}
html[data-design-authority="v1024"] :is(.message-form,.community-chat-form,.community-composer-shell){background:var(--chat-composer)!important;border-color:var(--chat-border)!important}
html[data-design-authority="v1024"] :is(#chat-menu,#community-chat-menu).premium-menu{background:var(--chat-header)!important;border-color:var(--chat-border)!important}
html[data-design-authority="v1024"] :is(#chat-menu,#community-chat-menu).premium-menu button{background:var(--chat-incoming)!important;color:var(--chat-text)!important;-webkit-text-fill-color:var(--chat-text)!important}
.conversation-theme-card{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px}.conversation-theme-card>div{display:grid;gap:3px}.conversation-theme-card span{color:var(--text-secondary);font-size:var(--supporting-min)}
.conversation-theme-card button{grid-column:1/-1;width:100%}.conversation-theme-card-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:16px;background:linear-gradient(145deg,#172235,#334155);color:#f8fafc;font-size:1.25rem}
.conversation-theme-modal{z-index:60050!important}
.conversation-theme-card-dialog{width:min(92vw,720px)!important;max-height:min(90dvh,820px);overflow:auto}.conversation-theme-intro{margin-top:-4px}.conversation-theme-scope{display:block;margin:8px 0 12px;color:var(--text-secondary);font-size:var(--supporting-min);font-weight:850}
.conversation-theme-mode{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-bottom:14px;padding:5px;border:1px solid var(--border-subtle);border-radius:18px;background:var(--surface-subtle)}.conversation-theme-mode button{border:0;border-radius:14px;background:transparent;color:var(--text-secondary);font-weight:900}.conversation-theme-mode button.active{background:var(--surface-elevated);color:var(--text-primary);box-shadow:var(--shadow-1)!important}.conversation-theme-mode button:disabled{opacity:.45}
.conversation-theme-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.conversation-theme-option{position:relative;display:grid;grid-template-columns:76px minmax(0,1fr);align-items:center;gap:11px;min-height:88px;padding:10px;border:1px solid var(--border-subtle);border-radius:18px;background:var(--surface-elevated);color:var(--text-primary);text-align:left}.conversation-theme-option.selected{border-color:var(--action-primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--action-primary) 18%,transparent)!important}.conversation-theme-option.selected::after{content:"✓";position:absolute;right:9px;top:8px;display:grid;place-items:center;width:21px;height:21px;border-radius:50%;background:var(--action-primary);color:#fff;font-weight:950}.conversation-theme-option>span:last-child{display:grid;gap:4px;padding-right:18px}.conversation-theme-option small{color:var(--text-secondary);font-size:var(--supporting-min);line-height:1.3}.conversation-theme-swatch{display:grid;grid-template-columns:1fr 1fr;height:54px;overflow:hidden;border:2px solid var(--border-subtle);border-radius:15px}.conversation-theme-swatch i:first-child{grid-column:1/-1;background:var(--swatch-canvas,#fffaf4)}.conversation-theme-swatch i:nth-child(2){background:var(--swatch-incoming,#fff)}.conversation-theme-swatch i:nth-child(3){background:var(--swatch-outgoing,#ffe2b8)}
[data-conversation-theme="obsidian-gold"]{--swatch-canvas:#080a0d;--swatch-incoming:#151920;--swatch-outgoing:#342a16}[data-conversation-theme="royal-sapphire"]{--swatch-canvas:#07111f;--swatch-incoming:#10213a;--swatch-outgoing:#21477d}[data-conversation-theme="emerald-reserve"]{--swatch-canvas:#06130f;--swatch-incoming:#10261e;--swatch-outgoing:#18513c}[data-conversation-theme="rose-noire"]{--swatch-canvas:#170a11;--swatch-incoming:#2b1722;--swatch-outgoing:#5d2c46}[data-conversation-theme="amethyst-night"]{--swatch-canvas:#100a1b;--swatch-incoming:#211733;--swatch-outgoing:#4a2d70}[data-conversation-theme="arctic-silver"]{--swatch-canvas:#edf2f7;--swatch-incoming:#fff;--swatch-outgoing:#d4e5f5}[data-conversation-theme="sunset-copper"]{--swatch-canvas:#17100c;--swatch-incoming:#2b1d14;--swatch-outgoing:#60351b}
.conversation-theme-actions{position:sticky;bottom:-1px;display:flex;justify-content:space-between;gap:10px;margin:15px -2px -2px;padding:12px 2px 2px;background:var(--surface-elevated)}
@media(max-width:620px){.conversation-theme-modal{align-items:flex-end!important;padding:0!important}.conversation-theme-card-dialog{width:100%!important;max-width:none!important;max-height:92dvh!important;border-radius:26px 26px 0 0!important}.conversation-theme-grid{grid-template-columns:1fr}.conversation-theme-option{min-height:78px}}
