dialog.modal:has(.session-manager){background:var(--surface,#fff);width:min(560px,100vw - 24px);max-height:85dvh;color:var(--text,#173d40);border:0;border-radius:18px;padding:0;overflow:auto}dialog.modal:has(.session-manager)::backdrop{background:#001f26a6}dialog.modal:has(.session-manager) .modal-head{border-bottom:1px solid #78979d55;justify-content:space-between;align-items:center;padding:16px;display:flex}.session-manager{padding:16px;line-height:1.5}.session-manager p{margin:0 0 12px}.session-manager ul{margin:0;padding:0;list-style:none}.session-manager li{overflow-wrap:anywhere;border-top:1px solid #78979d55;gap:8px;padding:14px 0;display:grid}.session-manager li span{font-size:14px}.session-manager button{justify-self:start;min-height:44px;font-size:16px}.session-manager [role=alert]{color:#b33b37}.notification-prefs{gap:.5rem;margin:0;padding:0;list-style:none;display:grid}.notification-prefs label{border:1px solid var(--line,#e2ddd3);cursor:pointer;border-radius:10px;grid-template-columns:auto 1fr;align-items:center;gap:.15rem .6rem;min-height:44px;padding:.55rem .7rem;display:grid}.notification-prefs small{color:var(--muted,#6b6459);grid-column:2}.inbox-scope{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;font-synthesis:none;-webkit-text-size-adjust:100%;text-rendering:optimizelegibility;--bg:#f4f2ec;--canvas:#f7f5f0;--surface:#fff;--surface-2:#f3f6f5;--surface-3:#e9efee;--ink:#12343a;--ink-2:#2f4c51;--muted:#566a6d;--line:#e1e6e3;--line-strong:#cdd7d4;--brand:#009ab0;--brand-strong:#006e7d;--brand-deep:#07515b;--brand-ink:#00697a;--brand-soft:#e3f3f5;--brand-softer:#f0f8f9;--accent:#ffca2d;--human:#8a5d00;--human-strong:#6b4800;--human-soft:#fff4d4;--human-line:#f1d98e;--danger:#b4232f;--danger-soft:#fdecee;--danger-line:#f1b9bf;--warn:#8a5d00;--warn-soft:#fff6e0;--ok:#1f7a4d;--primary-bg:var(--brand-strong);--primary-bg-hover:var(--brand-deep);--primary-fg:#fff;--bubble-in:#fff;--bubble-out:#d8f0f3;--bubble-out-line:#c3e5ea;--bubble-bot:#eef3f2;--read:#00809a;--focus:#0a8ea3;--shadow-sm:0 1px 2px #12343a0f;--shadow-md:0 6px 18px -6px #12343a29, 0 2px 4px #12343a0a;--shadow-lg:0 24px 48px -16px #12343a47;--r-xs:6px;--r-sm:10px;--r-md:14px;--r-lg:18px;--r-pill:999px;--s1:4px;--s2:8px;--s3:12px;--s4:16px;--s5:20px;--s6:24px;--s8:32px;--t-xs:12px;--t-sm:13px;--t-md:15px;--t-lg:17px;--t-xl:22px;--ease:cubic-bezier(.22, 1, .36, 1);--sidebar:360px;--details:320px;color:var(--ink);background:var(--bg);font-family:Segoe UI Variable Text,Segoe UI,system-ui,-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif}.inbox-scope *,.inbox-scope :before,.inbox-scope :after{box-sizing:border-box}.inbox-scope [hidden]{display:none!important}.inbox-scope{background:var(--bg);margin:0}.inbox-scope ::selection{background:color-mix(in srgb, var(--brand) 28%, transparent);color:inherit}.inbox-scope button,.inbox-scope input,.inbox-scope textarea,.inbox-scope select{font:inherit;color:inherit}.inbox-scope button,.inbox-scope a,.inbox-scope input,.inbox-scope textarea,.inbox-scope select,.inbox-scope summary{-webkit-tap-highlight-color:transparent}.inbox-scope button{cursor:pointer;min-height:44px;transition:background-color .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease), box-shadow .16s var(--ease), transform .12s var(--ease), opacity .16s;background:0 0;border:0}.inbox-scope button:disabled{cursor:not-allowed;opacity:.45}.inbox-scope button:active:not(:disabled){transform:scale(.97)}.inbox-scope :focus-visible{outline:2px solid var(--focus);outline-offset:2px}.inbox-scope input,.inbox-scope textarea,.inbox-scope select{caret-color:var(--brand);font-size:16px}.inbox-scope input::placeholder,.inbox-scope textarea::placeholder{color:var(--muted);opacity:.85}.inbox-scope a{color:var(--brand-ink);text-underline-offset:3px}.inbox-scope svg{flex:none}.inbox-scope *{scrollbar-width:thin;scrollbar-color:var(--line-strong) transparent}.inbox-scope .sr-only{clip:rect(0 0 0 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.inbox-scope .spin{animation:.9s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.inbox-scope .primary,.inbox-scope .secondary{justify-content:center;align-items:center;gap:var(--s2);border-radius:var(--r-sm);font-size:var(--t-sm);white-space:nowrap;padding:10px 16px;font-weight:600;display:inline-flex}.inbox-scope .primary{background:var(--primary-bg);color:var(--primary-fg);box-shadow:var(--shadow-sm)}.inbox-scope .primary:hover:not(:disabled){background:var(--primary-bg-hover)}.inbox-scope .secondary{background:var(--surface);color:var(--ink);box-shadow:inset 0 0 0 1px var(--line-strong)}.inbox-scope .secondary:hover:not(:disabled){background:var(--surface-2)}.inbox-scope .block{width:100%}.inbox-scope .icon-button{border-radius:var(--r-sm);width:44px;height:44px;color:var(--muted);flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex;position:relative}.inbox-scope .icon-button:hover:not(:disabled){background:var(--surface-3);color:var(--ink)}.inbox-scope .inbox-spinner{border:2px solid #ffffff73;border-top-color:#fff;border-radius:50%;flex:none;width:18px;height:18px;animation:.7s linear infinite spin}.inbox-scope .inbox-spinner.dark{border-color:var(--line-strong);border-top-color:var(--brand)}.inbox-scope .brand-logo{aspect-ratio:3.9;border-radius:var(--r-xs);flex:none;width:112px;display:block;overflow:hidden}.inbox-scope .brand-logo img{object-fit:cover;object-position:50% 49.5%;width:100%;height:100%;display:block}.inbox-scope .inbox-login{min-height:100dvh;padding:max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));background:var(--bg);place-items:center;display:grid}.inbox-scope .login-card{background:var(--surface);border-radius:var(--r-lg);width:min(100%,400px);box-shadow:var(--shadow-lg);padding:36px 32px 28px}.inbox-scope .login-card .brand-logo{width:150px;margin-bottom:28px}.inbox-scope .login-card h1{letter-spacing:-.02em;margin:0 0 var(--s2);text-wrap:balance;font-size:26px;font-weight:650;line-height:1.2}.inbox-scope .login-lead{color:var(--muted);font-size:var(--t-md);margin:0 0 var(--s6);text-wrap:pretty;line-height:1.55}.inbox-scope .login-card form{gap:var(--s4);margin-bottom:var(--s5);display:grid}.inbox-scope .login-card label{font-size:var(--t-sm);color:var(--ink-2);gap:6px;font-weight:600;display:grid}.inbox-scope .login-card input{border:1px solid var(--line-strong);background:var(--surface);border-radius:var(--r-sm);width:100%;min-height:48px;padding:12px 14px;transition:border-color .16s,box-shadow .16s}.inbox-scope .login-card input:hover{border-color:var(--muted)}.inbox-scope .login-card input:focus-visible{border-color:var(--brand);box-shadow:0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent);outline:none}.inbox-scope .login-card .primary{min-height:48px;font-size:var(--t-md);margin-top:var(--s1)}.inbox-scope .login-foot{gap:var(--s2);color:var(--muted);font-size:var(--t-xs);align-items:center;margin:0;display:flex}.inbox-scope .login-notice{gap:var(--s2);background:var(--warn-soft);color:var(--warn);border-radius:var(--r-sm);padding:var(--s3);font-size:var(--t-sm);margin:0 0 var(--s5);align-items:flex-start;line-height:1.5;display:flex}.inbox-scope .login-notice svg{margin-top:2px}.inbox-scope .inbox-error{gap:var(--s2);color:var(--danger);background:var(--danger-soft);border-radius:var(--r-sm);font-size:var(--t-sm);align-items:flex-start;margin:0;padding:10px 12px;line-height:1.45;display:flex}.inbox-scope .inbox-error svg{margin-top:1px}.inbox-scope .install-hint{margin-top:var(--s5);padding-top:var(--s4);border-top:1px solid var(--line);font-size:var(--t-xs);color:var(--muted)}.inbox-scope .install-hint summary{cursor:pointer;min-height:32px;color:var(--ink-2);align-items:center;font-weight:600;display:flex}.inbox-scope .install-hint p{margin:var(--s2) 0 0;line-height:1.6}.inbox-scope .login-loading{justify-items:center;gap:var(--s4);color:var(--muted);font-size:var(--t-sm);display:grid}.inbox-scope .login-loading .brand-logo{width:150px}.inbox-scope .inbox-workspace{grid-template-columns:var(--sidebar) minmax(0, 1fr);height:var(--inbox-height,100dvh);background:var(--surface);inset-inline:0;top:var(--inbox-top,0px);grid-template-rows:minmax(0,1fr);display:grid;position:fixed;overflow:hidden;container:inbox/size}@media (width>=1280px){.inbox-scope .inbox-workspace.details-open{grid-template-columns:var(--sidebar) minmax(0, 1fr) var(--details)}}@media (width>=1600px){.inbox-scope{--sidebar:400px;--details:340px}}.inbox-scope .inbox-sidebar{background:var(--surface);border-right:1px solid var(--line);flex-direction:column;min-width:0;min-height:0;display:flex}.inbox-scope .inbox-brand{gap:var(--s3);padding:var(--s4) var(--s3) var(--s3) var(--s5);padding-top:max(var(--s4), env(safe-area-inset-top));align-items:center;display:flex}.inbox-scope .inbox-brand .brand-logo{width:96px}.inbox-scope .brand-meta{align-items:baseline;gap:var(--s2);flex-wrap:wrap;flex:1;min-width:0;display:flex}.inbox-scope .brand-meta h1{font-size:var(--t-md);color:var(--muted);letter-spacing:-.01em;margin:0;font-weight:600}.inbox-scope .connection{font-size:var(--t-xs);color:var(--muted);white-space:nowrap;align-items:center;gap:6px;margin:0;display:inline-flex}.inbox-scope .connection i{background:var(--warn);border-radius:50%;width:7px;height:7px}.inbox-scope .connection.live i{background:var(--ok);box-shadow:0 0 0 3px color-mix(in srgb, var(--ok) 18%, transparent)}.inbox-scope .connection.offline{color:var(--danger)}.inbox-scope .connection.offline i{background:var(--danger)}.inbox-scope .connection.waiting i{animation:1.6s ease-in-out infinite pulse}@keyframes pulse{50%{opacity:.35}}.inbox-scope .inbox-list-tools{padding:var(--s2) var(--s4) var(--s3);gap:var(--s3);display:grid}.inbox-scope .inbox-section-title{justify-content:space-between;align-items:center;gap:var(--s2);padding:0 var(--s1);display:flex}.inbox-scope .inbox-section-title h2{font-size:var(--t-xl);letter-spacing:-.02em;margin:0;font-weight:700}.inbox-scope .inbox-section-title>span{font-size:var(--t-xs);color:var(--muted);border-radius:var(--r-pill);background:var(--surface-2);padding:4px 10px;font-weight:600}.inbox-scope .inbox-section-title>span.has-unread{background:var(--brand-soft);color:var(--brand-ink)}.inbox-scope .inbox-search{gap:var(--s2);border-radius:var(--r-sm);color:var(--muted);background:var(--surface-2);align-items:center;padding:0 6px 0 12px;transition:box-shadow .16s,background-color .16s;display:flex;position:relative;box-shadow:inset 0 0 0 1px #0000}.inbox-scope .inbox-search:focus-within{background:var(--surface);box-shadow:inset 0 0 0 1.5px var(--brand)}.inbox-scope .inbox-search input{background:0 0;border:0;width:100%;min-width:0;height:42px;font-size:16px}.inbox-scope .inbox-search input:focus-visible{outline:none}.inbox-scope .inbox-search input::-webkit-search-cancel-button{display:none}.inbox-scope .clear-search{border-radius:var(--r-pill);width:32px;min-height:32px;color:var(--muted);place-items:center;display:grid}.inbox-scope .clear-search:hover{background:var(--surface-3);color:var(--ink)}.inbox-scope .filter-chips{scrollbar-width:none;margin:0 calc(var(--s4) * -1);padding:0 var(--s4);gap:6px;display:flex;overflow-x:auto}.inbox-scope .filter-chips::-webkit-scrollbar{display:none}.inbox-scope .chip{border-radius:var(--r-pill);min-height:32px;font-size:var(--t-sm);color:var(--ink-2);background:var(--surface);box-shadow:inset 0 0 0 1px var(--line-strong);white-space:nowrap;align-items:center;gap:6px;padding:0 12px;font-weight:550;display:inline-flex}.inbox-scope .chip span{font-size:var(--t-xs);color:var(--muted);font-variant-numeric:tabular-nums}.inbox-scope .chip:hover{background:var(--surface-2)}.inbox-scope .chip[aria-pressed=true]{background:var(--ink);color:var(--surface);box-shadow:none}.inbox-scope .chip[aria-pressed=true] span{color:inherit;opacity:.75}.inbox-scope .inbox-conversations{overscroll-behavior:contain;min-height:0;padding:2px var(--s2) var(--s3);flex:1;overflow-y:auto}.inbox-scope .conversation-row{align-items:center;gap:var(--s3);width:100%;padding:10px var(--s3);text-align:left;border-radius:var(--r-md);min-width:0;min-height:72px;display:flex;position:relative}.inbox-scope .conversation-row+.conversation-row:before{content:"";border-top:1px solid var(--line);position:absolute;top:0;left:70px;right:12px}.inbox-scope .conversation-row:hover{background:var(--surface-2)}.inbox-scope .conversation-row:hover:before,.inbox-scope .conversation-row:hover+.conversation-row:before,.inbox-scope .conversation-row.selected:before,.inbox-scope .conversation-row.selected+.conversation-row:before{border-color:#0000}.inbox-scope .conversation-row.selected{background:var(--brand-soft)}.inbox-scope .conversation-row:active:not(:disabled){background:var(--surface-3);transform:none}.inbox-scope .conversation-copy{flex:1;gap:3px;min-width:0;display:grid}.inbox-scope .conversation-title{align-items:baseline;gap:var(--s2);justify-content:space-between;min-width:0;display:flex}.inbox-scope .conversation-title strong{font-size:var(--t-md);white-space:nowrap;text-overflow:ellipsis;letter-spacing:-.005em;font-weight:600;overflow:hidden}.inbox-scope .conversation-title time{font-size:var(--t-xs);color:var(--muted);font-variant-numeric:tabular-nums;flex:none}.inbox-scope .is-unread .conversation-title time{color:var(--brand-ink);font-weight:600}.inbox-scope .conversation-bottom{align-items:center;gap:var(--s2);min-width:0;display:flex}.inbox-scope .conversation-preview{min-width:0;font-size:var(--t-sm);color:var(--muted);white-space:nowrap;text-overflow:ellipsis;flex:1;overflow:hidden}.inbox-scope .is-unread .conversation-preview{color:var(--ink-2);font-weight:500}.inbox-scope .unread{background:var(--brand-strong);color:var(--primary-fg);border-radius:var(--r-pill);font-variant-numeric:tabular-nums;place-items:center;min-width:20px;height:20px;padding:0 6px;font-size:11.5px;font-weight:700;display:inline-grid}.inbox-scope .mode-label{font-size:var(--t-xs);color:var(--brand-ink);font-weight:500}.inbox-scope .mode-label.human{color:var(--human)}.inbox-scope .avatar{letter-spacing:.02em;background:var(--av-bg);width:46px;height:46px;color:var(--av-fg);border-radius:50%;flex:none;place-items:center;font-size:15px;font-weight:650;display:grid;position:relative}.inbox-scope .avatar-lg{width:72px;height:72px;font-size:24px}.inbox-scope .tone-0{--av-bg:#dff1f4;--av-fg:#00606f}.inbox-scope .tone-1{--av-bg:#fdf0c8;--av-fg:#7a5300}.inbox-scope .tone-2{--av-bg:#e6eefb;--av-fg:#2c4f86}.inbox-scope .tone-3{--av-bg:#f7e5ec;--av-fg:#8a2f55}.inbox-scope .tone-4{--av-bg:#e4f2e6;--av-fg:#2c6a3a}.inbox-scope .tone-5{--av-bg:#efe8f8;--av-fg:#5b3f8c}.inbox-scope .avatar-mode{border:2px solid var(--surface);border-radius:50%;place-items:center;width:18px;height:18px;display:grid;position:absolute;bottom:-2px;right:-2px}.inbox-scope .avatar-mode.assistant{background:var(--brand-strong);color:var(--primary-fg)}.inbox-scope .avatar-mode.human{background:var(--accent);color:#3d2a00}.inbox-scope .conversation-row.selected .avatar-mode{border-color:var(--brand-soft)}.inbox-scope .avatar-lg .avatar-mode{width:24px;height:24px}.inbox-scope .list-skeleton{padding:var(--s2) var(--s2);gap:6px;display:grid}.inbox-scope .list-skeleton span{border-radius:var(--r-md);background:linear-gradient(90deg, var(--surface-2) 0%, var(--surface-3) 50%, var(--surface-2) 100%) 0 0 / 200% 100%;height:64px;animation:1.4s linear infinite shimmer}@keyframes shimmer{to{background-position:-200% 0}}.inbox-scope .empty-list{text-align:center;color:var(--muted);justify-items:center;gap:6px;padding:40px 24px;display:grid}.inbox-scope .empty-list p{color:var(--ink);font-weight:600;font-size:var(--t-md);overflow-wrap:anywhere;margin:6px 0 0}.inbox-scope .empty-list span{font-size:var(--t-sm);max-width:30ch;line-height:1.5}.inbox-scope .more-button{margin:var(--s2) auto;padding:0 var(--s4);min-height:40px;color:var(--brand-ink);background:var(--brand-softer);box-shadow:inset 0 0 0 1px var(--brand-soft);border-radius:var(--r-pill);font-size:var(--t-sm);flex:none;font-weight:600;display:flex}.inbox-scope .more-button:hover{background:var(--brand-soft)}.inbox-scope .inbox-sidebar-footer{border-top:1px solid var(--line);padding:var(--s2) var(--s4) max(var(--s3), env(safe-area-inset-bottom));justify-content:space-between;align-items:center;gap:var(--s2);flex-wrap:wrap;display:flex}.inbox-scope .footer-action{align-items:center;gap:var(--s2);color:var(--brand-ink);font-size:var(--t-sm);padding:0 var(--s2);margin-left:calc(var(--s2) * -1);border-radius:var(--r-sm);font-weight:600;display:inline-flex}.inbox-scope .footer-action:hover{background:var(--brand-softer)}.inbox-scope .inbox-sidebar-footer>span{font-size:var(--t-xs);color:var(--muted);text-overflow:ellipsis;white-space:nowrap;align-items:center;gap:6px;min-width:0;display:inline-flex;overflow:hidden}.inbox-scope .inbox-chat{background:var(--canvas);flex-direction:column;min-width:0;min-height:0;display:flex;position:relative}.inbox-scope .chat-loading{flex-direction:column;flex:1;min-height:0;display:flex}.inbox-scope .inbox-welcome{text-align:center;padding:var(--s8);justify-content:center;align-items:center;gap:var(--s3);color:var(--muted);font-size:var(--t-sm);flex-direction:column;flex:1;display:flex}.inbox-scope .inbox-welcome p{max-width:42ch;line-height:1.6;font-size:var(--t-md);text-wrap:pretty;margin:0}.inbox-scope .welcome-symbol{background:var(--surface);width:72px;height:72px;color:var(--brand-ink);box-shadow:var(--shadow-md);margin-bottom:var(--s2);border-radius:22px;place-items:center;display:grid}.inbox-scope .inbox-welcome h2{letter-spacing:-.02em;color:var(--ink);margin:0;font-size:24px;font-weight:650;line-height:1.25}.inbox-scope .welcome-stats{gap:var(--s2);margin:var(--s4) 0 0;flex-wrap:wrap;justify-content:center;display:flex}.inbox-scope .welcome-stats div{background:var(--surface);border-radius:var(--r-md);padding:var(--s3) var(--s5);min-width:120px;box-shadow:var(--shadow-sm)}.inbox-scope .welcome-stats dt{font-size:var(--t-xs);color:var(--muted)}.inbox-scope .welcome-stats dd{color:var(--ink);font-variant-numeric:tabular-nums;margin:2px 0 0;font-size:22px;font-weight:700}.inbox-scope .private-caption{font-size:var(--t-xs);color:var(--muted);margin-top:var(--s6);align-items:center;gap:6px;display:flex}.inbox-scope .chat-header{align-items:center;gap:var(--s3);min-height:68px;padding:10px var(--s4) 10px var(--s6);padding-top:max(10px, env(safe-area-inset-top));background:var(--surface);border-bottom:1px solid var(--line);display:flex}.inbox-scope .chat-person{flex:1;gap:3px;min-width:0;display:grid}.inbox-scope .chat-person h2{font-size:var(--t-lg);text-overflow:ellipsis;white-space:nowrap;letter-spacing:-.01em;margin:0;font-weight:650;overflow:hidden}.inbox-scope .attention-pill{font-size:var(--t-xs);color:var(--brand-ink);align-items:center;gap:5px;margin:0;font-weight:600;display:inline-flex}.inbox-scope .attention-pill.human{color:var(--human)}.inbox-scope .control-button{min-height:40px}.inbox-scope .label-short,.inbox-scope .mobile-back{display:none}.inbox-scope .back-count{border-radius:var(--r-pill);background:var(--brand-strong);min-width:17px;height:17px;color:var(--primary-fg);place-items:center;padding:0 4px;font-size:10.5px;font-weight:700;display:grid;position:absolute;top:4px;right:0}.inbox-scope .skeleton-line{border-radius:var(--r-pill);background:var(--surface-3);height:14px}.inbox-scope .skeleton-line.wide{width:40%}.inbox-scope .control-banner{align-items:center;gap:var(--s3);padding:10px var(--s6);background:var(--brand-softer);border-bottom:1px solid var(--brand-soft);color:var(--ink-2);font-size:var(--t-sm);display:flex}.inbox-scope .control-banner.human{background:var(--human-soft);border-bottom-color:var(--human-line)}.inbox-scope .banner-icon{background:var(--brand-strong);width:30px;height:30px;color:var(--primary-fg);border-radius:50%;flex:none;place-items:center;display:grid}.inbox-scope .control-banner.human .banner-icon{background:var(--accent);color:#3d2a00}.inbox-scope .control-banner.pending .banner-icon{background:var(--surface-3);color:var(--ink-2)}.inbox-scope .banner-copy{flex:1;gap:1px;min-width:0;line-height:1.4;display:grid}.inbox-scope .banner-copy strong{color:var(--ink);font-weight:650}.inbox-scope .control-banner.human .banner-copy strong{color:var(--human-strong)}.inbox-scope .banner-copy small{font-size:var(--t-xs);color:var(--muted)}.inbox-scope .window-chip{font-size:var(--t-xs);color:var(--muted);background:var(--surface);border-radius:var(--r-pill);box-shadow:inset 0 0 0 1px var(--line);flex:none;align-items:center;gap:5px;padding:5px 10px;font-weight:550;display:inline-flex}.inbox-scope .window-chip.closed{color:var(--danger);box-shadow:inset 0 0 0 1px var(--danger-line);background:var(--danger-soft)}.inbox-scope .message-timeline{min-height:0;padding:var(--s4) clamp(16px, 5vw, 72px) var(--s6);overscroll-behavior:contain;flex-direction:column;flex:1;gap:3px;display:flex;overflow-y:auto}.inbox-scope .timeline-date{margin:var(--s4) 0 var(--s2);justify-content:center;display:flex}.inbox-scope .timeline-date span{font-size:var(--t-xs);color:var(--ink-2);background:color-mix(in srgb, var(--surface) 92%, transparent);border-radius:var(--r-pill);box-shadow:var(--shadow-sm);text-transform:capitalize;padding:5px 12px;font-weight:600}.inbox-scope .timeline-empty{justify-items:center;gap:var(--s2);color:var(--muted);text-align:center;font-size:var(--t-md);margin:auto;display:grid}.inbox-scope .timeline-empty p{margin:0}.inbox-scope .message{background:var(--bubble-in);border-radius:var(--r-md);overflow-wrap:anywhere;max-width:min(78%,540px);box-shadow:var(--shadow-sm);animation:bubble-in .22s var(--ease);align-self:flex-start;padding:7px 11px 6px;position:relative}.inbox-scope .message.group-start{margin-top:var(--s2);border-top-left-radius:4px}.inbox-scope .message.outbound{background:var(--bubble-out);box-shadow:inset 0 0 0 1px var(--bubble-out-line);align-self:flex-end}.inbox-scope .message.outbound.group-start{border-top-left-radius:var(--r-md);border-top-right-radius:4px}.inbox-scope .message.by-assistant{background:var(--bubble-bot);box-shadow:inset 0 0 0 1px var(--line)}@keyframes bubble-in{0%{opacity:0;transform:translateY(4px)}}.inbox-scope .message-author{font-size:var(--t-xs);color:var(--muted);align-items:center;gap:4px;margin-bottom:2px;font-weight:650;display:flex}.inbox-scope .message.outbound .message-author{color:var(--brand-ink)}.inbox-scope .message.by-assistant .message-author{color:var(--ink-2)}.inbox-scope .message p{font-size:var(--t-md);white-space:pre-wrap;margin:0;line-height:1.45}.inbox-scope .message footer{color:var(--muted);font-variant-numeric:tabular-nums;float:right;margin-top:2px;margin-left:var(--s3);justify-content:flex-end;align-items:center;gap:4px;font-size:11.5px;display:flex;position:relative;top:4px}.inbox-scope .message:after{content:"";clear:both;display:block}.inbox-scope .status{align-items:center;gap:3px;display:inline-flex}.inbox-scope .status-read{color:var(--read)}.inbox-scope .status-failed{color:var(--danger);font-weight:600}.inbox-scope .status-uncertain{color:var(--warn);font-weight:600}.inbox-scope .message-failed{box-shadow:inset 0 0 0 1.5px var(--danger-line)!important}.inbox-scope .message-uncertain{box-shadow:inset 0 0 0 1.5px var(--human-line)!important}.inbox-scope .message-error{clear:both;border-top:1px dashed var(--danger-line);color:var(--danger);font-size:var(--t-xs);margin-top:10px;padding-top:6px;line-height:1.45;display:block}.inbox-scope .image-message{background:var(--surface-3);border-radius:10px;margin:2px -7px 6px;display:block;overflow:hidden}.inbox-scope .image-message img{object-fit:cover;width:320px;max-width:100%;max-height:360px;display:block}.inbox-scope .audio-message{max-width:100%;margin:2px 0 4px}.inbox-scope .audio-message audio{width:280px;min-width:0;max-width:100%;height:44px;accent-color:var(--brand);display:block}.inbox-scope .document-message{gap:var(--s3);border-radius:var(--r-sm);background:color-mix(in srgb, var(--surface) 70%, transparent);min-height:52px;color:var(--ink);box-shadow:inset 0 0 0 1px var(--line);align-items:center;min-width:min(260px,100%);margin:2px -4px 6px;padding:8px 10px;text-decoration:none;display:flex}.inbox-scope .document-message:hover{background:var(--surface)}.inbox-scope .document-icon{background:var(--brand-soft);width:36px;height:36px;color:var(--brand-ink);border-radius:9px;flex:none;place-items:center;display:grid}.inbox-scope .document-name{min-width:0;font-size:var(--t-sm);text-overflow:ellipsis;white-space:nowrap;flex:1;font-weight:600;overflow:hidden}.inbox-scope .document-action{font-size:var(--t-xs);color:var(--brand-ink);flex:none;align-items:center;gap:4px;font-weight:600;display:inline-flex}.inbox-scope .media-missing{align-items:center;gap:var(--s2);color:var(--muted);font-size:var(--t-sm);border-radius:var(--r-sm);background:var(--surface-2);box-shadow:inset 0 0 0 1px dashed var(--line);margin:2px -4px 6px;padding:10px 12px;display:flex}.inbox-scope .template-picker{border-top:1px solid var(--line);background:var(--surface);max-height:min(320px,45%);padding:var(--s3) var(--s6) var(--s4);gap:var(--s3);display:grid;overflow:auto}.inbox-scope .template-head{justify-content:space-between;align-items:center;display:flex}.inbox-scope .template-head strong{font-size:var(--t-md)}.inbox-scope .template-picker label{font-size:var(--t-sm);color:var(--ink-2);gap:6px;font-weight:600;display:grid}.inbox-scope .template-picker input,.inbox-scope .template-picker select{border:1px solid var(--line-strong);border-radius:var(--r-sm);background:var(--surface);width:100%;min-height:44px;padding:10px 12px;font-weight:400}.inbox-scope .template-body{padding:var(--s3) var(--s4);border-radius:var(--r-sm);background:var(--brand-softer);font-size:var(--t-sm);color:var(--ink-2);white-space:pre-wrap;margin:0;line-height:1.55}.inbox-scope .template-empty{gap:var(--s2);font-size:var(--t-sm);color:var(--warn);background:var(--warn-soft);padding:var(--s3);border-radius:var(--r-sm);align-items:flex-start;margin:0;line-height:1.5;display:flex}.inbox-scope .inbox-composer{padding:var(--s3) var(--s6) max(var(--s3), env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--line);gap:var(--s2);display:grid}.inbox-scope .composer-line{background:var(--surface-2);box-shadow:inset 0 0 0 1px var(--line);border-radius:22px;align-items:flex-end;gap:2px;padding:4px;transition:box-shadow .16s,background-color .16s;display:flex}.inbox-scope .composer-line:focus-within{background:var(--surface);box-shadow:inset 0 0 0 1.5px var(--brand)}.inbox-scope .composer-line.is-locked{opacity:.7}.inbox-scope .composer-line textarea{width:100%;min-height:44px;max-height:max(44px, min(168px, calc(var(--inbox-height,100dvh) * .22)));resize:none;background:0 0;border:0;flex:1;padding:11px 6px;font-size:16px;line-height:1.45;overflow-y:auto}.inbox-scope .composer-line textarea:focus-visible{outline:none}.inbox-scope .composer-line textarea:disabled{cursor:not-allowed}.inbox-scope .composer-line .icon-button{border-radius:50%}.inbox-scope .send-button{background:var(--primary-bg);width:44px;height:44px;color:var(--primary-fg);border-radius:50%;flex:none;place-items:center;display:grid}.inbox-scope .send-button:hover:not(:disabled){background:var(--primary-bg-hover)}.inbox-scope .send-button:disabled{background:var(--surface-3);color:var(--muted);opacity:1}.inbox-scope .composer-note{font-size:var(--t-xs);color:var(--muted);margin:0 var(--s2);align-items:center;gap:6px;min-height:17px;line-height:1.4;display:flex}.inbox-scope .mode-dot{background:var(--muted);border-radius:50%;flex:none;width:7px;height:7px}.inbox-scope .mode-dot.test{background:var(--accent)}.inbox-scope .mode-dot.live{background:var(--ok)}.inbox-scope .mode-dot.disabled{background:var(--danger)}.inbox-scope .file-input{display:none}.inbox-scope .attachment-preview{align-items:center;gap:var(--s2);font-size:var(--t-sm);border-radius:var(--r-md);background:var(--brand-softer);box-shadow:inset 0 0 0 1px var(--brand-soft);padding:4px 4px 4px 6px;display:flex}.inbox-scope .attachment-icon{background:var(--surface);width:32px;height:32px;color:var(--brand-ink);border-radius:9px;flex:none;place-items:center;display:grid}.inbox-scope .attachment-name{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-weight:600;overflow:hidden}.inbox-scope .attachment-preview small{color:var(--muted);font-size:var(--t-xs);flex:none}.inbox-scope .recording-bar{align-items:center;gap:var(--s2);font-size:var(--t-sm);color:var(--danger);background:var(--danger-soft);border-radius:var(--r-md);font-variant-numeric:tabular-nums;flex-wrap:wrap;padding:8px 12px;font-weight:600;display:flex}.inbox-scope .recording-bar i{background:var(--danger);border-radius:50%;width:9px;height:9px;animation:1s ease-in-out infinite pulse}.inbox-scope .recording-bar small{color:var(--muted);font-weight:400;font-size:var(--t-xs)}.inbox-scope .recording{color:var(--danger)!important;background:var(--danger-soft)!important}.inbox-scope .window-closed{gap:var(--s2);padding:var(--s3);border-radius:var(--r-md);background:var(--warn-soft);display:grid}.inbox-scope .window-closed p{font-size:var(--t-sm);color:var(--ink-2);margin:0;line-height:1.5}.inbox-scope .window-closed strong{color:var(--warn)}.inbox-scope .template-button{border-radius:var(--r-pill);padding:0 var(--s4);background:var(--primary-bg);min-height:40px;color:var(--primary-fg);font-size:var(--t-sm);justify-self:start;align-items:center;gap:6px;font-weight:600;display:inline-flex}.inbox-scope .template-button:hover{background:var(--primary-bg-hover)}.inbox-scope .inbox-feedback{align-items:flex-start;gap:var(--s3);margin:0 var(--s6) var(--s2);border-radius:var(--r-md);font-size:var(--t-sm);box-shadow:var(--shadow-md);background:var(--surface);animation:bubble-in .2s var(--ease);padding:10px 6px 10px 12px;line-height:1.5;display:flex}.inbox-scope .inbox-feedback>div{flex:1;gap:4px;min-width:0;padding-top:1px;display:grid}.inbox-scope .inbox-feedback p{margin:0}.inbox-scope .inbox-feedback .icon-button{width:36px;height:36px;min-height:36px}.inbox-scope .feedback-icon{padding-top:1px}.inbox-scope .inbox-feedback.is-error{background:var(--danger-soft);color:var(--danger);box-shadow:inset 0 0 0 1px var(--danger-line)}.inbox-scope .inbox-feedback.is-error p{color:var(--ink)}.inbox-scope .inbox-feedback.is-offline{background:var(--warn-soft);color:var(--warn);box-shadow:inset 0 0 0 1px var(--human-line)}.inbox-scope .inbox-feedback.is-offline p{color:var(--ink)}.inbox-scope .inbox-feedback.is-notice{color:var(--ok)}.inbox-scope .inbox-feedback.is-notice p{color:var(--ink)}.inbox-scope .inbox-chat>.inbox-feedback:last-child{margin-bottom:var(--s4)}.inbox-scope .contact-details{background:var(--surface);border-left:1px solid var(--line);flex-direction:column;gap:0;min-height:0;display:flex;overflow-y:auto}.inbox-scope .contact-details>header{min-height:68px;padding:10px var(--s3) 10px var(--s5);padding-top:max(10px, env(safe-area-inset-top));border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;display:flex}.inbox-scope .contact-details>header h2{font-size:var(--t-md);margin:0;font-weight:650}.inbox-scope .details-identity{text-align:center;padding:var(--s6) var(--s5) var(--s5);border-bottom:1px solid var(--line);justify-items:center;gap:4px;display:grid}.inbox-scope .details-identity .avatar{margin-bottom:var(--s2)}.inbox-scope .details-identity strong{font-size:var(--t-lg);overflow-wrap:anywhere;font-weight:650}.inbox-scope .details-identity span:last-child{font-size:var(--t-sm);color:var(--muted);font-variant-numeric:tabular-nums}.inbox-scope .details-block{padding:var(--s5);border-bottom:1px solid var(--line);gap:var(--s2);display:grid}.inbox-scope .details-block h3{font-size:var(--t-xs);text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin:0 0 2px;font-weight:650}.inbox-scope .attention-state,.inbox-scope .details-mode{align-items:center;gap:var(--s2);font-size:var(--t-md);color:var(--brand-ink);margin:0;font-weight:600;display:flex}.inbox-scope .attention-state.human{color:var(--human)}.inbox-scope .details-mode{color:var(--ink)}.inbox-scope .details-help{font-size:var(--t-sm);color:var(--muted);margin:0;line-height:1.5}.inbox-scope .details-block .block{margin-top:var(--s2)}.inbox-scope .details-block dl{gap:var(--s2);margin:0;display:grid}.inbox-scope .details-block dl div{justify-content:space-between;gap:var(--s3);font-size:var(--t-sm);display:flex}.inbox-scope .details-block dt{color:var(--muted)}.inbox-scope .details-block dd{text-align:right;margin:0;font-weight:550}.inbox-scope .details-scrim{display:none}.inbox-scope .details-toggle[aria-expanded=true]{color:var(--brand-ink);background:var(--brand-softer)}@media (width<=1279.98px){.inbox-scope .contact-details{z-index:30;width:min(360px,92vw);box-shadow:var(--shadow-lg);animation:drawer-in .26s var(--ease);padding-bottom:env(safe-area-inset-bottom);border-left:0;position:fixed;top:0;bottom:0;right:0}.inbox-scope .details-open .details-scrim{z-index:29;background:#06161961;border-radius:0;min-height:0;animation:.2s fade-in;display:block;position:fixed;inset:0}.inbox-scope .details-open .details-scrim:active{transform:none}}@media (width>=1280px){.inbox-scope .contact-details>header .icon-button{display:none}}@keyframes drawer-in{0%{opacity:0;transform:translate(24px)}}@keyframes fade-in{0%{opacity:0}}@media (width<=1023.98px){.inbox-scope{--sidebar:320px}.inbox-scope .chat-header{padding-left:var(--s4)}.inbox-scope .control-banner,.inbox-scope .template-picker,.inbox-scope .inbox-composer{padding-left:var(--s4);padding-right:var(--s4)}.inbox-scope .inbox-feedback{margin-left:var(--s4);margin-right:var(--s4)}.inbox-scope .control-banner{flex-wrap:wrap;row-gap:6px}.inbox-scope .banner-copy{flex:calc(100% - 46px)}.inbox-scope .window-chip{margin-left:42px}.inbox-scope .kbd-hint,.inbox-scope .label-long{display:none}.inbox-scope .label-short{display:inline}}@media (width<=767.98px){.inbox-scope .inbox-workspace{grid-template-columns:1fr}.inbox-scope .inbox-chat{display:none}.inbox-scope .inbox-sidebar{border:0}.inbox-scope .chat-open .inbox-sidebar{display:none}.inbox-scope .chat-open .inbox-chat{display:flex}.inbox-scope .inbox-brand{padding-left:var(--s4)}.inbox-scope .inbox-conversations{padding:0 var(--s2) var(--s3)}.inbox-scope .conversation-row{min-height:76px}.inbox-scope .kbd-hint{display:none}.inbox-scope .chat-header{gap:var(--s2);padding:6px var(--s2) 6px 2px;padding-top:max(6px, env(safe-area-inset-top));min-height:60px}.inbox-scope .mobile-back{display:inline-flex}.inbox-scope .chat-header .avatar{width:38px;height:38px;font-size:13px}.inbox-scope .chat-header .avatar-mode{width:16px;height:16px}.inbox-scope .chat-person h2{font-size:var(--t-md)}.inbox-scope .control-button{min-height:40px;padding:0 12px}.inbox-scope .control-banner{padding:8px var(--s3);gap:var(--s2)}.inbox-scope .banner-icon{width:26px;height:26px}.inbox-scope .banner-copy{flex-basis:calc(100% - 38px)}.inbox-scope .window-chip{margin-left:34px}.inbox-scope .message-timeline{padding:var(--s2) 10px var(--s4)}.inbox-scope .message{max-width:86%}.inbox-scope .audio-message audio{width:240px}.inbox-scope .inbox-composer{padding:var(--s2) var(--s2) max(var(--s2), env(safe-area-inset-bottom))}.inbox-scope .composer-note{margin:0 var(--s2)}.inbox-scope .inbox-feedback{margin:0 var(--s2) var(--s2)}.inbox-scope .template-picker{padding:var(--s3);max-height:55%}.inbox-scope .contact-details{width:100vw}.inbox-scope .welcome-stats div{min-width:96px}}@media (width<=380px){.inbox-scope .control-button .label-short{display:none}.inbox-scope .control-button{width:44px;padding:0}}@media (hover:none){.inbox-scope .conversation-row:hover,.inbox-scope .icon-button:hover:not(:disabled),.inbox-scope .chip:hover{background:inherit}.inbox-scope .conversation-row.selected:hover{background:var(--brand-soft)}.inbox-scope .chip[aria-pressed=true]:hover{background:var(--ink)}}@media (prefers-reduced-motion:reduce){.inbox-scope *,.inbox-scope :before,.inbox-scope :after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}.inbox-scope .business-toolbar,.inbox-scope .business-compose-tools,.inbox-scope .customer-labels,.inbox-scope .message-reactions{flex-wrap:wrap;gap:8px;display:flex}.inbox-scope .business-toolbar button,.inbox-scope .business-compose-tools button,.inbox-scope .quick-suggestions button,.inbox-scope .business-dialog button,.inbox-scope .shared-contact button,.inbox-scope .special-preview>button{border:1px solid var(--line);border-radius:var(--r-sm);background:var(--surface);min-height:44px;color:var(--ink);font:inherit;cursor:pointer;align-items:center;gap:6px;padding:8px 12px;display:inline-flex}.inbox-scope .business-compose-tools{padding-bottom:8px}.inbox-scope .business-compose-tools button{font-size:12px}.inbox-scope .business-toolbar button{flex:1;font-size:12px}.inbox-scope .business-toolbar{width:100%}.inbox-scope .business-dialog{width:min(560px,100vw - 24px);max-height:calc(100dvh - 36px);color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--shadow-lg);padding:20px;overflow:auto}.inbox-scope .business-dialog::backdrop{background:#00191ea6}.inbox-scope .business-dialog header{justify-content:space-between;align-items:center;gap:12px;display:flex}.inbox-scope .business-dialog h2{margin:0;font-size:20px}.inbox-scope .business-dialog p{color:var(--muted);font-size:14px;line-height:1.5}.inbox-scope .business-dialog label,.inbox-scope .label-filter{gap:6px;margin-block:12px;font-size:14px;display:grid}.inbox-scope .business-dialog input,.inbox-scope .business-dialog textarea,.inbox-scope .business-dialog select,.inbox-scope .label-filter select{border:1px solid var(--line-strong);border-radius:var(--r-sm);background:var(--surface-2);width:100%;min-height:44px;color:var(--ink);font:inherit;padding:10px}.inbox-scope .business-dialog form footer{gap:8px;margin-top:16px;display:flex}.inbox-scope .business-dialog .primary{background:var(--primary-bg);color:var(--primary-fg)}.inbox-scope .business-list{max-height:260px;padding:0;list-style:none;overflow:auto}.inbox-scope .business-list li{border-bottom:1px solid var(--line);flex-wrap:wrap;gap:8px;padding-block:12px;display:flex}.inbox-scope .business-list li>div{overflow-wrap:anywhere;flex:1 0 100%;min-width:0}.inbox-scope .business-list p{white-space:pre-wrap;max-height:90px;overflow:auto}.inbox-scope .business-dialog button:disabled,.inbox-scope .business-compose-tools button:disabled{opacity:.5;cursor:default}.inbox-scope .customer-tag{border-radius:var(--r-pill);border:1px solid var(--line-strong);background:var(--brand-soft);min-height:44px;color:var(--brand-ink);font:inherit;align-items:center;padding:7px 10px;font-size:12px;display:inline-flex}.inbox-scope .customer-tag[aria-pressed=true]{border:2px solid}.inbox-scope .color-yellow{background:var(--human-soft);color:var(--human)}.inbox-scope .color-blue{background:var(--brand-soft)}.inbox-scope .color-purple{background:var(--surface-3)}.inbox-scope .color-red{background:var(--danger-soft);color:var(--danger)}.inbox-scope .color-gray{background:var(--surface-2);color:var(--ink-2)}.inbox-scope .video-message,.inbox-scope .attachment-video{border-radius:var(--r-sm);background:var(--surface-3);width:min(100%,360px);max-height:320px;display:block}.inbox-scope .attachment-video{max-height:130px;margin-bottom:8px}.inbox-scope .sticker-message{object-fit:contain;width:140px;height:140px}.inbox-scope .quoted-message,.inbox-scope .reply-preview{text-align:left;border:0;border-left:3px solid var(--brand);background:var(--brand-soft);color:var(--ink);border-radius:var(--r-xs);overflow-wrap:anywhere;align-items:center;gap:8px;max-width:100%;margin-bottom:8px;padding:10px;display:flex}.inbox-scope .quoted-message{cursor:pointer;width:100%;min-height:44px}.inbox-scope .quoted-message span{gap:3px;font-size:12px;display:grid}.inbox-scope .quoted-message:disabled{cursor:default}.inbox-scope .reply-preview>span{flex:1;min-width:0}.inbox-scope .location-card{color:var(--ink);border:1px solid var(--line-strong);border-radius:var(--r-sm);gap:10px;min-height:64px;padding:12px;text-decoration:none;display:flex}.inbox-scope .location-card>span,.inbox-scope .location-card>span>span{gap:6px;display:grid}.inbox-scope .location-card small{color:var(--muted)}.inbox-scope .shared-contact{border:1px solid var(--line-strong);border-radius:var(--r-sm);overflow-wrap:anywhere;margin-block:8px;padding:12px}.inbox-scope .shared-contact>strong,.inbox-scope .shared-contact>div{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.inbox-scope .shared-contact dl>div{gap:4px;margin-top:8px;display:grid}.inbox-scope .shared-contact dd{margin:0}.inbox-scope .shared-contact summary{cursor:pointer;min-height:44px;padding-top:12px}.inbox-scope .shared-contact button{font-size:12px}.inbox-scope .special-preview{border:1px solid var(--line);border-radius:var(--r-sm);max-height:200px;margin-bottom:8px;padding:8px;overflow:auto}.inbox-scope .message{position:relative}.inbox-scope .message-actions{align-self:flex-end;margin-left:auto}.inbox-scope .message-actions>summary{cursor:pointer;min-width:44px;min-height:44px;color:var(--muted);place-items:center;list-style:none;display:grid}.inbox-scope .message-actions>summary::-webkit-details-marker{display:none}.inbox-scope .message-action-menu{border:1px solid var(--line);background:var(--surface);border-radius:var(--r-sm);flex-direction:column;gap:6px;margin-bottom:8px;padding:8px;display:flex}.inbox-scope .message-action-menu>button{background:var(--surface-2);min-height:44px;color:var(--ink);border-radius:var(--r-xs);cursor:pointer;border:0;align-items:center;gap:8px;padding:8px;display:flex}.inbox-scope .reaction-picker{flex-wrap:wrap;gap:4px;display:flex}.inbox-scope .reaction-picker button{border:1px solid var(--line);border-radius:var(--r-sm);background:var(--surface-2);cursor:pointer;width:44px;height:44px;font-size:20px}.inbox-scope .message-reactions{margin-top:6px}.inbox-scope .message-reactions span{border:1px solid var(--line-strong);background:var(--surface);border-radius:var(--r-pill);padding:3px 8px;font-size:15px}.inbox-scope .quick-suggestions{flex-direction:column;gap:4px;max-height:160px;margin-bottom:8px;display:flex;overflow:auto}.inbox-scope .upload-progress{flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:8px;font-size:12px;display:flex}.inbox-scope .upload-progress progress{accent-color:var(--brand)}.inbox-scope .business-dialog :focus-visible,.inbox-scope .business-toolbar :focus-visible,.inbox-scope .message-actions :focus-visible,.inbox-scope .quoted-message:focus-visible,.inbox-scope .business-compose-tools :focus-visible{outline:3px solid var(--focus);outline-offset:2px}@media (width<=600px){.inbox-scope .business-dialog{padding:16px}.inbox-scope .business-compose-tools{gap:4px}.inbox-scope .business-compose-tools button{padding:6px 8px}.inbox-scope .business-toolbar{flex-wrap:wrap}}.inbox-scope .attachment-photo{object-fit:contain;border-radius:12px;max-width:100%;max-height:240px}.inbox-scope .queued-attachment{min-width:0;margin-block:8px}.inbox-scope .upload-progress{flex-wrap:wrap}.inbox-scope .attachment-queue{grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:8px;max-height:min(38dvh,320px);display:grid;overflow:auto}.inbox-scope .attachment-queue .attachment-preview{flex-wrap:wrap}.inbox-scope .attachment-queue .attachment-photo{max-height:160px}.inbox-scope .chat-header,.inbox-scope .control-banner{flex-shrink:0}.inbox-scope .inbox-chat{overflow:hidden}.inbox-scope .inbox-composer{flex-shrink:0;grid-template-rows:minmax(0,1fr) auto auto;min-height:0;max-height:60%;overflow:hidden}@container inbox (height<=480px){.inbox-scope .control-banner{flex-wrap:nowrap;gap:6px;padding:4px 8px}.inbox-scope .banner-copy{flex:1}.inbox-scope .banner-copy small,.inbox-scope .banner-icon{display:none}.inbox-scope .window-chip{white-space:nowrap;margin-left:0;padding:4px 6px}.inbox-scope .inbox-composer{gap:4px;max-height:55%;padding-top:4px}.inbox-scope .attachment-queue{max-height:min(24cqh,160px)}}.inbox-scope .inbox-workspace{padding-inline:env(safe-area-inset-left,0px) env(safe-area-inset-right,0px)}@container inbox (height<=300px){.inbox-scope .chat-header{min-height:48px;padding-top:max(2px, env(safe-area-inset-top));padding-bottom:2px}.inbox-scope .inbox-composer{max-height:40%;padding-bottom:max(4px, env(safe-area-inset-bottom));gap:2px}.inbox-scope .composer-note{display:none}.inbox-scope .message-timeline{padding-block:4px}.inbox-scope .banner-copy strong{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}}.inbox-scope .composer-accessories{overscroll-behavior:contain;gap:var(--s2);min-height:0;display:grid;overflow-y:auto}.inbox-scope .business-compose-tools{scrollbar-width:none;flex-wrap:nowrap;padding-bottom:2px;overflow-x:auto}.inbox-scope .business-compose-tools::-webkit-scrollbar{display:none}.inbox-scope .business-compose-tools button{min-height:40px;color:var(--ink-2);border-radius:999px;flex:none;padding:0 12px;font-size:13px;font-weight:550}.inbox-scope .business-compose-tools button:hover:not(:disabled){background:var(--surface-2)}.inbox-scope .business-toolbar button{border-radius:var(--r-sm);font-weight:550}.inbox-scope .business-toolbar button:hover{background:var(--surface-2)}.inbox-scope .inbox-brand a.icon-button{text-decoration:none}:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;-webkit-text-size-adjust:100%;--bg:#f4f4f0;--surface:#fff;--surface-2:#f6f7f5;--ink:#15323a;--muted:#5a6d71;--line:#e3e6e1;--line-strong:#cfd7d4;--brand:#00869a;--brand-strong:#006a79;--brand-deep:#0c3f47;--brand-soft:#e1f2f4;--yellow:#ffca2d;--side:#0c3f47;--side-ink:#d9ecee;--side-muted:#9fc0c4;--side-active:#ffffff1f;--accent:var(--brand);--accent-strong:var(--brand-strong);--mint:#e4f4eb;--mint-ink:#1b6a46;--rose:#fdebe8;--rose-ink:#a1342a;--sand:#fdf3da;--sand-ink:#7f540e;--sky:#e5f0fb;--sky-ink:#255a93;--lilac:#eeeafb;--lilac-ink:#553d95;--gray:#eef0ee;--gray-ink:#4d5c5f;--radius:16px;--radius-sm:10px;--shadow:0 1px 2px #15323a0d, 0 6px 20px #15323a0d;--nav-w:240px;--bottom-h:64px;color:var(--ink);background:var(--bg);font-family:Segoe UI Variable Text,Segoe UI,system-ui,-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif}*{box-sizing:border-box}html,body{background:var(--bg);color:var(--ink);margin:0}body{overflow-x:hidden}button,input,select,textarea{font:inherit;color:inherit}input,select,textarea{font-size:16px}button{cursor:pointer}a{color:var(--brand-strong)}:focus-visible{outline-offset:2px;outline:3px solid #7cc8d3}h1,h2,h3{color:var(--ink);line-height:1.2}@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}.boot{min-height:100dvh;color:var(--muted);place-content:center;justify-items:center;gap:14px;display:grid}.boot img{border-radius:18px;width:72px;height:72px}.boot span{align-items:center;gap:8px;display:inline-flex}.login{background:linear-gradient(160deg, #e6f3f4 0%, var(--bg) 55%);place-items:center;min-height:100dvh;padding:16px;display:grid}.login-card{background:var(--surface);width:min(400px,100%);box-shadow:var(--shadow);border-radius:22px;gap:12px;padding:28px 26px;display:grid}.login-card h1{text-align:center;margin:0;font-size:1.5rem}.login-card>p{text-align:center;margin:0 0 6px}.login-logo{object-fit:cover;border-radius:20px;justify-self:center;width:84px;height:84px}.login-card label{color:var(--muted);gap:5px;font-size:.9rem;display:grid}.login-card input{border:1px solid var(--line-strong);border-radius:var(--radius-sm);background:#fff;min-height:46px;padding:11px 12px}.shell{grid-template-columns:var(--nav-w) minmax(0, 1fr);min-height:100dvh;display:grid}.side{background:var(--side);color:var(--side-ink);flex-direction:column;gap:4px;height:100dvh;padding:18px 12px;display:flex;position:sticky;top:0}.brand{color:inherit;align-items:center;gap:10px;padding:4px 8px 18px;text-decoration:none;display:flex}.brand img{object-fit:cover;background:#fff;border-radius:12px;width:44px;height:44px}.brand b{color:#fff;font-size:1.25rem;display:block}.brand small{color:var(--side-muted);font-size:.78rem}.side-nav{gap:2px;display:grid}.nav-item{color:var(--side-ink);border-radius:12px;align-items:center;gap:12px;padding:11px 12px;font-size:.98rem;text-decoration:none;display:flex;position:relative}.nav-item:hover{background:#ffffff12}.nav-item[aria-current=page]{background:var(--side-active);color:#fff;font-weight:600}.nav-item[aria-current=page]:before{content:"";background:var(--yellow);border-radius:0 4px 4px 0;width:4px;position:absolute;top:10px;bottom:10px;left:-12px}.nav-item .badge,.badge{background:var(--yellow);color:#3b2c00;border-radius:999px;margin-left:auto;padding:1px 8px;font-size:.78rem;font-weight:700}.side-foot{border-top:1px solid #ffffff1a;gap:10px;margin-top:auto;padding:8px 4px 0;display:grid}.assistant-state{color:#bff0d7;border-radius:10px;align-items:center;gap:8px;padding:6px 8px;font-size:.85rem;text-decoration:none;display:inline-flex}.assistant-state.off{color:#ffd0c8}.assistant-state:hover{background:#ffffff12}.side-user{align-items:center;gap:8px;padding:4px 6px;font-size:.9rem;display:flex}.side-name{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.side .icon-btn{color:var(--side-ink);background:0 0;border-color:#0000}.side .icon-btn:hover{background:#ffffff1a}.avatar{background:var(--brand-soft);width:34px;height:34px;color:var(--brand-strong);border-radius:50%;flex:none;place-items:center;font-weight:700;display:grid}.main{width:100%;min-width:0;max-width:1360px;padding:20px 28px 48px}.topbar{align-items:center;gap:10px;margin-bottom:20px;display:flex}.mobile-logo,.mobile-only,.icon-btn.mobile-only{display:none}.search{background:var(--surface);border:1px solid var(--line);max-width:520px;color:var(--muted);border-radius:12px;flex:1;align-items:center;gap:8px;padding:9px 12px;display:flex}.search input{min-width:0;color:var(--ink);background:0 0;border:0;outline:0;flex:1}.page-head{flex-wrap:wrap;align-items:flex-end;gap:12px;margin:0 0 18px;display:flex}.page-head h1{margin:0;font-size:1.7rem;font-weight:700}.page-head p{margin:4px 0 0}.page-head p:first-letter{text-transform:uppercase}.section-title{color:var(--muted);margin:6px 0 10px;font-size:1rem;font-weight:600}.stack{gap:16px;display:grid}.btn,.chip-select{border:1px solid var(--line-strong);background:var(--surface);border-radius:var(--radius-sm);min-height:42px;color:var(--ink);white-space:nowrap;justify-content:center;align-items:center;gap:8px;padding:9px 14px;font-weight:500;text-decoration:none;display:inline-flex}.btn:hover{background:var(--surface-2)}.btn.primary{background:var(--brand);color:#fff;border-color:var(--brand)}.btn.primary:hover{background:var(--brand-strong)}.btn.danger{background:var(--rose);color:var(--rose-ink);border-color:#f2c4bc}.btn.warn{background:var(--sand);color:var(--sand-ink);border-color:#f0d9a4}.btn.block{width:100%}.btn:disabled{opacity:.5;cursor:not-allowed}.icon-btn{border:1px solid var(--line);background:var(--surface);width:40px;height:40px;color:var(--ink);border-radius:10px;flex:none;place-items:center;display:inline-grid}.tabs{background:#e9ecea;border-radius:12px;gap:4px;max-width:100%;padding:4px;display:inline-flex}.tabs.scroll{scrollbar-width:none;margin-bottom:16px;display:flex;overflow-x:auto}.tabs.scroll button{flex:none}.tabs button{color:var(--muted);white-space:nowrap;background:0 0;border:0;border-radius:9px;padding:8px 14px;font-weight:500}.tabs button[aria-pressed=true],.tabs button[aria-selected=true]{background:var(--surface);color:var(--ink);font-weight:600;box-shadow:0 1px 2px #00000014}.tabs.small button{padding:5px 10px;font-size:.85rem}.pill{white-space:nowrap;border-radius:999px;align-items:center;gap:5px;padding:3px 10px;font-size:.8rem;font-weight:600;text-decoration:none;display:inline-flex}.pill.mint{background:var(--mint);color:var(--mint-ink)}.pill.rose{background:var(--rose);color:var(--rose-ink)}.pill.sand{background:var(--sand);color:var(--sand-ink)}.pill.sky{background:var(--sky);color:var(--sky-ink)}.pill.lilac{background:var(--lilac);color:var(--lilac-ink)}.pill.gray{background:var(--gray);color:var(--gray-ink)}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);min-width:0;padding:18px 20px}.card+.card,.cols+.card,.card+.cols{margin-top:16px}.card h2{flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 12px;font-size:1.08rem;display:flex}.card h3{margin:18px 0 8px;font-size:.98rem}.spacer{flex:1}.muted{color:var(--muted)}.grow{flex:1;min-width:0}.row{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.cols{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:16px;display:grid}.cols>*{min-width:0}.cols.customers{grid-template-columns:minmax(280px,1fr) 2fr}.list{margin:0;padding:0;list-style:none;display:grid}.list li{border-bottom:1px solid var(--line);align-items:center;gap:12px;padding:11px 4px;display:flex}.list li:last-child{border-bottom:0}.list .when{min-width:140px;font-size:.88rem}.empty-row{color:var(--muted);text-align:center;justify-content:center;padding:20px 8px!important}.status-list li>span:first-child{flex:1}.table{border-collapse:collapse;width:100%}.table th{text-align:left;color:var(--muted);border-bottom:1px solid var(--line);text-transform:none;padding:9px 8px;font-size:.8rem;font-weight:600}.table td{border-bottom:1px solid var(--line);vertical-align:middle;padding:11px 8px}.table tr.clickable{cursor:pointer}.table tr.clickable:hover td{background:var(--surface-2)}.kv{grid-template-columns:max-content 1fr;gap:7px 16px;font-size:.95rem;display:grid}.kv dt{color:var(--muted)}.kv dd{overflow-wrap:anywhere;min-width:0;margin:0}.attention-grid{grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;margin-bottom:18px;display:grid}.attention{text-align:left;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow);grid-template-rows:auto auto;grid-template-columns:auto 1fr;align-items:center;column-gap:10px;padding:14px 16px;display:grid}.attention svg{grid-row:span 2}.attention strong{font-size:1.7rem;line-height:1}.attention span{grid-column:1/-1;margin-top:8px;font-weight:600}.attention small{color:var(--muted);grid-column:1/-1}.attention.rose{background:var(--rose);color:var(--rose-ink);border-color:#f4cdc6}.attention.sand{background:var(--sand);color:var(--sand-ink);border-color:#f1dfb2}.attention.sky{background:var(--sky);color:var(--sky-ink);border-color:#cfe0f4}.attention.lilac{background:var(--lilac);color:var(--lilac-ink);border-color:#ddd5f4}.attention.zero{color:var(--muted);box-shadow:none}.attention.zero strong{color:var(--ink)}.summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0;display:grid}.summary div{background:var(--surface-2);border-radius:12px;padding:12px}.summary dt{color:var(--muted);align-items:center;gap:6px;font-size:.85rem;display:flex}.summary dd{margin:4px 0 0;font-size:1.35rem;font-weight:700}.grid-cards{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin-bottom:16px;display:grid}.stat{border-radius:var(--radius);border:1px solid var(--line);background:var(--surface);text-align:left;color:var(--ink);flex-direction:column;gap:4px;padding:14px 16px;text-decoration:none;display:flex}.stat strong{font-size:1.6rem;line-height:1.1}.stat span{color:var(--muted);font-size:.88rem}.stat.mint{background:var(--mint)}.stat.rose{background:var(--rose)}.stat.sand{background:var(--sand)}.stat.sky{background:var(--sky)}.stat.lilac{background:var(--lilac)}.kanban{grid-auto-columns:minmax(250px,1fr);grid-auto-flow:column;gap:14px;padding-bottom:6px;display:grid;overflow-x:auto}.lane{border-radius:var(--radius);background:#eceeeb;flex-direction:column;gap:10px;min-height:200px;padding:12px;display:flex}.lane h3{align-items:center;gap:8px;margin:2px 4px 4px;font-size:.98rem;display:flex}.order-card{background:var(--surface);border:1px solid var(--line);text-align:left;border-radius:12px;gap:6px;width:100%;padding:12px;display:grid}.order-card:hover{border-color:var(--brand)}.message-preview{white-space:pre-wrap;font:inherit;background:var(--surface-2);border-radius:10px;margin:6px 0;padding:8px 10px;font-size:.88rem}.user{align-items:center;gap:10px;display:flex}.drawer-backdrop{z-index:40;background:#0c282e61;justify-content:flex-end;display:flex;position:fixed;inset:0}.drawer{background:var(--bg);overscroll-behavior:contain;width:min(880px,100%);height:100%;padding:20px 24px 60px;overflow-y:auto;box-shadow:-12px 0 40px #00000026}.drawer header{flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:14px;display:flex}.drawer h2{margin:0;font-size:1.5rem}.drawer .card{margin-top:12px}.form{gap:12px;display:grid}.form label{color:var(--muted);gap:5px;font-size:.88rem;display:grid}.form input,.form select,.form textarea{border:1px solid var(--line-strong);border-radius:var(--radius-sm);color:var(--ink);background:#fff;width:100%;min-width:0;max-width:100%;min-height:44px;padding:10px 12px}.form textarea{min-height:88px}.form input[type=file]{padding:8px;font-size:.9rem}.form input[type=checkbox],.form input[type=radio]{width:auto;min-height:0}.form label,.form .two>*{min-width:0}.form .two{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;display:grid}.alert,.notice,.ok,.info{border-radius:12px;margin:8px 0;padding:10px 14px}.alert{background:var(--rose);color:var(--rose-ink);border:1px solid #f4cdc6}.notice{background:var(--sand);color:var(--sand-ink);border:1px solid #f1dfb2}.ok{background:var(--mint);color:var(--mint-ink)}.info{background:var(--sky);color:var(--sky-ink)}.empty{color:var(--muted);text-align:center;padding:24px}.bottom-nav{display:none}.inbox-scope{--bg:#f4f4f0;--canvas:#f6f6f2;--surface:#fff;--surface-2:#f4f7f6;--surface-3:#e9efee;--ink:#15323a;--ink-2:#2d4a50;--muted:#5a6d71;--line:#e3e6e1;--line-strong:#cfd7d4;--brand:#00869a;--brand-strong:#006a79;--brand-deep:#0c3f47;--brand-ink:#006a79;--brand-soft:#e1f2f4;--brand-softer:#f0f8f9;--accent:#ffca2d;--primary-bg:#00869a;--primary-bg-hover:#006a79;--focus:#00869a;--bubble-out:#d9f0f3;--bubble-out-line:#c4e5ea}.inbox-scope.embedded .inbox-workspace{left:var(--nav-w);width:auto;right:0}.inbox-scope.embedded .inbox-sidebar-footer{justify-content:flex-start}.inbox-scope.embedded .inbox-section-title{gap:8px}.inbox-scope.embedded .inbox-section-title .connection{color:var(--muted);align-items:center;gap:6px;margin-left:auto;font-size:12px;display:inline-flex}.inbox-scope.embedded .inbox-section-title .connection i{background:#9aa9ab;border-radius:50%;width:8px;height:8px}.inbox-scope.embedded .inbox-section-title .connection.live i{background:#23a26b}.shell.is-inbox .main{max-width:none;padding:0}@media (width<=1100px){.cols{grid-template-columns:1fr}}@media (width<=920px){.shell{grid-template-columns:1fr}.side{display:none}.main{padding:12px 14px calc(var(--bottom-h) + 24px + env(safe-area-inset-bottom))}.mobile-logo{object-fit:cover;border-radius:10px;width:40px;height:40px;display:block}.mobile-only,.icon-btn.mobile-only{display:inline-grid}.topbar{gap:8px;margin-bottom:14px}.search{padding:8px 10px}.page-head h1{font-size:1.4rem}.cols.customers{grid-template-columns:1fr}.attention-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.attention{padding:12px}.attention strong{font-size:1.45rem}.card{padding:14px}.card h2,.list li{flex-wrap:wrap}.list .when{width:100%;min-width:0}.bottom-nav{height:calc(var(--bottom-h) + env(safe-area-inset-bottom));background:var(--side);padding:6px 4px env(safe-area-inset-bottom);z-index:25;grid-template-columns:repeat(5,1fr);display:grid;position:fixed;bottom:0;left:0;right:0}.bottom-nav a{color:var(--side-ink);border-radius:12px;flex-direction:column;justify-content:center;align-items:center;gap:2px;font-size:.72rem;text-decoration:none;display:flex;position:relative}.bottom-nav a[aria-current=page]{background:var(--side-active);color:#fff;font-weight:600}.bottom-nav .dot{background:var(--yellow);border-radius:50%;width:9px;height:9px;position:absolute;top:6px;right:calc(50% - 16px)}.inbox-scope.embedded .inbox-workspace{height:calc(var(--inbox-height,100dvh) - var(--bottom-h) - env(safe-area-inset-bottom));left:0}html.inbox-chat-open .bottom-nav{display:none}html.inbox-chat-open .inbox-scope.embedded .inbox-workspace{height:var(--inbox-height,100dvh)}.form .two{grid-template-columns:1fr}.drawer{padding:14px 14px 90px;overflow-x:hidden}.drawer header h2{font-size:1.3rem}.drawer .tabs{max-width:100%;display:flex;overflow-x:auto}.drawer .tabs button{flex:none}.drawer .card{overflow-x:auto}.drawer .table{font-size:.88rem}.table.responsive thead{display:none}.table.responsive tr{border-bottom:1px solid var(--line);grid-template-columns:1fr auto;padding:8px 0;display:grid}.table.responsive td{border:0;padding:3px 4px}.kv{grid-template-columns:1fr;gap:2px}.kv dt{margin-top:8px;font-size:.85rem}}.step{background:var(--brand);color:#fff;border-radius:50%;place-items:center;width:26px;height:26px;font-size:.85rem;font-weight:700;display:inline-grid}.choice{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;display:grid}.choice-item{border:1px solid var(--line-strong);cursor:pointer;background:var(--surface);border-radius:12px;align-items:flex-start;gap:10px;padding:12px;display:flex}.choice-item.on{border-color:var(--brand);background:var(--brand-soft);box-shadow:inset 0 0 0 1px var(--brand)}.choice-item input{accent-color:var(--brand);margin-top:3px}.choice-item span{gap:2px;display:grid}.choice-item small{color:var(--muted)}.btn.upload{justify-self:start;position:relative;overflow:hidden}.btn.upload input{opacity:0;cursor:pointer;position:absolute;inset:0}.list.files li{padding:8px 4px}.lines{border:1px solid var(--line);border-radius:12px;gap:10px;margin:0;padding:12px;display:grid}.lines legend{color:var(--muted);padding:0 6px;font-size:.9rem}.line{grid-template-columns:minmax(160px,3fr) repeat(4,minmax(70px,1fr)) auto;align-items:end;gap:8px;display:grid}.line label{color:var(--muted);gap:4px;min-width:0;font-size:.82rem;display:grid}@media (width<=920px){.choice{grid-template-columns:1fr}.line{border-bottom:1px dashed var(--line);grid-template-columns:repeat(2,minmax(0,1fr));padding-bottom:10px}.line .wide{grid-column:1/-1}}.card h2:has(.step){flex-wrap:nowrap}.inbox-scope .create-order{margin-top:8px;text-decoration:none}.total-history{border-top:1px solid var(--line);margin-top:14px;padding-top:10px}.total-history h3{margin:0 0 4px;font-size:.95rem}.line label.needs input{background:#fffaf0;border-color:#e2b35a}
