/* The chat just for a video call (Nicolas, 15 October): Mood Meter on top, the feeling's watercolour scene behind
   the messages, a plain box with Send. Also the summary card in the general chat and its read-only view. */
.cc-pane.cx-on{padding:0;overflow:hidden;background:#eef8f4}
.cx{position:relative;height:100%;display:flex;flex-direction:column;font-family:"Nunito Sans",sans-serif;color:#2b2724}
.cx-bg{position:absolute;inset:0;z-index:0;background:linear-gradient(#e3f3ec,#f2faf6)}
.cx-scene{position:absolute;inset:0}
.cx-scene svg{position:absolute;inset:0;width:100%;height:100%}
/* The feeling line at the top of Nicolas's call chat (Therapist/therapist-call.js) keeps these. */
.cx-mm{position:relative;z-index:2;margin:10px 10px 0;padding:9px 10px;border-radius:12px;background:#fffdf9e8;border:1px solid #e6dccf}
.cx-mh{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:7px}
.cx-mh b{font:700 11px "Nunito Sans",sans-serif;letter-spacing:.08em;text-transform:uppercase;color:#7a716a}
.cx-now{border:1.5px solid #242423;border-radius:6px;padding:3px 8px;font-size:12px;font-weight:700}
.cx-rec{box-sizing:border-box;width:24px;height:24px;border:1.5px solid #d14b3c;border-radius:50%;background:#fff;padding:0;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;min-height:0;box-shadow:none}
.cx-rec i{width:12px;height:12px;border-radius:50%;background:#d14b3c}
.cx-rec:not(:disabled){animation:cx-rec-pulse 1.4s ease-in-out infinite}
.cx-rec:not(:disabled):hover{background:#fdeeea}
.cx-rec:disabled{opacity:.35;cursor:default;animation:none}
@keyframes cx-rec-pulse{50%{box-shadow:0 0 0 4px rgba(209,75,60,.18)}}
@media (prefers-reduced-motion:reduce){.cx-rec{animation:none!important}}
.cx-msgs::-webkit-scrollbar{display:none}
.cx .q-red,.cx-card .q-red,.cx-view .q-red{background:#e7aaa0}.cx .q-yellow,.cx-card .q-yellow,.cx-view .q-yellow{background:#edda8d}.cx .q-blue,.cx-card .q-blue,.cx-view .q-blue{background:#aecadd}.cx .q-green,.cx-card .q-green,.cx-view .q-green{background:#bbd4b8}
.cx-msgs{position:relative;z-index:1;flex:1;min-height:0;overflow:auto;scrollbar-width:none;padding:12px;display:flex;flex-direction:column;gap:8px}
.cx-b{max-width:80%;align-self:flex-start;background:#2f3a3e;color:#fff;border-radius:14px;padding:9px 12px;font-size:14px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}
.cx-b.mine{align-self:flex-end;background:#91d9c1;color:#16352c}
.cx-b small{display:block;margin-top:3px;font-size:11px;opacity:.7}
/* A question asked in the call (Nicolas, 4 November): its card holds the answers from both sides until Close Question. */
.cx-qa{flex:none;align-self:stretch;display:flex;flex-direction:column;gap:8px;padding:10px;border-radius:14px;background:#fffdf9e6;border:1px solid #e4ddd3}
.cx-qa.open{border-color:#91d9c1;box-shadow:0 0 0 3px #91d9c133}
.cx-qah{display:flex;flex-direction:column;gap:4px}
.cx-qak{align-self:flex-start;font:600 12px/1 system-ui,-apple-system,sans-serif;padding:4px 8px;border-radius:999px;background:#ece8e2;color:#3d3833}
.cx-qa.open .cx-qak{background:#91d9c1;color:#16352c}
.cx-qah p{margin:0;font-weight:700;font-size:14px;line-height:1.4;color:#2b2724;overflow-wrap:anywhere}
.cx-qaclose{align-self:stretch;min-height:36px;border-radius:10px;border:1px solid #91d9c1;background:#91d9c12e;color:#23866f;font:600 13px/1 system-ui,-apple-system,sans-serif;cursor:pointer}
.cx-qaclose:hover{background:#91d9c155}
html[data-theme="dark"] .cx-qa{background:#2c2a28e6;border-color:#3d3a36}
html[data-theme="dark"] .cx-qa.open{border-color:#91d9c1;box-shadow:0 0 0 3px #91d9c126}
html[data-theme="dark"] .cx-qak{background:#34312d;color:#e6e1da}
html[data-theme="dark"] .cx-qa.open .cx-qak{background:#91d9c1;color:#16352c}
html[data-theme="dark"] .cx-qah p{color:#ece8e1}
html[data-theme="dark"] .cx-qaclose{background:#91d9c126;color:#91d9c1}
.cx-err{position:relative;z-index:2;font-size:12.5px;color:#b0473a;padding:0 12px}
.cx-err:empty{display:none}
.cx-in{position:relative;z-index:2;flex:none;display:flex;gap:8px;padding:10px;background:#fffdf9;border-top:1px solid #e6dccf}
.cx-in textarea{flex:1;min-width:0;height:42px;min-height:42px;max-height:120px;box-sizing:border-box;resize:none;border:1px solid #dfd3c6;border-radius:10px;padding:10px 12px;font:14px/1.4 "Nunito Sans",sans-serif;background:#fff;color:#2b2724;outline:0;scrollbar-width:none}
.cx-in textarea:focus{border-color:#91d9c1;box-shadow:0 0 0 3px #91d9c133}
.cx-send{flex:none;height:42px;min-height:42px;padding:0 16px;border:0;border-radius:10px;background:#91d9c1;color:#16352c;font:800 14px "Nunito Sans",sans-serif;cursor:pointer}
@keyframes cx-fall{from{transform:translateY(-140px)}to{transform:translateY(620px)}}
@keyframes cx-drift{from{transform:translateX(-160px)}to{transform:translateX(420px)}}
@keyframes cx-drift2{from{transform:translateX(420px)}to{transform:translateX(-200px)}}
@keyframes cx-bolt{0%,62%{stroke-dashoffset:200;opacity:0}66%{opacity:.9}74%{stroke-dashoffset:0;opacity:.9}100%{stroke-dashoffset:0;opacity:0}}
@keyframes cx-glow{0%,66%{opacity:0}76%{opacity:.35}100%{opacity:0}}
@keyframes cx-fly{0%{transform:translate(-60px,40px)}50%{transform:translate(180px,0)}100%{transform:translate(420px,30px)}}
@keyframes cx-flap{50%{transform:scaleY(.4)}}
@keyframes cx-rays{to{transform:rotate(360deg)}}
@keyframes cx-rumble{50%{transform:translateX(14px)}}
.cx-rain line{animation:cx-fall 2.6s linear infinite}
.cx-rumble{animation:cx-rumble 9s ease-in-out infinite}
.cx-glow{animation:cx-glow 7s ease-out infinite;opacity:0}
.cx-bolt{animation:cx-bolt 7s ease-out infinite;opacity:0}
.cx-rays{animation:cx-rays 60s linear infinite}
.cx-bird{animation:cx-fly 22s linear infinite}
.cx-bird path{transform-origin:center;transform-box:fill-box;animation:cx-flap 1.1s ease-in-out infinite}
.cx-drift{animation:cx-drift linear infinite}
.cx-drift2{animation:cx-drift2 linear infinite}
/* The darkest corners (Nicolas, 24 October): fog and hail driven sideways for the lowest, a swaying twister and embers in the rage. */
@keyframes cx-hail{from{transform:translate(90px,-140px)}to{transform:translate(-200px,620px)}}
@keyframes cx-fog{0%,100%{transform:translateX(-50px)}50%{transform:translateX(50px)}}
@keyframes cx-twist{0%,100%{transform:translateX(-14px) skewX(-4deg)}50%{transform:translateX(14px) skewX(4deg)}}
@keyframes cx-twirl{to{stroke-dashoffset:-60}}
@keyframes cx-ember{0%{transform:translate(0,0);opacity:0}15%{opacity:.9}100%{transform:translate(90px,-320px);opacity:0}}
.cx-hail polygon{animation:cx-hail .8s linear infinite}
.cx-fog{animation:cx-fog ease-in-out infinite}
.cx-twist{transform-box:fill-box;transform-origin:50% 0;animation:cx-twist 3.2s ease-in-out infinite}
.cx-twist ellipse{stroke-dasharray:34 6;animation:cx-twirl .9s linear infinite}
.cx-ember circle{animation:cx-ember 5s ease-out infinite;opacity:0}
.cx-scene[data-q=red-x] .cx-rumble{animation-duration:3s}
@media (prefers-reduced-motion:reduce){.cx-scene *{animation-play-state:paused!important}.cx-bolt,.cx-glow{animation:none!important;opacity:0}}
/* The summary card in the general chat, and the read-only view it opens. */
.cx-card{min-width:240px}
.cx-ct{display:flex;align-items:center;gap:10px}
.cx-ct>span:not(.cx-dot){flex:1;min-width:0;display:flex;flex-direction:column}
.cx-ct small{font-size:12.5px;color:#6f6862}
.cx-dot{flex:none;width:12px;height:12px;border-radius:50%;background:#cfe7dd}
.cx-open{flex:none;height:32px;min-height:32px;padding:0 14px;border:0;border-radius:9px;background:#91d9c1;color:#16352c;font:800 13px "Nunito Sans",sans-serif;cursor:pointer}
.cx-view{position:fixed;inset:0;z-index:60;display:grid;place-items:center;background:rgba(30,34,36,.35);padding:16px}
.cx-win{width:min(420px,100%);height:min(640px,calc(100vh - 32px));display:flex;flex-direction:column;border-radius:16px;overflow:hidden;background:#fffdf9;border:1px solid #dfd3c6;box-shadow:0 14px 40px rgba(0,0,0,.25);font-family:"Nunito Sans",sans-serif}
.cx-wh{flex:none;display:flex;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px solid #e6dccf}
.cx-wh span{flex:1;display:flex;flex-direction:column}
.cx-wh small{font-size:12.5px;color:#6f6862}
.cx-x{width:32px;height:32px;min-height:32px;padding:0;border:1px solid #dfd3c6;border-radius:9px;background:#fff;font-size:20px;line-height:1;cursor:pointer;color:#2b2724}
.cx-wbody{position:relative;flex:1;min-height:0;display:flex}
.cx-wbody .cx-msgs{flex:1}
.cx-feel{align-self:center;display:flex;align-items:center;gap:6px;font-size:12px}
.cx-feel span{border-radius:6px;padding:3px 8px;font-weight:700}
.cx-feel small{color:#6f6862}
.cx .q-body{background:#efe8de}
.cx-sys{align-self:center;background:#f4efe6cc;border-radius:8px;padding:4px 12px;font-size:12px;color:#777}
html[data-theme="dark"] .cx-mm,html[data-theme="dark"] .cx-in,html[data-theme="dark"] .cx-win{background:#1f1e1d;border-color:var(--line);color:var(--ink)}
html[data-theme="dark"] .cx-in textarea{background:#2c2a28;color:var(--ink);border-color:var(--line)}
/* Dark mode (Design Review, 21 October): the painted scene sits faintly on the app black, as Home's atmosphere does, so
   the panel reads dark on both the client and the TA call. */
html[data-theme="dark"] .cx-bg{background:#1f1e1d}
html[data-theme="dark"] .cx-scene{opacity:.5}
/* Nicolas, 24 October 12:20Z: "in dark mode there is almost nothing visible", so every scene shows at .5 on the app black. */
html[data-theme="dark"] .cx-sys{background:#2c2a28cc;color:#b9b2a9}
/* Opened from the chat: in the right panel for the moment, in the side panel's place (Nicolas, 15 October). */
.chat-body[data-cx-view]>.atelier-sharing-side:not(.cx-side){display:none!important}
.cx-view.cx-side{position:static;inset:auto;z-index:auto;display:flex;background:none;padding:0;min-width:0}
.cx-side .cx-win{width:100%;height:100%;box-shadow:none;border-radius:18px}
/* Send is aqua once there is something to send (Design Principles rule 8), in both themes; idle it stays quiet. */
.cx-in:has(textarea:placeholder-shown) .cx-send{background:#fff;border:1px solid #d6cbbd;color:#6f6862}
html[data-theme="dark"] .cx-in:has(textarea:placeholder-shown) .cx-send{background:#2c2a28!important;border-color:#3a3734!important;color:#d9d4cc!important}
html[data-theme="dark"] .cx-in:has(textarea:not(:placeholder-shown)) .cx-send{background:#91d9c1!important;border-color:#91d9c1!important;color:#16352c!important}
/* Tarot In The Session Chat (24 October): the call's table, read-only, over the session's weather. */
.cx-card .cx-tarot-line{color:#23866f;font-weight:700}
.cx-tarot{display:flex;flex-direction:column;gap:6px}
.cx-view .cx-tarot .cx-feel span.cx-tarot-tag{background:#91d9c1;color:#16352c}
.cx-tarot-frame{width:100%;height:320px;border:0;border-radius:12px;background:transparent;display:block}
.cx-tarot .cx-sys{align-self:center}
html[data-theme="dark"] .cx-card .cx-tarot-line{color:#91d9c1}
html[data-theme="dark"] .cx-view .cx-tarot .cx-feel span.cx-tarot-tag{background:#2c4a41;color:#f3efe9}
/* The same card in Nicolas's chat with the client (Therapist/index.html has no client chat styles). */
#msgs .cx-card{max-width:86%;border:1px solid #d4c5b3;border-radius:14px;padding:9px 14px;background:#fbf6f0;font-size:14px}
#msgs .cx-card .chat-card-kind{font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:#d06f56}
html[data-theme="dark"] #msgs .cx-card{background:#272c2e;border-color:#5b5553}
html[data-theme="dark"] #msgs .cx-card .chat-card-kind{color:#d7bdd0}
/* DE, 24 October: Open stays aqua and the summary readable in dark (atelier-dark.css paints buttons); times and
   feelings read on any weather; in his app the session takes the chat column's place. */
html[data-theme="dark"] .cx-card .cx-open{background-color:#91d9c1!important;border-color:#91d9c1!important;color:#16352c!important}
html[data-theme="dark"] .cx-ct small{color:#c9c1b7}
.cx-view .cx-feel small{background:rgba(255,253,249,.88);color:#4a443f;border-radius:6px;padding:2px 6px;font-weight:700}
html[data-theme="dark"] .cx-view .cx-feel small{background:rgba(31,30,29,.85);color:#e8e2da}
html[data-theme="dark"] .cx-view .cx-feel span{color:#1f1e1d}
#sidecol[data-cx-view]>#chatcol,#sidecol[data-cx-view]>#pin{display:none!important}
#sidecol>.cx-view.cx-side{flex:1;min-height:0}
/* ⋯ on Nicolas's messages inside a question, to edit them (12 November). */
.cx-b.has-dots{position:relative;padding-right:34px}
.cx-dots{position:absolute;top:4px;right:4px;width:26px;height:26px;border:0;border-radius:8px;background:none;color:inherit;opacity:.7;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0}
.cx-dots:hover{opacity:1;background:#16352c1a}
.cx-dots svg{width:18px;height:18px;fill:currentColor}
.cx-edit{display:flex;flex-direction:column;gap:8px;width:80%;box-sizing:border-box}
.cx-edit textarea{width:100%;box-sizing:border-box;border:0;border-radius:8px;padding:8px 10px;font:inherit;font-size:14px;line-height:1.45;color:#16352c;background:#ffffffcc;resize:none;overflow:hidden;outline:0}
.cx-editacts{display:flex;gap:8px}
.cx-editacts button{flex:1;min-height:32px;border-radius:8px;font:600 13px/1 system-ui,-apple-system,sans-serif;cursor:pointer}
/* Save is the main button, filled aqua; Cancel the quiet outline (Design Review, 12 November). */
.cx-editno{border:0;background:none;color:#16352cb3;font-weight:500!important}
.cx-edityes{border:1.5px solid #23866f;background:#91d9c1;color:#16352c}
/* The paperclip in a call's chat and a picture or PDF in a bubble (14 November). */
.cx-clip{flex:none;width:42px;height:42px;min-height:42px;border-radius:10px;border:1px solid #dfd3c6;background:#fff;color:#4d4741;display:flex;align-items:center;justify-content:center;padding:0;cursor:pointer}
.cx-clip:hover{border-color:#91d9c1;color:#23866f}
.cx-clip svg{width:18px;height:18px}
.cx-chip{position:relative;z-index:2;flex:none;margin:0;padding:8px 10px 0;background:#fffdf9}
.cx-b.cx-fb .chat-pic,.cx-b.cx-fb .chat-file{margin-bottom:4px}
.cx-b.cx-fb .chat-file{min-width:0;max-width:100%}
html[data-theme="dark"] .cx-clip{background:#2c2a28!important;border-color:#3a3734!important;color:#d9d4cc!important}
html[data-theme="dark"] .cx-chip{background:#1f1e1d}
.cx-chip .chat-chip{color:#2b2724}
html[data-theme="dark"] .cx-chip .chat-chip,html[data-theme="dark"] .chat-chip{color:#ece8e1}
html[data-theme="dark"] .cx-chip .chat-file-ic{background:#ffffff1a;color:#91d9c1}
