@font-face{font-family:Instrument Sans;font-weight:400 600;font-display:swap;src:url(/fonts/instrument-sans.woff2) format("woff2")}@font-face{font-family:Sora;font-weight:600;font-display:swap;src:url(/fonts/sora-600.woff2) format("woff2")}:root{--brand: #4377f9;--brand-strong: #2c5fe6;--brand-pressed: #2149bd;--brand-tint: #eef3ff;--on-brand: #ffffff;--surface: #ffffff;--surface-subtle: #f5f7fb;--border: #e2e7f0;--ink: #0b1220;--muted: #566079;--accent: #ff6a3d;--on-accent: #0b1220;--success: #12805c;--warning: #b45309;--focus: #2c5fe6;--radius-sm: 6px;--radius-md: 10px;--radius-bubble: 18px}.inbox{position:fixed;inset:0;display:grid;grid-template-columns:340px 1fr;background:var(--surface);color:var(--ink);font:15px/22px Instrument Sans,system-ui,sans-serif;-webkit-font-smoothing:antialiased}.inbox *,.inbox *:before,.inbox *:after{box-sizing:border-box}.inbox :focus-visible{outline:2px solid var(--focus);outline-offset:2px}.inbox button{font:inherit;cursor:pointer}.sidebar{display:flex;flex-direction:column;min-height:0;border-right:1px solid var(--border);background:var(--surface)}.sidebar-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 16px 12px}.sidebar-head img{height:24px}.shop{padding:0 16px 12px;border-bottom:1px solid var(--border)}.shop-name{margin:0;font:600 13px/18px Instrument Sans,system-ui,sans-serif;letter-spacing:.01em}.status{display:inline-flex;align-items:center;gap:6px;margin-top:2px;font-size:12px;line-height:16px;color:var(--muted)}.status:before{content:"";width:8px;height:8px;border-radius:50%;background:var(--warning)}.status.live:before{background:var(--success)}.list{flex:1;overflow-y:auto;margin:0;padding:8px;list-style:none}.empty{padding:24px 16px;color:var(--muted)}.row{display:block;padding:12px;border-radius:var(--radius-md);color:inherit;text-decoration:none}.row:hover{background:var(--surface-subtle)}.row[aria-current=page]{background:var(--brand-tint)}.row-top{display:flex;align-items:center;gap:8px}.row-name{flex:1;min-width:0;font-weight:600}.row-time{font-size:12px;line-height:16px;color:var(--muted)}.row-preview{margin:2px 0 0;overflow:hidden;color:var(--muted);white-space:nowrap;text-overflow:ellipsis}.dot{width:10px;height:10px;flex:none;border-radius:50%;background:var(--accent)}.signout{margin:8px;padding:8px 12px;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface);color:var(--ink);font-size:13px;font-weight:500}.thread{display:flex;flex-direction:column;min-width:0;min-height:0;background:var(--surface)}.thread-head{display:flex;align-items:center;gap:12px;padding:16px 24px;border-bottom:1px solid var(--border)}.thread-head h1{margin:0;font:600 20px/28px Sora,system-ui,sans-serif}.back{display:none;color:var(--brand-strong);font-weight:500;text-decoration:none}.messages{flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:8px;padding:24px}.msg{display:flex;flex-direction:column;max-width:min(560px,80%);align-self:flex-start}.msg.agent{align-self:flex-end;align-items:flex-end}.visitor+.agent,.agent+.visitor{margin-top:16px}.bubble{padding:12px 16px;border-radius:var(--radius-bubble) var(--radius-bubble) var(--radius-bubble) var(--radius-sm);background:var(--surface-subtle);color:var(--ink);white-space:pre-wrap;overflow-wrap:anywhere}.agent .bubble{border-radius:var(--radius-bubble) var(--radius-bubble) var(--radius-sm) var(--radius-bubble);background:var(--brand-strong);color:var(--on-brand)}.meta{margin:4px 4px 0;font-size:12px;line-height:16px;color:var(--muted)}.visitor:has(+.visitor) .meta,.agent:has(+.agent) .meta{display:none}.composer{display:flex;align-items:flex-end;gap:8px;margin:0 24px 24px;padding:8px 8px 8px 16px;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface-subtle)}.composer:focus-within{border-color:var(--focus)}.composer textarea{flex:1;min-height:0;max-height:160px;margin:0;padding:6px 0;border:0;background:transparent;color:var(--ink);font:inherit;resize:none;outline:none}.composer textarea::placeholder{color:var(--muted)}.send{padding:8px 16px;border:0;border-radius:var(--radius-md);background:var(--brand-strong);color:var(--on-brand);font-size:13px;line-height:18px;font-weight:500;letter-spacing:.01em}.send:active{background:var(--brand-pressed)}.send:disabled{opacity:.4;cursor:default}.placeholder{margin:auto;padding:24px;max-width:360px;color:var(--muted);text-align:center}.placeholder h1{margin:0 0 8px;color:var(--ink);font:600 20px/28px Sora,system-ui,sans-serif}.gate{position:fixed;inset:0;display:grid;place-items:center;padding:24px;background:var(--surface-subtle);color:var(--ink);font:15px/22px Instrument Sans,system-ui,sans-serif}.gate-card{max-width:420px;padding:32px;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface)}.gate-card img{height:28px;margin-bottom:24px}.gate-card h1{margin:0 0 8px;font:600 28px/34px Sora,system-ui,sans-serif;letter-spacing:-.01em}.gate-card p{margin:0 0 12px;color:var(--muted)}@media(max-width:749px){.inbox{grid-template-columns:1fr}.inbox.has-thread .sidebar,.inbox:not(.has-thread) .thread{display:none}.sidebar{border-right:0}.back{display:inline}.thread-head{padding:12px 16px;padding-top:max(12px,env(safe-area-inset-top))}.messages{padding:16px}.composer{margin:0 12px max(12px,env(safe-area-inset-bottom))}.composer textarea{font-size:16px}}
