.pmlc { --pmlc-c: #0b6bcb; position: fixed; bottom: 20px; z-index: 99990; font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; color: #1a1d23; }
.pmlc--right { right: 20px; }
.pmlc--left { left: 20px; }
.pmlc *, .pmlc *::before, .pmlc *::after { box-sizing: border-box; }

/* Theme "back to top" button moves up so it does not cover the launcher */
body.pmlc-on .nova-top { bottom: 84px; }

.pmlc-launch { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 20px 0 16px; border: 0; border-radius: 999px; background: var(--pmlc-c); color: #fff; font: 600 15px/1 inherit; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.18); transition: transform .15s, box-shadow .15s; }
.pmlc-launch:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.22); }
.pmlc-launch::before { content: ""; position: absolute; left: 12px; top: 10px; width: 9px; height: 9px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 2px var(--pmlc-c); }
.pmlc-badge { display: none; position: absolute; top: -6px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #e5383b; color: #fff; font-size: 12px; line-height: 22px; text-align: center; }
.pmlc.has-unread .pmlc-badge { display: block; }
.pmlc.is-open .pmlc-launch { display: none; }

.pmlc-panel { display: none; flex-direction: column; width: 370px; height: min(600px, calc(100vh - 40px)); background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 18px 50px rgba(0,0,0,.25); }
.pmlc.is-open .pmlc-panel { display: flex; animation: pmlc-in .18s ease-out; }
@keyframes pmlc-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.pmlc-head { display: flex; align-items: center; gap: 6px; padding: 14px 12px 14px 18px; background: var(--pmlc-c); color: #fff; }
.pmlc-head-t { flex: 1; min-width: 0; }
.pmlc-title { font-weight: 700; font-size: 16px; }
.pmlc-sub { font-size: 12.5px; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pmlc-hbtn { width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 16px; cursor: pointer; }
.pmlc-hbtn:hover { background: rgba(255,255,255,.28); }

.pmlc-body { flex: 1; overflow-y: auto; padding: 14px; background: #f4f6f9; }
.pmlc-msg { display: flex; flex-direction: column; margin: 0 0 10px; max-width: 85%; }
.pmlc-msg--visitor { margin-left: auto; align-items: flex-end; }
.pmlc-msg--system { max-width: 100%; align-items: center; }
.pmlc-name { font-size: 11.5px; color: #6b7280; margin: 0 0 3px 4px; }
.pmlc-bubble { position: relative; padding: 9px 12px 16px; border-radius: 14px 14px 14px 4px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.06); white-space: pre-wrap; word-wrap: break-word; }
.pmlc-msg--visitor .pmlc-bubble { background: var(--pmlc-c); color: #fff; border-radius: 14px 14px 4px 14px; }
.pmlc-msg--visitor .pmlc-bubble a { color: #fff; }
.pmlc-msg--ai .pmlc-bubble { background: #eef4ff; }
.pmlc-msg--system .pmlc-bubble { padding: 6px 12px; background: transparent; box-shadow: none; color: #6b7280; font-size: 12.5px; text-align: center; }
.pmlc-bubble a { color: var(--pmlc-c); text-decoration: underline; }
.pmlc-time { position: absolute; right: 8px; bottom: 2px; font-size: 10px; opacity: .6; }
.pmlc-typing .pmlc-bubble { color: #6b7280; font-style: italic; padding-bottom: 9px; }

.pmlc-welcome { display: flex; flex-direction: column; gap: 10px; }
.pmlc-choose { margin: 4px 2px 6px; color: #374151; }
.pmlc-card { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; border: 1px solid #e5e7eb; border-radius: 14px; background: #fff; text-align: left; cursor: pointer; font: inherit; color: inherit; transition: border-color .15s, box-shadow .15s; }
.pmlc-card:hover { border-color: var(--pmlc-c); box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.pmlc-card-i { font-size: 26px; }
.pmlc-card-t { display: flex; flex-direction: column; }
.pmlc-card-t small { color: #6b7280; }
.pmlc-field { width: 100%; height: 42px; padding: 0 12px; border: 1px solid #d1d5db; border-radius: 10px; font: inherit; }
.pmlc-field:focus, .pmlc-input:focus { outline: 2px solid var(--pmlc-c); outline-offset: -1px; }
.pmlc-start { height: 44px; border: 0; border-radius: 10px; background: var(--pmlc-c); color: #fff; font: 600 15px/1 inherit; cursor: pointer; }

.pmlc-actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px; background: #f4f6f9; }
.pmlc-actions:not(:empty) { padding-bottom: 8px; }
.pmlc-chip { padding: 6px 12px; border: 1px solid var(--pmlc-c); border-radius: 999px; background: #fff; color: var(--pmlc-c); font: 600 12.5px/1.2 inherit; cursor: pointer; }
.pmlc-chip:hover { background: var(--pmlc-c); color: #fff; }

.pmlc-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid #e5e7eb; background: #fff; }
.pmlc-input { flex: 1; min-height: 40px; max-height: 120px; padding: 9px 12px; border: 1px solid #d1d5db; border-radius: 12px; resize: none; font: inherit; }
.pmlc-send { width: 40px; height: 40px; flex: 0 0 40px; border: 0; border-radius: 50%; background: var(--pmlc-c); color: #fff; cursor: pointer; display: grid; place-items: center; }

@media (max-width: 480px) {
	.pmlc { bottom: 14px; }
	.pmlc--right { right: 14px; }
	.pmlc--left { left: 14px; }
	.pmlc-launch { height: 48px; padding: 0 16px 0 14px; font-size: 14px; }
	.pmlc.is-open { inset: 0; }
	.pmlc-panel { width: 100vw; height: 100dvh; border-radius: 0; }
}
