/* Project Control AI support chat widget */
.pcs-root{position:fixed;right:20px;bottom:20px;z-index:2147483000;font-family:Inter,"Segoe UI",Arial,sans-serif;color:#0f172a}
.pcs-bubble{display:flex;align-items:center;gap:8px;height:56px;padding:0 20px 0 16px;border:0;border-radius:999px;background:linear-gradient(135deg,#2563eb,#4f46e5);color:#fff;font:600 15px/1 Inter,"Segoe UI",Arial,sans-serif;box-shadow:0 12px 30px rgba(37,99,235,.35);cursor:pointer}
.pcs-bubble:hover{filter:brightness(1.06)}
.pcs-open .pcs-bubble{display:none}
.pcs-panel{position:absolute;right:0;bottom:0;width:380px;max-width:calc(100vw - 24px);height:560px;max-height:calc(100vh - 40px);display:flex;flex-direction:column;background:#fff;border:1px solid #e2e8f0;border-radius:20px;box-shadow:0 24px 60px rgba(15,23,42,.25);overflow:hidden}
.pcs-panel[hidden]{display:none}
.pcs-head{display:flex;align-items:center;gap:8px;padding:14px 14px 14px 18px;background:linear-gradient(135deg,#0b1430,#1e3a8a);color:#fff}
.pcs-head-text{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}
.pcs-head-text strong{font-size:15px}
.pcs-head-text span{font-size:12px;opacity:.8}
.pcs-head-text span::before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:#22c55e;margin-right:6px;vertical-align:1px}
.pcs-icon{width:34px;height:34px;border:0;border-radius:10px;background:rgba(255,255,255,.12);color:#fff;font-size:16px;cursor:pointer}
.pcs-list{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:10px;background:#f8fafc}
.pcs-msg{max-width:85%;padding:10px 13px;border-radius:16px;font-size:14px;line-height:1.45;white-space:normal;word-wrap:break-word}
.pcs-assistant{align-self:flex-start;background:#fff;border:1px solid #e2e8f0;border-bottom-left-radius:6px}
.pcs-user{white-space:pre-wrap;align-self:flex-end;background:#2563eb;color:#fff;border-bottom-right-radius:6px}
.pcs-note{align-self:center;background:#dcfce7;color:#166534;font-size:13px;border-radius:999px;padding:6px 12px}
.pcs-typing{color:#94a3b8;letter-spacing:3px;animation:pcs-blink 1s infinite}
@keyframes pcs-blink{50%{opacity:.4}}
.pcs-action{align-self:stretch;display:flex;flex-direction:column;gap:6px;padding:12px;border:1.5px solid #2563eb;border-radius:14px;background:#eff6ff;font-size:14px}
.pcs-action em{font-style:normal;font-weight:600;color:#475569}
.pcs-action em.pcs-ok{color:#15803d}.pcs-action em.pcs-err{color:#b91c1c}
.pcs-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.pcs-warn{width:100%;margin:2px 0;color:#b45309;font-weight:600;font-size:13px}
.pcs-btn{min-height:38px;padding:0 14px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;font:600 14px Inter,"Segoe UI",Arial,sans-serif;cursor:pointer;color:#0f172a}
.pcs-primary{background:#2563eb;border-color:#2563eb;color:#fff}.pcs-danger{background:#dc2626;border-color:#dc2626;color:#fff}
.pcs-btn:disabled{opacity:.6}
.pcs-form{display:flex;gap:8px;padding:12px;border-top:1px solid #e2e8f0;background:#fff}
.pcs-input{flex:1;resize:none;min-height:42px;max-height:120px;padding:10px 12px;border:1px solid #cbd5e1;border-radius:12px;font:15px/1.4 Inter,"Segoe UI",Arial,sans-serif;color:#0f172a}
.pcs-input:focus{outline:2px solid #93c5fd;border-color:#2563eb}
.pcs-send{min-width:76px;border:0;border-radius:12px;background:#2563eb;color:#fff;font:600 14px Inter,"Segoe UI",Arial,sans-serif;cursor:pointer}
.pcs-send:disabled{opacity:.6}
.pcs-foot{margin:0;padding:0 12px 10px;background:#fff;font-size:11px;color:#94a3b8;text-align:center}
@media (max-width:600px){
  .pcs-root{right:12px;bottom:12px}
  .pcs-bubble{height:52px;padding:0 16px 0 14px}
  .pcs-open{inset:0;right:0;bottom:0}
  .pcs-open .pcs-panel{position:fixed;inset:0;width:100%;max-width:none;height:100%;max-height:none;border-radius:0}
}

.pcs-logo{flex:0 0 auto;width:40px;height:40px;border-radius:12px;background:#fff;display:grid;place-items:center;box-shadow:0 2px 8px rgba(0,0,0,.18)}
.pcs-logo img{width:28px;height:28px;object-fit:contain;display:block}
.pcs-head{padding-left:14px}
.pcs-arow{align-self:flex-start;display:flex;align-items:flex-end;gap:8px;max-width:92%}
.pcs-arow .pcs-msg{max-width:none}
.pcs-avatar{flex:0 0 auto;width:28px;height:28px;padding:4px;border-radius:50%;background:#fff;border:1px solid #e2e8f0;object-fit:contain}

.pcs-form{align-items:flex-end}
.pcs-tools{display:flex;gap:2px;align-self:flex-end;padding-bottom:3px}
.pcs-tool{width:36px;height:36px;border:0;border-radius:10px;background:transparent;color:#475569;font-size:19px;line-height:1;cursor:pointer;display:grid;place-items:center}
.pcs-tool:hover{background:#eef2ff;color:#2563eb}
.pcs-inputwrap{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
.pcs-inputwrap .pcs-input{width:100%;box-sizing:border-box}
.pcs-chips{display:flex;flex-wrap:wrap;gap:6px}
.pcs-chips[hidden]{display:none}
.pcs-chip{display:inline-flex;align-items:center;gap:6px;max-width:100%;padding:4px 6px 4px 4px;border:1px solid #cbd5e1;border-radius:10px;background:#f8fafc;font-size:12px}
.pcs-chip img{width:28px;height:28px;object-fit:cover;border-radius:6px}
.pcs-chip b{font-size:10px;color:#fff;background:#dc2626;border-radius:5px;padding:5px 4px}
.pcs-chip-name{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pcs-chip-x{border:0;background:transparent;font-size:16px;line-height:1;cursor:pointer;color:#64748b;padding:0 2px}
.pcs-emoji{display:grid;grid-template-columns:repeat(10,1fr);gap:2px;padding:8px 10px;border-top:1px solid #e2e8f0;background:#fff;max-height:130px;overflow-y:auto}
.pcs-emoji[hidden]{display:none}
.pcs-emo{border:0;background:transparent;font-size:20px;line-height:1;padding:5px 0;border-radius:8px;cursor:pointer}
.pcs-emo:hover{background:#eef2ff}
.pcs-thumb{display:block;max-width:180px;max-height:140px;margin-top:8px;border-radius:10px;border:2px solid rgba(255,255,255,.6)}
.pcs-drop{outline:3px dashed #2563eb;outline-offset:-6px}
.pcs-send{align-self:flex-end;height:42px}
@media (max-width:600px){.pcs-emoji{grid-template-columns:repeat(8,1fr)}.pcs-tool{width:34px}}
