/* GIArvis · fereastra de chat în stilul aplicațiilor de mesagerie, în culorile școlii (v1.5) */
.gcb{--gcb:#12304c;--gcb-2:#1d4a70;--gcb-acc:#b85522;--gcb-ink:#1f2a33;--gcb-muted:#667781;--gcb-out:#d9f1df;--gcb-in:#fff;--gcb-wall:#efe7de;--gcb-line:#dfe5e7;font:15px/1.45 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;color:var(--gcb-ink);box-sizing:border-box}
.gcb *,.gcb *::before,.gcb *::after{box-sizing:border-box}
.gcb-bot{display:block;width:100%;height:100%;overflow:visible}
.gcb-wave{transform-origin:170px 104px;animation:gcb-wave 4s ease-in-out infinite}
.gcb-eye{transform-origin:78px 100px;animation:gcb-blink 5s infinite}
@keyframes gcb-wave{0%,80%,100%{transform:rotate(0)}85%{transform:rotate(-18deg)}90%{transform:rotate(10deg)}95%{transform:rotate(-12deg)}}
@keyframes gcb-blink{0%,92%,100%{transform:scaleY(1)}95%{transform:scaleY(.1)}}
.gcb-ia{color:#ffb27a;font-weight:800;letter-spacing:.03em}
.gcb-msg .gcb-ia{color:#b9632e}
/* buton plutitor */
.gcb-btn{position:fixed;right:20px;bottom:20px;z-index:99998;display:inline-flex;align-items:center;gap:10px;border:0;border-radius:999px;background:var(--gcb);color:#fff;font:700 15px system-ui,sans-serif;padding:8px 20px 8px 8px;box-shadow:0 10px 28px rgba(18,48,76,.35);cursor:pointer}
.gcb-btn:hover{background:var(--gcb-2)}
.gcb-btn-ico{display:block;width:42px;height:42px;flex:none;background:#fff;border-radius:50%;padding:3px;transition:transform .2s}
.gcb-btn:hover .gcb-btn-ico{transform:rotate(-8deg) scale(1.06)}
.gcb-btn:focus-visible,.gcb button:focus-visible,.gcb textarea:focus-visible,.gcb a:focus-visible{outline:3px solid #e8913f;outline-offset:2px}
/* panou */
.gcb-panel{display:flex;flex-direction:column;background:var(--gcb-wall);border-radius:16px;overflow:hidden;box-shadow:0 22px 60px rgba(18,48,76,.28)}
.gcb-mode-bubble .gcb-panel{display:none;position:fixed;right:20px;bottom:86px;z-index:99999;width:min(420px,calc(100vw - 32px));height:min(660px,calc(100vh - 110px))}
.gcb-mode-bubble.open .gcb-panel{display:flex;animation:gcb-pop .18s ease-out}
@keyframes gcb-pop{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}
.gcb-mode-inline .gcb-panel{height:640px;max-height:82vh;border:1px solid var(--gcb-line);box-shadow:none}
.gcb-head{display:flex;gap:10px;align-items:center;background:var(--gcb);color:#fff;padding:10px 10px 10px 12px}
.gcb-avatar{display:block;width:42px;height:42px;flex:none;background:#fff;border-radius:50%;padding:3px}
.gcb-head-txt{flex:1;min-width:0}.gcb-head strong{display:block;font-size:16px;line-height:1.2}
.gcb-status{display:block;font-size:12px;opacity:.8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gcb-status.on{opacity:1;color:#9fe3b0;font-weight:600}
.gcb-head button{background:rgba(255,255,255,.14);border:0;color:#fff;border-radius:999px;cursor:pointer;font:600 12px system-ui,sans-serif;padding:7px 11px}
.gcb-head button:hover{background:rgba(255,255,255,.24)}
.gcb-close{font-size:20px!important;line-height:1;padding:3px 10px!important}
/* „peretele” conversației */
.gcb-log{position:relative;flex:1;overflow:auto;padding:12px 14px 16px;display:flex;flex-direction:column;gap:3px;background:var(--gcb-wall) url('data:image/svg+xml;utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="180" height="180" viewBox="0 0 180 180" fill="none" stroke="%235b4a35" stroke-opacity=".10" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M14 30l22-22 6 6-22 22-8 2z M32 12l6 6"/%3E%3Cpath d="M110 18h22a6 6 0 0 1 6 6v26h-22a6 6 0 0 0-6 6z M138 50a6 6 0 0 0-6-6h-22"/%3E%3Cpath d="M70 70l4 9 10 1-7 7 2 10-9-5-9 5 2-10-7-7 10-1z"/%3E%3Cpath d="M150 100c10 0 16 8 14 18s-10 18-14 18-12-8-14-18 4-18 14-18zm0 0c0-6 3-9 7-10"/%3E%3Cpath d="M28 120c14-14 34-10 34-10s4 20-10 34-34 10-34 10-4-20 10-34zm-10 34l24-24"/%3E%3Ccircle cx="100" cy="150" r="8"/%3E%3Cpath d="M96 150h8M100 146v8"/%3E%3Cpath d="M128 78l8 8M136 78l-8 8"/%3E%3C/svg%3E') repeat;scroll-behavior:auto}
.gcb-day{align-self:center;margin:2px 0 8px}.gcb-day span{display:inline-block;background:#fff;color:var(--gcb-muted);font-size:12px;font-weight:600;padding:4px 12px;border-radius:8px;box-shadow:0 1px 1px rgba(0,0,0,.08)}
.gcb-notice{align-self:center;display:flex;gap:8px;align-items:flex-start;max-width:92%;margin:0 0 10px;background:#fff6d6;color:#5d5233;font-size:12px;line-height:1.4;padding:8px 12px;border-radius:8px;box-shadow:0 1px 1px rgba(0,0,0,.06)}
.gcb-notice svg{width:14px;height:14px;flex:none;margin-top:1px}
/* bule */
.gcb-msg{position:relative;max-width:85%;padding:7px 10px 6px;border-radius:10px;box-shadow:0 1px .5px rgba(11,20,26,.13);word-wrap:break-word;overflow-wrap:anywhere}
.gcb-msg.gcb-first{margin-top:8px}
.gcb-assistant{align-self:flex-start;background:var(--gcb-in)}
.gcb-user{align-self:flex-end;background:var(--gcb-out)}
.gcb-assistant.gcb-first{border-top-left-radius:0}.gcb-user.gcb-first{border-top-right-radius:0}
.gcb-assistant.gcb-first::before,.gcb-user.gcb-first::before{content:"";position:absolute;top:0;width:10px;height:12px}
.gcb-assistant.gcb-first::before{left:-8px;background:var(--gcb-in);clip-path:polygon(0 0,100% 0,100% 100%)}
.gcb-user.gcb-first::before{right:-8px;background:var(--gcb-out);clip-path:polygon(0 0,100% 0,0 100%)}
.gcb-body p{margin:0 0 6px}.gcb-body p:last-child{margin:0}
.gcb-body ul,.gcb-body ol{margin:4px 0 6px;padding-left:20px}.gcb-body li{margin:2px 0}
.gcb-user .gcb-body{white-space:pre-wrap}
.gcb-meta{float:right;display:inline-flex;align-items:center;gap:3px;margin:6px 0 -2px 10px;font-size:11px;color:var(--gcb-muted);line-height:1}
.gcb-tick{display:inline-flex;width:17px;height:12px;color:#8696a0}.gcb-tick svg{width:100%;height:100%}.gcb-tick.read{color:#2b8fd6}
.gcb-ref{display:inline-block;min-width:18px;height:18px;line-height:18px;text-align:center;font-size:11px;font-weight:700;background:#e7eef5;color:var(--gcb);border-radius:9px;text-decoration:none;margin:0 1px;vertical-align:super}
/* surse ca „previzualizări de link” */
.gcb-src{clear:both;display:flex;flex-direction:column;gap:4px;margin-top:8px}
.gcb-src .gcb-more{display:none}.gcb-src.all .gcb-more{display:flex}
.gcb-more-btn{align-self:flex-start;border:0;background:transparent;color:var(--gcb-2);font:600 12.5px system-ui,sans-serif;padding:2px 4px;cursor:pointer}.gcb-more-btn:hover{text-decoration:underline}
.gcb-lnk{color:#1f6fb2;text-decoration:none}.gcb-lnk:hover{text-decoration:underline}
.gcb-reset{display:inline-flex;align-items:center;gap:5px}.gcb-reset svg{width:14px;height:14px}
.gcb-card{display:flex;gap:8px;align-items:center;background:#f2f5f7;border-left:3px solid var(--gcb-acc);border-radius:6px;padding:6px 8px;text-decoration:none;color:var(--gcb-ink)}
.gcb-card:hover{background:#e8eef2}
.gcb-card-ico{width:18px;height:18px;flex:none;color:var(--gcb)}.gcb-card-ico svg{width:100%;height:100%}
.gcb-card-txt{min-width:0}.gcb-card-txt b{display:block;font-size:12.5px;font-weight:600;line-height:1.3;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.gcb-card-txt small{display:block;font-size:11px;color:var(--gcb-muted)}
.gcb-tools{clear:both;display:flex;gap:4px;flex-wrap:wrap;padding-top:8px;margin-top:6px;border-top:1px solid #eef1f3}
.gcb-tool{display:inline-flex;align-items:center;gap:4px;border:0;background:transparent;color:var(--gcb-muted);border-radius:999px;padding:4px 8px;font:600 12px system-ui,sans-serif;cursor:pointer}
.gcb-tool:hover{background:#f0f2f5;color:var(--gcb)}
.gcb-tool svg{width:15px;height:15px}.gcb-down svg{transform:scaleY(-1)}
.gcb-vote.on{background:#e3f3e7;color:#1f7a3a}.gcb-down.on{background:#fbe9e2;color:#a8441c}
.gcb-vote:disabled{cursor:default}
/* „scrie…” */
.gcb-typing{display:flex;align-items:center;gap:10px;color:var(--gcb-muted);font-size:13px;font-style:italic}
.gcb-dots{display:inline-flex;gap:4px;padding:4px 0}
.gcb-dots i{width:7px;height:7px;border-radius:50%;background:#9aa6ad;animation:gcb-dot 1.2s infinite ease-in-out}
.gcb-dots i:nth-child(2){animation-delay:.15s}.gcb-dots i:nth-child(3){animation-delay:.3s}
@keyframes gcb-dot{0%,60%,100%{transform:translateY(0);opacity:.5}30%{transform:translateY(-4px);opacity:1}}
/* răspunsuri rapide */
.gcb-chips{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px;padding:6px 12px 8px;background:var(--gcb-wall)}
.gcb-chip{border:1px solid #c9d3da;background:#fff;color:var(--gcb);border-radius:999px;padding:7px 12px;font:600 13px system-ui,sans-serif;cursor:pointer;text-align:left;box-shadow:0 1px 1px rgba(0,0,0,.05)}
.gcb-chip:hover{background:#f3f7fa;border-color:var(--gcb)}
/* bara de scris */
.gcb-form{display:flex;align-items:flex-end;gap:8px;padding:8px 10px 10px;background:#f0f2f5}
.gcb-field{flex:1;display:flex;background:#fff;border-radius:22px;padding:4px 14px;box-shadow:0 1px 1px rgba(0,0,0,.06)}
.gcb-field textarea{flex:1;border:0;outline:0;resize:none;background:transparent;font:15px/1.4 system-ui,sans-serif;color:var(--gcb-ink);padding:8px 0;min-height:36px;max-height:120px}
.gcb-field:focus-within{box-shadow:0 0 0 2px #9cc3e0}
.gcb .gcb-field textarea:focus,.gcb .gcb-field textarea:focus-visible{outline:0!important;box-shadow:none!important}
.gcb-send{width:44px;height:44px;flex:none;display:grid;place-items:center;border:0;border-radius:50%;background:var(--gcb-acc);color:#fff;cursor:pointer;transition:transform .15s,background .15s}
.gcb-send svg{width:22px;height:22px;margin-left:2px}
.gcb-send:hover{background:#9f4719;transform:scale(1.05)}
.gcb-send:disabled{opacity:.5;cursor:wait;transform:none}
.gcb-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px}
@media(max-width:560px){.gcb-mode-bubble .gcb-panel{right:0;bottom:0;width:100vw;height:100dvh;border-radius:0}.gcb-mode-bubble.open .gcb-btn{display:none}.gcb-btn{right:14px;bottom:14px}.gcb-msg{max-width:90%}.gcb-head button.gcb-reset{padding:8px}.gcb-reset span{display:none}.gcb-reset svg{width:18px;height:18px}}
@media (prefers-reduced-motion:reduce){.gcb-wave,.gcb-eye,.gcb-dots i{animation:none}.gcb-mode-bubble.open .gcb-panel{animation:none}.gcb-btn:hover .gcb-btn-ico{transform:none}}
/* întrebări de clarificare: variante de răspuns rapid în bulă */
.gcb-opts{clear:both;display:flex;flex-direction:column;gap:6px;margin-top:10px}
.gcb-opt{display:block;width:100%;text-align:left;border:1px solid #c9d8e4;background:#f4f8fb;color:var(--gcb);border-radius:10px;padding:9px 12px;font:600 13.5px/1.3 system-ui,sans-serif;cursor:pointer}
.gcb-opt:hover:not(:disabled){background:#e7f0f7;border-color:var(--gcb)}
.gcb-opt.on{background:var(--gcb);color:#fff;border-color:var(--gcb)}
.gcb-opt:disabled:not(.on){opacity:.5;cursor:default}
