.chat-launcher{position:fixed;right:22px;bottom:calc(22px + env(safe-area-inset-bottom));z-index:39;display:flex;align-items:center;gap:9px;background:var(--tone-103f37,#103f37);color:var(--tone-f5f8ec,#f5f8ec);border:1px solid var(--tone-446f59,#446f59);border-radius:30px;padding:13px 19px;box-shadow:0 8px 28px var(--tone-051c2330,#051c2330);font-size:13px;font-weight:650;min-height:48px}.chat-launcher svg{width:23px;height:23px}.chat-launcher:hover{background:var(--tone-205a46,#205a46)}.chat-panel{position:fixed;right:22px;bottom:calc(84px + env(safe-area-inset-bottom));z-index:40;width:min(390px,calc(100vw - 28px));height:min(660px,calc(100dvh - 115px - env(safe-area-inset-bottom)));display:flex;flex-direction:column;background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:16px;box-shadow:0 18px 60px #031c3540;overflow:hidden}.chat-heading{display:flex;align-items:center;justify-content:space-between;padding:16px 18px;background:var(--tone-103f37,#103f37);color:#fff}.chat-heading small{font-size:9px;letter-spacing:1.5px;color:var(--tone-daef94,#daef94)}.chat-heading h2{font-size:20px;letter-spacing:-.5px;margin:4px 0 0}.chat-heading>div:last-child{display:flex;gap:5px}.chat-heading button{background:transparent;border:1px solid var(--tone-7e9c8644,#7e9c8644);color:#fff;border-radius:6px;width:38px;height:38px;font-size:24px;line-height:1;flex-shrink:0}.chat-explainer{font-size:11px;line-height:1.6;margin:0;padding:12px 16px 6px}.chat-routes{padding:5px 16px 10px}.chat-routes label{font-size:10px;margin-bottom:4px}.chat-routes select{font-size:13px;padding:9px;min-height:42px}#chat-inbox{max-height:140px;overflow:auto;border-block:1px solid var(--line);padding:8px 12px;flex-shrink:0}#chat-inbox>p{font-size:12px}.chat-thread{display:block;text-align:left;width:100%;border:1px solid var(--line);border-radius:7px;background:transparent;color:var(--ink);padding:9px;margin-bottom:6px}.chat-thread strong{font-size:11px;display:block;overflow-wrap:anywhere}.chat-thread span{display:block;font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:4px}.chat-thread[aria-pressed=true]{border-color:var(--green)}.chat-history{overflow-y:auto;overscroll-behavior:contain;flex:1;min-height:55px;padding:12px 14px;display:flex;flex-direction:column;gap:10px;scrollbar-width:thin}.chat-bubble{max-width:92%;padding:10px 12px;border:1px solid var(--line);border-radius:12px 12px 12px 3px;background:#fff;align-self:flex-start;overflow-wrap:anywhere}.chat-bubble.mine{align-self:flex-end;background:var(--tone-eaf1e3,#eaf1e3);border-radius:12px 12px 3px}.chat-bubble small{font-size:10px;font-weight:650;color:var(--green)}.chat-bubble p{font-size:13px;white-space:pre-wrap;color:var(--ink);line-height:1.6;margin:4px 0}.chat-bubble time{font-size:9px;color:var(--muted)}.chat-signin{font-size:13px;line-height:1.8}.chat-signin a{color:var(--green);text-decoration:underline}.chat-status{font-size:11px;margin:0;padding:8px 16px;border-top:1px solid var(--line);line-height:1.6}.chat-compose{padding:10px 14px;margin:0;border:0;border-top:1px solid var(--line);border-radius:0;box-shadow:none;background:transparent}.chat-input-label{font-size:10px;margin-bottom:5px}.chat-compose textarea{min-height:62px;max-height:120px;font-size:16px;padding:10px;resize:vertical}.chat-compose>div{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:7px}.chat-compose small{font-size:9px;color:var(--muted)}.chat-compose .btn{padding:9px 14px;min-height:40px;font-size:12px}.chat-compose :disabled{opacity:.55}.chat-footer{font-size:9px;padding:7px 14px 12px;margin:0}.chat-footer a{text-decoration:underline}.team-chat-entry{padding:20px;background:var(--page-tint);border-radius:10px;margin-bottom:24px}.team-chat-entry p{font-size:13px}[data-theme=dark] .chat-bubble{background:var(--tone-20382b,#20382b)}[data-theme=dark] .chat-bubble.mine{background:var(--tone-2d4536,#2d4536)}[data-theme=dark] .team-chat-entry{background:var(--page-night)}@media (max-width:500px){.chat-launcher{right:14px;bottom:calc(14px + env(safe-area-inset-bottom));padding:12px 16px}.chat-panel{right:10px;bottom:calc(76px + env(safe-area-inset-bottom));width:calc(100vw - 20px);height:min(650px,calc(100dvh - 92px - env(safe-area-inset-bottom)))}.chat-heading{padding:12px 14px}}.chat-panel{padding:0;width:min(420px,calc(100vw - 28px));height:min(720px,calc(100dvh - 115px - env(safe-area-inset-bottom)));border-radius:18px;box-shadow:0 16px 60px var(--tone-061e2933,#061e2933)}.chat-heading{padding:18px 20px}.chat-heading h2{font-size:19px;font-weight:600;letter-spacing:-.4px}.chat-heading small{font-size:9px}.chat-heading button{border:0;background:#ffffff0c;border-radius:8px}.chat-routes{padding:17px 20px 15px;border-bottom:1px solid var(--line)}.chat-routes label{font-size:12px;font-weight:600;margin-bottom:8px}.chat-routes select{font-size:14px;min-height:46px;padding:10px 12px;border-color:var(--line);background:var(--paper);color:var(--ink)}#chat-route-note{font-size:12px;line-height:1.5;margin:9px 0 5px}.chat-routing-note{font-size:10px;line-height:1.5;color:var(--muted);display:block}.chat-conversation-heading{display:flex;flex-direction:column;gap:2px;padding:12px 20px;border-bottom:1px solid var(--line);font-size:12px;font-weight:600}.chat-conversation-heading small{font-size:10px;font-weight:400;color:var(--muted)}.chat-history{padding:18px;gap:12px;background:color-mix(in srgb,var(--paper) 94%,var(--ink) 6%)}.chat-empty{margin:auto;padding:18px 8px;text-align:center;max-width:290px}.chat-empty strong{font-size:16px;letter-spacing:-.3px}.chat-empty p{font-size:12px;line-height:1.7;margin:8px 0 0}.chat-bubble{max-width:88%;border-radius:13px 13px 13px 4px;padding:11px 13px;box-shadow:0 2px 5px var(--tone-071e1a05,#071e1a05)}.chat-bubble.mine{background:var(--tone-e3ede3,#e3ede3);border-radius:13px 13px 4px}.chat-bubble p{font-size:14px;line-height:1.55;margin:5px 0 7px}.chat-bubble small{font-size:10px;letter-spacing:.15px}.chat-bubble time{font-size:9px;display:block}.chat-status{font-size:10px;padding:9px 20px;color:var(--muted)}.chat-compose{padding:14px 18px 10px}.chat-input-label{font-size:11px}.chat-compose textarea{border-color:var(--line);border-radius:10px;min-height:72px;background:var(--paper)}.chat-compose .btn{border-radius:8px;gap:12px;min-height:42px}.chat-compose .btn:hover{transform:none}.chat-compose small{font-size:10px}.chat-footer{padding:4px 20px 14px;line-height:1.7;color:var(--muted);font-size:10px}.chat-footer a{text-decoration:none}.chat-footer a:hover{text-decoration:underline}#chat-inbox{max-height:125px;padding:10px 16px}.chat-thread{padding:10px;border-radius:8px}.chat-thread[aria-pressed=true]{background:color-mix(in srgb,var(--paper) 92%,var(--green) 8%)}@media (max-width:500px){.chat-panel{width:calc(100vw - 20px);height:min(720px,calc(100dvh - 92px - env(safe-area-inset-bottom)))}.chat-heading{padding:14px 16px}.chat-routes{padding:12px 16px}.chat-conversation-heading{padding:10px 16px}.chat-history{padding:14px}.chat-compose{padding:11px 14px 8px}}.chat-staff-tools{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:10px 16px;border-bottom:1px solid var(--line)}.chat-staff-tools[hidden]{display:none}.chat-staff-tools input,.chat-staff-tools select{width:100%;min-width:0;min-height:44px;padding:8px;border:1px solid var(--line);border-radius:7px;background:var(--paper);color:var(--ink)}@media (max-width:420px){.chat-staff-tools{grid-template-columns:1fr}}.chat-assignment-controls{padding:10px 16px;border-bottom:1px solid var(--line);display:flex;gap:8px;flex-wrap:wrap}.chat-assignment-controls[hidden]{display:none}.chat-assignment-controls p{width:100%;font-size:12px;margin:4px 0}.chat-assignment-controls button,.chat-email-queue button{padding:9px 12px;min-height:40px;border:1px solid var(--line);border-radius:7px;background:var(--paper);color:var(--ink);cursor:pointer}.chat-email-queue{padding:10px 16px;border-bottom:1px solid var(--line);display:flex;gap:8px;flex-direction:column}.chat-email-queue[hidden]{display:none}.chat-email-queue strong{font-size:12px}.chat-thread small{display:block;color:var(--muted)}#marand-chat>button{margin:8px 16px;background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:7px;min-height:40px}#marand-chat>button[hidden]{display:none}.chat-panel{overflow-y:auto;overscroll-behavior:contain}.chat-panel.is-team-chat{width:min(520px,calc(100vw - 28px))}.is-team-chat .chat-history{flex:1 0 140px;max-height:300px}.chat-email-queue{max-height:100px;overflow-y:auto;flex-shrink:0}.chat-assignment-controls{flex-shrink:0}.chat-assignment-controls button:disabled{opacity:.6;cursor:default}.chat-staff-tools,.chat-heading{flex-shrink:0}.chat-full-link{display:block;margin-bottom:8px;font-weight:650}.chat-compose[hidden]{display:none}.chat-history>a.btn{font-size:13px;text-decoration:none}.chat-routing-note{font-size:10px}.chat-panel:not(.is-team-chat) .chat-route-note{font-size:12px}
