#lpc-widget, #lpc-desk { --lpc-ink:#172b28; --lpc-muted:#59706a; --lpc-line:#e2ece8; font: 14px/1.5 system-ui,sans-serif; color:var(--lpc-ink); }
#lpc-widget *, #lpc-desk * { box-sizing:border-box; }
#lpc-widget [hidden], #lpc-desk [hidden] { display:none !important; }
#lpc-widget button, #lpc-widget input, #lpc-widget textarea, #lpc-desk textarea { font:inherit; }
#lpc-widget button, #lpc-desk button { cursor:pointer; }
#lpc-widget button:disabled, #lpc-desk button:disabled { cursor:wait; opacity:.6; }
#lpc-widget { position:fixed; right:22px; bottom:max(22px,env(safe-area-inset-bottom)); z-index:99999; }
#lpc-widget .lpc-launch { border:0; border-radius:100px; padding:10px 17px 10px 10px; background:var(--lpc-accent); color:#fff; box-shadow:0 9px 28px #132d2850; display:flex; align-items:center; gap:9px; font-weight:700; letter-spacing:.005em; }
.lpc-launch-icon { display:grid; place-items:center; width:32px; height:32px; border-radius:50%; background:#ffffff27; font-size:12px; letter-spacing:1px; }
#lpc-box { position:absolute; right:0; bottom:calc(100% + 12px); width:min(398px,calc(100vw - 36px)); max-height:min(720px,calc(100dvh - 100px)); display:flex; flex-direction:column; background:#fff; border:1px solid var(--lpc-line); border-radius:22px; overflow:hidden; box-shadow:0 20px 66px #132d2838; transform-origin:bottom right; animation:lpc-open .23s ease-out both; }
#lpc-box .lpc-head { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:13px 14px; background:var(--lpc-accent); color:#fff; }
.lpc-identity,.lpc-head-actions { display:flex; align-items:center; gap:8px; }
.lpc-identity { gap:11px; }
.lpc-identity strong { display:block; font-size:16px; line-height:1.25; color:inherit; }
.lpc-identity small { display:block; font-size:12px; color:#fff; opacity:.85; }
.lpc-avatar { width:41px; height:41px; display:grid; place-items:center; border:1px solid #ffffff45; border-radius:14px; background:#ffffff22; font-size:20px; flex:none; }
#lpc-box .lpc-head button { display:grid; place-items:center; width:32px; height:32px; padding:0; border:0; border-radius:9px; color:#fff; background:#ffffff25; font-size:19px; line-height:1; }
#lpc-widget .lpc-log { overflow:auto; overscroll-behavior:contain; min-height:122px; max-height:420px; padding:14px; background:#f7faf9; }
.lpc-welcome { padding:15px; border:1px solid var(--lpc-line); border-radius:16px; background:#fff; }
.lpc-welcome strong { display:block; font-size:19px; letter-spacing:-.025em; margin:6px 0 2px; }
.lpc-welcome p { margin:0 0 12px; color:var(--lpc-muted); }
.lpc-welcome-mark { display:grid; place-items:center; width:30px; height:30px; border-radius:10px; color:var(--lpc-accent); background:#e8f5ef; }
.lpc-prompts { display:grid; gap:6px; }
#lpc-widget .lpc-prompts button { width:100%; padding:8px 9px; text-align:left; color:var(--lpc-accent); background:#f7fbf9; border:1px solid #d7e9e2; border-radius:9px; line-height:1.3; }
#lpc-widget .lpc-prompts button:hover { background:#e7f3ee; }
.lpc-bubble { margin:0 15px 9px 0; padding:10px 12px; border-radius:14px 14px 14px 5px; border:1px solid #e6efeb; background:#fff; overflow-wrap:anywhere; }
.lpc-bubble a { color:#0a5e50; text-decoration:underline; text-underline-offset:2px; }
#lpc-widget .lpc-visitor,.lpc-desk-outgoing { margin-right:0; margin-left:27px; border-radius:14px 14px 5px 14px; background:#e0f2eb; }
.lpc-arrive { animation:lpc-message-in .26s cubic-bezier(.18,.7,.26,1) both; }
.lpc-pending { opacity:.8; }
#lpc-widget .lpc-status { min-height:0; margin:0; padding:4px 14px; color:var(--lpc-muted); font-size:12px; }
#lpc-widget .lpc-status:empty { padding:0; }
.lpc-working::before { content:""; display:inline-block; width:7px; height:7px; margin-right:6px; border-radius:50%; background:#55a486; animation:lpc-pulse 1s ease-in-out infinite; }
.lpc-widget-footer { padding:8px 11px; flex:none; border-top:1px solid var(--lpc-line); }
#lpc-widget .lpc-compose { display:flex; margin:0; gap:7px; }
#lpc-widget .lpc-widget-footer .lpc-compose { display:block; background:#fff; border:1px solid #d9e7e1; border-radius:13px; padding:6px; }
#lpc-widget input,#lpc-widget textarea { display:block; min-width:0; width:100%; margin:0; color:var(--lpc-ink); background:#fff; border:1px solid #d6e5df; border-radius:8px; padding:7px 9px; }
#lpc-widget .lpc-compose textarea { border:0; resize:none; }
.lpc-compose-actions,.lpc-profile-actions,.lpc-desk-compose-actions { display:flex; justify-content:flex-end; align-items:center; flex-wrap:wrap; gap:6px; }
#lpc-widget .lpc-compose button,#lpc-widget .lpc-profile button { padding:6px 9px; border:0; border-radius:8px; background:var(--lpc-accent); color:#fff; white-space:nowrap; font-weight:650; }
#lpc-widget .lpc-compose button[data-emoji],#lpc-widget .lpc-profile button[type="button"] { background:#eef6f2; color:var(--lpc-accent); }
#lpc-widget .lpc-handoff { display:block; margin:4px auto 0; padding:2px 8px; color:var(--lpc-accent); background:transparent; border:0; font-size:12px; text-decoration:underline; text-underline-offset:2px; }
#lpc-widget .lpc-profile { margin:6px 11px; padding:9px; border:1px solid #dcece5; border-radius:12px; background:#f4faf7; display:grid; gap:6px; overflow:auto; }
#lpc-widget > section > .lpc-compose { padding:6px 11px; }
.lpc-cards { display:grid; gap:6px; margin-top:8px; }
#lpc-widget .lpc-card { display:flex; align-items:center; gap:8px; padding:5px; border:1px solid #dfebe6; border-radius:10px; color:var(--lpc-ink); text-decoration:none; background:#f8fcfa; }
#lpc-widget .lpc-card:hover { border-color:#77b29b; }
.lpc-card img { display:block; width:53px; height:46px; border-radius:6px; object-fit:cover; flex:none; }
.lpc-card-info { flex:1; min-width:0; }
.lpc-card-info strong { display:block; font-size:12px; line-height:1.26; }
.lpc-card-info small { display:block; margin-top:2px; font-size:12px; color:#286454; }
.lpc-card-arrow { padding:0 4px; color:var(--lpc-accent); }
#lpc-widget :focus-visible,#lpc-desk :focus-visible { outline:2px solid #07847b; outline-offset:2px; }
#lpc-desk .lpc-tools { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:12px 0; }
#lpc-desk h1 { font-size:28px; letter-spacing:-.025em; }
.lpc-workspace { display:grid; grid-template-columns:minmax(180px,27%) minmax(0,1fr); gap:14px; max-width:1140px; }
.lpc-workspace > * { min-width:0; padding:14px; border:1px solid var(--lpc-line); border-radius:16px; background:#fff; }
#lpc-desk [data-queue] { display:grid; gap:6px; margin-top:10px; max-height:60vh; overflow:auto; }
.lpc-queue-item { text-align:left; background:#f5f9f7; border:1px solid #dfebe6; border-radius:9px; padding:9px; }
.lpc-queue-item[aria-current="true"] { background:#dbf0e7; border-color:#70a391; }
#lpc-desk [data-staff-log] { max-height:46vh; overflow:auto; margin:12px 0; padding:9px; border-radius:12px; background:#f6faf8; }
#lpc-desk .lpc-bubble p { margin:4px 0; white-space:pre-wrap; }
#lpc-desk .lpc-translation { color:#286454; }
#lpc-desk textarea,#lpc-desk output { display:block; width:100%; margin:6px 0; }
#lpc-desk textarea { padding:8px 10px; border:1px solid #d9e7e1; border-radius:10px; resize:vertical; }
.lpc-standalone { margin:0; background:#f3f7f5; color:#142a24; }
.lpc-standalone main { max-width:1180px; margin:0 auto; padding:20px clamp(12px,4vw,32px); }
.lpc-standalone nav { display:flex; justify-content:space-between; gap:14px; font:14px system-ui,sans-serif; }
.lpc-standalone a { color:#15554d; }
.lpc-standalone #lpc-desk .button { font:inherit; padding:6px 12px; border:1px solid #a6beb4; border-radius:8px; background:#fff; }
.lpc-standalone #lpc-desk .button-primary { background:#15554d; color:#fff; border-color:#15554d; }
@keyframes lpc-open { from { opacity:0; transform:translateY(9px) scale(.98); } to { opacity:1; transform:none; } }
@keyframes lpc-message-in { from { opacity:.35; transform:translateY(13px); } to { opacity:1; transform:none; } }
@keyframes lpc-pulse { 50% { opacity:.35; transform:scale(.76); } }
@media(max-width:640px) {
  #lpc-widget { right:12px; bottom:max(12px,env(safe-area-inset-bottom)); }
  #lpc-box { width:min(398px,calc(100vw - 24px)); max-height:calc(100dvh - 84px); border-radius:17px; }
  .lpc-workspace { grid-template-columns:1fr; }
  #lpc-desk [data-queue] { max-height:170px; }
}
@media(prefers-reduced-motion:reduce) { #lpc-box,.lpc-arrive,.lpc-working::before { animation:none; } }

#lpc-widget .lpc-closed-actions { display:flex; flex-wrap:wrap; justify-content:center; gap:7px; padding:4px 0; }
#lpc-widget .lpc-closed-actions button,#lpc-widget .lpc-previous { border:1px solid #d7e9e2; border-radius:9px; color:var(--lpc-accent); background:#f7fbf9; padding:7px 9px; }
#lpc-widget .lpc-closed-actions button:last-child { border-color:var(--lpc-accent); color:#fff; background:var(--lpc-accent); }
#lpc-widget .lpc-previous { margin-top:8px; }

.lpc-compose-actions,.lpc-desk-compose-actions { position: relative; }
#lpc-widget .lpc-emoji-picker,#lpc-desk .lpc-emoji-picker { position:absolute; z-index:2; right:0; bottom:calc(100% + 6px); max-width:100%; width:224px; display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:2px; border:1px solid #d6e5df; border-radius:12px; padding:6px; background:#fff; box-shadow:0 8px 22px #182e292e; }
#lpc-widget .lpc-emoji-picker button,#lpc-desk .lpc-emoji-picker button { color:inherit; background:#f2f7f4; border:0; border-radius:5px; padding:3px 0; font-size:17px; font-weight:400; }
#lpc-widget .lpc-emoji-picker button:hover,#lpc-desk .lpc-emoji-picker button:hover { background:#dfefe7; }
.lpc-meta,.lpc-time,.lpc-inbox-date { color:#586e68; font-size:12px; }
.lpc-time { margin-left:8px; }
.lpc-inbox-date { display:block; }
.lpc-activity { margin:5px 0; }
.lpc-activity a { display:block; overflow-wrap:anywhere; }

#lpc-desk.lpc-console { max-width:1560px; margin-inline:auto; }
.lpc-console-head { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:16px 20px; border-radius:18px; background:#163b36; color:#fff; }
#lpc-desk .lpc-console-head h1 { color:inherit; padding:0; margin:0; font-size:25px; }
.lpc-console-head p { margin:3px 0 0; color:#c6e0d9; }
#lpc-desk .lpc-console-head nav { display:flex; flex-wrap:wrap; gap:6px; }
#lpc-desk .lpc-console-head a { color:#fff; text-decoration:none; padding:7px 11px; border-radius:8px; }
#lpc-desk .lpc-console-head a[aria-current],#lpc-desk .lpc-console-head a:hover { background:#38645b; }
#lpc-desk .lpc-statusbar { padding:0 3px; min-height:20px; }
#lpc-desk .lpc-workspace { grid-template-columns:minmax(172px,.85fr) minmax(244px,2.15fr) minmax(185px,.95fr); max-width:none; align-items:start; }
.lpc-queue-pane > strong,.lpc-person-pane h2 { display:block; font-size:15px; margin:0 0 10px; }
.lpc-search { display:grid; gap:8px; margin:0 0 12px; }
.lpc-search input,.lpc-search select,#lpc-filter,[data-quick] { min-width:0; width:100%; box-sizing:border-box; padding:6px; border:1px solid #d2e4df; border-radius:8px; background:#fff; color:#173b34; }
.lpc-search details label { display:block; margin:5px 0; }
.lpc-search summary { cursor:pointer; color:#176455; }
.lpc-page-nav { display:flex; gap:6px; margin-top:10px; flex-wrap:wrap; }
#lpc-desk .lpc-feed-pane [data-staff-log] { max-height:49vh; min-height:155px; }
#lpc-desk .lpc-person-pane { background:#f7fbf9; }
#lpc-desk .lpc-person-pane a { color:#135d50; overflow-wrap:anywhere; }
#lpc-desk .lpc-person-pane .lpc-activity { padding:7px 0; border-top:1px solid #dfece6; }
#lpc-desk .lpc-internal-note { border-color:#e8d8b1; background:#fff7e4; }
#lpc-desk [data-quick] { width:auto; max-width:45%; }
.lpc-settings-nav { margin:14px 0; display:flex; gap:8px; flex-wrap:wrap; }
.lpc-settings-nav[hidden],.lpc-settings-table tr[hidden] { display:none; }
.lpc-settings-nav button,.lpc-palette { border:1px solid #d0e0d8; border-radius:9px; background:#fff; color:#163b36; padding:8px 11px; cursor:pointer; }
.lpc-settings-nav button[aria-pressed=true],.lpc-palette[aria-pressed=true] { border-color:#15554d; box-shadow:0 0 0 1px #15554d; }
.lpc-palettes { display:flex; gap:8px; flex-wrap:wrap; max-width:720px; }
.lpc-palette { display:flex; align-items:center; gap:6px; }
.lpc-palette span { width:17px; height:17px; border-radius:50%; background:var(--swatch); }
.lpc-palette-preview { display:inline-block; margin-top:10px; border-radius:10px; color:#fff; background:#15554d; padding:8px 12px; }
@media(max-width:1000px) {
 #lpc-desk .lpc-workspace { grid-template-columns:minmax(150px,1fr) minmax(250px,2fr); }
 #lpc-desk .lpc-person-pane { grid-column:2; }
}
@media(max-width:650px) {
 #lpc-desk .lpc-workspace { grid-template-columns:1fr; }
 #lpc-desk .lpc-person-pane { grid-column:auto; }
 .lpc-console-head { align-items:flex-start; flex-direction:column; gap:8px; }
}

.lpc-setting-options { display:flex; flex-wrap:wrap; gap:6px 9px; max-width:760px; }
.lpc-setting-options label { display:flex; align-items:center; gap:5px; padding:5px 9px; border:1px solid #dceae5; border-radius:8px; background:#fff; }
.lpc-setting-options input[type="checkbox"] { margin:0; }
