
:root{--bg:#faf9f6;--surface:#fff;--ink:#282936;--muted:#92929b;--line:#ecebf0;--violet:#6c5ce7;--violet-light:#f0edff;--green:#43866b;--shadow:0 6px 24px #24213b05;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;font-size:14px;line-height:1.45}button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit;border:0}button:disabled{cursor:not-allowed;opacity:.5}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #c8bfff;outline-offset:3px}svg{display:block;flex-shrink:0}h1,h2,h3,p{margin:0}h1{font-size:29px;font-weight:650;letter-spacing:-1px}h2{font-size:19px;font-weight:650;letter-spacing:-.4px}h3{font-size:15px;font-weight:650}small{display:block}input,textarea,select{border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);padding:10px 12px;max-width:100%}textarea{resize:vertical;line-height:1.6}input::placeholder,textarea::placeholder{color:#aaa9b2}select{cursor:pointer}.muted{color:var(--muted)}.small{font-size:12px}.mono{font-variant-numeric:tabular-nums}.app-shell{display:flex;min-height:100dvh}.sidebar{width:224px;flex-shrink:0;background:#fff;border-right:1px solid var(--line);padding:31px 20px 18px;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;z-index:15}.brand{display:flex;align-items:center;gap:11px;font-size:26px;letter-spacing:-1px;font-weight:800;padding-left:9px;line-height:1.1}.brand-mark{display:grid;place-items:center;width:37px;height:39px;background:var(--violet);color:white;border-radius:11px;font-size:32px;line-height:1;transform:rotate(-5deg);padding-bottom:5px}.brand-sub{font-weight:450;color:var(--muted);font-size:11px;letter-spacing:.6px;margin-top:6px;display:block}.workspace-label{margin:32px 0 29px;border:1px solid var(--line);border-radius:11px;padding:11px 9px;display:flex;align-items:center;gap:8px;font-size:11px;font-weight:600;white-space:nowrap}.workspace-label small{font-size:9px;font-weight:400;color:var(--muted);margin-top:2px}.workspace-avatar{display:grid;place-items:center;background:#f4f1eb;border-radius:8px;width:29px;height:29px;font-size:16px;color:#686359}.workspace-dot{width:6px;height:6px;background:#80a38a;border-radius:50%;margin-left:auto}.nav-caption{font-size:9px;font-weight:650;letter-spacing:1.5px;color:#adabb6;margin:0 11px 12px}.main-nav{display:grid;gap:5px}.main-nav a{display:flex;align-items:center;gap:12px;border-radius:9px;padding:12px;font-size:12px;font-weight:550;color:#83818e;transition:background .15s}.main-nav a:hover{background:#f8f7fc}.main-nav a.active{background:var(--violet-light);color:var(--violet)}.main-nav svg{width:18px;height:18px}.nav-count{margin-left:auto;background:#ded7ff;border-radius:6px;padding:1px 6px;font-size:10px}.nav-count:empty{display:none}.settings-caption{margin-top:32px}.sidebar-bottom{margin-top:auto;padding-top:30px}.pilot-note{background:linear-gradient(130deg,#faf8ff,#f3f0fd);border:1px solid #eeebfa;border-radius:13px;padding:16px 13px}.pilot-note>span{color:var(--violet);display:block;margin-bottom:11px}.pilot-note strong{font-size:11px}.pilot-note p{font-size:10px;color:#92909f;line-height:1.8;margin-top:7px}.profile{border-top:1px solid var(--line);margin-top:22px;padding-top:17px;display:flex;gap:8px;align-items:center;font-size:10px;font-weight:600}.profile-avatar,.top-avatar{width:31px;height:31px;border-radius:50%;display:grid;place-items:center;background:#e9e6e0;color:#6a655e;font-size:12px}.profile small{color:#aaa6b1;font-weight:400;font-size:8px;margin-top:3px}main{margin-left:224px;min-width:0;width:calc(100% - 224px)}.topbar{height:75px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 34px;background:#ffffff80}.breadcrumbs{font-size:11px;color:#aaa6b1;display:flex;gap:13px;align-items:center}.breadcrumbs strong{color:#666270;font-weight:500}.topbar-right{display:flex;gap:20px;align-items:center}.demo-badge{display:inline-flex;align-items:center;gap:6px;font-size:10px;color:#967449;border:1px solid #ebe2d2;background:#fcf8ef;border-radius:6px;padding:5px 9px}.demo-badge i{width:5px;height:5px;border-radius:50%;background:#c09c69}.page-header{display:flex;justify-content:space-between;gap:18px;align-items:center;margin-bottom:26px}.page-header p{margin-top:7px;font-size:12px;color:var(--muted)}.page-wrap{padding:29px 34px 35px}.header-actions{display:flex;gap:9px;align-items:center}.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid var(--line);background:#fff;padding:9px 13px;border-radius:9px;font-size:11px;font-weight:550;min-height:35px}.button:hover{background:#f9f8fc}.button.primary{background:var(--violet);border-color:var(--violet);color:#fff}.button.primary:hover{background:#5e4fd3}.button.soft{background:var(--violet-light);border-color:var(--violet-light);color:var(--violet)}.button.danger{color:#b85858;background:#fff5f5}.button.wide{width:100%}.button svg{width:15px;height:15px}.icon-button{display:inline-grid;place-items:center;background:transparent;color:#96939f;width:32px;height:32px;border-radius:8px;flex-shrink:0}.icon-button:hover{background:#f4f1fa;color:var(--violet)}.icon-button svg{width:18px;height:18px}.stats-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:25px}.stat-card{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:16px 17px;box-shadow:var(--shadow)}.stat-label{font-size:10px;color:#96929f;display:flex;align-items:center;justify-content:space-between;gap:5px}.stat-label svg{width:15px;height:15px;color:#b5afc5}.stat-bottom{display:flex;gap:10px;align-items:baseline;margin-top:12px}.stat-value{font-size:25px;font-weight:650;letter-spacing:-.8px;line-height:1.1}.stat-note{font-size:9px;color:#92909b}.stat-note.positive{color:var(--green)}
.inbox{height:calc(100dvh - 292px);min-height:530px;border:1px solid var(--line);border-radius:14px;overflow:hidden;display:grid;grid-template-columns:258px minmax(300px,1fr) 254px;background:#fff;box-shadow:var(--shadow)}.conversation-list{border-right:1px solid var(--line);display:flex;flex-direction:column;overflow:hidden}.list-heading{padding:19px 17px 14px;display:flex;align-items:center;justify-content:space-between}.list-heading h2{font-size:13px;letter-spacing:0}.count-label{background:#f3f1f7;color:#9b94ac;font-size:9px;border-radius:5px;padding:2px 6px;margin-left:5px}.list-search{position:relative;margin:0 14px 11px}.list-search>span{position:absolute;left:10px;top:10px;color:#aaa5b4}.list-search svg{width:14px;height:14px}.list-search input{width:100%;background:#f9f8fb;border-color:transparent;font-size:10px;padding:9px 10px 9px 32px;border-radius:8px}.filter-tabs{display:flex;gap:5px;padding:0 13px 14px;border-bottom:1px solid var(--line)}.filter-tab{font-size:9px;padding:5px 8px;background:transparent;color:#9b95a5;border-radius:5px;white-space:nowrap}.filter-tab.active{color:var(--violet);background:var(--violet-light)}.conversation-items{overflow-y:auto;flex:1;padding:7px}.conversation-item{display:flex;width:100%;gap:10px;text-align:left;padding:14px 9px;background:transparent;border-radius:9px;position:relative;margin-bottom:3px}.conversation-item:hover{background:#faf9fd}.conversation-item.active{background:#f3f0fe}.customer-avatar{width:35px;height:35px;flex-shrink:0;border-radius:11px;background:#f1eee9;display:grid;place-items:center;font-size:11px;color:#8f8379;font-weight:600}.avatar-1{background:#eaf0ec;color:#6f8b76}.avatar-2{background:#efedf6;color:#8b80a8}.avatar-3{background:#f7eee7;color:#ad8868}.avatar-4{background:#e9eff4;color:#7793a4}.conversation-meta{min-width:0;flex:1}.conversation-topline{display:flex;justify-content:space-between;align-items:center;gap:5px}.customer-name{font-size:10px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.conversation-time{font-size:8px;color:#aca7b6;white-space:nowrap}.conversation-product{font-size:8px;color:#a29aaa;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:3px}.conversation-snippet{font-size:9px;color:#9c95a5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:5px}.conversation-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:7px}.mini-mode{font-size:8px;color:#8a7db5;display:flex;gap:4px;align-items:center}.mini-mode.manual{color:#b18b61}.mini-mode svg{width:11px;height:11px}.unread-dot{width:6px;height:6px;border-radius:50%;background:var(--violet)}.chat-pane{display:flex;flex-direction:column;min-width:0;min-height:0;background:#fefdfb;position:relative}.chat-header{min-height:76px;background:#fff;border-bottom:1px solid var(--line);padding:16px 20px;display:flex;align-items:center;justify-content:space-between;gap:8px}.chat-person{display:flex;align-items:center;gap:10px;min-width:0}.chat-person h2{font-size:13px;letter-spacing:0}.chat-person p{font-size:9px;color:#a09ba8;margin-top:4px;display:flex;gap:5px;align-items:center}.chat-person p i{width:4px;height:4px;border-radius:50%;background:#75a688}.chat-actions{display:flex;gap:4px;align-items:center}.mobile-back,.mobile-context{display:none}.chat-control{display:flex;align-items:center;justify-content:space-between;padding:10px 17px;background:#fff;border-bottom:1px solid var(--line);gap:6px}.mode-select{border:0;background:#f4f1ff;padding:5px 9px;font-size:9px;color:#8170bc;width:auto;border-radius:6px}.chat-control .button{font-size:9px;min-height:28px;padding:5px 8px}.mode-description{font-size:8px;color:#a5a0ad;flex:1;text-align:right}.messages{flex:1;overflow-y:auto;padding:21px 21px 15px;min-height:140px;scroll-behavior:smooth}.date-divider{text-align:center;color:#b6b0bc;font-size:8px;margin:0 0 19px}.message-row{display:flex;flex-direction:column;align-items:flex-start;margin-bottom:18px;max-width:100%}.message-row.outgoing{align-items:flex-end}.message-author{font-size:8px;color:#a89fb3;margin-bottom:5px;display:flex;gap:4px;align-items:center}.message-author svg{width:11px;height:11px;color:var(--violet)}.message-bubble{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;line-height:1.65;max-width:87%;padding:11px 13px;border-radius:12px 12px 12px 3px;background:#fff;border:1px solid var(--line);box-shadow:0 2px 3px #322a4802}.outgoing .message-bubble{background:#eee9fd;border-color:#e9e3fb;border-radius:12px 12px 3px 12px;color:#514568}.outgoing.operator .message-bubble{background:#eaf2ef;border-color:#e1ede7;color:#416357}.message-time{font-size:8px;color:#b8b0bd;margin-top:5px;display:flex;gap:4px;align-items:center}.message-system{font-size:9px;color:#a19aa9;text-align:center;margin:15px 10px;padding:6px 10px;border-radius:8px;background:#f6f3f8}.composer-area{background:#fff;padding:13px 17px 11px;border-top:1px solid var(--line)}.composer{border:1px solid #e8e4ef;border-radius:11px;overflow:hidden;background:#fff}.composer textarea{display:block;width:100%;border:0;padding:11px 12px 6px;resize:none;font-size:11px;min-height:54px;max-height:130px;outline-offset:-3px}.composer-bottom{display:flex;align-items:center;justify-content:space-between;padding:5px 10px 8px;gap:9px}.composer-hint{font-size:8px;color:#ada5b5}.send-button{background:var(--violet);color:white;border-radius:7px;padding:7px 10px;font-size:9px;display:flex;gap:6px;align-items:center}.send-button svg{width:12px;height:12px}.composer-note{text-align:center;font-size:8px;color:#b5acbe;margin-top:8px}.simulator{margin-top:10px;border-top:1px dashed var(--line);padding-top:8px}.simulator summary{cursor:pointer;font-size:9px;color:#a29aaa;display:flex;align-items:center;gap:5px}.simulator summary svg{width:12px;height:12px}.simulator form{display:flex;gap:6px;margin-top:8px}.simulator input{min-width:0;flex:1;font-size:10px;padding:7px 9px}.simulator p{font-size:8px;color:#aaa2b4;margin-top:5px}.ai-draft{margin:0 17px 10px;background:#faf8ff;border:1px solid #e9e1ff;border-radius:9px;padding:11px;font-size:10px;max-height:200px;overflow-y:auto}.draft-heading{display:flex;gap:5px;align-items:center;font-size:10px;color:var(--violet);font-weight:600;margin-bottom:7px}.draft-heading svg{width:13px;height:13px}.draft-body{white-space:pre-wrap;line-height:1.6}.draft-reason{font-size:9px;color:#9e94ad;margin:8px 0}.draft-actions{display:flex;gap:7px}.context-pane{border-left:1px solid var(--line);background:#fff;padding:19px 16px;overflow-y:auto}.context-caption{font-size:9px;letter-spacing:.6px;color:#aaa3b3;display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.context-product-image{background:#f7f5f1;border-radius:11px;width:100%;height:145px;object-fit:contain;margin-bottom:14px}.context-product h3{font-size:12px}.context-product .product-category{font-size:9px;color:#a29aaa;margin-top:4px}.context-price{font-size:18px;font-weight:650;letter-spacing:-.4px;margin:11px 0 15px}.context-section{padding:17px 0;border-top:1px solid var(--line)}.context-section h4{font-size:9px;font-weight:500;color:#a69eaf;margin:0 0 10px}.size-pills{display:flex;flex-wrap:wrap;gap:6px}.size-pill{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:37px;min-height:43px;border:1px solid var(--line);border-radius:7px;background:#fff;font-size:11px;font-weight:600}.size-pill small{font-size:8px;font-weight:400;color:#a79eaf}.size-pill.selected{color:var(--violet);background:#f5f1ff;border-color:#cbbdf4}.size-pill.selected small{color:#9f8cc2}.size-pill.sold-out{color:#c6c0cd;background:#faf9fc}.size-pill.sold-out small{color:#c4bdcb}.stock-caption{display:flex;gap:5px;align-items:center;margin-top:9px;color:#85a28c;font-size:8px}.stock-caption i{width:4px;height:4px;border-radius:50%;background:#83a38c}.measurements{display:grid;gap:8px}.measurement-row{display:flex;justify-content:space-between;font-size:9px;color:#9c94a6}.measurement-row strong{font-weight:500;color:#777080}.context-link{display:flex;align-items:center;justify-content:center;gap:5px;font-size:9px;color:#9a91ac;padding:11px 0}.context-link svg{width:11px;height:11px}.context-footnote{font-size:8px;color:#b0a8b9;line-height:1.6;text-align:center;margin-top:8px}.selected-summary{border-radius:8px;background:#f8f6fb;padding:9px;font-size:9px;color:#93899f;margin:10px 0}.empty-state{text-align:center;padding:35px 16px;color:#aaa2b4;font-size:12px}.empty-state svg{margin:0 auto 12px;color:#d0c7de}.empty-state strong{display:block;color:#736b7d;margin-bottom:5px}.loading-screen{min-height:60vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;color:#a097ae;font-size:12px}.spinner{width:25px;height:25px;border:2px solid #e7dff7;border-top-color:var(--violet);border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.loading-inline{font-size:11px;color:#a294b0;padding:30px;text-align:center}.catalog-toolbar{display:flex;gap:12px;align-items:center;margin-bottom:23px}.catalog-search{position:relative;flex:1;max-width:340px}.catalog-search input{width:100%;font-size:12px;padding-left:36px}.catalog-search>span{position:absolute;top:12px;left:12px;color:#a399af}.catalog-search svg{width:15px;height:15px}.catalog-toolbar select{font-size:11px}.catalog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.product-card{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden;box-shadow:var(--shadow)}.product-card-image{height:220px;background:#f2f0eb;display:block;width:100%;object-fit:contain;transition:transform .2s}.product-image-wrap{overflow:hidden;position:relative}.product-card:hover .product-card-image{transform:scale(1.035)}.product-card-tag{position:absolute;left:13px;top:13px;font-size:8px;background:#ffffffd6;color:#8b8177;border-radius:5px;padding:4px 7px}.product-card-content{padding:17px}.product-card-name{font-size:14px;font-weight:600;background:none;padding:0;text-align:left}.product-card-sub{font-size:10px;color:#9d94a7;margin:4px 0 12px}.product-card-price{font-size:19px;letter-spacing:-.5px;font-weight:650;margin-bottom:15px}.product-card .size-pills{gap:7px}.product-card .size-pill{flex:1;min-width:35px}.product-card-footer{display:flex;justify-content:space-between;align-items:center;margin-top:14px;padding-top:12px;border-top:1px solid var(--line);font-size:9px;color:#a297ac}.product-card-footer button{background:transparent;color:var(--violet);font-size:9px;padding:3px}.section-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:24px;box-shadow:var(--shadow)}.section-card>h2{margin-bottom:9px}.section-card>p{font-size:11px;color:#9a90a5;line-height:1.7}.orders-list{display:grid;gap:12px}.order-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px 21px;display:flex;justify-content:space-between;gap:15px;align-items:center}.order-info{display:flex;gap:15px;align-items:center;min-width:0}.order-image{width:62px;height:69px;border-radius:8px;object-fit:contain;background:#f4f1eb;flex-shrink:0}.order-id{font-size:9px;color:#aaa1b3;margin-bottom:4px}.order-title{font-size:12px;font-weight:600}.order-description{font-size:10px;color:#9f94a9;margin-top:5px}.order-price{font-size:14px;font-weight:600;margin-right:12px;white-space:nowrap}.order-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap;justify-content:flex-end;max-width:340px}.status-chip{display:inline-flex;align-items:center;gap:5px;border-radius:5px;background:#f2eefb;color:#9281b3;font-size:9px;padding:5px 8px;white-space:nowrap}.status-chip.completed,.status-chip.delivered{background:#edf5ef;color:#70967b}.status-chip.cancelled,.status-chip.returned{background:#f9eeed;color:#b18a85}.order-actions select{font-size:10px;padding:7px 9px;max-width:158px}.settings-grid{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:20px;align-items:start}.field{display:flex;flex-direction:column;gap:7px;margin-bottom:19px;font-size:11px;color:#8e839b}.field strong{font-weight:550;color:#6e637b}.field small{font-size:9px;color:#a69aae;line-height:1.6}.field textarea{font-size:12px;min-height:290px}.field input,.field select{font-size:12px}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}.settings-divider{border:0;border-top:1px solid var(--line);margin:22px 0}.integration-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 0;border-bottom:1px solid var(--line)}.integration-name{display:flex;align-items:center;gap:10px;font-size:11px}.integration-logo{width:30px;height:30px;border-radius:8px;display:grid;place-items:center;background:#f4f1f8;font-weight:650;color:#9c88b9}.integration-row:last-child{border:0}.integration-row small{font-size:9px;color:#a89bb4;margin-top:3px}.integration-label{font-size:8px;color:#a698b4;background:#f7f4fa;padding:4px 7px;border-radius:5px}.settings-note{margin-top:16px;padding:13px;border-radius:8px;background:#faf7ef;color:#ae9570;font-size:10px;line-height:1.7}.preview-panel{margin-top:20px;white-space:pre-wrap;overflow-wrap:anywhere;background:#faf8fc;border:1px solid var(--line);border-radius:9px;padding:15px;font-size:11px;line-height:1.7;max-height:350px;overflow-y:auto}.economics-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(260px,.7fr);gap:20px}.bill-row{display:flex;justify-content:space-between;gap:20px;padding:17px 0;border-bottom:1px solid var(--line);font-size:12px}.bill-row span{color:#968a9f}.bill-row strong{font-weight:550}.bill-row.total{font-size:18px;border:0;padding-top:22px}.bill-row.total span{color:#595062}.usage-bars{display:grid;gap:21px;margin-top:23px}.usage-item .usage-top{display:flex;justify-content:space-between;font-size:10px;color:#9d90a7;margin-bottom:8px}.usage-bar{height:7px;border-radius:4px;background:#f2edf8;overflow:hidden}.usage-bar>i{height:100%;display:block;background:#a08ae2;border-radius:4px}.policy-note{font-size:10px;color:#a094ac;line-height:1.75;margin-top:15px}.detail-dialog{border:1px solid var(--line);border-radius:18px;padding:0;width:min(560px,calc(100vw - 30px));max-height:90dvh;box-shadow:0 20px 100px #30234326}.detail-dialog::backdrop{background:#2c223b4d;backdrop-filter:blur(3px)}.dialog-header{display:flex;align-items:center;justify-content:space-between;padding:20px 23px;border-bottom:1px solid var(--line)}.dialog-header h2{font-size:16px}#dialog-body{padding:22px;overflow-y:auto;max-height:calc(90dvh - 75px)}#dialog-body .context-product-image{height:240px}#dialog-body .context-product h3{font-size:17px}#dialog-body .context-product .product-category{font-size:12px}#dialog-body .size-pill{min-width:55px;min-height:53px}#dialog-body .measurement-row{font-size:12px}#dialog-body .context-section h4{font-size:11px}.toast-stack{position:fixed;right:24px;bottom:25px;display:grid;gap:8px;z-index:60;max-width:380px}.toast{background:#352d45;color:#fff;padding:13px 17px;border-radius:11px;font-size:11px;box-shadow:0 5px 25px #352d4530}.toast.error{background:#8d555b}.error-banner,.offline-banner{background:#fbf0eb;border-bottom:1px solid #efded5;padding:12px 25px;color:#aa7766;font-size:11px}.error-banner{margin:15px 34px 0;border-radius:9px;border:1px solid #efded5}.offline-banner{position:sticky;top:0;z-index:80;text-align:center;background:#fff4d9;color:#9c7c37}.bottom-nav{display:none}.skip-link{position:fixed;top:-80px;left:15px;z-index:100;background:#fff;padding:10px;border-radius:7px}.skip-link:focus{top:10px}.demo-strip{font-size:9px;color:#b1a7ba;display:flex;align-items:center;gap:5px;margin-top:12px}.demo-strip svg{width:12px;height:12px}.result-callout{background:#f4f0fc;border-radius:9px;padding:13px;font-size:11px;color:#8d7d9f;margin-bottom:16px;line-height:1.7}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:20px}

@media(min-width:1500px){.page-wrap{padding-left:45px;padding-right:45px}.inbox{grid-template-columns:285px minmax(340px,1fr) 280px}.context-pane{padding-left:21px;padding-right:21px}.message-bubble{font-size:12px}.customer-name{font-size:12px}.conversation-snippet{font-size:10px}.chat-person h2{font-size:14px}.context-product h3{font-size:13px}}
@media(max-width:1270px){.sidebar{width:195px;padding-left:13px;padding-right:13px}main{margin-left:195px;width:calc(100% - 195px)}.page-wrap{padding:24px}.topbar{padding:0 24px}.inbox{grid-template-columns:230px minmax(290px,1fr)}.context-pane{display:none}.mobile-context{display:inline-grid}.stats-row{gap:10px}.stat-card{padding:15px}.catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-grid{grid-template-columns:minmax(0,1fr) 260px}.order-card{padding:16px}.chat-header{padding-left:16px;padding-right:16px}}
@media(max-width:1000px){.sidebar{width:76px;padding:25px 12px}.brand{padding:0;justify-content:center}.brand>span:last-child,.workspace-label,.nav-caption,.main-nav a>span:not(:first-child),.sidebar-bottom{display:none}.main-nav{margin-top:30px}.main-nav a{justify-content:center;padding:13px}.main-nav a svg{width:20px;height:20px}main{margin-left:76px;width:calc(100% - 76px)}.settings-grid{grid-template-columns:1fr}.economics-grid{grid-template-columns:1fr}.settings-side{display:grid;grid-template-columns:1fr 1fr;gap:15px;align-items:start}.settings-note{margin:0}.stat-note{font-size:8px}.stat-value{font-size:23px}.order-card{flex-wrap:wrap}.order-actions{max-width:100%;justify-content:flex-start;margin-left:77px}}
@media(max-width:700px){body{font-size:13px}.sidebar{display:none}main{margin-left:0;width:100%;padding-bottom:calc(68px + env(safe-area-inset-bottom))}.topbar{height:58px;padding:0 18px}.breadcrumbs{font-size:10px;gap:7px}.breadcrumbs>strong{display:none}.topbar-right{gap:10px}.top-avatar{width:28px;height:28px;font-size:10px}.demo-badge{font-size:8px;padding:4px 6px}.page-wrap{padding:22px 17px 25px}.page-header{margin-bottom:20px;align-items:flex-start}.page-header h1{font-size:26px}.page-header p{font-size:10px;max-width:245px;line-height:1.7;margin-top:5px}.page-header .button{font-size:9px;padding:7px 10px;min-height:32px}.stats-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:19px}.stat-card{padding:12px 13px;border-radius:10px}.stat-label{font-size:9px}.stat-value{font-size:22px}.stat-bottom{margin-top:9px;gap:8px}.stat-note{font-size:8px}.inbox{height:calc(100dvh - 345px);min-height:350px;display:block;border-radius:12px}.conversation-list{height:100%;border:0}.conversation-item{padding:14px 10px;gap:12px}.customer-avatar{width:41px;height:41px;font-size:12px}.customer-name{font-size:12px}.conversation-time{font-size:9px}.conversation-product{font-size:9px;margin-top:4px}.conversation-snippet{font-size:10px}.mini-mode{font-size:9px}.conversation-bottom{margin-top:8px}.list-heading{padding:16px 17px 12px}.list-heading h2{font-size:14px}.list-search{margin:0 14px 12px}.list-search input{font-size:11px;padding-top:10px;padding-bottom:10px}.filter-tabs{gap:8px}.filter-tab{font-size:10px;padding:6px 9px}.chat-pane{display:none}.inbox.mobile-thread{position:fixed;inset:0 0 calc(65px + env(safe-area-inset-bottom)) 0;z-index:25;border-radius:0;border:0;min-height:0;height:auto}.inbox.mobile-thread .conversation-list{display:none}.inbox.mobile-thread .chat-pane{display:flex;height:100%}.chat-header{min-height:70px;padding:12px}.chat-person{gap:8px}.chat-person h2{font-size:13px}.chat-person p{font-size:9px}.chat-header .customer-avatar{width:34px;height:34px;border-radius:9px}.mobile-back{display:inline-grid;width:24px}.chat-actions .button{font-size:8px;padding:7px 9px}.chat-control{padding:9px 14px}.mode-select{font-size:10px;padding:7px 9px}.mode-description{display:none}.chat-control .button{font-size:10px}.messages{padding:20px 17px}.message-bubble{font-size:13px;max-width:89%;padding:12px 14px}.message-author,.message-time{font-size:9px}.date-divider{font-size:9px}.message-system{font-size:10px}.composer-area{padding:11px 12px 9px}.composer textarea{font-size:13px;min-height:53px}.composer-hint{font-size:8px}.send-button{font-size:10px;padding:8px 11px}.composer-note{display:none}.simulator summary{font-size:9px}.simulator input{font-size:12px}.simulator .button{font-size:10px}.bottom-nav{display:flex;justify-content:space-around;position:fixed;bottom:0;left:0;right:0;padding:9px 6px calc(8px + env(safe-area-inset-bottom));background:#ffffffed;backdrop-filter:blur(15px);border-top:1px solid var(--line);z-index:30;height:calc(65px + env(safe-area-inset-bottom))}.bottom-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:8px;color:#a49baa;min-width:52px;border-radius:8px}.bottom-nav a svg{width:20px;height:20px}.bottom-nav a.active{color:var(--violet)}.catalog-toolbar{flex-wrap:wrap;gap:9px}.catalog-search{max-width:100%;flex-basis:100%}.catalog-toolbar select{font-size:10px;flex:1;padding:9px}.catalog-grid{gap:11px}.product-card{border-radius:12px}.product-card-image{height:165px}.product-card-content{padding:12px 10px}.product-card-name{font-size:11px;line-height:1.5}.product-card-sub{font-size:9px;margin:4px 0 9px}.product-card-price{font-size:16px;margin-bottom:11px}.product-card .size-pills{gap:3px}.product-card .size-pill{min-width:23px;min-height:36px;font-size:9px;border-radius:5px}.product-card .size-pill small{font-size:7px}.product-card-footer{font-size:8px;display:block}.product-card-footer button{margin-top:6px;font-size:9px;padding:3px 0}.product-card-tag{font-size:7px;top:9px;left:9px;padding:3px 5px}.section-card{padding:19px 17px;border-radius:12px}.section-card h2{font-size:17px}.order-card{padding:14px;gap:11px}.order-info{gap:11px;flex:1}.order-image{width:47px;height:58px}.order-title{font-size:11px}.order-description{font-size:9px}.order-price{font-size:12px;margin-right:0}.order-actions{margin-left:0;width:100%;border-top:1px solid var(--line);padding-top:12px;gap:6px}.order-actions select{margin-left:auto;font-size:10px}.order-actions .button{font-size:9px;min-height:30px}.settings-side{display:grid;grid-template-columns:1fr}.field-row{gap:10px}.field input,.field select{font-size:11px}.field textarea{font-size:12px}.detail-dialog{width:100%;max-width:100%;margin:auto 0 0;border-radius:20px 20px 0 0;max-height:91dvh;border:0}.dialog-header{padding:17px 20px}.toast-stack{left:15px;right:15px;bottom:calc(80px + env(safe-area-inset-bottom));max-width:none}.toast{font-size:12px}.error-banner{margin:12px 17px 0;font-size:10px}.demo-strip{font-size:8px}.ai-draft{font-size:11px;max-height:180px}.draft-reason{font-size:9px}.integration-row{padding:12px 0}.header-actions .button span.label-wide{display:none}.offline-banner{font-size:10px;padding:9px 12px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
[hidden]{display:none!important}

.toggle-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 0;border-bottom:1px solid var(--line);font-size:11px;color:#8e839b}.toggle-row input{width:18px;height:18px;accent-color:var(--violet);flex-shrink:0}

.field{min-width:0}.field input,.field select,.field textarea{width:100%;min-width:0}.field-row{grid-template-columns:repeat(2,minmax(0,1fr))}.catalog-toolbar select{min-width:0}.order-title,.order-description{overflow-wrap:anywhere}.settings-grid>*{min-width:0}

/* Readable text hierarchy and explicit line separation. */
.conversation-product,.conversation-snippet{display:block}
.conversation-product{font-size:11px;line-height:1.45;margin-top:5px}
.conversation-snippet{font-size:11px;line-height:1.5;margin-top:4px}
.customer-name{font-size:12px}
.conversation-time,.mini-mode{font-size:11px}
.conversation-bottom{margin-top:9px}
.list-search input{font-size:12px}
.filter-tab{font-size:11px;padding:5px 6px}
.filter-tabs{gap:3px}
.count-label,.nav-count{font-size:11px}
.nav-caption{font-size:10px;letter-spacing:1.1px}
.workspace-label{font-size:12px;white-space:normal}
.workspace-label>span:nth-child(2){min-width:0}
.workspace-label small,.profile small,.pilot-note p{font-size:11px;line-height:1.6}
.profile,.pilot-note strong{font-size:12px}
.demo-badge{font-size:11px}
.stat-label,.stat-note{font-size:11px}
.stat-bottom{align-items:flex-start;flex-wrap:wrap;gap:6px 10px}
.stat-note{line-height:1.5}
.chat-person h2{font-size:14px}
.chat-person p,.mode-select,.mode-description{font-size:11px}
.chat-control .button{font-size:11px}
.message-bubble{font-size:14px;line-height:1.65}
.message-author,.message-time,.date-divider,.message-system{font-size:11px}
.composer textarea{font-size:14px}
.composer-hint,.composer-note{font-size:11px}
.composer-hint{max-width:75%;line-height:1.4}
.send-button{font-size:12px}
.simulator summary,.simulator p{font-size:11px}
.simulator input{font-size:13px}
.context-caption,.context-product .product-category,.context-section h4,.stock-caption,.measurement-row,.context-link,.context-footnote,.selected-summary{font-size:11px}
.context-product h3{font-size:14px}
.context-section h4{line-height:1.5}
.context-section{padding:15px 0}
.context-footnote{line-height:1.7}
.size-pill{font-size:13px;padding:5px 4px}
.size-pill small{font-size:11px}
.stock-caption{line-height:1.5}
.stock-caption i{flex-shrink:0}
.product-card-sub,.product-card-footer,.product-card-footer button,.product-card-tag{font-size:11px}
.product-card-footer{display:flex;flex-wrap:wrap;gap:7px 12px}
.product-card-footer>span{display:block}
.product-card-footer button{display:block;padding:3px 0;text-align:left}
.order-id,.order-description,.status-chip,.order-actions select{font-size:11px}
.order-title{font-size:14px}
.ai-draft,.draft-body{font-size:12px}
.draft-heading,.draft-reason{font-size:11px}
.field,.field small,.section-card>p,.policy-note,.settings-note,.integration-row small,.integration-label,.usage-item .usage-top,.demo-strip{font-size:11px}
.integration-name{font-size:12px}
.field small,.policy-note,.demo-strip{line-height:1.7}
@media(min-width:701px){.inbox{height:calc(100dvh - 360px);min-height:540px}.context-product-image{height:130px}}
@media(max-width:1270px){.mode-description{display:none}}
@media(max-width:700px){
.breadcrumbs{font-size:11px}.demo-badge{font-size:10px}
.page-header p,.button,.page-header .button{font-size:12px}
.stat-label,.stat-note{font-size:11px}.stat-note{width:100%}.stat-bottom{gap:5px}
.conversation-product,.conversation-snippet,.mini-mode,.conversation-time{font-size:12px}
.customer-name{font-size:13px}.conversation-item{padding:14px 9px}
.list-search input{font-size:14px}.filter-tab{font-size:12px;padding:6px 8px}
.chat-person h2{font-size:14px}.chat-person p{font-size:11px}
.chat-header .button{font-size:11px}.chat-control .button,.mode-select{font-size:12px}
.message-bubble{font-size:15px;max-width:90%;line-height:1.6}
.message-author,.message-time,.date-divider,.message-system{font-size:12px}
.composer textarea{font-size:16px}.send-button{font-size:12px}
.composer-hint{font-size:11px}.simulator summary,.simulator p{font-size:12px}
.simulator input{font-size:16px}.simulator .button{font-size:12px}
.catalog-search input{font-size:16px}.catalog-toolbar select{font-size:12px}
.product-card-name{font-size:13px}.product-card-sub{font-size:12px;line-height:1.6}
.product-card-price{font-size:18px}.product-card-tag{font-size:10px}
.product-card .size-pills{gap:3px}
.product-card .size-pill{font-size:12px;min-width:0;padding:4px 2px;min-height:43px}
.product-card .size-pill small{font-size:10px}
.product-card-footer{flex-direction:column;align-items:flex-start;gap:7px;font-size:12px}
.product-card-footer button{font-size:12px;margin-top:0;line-height:1.5}
.product-card-content{padding:13px 10px}
.section-card>p,.field,.field small,.policy-note,.settings-note,.integration-row small,.integration-label,.usage-item .usage-top{font-size:12px}
.field input,.field select,.field textarea{font-size:16px}
.order-title{font-size:13px}.order-id,.order-description,.status-chip,.order-actions select{font-size:12px}
.order-actions .button{font-size:12px}.order-actions select{max-width:155px}
.order-price{font-size:14px}.toggle-row{font-size:12px}
.demo-strip{font-size:11px;align-items:flex-start}
.context-product .product-category,.context-section h4,.stock-caption,.measurement-row,.context-link,.context-footnote,.selected-summary{font-size:12px}
.bottom-nav a{font-size:10px}.ai-draft,.draft-body{font-size:13px}.draft-heading,.draft-reason{font-size:12px}
}
@media(max-width:359px){.topbar{padding-left:13px;padding-right:13px}.topbar-right{gap:7px}.breadcrumbs{font-size:10px;gap:5px}.demo-badge{font-size:9px}.top-avatar{display:none}.product-card-sub{font-size:11px}.filter-tabs{gap:2px}.filter-tab{font-size:11px;padding:6px}.chat-actions{gap:1px}.chat-header{padding-left:8px;padding-right:8px}.chat-person{gap:5px}.chat-header .button{padding:7px;font-size:10px}.chat-person h2{font-size:12px}.chat-person p{font-size:10px}.chat-header .customer-avatar{width:29px;height:29px;font-size:10px}}

.auth-mode .sidebar,.auth-mode .topbar,.auth-mode .bottom-nav{display:none}
.auth-mode main{margin:0;width:100%;padding:0}
.auth-page{min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:25px;background:radial-gradient(ellipse at 50% 0,#efebfd,transparent 55%),var(--bg)}
.auth-card{width:100%;max-width:440px;padding:37px;background:white;border:1px solid var(--line);border-radius:22px;box-shadow:0 20px 70px #3c2d5308}
.auth-mark{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:var(--violet);color:white;font-size:36px;font-weight:750;margin-bottom:25px}
.auth-eyebrow{font-size:10px;letter-spacing:1.4px;color:#a198b0;display:block;margin-bottom:10px}
.auth-card h1{font-size:28px;line-height:1.25}
.auth-card>p{font-size:13px;line-height:1.8;color:#9a90a5;margin:13px 0 23px}
.auth-card .field{margin:25px 0 18px}
.auth-card input{font-size:16px;padding:13px}
.auth-card .button{font-size:13px;min-height:43px}
.auth-card .auth-error{font-size:12px;color:#b16d70;margin:15px 0 0}
.auth-card .auth-error:empty{display:none}
.auth-card .auth-footnote{font-size:11px;margin:22px 0 0;text-align:center}
.admin-shell .brand{font-size:20px;letter-spacing:-.6px}.admin-shell .brand-mark{font-size:25px;padding:0;background:#373c50;transform:none}
.admin-shell .workspace-label{font-size:11px}.admin-shell .sidebar-bottom{margin-top:auto}
.admin-shell .brand-sub{font-size:10px}.admin-shell .topbar{background:#fff}
.admin-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px;margin-bottom:24px}
.admin-overview-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:20px}
.admin-client{display:flex;align-items:center;gap:13px;margin:22px 0 15px}
.admin-client-avatar{display:grid;place-items:center;width:46px;height:46px;border-radius:13px;background:#f0ecfb;color:#8d78bd;font-weight:650;font-size:20px}
.admin-client h3{font-size:16px}.admin-client small{font-size:12px;color:#9c90a7;margin-top:5px}
.admin-identifier{font-size:11px;color:#a195ad;overflow-wrap:anywhere}
.admin-section-note{font-size:12px;color:#9c90a7;line-height:1.8;margin:12px 0}
.audit-list{display:grid;gap:10px}.audit-row{display:grid;grid-template-columns:150px minmax(0,1fr);gap:15px;padding:15px;background:#fff;border:1px solid var(--line);border-radius:10px}
.audit-row time{font-size:11px;color:#a195ab}.audit-row strong{font-size:12px}.audit-row p{font-size:11px;color:#a499ad;overflow-wrap:anywhere;margin-top:4px}
.admin-nav a{font-size:12px}.admin-form{max-width:800px}
@media(max-width:700px){.auth-page{padding:18px}.auth-card{padding:28px 22px}.admin-metrics{grid-template-columns:1fr;gap:10px}.admin-overview-grid{grid-template-columns:1fr}.audit-row{grid-template-columns:1fr;gap:6px}.admin-shell .breadcrumbs strong{display:inline}.admin-shell .breadcrumbs{font-size:12px}.admin-shell .topbar-right{gap:8px}.admin-shell .topbar .button{font-size:11px;padding:7px 9px}.admin-shell .topbar{padding:0 15px}.admin-shell .bottom-nav a{min-width:60px}}

.auth-checking #admin-content{visibility:hidden}
@media(max-width:700px){.admin-shell .topbar .demo-badge{display:none}}

/* Shared visual identity. */
:root{--bg:#f7fafc;--ink:#24374b;--muted:#8192a3;--line:#e5edf4;--violet:#2878cf;--violet-light:#eaf4ff;--green:#4d8d74;--sparky-cyan:#58d4ec;--sparky-lime:#c4ed5b}
body{background:var(--bg)}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline-color:#9bd6f4}
.brand,.admin-shell .brand{gap:10px;padding-left:2px;font-size:24px;letter-spacing:-.7px;align-items:center}
.brand-copy{min-width:0;display:block}.brand-title{display:block;font-weight:750;color:#284263}
.brand-sub,.admin-shell .brand-sub{font-size:10px;color:#7c90a5;letter-spacing:.2px;margin-top:5px;line-height:1.4}
.brand-byline{display:block;font-size:9px;font-weight:450;letter-spacing:0;color:#9aa9b6;margin-top:4px}
.brand-portrait{width:46px;height:46px;overflow:hidden;display:block;flex-shrink:0;border-radius:15px;background:#f9ebda;border:1px solid #e7ebdf;box-shadow:0 3px 9px #234d8310}
.brand-portrait img,.assistant-mascot img,.mobile-brand-portrait img{width:100%;height:100%;object-fit:cover;object-position:50%20%;transform:scale(1.9);transform-origin:50%30%;display:block}
.workspace-label{margin-top:26px}.workspace-avatar{background:#edf4f8;color:#678096}
.workspace-dot{background:#acd36a;box-shadow:0 0 0 3px #f2f8e8}
.main-nav a{color:#8090a1}.main-nav a:hover{background:#f1f7fc}
.main-nav a.active{color:#2776c6;background:#eaf4ff}.nav-count{background:#d7eaff;color:#4483bf}
.nav-caption{color:#96a6b7}.breadcrumbs{color:#94a3b2}.breadcrumbs strong{color:#687f94}
.button.primary:hover{background:#2067b5}.button:hover{background:#f3f8fc}
.icon-button:hover{background:#edf5fc}.button.soft{color:#3285c8}
.pilot-note{background:linear-gradient(135deg,#f4fbff,#eef7fb);border-color:#dfedf7}
.assistant-card{padding:14px 12px}.assistant-card-header{display:flex;align-items:center;gap:9px}
.assistant-mascot{display:block;width:39px;height:39px;flex-shrink:0;overflow:hidden;border-radius:13px;background:#faecda}
.assistant-card strong{color:#416787;font-size:12px;line-height:1.5}.assistant-status{display:block;font-size:10px;font-weight:400;color:#86a1b5;margin-top:2px}
.assistant-card p{font-size:11px;color:#91a3b3;margin-top:11px;line-height:1.8}
.profile-avatar,.top-avatar{background:#ecf2f5;color:#7e929f}
.stat-label,.stat-note,.page-header p{color:#8d9dad}.stat-label svg{color:#a6bdd0}
.conversation-item.active{background:#edf6ff}.conversation-item:hover{background:#f5faff}
.conversation-product,.conversation-snippet{color:#8e9eaf}.conversation-time{color:#a0b0be}
.mini-mode{color:#6f97b5}.mini-mode.manual{color:#ae8c63}
.list-search input{background:#f5f8fc}.filter-tab{color:#8c9eaf}
.mode-select{background:#edf6ff;color:#4d89b7}.mode-description{color:#9aafbf}
.chat-pane{background:#fbfdff}.outgoing .message-bubble{background:#e9f4ff;border-color:#dcecfb;color:#3a6185}
.message-author,.message-time,.date-divider{color:#9aacbd}.message-author svg{color:#5b9bd0}
.message-system{background:#f0f6fa;color:#8da1b2}.composer{border-color:#dfebf3}
.composer-hint,.composer-note,.simulator summary,.simulator p{color:#9aacbb}
.ai-draft{background:#f3faff;border-color:#d8ebfa}.draft-reason{color:#8ba1b5}
.size-pill.selected{color:#267ac6;background:#eff8ff;border-color:#9bcaf0}.size-pill.selected small{color:#6898bd}
.size-pill.sold-out{background:#f7f9fb}.context-caption,.context-section h4,.context-product .product-category,.measurement-row,.context-link,.context-footnote,.selected-summary{color:#8fa3b5}
.measurement-row strong{color:#667e92}.selected-summary{background:#f2f7fb}
.product-card-footer,.product-card-sub{color:#8fa0b0}.product-card-footer button{color:#3184cb}
.status-chip{background:#edf5fe;color:#6a91b8}.field strong{color:#637e95}.field,.field small,.section-card>p,.policy-note{color:#8da2b4}
.settings-note{background:#f4f8eb;color:#8c9e6c}.integration-logo{background:#eaf5ff;color:#71a1cb}
.integration-label{background:#eff7fc;color:#83a1b8}.bill-row span{color:#8da2b4}.bill-row.total span{color:#527490}
.preview-panel{background:#f3f9fd}.toast{background:#264b70}
.auth-page{background:radial-gradient(ellipse at 50% 0,#e7f5fd,transparent 58%),var(--bg)}
.auth-card{box-shadow:0 20px 70px #244f7e08}
.auth-mascot{width:170px;height:150px;overflow:hidden;margin:0 auto 22px;border-radius:23px;background:#f9ebda;border:1px solid #e7f0ef}
.auth-mascot img{display:block;width:100%;height:100%;object-fit:cover;object-position:50%25%}
.auth-eyebrow{color:#5a91bf;font-weight:600;text-align:center;font-size:11px;line-height:1.6;margin-bottom:4px}
.auth-byline{display:block;color:#95aabb;font-size:10px;text-align:center;margin-bottom:21px}
.auth-card h1{text-align:center;font-size:26px}.auth-card>p{color:#8da2b4}
.mobile-brand{display:none}.admin-client-avatar{background:#e9f4ff;color:#709dc7}
.admin-client small,.admin-identifier,.admin-section-note{color:#91a5b6}
@media(max-width:1000px) and (min-width:701px){.brand-copy{display:none}.brand,.admin-shell .brand{padding-left:0}.brand-portrait{width:43px;height:43px}}
@media(max-width:700px){body:not(.admin-shell) .topbar>.breadcrumbs{display:none}.mobile-brand{display:flex;align-items:center;gap:8px;font-size:15px;font-weight:700;letter-spacing:-.4px;color:#315779}.mobile-brand-portrait{display:block;width:28px;height:28px;flex-shrink:0;border-radius:9px;overflow:hidden;background:#faecda}.auth-card{padding-top:24px}.auth-mascot{width:146px;height:126px;margin-bottom:19px;border-radius:19px}.auth-card h1{font-size:25px}.auth-eyebrow{font-size:11px}.admin-shell .breadcrumbs{font-size:11px}.admin-shell .topbar-right{gap:5px}}
@media(max-width:359px){.mobile-brand{gap:6px;font-size:14px}.mobile-brand-portrait{width:25px;height:25px}.admin-shell .breadcrumbs{font-size:10px}}

/* Imported customer snapshots are immutable and keep their data out of the offline shell. */
#tenant-name{font-weight:500}.snapshot-banner{margin:18px 34px 0;padding:13px 17px;border:1px solid #cde4f1;border-radius:11px;background:#edf7fc;color:#3f6b86;display:flex;flex-wrap:wrap;gap:5px 14px;font-size:12px;line-height:1.6}.snapshot-banner strong{font-weight:650}.snapshot-banner span{color:#658398}.snapshot-chat-note{display:flex;gap:9px;align-items:center;color:#4e7894;font-size:12px;line-height:1.5}.snapshot-chat-note svg{flex-shrink:0;width:18px}.snapshot-chat-note strong,.snapshot-chat-note small{display:block}.snapshot-chat-note small{font-size:11px;font-weight:400;color:#7994a8}.snapshot-note{color:#6f8b9f}.snapshot-mode .composer textarea:disabled{background:#f7fafc;color:#8ca1b2;cursor:not-allowed}.snapshot-mode .composer-note{display:block}.snapshot-mode .demo-badge{color:#4e7a92;background:#edf7fc;border-color:#d6eaf4}.snapshot-history-note{font-size:11px;color:#879cad;text-align:center;line-height:1.5;margin-bottom:16px}.catalog-result-count{font-size:12px;color:#7a91a3;margin:-8px 0 16px}.load-more{display:flex;justify-content:center;margin-top:23px}.conversation-items>.button{margin:8px auto;width:calc(100% - 16px)}.product-card-name{overflow-wrap:anywhere}.size-pill{max-width:100%;padding-left:7px;padding-right:7px}.size-pill small{white-space:nowrap}.snapshot-mode .section-card textarea[readonly]{background:#f8fbfd;cursor:default;width:100%;resize:vertical}.snapshot-mode .section-card .field{margin-top:22px}
@media(max-width:700px){.snapshot-banner{margin:13px 17px 0;padding:12px;font-size:12px;gap:4px}.snapshot-chat-note{font-size:12px}.snapshot-chat-note small{font-size:11px}.snapshot-mode .composer-note{font-size:11px;line-height:1.5}.snapshot-mode .composer-hint{font-size:10px}.snapshot-mode .product-card-price{font-size:16px}.snapshot-mode .size-pill small{white-space:normal;line-height:1.25}.snapshot-mode .size-pill{min-width:45px;padding:5px}.snapshot-mode .top-avatar{display:none}}

.snapshot-source-dates{display:flex;flex-wrap:wrap;gap:4px 18px;flex-basis:100%;font-size:11px}.snapshot-source-notice{flex-basis:100%;margin:0;color:#6d8190;font-size:11px;line-height:1.6}.admin-snapshot-note{margin:0 0 22px}.snapshot-mode .admin-form :disabled{cursor:not-allowed}

.auth-mode #runtime-banner{display:none}.snapshot-mode .chat-person h2{overflow-wrap:anywhere}.snapshot-mode .chat-person>div{min-width:0}

.snapshot-details{flex-basis:100%;font-size:12px}.snapshot-details summary{cursor:pointer;color:#527b96;padding:3px 0}.snapshot-details .snapshot-source-notice{margin-top:8px;max-width:960px}.snapshot-details[open]{padding-bottom:3px}

/* Seller workspace: the navigation is a modal drawer, not a permanent column. */
.seller-shell main{margin-left:0;width:100%}
.seller-shell .topbar{height:68px;min-height:68px;padding:0 24px;gap:14px;background:#fff}
.seller-shell .topbar-start{display:flex;align-items:center;gap:18px;min-width:0}
.seller-shell .topbar-right{gap:10px;flex-shrink:0}
.seller-shell .mobile-brand{display:flex;align-items:center;gap:9px;font-size:19px;font-weight:750;color:#284263;text-decoration:none;flex-shrink:0}
.seller-shell .mobile-brand-portrait{display:block;width:48px;height:48px;overflow:hidden;border-radius:11px;background:#f9ebda}
.seller-shell .mobile-brand-portrait img{display:block;width:100%;height:auto;object-fit:contain;transform:none}
.seller-shell .topbar .icon-button{width:40px;height:40px;border:1px solid var(--line);border-radius:11px;color:#4b7292;flex-shrink:0}
.seller-shell .topbar .icon-button:hover{background:#edf5ff;color:#1967be}
.seller-shell .sound-toggle[aria-pressed=true]{background:#f2f5f8;color:#8494a5}
.seller-shell .topbar .demo-badge{cursor:pointer;white-space:nowrap}
.seller-shell #nav-drawer{position:fixed;inset:0 auto 0 0;margin:0;width:min(312px,calc(100vw - 40px));height:100dvh;max-height:100dvh;max-width:none;padding:24px 22px 20px;border:0;border-right:1px solid var(--line);border-radius:0;background:#fff;color:var(--ink);overflow-y:auto;box-shadow:12px 0 50px #16345222}
.seller-shell #nav-drawer:not([open]){display:none}
.seller-shell #nav-drawer[open]{display:flex;flex-direction:column;animation:drawer-in .24s cubic-bezier(.2,.8,.2,1)}
.seller-shell #nav-drawer.closing{animation:drawer-out .18s ease-in forwards}
.seller-shell #nav-drawer::backdrop{background:#12294160;backdrop-filter:blur(2px);animation:drawer-shade .2s ease-out}
.seller-shell #nav-drawer.closing::backdrop{opacity:0;transition:opacity .18s ease-in}
.seller-shell .drawer-close{align-self:flex-end;width:34px;height:34px;margin:-8px -7px 8px 0;flex-shrink:0}
.seller-shell #nav-drawer .brand{display:flex;justify-content:flex-start;gap:12px;padding:0;font-size:25px}
.seller-shell #nav-drawer .brand-copy{display:block}
.seller-shell #nav-drawer .brand-portrait{width:88px;height:88px;border-radius:18px;box-shadow:none}
.seller-shell #nav-drawer .brand-portrait img{width:100%;height:auto;display:block;transform:none;object-fit:contain}
.seller-shell #nav-drawer .workspace-label{display:flex;margin-top:24px}
.seller-shell #nav-drawer .nav-caption{display:block}
.seller-shell #nav-drawer .main-nav{margin-top:0}
.seller-shell #nav-drawer .main-nav a{justify-content:flex-start;padding:12px;gap:13px;font-size:13px}
.seller-shell #nav-drawer .main-nav a>span{display:block}
.seller-shell #nav-drawer .sidebar-bottom{display:block;padding-top:24px;margin-top:auto}
.seller-shell #nav-drawer .profile{margin-top:20px}
.seller-shell.drawer-open{overflow:hidden}
@keyframes drawer-in{from{transform:translateX(-102%)}to{transform:translateX(0)}}
@keyframes drawer-out{to{transform:translateX(-102%)}}
@keyframes drawer-shade{from{background:#12294100}to{background:#12294160}}
.seller-shell.chats-view:not(.auth-mode) main{height:100dvh;display:flex;flex-direction:column;overflow:hidden;padding-bottom:0}
.seller-shell.chats-view #page-content{flex:1;min-height:0;overflow:hidden}
.seller-shell .chats-page{height:100%;min-height:0;padding:16px 24px 20px;display:flex;flex-direction:column}
.seller-shell .chats-page .inbox{flex:1;min-height:0;height:auto;grid-template-columns:var(--inbox-product,340px) 6px var(--inbox-dialogs,320px) 6px minmax(0,1fr)}
.seller-shell .context-pane{display:block;padding:22px;min-width:0}
.seller-shell .context-product-image{height:175px;object-fit:contain}
.seller-shell .context-product h3{font-size:16px;overflow-wrap:anywhere}
.seller-shell .context-caption{font-size:12px;font-weight:600}
.seller-shell .conversation-item{position:relative;border:0;border-radius:8px;margin-bottom:5px;padding:15px 13px}
.seller-shell .conversation-item:hover{background:#f5f3ef}
.seller-shell .list-refresh{color:#777f85}
.seller-shell .conversation-item.active{background:#e9e6df;box-shadow:none}
.seller-shell .conversation-item.active .customer-name{color:#272c29;font-weight:700}
.seller-shell .conversation-item.active .customer-avatar{background:#ffffffb3;color:#535c55}
.seller-shell .conversation-item.active .conversation-time{color:#71756f}
.seller-shell .conversation-item.active .conversation-product{color:#6b7068}
.seller-shell .conversation-item.active .conversation-snippet{color:#4e554d}
.seller-shell .conversation-item:focus-visible{outline:2px solid #71776e;outline-offset:-2px}
.seller-shell .snapshot-chat-note{font-size:11px}
.seller-shell .composer-area,.seller-shell .chat-header,.seller-shell .chat-control{flex-shrink:0}
.seller-shell.snapshot-mode .composer-area{display:block}
.seller-shell.snapshot-mode .composer{background:#f7f8f9;border-color:#e4e7e9}
.seller-shell.snapshot-mode .composer textarea:disabled{background:transparent;color:#6f777d;opacity:1}
.seller-shell.snapshot-mode .composer textarea::placeholder{color:#858d93}
.seller-shell.snapshot-mode .send-button:disabled{background:#e5e8ea;color:#818990;opacity:1}
.seller-shell.snapshot-mode .composer-note{color:#7d878e;font-size:11px}
.seller-shell .messages{overscroll-behavior:contain;min-height:0}
.seller-shell .source-info{padding:10px 24px 24px;font-size:13px;line-height:1.8}
.seller-shell .source-info p{margin:12px 0}
@media(min-width:1100px){.seller-shell .mobile-context{display:none}}
@media(min-width:701px) and (max-width:1099px){.seller-shell .chats-page .inbox{grid-template-columns:var(--inbox-dialogs,280px) 6px minmax(0,1fr)}.seller-shell .context-pane{display:none}.seller-shell .mobile-context{display:inline-grid}.seller-shell .breadcrumbs{display:none}}
@media(max-width:700px){
 .seller-shell .topbar{height:64px;min-height:64px;padding:0 12px;gap:6px}
 .seller-shell .topbar-start{gap:9px}.seller-shell .topbar-right{gap:7px}
 .seller-shell .mobile-brand{font-size:16px;gap:6px}.seller-shell .mobile-brand-portrait{width:40px;height:40px}
 .seller-shell .topbar .icon-button{width:36px;height:36px;border-radius:10px}
 .seller-shell .topbar .breadcrumbs,.seller-shell .top-avatar{display:none}
 .seller-shell .topbar .demo-badge{font-size:10px;padding:5px 7px;max-width:106px;overflow:hidden;text-overflow:ellipsis}
 .seller-shell .topbar #seller-logout{font-size:10px;padding:6px}
 .seller-shell.chats-view:not(.auth-mode) main{padding-bottom:calc(65px + env(safe-area-inset-bottom))}
 .seller-shell .chats-page{padding:12px 12px 12px}
 .seller-shell .chats-page .inbox{display:block;min-height:0;flex:1}
 .seller-shell .inbox.mobile-thread{top:64px;bottom:calc(65px + env(safe-area-inset-bottom));height:auto;min-height:0}
 .seller-shell .context-pane{display:none}.seller-shell .mobile-context{display:inline-grid}
 .seller-shell .conversation-item{padding:14px 10px}
 .seller-shell .topbar #install-button{display:none}
 .seller-shell .snapshot-chat-note small{display:none}
 .seller-shell .snapshot-chat-note{font-size:11px}.seller-shell .chat-control{padding:7px 13px}
}
@media(max-width:380px){.seller-shell .mobile-brand>span:last-child{display:none}.seller-shell .topbar-start{gap:6px}.seller-shell .topbar .demo-badge{max-width:96px}.seller-shell #nav-drawer .brand-copy{display:block}}
.seller-shell.auth-mode #nav-drawer{display:none}

/* Adjustable workspace boundaries; the phone layout remains one pane at a time. */
.seller-shell .conversation-list{grid-column:3;grid-row:1;min-width:0;border-right:0}
.seller-shell .chat-pane{grid-column:5;grid-row:1}
.seller-shell .context-pane{grid-column:1;grid-row:1;border-left:0}
.panel-divider{position:relative;grid-row:1;cursor:col-resize;touch-action:none;user-select:none;background:#fff;z-index:2;outline:none}
.divider-product{grid-column:2}.divider-dialogs{grid-column:4}
.panel-divider::before{content:"";position:absolute;inset:0 -3px;z-index:1}
.panel-divider::after{content:"";position:absolute;left:2px;top:0;bottom:0;width:1px;background:#e1e5e8;transition:background .15s}
.panel-divider:hover::after,.panel-divider:focus-visible::after,.panel-divider.dragging::after{width:2px;background:#8d969c}
.panel-divider:hover,.panel-divider:focus-visible,.panel-divider.dragging{background:#f0f2f3}
.panels-resizing,.panels-resizing *{cursor:col-resize!important;user-select:none!important}
.seller-shell .mobile-brand{white-space:nowrap}
.seller-shell .topbar .demo-badge svg{display:none}
.seller-shell #nav-drawer .brand{font-size:24px}
.admin-shell .brand-title{font-size:20px}
.seller-shell .catalog-toolbar .catalog-refresh{margin-left:auto}
.compact-actions{display:flex;justify-content:flex-end;margin-bottom:12px}
@media(min-width:701px) and (max-width:1099px){.divider-product{display:none}.seller-shell .conversation-list{grid-column:1}.divider-dialogs{grid-column:2}.seller-shell .chat-pane{grid-column:3}}
@media(min-width:701px) and (max-width:1000px){.admin-shell .brand::before{content:"AI";font-size:20px}}
@media(max-width:700px){.panel-divider{display:none}.seller-shell .conversation-list{border:0}.seller-shell .catalog-toolbar .catalog-refresh{margin-left:0}}
@media(max-width:600px){
 .seller-shell .topbar .demo-badge{width:32px;height:32px;justify-content:center;padding:0;flex-shrink:0}
 .seller-shell .topbar .demo-badge span{display:none}
 .seller-shell .topbar .demo-badge svg{display:block;width:16px;height:16px}
}

/* Keep native scrolling, with a quiet rounded thumb and no arrow buttons. */
@media(forced-colors:none){
 .seller-shell :is(.context-pane,.conversation-items,.messages,#nav-drawer,#dialog-body,.ai-draft,textarea){--scroll-thumb:#b5bec6;scrollbar-width:thin;scrollbar-color:var(--scroll-thumb) transparent}
 .seller-shell :is(.context-pane,.conversation-items,.messages,#nav-drawer,#dialog-body,.ai-draft,textarea):hover{--scroll-thumb:#9aa7b2}
 @supports selector(::-webkit-scrollbar){
  .seller-shell :is(.context-pane,.conversation-items,.messages,#nav-drawer,#dialog-body,.ai-draft,textarea){scrollbar-width:auto;scrollbar-color:auto}
  .seller-shell :is(.context-pane,.conversation-items,.messages,#nav-drawer,#dialog-body,.ai-draft,textarea)::-webkit-scrollbar{width:10px;height:10px}
  .seller-shell :is(.context-pane,.conversation-items,.messages,#nav-drawer,#dialog-body,.ai-draft,textarea)::-webkit-scrollbar-track{background:transparent}
  .seller-shell :is(.context-pane,.conversation-items,.messages,#nav-drawer,#dialog-body,.ai-draft,textarea)::-webkit-scrollbar-thumb{background:var(--scroll-thumb);background-clip:padding-box;border:2px solid transparent;border-radius:999px;min-height:36px}
  .seller-shell :is(.context-pane,.conversation-items,.messages,#nav-drawer,#dialog-body,.ai-draft,textarea)::-webkit-scrollbar-thumb:hover{background-color:#8c9aa6}
  .seller-shell :is(.context-pane,.conversation-items,.messages,#nav-drawer,#dialog-body,.ai-draft,textarea)::-webkit-scrollbar-thumb:active{background-color:#6e7e8b}
  .seller-shell :is(.context-pane,.conversation-items,.messages,#nav-drawer,#dialog-body,.ai-draft,textarea)::-webkit-scrollbar-button{display:none;width:0;height:0}
  .seller-shell :is(.context-pane,.conversation-items,.messages,#nav-drawer,#dialog-body,.ai-draft,textarea)::-webkit-scrollbar-corner{background:transparent}
 }
}

/* Incoming visibility and buyer identity are independent of reply status. */
.seller-shell .unread-dot{display:inline-block;width:10px;height:10px;flex-shrink:0;border-radius:50%;background:#dc3545;box-shadow:0 0 0 3px #fff;margin:3px 3px 3px auto}
.seller-shell .conversation-item.active .unread-dot{box-shadow:0 0 0 3px #e9e6df}
.customer-avatar{overflow:hidden}
.customer-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.buyer-history-hint{display:block;margin-top:6px;color:#626961;font-size:11px}
.buyer-history-button{display:block;border:0;background:#eeeee9;color:#535c55;font:inherit;font-size:11px;line-height:1.4;border-radius:6px;padding:4px 7px;margin-top:5px;cursor:pointer;text-align:left}
.buyer-history-button:hover{background:#e3e4dc}
.buyer-history{padding:20px 24px}
.buyer-history-note,.buyer-history-summary{font-size:12px;color:#74808c;margin:0 0 16px}
.buyer-history-search{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.buyer-history-search input,.buyer-history-search select{min-width:0;border:1px solid #e1e5e9;background:#fff;border-radius:9px;padding:10px;font:inherit;font-size:13px}
.buyer-history-search input{flex:1 1 200px}
.buyer-history-row{display:block;width:100%;text-align:left;border:0;border-bottom:1px solid #edf0f2;background:transparent;padding:14px 10px;color:inherit;font:inherit;cursor:pointer;border-radius:8px}
.buyer-history-row:hover,.buyer-history-row.current{background:#efeee9}
.history-row-top{display:flex;gap:12px;justify-content:space-between;align-items:baseline}
.history-row-top strong{min-width:0;overflow-wrap:anywhere;font-size:13px}
.history-row-top time{font-size:11px;color:#7a8490;flex-shrink:0}
.history-snippet{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;color:#7a8490;margin-top:6px}
.buyer-history-row small{display:block;color:#626961;font-size:10px;margin-top:5px}
.history-more{margin-top:12px}
@media(max-width:700px){.buyer-history{padding:16px}.history-row-top{flex-direction:column;gap:5px}.chat-person>div{min-width:0}.chat-person h2{overflow-wrap:anywhere}.buyer-history-button{font-size:10px}.buyer-history-search input{flex-basis:100%}}

@media(max-width:700px){.buyer-history-button .history-word{display:none}.chat-person:has(.buyer-history-button) p{display:none}.buyer-history-button{white-space:nowrap}}

/* Compact operator tools belong to the composer and individual AI replies. */
.composer-tools{display:flex;align-items:center;gap:4px;flex-wrap:wrap;padding:4px 0 8px}
.composer-tool{display:inline-flex;align-items:center;gap:6px;padding:7px 9px;border:0;border-radius:7px;background:transparent;color:#626d76;font:inherit;font-size:12px;cursor:pointer;min-height:34px}
.composer-tool:hover{background:#eeeee9;color:#303b45}.composer-tool svg{width:16px;height:16px}
.bot-switch{display:flex;align-items:center;flex-shrink:0;gap:2px;border:1px solid #e4e6e6;border-radius:9px;background:#f5f5f1;padding:3px}
.bot-switch button{display:flex;align-items:center;gap:5px;border:0;border-radius:6px;padding:7px 8px;min-height:32px;background:transparent;font:inherit;font-size:12px;color:#737d84;cursor:pointer}
.bot-switch button.selected{background:white;color:#273b42;box-shadow:0 1px 3px #23313c15}.bot-switch svg{width:15px;height:15px}.bot-switch button:disabled{opacity:.5;cursor:default}
.chat-tool-body{padding:20px 24px}.tool-hint,.tool-count{font-size:12px;line-height:1.55;color:#7d8790;margin:0 0 14px}
.tool-filters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}.tool-filters input{flex:1 1 100%}.tool-filters select{flex:1;min-width:130px}
.tool-filters input,.tool-filters select,.tool-form input:not([type=checkbox]):not([type=file]),.tool-form textarea,.tool-form select{border:1px solid #dde2e6;background:#fff;border-radius:8px;padding:10px 12px;color:inherit;font:inherit;font-size:13px;min-width:0;width:100%}
.tool-form{display:flex;flex-direction:column;gap:14px}.tool-form label:not(.tool-checkbox){display:flex;flex-direction:column;gap:7px;font-size:12px;color:#5b6771}.tool-form textarea{resize:vertical;min-height:84px}.tool-form .tool-hint{margin:0}
.tool-checkbox{display:flex;align-items:center;gap:8px;font-size:12px;color:#65717b;margin-bottom:12px}.tool-checkbox input{width:16px;height:16px;flex-shrink:0;accent-color:#536960}
.tool-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.tool-row .button{font-size:12px}.tool-row .text-link{font-size:12px}
.listing-picker-card{display:flex;gap:14px;padding:16px 0;border-bottom:1px solid #edf0f2}.listing-picker-photo{width:86px;height:100px;object-fit:cover;border-radius:8px;background:#f3f4f3;flex-shrink:0}.listing-picker-copy{display:flex;flex-direction:column;gap:5px;min-width:0;flex:1}.listing-picker-copy strong{font-size:14px;overflow-wrap:anywhere}.listing-picker-copy small{color:#8a939b;font-size:11px}.listing-picker-copy .tool-row{margin-top:6px}
.quick-reply-card{padding:16px 0;border-bottom:1px solid #edf0f2}.quick-reply-card>div:first-child{display:flex;justify-content:space-between;gap:12px}.quick-reply-card strong{font-size:13px;overflow-wrap:anywhere}.quick-reply-card small{font-size:11px;color:#84909b}.quick-reply-card p{white-space:pre-wrap;font-size:13px;line-height:1.6;color:#56636e}.tool-section-title{font-size:12px;color:#8b939a;margin:22px 0 0}
.message-feedback-button{display:inline-flex;align-items:center;align-self:flex-end;gap:5px;border:0;background:transparent;color:#818a90;font:inherit;font-size:11px;padding:6px 2px;cursor:pointer}.message-feedback-button svg{width:13px;height:13px}.message-feedback-button:hover{color:#344f48}
.feedback-original{margin:0;padding:12px 14px;background:#f3f3ef;border-radius:8px;color:#68737b;font-size:12px;white-space:pre-wrap;max-height:160px;overflow:auto}
.photo-preview img{max-width:100%;max-height:320px;object-fit:contain;display:block;margin:auto;border-radius:8px}.photo-preview small{display:block;margin:8px 0;color:#7d8790;overflow-wrap:anywhere}.message-photo-link{display:block;max-width:min(320px,85%);border-radius:12px;overflow:hidden}.message-photo{display:block;width:100%;height:auto;max-height:350px;object-fit:contain}
@media(max-width:700px){.chat-tool-body{padding:16px}.composer-tools{padding:0 0 4px;gap:1px}.composer-tool{font-size:10px;padding:6px;gap:4px;min-height:32px}.bot-switch button{font-size:11px;padding:6px;min-height:30px}.bot-switch svg{display:none}.chat-actions{gap:3px}.listing-picker-photo{width:64px;height:76px}.listing-picker-card{gap:10px}.tool-row .button{padding:8px 10px}.tool-filters select{min-width:115px}.message-feedback-button{min-height:30px}.chat-header .chat-person{min-width:0}}

.message-listing-link{color:inherit;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
