/* Additive upgrade layer — intentionally does not replace the existing service templates. */
:root{--pj-amber:#ffb14a;--pj-orange:#ff7838;--pj-ink:#090b10;--pj-panel:#10141d;--pj-line:rgba(255,177,74,.22)}
.dv.dvn{width:100%;max-width:none;margin:0;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible}
.dv.dvn .dvbar{position:sticky;top:0;z-index:5;background:var(--card,#fff);border:1px solid var(--line,#ddd);border-radius:14px;margin:0 0 12px;padding:10px 14px}
.dv.dvn .dvb{width:100%;max-width:none;min-width:0;min-height:68vh;height:auto;max-height:none;margin:0;border:1px solid var(--line,#ddd);border-radius:18px;overflow:auto;box-shadow:0 18px 55px rgba(0,0,0,.12);background:var(--bg,#fff);overscroll-behavior:contain}
.dv.dvn .dvb:not(.chatm){padding:0}
.dv.dvn .dvb.chatm{padding:0;background:#090b10;border-color:rgba(255,177,74,.25);color:#f5f5f7;min-height:520px;max-height:72vh}
.dv.dvn .dvb.chatm .chat{height:100%;min-height:520px;border:0;border-radius:17px;background:radial-gradient(ellipse at 15% 0%,rgba(255,120,56,.12),transparent 45%),#090b10;color:#f5f5f7;display:flex;flex-direction:column;overflow:hidden}
.dv.dvn .dvb.chatm .ch-h{display:flex;align-items:center;gap:12px;padding:16px;border-bottom:1px solid rgba(255,177,74,.18);background:rgba(16,20,29,.94)}
.dv.dvn .dvb.chatm .av{width:42px;height:42px;display:grid;place-items:center;flex:0 0 auto;border-radius:14px;background:linear-gradient(135deg,#ffb14a,#ff7838);color:#16100a;font-weight:900;box-shadow:0 0 24px rgba(255,120,56,.2)}
.dv.dvn .dvb.chatm .ch-h .grow{display:flex;flex-direction:column;gap:3px}
.dv.dvn .dvb.chatm .ch-h .grow b{font-size:14px;color:#fff}
.dv.dvn .dvb.chatm .ch-h .grow span{font-size:11px;color:#a6a9b5}
.dv.dvn .dvb.chatm .ch-h .ghost{margin-left:auto;color:#ffbd70;border:1px solid rgba(255,177,74,.2);background:rgba(255,177,74,.07);border-radius:10px;padding:8px 10px}
.dv.dvn .dvb.chatm .ch-m{flex:1;min-height:220px;max-height:none;overflow:auto;padding:18px 14px;display:flex;flex-direction:column;gap:10px;scroll-behavior:smooth}
.dv.dvn .dvb.chatm .bub{max-width:min(86%,560px);align-self:flex-start;padding:12px 14px;border-radius:5px 16px 16px 16px;background:#171c27;border:1px solid rgba(255,255,255,.06);color:#e9eaf0;line-height:1.55;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}
.dv.dvn .dvb.chatm .bub.me{align-self:flex-end;background:linear-gradient(135deg,#ffb14a,#ff7838);border:0;color:#1a1008;border-radius:16px 5px 16px 16px;font-weight:600}
.dv.dvn .dvb.chatm .bub.dots{display:flex;gap:4px}
.dv.dvn .dvb.chatm .bub.dots i{width:5px;height:5px;border-radius:50%;background:#ffb14a;animation:pjPulse 1s infinite alternate}
.dv.dvn .dvb.chatm .bub.dots i:nth-child(2){animation-delay:.2s}.dv.dvn .dvb.chatm .bub.dots i:nth-child(3){animation-delay:.4s}
.dv.dvn .dvb.chatm .qr{display:flex;gap:7px;flex-wrap:wrap;padding:10px 14px 12px}
.dv.dvn .dvb.chatm .chip{background:#111722;border:1px solid rgba(255,177,74,.25);color:#ffbf77;border-radius:999px;padding:8px 11px;font-size:11px}
.dv.dvn .dvb.chatm .ch-i{display:flex;gap:8px;padding:12px 14px calc(12px + env(safe-area-inset-bottom,0px));border-top:1px solid rgba(255,177,74,.17);background:#0d1119}
.dv.dvn .dvb.chatm .ch-i input{min-width:0;flex:1;background:#171c27;border:1px solid #292f3d;border-radius:12px;padding:12px;color:#fff;outline:none}
.dv.dvn .dvb.chatm .ch-i input:focus{border-color:#ffb14a;box-shadow:0 0 0 3px rgba(255,177,74,.09)}
.dv.dvn .dvb.chatm .ch-i button,.dv.dvn .dvb.chatm .pj-voice-btn{border:0;border-radius:12px;background:linear-gradient(135deg,#ffb14a,#ff7838);color:#1a1008;font-weight:800;padding:0 16px}
.dv.dvn .dvb.chatm .pj-voice-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 14px 10px;background:#0d1119}
.dv.dvn .dvb.chatm .pj-voice-row small{color:#a6a9b5;font-size:10px}
.dv.dvn .dvb.chatm .pj-voice-row .pj-voice-btn{padding:8px 11px;font-size:11px}
.dv.dvn .dvb.chatm .pj-voice-row .pj-voice-btn:disabled{opacity:.5}
.dv.dvn .dvb.chatm .pj-voice-row .pj-voice-status{color:#ffbd70}
@keyframes pjPulse{from{opacity:.35;transform:translateY(0)}to{opacity:1;transform:translateY(-2px)}}
@media(max-width:640px){.dv.dvn .dvb{min-height:72vh;border-radius:12px}.dv.dvn .dvb.chatm{max-height:75vh;min-height:520px}.dv.dvn .dvb.chatm .ch-h{padding:13px}.dv.dvn .dvb.chatm .ch-m{padding:14px 11px}.dv.dvn .dvb.chatm .bub{max-width:92%}}

/* Service-family notice appears in the builder, outside the customer-facing template preview. */
.pj-service-template-notice{display:flex;flex-direction:column;gap:5px;margin:0 0 12px;padding:13px 15px;border:1px solid rgba(255,177,74,.24);border-radius:15px;background:linear-gradient(125deg,rgba(255,177,74,.09),rgba(255,120,56,.035));}
.pj-service-template-notice strong{font-size:11px;letter-spacing:.1em;color:#ffbd70;font-weight:900}
.pj-service-template-notice span{font-size:12px;line-height:1.5;color:var(--mut,#a6a9b5)}
.pj-service-show{border-color:rgba(148,163,184,.28);background:linear-gradient(125deg,rgba(148,163,184,.10),rgba(99,102,241,.035))}
.pj-service-show strong{color:#d4d9e5}
.pj-service-store{border-color:rgba(52,211,153,.25);background:linear-gradient(125deg,rgba(52,211,153,.10),rgba(16,185,129,.035))}
.pj-service-store strong{color:#6ee7b7}
.pj-service-food{border-color:rgba(251,146,60,.26);background:linear-gradient(125deg,rgba(251,146,60,.10),rgba(239,68,68,.035))}
.pj-service-food strong{color:#fdba74}
