/* v0.3 — clair/sombre et barre de composition client */
/* Les variantes des comptes ci-dessous restent isolées du produit réel. */
html[data-theme=light]{color-scheme:light;--bg:#f5f6fa;--panel:#fff;--ink:#253047;--muted:#62708a;--line:#dce2ed;--accent:#5966b0;--soft:#eaf0fd;--peach:#e5ddf3;--primary:#6572d9}
.theme-toggle{display:inline-grid;place-items:center;flex-shrink:0;min-width:44px;height:44px;border:1px solid var(--line);border-radius:14px;background:var(--panel);color:var(--ink);font-size:20px;padding:0 9px;box-shadow:none}
.toplinks .theme-toggle{padding:0 9px;color:var(--ink)}
html[data-theme=light] body{background:var(--bg);color:var(--ink)}
html[data-theme=light] .review{background:#e9edf5;border-color:#d5ddeb;color:#4b5872}
html[data-theme=light] .review strong{color:#505dab}
html[data-theme=light] .review label{color:#4b5872!important}
html[data-theme=light] .review select{background:#fff;color:var(--ink);border-color:#cdd6e8}
html[data-theme=light] aside,html[data-theme=light] .top{background:#edf1f8;border-color:var(--line)}
html[data-theme=light] .logo b{color:#6b70c8}
html[data-theme=light] nav button{color:#63708a}
html[data-theme=light] nav button[aria-current=page]{color:#46589f;background:#dfe7fa}
html[data-theme=light] .eyebrow{color:#6672a5}
html[data-theme=light] .pill{background:#fff;color:#46578b;border-color:#d2daeb}
html[data-theme=light] .avatar{background:#e0e7fa;color:#5666b7;border-color:#c5d0ed}
html[data-theme=light] .btn{background:linear-gradient(115deg,#6575db,#7970d6);color:#fff;box-shadow:0 5px 14px #5268c31a}
html[data-theme=light] .btn.secondary{background:#e9eefc;color:#4e5f9c;box-shadow:none}
html[data-theme=light] .btn.quiet{background:#fff;color:#52628a;border-color:#d8dfed;box-shadow:none}
html[data-theme=light] .btn.danger{background:#b53653;color:#fff}
html[data-theme=light] .chip{background:#fff;border-color:#dce2ee;color:#61708e}
html[data-theme=light] .chip[aria-pressed=true]{background:#e3eafb;border-color:#becbf1;color:#455b9f}
html[data-theme=light] .search,html[data-theme=light] .composer textarea{background:#f7f9fc;color:var(--ink);border-color:#d9e1ef}
html[data-theme=light] input::placeholder,html[data-theme=light] textarea::placeholder{color:#738099}
html[data-theme=light] .notice{background:#eaf0fd;color:#52618b;border-color:#8291d2}
html[data-theme=light] .status{color:#34795d}
html[data-theme=light] .status.away{color:#68748c}
html[data-theme=light] .tag{background:#eef2f8;color:#586984}
html[data-theme=light] .card:hover{border-color:#96a5d6}
html[data-theme=light] .heart{background:#f1edfc;border-color:#d4caef;color:#8064af}
html[data-theme=light] .heart.active{background:#7566c4;color:#fff}
html[data-theme=light] .featured{background:linear-gradient(140deg,#edf0ff,#fff);border-color:#8b8cdb}
html[data-theme=light] .bubble{background:#f1f3f7;color:#29374c}
html[data-theme=light] .bubble.mine{background:#e6edfc;color:#304f82}
html[data-theme=light] .messages{background:#fff}
html[data-theme=light] .thread-head{background:#fff}
html[data-theme=light] .inbox,html[data-theme=light] .contact-list,html[data-theme=light] .chat-detail{background:#fbfcfe}
html[data-theme=light] .conversation,html[data-theme=light] .contact-button.active{background:#e9effd;color:#304970}
html[data-theme=light] .contact-button small,html[data-theme=light] .conversation-info{color:#667592}
html[data-theme=light] .round-tool{background:#f4f6fb;border-color:#d8e0ed;color:#5d6b8d}
html[data-theme=light] .story{color:#5b6780}
html[data-theme=light] .story .face{box-shadow:0 0 0 3px #f5f6fa,0 0 0 4px #9b98d8}
html[data-theme=light] .face,html[data-theme=light] .mini-face{border-color:#bdc7e1}
html[data-theme=light] .toplinks button{color:#64718a}
html[data-theme=light] .toplinks button.active{color:#5a68bc}
html[data-theme=light] .overline-pill{background:#edf0fa;color:#5b6796;border-color:#d7dff0}
html[data-theme=light] .hero-copy>p{color:#62708a}
html[data-theme=light] .human-caption{color:#66738c!important}
html[data-theme=light] .gradient-text{background-image:linear-gradient(95deg,#5b70c5,#a464b5)}
html[data-theme=light] .hero-scene{border-color:#dce2ee}
html[data-theme=light] .hero-scene:before{background:radial-gradient(ellipse at 75% 60%,#b3a4dd70,transparent 70%)}
html[data-theme=light] .scene-person:after{background:linear-gradient(90deg,#f5f6fa 0%,transparent 35%,transparent 90%,#f5f6fa)}
html[data-theme=light] .scene-label{background:#f5f6fae0;color:#65718a;padding:5px;border-radius:6px}
html[data-theme=light] .mini-chat{background:#ffffffef;border-color:#d7dceb;box-shadow:0 20px 65px #52608126}
html[data-theme=light] .mini-inbox,html[data-theme=light] .mini-title{border-color:#e0e6f0}
html[data-theme=light] .mini-row{color:#536381}
html[data-theme=light] .mini-row.selected{background:#eaf0fd}
html[data-theme=light] .mini-row small,html[data-theme=light] .mini-title small{color:#687695!important}
html[data-theme=light] .mini-bubble{background:#f1f3f8;color:#35435d}
html[data-theme=light] .mini-bubble.mine{background:#e3eafa;color:#435b91}
html[data-theme=light] .mini-input{border-color:#dbe2ee;color:#7a86a0}
html[data-theme=light] .mini-send{background:#7380d3;color:#fff}
html[data-theme=light] .feature-strip{border-color:#dce2ee}
html[data-theme=light] .feature-symbol{color:#7b82c6}
html[data-theme=light] .feature-strip small{color:#66738b}
html[data-theme=light] .text-link{color:#596bb2}
html[data-theme=light] .landing-explore .card-body,html[data-theme=light] .profile-overlay{color:#fff}
html[data-theme=light] .landing-explore .subtle,html[data-theme=light] .profile-overlay .subtle{color:#d8d6e8}
html[data-theme=light] .profile-overlay .overline-pill{background:#221c35cb;color:#f0eaff;border-color:#796b91}
html[data-theme=light] .landing-footer{border-color:#dce2ee;color:#67738c}
html[data-theme=light] .bottom-nav{background:#fffffff2;border-color:#d9e1ef;box-shadow:0 -4px 20px #58678c08}
html[data-theme=light] .bottom-nav button{color:#6f7a90}
html[data-theme=light] .bottom-nav button.active{color:#5b6ec2;background:#edf1fd}
html[data-theme=light] .pro-shell{background:#fff;border-color:#dbe1ec}
html[data-theme=light] .pro-tabs{background:#e9eef8;border-color:#d9e0ed}
html[data-theme=light] .pro-tab{color:#5d6c87}
html[data-theme=light] .pro-tab.active{background:#fff;color:#405783}
html[data-theme=light] .pro-tab>span[style]{color:#64728a!important}
html[data-theme=light] .pro-toolbar{border-color:#dce2ee}
html[data-theme=light] .view-switch{background:#eef2f9}
html[data-theme=light] .view-switch button{color:#64718c}
html[data-theme=light] .view-switch button.active{background:#dce5fb;color:#445b94}
html[data-theme=light] .pro-list,html[data-theme=light] .pro-detail{border-color:#dce2ee;background:#fcfdff}
html[data-theme=light] .pro-filters button{background:#f0f3f9;color:#66738e}
html[data-theme=light] .pro-filters button.active{background:#dfe8fb;color:#48639a}
html[data-theme=light] .pro-contact{border-color:#e3e8f1}
html[data-theme=light] .pro-contact.active{background:#e8efff;border-left-color:#879bda}
html[data-theme=light] .pro-contact small,html[data-theme=light] .pro-contact-meta,html[data-theme=light] .pro-contact span[style]{color:#65738c!important}
html[data-theme=light] .pro-detail p,html[data-theme=light] .pro-detail .list-line span{color:#61718b}
html[data-theme=light] .pro-detail .list-line{border-color:#e1e6f0}
html[data-theme=light] .reply-library{background:#f6f8fd;border-color:#dce2ee}
html[data-theme=light] .reply-library .library-tabs{color:#66718e}
html[data-theme=light] .reply-library .library-tabs strong{color:#5969b0}
html[data-theme=light] .reply-options button{background:#eaf0fc;border-color:#d4def4;color:#506799}
html[data-theme=light] .private-note{background:#fff7db!important;color:#7b5e26!important;border-color:#e9d69d}
html[data-theme=light] .multi-board{background:#f3f6fb}
html[data-theme=light] .multi-card{background:#fff;border-color:#dce2ee}
html[data-theme=light] .multi-card>header{border-color:#dce2ee}
html[data-theme=light] .multi-card>header small{color:#65728e}
html[data-theme=light] .wallet-art{background:linear-gradient(130deg,#e3eafc,#fafaff)!important}
html[data-theme=light] .wallet-art:after{color:#697fd315}
html[data-theme=light] .demo-summary{color:#5e6eb0}
html[data-theme=light] .demo-error{color:#b02c50}
html[data-theme=light] .toast{background:#fff;border-color:#c9d2e8;color:#35466a;box-shadow:0 8px 32px #61729126}
html[data-theme=light] .stories{scrollbar-color:#c2cce4 transparent}
.client-messenger .composer{position:relative;background:var(--panel)}
.composer-toolbar{display:flex;align-items:center;gap:6px;padding-bottom:8px;min-width:0}
.composer-tool{width:44px;height:44px;display:inline-grid;place-items:center;border-radius:12px;background:var(--soft);color:var(--accent);border:1px solid var(--line);font-size:23px;flex-shrink:0}
.composer-tool[aria-expanded=true]{border-color:var(--accent);box-shadow:0 0 0 2px var(--soft)}
.emoji-shortcuts{display:flex;gap:1px;overflow-x:auto;min-width:0;scrollbar-width:none}
.emoji-shortcuts button{background:transparent;border-radius:10px;min-width:42px;height:44px;font-size:23px;padding:5px;flex-shrink:0}
.emoji-shortcuts button:hover{background:var(--soft)}
.composer-mode{font-size:11px;color:var(--muted);margin-left:auto;white-space:nowrap}
.client-messenger .composer>label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.client-messenger .composer textarea{background:var(--bg);font-size:15px;line-height:1.55;border:1px solid var(--line);min-height:64px;border-radius:14px;padding:12px 14px;margin-bottom:9px;resize:none}
.composer-counter{font-size:10px;color:var(--muted)}
.emoji-picker{position:absolute;bottom:calc(100% + 3px);left:12px;right:12px;max-width:390px;max-height:270px;overflow-y:auto;padding:14px;border:1px solid var(--line);border-radius:18px;background:var(--panel);box-shadow:0 -8px 35px #0002;z-index:3}
.emoji-picker header{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px;margin-bottom:10px}
.emoji-picker header button{background:var(--soft);color:var(--ink);border-radius:10px;width:36px;height:36px;font-size:19px}
.emoji-categories{display:flex;gap:5px;margin-bottom:9px}
.emoji-categories button{background:var(--bg);color:var(--muted);border-radius:9px;padding:10px 12px;font-size:11px;min-height:40px}
.emoji-categories button[aria-pressed=true]{background:var(--soft);color:var(--accent)}
.emoji-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:3px}
.emoji-grid button{height:44px;background:transparent;border-radius:9px;font-size:25px;padding:3px}
.emoji-grid button:hover{background:var(--soft)}
.emoji-feedback{font-size:11px;line-height:1.5;color:var(--muted);margin:10px 0 0;min-height:17px}
.client-messenger .messages{scroll-behavior:smooth}
@media(prefers-reduced-motion:reduce){.client-messenger .messages{scroll-behavior:auto}}
@media(max-width:800px){.top-right .avatar{display:none}.top-right{gap:7px}.top-right .pill{font-size:11px;padding:10px 11px}.top-right .theme-toggle{width:42px;min-width:42px;height:42px}.landing-header .toplinks .theme-toggle{height:38px;min-width:38px;margin-left:4px}.landing-header .toplinks button:not(.theme-toggle){padding:10px 10px;font-size:11px}.composer-toolbar{gap:4px;padding-bottom:5px}.emoji-shortcuts button{min-width:38px;height:42px;font-size:22px}.composer-tool{width:42px;height:42px}.composer-mode{display:none}.client-messenger .composer textarea{height:56px;min-height:56px;padding:9px 12px;font-size:16px}.client-messenger .composer{padding:9px 12px}.client-messenger .composer .row{gap:6px}.emoji-picker{max-height:240px;padding:11px;left:8px;right:8px}.emoji-grid{gap:1px}.emoji-categories button{padding:9px}.emoji-feedback{font-size:10px}.client-messenger .composer .subtle{max-width:64%;line-height:1.5}.client-messenger .composer .btn{font-size:12px;padding:10px 13px}.client-messenger{min-height:320px}}
