:root{--blue:#000451;--blue-dark:#151b70;--ink:#17243c;--muted:#73819a;--line:#e6ebf2;--bg:#f6f8fb;--green:#168765;--amber:#a7630b;--red:#cf3e4d;--nav:216px}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--bg);font:14px/1.5 Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}a{color:var(--blue);text-decoration:none}button:focus-visible,a:focus-visible{outline:3px solid #a9cdff;outline-offset:3px}input,select,textarea{width:100%;padding:11px 12px;border:1px solid #dce3ed;border-radius:7px;background:white;color:var(--ink);outline:none}input:focus,select:focus,textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px #00045114}textarea{resize:vertical;min-height:95px}h1,h2,h3,p{margin:0}h1{font-size:28px;letter-spacing:-.8px;line-height:1.25}h2{font-size:16px;letter-spacing:-.2px}h3{font-size:14px}small,.sub{color:var(--muted);font-size:12px}svg.icon{width:19px;height:19px;flex-shrink:0;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.row{display:flex;align-items:center;gap:10px}.between{display:flex;align-items:center;justify-content:space-between;gap:12px}.stack{display:grid;gap:16px}.muted{color:var(--muted)}.blue{color:var(--blue)}.positive{color:var(--green)}.danger{color:var(--red)}.num{font-variant-numeric:tabular-nums}.btn{display:inline-flex;justify-content:center;align-items:center;gap:7px;min-height:39px;border-radius:7px;border:1px solid #dce3ed;padding:9px 14px;background:#fff;color:var(--ink);font-weight:550;font-size:13px;white-space:nowrap}.btn:hover{background:#f6f9fd}.btn.primary{background:var(--blue);border-color:var(--blue);color:white;box-shadow:0 2px 3px #00045116}.btn.primary:hover{background:var(--blue-dark)}.btn.ghost{border-color:transparent;background:transparent}.btn.danger{color:var(--red);border-color:#f0d8dc}.btn.full{width:100%}.btn.small{min-height:32px;padding:6px 10px;font-size:12px}.icon-btn{display:flex;align-items:center;justify-content:center;min-width:40px;height:40px;border:0;background:transparent;border-radius:7px;color:var(--muted)}.icon-btn:hover{background:#edf3fa;color:var(--ink)}.badge{display:inline-flex;align-items:center;gap:5px;font-size:11px;padding:4px 8px;border-radius:5px;background:#eff2f6;color:#64738b;white-space:nowrap;font-weight:550}.badge.blue{background:#e9f2ff;color:#1267d9}.badge.green{background:#e6f6ef;color:#16765c}.badge.amber{background:#fff3da;color:#9b5a08}.badge.red{background:#fff0f1;color:#c6424b}.count{background:#e9edf4;padding:1px 7px;border-radius:5px;font-size:11px}.card{background:white;border:1px solid var(--line);border-radius:10px;overflow:hidden}.card-pad{padding:22px}.card-head{padding:20px 22px 0}.sidebar{width:var(--nav);background:white;border-right:1px solid var(--line);position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;z-index:30;padding:24px 12px 16px}.brand{display:flex;gap:10px;align-items:center;padding:0 12px 24px}.mark{width:33px;height:35px;background:var(--blue);color:#fff;font-weight:800;font-size:26px;letter-spacing:0;line-height:1;font-family:Arial,sans-serif;display:flex;align-items:center;justify-content:center;border-radius:9px;padding:0}.brand-name{font-size:19px;font-weight:750;letter-spacing:-.6px}.brand small{font-size:10px;letter-spacing:.5px}.nav-label{font-size:9px;font-weight:650;color:#9ba5b5;letter-spacing:1.7px;padding:10px 14px 8px}.nav-item{width:100%;display:flex;align-items:center;gap:12px;padding:12px 14px;border:0;background:transparent;border-radius:7px;color:#596880;text-align:left;margin:3px 0;font-size:13px;font-weight:500}.nav-item .count{margin-left:auto}.nav-item:hover{background:#f6f8fb}.nav-item.active{background:#edf4ff;color:var(--blue);font-weight:650}.sidebar-bottom{margin-top:auto}.agency{font-size:9px;color:#a1adbd;padding:16px 14px 0}.topbar{position:sticky;top:0;z-index:20;height:71px;margin-left:var(--nav);background:#ffffffed;backdrop-filter:blur(12px);border-bottom:1px solid var(--line);padding:0 32px;display:flex;align-items:center;justify-content:space-between}.global-search{display:flex;gap:10px;align-items:center;color:#93a0b4;width:400px;cursor:pointer;font-size:12px}.key{font-size:10px;border:1px solid var(--line);border-radius:4px;padding:1px 5px;margin-left:auto}.avatar{width:34px;height:34px;flex-shrink:0;border-radius:50%;background:#eef1ff;color:#6975af;display:grid;place-items:center;line-height:1;font-size:12px;font-weight:650}.avatar.large{width:44px;height:44px}.avatar.pink{background:#fcebf0;color:#b9657c}.avatar.mint{background:#e6f4ec;color:#438269}.avatar.sand{background:#fbefd9;color:#a77e41}.user-label{font-size:12px;font-weight:600}.user-label small{display:block;font-size:10px;font-weight:400}.header-divider{height:25px;width:1px;background:var(--line);margin:0 8px}.main{width:calc(100% - var(--nav));max-width:1800px;margin-left:max(var(--nav),calc((100% + var(--nav) - 1800px)/2));margin-right:auto;padding:30px 32px 44px}.page-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:26px}.page-head p{font-size:12px;color:var(--muted);margin-top:7px}.eyebrow{font-size:10px;letter-spacing:1.7px;color:var(--muted);font-weight:600;margin-bottom:8px}.demo-ribbon{font-size:10px;display:flex;align-items:center;justify-content:center;gap:9px;background:#eef4fd;color:#657d9f;padding:6px 12px;margin-left:var(--nav);border-bottom:1px solid #e4edf9}.demo-ribbon button{font-size:10px;color:var(--blue);padding:0;border:0;background:none}.notice{display:flex;align-items:center;gap:12px;border:1px solid #f3e3be;border-radius:8px;padding:12px 16px;background:#fffbf2;color:#946329;font-size:12px}.notice.info{background:#f0f6ff;border-color:#dae9ff;color:#4e7199}.notice .btn{margin-left:auto}.notice svg{width:17px}.stats{display:grid;grid-template-columns:1fr 1fr 1.5fr 1fr;gap:16px;margin:20px 0}.stat{padding:20px;position:relative}.stat-icon{width:33px;height:33px;border-radius:8px;background:#edf5ff;color:var(--blue);display:grid;place-items:center;margin-bottom:18px}.stat .value{font-size:29px;line-height:1.2;font-weight:650;letter-spacing:-1px;margin:5px 0}.stat .label{font-size:11px;color:var(--muted)}.stat .value small{font-size:15px;font-weight:500;color:var(--ink);letter-spacing:0}.stat-note{font-size:10px;color:#9ba5b5;margin-top:7px}.stat-dot{position:absolute;right:18px;top:22px;color:#b0bac7}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(280px,1fr);gap:20px}.chart-card{padding:22px}.chart-heading{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:18px}.chart-legend{display:flex;gap:5px;align-items:center;color:var(--muted);font-size:10px}.dot{width:6px;height:6px;border-radius:50%;display:inline-block;background:var(--blue)}.bar-chart{height:205px;display:flex;gap:9px;padding:16px 4px 24px;align-items:flex-end;position:relative;background:repeating-linear-gradient(to top,transparent 0,transparent 44px,#f0f3f8 45px,#f0f3f8 46px)}.bar-col{height:100%;flex:1;display:flex;align-items:flex-end;justify-content:center;position:relative}.bar{width:70%;max-width:30px;min-height:3px;border-radius:4px 4px 0 0;background:#375d7d;transition:height .3s}.bar:hover{background:#000451}.bar-col span{position:absolute;bottom:-23px;font-size:9px;color:#8490a5;white-space:nowrap}.chart-axis{font-size:10px;color:#96a1b2;margin-top:16px}.usage-num{font-size:32px;letter-spacing:-1px;font-weight:650;margin:23px 0 15px}.usage-num span{font-size:17px;color:#9aa5b6;font-weight:400}.progress{height:7px;background:#edf1f7;border-radius:20px;overflow:hidden}.progress i{display:block;height:100%;background:var(--blue);border-radius:20px}.usage-meta{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);margin:9px 0 24px}.rule{height:1px;background:var(--line);margin:18px 0}.lower-grid{display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:20px;margin-top:20px}.metric-line{display:flex;gap:12px;align-items:center;margin:17px 0;font-size:11px}.metric-line .progress{flex:1;height:7px}.metric-line label{width:90px}.metric-line strong{width:40px;text-align:right;font-size:11px;font-weight:500}.task{display:flex;align-items:center;width:100%;gap:10px;background:none;border:0;border-bottom:1px solid #f0f3f7;padding:15px 0;color:var(--ink);font-size:12px}.task:last-child{border:0}.task .count{margin-left:auto}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:12px;white-space:nowrap}th{text-align:left;font-weight:500;font-size:10px;color:#8290a5;padding:14px 20px;background:#fafbfd;border-bottom:1px solid var(--line)}td{padding:17px 20px;border-bottom:1px solid #eff2f6}tr:last-child td{border:0}tr.clickable{cursor:pointer}tr.clickable:hover{background:#f9fbff}td.right,th.right{text-align:right}.table-title{font-weight:600}.table-sub{font-size:10px;color:#94a0b3;margin-top:3px}.toolbar{display:flex;align-items:center;gap:10px;padding:16px 20px}.search-field{position:relative;max-width:350px;flex:1}.search-field svg{position:absolute;top:12px;left:12px;color:#8c99ac;width:16px}.search-field input{padding-left:37px;font-size:12px}.toolbar select{width:auto;font-size:12px;padding:10px}.tabs{display:flex;gap:23px;border-bottom:1px solid var(--line);padding:0 20px;overflow:auto;white-space:nowrap}.tab{border:0;border-bottom:2px solid transparent;background:none;padding:17px 0;color:#8290a5;font-size:12px}.tab.active{color:var(--blue);border-color:var(--blue);font-weight:600}.tab .count{margin-left:5px}.thumb{width:46px;height:52px;border-radius:7px;background:#f1f0ee;display:grid;place-items:center;overflow:hidden;flex-shrink:0}.thumb svg{width:90%;height:90%}.thumb.big{width:100%;height:150px}.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.product-card{cursor:pointer}.product-photo{height:180px;display:grid;place-items:center;background:#f1f0ed;position:relative}.product-photo svg{height:145px;width:145px;transition:transform .2s}.product-card:hover .product-photo svg{transform:scale(1.035)}.product-photo .badge{position:absolute;top:12px;left:12px}.product-body{padding:17px 19px}.product-body h3{font-size:14px}.product-price{font-size:13px;font-weight:650;margin:9px 0}.stock-info{font-size:11px;color:var(--muted)}.split{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(290px,1fr);gap:20px}.details{padding:22px}.detail-line{display:flex;justify-content:space-between;gap:15px;padding:9px 0;font-size:12px}.detail-line span{color:var(--muted)}.detail-line.total{font-size:16px;border-top:1px solid var(--line);margin-top:8px;padding-top:15px}.balance{padding:14px;border-radius:7px;background:#f1f5fb;font-size:12px}.order-card{padding:20px;margin-bottom:12px}.order-cards{display:none}.empty{padding:55px 25px;text-align:center;color:var(--muted)}.empty svg{width:30px;height:30px;margin-bottom:12px;color:#b3c0d3}.empty h3{color:var(--ink);margin-bottom:6px}.empty p{font-size:12px;max-width:330px;margin:auto auto 18px}.inbox{display:grid;grid-template-columns:290px minmax(280px,1fr) 300px;height:calc(100vh - 160px);min-height:540px}.inbox-list{border-right:1px solid var(--line);overflow-y:auto}.inbox-list-head{padding:20px 16px 12px}.conversation-row{width:100%;background:none;border:0;border-top:1px solid #f0f3f7;padding:17px 16px;text-align:left;display:flex;gap:11px;position:relative}.conversation-row.active{background:#eef5ff}.conversation-row strong{font-size:12px}.conversation-row p{font-size:11px;color:var(--muted);max-width:178px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin:4px 0}.conversation-row time{position:absolute;right:14px;top:19px;font-size:9px;color:#97a3b6}.chat-panel{min-width:0;display:flex;flex-direction:column;background:#fff}.chat-header{padding:17px 19px;border-bottom:1px solid var(--line)}.chat-header strong{font-size:13px}.chat-header .badge{font-size:10px}.chat-log{overflow:auto;flex:1;display:flex;flex-direction:column;gap:15px;padding:24px 20px}.message{max-width:88%;align-self:flex-start}.bubble{padding:12px 14px;background:#f1f3f7;border-radius:10px 10px 10px 2px;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}.message.outgoing{align-self:flex-end}.message.outgoing .bubble{background:#edf5ff;border-radius:10px 10px 2px 10px}.message.note .bubble{background:#fff7df;color:#8f7137}.message time{font-size:9px;color:#96a2b4;margin-top:5px;display:block}.message.outgoing time{text-align:right}.composer{margin:0 16px 16px;border:1px solid #dde5ee;border-radius:8px;overflow:hidden}.composer textarea{border:0;border-radius:0;resize:none;min-height:70px;font-size:12px}.composer-bottom{display:flex;align-items:center;justify-content:space-between;padding:8px 10px}.composer-bottom select{width:125px;padding:5px;border:0;font-size:11px}.context-panel{padding:19px;border-left:1px solid var(--line);overflow:auto}.context-panel h2{margin-bottom:20px}.mobile-order-link{display:none}.payment-grid{display:grid;grid-template-columns:265px minmax(240px,1fr) minmax(300px,1.2fr);gap:18px}.payment-queue{overflow:auto}.queue-item{border:0;border-bottom:1px solid var(--line);background:white;width:100%;text-align:left;padding:20px;cursor:pointer}.queue-item.active{background:#f0f6ff;border-left:2px solid var(--blue)}.queue-item strong{display:block;font-size:13px;margin-bottom:4px}.queue-item .amount{font-weight:650;margin:10px 0}.receipt-stage{background:#f5f7fa;min-height:280px;margin:20px 0;border-radius:7px;display:flex;align-items:center;justify-content:center}.receipt-stage img{max-width:100%;max-height:360px}.receipt-paper{width:190px;padding:22px;background:white;box-shadow:0 4px 20px #1b355b08;text-align:center;border:1px dashed #d7dfe9;position:relative}.receipt-paper .stamp{font-size:26px;color:#cf6b7166;letter-spacing:6px;font-weight:750;transform:rotate(-16deg);margin:25px 0}.form-field{display:block;margin:16px 0}.form-field>span{display:block;margin-bottom:7px;font-size:11px;color:#65758d;font-weight:550}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.check{display:flex;align-items:flex-start;gap:9px;font-size:12px;color:#61728a;margin:20px 0}.check input{width:16px;height:16px;flex:none;accent-color:var(--blue);margin-top:2px}.settings-layout{display:grid;grid-template-columns:190px minmax(0,1fr);gap:25px}.settings-nav .nav-item{font-size:12px}.settings-content{max-width:950px}.member-row{display:flex;align-items:center;gap:14px;padding:20px;border-bottom:1px solid var(--line)}.member-row .member-meta{flex:1}.member-row strong{font-size:13px}.member-actions{display:flex;gap:6px}.knowledge-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.knowledge-card{padding:24px;cursor:pointer}.knowledge-card h2{margin:16px 0 9px}.knowledge-card p{font-size:12px;color:var(--muted);line-height:1.8;max-height:65px;overflow:hidden}.login-layout{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.login-art{background:#eef4fe;padding:65px;display:flex;flex-direction:column;justify-content:space-between}.login-art h1{font-size:50px;max-width:480px;line-height:1.15;letter-spacing:-2px;margin:60px 0 20px}.login-art p{color:#7085a8;max-width:360px;line-height:1.8}.login-card{display:flex;align-items:center;justify-content:center;background:white;padding:35px}.login-inner{width:360px}.login-inner h1{margin-bottom:10px}.login-inner form{margin-top:30px}.login-note{margin-top:22px;font-size:11px;color:var(--muted);text-align:center}.error-text{color:var(--red);font-size:12px;margin:12px 0}.boot{height:100vh;display:grid;place-items:center;color:var(--muted)}dialog{border:1px solid var(--line);border-radius:12px;padding:0;max-width:min(650px,95vw);width:650px;max-height:90vh;color:var(--ink);box-shadow:0 20px 100px #12274b25}dialog::backdrop{background:#152a4855;backdrop-filter:blur(3px)}.modal-head{padding:22px 25px;border-bottom:1px solid var(--line);position:sticky;top:0;background:white;z-index:1}.modal-body{padding:8px 25px 25px}.modal-actions{display:flex;gap:10px;justify-content:flex-end;padding-top:20px}.modal-actions .btn{min-width:100px}.preview-note{font-size:11px;color:#8290a6;margin:12px 0}.stock-row{display:grid;grid-template-columns:1fr 80px 100px;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.stock-row small{display:block}#toasts{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:100;display:grid;gap:8px}.toast{border:1px solid #dbe7df;background:#fff;box-shadow:0 7px 30px #20314b14;padding:13px 20px;border-radius:8px;color:var(--green);font-size:13px;min-width:240px;max-width:85vw}.toast.error{color:var(--red);border-color:#eed5d8}.mobile-nav,.mobile-only{display:none}.footer-note{font-size:10px;color:#91a0b5;margin-top:18px}.more-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.more-card{padding:25px;background:#fff;border:1px solid var(--line);border-radius:9px;text-align:left;color:var(--ink);display:flex;align-items:center;gap:12px}.hidden{display:none!important}.mini-chart{display:flex;align-items:flex-end;gap:7px;height:86px;margin-top:25px}.mini-chart i{flex:1;background:#d9e9ff;border-radius:4px 4px 0 0}.mini-chart i:nth-child(3n){background:#68a5f6}.spark-caption{display:flex;justify-content:space-between;color:#94a2b5;font-size:9px;margin-top:9px}
@media(min-width:1600px){.main{padding-left:45px;padding-right:45px}.inbox{grid-template-columns:310px minmax(300px,1fr) 330px}}
@media(max-width:1200px){:root{--nav:185px}.main{padding:25px 22px}.topbar{padding:0 22px}.stats{gap:12px}.stat{padding:17px}.stat .value{font-size:24px}.inbox{grid-template-columns:250px minmax(300px,1fr)}.context-panel{display:none}.mobile-order-link{display:block}.payment-grid{grid-template-columns:230px minmax(300px,1fr)}.receipt-column{display:none}.payment-form .mobile-receipt{display:block!important}.lower-grid{grid-template-columns:1fr 1fr}.lower-grid>div:first-child{display:none}.product-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:800px){:root{--nav:0px}.sidebar,.global-search,.user-label,.header-divider{display:none}.topbar{height:63px;padding:0 18px}.topbar .mobile-brand{display:flex!important}.topbar .mark{width:29px;height:30px;font-size:23px}.topbar .brand-name{font-size:18px}.demo-ribbon{font-size:9px;padding:6px 9px}.main{padding:23px 16px 96px}.page-head{margin-bottom:20px;align-items:flex-start}.page-head h1{font-size:25px}.page-head p{font-size:11px;max-width:230px}.page-head .actions{flex-wrap:wrap;justify-content:flex-end}.page-head .actions .btn{min-height:36px;font-size:11px;padding:7px 10px}.eyebrow{font-size:9px}.stats{grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}.stat{padding:16px}.stat:nth-child(3){grid-column:1/-1;grid-row:1}.stat:nth-child(4){display:none}.stat:nth-child(3) .stat-icon{float:left;margin-right:12px;margin-bottom:25px}.stat .stat-icon{width:28px;height:28px;margin-bottom:12px}.stat .value{font-size:25px}.stat .label{font-size:11px}.stat-note{font-size:9px}.stat-dot{display:none}.dashboard-grid{grid-template-columns:1fr;gap:16px}.chart-card,.card-pad{padding:18px}.bar-chart{height:170px}.lower-grid{grid-template-columns:1fr;gap:16px}.lower-grid>div:first-child{display:none}.usage-num{margin:17px 0 12px;font-size:28px}.usage-meta{margin-bottom:16px}.notice{font-size:11px;padding:11px 12px;gap:8px}.notice .btn{padding:5px 8px;font-size:11px}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:40;background:#fffffffa;border-top:1px solid var(--line);padding:7px 9px max(8px,env(safe-area-inset-bottom));justify-content:space-around;backdrop-filter:blur(12px)}.mobile-nav button{border:0;background:none;min-width:55px;min-height:48px;color:#8793a6;display:flex;flex-direction:column;gap:4px;align-items:center;justify-content:center;font-size:9px;position:relative}.mobile-nav button.active{color:var(--blue);font-weight:650}.mobile-nav button.active:before{content:'';position:absolute;top:-8px;height:2px;width:20px;border-radius:0 0 4px 4px;background:var(--blue)}.mobile-nav .nav-count{position:absolute;top:-1px;right:6px;color:#fff;background:#e86975;border:2px solid white;border-radius:9px;font-size:8px;padding:0 4px}.mobile-only{display:flex}.desktop-only{display:none!important}.toolbar{padding:14px;gap:8px;flex-wrap:wrap}.toolbar .search-field{max-width:none;min-width:160px}.toolbar select{max-width:150px}.tabs{padding:0 16px;gap:20px}.tab{font-size:11px;min-height:48px}.order-table{display:none}.order-cards{display:block}.order-card .detail-line{font-size:12px}.order-card .btn{min-height:44px}.product-grid{gap:12px}.product-photo{height:135px}.product-photo svg{height:110px;width:110px}.product-body{padding:13px}.product-body h3{font-size:12px}.product-price{font-size:12px}.product-photo .badge{font-size:9px;left:8px;top:8px}.stock-info{font-size:10px}.split{grid-template-columns:1fr}.knowledge-grid{grid-template-columns:1fr}.knowledge-card{padding:20px}.settings-layout{grid-template-columns:1fr;gap:15px}.settings-nav{display:flex;gap:5px;overflow:auto}.settings-nav .nav-item{width:auto;white-space:nowrap;padding:10px;font-size:11px}.settings-nav .nav-item svg{display:none}.member-row{flex-wrap:wrap;padding:16px;gap:10px}.member-actions{margin-left:44px;flex-wrap:wrap}.member-actions .btn{min-height:36px}.inbox{display:block;min-height:0;height:calc(100dvh - 176px);border:0;border-radius:0;background:none}.inbox-list{height:100%;border:1px solid var(--line);border-radius:9px;background:white}.inbox-list-head{padding:18px}.conversation-row{padding:20px 17px;min-height:96px}.conversation-row strong{font-size:14px}.conversation-row p{font-size:12px;max-width:230px}.conversation-row time{font-size:10px}.chat-panel{display:none}.chat-open .chat-panel{display:flex;position:fixed;inset:0;z-index:50;height:100dvh}.chat-open .chat-header{padding:12px}.chat-log{padding:20px 16px}.bubble{font-size:14px}.message time{font-size:10px}.composer{margin:0 12px max(12px,env(safe-area-inset-bottom))}.composer textarea{font-size:14px;min-height:60px}.chat-header .btn{font-size:10px;padding:7px 8px;min-height:38px}.payment-grid{display:block}.payment-queue{display:grid;grid-template-columns:1fr;border-radius:9px}.queue-item{padding:20px}.queue-item .amount{margin:7px 0}.payment-form{display:none}.payment-open .payment-form{display:block;position:fixed;inset:0;z-index:50;border:0;border-radius:0;overflow:auto;padding:22px 18px 30px}.payment-form .btn{min-height:46px}.payment-form .form-field>span{font-size:12px}.payment-form .mobile-receipt{display:block!important}.login-layout{grid-template-columns:1fr}.login-art{display:none}.login-card{min-height:100vh;padding:28px}.login-inner{width:100%;max-width:370px}.form-grid{grid-template-columns:1fr}.modal-body{padding:4px 20px 22px}.modal-head{padding:18px 20px}.modal-actions .btn{min-height:44px}dialog{width:calc(100vw - 24px);max-width:600px;max-height:90dvh}.table-wrap{font-size:11px}td,th{padding:13px 14px}.stock-row{grid-template-columns:1fr 62px 88px;font-size:12px}#toasts{bottom:90px}.more-grid{grid-template-columns:1fr}.more-card{padding:21px}.btn{min-height:42px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

.product-photo img,.thumb.big img{width:100%;height:100%;object-fit:cover}
/* Multi-channel workspace */
.channel-intro{display:flex;justify-content:space-between;align-items:center;gap:30px;padding:32px 36px;margin-bottom:28px;border:1px solid #dbe7f7;border-radius:14px;background:linear-gradient(115deg,#f1f7ff,#fff 75%)}.channel-intro h2{font-size:30px;line-height:1.25;letter-spacing:-1px;margin:12px 0}.channel-intro p{font-size:13px;line-height:1.8;color:var(--muted);max-width:460px}.channel-summary{min-width:150px;border-left:1px solid #dce5f1;padding-left:40px}.channel-summary>strong{display:block;font-size:42px;font-weight:600;letter-spacing:-2px}.channel-summary>strong span{font-size:23px;color:#8c9ab0;font-weight:400}.channel-summary>span{font-size:12px;color:var(--muted)}.mini-marks{display:flex;gap:8px;margin-top:16px}.mini-marks .channel-mark{width:27px;height:27px;border-radius:8px}.mini-marks .channel-mark svg{width:17px;height:17px}.section-heading{display:flex;align-items:center;justify-content:space-between;margin:0 0 17px}.section-heading p{margin-top:6px}.channel-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.connection-card{padding:24px;display:flex;flex-direction:column;border-radius:12px}.channel-mark{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;border-radius:13px;flex-shrink:0}.channel-mark svg{width:25px;height:25px;fill:currentColor}.channel-mark .mark-line{fill:white;stroke:white;stroke-width:.5}.channel-mark.messenger{background:#eaf2ff;color:#000451}.channel-mark.telegram{background:#e7f6fd;color:#229ed9}.channel-mark.tiktok{background:#f0f1f4;color:#20232a}.connection-card h3{font-size:19px;margin:20px 0 10px;letter-spacing:-.3px}.channel-description{color:var(--muted);font-size:12px;line-height:1.8;min-height:64px}.channel-facts{padding:18px 0;margin-top:10px;border-top:1px solid var(--line);font-size:11px;display:grid;gap:16px}.channel-facts>div{display:grid;gap:5px}.channel-facts span{color:var(--muted)}.channel-facts strong{font-weight:500;overflow-wrap:anywhere}.channel-card-footer{margin-top:auto;padding-top:14px}.channel-warning{font-size:11px;color:#a56208;margin:8px 0}.channel-bottom{display:grid;grid-template-columns:2fr 1fr;gap:22px;margin-top:24px}.assistant-card{padding:24px;position:relative;border-radius:12px}.assistant-card>.badge{margin:18px 0 0 48px}.assistant-card .row{align-items:flex-start}.assistant-card .sub{margin-top:6px;line-height:1.7}.assistant-symbol{width:34px;height:34px;background:#f0edfc;color:#7a64ac;display:flex;align-items:center;justify-content:center;border-radius:10px;flex-shrink:0}.assistant-notes{display:flex;gap:14px;border-top:1px solid var(--line);padding-top:17px;margin-top:20px;flex-wrap:wrap}.assistant-notes span{display:flex;align-items:center;gap:5px;font-size:10px;color:var(--muted)}.assistant-notes svg{width:14px;height:14px}.channel-help{padding:18px 8px}.channel-help h3{font-size:14px}.channel-help p{font-size:12px;line-height:1.8;color:var(--muted);margin:12px 0}.channel-help .btn{padding-left:0}.connection-modal-top{display:flex;align-items:center;gap:13px;padding:22px 0}.connection-modal-top>.badge{margin-left:auto}.connection-modal-top p{margin-top:5px}.setup-steps{list-style:none;padding:0;margin:0 0 22px}.setup-steps li{display:flex;gap:14px;padding:12px 0}.setup-steps li>span{width:26px;height:26px;display:flex;align-items:center;justify-content:center;background:#eef4fc;color:var(--blue);border-radius:50%;font-size:11px;flex-shrink:0}.setup-steps strong{font-size:13px}.setup-steps p{color:var(--muted);font-size:12px;line-height:1.8;margin-top:5px}.webhook-box{border:1px solid var(--line);padding:16px;border-radius:9px;background:#f8fafc}.webhook-box label{font-size:11px;color:var(--muted);display:block}.webhook-box code{font-size:11px;display:block;overflow-wrap:anywhere;line-height:1.8;margin:10px 0}.connection-technical{padding:16px 0;font-size:12px}.connection-technical summary{cursor:pointer;font-weight:600}.connection-technical p{line-height:1.8;color:var(--muted);margin:10px 0}.connection-technical code{line-height:1.9;font-size:11px;overflow-wrap:anywhere}.setting-switch{display:flex;align-items:center;gap:18px;padding:17px 0;border-bottom:1px solid var(--line)}.setting-switch div{flex:1}.setting-switch strong{font-size:13px;display:block}.setting-switch span{display:block;font-size:11px;color:var(--muted);line-height:1.8;margin-top:4px}.setting-switch input{width:19px;height:19px;accent-color:var(--blue)}.connection-actions{display:flex;gap:10px;margin-top:18px;flex-wrap:wrap}.connection-check,.integration-gate{display:flex;gap:12px;padding:16px;background:#fff8ed;border:1px solid #f0e0c8;border-radius:8px;margin:18px 0;font-size:12px;line-height:1.8}.connection-check.passed{background:#f0f8f3;border-color:#d8eade}.connection-check p,.integration-gate p{margin-top:5px;color:var(--muted)}.connection-check svg,.integration-gate svg{flex-shrink:0}.integration-gate a{display:inline-block;margin-top:12px;color:var(--blue)}.inbox-channel-select{display:flex;gap:10px;align-items:center;margin-bottom:14px;font-size:11px;color:var(--muted)}.inbox-channel-select select{font-size:12px;padding:7px;min-width:0}.conversation-channel{display:block;font-size:9px;color:#7b899e;margin-top:3px}.conversation-row{align-items:flex-start}.composer-status{font-size:11px;color:#95600c;margin-bottom:10px}.btn:disabled{opacity:.48;cursor:not-allowed}:focus-visible{outline:3px solid #91bfff;outline-offset:3px}.settings-content{min-width:0}.settings-content .channel-grid{grid-template-columns:1fr}.settings-content .channel-intro{padding:24px}.settings-content .channel-bottom{grid-template-columns:1fr}.settings-content .channel-description{min-height:0}
@media(max-width:1100px){.channel-grid{gap:12px}.connection-card{padding:19px}.connection-card .between{align-items:flex-start;gap:10px;flex-direction:column}.channel-bottom{grid-template-columns:1fr}.channel-help{padding:10px}.channel-description{min-height:86px}}
@media(max-width:800px){.channel-intro{padding:23px;gap:20px;margin-bottom:24px}.channel-intro h2{font-size:24px}.channel-intro p{font-size:12px}.channel-summary{min-width:80px;padding-left:18px}.channel-summary>strong{font-size:34px}.channel-summary>span{font-size:10px}.mini-marks{gap:5px}.mini-marks .channel-mark{width:22px;height:22px}.channel-grid{grid-template-columns:1fr;gap:14px}.connection-card{padding:22px}.connection-card .between{flex-direction:row;align-items:center}.channel-description{min-height:0}.channel-facts{grid-template-columns:1fr 1fr}.channel-intro .eyebrow{font-size:8px}.section-heading>.badge{display:none}.assistant-card{padding:21px}.channel-bottom{gap:12px}.assistant-notes{gap:12px}.connection-modal-top{gap:10px;flex-wrap:wrap}.connection-modal-top>.badge{font-size:10px}.inbox-list{overflow:auto}.inbox-list-head{position:sticky;top:0;z-index:2;background:white}.setting-switch{min-height:68px}}
@media(max-width:400px){.channel-intro{display:block}.channel-summary{display:none}.connection-card .badge{font-size:9px}}
/* UI refinement: Settings-owned connections and explicit inbox identities. */
svg.icon{overflow:hidden}
.channel-chip{display:inline-flex;align-items:center;gap:5px;border-radius:5px;padding:4px 7px;font-size:10px;font-weight:600;line-height:1.2;white-space:nowrap;border:1px solid transparent}
.channel-chip.messenger{color:#155ac0;background:#eaf2ff;border-color:#d7e6ff}.channel-chip.telegram{color:#086b92;background:#e7f6fc;border-color:#cbeaf5}.channel-chip.tiktok{color:#30343d;background:#eff0f3;border-color:#dce0e6}.channel-chip.other{color:#566174;background:#f1f3f6}
.channel-chip .channel-mark,.channel-filter .channel-mark{width:16px;height:16px;min-width:16px;border-radius:0;background:none;color:inherit}.channel-chip .channel-mark svg,.channel-filter .channel-mark svg{width:15px;height:15px;display:block}.channel-chip .channel-mark .mark-line,.channel-filter .channel-mark .mark-line{fill:white;stroke:white}
.inbox-heading-count{color:#78869b;font-size:11px}.channel-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:0 0 16px}.channel-filter{display:flex;align-items:center;gap:6px;min-height:36px;padding:8px;border:1px solid #e1e7f0;border-radius:7px;background:#fff;font-size:10px;font-weight:500;color:#536179;cursor:pointer;text-align:left}.channel-filter>span:not(.channel-mark):not(.filter-count):not(.channel-short){flex:1}.channel-filter svg.icon{width:15px;height:15px}.filter-count{font-size:9px;background:#f0f3f7;padding:2px 5px;border-radius:4px;color:#65738a}.channel-filter.messenger .channel-mark{color:#000451}.channel-filter.telegram .channel-mark{color:#168cb4}.channel-filter.tiktok .channel-mark{color:#242832}.channel-filter:hover{background:#f7f9fc;border-color:#cbd6e6}.channel-filter.is-selected{border-color:#8bb7ef;background:#edf4ff;color:#174f99;box-shadow:0 0 0 1px #c9dfff}.channel-filter.is-selected .filter-count{background:#dceaff;color:#174f99}
.inbox-list-head{background:#fff;position:sticky;top:0;z-index:2;border-bottom:1px solid var(--line)}.conversation-row{padding:17px 15px;gap:10px;border-top:0;border-bottom:1px solid #edf1f6;align-items:flex-start;min-height:112px}.conversation-row.active{background:#f0f6ff;box-shadow:inset 3px 0 #000451}.conversation-row>.avatar{width:32px;height:32px;min-width:32px;font-size:11px;margin-top:1px}.conversation-content{min-width:0;flex:1}.conversation-title{display:flex;gap:8px;align-items:baseline;justify-content:space-between}.conversation-title strong{font-size:12px;font-weight:650;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.conversation-row .conversation-title time{position:static;flex-shrink:0;font-size:9px;color:#7d899b;margin:0;line-height:1.5}.conversation-row p.conversation-preview{max-width:none;font-size:11px;color:#66758b;line-height:1.7;margin:5px 0 9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.conversation-meta{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.handling-label{display:inline-flex;align-items:center;gap:4px;font-size:9px;color:#66758b;white-space:nowrap}.handling-label i{height:5px;width:5px;border-radius:50%;background:#94a1b5}.handling-label.human i{background:#ce932e}.handling-label.ai i{background:#7f77c8}.handling-label.resolved i{background:#36a180}.chat-channel-identity{margin-top:6px}.chat-channel-identity .channel-chip{font-size:10px}.chat-header .row>div{min-width:0}.chat-header .between>.row{min-width:0}
.channel-settings-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:20px}.channel-settings-heading h2{font-size:20px;letter-spacing:-.4px}.channel-settings-heading p{font-size:12px;color:var(--muted);line-height:1.8;margin-top:6px}.settings-channel-list{display:grid;gap:14px}.settings-channel-card{display:grid;grid-template-columns:minmax(0,1fr) auto;padding:22px 24px;gap:18px;border-radius:10px}.connection-platform{display:flex;align-items:center;gap:13px;min-width:0}.connection-platform h3{font-size:15px;letter-spacing:-.2px}.connection-platform p{font-size:11px;color:var(--muted);line-height:1.8;margin-top:4px}.connection-state{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:7px}.connection-state>span:not(.badge){font-size:10px;color:var(--muted)}.connection-bottom{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid var(--line);padding-top:14px}.connection-bottom p{font-size:10px;color:#7a879b;line-height:1.8}.connection-bottom .btn{min-width:92px}.settings-assistant{margin-top:22px}.settings-assistant .between{gap:18px;align-items:flex-start}.settings-assistant h2{font-size:14px}.settings-assistant .sub{font-size:11px;max-width:340px}.settings-nav svg.icon{width:18px;height:18px}
@media(min-width:1201px){.inbox{grid-template-columns:300px minmax(270px,1fr) 285px}}
@media(min-width:1600px){.inbox{grid-template-columns:330px minmax(300px,1fr) 330px}}
@media(min-width:801px) and (max-width:1200px){.inbox{grid-template-columns:290px minmax(270px,1fr)}}
@media(max-width:800px){.conversation-row{padding:18px 17px;min-height:115px}.conversation-title strong{font-size:14px}.conversation-row p.conversation-preview{font-size:12px}.conversation-row .conversation-title time{font-size:10px}.channel-chip{font-size:11px}.handling-label{font-size:10px}.channel-filter{font-size:12px;padding:10px;min-height:42px}.filter-count{font-size:10px}.channel-filters{gap:8px}.settings-channel-card{padding:18px;gap:16px}.connection-platform{gap:10px}.connection-platform h3{font-size:14px}.connection-platform p{font-size:10px}.settings-channel-card .channel-mark{width:36px;height:36px;border-radius:10px}.settings-channel-card .channel-mark svg{width:22px;height:22px}.connection-state .badge{font-size:9px}.connection-state>span:not(.badge){font-size:9px;max-width:120px;text-align:right}.settings-assistant .between{flex-wrap:wrap}.settings-nav .nav-item svg.icon{display:block}.channel-settings-heading h2{font-size:18px}.channel-settings-heading>.badge{white-space:nowrap}.chat-header .channel-chip{font-size:10px}}
@media(max-width:380px){.settings-channel-card{grid-template-columns:1fr}.connection-state{align-items:flex-start;flex-direction:row;flex-wrap:wrap}.connection-state>span:not(.badge){text-align:left}.connection-bottom .btn{min-width:78px}.channel-settings-heading{align-items:flex-start}}
/* v1.2 operational settings: restrained hierarchy, clear actions and responsive forms. */
.fulfillment-overview{display:flex;align-items:center;gap:14px;margin:0 0 22px}.fulfillment-step{display:flex;align-items:center;gap:15px;flex:1;text-align:left;background:#fff;border:1px solid var(--border,#e3e8ef);border-radius:14px;padding:20px;cursor:pointer;color:var(--text)}.fulfillment-step:hover,.fulfillment-step.active{border-color:#000451;background:#f5f9ff}.fulfillment-step small{display:block;color:#67758b;font-size:10px;font-weight:700;letter-spacing:1px;margin-bottom:6px}.fulfillment-step strong{font-size:16px}.fulfillment-step b{margin-left:auto;font-size:28px;font-weight:600;color:#000451}.step-symbol{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:#eef5ff;color:#000451}.flow-arrow{color:#8b99ad}.settings-section{margin-top:24px}.settings-save{border-top:1px solid #e8edf3;margin-top:24px;padding-top:18px}.settings-editor{margin-top:24px}.settings-editor textarea{width:100%;margin-top:12px;line-height:1.8;resize:vertical;min-height:100px}.settings-editor h3,.notification-layout h3{font-size:13px;margin-bottom:7px}.policy-strip{display:flex;gap:12px;background:#f3f7fc;border-radius:10px;padding:16px;margin-top:24px;color:#53657c;font-size:12px;line-height:1.7}.policy-strip svg{flex-shrink:0}.account-approvals{padding:12px 16px;background:#f7f9fc;border-radius:10px}.account-approvals small{display:block;margin-top:5px;color:var(--muted);font-size:11px}.notification-layout{display:grid;grid-template-columns:minmax(320px,1.5fr) minmax(260px,1fr);gap:22px;align-items:start}.notification-side{display:grid;gap:20px}.notification-options{margin-top:14px;display:grid;grid-template-columns:1fr 1fr;gap:10px}.notification-option{display:flex;align-items:flex-start;gap:10px;border:1px solid #e6ebf2;border-radius:10px;padding:14px;cursor:pointer;min-height:88px}.notification-option:has(input:checked){background:#f6f9ff;border-color:#cbdffc}.notification-option input{width:16px;height:16px;margin:2px 0 0;flex-shrink:0;accent-color:#000451}.notification-option strong{font-size:12px}.notification-option small{display:block;color:#6b788c;font-size:11px;line-height:1.6;margin-top:5px}.telegram-preview{background:#edf3f8;border-radius:14px;padding:16px}.telegram-preview>.row{font-size:12px;margin-bottom:12px}.notification-bubble{padding:16px;border-radius:4px 14px 14px 14px;background:white;font-size:12px;line-height:1.9;color:#263448;overflow-wrap:anywhere}.notification-bubble p{margin:12px 0}.notification-bubble>span{display:block;text-align:center;border-top:1px solid #edf1f6;color:#000451;font-weight:600;padding-top:10px}.notification-log{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 0;border-top:1px solid #edf1f6}.notification-log strong{font-size:12px}.notification-log small{display:block;font-size:10px;color:#7b8798;margin-top:4px}.quiet-empty{background:#f7f9fc;padding:25px;text-align:center;font-size:12px;color:#718096;border-radius:10px}.setting-switch input{accent-color:#000451}.notification-layout .eyebrow{font-size:10px;letter-spacing:1.5px;color:#748399;font-weight:700}:focus-visible{outline:3px solid #9cc8ff;outline-offset:3px}.settings-content{min-width:0}
@media(max-width:1200px){.notification-layout{grid-template-columns:1fr}.notification-side{grid-template-columns:1fr 1fr}.notification-options{grid-template-columns:1fr 1fr}.settings-nav{min-width:160px}}
@media(max-width:800px){.notification-side{grid-template-columns:1fr}.notification-options{grid-template-columns:1fr}.notification-option{min-height:72px}.fulfillment-overview{gap:7px}.fulfillment-step{padding:14px 11px;gap:9px}.fulfillment-step strong{font-size:12px}.fulfillment-step small{font-size:8px}.fulfillment-step b{font-size:22px}.step-symbol{display:none}.flow-arrow .icon{width:15px}.settings-save .row{flex-wrap:wrap}.notification-layout{grid-template-columns:minmax(0,1fr)}.settings-editor textarea{font-size:14px}.settings-nav{min-width:0}.settings-section .between{gap:12px}}
@media(max-width:800px){.settings-nav{scrollbar-width:none}.settings-nav::-webkit-scrollbar{display:none}}

/* Automation settings */
.automation-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:22px}.automation-heading h2{font-size:26px;margin:7px 0}.automation-hero{padding:26px;margin-bottom:20px;background:linear-gradient(125deg,#fff 35%,#f0f5ff)}.automation-title{display:flex;align-items:center;gap:16px}.automation-title h3{font-size:19px;margin:0 0 5px}.automation-title p{color:#64748b;margin:0}.automation-logo{display:grid;place-items:center;width:58px;height:58px;border-radius:16px;background:#fff0ef;color:#d64954;font-weight:800;font-size:22px;flex-shrink:0}.automation-flow{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:26px 0;padding:17px;background:#fff;border:1px solid #e3eaf3;border-radius:12px;font-size:13px;font-weight:600}.automation-flow .icon{color:#94a3b8;width:16px;flex-shrink:0}.automation-checkline{display:flex;justify-content:space-between;align-items:center;gap:20px}.automation-checkline p{color:#64748b;font-size:13px;margin:6px 0;max-width:490px;line-height:1.6}.automation-checkline small{color:#64748b}.automation-checkline .btn{flex-shrink:0}.automation-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:20px}.automation-grid h3{margin:0}.automation-grid .sub{margin:12px 0;line-height:1.7}.index-count{display:flex;align-items:baseline;gap:8px;margin:20px 0 8px}.index-count strong{font-size:32px}.index-count span{font-size:12px;color:#64748b}.automation-grid progress{width:100%;height:7px;accent-color:#000451;border:0}.automation-search form{margin-top:20px}.automation-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.search-result-heading{display:flex;align-items:center;gap:12px;margin:22px 0 12px}.search-result-card{padding:18px 0;border-top:1px solid #e5eaf0}.search-result-card p{color:#64748b;line-height:1.7;font-size:13px;white-space:pre-wrap;max-height:150px;overflow:auto}.search-variants{display:flex;flex-wrap:wrap;gap:6px}.automation-link{display:flex;justify-content:flex-end;margin:-8px 0 24px}.automation-search .form-field input{min-width:0;width:100%}
@media(max-width:1000px){.automation-grid{grid-template-columns:1fr}.automation-checkline{align-items:flex-start;flex-direction:column}.automation-heading{align-items:flex-start}}
@media(max-width:600px){.automation-hero{padding:18px}.automation-heading{flex-direction:column;gap:12px}.automation-flow{font-size:11px;gap:6px;padding:13px 9px}.automation-filters{grid-template-columns:1fr}.automation-title h3{font-size:16px}.automation-logo{width:46px;height:46px}.automation-grid{gap:14px}.automation-search .between{align-items:flex-start}.index-count{flex-wrap:wrap}}

/* Settings share one centered frame within the workspace. */
.main.main-settings{--settings-width:1280px;max-width:var(--settings-width);margin-left:max(var(--nav),calc((100% + var(--nav) - var(--settings-width))/2));padding-left:32px;padding-right:32px}
.main-settings>.notice{margin-bottom:24px}
.main-settings .settings-layout{grid-template-columns:190px minmax(0,1fr);gap:28px;align-items:start}
.main-settings .settings-content{max-width:none;width:100%;min-width:0}
.main-settings .settings-nav{position:sticky;top:95px;min-width:0}
.main-settings .settings-content>*{min-width:0}
.technical-stack{display:grid;gap:20px;min-width:0}
.technical-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:20px;align-items:start}
.technical-grid>.card{min-width:0}
.technical-intro h2{font-size:20px}
.technical-plan h2,.technical-workflow h2,.technical-webhooks>h2{font-size:16px}
.technical-plan .detail-line:first-of-type{margin-top:16px}
.technical-plan .settings-save .btn{width:100%}
.technical-stack .settings-section{margin-top:0}
.technical-stack .notice{display:block;line-height:1.8;overflow-wrap:anywhere}
.technical-stack .sub{line-height:1.75}
.technical-stack .btn{min-height:40px}
.technical-stack .setting-switch{gap:16px}
.technical-stack .setting-switch input{flex-shrink:0}
.webhook-grid{display:grid;gap:24px;margin-top:20px}
.webhook-panel+.webhook-panel{border-top:1px solid var(--line);padding-top:24px}
.webhook-panel .between{flex-wrap:wrap}
.webhook-panel input[readonly]{background:#f7f9fc;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;cursor:text}
.webhook-panel .sub{overflow-wrap:anywhere}
@media(min-width:801px) and (max-width:1150px){.main.main-settings{padding-left:24px;padding-right:24px}.main-settings .settings-layout{grid-template-columns:160px minmax(0,1fr);gap:20px}.technical-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:800px){.main.main-settings{width:100%;max-width:none;margin-left:0;margin-right:0;padding:23px 16px 96px}.main-settings .settings-layout{grid-template-columns:minmax(0,1fr);gap:20px}.main-settings .settings-nav{position:static;display:flex;overflow-x:auto;gap:6px;padding-bottom:3px}.main-settings .settings-nav .nav-item{flex:0 0 auto;min-height:44px}.main-settings .page-head p{max-width:none}.technical-grid{grid-template-columns:minmax(0,1fr)}.technical-stack{gap:16px}.technical-stack .card-pad{padding:20px}.technical-intro .between{align-items:flex-start}.technical-intro h2{font-size:18px}.webhook-panel .row{gap:8px}.webhook-panel .row .btn{flex:1 1 auto}.technical-plan .detail-line{flex-wrap:wrap}}

/* Workspace 1.5: bounded media and stable composer */
.product-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(min(100%,250px),320px))!important;gap:22px;justify-content:start}
.product-photo{height:auto!important;aspect-ratio:5/4;background:#f4f6f9;overflow:hidden}.product-photo img,.thumb.big img{width:100%;height:100%;object-fit:contain!important}.thumb.big{height:min(55vh,480px)!important;background:#f4f6f9}.receipt-inline{display:block;max-width:100%;max-height:65vh;object-fit:contain;margin:18px auto}.filter-count,.task .count{display:inline-flex;align-items:center;justify-content:center;min-width:25px;height:25px;padding:0 6px;border-radius:7px;background:#e9efff;color:#2454ba;font-weight:700;margin-left:8px}.inbox{height:calc(100dvh - 150px)!important;min-height:400px!important;overflow:hidden}.chat-panel{display:flex!important;flex-direction:column;min-height:0!important;overflow:hidden}.chat-header,.composer{flex-shrink:0}.chat-log{flex:1;min-height:0!important;overflow-y:auto!important}.composer{position:relative!important;background:white;border-top:1px solid #e7ecf3;padding:14px!important}.composer textarea{min-height:70px;max-height:160px;resize:vertical}.inbox-list,.context-panel{min-height:0;overflow-y:auto}.settings-layout{max-width:1180px;margin-inline:auto}.product-upload-preview{display:flex;gap:10px;flex-wrap:wrap}.product-upload-preview img{width:100px;height:110px;object-fit:contain}.conversation-row{position:relative}@media(max-width:700px){.inbox{height:calc(100dvh - 120px)!important}.product-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))!important}.product-photo{height:auto!important}}

.composer-media{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:8px 0}.composer-media input[type=file]{width:150px;font-size:11px}.receipt-stage img{max-width:100%;max-height:60vh;object-fit:contain}.mobile-receipt{display:block!important}@media(min-width:1200px){.payment-grid .mobile-receipt{display:none!important}}

.notification-item{text-align:left;border:1px solid #e4eaf2;border-radius:12px;padding:14px;background:white;display:grid;gap:8px}.notification-item span{white-space:pre-line;font-size:13px}.notification-item.unread{background:#edf4ff;border-color:#b7d2ff}.notification-count{position:absolute;right:-6px;top:-5px;min-width:18px;height:18px;border-radius:5px;background:#2362dc;color:white;font-size:10px;display:inline-flex;align-items:center;justify-content:center;line-height:1;padding:0 4px;font-variant-numeric:tabular-nums;pointer-events:none}.topbar .icon-btn{position:relative}.filter-count:empty{display:none}
.chat-selection{width:16px!important;height:16px!important;min-width:16px;flex:0 0 16px;margin:0!important;padding:0!important;align-self:center}.conversation-row{gap:10px!important}.conversation-content{min-width:0;flex:1}.composer-media label{cursor:pointer}.composer-media input[type=file]{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}.composer-media{gap:8px}.composer textarea{border:1px solid #e3e9f2;border-radius:12px;min-height:60px;max-height:140px}.composer-status{font-size:11px}.composer-bottom{margin-top:4px}.inbox-list>[data-action=delete-chats]{margin:8px 16px}.notification-item:hover{border-color:#000451}

.attachment-preview img{max-width:110px;max-height:80px;object-fit:contain;border-radius:8px}.attachment-preview audio{height:34px;max-width:100%}.product-upload-preview label{display:flex;align-items:center;gap:5px;font-size:12px}.product-upload-preview input{width:14px;height:14px}.product-upload-preview>div{border:1px solid #e5ebf4;border-radius:10px;padding:6px}.product-upload-preview{margin:12px 0}
/* Product workspace: bounded media, direct editing and inline categories. */
#dialog:has(#product-form){width:min(1080px,calc(100vw - 32px));max-width:1080px;max-height:92dvh;padding:0;border-radius:20px}
#dialog:has(#product-form) .modal-head{padding:24px 28px;border-bottom:1px solid #e6e9ee;margin:0}
#dialog:has(#product-form) .modal-body{padding:0}
#product-form .pe-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(270px,1fr);gap:24px;padding:26px;background:#f7f8fa}
#product-form .pe-main,#product-form .pe-side{min-width:0;display:flex;flex-direction:column;gap:20px}
#product-form .pe-section{padding:22px;border:1px solid #e3e7ed;border-radius:14px;background:white;min-width:0}
#product-form h3{margin:0 0 18px;font-size:15px}#product-form .sub{font-size:12px;line-height:1.6}
#product-form .form-grid{align-items:start;gap:16px}#product-form .form-field{margin-bottom:18px}
#product-form textarea{min-height:126px;resize:vertical}#product-form .modal-actions{position:sticky;bottom:0;margin:0;background:white;padding:18px 28px;border-top:1px solid #e3e7ed;z-index:3}
#product-form #form-error:not(:empty){padding:12px 28px;margin:0}
#product-form .pe-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}
#product-form .pe-photo{position:relative;min-width:0;border:1px solid #e3e7ed;border-radius:12px;overflow:hidden;background:#f8fafc}
#product-form .pe-photo:has(input:checked){border:2px solid #2563eb}
#product-form .pe-photo img{width:100%;height:138px;object-fit:contain;display:block;padding:10px}
#product-form .pe-x{display:grid;place-items:center;width:32px;height:32px;min-width:32px;border:1px solid #d9dfe7;border-radius:50%;background:white;color:#334155;font-size:22px;cursor:pointer}
#product-form .pe-photo>.pe-x{position:absolute;right:5px;top:5px}#product-form .pe-x:hover{color:#b42318;background:#fff1f0}
#product-form .pe-cover{display:flex;align-items:center;justify-content:center;gap:7px;background:white;border-top:1px solid #e3e7ed;padding:9px;font-size:12px;cursor:pointer}#product-form .pe-cover input{width:15px;height:15px;margin:0}
#product-form .pe-drop{width:100%;display:flex;flex-direction:column;align-items:center;gap:8px;padding:24px 12px;border:1px dashed #a8b6cb;border-radius:12px;background:#f8faff;color:#334155;cursor:pointer}#product-form .pe-drop:hover{border-color:#2563eb;background:#eff6ff}#product-form .pe-drop span{font-size:12px;color:#64748b}
#product-form .pe-category{position:relative}#product-form .pe-category-trigger{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:44px;padding:10px 12px;background:white;border:1px solid #d1d8e2;border-radius:8px;text-align:left;font:inherit}
#pe-category-panel{position:absolute;z-index:10;top:100%;left:0;width:max(100%,280px);max-width:calc(100vw - 65px);padding:12px;background:white;border:1px solid #dce2eb;border-radius:12px;box-shadow:0 12px 28px #172b4d20}
#pe-category-list{max-height:190px;overflow:auto;margin:8px 0}.pe-category-row{display:flex;align-items:center;gap:6px;padding:3px}.pe-category-row>button:first-child{flex:1;min-width:0;text-align:left;border:0;background:transparent;padding:10px;border-radius:6px;font:inherit;overflow-wrap:anywhere;cursor:pointer}.pe-category-row>button:first-child:hover{background:#eff6ff}
#pe-category-create,#pe-category-confirm{padding:10px 0;border-top:1px solid #e3e7ed;margin-top:8px}#pe-category-create button{margin-top:8px}#pe-category-confirm p{font-size:12px;line-height:1.6}
#product-form .stock-row{flex-wrap:wrap;gap:8px}#product-form .stock-row small{overflow-wrap:anywhere}#product-form button:focus-visible{outline:3px solid #93c5fd;outline-offset:2px}
@media(max-width:760px){#dialog:has(#product-form){width:calc(100vw - 16px);max-height:96dvh;border-radius:14px}#product-form .pe-layout{grid-template-columns:1fr;padding:14px;gap:16px}#product-form .pe-section{padding:16px}#product-form .form-grid{grid-template-columns:1fr}#dialog:has(#product-form) .modal-head{padding:18px}#product-form .modal-actions{padding:14px 18px}#product-form .pe-photo img{height:108px}}
/* Quiet inbox selection and compact icon composer. */
.chat-selection-bar[hidden],.attachment-tray[hidden]{display:none!important}
.chat-selection-bar{display:flex;align-items:center;gap:6px;padding:6px 12px;background:#eef5ff;border-bottom:1px solid #d9e7fc}
.selection-count{flex:1;font-size:12px;font-weight:600;color:#2869b8}.chat-selection-bar .selection-delete{color:#bf3444}
.conversation-row{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;touch-action:pan-y}
.conversation-row.is-selected{background:#e8f1ff!important;box-shadow:inset 3px 0 #000451,inset 0 0 0 1px #bfd8ff}
.conversation-row.is-selected .avatar{outline:2px solid #000451;outline-offset:3px}
#reply-form.refined-composer{margin:12px;padding:10px 12px;border:1px solid #dce4ee;border-radius:14px;background:#fff;box-shadow:0 2px 8px #17243c06;flex:0 0 auto;min-width:0}
#reply-form .compose-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
#reply-form .compose-top select{width:auto;max-width:160px;border:0;background:transparent;padding:5px 24px 5px 4px;min-height:32px;font-size:12px;font-weight:600;color:#42546f;box-shadow:none}
#reply-form.refined-composer textarea{display:block;border:0;box-shadow:none;resize:vertical;min-height:70px;max-height:160px;padding:10px 4px;margin:0;background:transparent;font-size:13px;line-height:1.6}
#reply-form.refined-composer .composer-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:4px 0 0;padding:0;border:0}
.compose-tools{display:flex;align-items:center;gap:2px}.compose-icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:44px;height:44px;padding:10px;border:0;border-radius:10px;background:transparent;color:#6d7c92;cursor:pointer}
.compose-icon:hover{background:#f0f5fc;color:#000451}.compose-icon .icon{width:19px;height:19px}.compose-icon:focus-visible{outline:3px solid #9dc7ff;outline-offset:2px}
#reply-form .compose-send{background:#000451;color:white;border-radius:11px}#reply-form .compose-send:hover{background:#151b70}#reply-form .compose-send:disabled{opacity:.45}
#reply-form input[type=file][hidden]{display:none!important}
#reply-form .attachment-tray{display:flex;align-items:center;gap:10px;padding:9px;background:#f4f7fb;border:1px solid #e4eaf3;border-radius:10px;margin:6px 0;min-width:0}
#reply-form .attachment-preview{padding:0;margin:0;display:flex;flex-shrink:0;max-width:65%}#reply-form .attachment-preview:empty{display:none}
#reply-form .attachment-preview img{width:64px;height:64px;object-fit:contain;border-radius:6px;background:white}#reply-form .attachment-preview audio{height:36px;width:210px;max-width:100%}
#reply-form .attachment-name{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0}
#reply-form .attachment-tray .compose-icon{margin-left:auto;width:36px;height:36px}
#reply-form .recording-status{font-size:11px;color:#bd3442}#reply-form .is-recording{background:#fff0f2;color:#bf3444}#reply-form.is-note{background:#fffcf2;border-color:#ebd9ac}
#reply-form .error-text:empty{display:none}#reply-form .error-text{margin:5px 4px 0;font-size:12px}
@media(max-width:640px){#reply-form.refined-composer{margin:8px;padding:8px 10px}#reply-form.refined-composer textarea{min-height:62px;max-height:120px}#reply-form .attachment-preview audio{width:160px}}
/* Stable, centred product editor with quiet remove controls. */
#dialog:has(#product-form){margin:auto;inset:0;box-sizing:border-box}
#product-form .pe-x,#product-form .pe-soft-x{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;min-width:32px;padding:0;border:0!important;border-radius:6px!important;background:transparent;box-shadow:none;line-height:1;font-family:Arial,sans-serif;font-weight:400;font-size:22px;color:#8793a5}
#product-form .pe-x:hover,#product-form .pe-soft-x:hover{background:#fff0f1;color:#bd3444}#product-form .pe-photo>.pe-x{background:#ffffffd9;backdrop-filter:blur(4px);right:4px;top:4px}
#product-form .pe-variant-edit{padding:14px 0;border-bottom:1px solid #e6ebf2}#product-form .pe-variant-edit:first-child{padding-top:0}#product-form .pe-variant-edit .form-grid{margin-top:12px;gap:10px}#product-form .pe-variant-edit .form-field{margin-bottom:10px}#product-form .pe-variant-edit .form-field>span{font-size:11px}#product-form .pe-variant-edit .between{align-items:flex-start;flex-wrap:wrap;gap:6px}#product-form #pe-variant-list+button{margin-top:14px}

/* Text entry uses a quiet container focus treatment; toolbar keyboard focus stays visible. */
#reply-form.refined-composer textarea:focus,
#reply-form.refined-composer textarea:focus-visible{outline:none;box-shadow:none;border:0}
#reply-form.refined-composer:focus-within{border-color:#8995a7}
#reply-form.refined-composer.is-note:focus-within{border-color:#a68a54}

.inline-media{white-space:normal;margin-top:10px;min-width:180px;max-width:100%}.inline-media img{display:block;max-width:100%;width:auto;max-height:320px;object-fit:contain;border-radius:10px}.inline-media audio{max-width:100%;width:280px}.voice-player{display:flex;align-items:center;gap:10px;flex-wrap:wrap;width:290px;max-width:100%;padding:10px 0}.voice-play{width:42px;height:42px;border:0;border-radius:50%;background:#000451;color:white;flex-shrink:0}.voice-wave{display:flex;align-items:center;justify-content:space-between;gap:2px;height:36px;position:relative;flex:1;min-width:140px}.voice-wave i{width:3px;background:#a6bfdc;border-radius:2px}.voice-wave i.played{background:#000451}.voice-wave input{position:absolute;inset:0;width:100%;height:100%;opacity:.01;cursor:pointer;margin:0}.voice-wave:focus-within{outline:2px solid #000451;outline-offset:3px}.voice-time{font-size:11px;color:#65758d;width:100%;padding-left:52px}.order-payment-panel{margin-top:20px;border-top:1px solid #e5ebf2;padding-top:18px}.order-payment-panel:empty{display:none}.payment-wait{padding:16px;background:#fff8e9;color:#896318;border-radius:10px;font-size:12px}.payment-history{margin-top:12px;font-size:12px}.payment-history summary{cursor:pointer;padding:12px;background:#f6f8fb;border-radius:8px}.order-payment-panel .receipt-stage{margin:12px 0;background:#f6f8fb}.order-payment-panel .receipt-stage img{width:auto;max-width:100%;max-height:420px;object-fit:contain}.order-payment-panel .notice{font-size:12px}.mobile-nav{grid-template-columns:repeat(4,1fr)}

/* Optical alignment for the lowercase brand glyph. */
.mark>span{display:block;line-height:1;transform:translateY(-.08em)}

/* Catalog: consistent photo proportions, complete images and restrained selection. */
.product-card{min-width:0;position:relative;transition:border-color .15s;user-select:none;-webkit-touch-callout:none;touch-action:pan-y}
.product-card .product-photo img{display:block;width:100%;height:100%;max-height:none;min-height:0;object-fit:contain!important;object-position:center}
.product-card .product-body{padding:16px;display:grid;gap:6px}.product-card .product-body h3{line-height:1.65;overflow-wrap:anywhere}.product-card .product-price{margin:4px 0}.product-card:hover{border-color:#b7c9e2}.product-card:focus-visible{outline:2px solid #000451;outline-offset:3px}
.product-card.is-selected{border-color:#000451;box-shadow:0 0 0 1px #000451}.product-card.is-selected:after{content:'✓';position:absolute;right:12px;top:12px;display:grid;place-items:center;width:25px;height:25px;background:#000451;color:white;border:2px solid white;border-radius:50%;font-size:14px;pointer-events:none}
.product-selection-bar{display:flex;align-items:center;gap:10px;padding:8px 12px;margin-bottom:16px;border:1px solid #dce8fa;border-radius:9px;background:#f0f6ff}.product-selection-bar[hidden]{display:none}.product-selection-bar .selection-delete{margin-left:auto}
@media(max-width:700px){.product-grid{gap:12px}.product-card .product-body{padding:12px}.product-card .product-body .between{align-items:flex-start;gap:4px;flex-wrap:wrap}.product-card .product-photo .badge{left:8px;top:8px}}

/* Scoped quote previews remain stable during live message reconciliation. */
.message-quote{display:flex;align-items:center;gap:10px;width:100%;min-width:0;max-width:100%;margin:0 0 9px;padding:9px 11px;border:0;border-left:3px solid #397ee8;border-radius:7px;background:rgba(33,92,164,.08);color:inherit;text-align:left;cursor:pointer;font:inherit;white-space:normal}
.message-quote:focus-visible{outline:2px solid #397ee8;outline-offset:2px}.quote-copy{display:flex;flex-direction:column;min-width:0;gap:3px}.quote-copy strong{font-size:12px;line-height:1.4;color:#225fae}.quote-copy>span{font-size:12px;line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.quote-thumb{display:flex;align-items:center;justify-content:center;width:44px;height:48px;flex-shrink:0;border-radius:5px;overflow:hidden;background:rgba(255,255,255,.65)}.quote-thumb img{width:100%;height:100%;object-fit:contain}.message.outgoing .message-quote{background:rgba(255,255,255,.15);border-left-color:currentColor}.message.outgoing .quote-copy strong{color:inherit}.message-quote.is-unavailable{display:flex;flex-direction:column;align-items:flex-start;gap:3px;cursor:default;opacity:.75}.message-quote small{font-size:11px}.message.quote-highlight .bubble{animation:quote-focus 1.6s ease-out}@keyframes quote-focus{0%,30%{box-shadow:0 0 0 3px rgba(57,126,232,.45)}100%{box-shadow:0 0 0 3px transparent}}@media(prefers-reduced-motion:reduce){.message.quote-highlight .bubble{animation:none;outline:2px solid #397ee8}}
/* Conversation cart: fixed workspace panel, responsive sheet, stable keyed rows. */
.cart-context{padding:0!important;background:#fff;min-width:0;overscroll-behavior:contain}.cart-workspace{padding:22px 18px}.cart-heading{display:flex;justify-content:space-between;align-items:center}.cart-heading h2{display:flex;gap:9px;align-items:center;margin:5px 0 0;font-size:23px}.cart-heading p{margin:5px 0 0;color:var(--muted);font-size:12px}.cart-count{display:inline-flex;align-items:center;justify-content:center;min-width:25px;height:25px;padding:0 7px;border-radius:8px;background:#e9f1ff;color:#2265c7;font-size:12px;font-weight:700}.cart-mode-note{font-size:11px;color:#687b95;background:#f3f6fa;border-radius:8px;padding:10px 12px;margin:17px 0}.cart-mode-note.is-human{background:#eef8f4;color:#247554}.cart-line{display:grid;grid-template-columns:62px minmax(0,1fr);gap:12px;padding:16px 0;border-bottom:1px solid var(--line)}.cart-photo{width:62px;height:80px;border-radius:10px;background:#f3f5f8;display:flex;align-items:center;justify-content:center;overflow:hidden}.cart-photo img{width:100%;height:100%;object-fit:contain}.cart-line-copy>strong{display:block;font-size:13px;line-height:1.65}.cart-options{display:block;font-size:11px;color:#64748b;margin:4px 0}.cart-line-copy>small{color:#7d8ca0;font-size:11px}.cart-line-bottom{display:flex;align-items:center;justify-content:space-between;gap:5px;margin-top:10px}.cart-line-bottom>strong{font-size:12px;white-space:nowrap}.cart-quantity{display:flex;align-items:center;border:1px solid #dde5ef;border-radius:8px;overflow:hidden}.cart-quantity button{border:0;background:#fff;width:30px;height:32px;color:#426184;font-size:18px}.cart-quantity span{min-width:24px;text-align:center;font-size:12px;font-weight:600}.cart-qty-label{font-size:12px;color:#51647c}.cart-line-actions{display:flex;justify-content:space-between;align-items:center;margin-top:5px}.cart-remove{border:0;background:transparent;color:#9aa5b4;padding:9px}.cart-remove:hover{color:#c94854;background:#fff3f4;border-radius:8px}.cart-item-state{display:block;color:#a86a16;font-size:10px;margin:6px 0}.cart-item-state.unavailable{color:#bd4352}.cart-lines{margin-bottom:16px}.cart-empty{display:flex;flex-direction:column;align-items:center;text-align:center;padding:28px 8px;color:#7b8ba1;gap:10px}.cart-empty strong{color:#41516b}.cart-empty p{font-size:12px;margin:0;max-width:220px}.cart-delivery{border-top:1px solid var(--line);margin-top:22px;padding-top:16px;font-size:12px}.cart-delivery p{color:#65758d;line-height:1.8;overflow-wrap:anywhere}.cart-delivery>span{font-size:11px;color:#62758f}.cart-totals{border-top:1px solid var(--line);padding-top:16px;margin-top:20px}.cart-totals>div{display:flex;justify-content:space-between;gap:12px;font-size:12px;margin-bottom:10px}.cart-totals .cart-total{font-size:16px;margin:15px 0}.cart-totals>small{display:block;text-align:center;color:#8a98ab;font-size:10px;line-height:1.7;margin-top:10px}.cart-missing{padding:10px;background:#fffbf0;color:#946b23;border-radius:8px;font-size:11px;line-height:1.7}.cart-order-history{border-top:1px solid var(--line);padding:18px}.cart-order-history>summary{cursor:pointer;font-weight:600;color:#60738b;font-size:12px}.cart-picker-preview{display:flex;gap:20px;align-items:center;padding:15px;background:#f5f7fa;border-radius:12px;margin:14px 0}.cart-picker-preview img{width:85px;height:100px;object-fit:contain}.cart-picker-preview p{color:#75849a;font-size:12px}.cart-close{display:none}#audience-help{display:block;line-height:1.6;color:#75849a;font-size:11px;margin-top:7px}
@media(min-width:1201px){.inbox{grid-template-columns:275px minmax(285px,1fr) 315px}.inbox:not(.cart-is-open){grid-template-columns:275px minmax(285px,1fr)}.inbox:not(.cart-is-open)>.cart-context{display:none}.cart-close{display:inline-flex}}
@media(max-width:1200px){.inbox.cart-is-open>.cart-context{display:block;position:fixed;z-index:90;right:16px;bottom:16px;top:85px;width:min(390px,calc(100vw - 32px));border:1px solid #dbe3ef;border-radius:18px;box-shadow:0 12px 50px #17243c40;overflow-y:auto}.cart-close{display:inline-flex}}
@media(max-width:800px){.inbox.cart-is-open>.cart-context{top:auto;bottom:0;right:0;width:100%;max-height:85dvh;border-radius:20px 20px 0 0;padding-bottom:env(safe-area-inset-bottom)!important}.cart-workspace{padding:20px}.cart-heading{position:sticky;top:-20px;background:#fff;z-index:1;padding:8px 0}.cart-line{grid-template-columns:76px minmax(0,1fr)}.cart-photo{width:76px;height:95px}.cart-quantity button{width:36px;height:36px}}
.chat-header>.between:first-child{gap:8px;flex-wrap:wrap}.chat-header .row{min-width:0}.chat-header .row>div:last-child{min-width:0}.chat-header .row>div>strong{display:block;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(max-width:800px){.chat-header .row>div>strong{max-width:150px}.cart-line-copy{min-width:0}.cart-line-copy>strong{overflow-wrap:anywhere}}

/* Audit fixes: retain the existing layout while making core controls readable and reachable. */
:root{--blue:#0965cf;--blue-dark:#0756b2;--muted:#58677d}
.nav-label,.eyebrow,.footer-note,.agency{color:#626f83}
.brand small,.table-sub,.table-sub small,.sub,.detail-line>span,.inbox-heading-count{color:#58677d}
.table-order-link{border:0;background:transparent;padding:0;color:#0965cf;font:inherit;font-weight:700;cursor:pointer;text-align:left}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:2px solid #0965cf;outline-offset:3px}
.order-section-heading{margin:22px 0 12px}.order-review{margin:20px 0;padding:16px;border:1px solid var(--line);border-radius:10px;background:var(--bg)}
.order-item+.order-item{border-top:1px solid var(--line);padding-top:14px;margin-top:14px}.order-item>button{margin-bottom:12px}
#order-form .check{align-items:flex-start;margin:16px 0}#order-form input[readonly]{background:#f1f4f8;color:var(--ink)}
#order-form select:invalid{color:#58677d}
/* Small text retains readable contrast without changing the existing layout. */
.global-search,.tab,.conversation-title time,.conversation-preview,.cart-line-copy small { color:#58677d; }
.avatar.mint { color:#32634f; }
.avatar.pink { color:#96485e; }
.avatar.lilac { color:#68528a; }
.cart-item-state { color:#885212; }
.inbox .conversation-content .conversation-title time,
.inbox .conversation-content .conversation-preview,
.inbox .handling-label.human, th { color:#58677d; }
.avatar.sand { color:#795723; }
.avatar { color:#4d5a90; }
.badge,.message time { color:#516178; }
.toast { color:#11684e; }
.toast.error { color:#b02d42; }

@font-face{font-family:ChartMyanmar;src:url("/fonts/ChartMyanmar.ttf?v=7abbbfbe2514105d7ce94937aee3feb2ba89b73a256c8b77b5866bd9b83e32ec") format('truetype');font-display:swap}
.sc-section input,.sc-section select,.sc-section canvas{font-family:ChartMyanmar,system-ui,sans-serif}
.sc-actions{flex-wrap:wrap;gap:8px;margin-top:12px}.sc-actions .btn{flex:1;min-height:44px}.sc-empty{padding:24px;text-align:center;background:#f7f9fc;border:1px dashed #c9d3e2;border-radius:10px;color:#65748b}.sc-thumbnail{display:block;color:#2362b0;text-decoration:none}.sc-thumbnail img{display:block;width:100%;max-height:200px;object-fit:contain;border:1px solid #e3e7ed;border-radius:8px}.sc-thumbnail span{display:block;margin:6px 0}.sc-editor{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;margin-top:20px}.sc-fields{display:flex;flex-direction:column;gap:14px;min-width:0}.sc-preview{padding:16px;background:#f1f5fb;border-radius:12px;min-width:0}.sc-preview canvas{display:block;width:100%;height:auto;margin-top:12px;border:1px solid #dce3ed;background:white}.sc-table-wrap{overflow:auto}.sc-table{width:100%;border-collapse:collapse}.sc-table th,.sc-table td{padding:6px;text-align:left}.sc-table input{min-width:100px;width:100%;min-height:44px}.sc-fields input,.sc-fields select{min-height:44px}.sc-open>.between,.sc-open>p,.sc-open>#sc-summary,.sc-open>.sc-actions{display:none}.pe-layout:has(.sc-open){grid-template-columns:1fr!important}.pe-layout:has(.sc-open)>.pe-main,.pe-side:has(.sc-open)>section:not(.sc-open),#product-form:has(.sc-open)>.modal-actions{display:none!important}.sc-section .error-text{white-space:normal}.sc-section button:focus-visible{outline:3px solid #000451;outline-offset:3px}
@media(max-width:760px){.sc-editor{grid-template-columns:1fr}.sc-open #sc-generator>.between{align-items:flex-start;gap:12px;flex-direction:column}.sc-preview{padding:8px}}

.sc-section{font-family:ChartMyanmar,system-ui,sans-serif}.sc-section .form-field{margin-bottom:0}.sc-section .form-grid{margin-bottom:0}

/* size-chart-ui-fix-1 */
.sc-section button.btn{
 display:inline-flex;align-items:center;justify-content:center;
 text-align:center;gap:8px;min-height:44px;line-height:1.4;
 font-family:inherit;padding:10px 16px
}
.sc-section .sc-drop{
 width:100%;display:flex;flex-direction:column;align-items:center;
 justify-content:center;text-align:center;gap:8px;min-height:136px;
 margin-top:12px;padding:20px;line-height:1.5
}
.sc-section .sc-drop svg{flex-shrink:0}
.sc-section .sc-drop strong{display:block}
.sc-section .sc-drop span{font-size:13px}
.sc-section .sc-table-actions{
 display:flex;justify-content:flex-end;gap:8px;margin-bottom:12px
}
.sc-section .sc-table{
 table-layout:fixed;width:100%;min-width:0
}
.sc-section .sc-table th,.sc-section .sc-table td{
 text-align:center;vertical-align:middle;padding:6px 4px
}
.sc-section .sc-table input{
 box-sizing:border-box;min-width:0;width:100%;
 padding:10px 6px;text-align:center;font-family:inherit
}
.sc-section .sc-preview{align-self:start;text-align:center}
.sc-section .sc-preview canvas{margin:12px auto 0}
.sc-section .sc-thumbnail span{text-align:center}
.sc-section #sc-summary>[data-sc=remove]{display:flex;margin:8px auto}
.sc-section .sc-actions{display:flex}
.sc-section.sc-open>.sc-actions{display:none}
.sc-section #sc-grid{scrollbar-gutter:auto}
@media(max-width:420px){
 .sc-section .sc-table input{font-size:12px;padding:8px 2px}
 .sc-section .sc-table th,.sc-section .sc-table td{padding:4px 2px}
}

/* Size chart remove overlay */
.sc-image-wrap{position:relative}
.sc-section button.sc-remove-chart{
 position:absolute;top:8px;right:8px;z-index:2;
 display:flex;align-items:center;justify-content:center;
 width:44px;height:44px;min-height:44px;padding:0;
 border:1px solid #e2e8f0;border-radius:50%;
 background:#fff;color:#b42318;
 font:28px/1 Arial,sans-serif;
 box-shadow:0 2px 8px #0002;cursor:pointer;
}
.sc-section button.sc-remove-chart:hover{
 background:#fff1f0;border-color:#fda29b;
}
.sc-section button.sc-remove-chart:focus-visible{
 outline:3px solid #000451;outline-offset:3px;
}

/* chart-remove-hover-v1 */
.sc-section button.sc-remove-chart,
.sc-section button.sc-remove-chart:hover{
 background:transparent;border:0;border-radius:0;box-shadow:none;
 color:#64748b;font:24px/1 Arial,sans-serif;
 width:44px;height:44px;top:2px;right:2px;
}
.sc-section button.sc-remove-chart{
 opacity:0;pointer-events:none;
 transition:opacity .15s ease;
}
.sc-section .sc-image-wrap:hover .sc-remove-chart,
.sc-section .sc-image-wrap:focus-within .sc-remove-chart{
 opacity:.55;pointer-events:auto;
}
.sc-section .sc-image-wrap button.sc-remove-chart:hover,
.sc-section .sc-image-wrap button.sc-remove-chart:focus-visible{
 opacity:1;color:#b42318;
}
@media(hover:none){
 .sc-section button.sc-remove-chart{
  opacity:.55;pointer-events:auto;
 }
}

/* Order fulfillment: photos and packing details alongside a quiet financial summary. */
#dialog:has(.order-detail){width:min(1040px,calc(100vw - 32px));max-width:1040px;max-height:92dvh;border-radius:18px}
#dialog:has(.order-detail) .modal-head{padding:20px 26px;z-index:3}
#dialog:has(.order-detail) .modal-head h2{font-size:19px}
#dialog:has(.order-detail) .modal-body{padding:0;background:#f7f9fc}
.od-status{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 26px}
.od-status>div{display:flex;gap:8px;align-items:center}.od-status>span{font-size:12px;color:#61718a}
.order-detail .badge{min-height:28px;justify-content:center;line-height:1.4;padding:5px 10px}
.od-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(290px,1fr);gap:20px;padding:0 26px 24px}
.od-main,.od-summary{display:flex;flex-direction:column;gap:18px;min-width:0}
.od-section{padding:20px;background:white;border:1px solid var(--line);border-radius:12px;min-width:0}
.od-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:18px}.od-heading h3{font-size:14px}.od-heading>span{font-size:11px;color:#61718a}.od-heading>.icon{color:#73819a}
.od-item{display:grid;grid-template-columns:76px minmax(0,1fr) auto;align-items:center;gap:14px;padding:18px 0;border-top:1px solid var(--line)}.od-item:first-child{border-top:0;padding-top:0}.od-item:last-child{padding-bottom:0}
.od-photo{position:relative;width:76px;height:92px;border-radius:9px;overflow:hidden;background:#f1f4f8;border:1px solid #e6ebf2}.od-photo-fallback{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;color:#73819a}.od-photo-fallback small{font-size:10px}.od-photo a{position:absolute;inset:0;display:block;background:#f1f4f8}.od-photo img{display:block;width:100%;height:100%;object-fit:contain}.od-photo a:focus-visible{outline-offset:-3px}
.od-item-copy{min-width:0}.od-item-copy>strong{display:block;font-size:13px;line-height:1.65;overflow-wrap:anywhere}.od-item-copy>small{display:block;margin-top:7px;font-size:11px}.od-options{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px}.od-options>span{font-size:11px;background:#f3f6fa;padding:3px 7px;border-radius:4px;color:#52627b}
.od-item-amount{display:flex;flex-direction:column;align-items:flex-end;gap:12px;font-size:12px;font-variant-numeric:tabular-nums}.od-quantity{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid #dbe7f9;background:#f0f6ff;color:#245ba0;border-radius:6px;min-height:30px;padding:4px 9px}.od-quantity b{font-size:14px}
.od-recipient{display:flex;align-items:center;gap:12px}.od-recipient>div{min-width:0}.od-recipient strong{display:block;line-height:1.9;overflow-wrap:anywhere}.od-recipient span:not(.avatar){display:block;color:#52627b;font-size:12px;margin-top:3px}.order-detail .avatar{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;line-height:1}
.od-address{margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}.od-address>span{font-size:11px;color:#61718a}.od-address p{margin-top:6px;font-size:13px;line-height:1.9;white-space:pre-line;overflow-wrap:anywhere}.od-shipped{display:flex;align-items:center;gap:6px;margin-top:16px;font-size:12px;color:var(--green)}
.od-summary .detail-line{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0;padding:10px 0;font-size:12px}.od-summary .detail-line>strong{text-align:right;font-variant-numeric:tabular-nums}.od-summary .detail-line.total{border-top:1px solid var(--line);margin-top:8px;padding:18px 0;font-size:16px}.od-payment{border-top:1px solid var(--line);padding-top:10px}.od-balance{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#edf6f2;border-radius:8px;margin-top:10px;padding:13px 12px;font-size:12px}.od-balance strong{white-space:nowrap;font-variant-numeric:tabular-nums}.od-cod{font-size:12px;line-height:1.7;color:#61718a;margin-top:8px}.od-history .order-payment-panel{margin:0;padding:0;border:0}.od-history .payment-history:first-child{margin-top:0}.od-history summary{line-height:1.7}.od-history .receipt img{max-width:100%}
.od-actions{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:18px 26px;background:white;border-top:1px solid var(--line);position:sticky;bottom:0;z-index:2}.od-action-secondary{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.od-actions .btn{min-height:44px;line-height:1.4;text-align:center}.od-actions>.primary{min-width:180px}.od-actions .ghost.danger{color:var(--red)}
@media(max-width:760px){#dialog:has(.order-detail){width:calc(100vw - 16px);max-height:95dvh;border-radius:14px}.od-layout{grid-template-columns:1fr;padding:0 16px 18px;gap:16px}.od-status{padding:16px;flex-wrap:wrap}.od-section{padding:16px}.od-main,.od-summary{gap:16px}#dialog:has(.order-detail) .modal-head{padding:16px 18px}.od-actions{padding:14px 16px;flex-direction:column-reverse;align-items:stretch}.od-actions>.primary{width:100%}.od-action-secondary{justify-content:space-between}.od-action-secondary .btn{font-size:12px}.od-item{grid-template-columns:64px minmax(0,1fr) auto;gap:10px}.od-photo{width:64px;height:82px}.od-item-amount{font-size:11px}.od-item-copy>strong{font-size:12px}.od-heading{flex-wrap:wrap}}
@media(max-width:380px){.od-item{grid-template-columns:58px minmax(0,1fr)}.od-photo{width:58px;height:76px;grid-row:span 2}.od-item-amount{grid-column:2;flex-direction:row;align-items:center;justify-content:space-between}.od-actions .btn{white-space:normal}}

/* Workspace audit: readable content, consistent controls and bounded panels. */
.btn,.icon-btn,.badge,.count{line-height:1.4;text-align:center}
.btn{min-height:44px}.icon-btn{min-width:44px;height:44px;flex-shrink:0}
.badge,.count{display:inline-flex;align-items:center;justify-content:center;min-height:26px}
.avatar{display:inline-flex;align-items:center;justify-content:center;line-height:1;flex-shrink:0}
.page-head>div,.row>div,.member-meta,.connection-card,.knowledge-card,.cart-line-copy,.order-card,.notification-side{min-width:0}
.cart-line-copy>strong,.cart-picker-preview strong,.knowledge-card h2,.knowledge-card p,.order-card p,.member-meta strong,.member-meta p,.brand-name,.user-label,.notification-log strong{overflow-wrap:anywhere}
.cart-line-bottom,.cart-totals>div,.order-card .between,.order-card .detail-line{flex-wrap:wrap}
.cart-line-bottom>strong,.cart-totals strong,.order-preview-total>strong{font-variant-numeric:tabular-nums}
.cart-line-copy>strong{line-height:1.75}.cart-delivery p{margin-top:8px}.cart-delivery>span{display:block;margin-top:8px}
.cart-mode-note{font-size:12px;line-height:1.75}.cart-heading{gap:12px}.cart-quantity button{width:40px;height:40px}
.order-preview{display:grid;gap:14px}.order-preview-heading,.order-preview-status,.order-preview-total{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}
.order-preview-heading h3{font-size:13px}.order-preview-heading>span,.order-preview p{font-size:12px;color:var(--muted)}.order-preview-total{border-top:1px solid var(--line);padding-top:12px}.cart-order-history>p{margin-top:10px;line-height:1.7}
.settings-mobile-select{display:none}
.page-head .actions{flex-wrap:wrap}.toolbar{flex-wrap:wrap}.toolbar .search-field{flex:1 1 220px;min-width:0}.toolbar .search-field input{min-width:0}
.settings-save,.settings-save>.row,.connection-actions,.modal-actions{flex-wrap:wrap}
.bar-col>span{white-space:nowrap;font-size:10px}.bar-col{min-width:0}
.table-wrap{max-width:100%;overscroll-behavior-x:contain}.modal-body{overflow-wrap:anywhere}
dialog{scroll-padding-block:85px 110px}.modal-body input,.modal-body select,.modal-body textarea{scroll-margin-block:90px 110px}
/* Respond to the component's width, including narrow hosts and browser zoom. */
.order-detail{container:order-details / inline-size;min-width:0}
@container order-details (max-width:760px){
 .od-layout{grid-template-columns:minmax(0,1fr);padding:0 16px 18px;gap:16px}.od-status{padding:16px;flex-wrap:wrap}.od-section{padding:16px}.od-main,.od-summary{gap:16px}
 .od-actions{padding:14px 16px;flex-direction:column-reverse;align-items:stretch}.od-actions>.primary{width:100%}.od-action-secondary{justify-content:space-between}.od-heading{flex-wrap:wrap}
 .od-item{grid-template-columns:64px minmax(0,1fr) auto;gap:10px}.od-photo{width:64px;height:82px}
}
@container order-details (max-width:380px){
 .od-item{grid-template-columns:58px minmax(0,1fr)}.od-photo{width:58px;height:76px;grid-row:span 2}.od-item-amount{grid-column:2;flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:wrap}.od-actions .btn{white-space:normal}
}
@media(max-width:800px){
 .main-settings .settings-nav{display:none}.settings-mobile-select{display:grid;gap:8px;margin-bottom:4px;font-size:12px;font-weight:600;color:var(--muted)}.settings-mobile-select select{background:white;color:var(--ink);min-height:48px}
 input:not([type=checkbox]):not([type=radio]),select,textarea,#reply-form.refined-composer textarea,#reply-form .compose-top select,#product-form input,#product-form select,#product-form textarea{font-size:16px}
 .page-head .actions .btn,.member-actions .btn,.chat-header .btn{min-height:44px;font-size:12px}
 .page-head p{font-size:12px;line-height:1.7}.product-card .product-body .sub,.product-card .stock-info,.cart-options,.cart-line-copy>small{font-size:12px}
 .mobile-nav button{font-size:11px}.mobile-brand{min-width:0;max-width:55%}.mobile-brand .brand-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .topbar{gap:10px}.topbar>.row{gap:6px}.topbar .header-divider{display:none}
 .toolbar .search-field{flex-basis:100%}.toolbar .search-field input{width:100%}.toolbar>.sub{margin-right:auto}
 .cart-quantity button{width:44px;height:44px}.chat-header .row>div>strong{max-width:160px;line-height:1.8}
 .order-card .between,.order-card .detail-line{gap:10px}.order-card .detail-line>span{flex:1;min-width:100px}
 .product-card .product-body h3{font-size:14px}.settings-layout{gap:18px}
}
@media(max-width:480px){
 .page-head{flex-direction:column;align-items:stretch;gap:16px}.page-head p{max-width:none}.page-head .actions{justify-content:flex-start}.page-head .actions:empty{display:none}.page-head .actions .btn{min-height:44px;font-size:13px}
 .notice{flex-wrap:wrap;line-height:1.7}.notice .btn{margin-left:0;min-height:44px}.notice>svg{align-self:flex-start;margin-top:3px}
 .chart-heading{align-items:flex-start;gap:12px;flex-wrap:wrap}
 .modal-actions>.btn{flex:1;min-width:0;white-space:normal;overflow-wrap:anywhere}.modal-head{gap:12px}.modal-head h2{overflow-wrap:anywhere}
 .od-summary .detail-line{flex-wrap:wrap}.od-balance{flex-wrap:wrap}.od-item-copy>strong{font-size:13px}.od-item-copy>small,.od-options>span{font-size:12px}
}

/* Avoid doubled field margins within form grids. */
.form-grid{align-items:start;gap:16px;margin-block:16px}
.form-grid>.form-field,#product-form .form-grid>.form-field{margin:0}

.pe-variant-edit[hidden]{display:none}
.pe-variant-deleted{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px;margin-bottom:12px;border:1px dashed var(--line);border-radius:10px;background:var(--bg)}
.pe-variant-deleted>div{min-width:0;overflow-wrap:anywhere}

#product-form .pe-variant-edit{position:relative}
#product-form .pe-variant-edit>.between{min-height:32px;padding-right:40px;align-items:center}
#product-form .pe-variant-minus{position:absolute;top:14px;right:0;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;min-width:32px;min-height:32px;padding:0;border:0;border-radius:0;background:transparent;color:var(--muted);font-size:22px;font-weight:400;line-height:1;box-shadow:none}
#product-form .pe-variant-edit:first-child>.pe-variant-minus{top:0}
#product-form .pe-variant-minus:hover:not(:disabled){color:var(--red);background:transparent}
@media (hover:hover) and (pointer:fine) and (min-width:761px){
 #product-form .pe-variant-minus{opacity:0;pointer-events:none}
 #product-form .pe-variant-edit:hover>.pe-variant-minus,#product-form .pe-variant-edit:focus-within>.pe-variant-minus{opacity:1;pointer-events:auto}
 #product-form .pe-variant-edit:hover>.pe-variant-minus:disabled,#product-form .pe-variant-edit:focus-within>.pe-variant-minus:disabled{opacity:.45}
}
@media (hover:none),(pointer:coarse),(max-width:760px){
 #product-form .pe-variant-edit>.between{min-height:44px;padding-right:50px}
 #product-form .pe-variant-minus{width:44px;height:44px;min-width:44px;min-height:44px}
}

/* Minimal workspace: neutral surfaces, system type and Facebook blue actions. */
/* Preserve the original component radii and cool workspace background. */
:root{--blue:#000451;--blue-dark:#0866d9;--ink:#1d1d1f;--muted:#626970;--line:#e5e7eb;--bg:#f6f8fb;--green:#15704f;--amber:#8a5608;--red:#c43246;--surface:#fff;--soft-blue:#edf4ff;--nav:224px}
body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,ChartMyanmar,sans-serif;color:var(--ink);background:var(--bg);-webkit-font-smoothing:antialiased}
h1,h2,h3{color:var(--ink);font-weight:650}h1{font-size:34px;line-height:1.2;letter-spacing:-1.1px}h2{font-size:17px;letter-spacing:-.3px}h3{font-size:15px;letter-spacing:-.15px}
svg.icon{width:20px;height:20px;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle;flex:none;pointer-events:none}
.sub,small{color:var(--muted);line-height:1.6}.num,.value,.usage-num,.product-price{font-variant-numeric:tabular-nums}
:where(button,a,input,select,textarea,summary,[tabindex]):focus-visible{outline:3px solid #000451;outline-offset:3px}
.sidebar{padding:26px 14px 20px;background:#fff;border-color:var(--line)}.brand{gap:10px;padding:0 12px 30px}.brand-name{font-size:19px;letter-spacing:-.65px}.brand small{font-size:10px;letter-spacing:.8px;color:var(--muted)}
.mark{background:var(--blue);box-shadow:none}.nav-label{font-size:10px;letter-spacing:1.4px;color:var(--muted);padding:0 14px;margin:18px 0 10px}.nav-item{min-height:46px;color:#51555d;font-size:14px;padding:12px 14px;gap:12px;margin:4px 0}.nav-item:hover{background:var(--bg)}.nav-item.active{color:var(--blue-dark);background:var(--soft-blue);font-weight:650}.nav-item .count{color:var(--blue-dark);background:#e0ecff;}.agency{font-size:10px;color:var(--muted);line-height:1.6;padding:20px 14px 0}
.topbar{height:76px;background:rgba(255,255,255,.92);border-bottom:1px solid var(--line);padding:0 36px}.global-search{font-size:13px;font-weight:400;color:var(--muted);border:0;gap:10px}.key{border-color:var(--line);color:var(--muted)}.header-divider{background:var(--line)}.user-label{font-weight:600;font-size:13px}.user-label small{font-weight:400;color:var(--muted)}.avatar{font-weight:600;background:#eff1f5;color:#515b69}.avatar.mint{background:#e9f2ed;color:#35694e}
.demo-ribbon{background:#eef4fd;border-color:#e2ebfa;color:#52647e;font-size:11px}.demo-ribbon button{color:var(--blue-dark)}
.main{padding:36px 36px 56px}.page-head{margin-bottom:28px;gap:24px;align-items:center}.page-head p{font-size:14px;color:var(--muted);line-height:1.7;margin-top:9px;max-width:680px}.page-head .actions{gap:10px}.eyebrow{color:var(--muted);letter-spacing:1.3px}
.card{border:1px solid var(--line);box-shadow:0 2px 6px #1d1d1f02}.card-pad,.chart-card{padding:26px}.rule{border-color:var(--line)}
.btn{border:1px solid #dadde2;min-height:42px;padding:10px 16px;font-size:13px;font-weight:600;background:#fff;color:var(--ink);box-shadow:none;gap:8px;line-height:1.35}.btn:hover{background:var(--bg);border-color:#bfc6d0}.btn.primary{background:var(--blue);border-color:var(--blue);color:white;box-shadow:0 2px 3px #00045118}.btn.primary:hover{background:var(--blue-dark);border-color:var(--blue-dark)}.btn.ghost{border-color:transparent;background:transparent;color:var(--muted)}.btn.ghost:hover{background:#edf0f5;color:var(--ink)}.btn.danger{color:var(--red);border-color:#f0cfd5;background:#fff}.btn.danger:hover{background:#fff4f5}.btn.small{min-height:36px;padding:7px 12px;font-size:12px}.btn:disabled{box-shadow:none;opacity:.5}.icon-btn{color:var(--muted);}.icon-btn:hover{background:#f1f3f6;color:var(--ink)}
input,select,textarea{border-color:#d6d9df;background:#fff;color:var(--ink);min-height:44px;padding:11px 13px;font-size:14px}input[type=checkbox],input[type=radio],input[type=range]{min-height:0}input::placeholder,textarea::placeholder{color:#777f8b;opacity:1}input:focus,select:focus,textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px #00045112}input:disabled{background:var(--bg);color:var(--muted)}.form-field>span{font-size:13px;font-weight:500;color:#51555d}.form-field small{font-size:12px}.form-grid{gap:18px}
.badge{padding:5px 9px;font-size:11px;font-weight:600;letter-spacing:0;line-height:1.4}.badge.blue{color:#075fcb;background:#edf4ff}.badge.green{color:#116847;background:#eaf5ef}.badge.amber{color:#825009;background:#fff5e6}.badge.red{color:#ab2339;background:#fff0f2}
.notice{font-size:13px;line-height:1.7;border-color:#f2dfbc;background:#fffbf4;padding:14px 18px}.notice.info{background:#f2f7ff;border-color:#dce9fd;color:#265b99}.notice .btn{flex-shrink:0}
.stats{gap:18px;margin:24px 0}.stat{padding:24px;min-width:0}.stat .stat-icon{width:36px;height:36px;background:#f0f5fe;color:var(--blue-dark);margin-bottom:22px}.stat .label{font-size:13px;color:var(--muted);line-height:1.5}.stat .value{font-size:34px;line-height:1.2;letter-spacing:-1px;font-weight:600;margin:10px 0}.stat-note{font-size:11px;color:var(--muted);line-height:1.6}.stat-dot{display:none}
.dashboard-grid{gap:22px}.lower-grid{gap:22px;margin-top:22px}.chart-heading{align-items:flex-start}.chart-legend,.chart-axis,.chart-axis span,.bar-col span{color:var(--muted);font-size:11px}.bar{background:var(--blue);opacity:.82}.bar-chart{border-color:var(--line)}.usage-num{font-size:36px;font-weight:600;letter-spacing:-1px}.usage-num span{color:var(--muted);font-size:16px;font-weight:400}.usage-meta{font-size:12px;color:var(--muted)}.progress{height:6px;background:#edf0f4}.progress i{background:var(--blue)}.task{padding:16px 0;color:var(--ink);font-size:12px;border-color:var(--line)}.metric-line{gap:12px}.metric-line label,.metric-line strong{font-size:12px}.footer-note{color:var(--muted);font-size:11px;line-height:1.7}
.fulfillment-overview{gap:12px}.fulfillment-step{border-color:var(--line);padding:20px;background:#fff;min-width:0}.fulfillment-step.active{border-color:#afcffe;background:#f1f6ff}.fulfillment-step small{font-size:10px;letter-spacing:.8px;color:var(--muted)}.fulfillment-step strong{font-size:15px}.fulfillment-step b{font-size:28px;color:var(--blue-dark)}.step-symbol{background:#f0f5fd;color:var(--blue-dark);}.flow-arrow{color:var(--muted)}
.toolbar{padding:20px 22px;gap:14px}.search-field input{background:#f9fafb;border-color:var(--line);}.tabs{gap:26px;padding:0 22px}.tab{font-size:13px;color:var(--muted);padding:15px 0}.tab.active{color:var(--blue-dark);border-color:var(--blue)}th{background:#fafafb;color:var(--muted);font-size:11px;letter-spacing:.6px;font-weight:600;padding:16px 20px}td{font-size:13px;padding:18px 20px;border-color:#eff0f2}.table-wrap tbody tr:hover{background:#fafbfd}.order-card{padding:18px;border-color:var(--line)}
.product-grid{gap:22px}.product-card{border-color:var(--line);box-shadow:none}.product-card:hover{border-color:#b6cbed;box-shadow:0 6px 20px #1d1d1f07}.product-photo{height:230px;background:#f0f1f4}.product-card .product-body{padding:20px;gap:8px}.product-card .product-body h3{font-size:16px;line-height:1.55;font-weight:600}.product-price{font-size:15px;font-weight:650}.stock-info{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:6px}.stock-dot{width:5px;height:5px;border-radius:50%;display:inline-block;background:currentColor}.product-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:#68717d;font-size:12px;height:100%;width:100%}.product-photo .product-placeholder svg.icon,.thumb .product-placeholder svg.icon{width:32px;height:32px;color:#929aa5;stroke-width:1.4}.thumb .product-placeholder span{display:none}
.settings-layout{gap:28px}.settings-nav .nav-item{font-size:13px;}.settings-section h2,.settings-editor h3{letter-spacing:-.2px}.setting-switch{padding:19px 0;border-color:var(--line)}.setting-switch strong{font-size:14px;font-weight:600}.setting-switch span,.settings-assistant .sub{font-size:12px;line-height:1.65}.member-row{padding:20px 24px;border-color:var(--line)}.member-meta strong{font-size:14px}.member-meta small{font-size:12px}.knowledge-card{padding:24px;}.knowledge-card p{font-size:13px;line-height:1.8;color:var(--muted)}
.channel-mark{background:var(--soft-blue);}.channel-mark svg{fill:currentColor;stroke:none}.channel-mark.messenger{color:#0866ff}.channel-mark.telegram{color:#1788b9}.channel-mark.tiktok{color:#161719}.connection-platform p,.connection-bottom p,.connection-state>span:not(.badge){font-size:12px;line-height:1.6}.channel-chip{font-size:11px;color:var(--muted)}.channel-chip .channel-mark{background:transparent}.channel-chip .channel-mark svg{width:14px;height:14px}
.inbox{border-color:var(--line);box-shadow:0 3px 14px #1d1d1f03}.inbox-list{background:#fff}.inbox-list-head{padding:22px}.conversation-row{border-color:#f0f1f3}.conversation-row:hover{background:#f8faff}.conversation-row.active{background:#edf4ff}.conversation-title strong{color:var(--ink);font-size:14px}.conversation-row p.conversation-preview{color:var(--muted);font-size:12px;line-height:1.7}.conversation-title time,.conversation-meta,.handling-label{color:var(--muted)}.chat-header{background:#fff;border-color:var(--line)}.chat-log{background:#fff}.bubble{background:#f1f2f5;font-size:14px;line-height:1.8;color:var(--ink)}.outgoing .bubble{background:#edf4ff;color:#194a87}.message time{color:var(--muted)}#reply-form.refined-composer{border-color:#dfe3e9;box-shadow:0 2px 10px #1d1d1f04}.cart-workspace{background:#fff}.cart-line,.cart-delivery{border-color:var(--line)}.cart-line-copy>strong{font-weight:600}.cart-mode-note{background:#f5f7fa;color:var(--muted);}.cart-qty-label{}.cart-missing{color:#885513}
#dialog{border:1px solid #e5e7eb;box-shadow:0 24px 100px #15171e26}#dialog::backdrop{background:#1c243740;backdrop-filter:blur(6px)}.modal-head{padding:24px 28px;border-color:var(--line);background:#fff}.modal-head h2{font-size:18px}.modal-body{padding:12px 28px 28px}.modal-actions{gap:12px;padding-top:24px}.modal-actions .btn{min-height:44px}.pe-section,.od-card{border-color:var(--line);background:#fff}.od-item{border-color:var(--line)}.od-total strong,.od-total b{letter-spacing:-.4px}.od-item-copy strong{font-weight:600}.pe-drop{background:#fafbfd;border-color:#cbd5e5}#product-form .pe-category-trigger{}.pe-category-trigger .icon{width:16px;height:16px}.pe-x .icon,.sc-remove-chart .icon{width:17px;height:17px}#product-form .pe-variant-minus svg.icon{width:18px;height:18px;stroke-width:1.8}.sc-thumbnail span{display:flex;align-items:center;gap:6px}.sc-thumbnail span .icon{width:14px;height:14px}
.login-layout{background:#fff}.login-art{background:#f5f7fb;color:var(--ink);border-right:1px solid var(--line)}.login-art h1{color:var(--ink);font-size:48px;line-height:1.15;letter-spacing:-1.8px}.login-art p,.login-art small{color:var(--muted)}.login-art .eyebrow{color:var(--blue-dark)}.login-card{background:#fff}.login-inner h1{font-size:34px}.login-note{color:var(--muted)}.login-art .brand-name{color:var(--ink)}.login-art .mark{color:#fff;background:var(--blue)}
.toast{padding:14px 20px;box-shadow:0 8px 32px #1d1d1f14;font-size:13px}.empty{padding:48px 24px}.empty h3{font-size:17px}.empty p{font-size:13px;line-height:1.8}.voice-play .icon{width:18px;height:18px}.more-card{}
@media(min-width:1600px){.main{padding-inline:48px}}
@media(min-width:801px) and (max-width:1200px){:root{--nav:196px}.main{padding:28px 24px 44px}.topbar{padding:0 24px}.stat{padding:18px}.stat .value{font-size:28px}.product-photo{height:200px}}
@media(max-width:800px){
 :root{--nav:0px}.topbar{height:66px;padding:0 18px}.topbar .brand-name{font-size:18px}.main{padding:26px 18px 108px}.page-head{margin-bottom:24px;gap:18px;align-items:stretch}.page-head h1{font-size:30px;letter-spacing:-.8px}.page-head p{font-size:13px;max-width:100%;margin-top:8px}.page-head .actions .btn{font-size:13px;padding:10px 14px}.demo-ribbon{font-size:10px;line-height:1.5;padding:7px 12px}.card{}.card-pad,.chart-card{padding:20px}.stats{gap:12px}.stat{padding:18px}.stat .value{font-size:30px}.stat .label{font-size:12px}.stat-note{font-size:11px}.stat .stat-icon{margin-bottom:14px}.stat:nth-child(3) .stat-icon{float:none;margin-bottom:14px}.stat:nth-child(4){display:block}.dashboard-grid,.lower-grid{gap:16px}.lower-grid>div:first-child{display:block}.task{font-size:12px}.usage-num{font-size:32px}
 .product-grid{gap:14px}.product-photo{height:160px}.product-card .product-body{padding:14px;gap:6px}.product-card .product-body h3{font-size:14px;line-height:1.5}.product-price{font-size:13px}.stock-info{font-size:11px}.product-photo .product-placeholder svg.icon{width:28px;height:28px}.product-card .product-body .sub{font-size:11px}
 .fulfillment-step{padding:16px}.fulfillment-step strong{font-size:13px}.fulfillment-step b{font-size:24px}.toolbar{padding:16px}.tabs{padding:0 16px;gap:22px}.tab{font-size:12px}.order-card{padding:16px}.notice{padding:13px 14px;font-size:12px;flex-wrap:wrap}.notice .btn{margin-left:auto}.settings-mobile-select select{background:#fff}.member-row{padding:18px}.member-actions{gap:8px}.settings-channel-card{padding:18px}.settings-channel-card .channel-mark{background:#f2f5fa}.settings-channel-card .channel-mark svg{width:21px;height:21px}
 .inbox{border:0;box-shadow:none}.inbox-list{}.inbox-list-head{padding:20px}.chat-header{padding:14px}.bubble{font-size:14px}.cart-workspace{}.modal-head{padding:18px 20px}.modal-body{padding:8px 20px 24px}#dialog{}.modal-actions{gap:10px}.form-field>span{font-size:13px}.form-field input,.form-field textarea,.form-field select{font-size:16px}.login-inner h1{font-size:30px}
 .mobile-nav{background:rgba(255,255,255,.96);border-color:var(--line);backdrop-filter:blur(20px);padding:8px 8px max(9px,env(safe-area-inset-bottom))}.mobile-nav button{min-height:50px;font-size:10px;color:#656e7b;gap:5px}.mobile-nav button.active{color:var(--blue-dark)}.mobile-nav button.active:before{display:none}.mobile-nav button.active .icon{background:#edf4ff;border-radius:4px;box-shadow:0 0 0 5px #edf4ff}.mobile-nav .icon{width:21px;height:21px}
}
@media(max-width:380px){.main{padding-inline:14px}.product-grid{gap:10px}.product-card .product-body{padding:12px}.product-photo{height:140px}.page-head h1{font-size:28px}.stat .value{font-size:27px}.stat .label{font-size:11px}.fulfillment-step{padding:14px}.notice .btn{margin-left:0}.metric-line{gap:8px}}
@media(prefers-reduced-motion:no-preference){.btn,.icon-btn,.nav-item,.product-card{transition:background-color .15s ease,border-color .15s ease,box-shadow .15s ease}}

.cart-quantity button .icon{width:16px;height:16px}.cart-quantity button{display:inline-flex;align-items:center;justify-content:center}
/* Verified text contrast while retaining Facebook blue for brand accents. */
.blue,a{color:var(--blue-dark)}
.btn.primary{background:var(--blue-dark);border-color:var(--blue-dark)}
.btn.primary:hover{background:#0759c0;border-color:#0759c0}
.product-placeholder,.connection-bottom p,.notification-option small,.preview-note,#product-form #audience-help{color:#626970}
.stamp{color:#99535e;border-color:#99535e}
.notification-preview .eyebrow,.notification-side .eyebrow,.quiet-empty{color:var(--muted)}
.notification-bubble>span{color:var(--blue-dark)}
.receipt-paper .stamp{color:#99535e;border-color:#99535e}

/* One saved conversation-mode switch; status remains explicit when automation is paused. */
.conversation-ai-control{min-width:0;display:flex;flex-direction:column;gap:2px;max-width:calc(100% - 72px)}
.conversation-ai-row{display:flex;align-items:center;gap:8px;min-height:44px}
.conversation-ai-label{font-size:13px;font-weight:650;color:#172b4d}
.conversation-ai-switch{display:inline-flex;align-items:center;justify-content:center;flex:none;width:48px;height:44px;padding:0;border:0;background:transparent;border-radius:8px;cursor:pointer}
.conversation-ai-track{display:flex;align-items:center;width:40px;height:24px;padding:3px;border-radius:20px;background:#637085;transition:background .15s}
.conversation-ai-track>span{width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0003;transition:transform .15s}
.conversation-ai-switch[aria-checked="true"] .conversation-ai-track{background:#0866d9}
.conversation-ai-switch[aria-checked="true"] .conversation-ai-track>span{transform:translateX(16px)}
.conversation-ai-switch:focus-visible{outline:3px solid #0866d9;outline-offset:2px}
.conversation-ai-switch:hover:not([aria-disabled="true"]){background:#edf4ff}
.conversation-ai-switch[aria-disabled="true"]{cursor:wait;opacity:.65}
.conversation-ai-switch:disabled{cursor:not-allowed}
.conversation-ai-value{font-size:12px;font-weight:650;min-width:20px;color:#334155}
.conversation-ai-status{font-size:11px;line-height:1.5;color:#526178;overflow-wrap:anywhere}
.conversation-ai-error{font-size:12px;line-height:1.5;color:#b42318;overflow-wrap:anywhere}
@media(prefers-reduced-motion:reduce){.conversation-ai-track,.conversation-ai-track>span{transition:none}}

/* Sender identity and explicit customer-data deletion. */
.sender-switch{display:inline-flex;gap:3px;padding:3px;background:#edf1f7;border:1px solid #d9e1ec;border-radius:10px}
.sender-switch button{min-height:38px;min-width:66px;border:0;border-radius:7px;background:transparent;color:#46566e;font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.sender-switch button[aria-pressed=true]{background:#fff;color:#173c72;box-shadow:0 1px 4px #16335b20}
.sender-switch button:focus-visible,.deletion-option:focus-within{outline:3px solid #709be5;outline-offset:3px}
.sender-caption{font-size:12px;color:#56677e;flex:1}.refined-composer.is-test{border-color:#7ba6e8;background:#f8fbff}
.compose-top:has(.sender-switch){flex-wrap:wrap;gap:10px}.compose-top:has(.sender-switch) select[name=kind]{max-width:130px}
.test-quote{display:flex;align-items:center;gap:10px;padding:8px 0;font-size:12px;color:#56677e}.test-quote select{min-width:0;max-width:100%;flex:1;border:1px solid #d9e1ec;border-radius:7px;padding:8px;background:#fff;color:#344761}
.deletion-intro{color:#52627a;line-height:1.65;margin:8px 0 20px}.deletion-options{border:0;padding:0;margin:0;display:grid;gap:12px}
.deletion-option{display:flex;align-items:flex-start;gap:12px;border:1px solid #d9e1ec;border-radius:12px;padding:16px;cursor:pointer;background:#fff}
.deletion-option:has(input:checked){border-color:#5488d8;background:#f5f9ff;box-shadow:0 0 0 1px #5488d8}
.deletion-option-danger:has(input:checked){border-color:#be3d43;background:#fff7f7;box-shadow:0 0 0 1px #be3d43}
.deletion-option input{margin-top:3px;width:18px;height:18px;flex:none;accent-color:#315eab}.deletion-option-danger input{accent-color:#b7333a}
.deletion-option strong,.deletion-option small,.deletion-option em{display:block}.deletion-option strong{font-size:14px;color:#21344e}.deletion-option small{font-size:13px;color:#52627a;line-height:1.6;margin-top:5px}.deletion-option em{font-size:12px;font-style:normal;font-weight:600;color:#315e67;margin-top:8px}.deletion-option-danger em{color:#a42e36}
.deletion-footnote{font-size:12px;line-height:1.6;color:#64738a;margin:16px 0}.deletion-confirm:not([hidden]){display:grid;gap:8px;margin:16px 0;font-size:13px}.deletion-confirm input{padding:12px;border:1px solid #c6cfdd;border-radius:8px;font:inherit}
.deletion-check{display:flex;align-items:flex-start;gap:10px;font-size:13px;line-height:1.6}.deletion-check input{margin-top:4px;min-width:17px;min-height:17px}
.deletion-actions{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid #e4e9f1;padding-top:18px;margin-top:20px}.deletion-actions .danger{background:#b7323b;color:#fff;border-color:#b7323b;min-height:44px}.deletion-actions .danger:hover{background:#962831}
@media(max-width:600px){.sender-caption{flex-basis:100%;order:3}.deletion-option{padding:13px}.deletion-actions .btn{flex:1}}
.deletion-check input{width:17px;height:17px;flex:0 0 17px;padding:0}
.deletion-options .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
#dialog:has(#customer-delete-form){max-height:90dvh}
#dialog:has(#customer-delete-form) .modal-body{padding:22px 28px}
#customer-delete-form .deletion-actions{position:sticky;bottom:-22px;background:#fff;padding:16px 0 22px;z-index:1}
@media(max-width:600px){#dialog:has(#customer-delete-form) .modal-body{padding:16px}#customer-delete-form .deletion-actions{bottom:-16px;padding-bottom:16px}}

/* Inbox counts stay legible at narrow desktop/tablet widths. */
.channel-filter{display:grid;grid-template-columns:16px minmax(0,1fr) auto;gap:5px;min-width:0;padding:8px}
.channel-filter>span:not(.channel-mark):not(.filter-count):not(.channel-short){min-width:0;overflow-wrap:normal;line-height:1.35}
.channel-filter .filter-count,.inbox-list-head .btn .filter-count{flex-shrink:0;min-width:22px;height:22px;margin-left:0;padding:0 4px;white-space:nowrap;font-variant-numeric:tabular-nums}
.inbox-list-head>.row{gap:6px;flex-wrap:wrap}
.inbox-list-head .between{flex-wrap:wrap;gap:8px}
.chat-cart-button{min-width:44px;min-height:40px}
/* Inbox master/detail and compact order disclosure. */
.inbox.inbox-empty{grid-template-columns:275px minmax(0,1fr)}
.inbox-list,.chat-panel{min-width:0}
.inbox-list-head{padding:18px 16px}
.channel-filter{min-height:44px;font-size:11px}
.channel-filter.all{grid-column:1/-1}
.chat-load-status{padding:20px;color:var(--muted);display:flex;align-items:center;gap:12px;font-size:13px}
.cart-workspace{padding:20px 18px 0}
.cart-heading{align-items:flex-start}
.cart-heading h2{font-size:17px;line-height:1.5;margin:4px 0 0;letter-spacing:-.2px}
.cart-heading p{font-size:11px}
.cart-mode-note{font-size:11px;line-height:1.6;padding:9px 10px;margin:14px 0 4px}
.cart-lines{margin-bottom:12px}
.cart-line{grid-template-columns:56px minmax(0,1fr);gap:10px;padding:14px 0}
.cart-photo{width:56px;height:72px;border-radius:8px}
.cart-line-copy>strong{font-size:12px;overflow-wrap:anywhere}
.cart-line-bottom{margin-top:7px}
.cart-empty{padding:24px 8px;gap:8px}
.cart-delivery{padding:16px 0;margin-top:18px}
.cart-delivery h3{font-size:13px}
.cart-delivery .delivery-source{font-size:11px;margin:8px 0;color:#526178}
.delivery-fields{margin:12px 0 0;display:grid;gap:10px}
.delivery-fields>div{display:grid;grid-template-columns:64px minmax(0,1fr);gap:10px;align-items:baseline}
.delivery-fields dt{font-size:11px;color:#637085}
.delivery-fields dd{margin:0;font-size:12px;color:var(--ink);overflow-wrap:anywhere;line-height:1.7;white-space:pre-line}
.cart-delivery .delivery-empty{margin-top:10px;font-size:12px}
.cart-delivery .delivery-confirm-note{margin-top:12px;padding-left:10px;border-left:2px solid #cad8ed;font-size:11px;line-height:1.6}
.delivery-payment{display:flex;justify-content:space-between;gap:12px;padding-top:12px;margin-top:12px;border-top:1px solid var(--line);font-size:11px}
.delivery-payment>strong{text-align:right}
.cart-totals{margin-top:0;padding-bottom:16px}
.cart-totals .cart-total{font-size:15px}
.cart-order-history{padding:18px;border-top:1px solid var(--line)}
.order-preview{gap:10px}
.order-preview-link{display:grid;gap:8px;width:100%;border:1px solid #dce3ed;border-radius:10px;padding:12px;background:#fff;text-align:left;color:var(--ink)}
.order-preview-link:hover{background:#f7faff;border-color:#9dbbe5}
.order-preview-top,.order-preview-bottom{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
.order-preview-top>strong{font-size:13px;color:var(--blue-dark)}
.order-preview-top>.icon{width:16px;height:16px;color:#637085}
.order-preview-meta{font-size:11px;color:#637085}
.order-preview-bottom>strong{font-size:12px;font-variant-numeric:tabular-nums}
@media(min-width:801px) and (max-width:1200px){.inbox,.inbox.inbox-empty{grid-template-columns:260px minmax(0,1fr)}}
@media(max-width:1200px){.inbox.cart-is-open:has(>.cart-context)::before{content:'';position:fixed;inset:0;z-index:89;background:#17243c40}}
@media(max-width:800px){
 .inbox:not(.chat-open)>.chat-panel{display:none!important}
 .inbox:not(.chat-open)>.cart-context{display:none!important}
 .inbox:not(.chat-open)::before{display:none}
 .inbox-list{height:100%}
 .chat-open>.inbox-list{visibility:hidden}
 .cart-workspace{padding:16px 18px 0}
 .cart-heading{top:-16px;padding:8px 0;background:#fff}
 .cart-line{grid-template-columns:64px minmax(0,1fr)}
 .cart-photo{width:64px;height:82px}
}

/* Message-level reply: hover/focus on desktop, visible touch target on phones. */
.message{position:relative;max-width:min(88%,calc(100% - 48px))}.message-reply{position:absolute;top:0;left:100%;width:40px;min-height:36px;padding:6px;border:0;background:transparent;opacity:0;color:#53657e}
.message.outgoing .message-reply{left:auto;right:100%}
.message:hover .message-reply,.message:focus-within .message-reply{opacity:1}
.compose-quote{display:flex;align-items:center;gap:10px;border-left:3px solid #000451;background:#f2f6fc;border-radius:6px;padding:10px 12px;margin:8px 0}
.compose-quote>div{min-width:0;flex:1}.compose-quote strong{font-size:12px;color:#2454a0}.compose-quote p{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:3px 0 0}
@media(hover:none),(max-width:800px){.message-reply{opacity:1;min-width:44px;min-height:44px}}

/* Able workspace — semantic components inspired by shadcn/ui. */
:root{--primary:#000451;--primary-hover:#151b70;--primary-soft:#edf2f7;--blue:var(--primary);--blue-dark:var(--primary-hover);--ink:#172b3f;--muted:#617185;--line:#e3e8ee;--bg:#f7f8fa;--nav:208px;--surface:#fff;--ring:#809bb4;--radius:10px;--shadow-sm:0 1px 2px #00045106;--shadow-lg:0 16px 48px #0004511c}
body{font-size:14px;line-height:1.6;-webkit-font-smoothing:antialiased}
button,a,input,textarea,select{transition:background-color .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease,opacity .16s ease}
.btn:active:not(:disabled):not([data-action=tab]):not([data-action=nav]):not(.ghost),.compose-send:active:not(:disabled){transform:translateY(1px)}
button:focus-visible,a:focus-visible{outline:2px solid var(--ring);outline-offset:3px}
input,select,textarea{border-color:var(--line);border-radius:8px;padding:9px 11px;background:var(--surface)}
input:focus,select:focus,textarea:focus{border-color:var(--ring);box-shadow:0 0 0 3px #00045112}
input::placeholder,textarea::placeholder{color:#7c8998}
h1{font-size:25px;font-weight:650;letter-spacing:-.7px}h2{font-weight:650}h3{font-weight:600}
.btn{min-height:36px;padding:7px 12px;border:1px solid var(--line);border-radius:7px;font-size:13px;font-weight:550;box-shadow:var(--shadow-sm)}
.btn:hover{background:var(--primary-soft);border-color:#cbd5df}.btn.primary{background:var(--primary);border-color:var(--primary);box-shadow:var(--shadow-sm)}.btn.primary:hover{background:var(--primary-hover);border-color:var(--primary-hover)}
.btn.ghost{box-shadow:none;border-color:transparent}.btn.ghost:hover{background:var(--primary-soft)}.btn.small{min-height:32px;padding:5px 10px}.btn.danger:hover{background:#fff1f2;border-color:#fecdd3}
.icon-btn{border-radius:8px;color:var(--muted)}.icon-btn:hover{background:var(--primary-soft);color:var(--primary)}
.badge{border-radius:6px;padding:2px 7px;font-weight:500;border:1px solid transparent}.badge.blue{background:var(--primary-soft);color:var(--primary);border-color:#dce5ee}.count{border-radius:5px;background:#e8edf2;color:#40576e}
.card{border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-sm)}.card-pad,.chart-card{padding:20px}.card-head{padding:18px 20px 0}.stack{gap:14px}
.sidebar{padding:18px 12px 12px;background:#fff}.brand{padding:0 10px 20px;gap:10px}.brand-name{font-size:17px;letter-spacing:-.4px}.mark{background:var(--primary);border-radius:9px;width:32px;height:32px}.nav-label{font-size:10px;letter-spacing:1px;padding:9px 12px;color:#7b8796}.nav-item{padding:10px 12px;gap:10px;border-radius:8px;margin:3px 0;min-height:40px;color:#4b5c70}.nav-item.active{background:var(--primary);color:#fff;font-weight:550}.nav-item.active .count{background:#ffffff24;color:white}.nav-item:not(.active):hover{background:var(--primary-soft)}.agency{font-size:9px;padding:12px;opacity:.8}
.topbar{height:52px;padding:0 24px;background:#fffffff5;backdrop-filter:blur(10px)}.global-search{width:min(330px,45vw);min-height:34px;justify-content:flex-start;font-size:12px;color:var(--muted)}.topbar>.row{gap:8px}.topbar .avatar{width:30px;height:30px}.header-divider{height:20px;margin:0 4px}.user-label{font-size:12px}.user-label small{font-size:10px}.main{padding:24px;min-width:0}.page-head{margin-bottom:20px}.page-head p{margin-top:4px;font-size:12px;color:var(--muted)}
.demo-ribbon{padding:3px 10px;font-size:10px;background:#eef2f6;color:#5d6f82}.demo-ribbon button{color:var(--primary)}
.stats{gap:14px;margin:18px 0}.stat{padding:18px}.stat-icon{background:var(--primary-soft);color:var(--primary);margin-bottom:14px}.stat .value{font-size:28px;font-weight:650}.stat .label{font-size:12px;color:var(--muted)}.stat-note{color:#718094}.stat-dot{color:#7e8b99}.dashboard-grid,.lower-grid{gap:16px}.bar{background:#375d7d}.bar:hover{background:var(--primary)}.progress i{background:var(--primary)}
.toolbar{padding:14px 18px;gap:10px}.tabs{gap:20px;padding:0 18px}.tab{padding:13px 0;font-size:13px;color:var(--muted)}.tab.active{color:var(--primary);border-color:var(--primary)}th{background:#f8fafb;color:#57697c;font-size:11px;padding:11px 18px;font-weight:550}td{padding:14px 18px;font-size:13px;border-color:var(--line)}.table-sub{font-size:11px;color:var(--muted)}tr.clickable:hover{background:#f5f8fb}.table-title{font-weight:550}
.product-grid{gap:16px}.product-card{transition:border-color .18s ease,box-shadow .18s ease}.product-card:hover{border-color:#bccbd8;box-shadow:0 4px 14px #0004510a}.product-card .thumb.big{background:#f5f6f7}.thumb{border-radius:8px}.notice{border-radius:8px}.notice.info{background:#f0f4f8;border-color:#d9e3ed;color:#3d5770}.empty{color:var(--muted)}.empty h3{color:var(--ink)}
dialog{border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow-lg)}dialog[open]{animation:dialog-enter .16s ease-out}dialog::backdrop{background:#00152b66;backdrop-filter:blur(2px)}.modal-head{border-color:var(--line)}.modal-actions{align-items:center;background:transparent;gap:10px;padding:20px 0 0;margin-top:4px}.modal-actions>.btn{display:inline-flex;align-items:center;justify-content:center;margin:0;min-height:40px;line-height:1.4}.form-field>span{font-size:12px;font-weight:550;color:#40536a}.form-grid{gap:14px}.toast{border-radius:10px;box-shadow:var(--shadow-lg);animation:toast-enter .2s ease-out}.toast.error{border-color:#f3b7c0}
/* Inbox: prioritize the transcript; controls remain keyboard/touch accessible. */
.main.main-inbox{padding:12px 16px}.main-inbox .inbox{height:calc(100dvh - 76px);min-height:380px;border-radius:12px;grid-template-columns:284px minmax(0,1fr);max-height:none}.demo-ribbon~.main-inbox .inbox{height:calc(100dvh - 100px)}
.main-inbox .inbox.inbox-empty,.main-inbox .inbox:not(.cart-is-open){grid-template-columns:284px minmax(0,1fr)}.inbox-list{background:#fff;border-right:1px solid var(--line)}.inbox-list-head{padding:16px 12px 12px;background:#fff}.inbox-list-head h2{font-size:18px;letter-spacing:-.4px}.inbox-heading-count{font-size:10px;color:var(--muted)}.inbox-list-head .search-field{max-width:none}.inbox-list-head input{background:#f5f7f9;border-color:transparent;border-radius:8px;min-height:38px}.inbox-list-head>.row{gap:6px;margin-top:10px}.inbox-list-head>.row .btn{font-size:11px;min-height:32px}.channel-filters{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:10px}.channel-filter{width:auto;min-height:32px;padding:5px 7px;gap:5px;font-size:10px;border:1px solid var(--line);border-radius:7px;background:#fff;color:#56677a;flex:0 1 auto}.channel-filter.all{grid-column:auto}.channel-filter .icon,.channel-filter .channel-mark{width:14px;height:14px}.channel-filter.is-selected{border-color:#a4b9cd;background:var(--primary-soft);color:var(--primary);box-shadow:none}.channel-filter .filter-count{font-size:9px;min-width:15px;padding:0 3px;background:#e9eef4;color:inherit}.channel-filter:not(.is-selected) .filter-count{background:transparent}.filter-count{border-radius:5px}.conversation-row{padding:13px 12px;gap:10px;border-left:3px solid transparent}.conversation-row.active{background:#edf2f7;border-left-color:var(--primary)}.conversation-row:not(.active):hover{background:#f6f8fa}.conversation-title strong{font-size:13px;font-weight:600}.conversation-title time{font-size:10px;color:var(--muted)}.conversation-preview{font-size:12px;color:var(--muted);margin-top:3px}.conversation-meta{margin-top:5px}.conversation-meta .channel-chip{font-size:9px}.handling-label{font-size:10px}.chat-panel{background:#fff;min-width:0;min-height:0}
.chat-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:8px 16px;min-height:64px;background:#fff}.chat-header>.between:first-child{flex:1;flex-wrap:nowrap;min-width:0}.chat-header .row{gap:10px}.chat-header .row>div>strong{max-width:230px;font-size:14px;font-weight:600;line-height:1.5}.chat-header .avatar{width:36px;height:36px}.chat-channel-identity{line-height:1.3}.chat-channel-identity .channel-chip{font-size:10px;padding:0;background:transparent}.chat-header-controls{margin:0!important;gap:8px}.conversation-ai-control:not(.has-status) .conversation-ai-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.conversation-ai-row{gap:5px}.conversation-ai-label{font-size:11px}.conversation-ai-value{display:none}.conversation-ai-switch{min-width:44px;min-height:44px}.conversation-ai-switch[aria-checked=true] .conversation-ai-track{background:var(--primary)}.conversation-ai-status{max-width:170px;font-size:10px}.chat-header .btn{font-size:11px;min-height:36px}.chat-header>.sub{flex-basis:100%;margin:0!important;font-size:11px}.chat-header .mobile-order-link{display:none}
.chat-header .chat-cart-button{position:relative;min-width:44px;width:44px;min-height:44px;padding:10px;border:0;box-shadow:none;background:transparent;color:var(--primary);overflow:visible}.chat-cart-button .icon{width:23px;height:23px}.chat-cart-button .cart-count{position:absolute;top:1px;right:-2px;min-width:18px;height:18px;padding:0 4px;border:2px solid #fff;border-radius:999px;display:grid;place-items:center;background:#e53945;color:#fff;font-size:10px;font-weight:700;line-height:1;margin:0;box-shadow:0 1px 2px #00045112}.chat-cart-button:hover{background:var(--primary-soft)}
.chat-log{padding:20px 24px;gap:12px;overscroll-behavior:contain;background:#fff}.message{max-width:min(78%,600px)}.bubble{background:#f0f2f5;border-radius:16px 16px 16px 5px;padding:9px 13px;font-size:14px;line-height:1.75;color:var(--ink)}.message.outgoing .bubble{background:var(--primary);color:#fff;border-radius:16px 16px 5px 16px}.message.outgoing .bubble a{color:#d7e9fa;text-decoration:underline}.message time{font-size:10px;color:#6c7c8e;margin:3px 4px 0}.message.note .bubble{background:#fff8e7;color:#775b28}.message-reply{border-radius:50%;color:#64778b}.message-reply:hover{background:var(--primary-soft);color:var(--primary)}.message.outgoing .message-quote{background:#ffffff18;border-color:#ffffff66;color:inherit}.message.outgoing .message-quote *{color:inherit}
#reply-form.refined-composer{margin:0;padding:10px 14px 12px;border:0;border-top:1px solid #edf0f4;border-radius:0;box-shadow:none;background:#fff}.composer-entry{display:flex;align-items:flex-end;gap:8px;min-width:0}.composer-entry .compose-tools{flex:0 0 auto;gap:0;align-self:flex-end}.composer-entry .compose-icon{width:36px;height:40px;padding:8px;border-radius:50%;color:var(--primary)}#reply-form.refined-composer textarea{flex:1;min-width:0;min-height:40px;height:40px;max-height:128px;resize:none;padding:9px 13px;border:1px solid transparent;border-radius:20px;background:#f1f3f6;font-size:14px;line-height:22px;box-shadow:none}#reply-form.refined-composer textarea:focus{border-color:#c0cedb;background:#f6f8fa}#reply-form .compose-send{width:40px;height:40px;border-radius:50%;background:var(--primary);color:#fff}#reply-form .compose-send:hover{background:var(--primary-hover)}#reply-form .compose-top{justify-content:flex-start;gap:8px}#reply-form .compose-top:not(:has(.sender-switch)):not(:has(.recording-status:not(:empty))){display:none}#reply-form .compose-top:has(.sender-switch){padding:0 0 8px}.sender-caption{display:none}.sender-switch{border:1px solid var(--line);border-radius:7px;padding:2px;background:#f3f5f7}.sender-switch button{min-height:28px;padding:3px 10px;border-radius:5px;font-size:11px}.sender-switch button[aria-pressed=true]{background:var(--primary);color:white;box-shadow:none}.compose-quote{padding:7px 10px;margin:0 0 8px;border-color:var(--primary);background:var(--primary-soft);border-radius:8px}.compose-quote strong{color:var(--primary);font-size:11px}.compose-quote p{font-size:12px}.composer-status{font-size:11px;margin:0 0 7px;color:var(--muted)}#reply-form .error-text:empty{display:none}#reply-form .attachment-tray{margin:0 0 8px}#reply-form .recording-status{font-size:11px}
.cart-context{background:#fff}.inbox.cart-is-open>.cart-context{top:64px;border-radius:12px;box-shadow:var(--shadow-lg);border-color:var(--line);animation:panel-enter .18s ease-out}.cart-workspace{padding:18px 18px 0}.cart-heading h2{font-size:17px}.cart-mode-note{background:#f3f6f9;color:#586d82;border-radius:7px}.cart-totals{background:#f7f9fb;border:1px solid var(--line);border-radius:9px;padding:14px}.cart-totals .cart-total{border-top:1px solid var(--line);padding-top:12px}.cart-totals .cart-missing{margin-top:12px}.cart-totals>.btn{margin-top:12px}.cart-workspace:has(.cart-totals){padding-bottom:18px}.cart-line-copy>strong{font-size:13px}.cart-quantity{border-radius:7px}.cart-order-history{border-top:1px solid var(--line)}
.settings-menu button.active,.settings-tab.active{background:var(--primary-soft);color:var(--primary)}.login-art{background:var(--primary);color:#fff}.login-art .mark{background:#ffffff24}.login-form input{min-height:44px}
@keyframes dialog-enter{from{opacity:0;transform:translateY(8px) scale(.99)}to{opacity:1;transform:none}}
@keyframes panel-enter{from{opacity:0;transform:translateX(12px)}to{opacity:1;transform:none}}
@keyframes toast-enter{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media(min-width:1600px){.main{padding:28px 36px}.main.main-inbox{padding:12px 20px}.main-inbox .inbox,.main-inbox .inbox:not(.cart-is-open){grid-template-columns:310px minmax(0,1fr)}}
@media(min-width:801px) and (max-width:1100px){:root{--nav:180px}.main{padding:20px}.main-inbox .inbox,.main-inbox .inbox:not(.cart-is-open),.main-inbox .inbox.inbox-empty{grid-template-columns:250px minmax(0,1fr)}.chat-header{gap:0;padding:8px 12px}.chat-header-controls{flex-basis:100%;justify-content:space-between}.composer-entry .compose-tools{gap:0}.composer-entry .compose-icon{width:30px}.chat-log{padding:16px}.user-label{display:none}}
@media(max-width:800px){:root{--nav:0px}.topbar{height:48px;padding:0 14px}.topbar .brand-name{font-size:16px}.topbar .mark{width:27px;height:27px}.topbar .icon-btn{min-width:36px;width:36px;height:40px}.topbar>.row{gap:3px}.main{padding:20px 14px 86px}.page-head{margin-bottom:16px}.page-head h1{font-size:23px}.main.main-inbox{padding:0 0 calc(60px + env(safe-area-inset-bottom))}.main-inbox .inbox,.main-inbox .inbox:not(.cart-is-open),.main-inbox .inbox.inbox-empty{height:calc(100dvh - 108px - env(safe-area-inset-bottom));min-height:280px;display:grid;grid-template-columns:1fr;border:0;border-radius:0}.demo-ribbon~.main-inbox .inbox{height:calc(100dvh - 132px - env(safe-area-inset-bottom))}.main-inbox .inbox>.inbox-list{display:block}.main-inbox .inbox>.chat-panel{display:none}.main-inbox .inbox.chat-open>.inbox-list{display:none}.main-inbox .inbox.chat-open>.chat-panel{display:flex}.inbox-list-head{padding:16px}.inbox-list-head .channel-filter{min-height:40px;font-size:11px;padding:6px 9px}.conversation-row{padding:14px 16px}.chat-header,.chat-open .chat-header{padding:6px 12px;gap:0}.chat-header>.between:first-child{min-height:44px}.chat-header .row{gap:6px}.chat-header .avatar{width:32px;height:32px}.chat-header-controls{flex-basis:100%;justify-content:space-between;min-height:38px}.conversation-ai-label{font-size:11px}.chat-header .row>div>strong{font-size:13px;max-width:190px}.chat-header .btn{min-height:44px}.chat-log{padding:14px 18px;gap:12px}.message{max-width:calc(100% - 40px)}.bubble{font-size:14px;padding:8px 12px}.message-reply{width:36px;min-width:36px;min-height:44px;opacity:1}#reply-form.refined-composer{padding:8px 8px 10px}.composer-entry{gap:4px}.composer-entry .compose-tools{gap:0}.composer-entry .compose-icon{width:36px;height:44px}.composer-entry [data-action=compose-file]{display:none}#reply-form .compose-send{width:44px;height:44px}#reply-form.refined-composer textarea{font-size:16px;min-height:44px;padding:10px 12px}.compose-quote{margin-bottom:6px}.inbox.cart-is-open>.cart-context{top:auto;right:0;bottom:0;width:100%;max-height:88dvh;border-radius:16px 16px 0 0;animation:dialog-enter .18s ease-out}.mobile-nav{height:60px;padding-bottom:env(safe-area-inset-bottom);background:#fffffff5;border-top:1px solid var(--line);backdrop-filter:blur(12px)}.mobile-nav button.active{color:var(--primary)}.btn,.icon-btn{min-height:44px}.toolbar{padding:12px}.card-pad,.chart-card{padding:16px}td,th{padding:12px 14px}.product-grid{gap:12px}.stats{gap:12px}.stat{padding:16px}.stat .value{font-size:25px}.page-head .actions .btn{min-height:40px}}
@media(max-width:360px){.chat-header .row>div>strong{max-width:150px}.composer-entry .compose-icon{width:32px}.topbar .brand-name{font-size:14px}.channel-filters{gap:4px}.inbox-list-head .channel-filter{padding:5px 7px}.chat-log{padding:12px 16px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Keep one transcript row; the optional desktop cart is a third column. */
.main-inbox .inbox{grid-template-rows:minmax(0,1fr);height:calc(100dvh - 76px)!important;min-height:280px!important}
.demo-ribbon~.main-inbox .inbox{height:calc(100dvh - 100px)!important}
@media(min-width:1201px){.main-inbox .inbox.cart-is-open{grid-template-columns:260px minmax(280px,1fr) 300px}.inbox.cart-is-open>.cart-context{position:static;border-radius:0;border-width:0 0 0 1px;box-shadow:none;animation:none;min-width:0}}
@media(max-width:800px){.main-inbox .inbox{height:calc(100dvh - 108px - env(safe-area-inset-bottom))!important}.demo-ribbon~.main-inbox .inbox{height:calc(100dvh - 132px - env(safe-area-inset-bottom))!important}.chat-header>.between:first-child{flex:1 0 100%;width:100%}.chat-header-controls{flex:1 0 100%}.chat-header .chat-cart-button{flex-shrink:0}.chat-header .row>div:last-child{min-width:0}}
@media(max-width:800px){.composer-entry .compose-tools .compose-icon{width:44px;height:44px}.composer-entry [data-action=compose-file]{display:inline-flex}.composer-entry [data-action=compose-image]{display:none}}
/* Five channel controls fit on one line, leaving room for more conversations. */
.inbox-list-head .channel-filters{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}
.inbox-list-head .channel-filter{position:relative;display:flex;justify-content:center;align-items:center;min-height:40px;width:100%;padding:8px 4px}
.channel-filter>span:not(.channel-mark):not(.filter-count):not(.channel-short){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.inbox-list-head .channel-filter .channel-mark,.inbox-list-head .channel-filter>.icon{width:18px;height:18px}
.inbox-list-head .channel-filter .filter-count{position:absolute;top:1px;right:1px;min-width:12px;height:14px;padding:0 2px;font-size:8px;line-height:14px;background:transparent}
.conversation-row{min-height:82px;padding:12px;border-left-width:0;box-shadow:none}
.conversation-row.active{box-shadow:inset 3px 0 var(--primary)}
.conversation-row p.conversation-preview{margin:3px 0 5px;line-height:1.5}.conversation-meta{margin-top:0;gap:7px}
@media(max-width:800px){.inbox-list-head .channel-filter{min-height:44px}.conversation-row{padding:13px 16px;min-height:86px}}

.channel-short{font-size:11px;font-weight:600;line-height:1}
/* Workspace refinement: measured spacing, quiet chat surfaces, anchored controls. */
:root{--chat-out:#e4ebf2;--chat-ink:#17334e}
.card-pad,.chart-card{padding:22px}.main{padding:22px 24px}.page-head{gap:16px}.page-head .actions{gap:8px}.card h2{line-height:1.4}.split>*{min-width:0}.rule{margin:20px 0}.modal-body{padding:22px}.modal-head{padding:18px 22px}.modal-body>.account-profile{margin:0}.account-profile{display:flex;gap:14px;align-items:center}.account-profile .avatar{width:56px;height:56px}.profile-form{margin:20px 0;padding:16px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.profile-form .check{margin-bottom:12px}.profile-avatar img,.store-avatar img{width:100%;height:100%;object-fit:cover;border-radius:inherit}.avatar,.mark{flex-shrink:0;overflow:hidden}.profile-form input[type=file]{padding:8px;font-size:12px}
.login-art .brand-name,.login-art h1,.login-art .eyebrow{color:#fff}.login-art p,.login-art small{color:#d0dce8}.login-art h1{line-height:1.25}.login-inner{max-width:420px}.login-card{padding:36px}.login-inner input{min-height:44px}
.workspace-search{position:relative;display:flex;align-items:center;gap:9px;max-width:440px;width:100%;background:#f0f3f6;border:1px solid transparent;border-radius:8px;padding:0 12px}.workspace-search:focus-within{border-color:#9baec1;background:white}.workspace-search>.icon{flex:none;width:18px}.workspace-search input{min-width:0;background:transparent;border:0;box-shadow:none;padding:9px 0;font-size:13px}.workspace-results{position:absolute;top:calc(100% + 6px);left:0;width:max(100%,280px);max-width:calc(100vw - 28px);max-height:60vh;overflow:auto;padding:8px;border:1px solid var(--line);border-radius:10px;background:white;box-shadow:var(--shadow-lg);z-index:100}.workspace-results .btn{justify-content:flex-start;white-space:normal;text-align:left;min-height:40px;border:0}.workspace-results .btn:hover{background:var(--primary-soft)}
.select-control{display:inline-flex;position:relative;min-width:0;max-width:100%;vertical-align:middle}.form-field>.select-control,.form-grid>.select-control{width:100%}.select-control .enhanced-select{position:absolute!important;width:1px!important;height:1px!important;opacity:0;pointer-events:none;padding:0;clip-path:inset(50%)}.select-trigger{width:100%;min-width:120px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:9px 12px;min-height:40px;border:1px solid #d3dce5;border-radius:8px;background:#fff;color:var(--ink);text-align:left;font-size:13px}.select-trigger>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select-trigger svg{flex:none}.select-trigger:hover{background:#f6f8fa}.select-trigger[aria-expanded=true]{border-color:#8ba3b9;box-shadow:0 0 0 3px #00045112}.select-options{position:fixed;z-index:300;overflow:auto;overscroll-behavior:contain;background:#fff;border:1px solid #d5dfe8;border-radius:9px;padding:5px;box-shadow:0 8px 28px #00045120;color:var(--ink);font-size:13px}.select-options [role=option]{padding:9px 30px 9px 10px;border-radius:5px;cursor:pointer;position:relative;outline:none}.select-options [role=option]:focus,.select-options [role=option]:hover{background:#edf2f7}.select-options [aria-selected=true]{font-weight:600;color:var(--primary)}.select-options [aria-selected=true]:after{content:'✓';position:absolute;right:10px}.select-options [aria-disabled=true]{opacity:.4;cursor:not-allowed}
/* Grid prevents legacy flex/order rules from overlapping identity and actions. */
.chat-panel>.chat-header{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 14px;padding:8px 16px;min-height:64px;flex-shrink:0}.chat-panel>.chat-header>.between:first-child{display:flex;position:static!important;transform:none!important;width:auto!important;min-width:0;gap:8px}.chat-header>.between:first-child>.row{min-width:0;flex:1}.chat-header>.between:first-child>.row>div:last-child{min-width:0}.chat-header .row strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:none!important}.chat-panel>.chat-header>.chat-header-controls{display:flex;position:static!important;width:auto!important;gap:12px;flex-wrap:nowrap;justify-content:flex-end;margin:0!important}.conversation-ai-label{white-space:nowrap}.chat-header>.sub,.chat-header>.mobile-order-link{grid-column:1/-1}.chat-header .avatar{flex:none}.chat-channel-identity .channel-chip{border:0!important;box-shadow:none!important}.chat-header .chat-cart-button{flex:none}
.chat-log{background:#fafbfd;padding:16px 22px;gap:10px}.chat-log .message{max-width:min(80%,560px)}.chat-log .bubble{padding:8px 12px;font-size:14px;line-height:1.8;background:#eef0f3;color:#24364a}.chat-log .message.outgoing .bubble{background:var(--chat-out);color:var(--chat-ink)}.chat-log .message.outgoing .bubble a{color:#224e76}.chat-log .message.outgoing .message-quote{background:#d6e0eb;border-color:#718da8}.chat-log .message.note .bubble{background:#fff6df}.chat-log .message-reply{position:absolute;top:calc(50% - 28px);transform:none!important;display:flex;align-items:center;justify-content:center;width:36px;min-width:36px;min-height:36px;height:36px;padding:8px;border:0!important;border-radius:4px;box-shadow:none!important;background:transparent!important;color:#63768a;opacity:0}.chat-log .message:hover .message-reply,.chat-log .message:focus-within .message-reply{opacity:1}.chat-log .message-reply:hover{color:var(--primary)}.message-reply .icon{width:18px;height:18px}.chat-log .bubble.media-only{padding:0;background:transparent!important;border-radius:12px;overflow:hidden}.bubble .message-media{margin:6px 0 0}.bubble.media-only .message-media{margin:0}.bubble [data-media-id] img{display:block;width:auto;max-width:min(240px,100%);max-height:280px;object-fit:contain;border-radius:12px}.bubble [data-media-id]{max-width:240px;padding:0!important;background:transparent!important}.image-viewer{max-width:calc(100vw - 24px);width:fit-content;max-height:94dvh;background:#f5f7fa}.image-viewer .modal-head{padding:8px 14px}.image-viewer .modal-body{padding:8px;overflow:auto}.expanded-image{display:block;max-width:calc(100vw - 56px);max-height:calc(94dvh - 82px);width:auto;height:auto;object-fit:contain;border-radius:6px}
.channel-mark.messenger{color:#0084ff!important}.channel-mark.telegram{color:#229ed9!important}.channel-mark.tiktok{color:#161823!important}.channel-filters{gap:6px}.inbox-list-head .filter-count{font-size:9px;right:3px;top:3px}.inbox-list-head .channel-filter{border-radius:8px}.technical-plan h3{margin:20px 0 8px}
@media(min-width:801px) and (max-width:1250px){.chat-panel>.chat-header{grid-template-columns:minmax(0,1fr)}.chat-panel>.chat-header>.chat-header-controls{justify-content:space-between}.main-inbox .inbox:not(.cart-is-open){grid-template-columns:260px minmax(0,1fr)}}
@media(max-width:800px){.main{padding:18px 14px 84px}.card-pad,.chart-card{padding:18px}.modal-head,.modal-body{padding:16px}.topbar{gap:12px}.topbar .mobile-brand{display:none!important}.workspace-search{display:flex;max-width:none;flex:1;padding:0 9px}.workspace-search input{font-size:14px}.topbar>.row{flex:none}.chat-panel>.chat-header{grid-template-columns:minmax(0,1fr);padding:6px 12px;gap:0}.chat-panel>.chat-header>.chat-header-controls{justify-content:space-between}.chat-header>.between:first-child{min-height:44px}.chat-log{padding:14px 18px}.chat-log .message{max-width:calc(100% - 38px)}.chat-log .message-reply{opacity:1;min-height:44px}.bubble [data-media-id] img{max-width:min(210px,100%);max-height:250px}.select-trigger{min-height:44px}.select-options [role=option]{padding-top:12px;padding-bottom:12px}.login-card{padding:28px 22px}}
.bubble.media-only .inline-media{margin:0;min-width:0}.chat-log .inline-media{min-width:0}.channel-mark.tiktok svg{filter:drop-shadow(-.5px -.5px 0 #25f4ee) drop-shadow(.5px .5px 0 #fe2c55)}
.profile-current{display:flex;align-items:center;gap:12px;margin-bottom:12px;font-size:13px;color:var(--muted)}.profile-current .mark{width:48px;height:48px}
.select-trigger[aria-invalid=true]{border-color:var(--red);box-shadow:0 0 0 2px #cf3e4d18}
/* Shared control geometry: avoid clipping and doubled focus rings. */
.icon,.channel-mark,.channel-mark svg{flex-shrink:0;overflow:visible;display:block}.icon-btn,.compose-icon,.compose-send,.chat-cart-button{display:inline-flex;align-items:center;justify-content:center;line-height:1}.channel-mark{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;line-height:1}.channel-mark svg{width:18px;height:18px;fill:currentColor}.channel-chip{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:26px;min-width:100px;padding:3px 8px;font-size:11px;line-height:18px;vertical-align:middle}.channel-chip .channel-mark,.channel-chip svg{width:16px;height:16px}.chat-channel-identity .channel-chip{justify-content:flex-start;min-width:0}.setting-switch input[type=checkbox]{flex:none;align-self:center}.compose-send .icon{width:20px;height:20px;stroke-width:1.75}
input:focus,textarea:focus{outline:none;box-shadow:none;border-color:#8198ae}input:focus-visible,textarea:focus-visible{outline:none;box-shadow:none}.workspace-search{max-width:360px;min-height:36px;padding:0 10px;border:1px solid transparent;background:#eff3f6}.workspace-search input,.workspace-search input:focus,.workspace-search input:focus-visible{border:0!important;outline:none!important;box-shadow:none!important;background:transparent}.workspace-search:focus-within{border-color:#a5b6c7;background:#fff;box-shadow:none}.inbox-list-head .channel-filters{grid-template-columns:repeat(auto-fit,minmax(40px,1fr))}.channel-filter .channel-mark{overflow:visible}.channel-filter .filter-count{line-height:14px!important;display:flex;align-items:center;justify-content:center}
@media(max-width:800px){.chat-log .message{touch-action:pan-y;transition:transform .12s ease}.chat-log .message-reply{visibility:hidden;pointer-events:none;opacity:0!important}.chat-log .message:focus-within .message-reply{visibility:visible;pointer-events:auto;opacity:1!important}.message.swipe-ready .bubble{box-shadow:0 0 0 2px #829bb4}.workspace-search{max-width:none}.channel-chip{min-width:96px}.chat-channel-identity .channel-chip{min-width:0}}
.composer-entry .compose-send{flex:0 0 40px;min-width:40px}.composer-entry .compose-tools{overflow:visible}
@media(max-width:800px){.composer-entry .compose-send{flex-basis:44px;min-width:44px}}
html{scrollbar-gutter:stable}body{overflow-x:clip}.settings-layout{align-items:start}.settings-content{min-width:0}.compose-quote{background:transparent!important;border:0!important;border-radius:0;padding:6px 2px;margin:0 0 6px;gap:10px}.compose-quote strong{font:500 12px/1.4 inherit;color:#536579}.compose-quote p{font-size:12px;color:#7b8795;margin:3px 0 0}.compose-quote .icon-btn{width:28px;min-width:28px;min-height:28px;height:28px;padding:5px;border:0;background:transparent;box-shadow:none}.account-menu{position:fixed;z-index:150;width:260px;max-width:calc(100vw - 24px);background:#fff;border:1px solid var(--line);box-shadow:0 8px 32px #00045122;border-radius:12px;padding:7px}.account-summary{display:flex;align-items:center;gap:10px;padding:12px 8px;border-bottom:1px solid var(--line);margin-bottom:5px}.account-summary small{display:block;color:var(--muted);font-size:11px}.account-menu>button{display:flex;width:100%;align-items:center;gap:10px;text-align:left;padding:11px;border:0;border-radius:7px;background:white;color:var(--ink)}.account-menu>button:hover{background:#edf2f7}.demo-setting{display:flex;gap:16px;align-items:center;justify-content:space-between;padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid var(--line)}.demo-setting .btn{flex-shrink:0}.calendar-native{position:absolute!important;width:1px!important;height:1px!important;opacity:0;pointer-events:none;padding:0;clip-path:inset(50%)}.calendar-trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:10px 12px;min-height:42px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);font-size:13px}.calendar-panel{position:fixed;z-index:200;width:280px;padding:12px;border:1px solid var(--line);border-radius:12px;background:white;box-shadow:0 8px 30px #00045122}.calendar-heading,.calendar-footer{display:flex;align-items:center;justify-content:space-between;gap:8px}.calendar-panel button{border:0;border-radius:6px;background:white;color:var(--ink);padding:6px;min-height:32px}.calendar-panel button:hover{background:#edf2f7}.calendar-heading .icon{width:16px;height:16px}.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;margin:12px 0}.calendar-grid small{text-align:center;color:var(--muted);font-size:11px;padding:4px}.calendar-grid button[aria-pressed=true]{background:#000451;color:white}.calendar-footer{border-top:1px solid var(--line);padding-top:8px}input[type=file]::file-selector-button{border:1px solid var(--line);background:#edf2f7;border-radius:6px;color:var(--primary);padding:8px 12px;cursor:pointer}
@media(max-width:600px){.demo-setting{flex-direction:column;align-items:stretch}.account-menu{right:12px!important}.calendar-panel{width:280px}.compose-quote .icon-btn{min-height:36px;width:36px}}

/* Names remain keyboard-accessible text actions, without button chrome. */
.customer-name{appearance:none;display:inline-flex;align-items:center;min-height:40px;max-width:100%;padding:0;border:0;border-radius:3px;background:transparent;color:var(--ink);font:inherit;font-weight:600;line-height:1.6;text-align:left;white-space:normal;box-shadow:none}.customer-name:hover{text-decoration:underline;text-underline-offset:3px;background:transparent}.customer-name:focus-visible{outline:2px solid #7891a8;outline-offset:4px}

.calendar-title{display:flex;align-items:center;justify-content:center;gap:2px}.calendar-title button{font-weight:650}.calendar-grid.calendar-choices{grid-template-columns:repeat(3,1fr);gap:6px}.calendar-choices button{min-height:42px}.bar-chart .bar{min-height:0}

/* Catalog rows and navigation keep a stable position; only explicit action buttons press. */
.nav-item,.tab,.channel-filter,.conversation-row,.task,.account-menu>button,.select-option,.customer-name,.catalog-product{transition:none;animation:none}
.cart-catalog-tools{display:flex;gap:12px;align-items:end;margin:0 0 16px}.cart-catalog-search{position:relative;flex:1;min-width:0}.cart-catalog-search>.icon{position:absolute;left:12px;top:12px;width:18px;height:18px;color:var(--muted)}.cart-catalog-search input{padding-left:38px;min-height:44px}.cart-catalog-tools .form-field{margin:0;max-width:180px}.cart-catalog-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;max-height:360px;overflow:auto;overscroll-behavior:contain;padding:2px}.catalog-product{display:flex;align-items:center;gap:10px;padding:10px;text-align:left;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);min-width:0}.catalog-product:hover:not(:disabled){background:var(--primary-soft);border-color:var(--ring)}.catalog-photo{width:56px;height:72px;flex:0 0 56px;display:grid;place-items:center;overflow:hidden;border-radius:6px;background:var(--bg)}.catalog-photo img,.catalog-photo svg{width:100%;height:100%;object-fit:contain}.catalog-copy{min-width:0;flex:1;font-size:12px;display:grid;gap:4px}.catalog-copy strong{font-weight:600;overflow-wrap:anywhere}.catalog-copy small{font-size:10px}.catalog-product>.icon{width:16px;height:16px}.catalog-empty{grid-column:1/-1;padding:32px;text-align:center;color:var(--muted)}#cart-catalog-count{margin-top:10px}.cart-selection-details[hidden],.cart-catalog[hidden]{display:none}
@media(max-width:600px){.cart-catalog-tools{align-items:stretch;flex-direction:column}.cart-catalog-tools .form-field{max-width:none}.cart-catalog-grid{grid-template-columns:1fr;max-height:42dvh}.catalog-photo{width:48px;flex-basis:48px;height:60px}}

.history-status{align-self:center;flex:none;font-size:11px;color:var(--muted);text-align:center}.history-status:empty{height:1px}.history-status .btn{margin-left:6px}

.voice-player{display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:10px;width:280px;padding:10px 12px;border-radius:16px;background:#eef0f3;color:var(--primary)}.outgoing .voice-player{background:#e5edf4}.voice-play{display:grid;place-items:center;width:40px;height:40px;min-width:40px;min-height:40px;line-height:1;padding:0;border:0;border-radius:50%;background:var(--primary);color:#fff;box-shadow:none}.voice-play .icon{display:block;width:20px;height:20px;margin:0;fill:currentColor;stroke-width:1.5}.voice-play:hover{background:var(--primary-hover)}.voice-wave{min-width:0;width:100%;height:32px;gap:1px}.voice-wave i{flex:1;max-width:3px;background:#91a6b9}.voice-wave i.played{background:var(--primary)}.voice-time{grid-column:3;padding:0;width:auto;min-width:4ch;font-size:12px;font-weight:600;line-height:1;color:var(--primary);font-variant-numeric:tabular-nums;white-space:nowrap;text-align:right}.voice-record-panel{display:grid;grid-template-columns:36px minmax(80px,1fr) auto 36px;align-items:center;gap:8px;padding:8px 12px;margin:8px 12px;background:var(--primary-soft);border-radius:16px}.voice-record-panel[hidden]{display:none}.recording-wave{width:100%;height:40px}.voice-record-time{font-size:12px;font-variant-numeric:tabular-nums}.voice-record-hint{grid-column:1/-1;text-align:center;font-size:11px}.is-voice-recording .composer-entry,.is-voice-recording .attachment-tray{display:none!important}.attachment-tray.is-voice{display:flex;align-items:center;gap:8px;background:transparent;border:0;padding:8px 12px}.attachment-tray.is-voice[hidden]{display:none}.attachment-tray.is-voice .attachment-name{display:none}.attachment-tray.is-voice .attachment-preview{flex:1;min-width:0;max-width:300px}.attachment-tray.is-voice .voice-player{width:100%}.attachment-tray.is-voice audio:not([hidden]){width:100%;max-width:100%}.attachment-tray.is-voice audio[hidden]{display:none}.compose-icon[data-action=record-voice]{touch-action:none;user-select:none;-webkit-touch-callout:none}

.export-menu{position:fixed;z-index:160;width:280px;max-width:calc(100vw - 16px);padding:6px;border:1px solid var(--line);border-radius:10px;background:var(--surface);box-shadow:var(--shadow-lg)}.export-menu>button{display:grid;gap:3px;text-align:left;width:100%;padding:10px 12px;border:0;border-radius:6px;background:transparent;color:var(--ink);transition:none;animation:none}.export-menu>button:hover,.export-menu>button:focus-visible{background:var(--primary-soft)}.export-menu strong{font-size:13px;font-weight:600}.export-menu small{font-size:11px;color:var(--muted)}#reply-form .attachment-tray.is-voice .attachment-preview{display:block;max-width:300px;flex:1;min-width:0}#reply-form .attachment-tray.is-voice .attachment-preview audio[hidden]{display:none}
/* Passive status messages must never block the composer underneath. */
#toasts{pointer-events:none}

#reply-form .attachment-tray.is-voice{width:max-content;max-width:calc(100% - 24px);margin:0 12px;padding:8px 0;border:0;background:transparent;gap:8px}#reply-form .attachment-tray.is-voice .attachment-preview{width:260px;max-width:calc(100vw - 120px);flex:0 1 260px}#toasts{top:64px;right:20px;bottom:auto;left:auto;transform:none;max-width:calc(100vw - 32px)}
/* Block SVGs need an explicit centered layout in empty states and icon-only controls. */
.empty>svg.icon{display:block;width:30px;height:30px;margin:0 auto 14px}
.calendar-heading>[data-step]{display:grid;place-items:center;width:32px;height:32px;padding:0;line-height:1}
.search-field>svg.icon,.cart-catalog-search>svg.icon{top:50%;transform:translateY(-50%)}
/* Workspace identity and direct manipulation controls. */
:root{--primary:#000451;--primary-hover:#151b70;--primary-soft:#eff0f8;--ring:#8588b8;--shadow-sm:0 1px 2px #00045106;--shadow-lg:0 16px 48px #0004511c}
.topbar{background:transparent;border-bottom:0;backdrop-filter:none;box-shadow:none}
.workspace-search{background:#eceef5}
.voice-record-panel{grid-template-columns:36px minmax(0,1fr) auto 40px;gap:12px;padding:12px 14px}
.voice-record-panel [data-action=voice-stop]{display:grid;place-items:center;width:40px;height:40px;min-height:40px;min-width:40px;border-radius:50%;background:var(--primary);color:#fff;padding:0}
.voice-record-panel [data-action=voice-stop]:hover{background:var(--primary-hover)}
.voice-record-panel [data-action=voice-stop] .icon{width:22px;height:22px;stroke-width:2.5}
.voice-record-panel [data-action=voice-discard]{color:var(--muted)}
.knowledge-tabs{margin-bottom:20px;padding:0;border-bottom:1px solid var(--line)}
.faq-help{max-width:720px;line-height:1.8;margin-bottom:20px}.faq-list{display:grid;gap:14px;max-width:900px}
.faq-card{padding:22px}.faq-card h2{line-height:1.8;overflow-wrap:anywhere}.faq-card p{margin:12px 0;color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}.faq-actions{display:flex;gap:8px;justify-content:flex-end}.crop-touch-help{display:none}
@media(pointer:coarse){.crop-touch-help{display:inline}.crop-mouse-help{display:none}}

/* Navy workspace system: stable header, restrained secondary actions, consistent states. */
:root{--primary:#000451;--primary-hover:#082e57;--primary-soft:#eaf2f8;--ring:#365e7d;--blue:#000451;--ink:#182c40;--muted:#526b80;--line:#dce6ef;--bg:#f6f9fc}
body{background:var(--bg);color:var(--ink)}
.topbar{background:#fff;border-bottom:1px solid var(--line);backdrop-filter:none;isolation:isolate}
.workspace-search,.workspace-search:focus-within{background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none}
.workspace-search:focus-within{border-bottom-color:var(--ring)}
::selection{background:#d6e6f2;color:var(--primary)}
:focus-visible{outline:2px solid var(--ring);outline-offset:2px}
.bar-chart .bar{background:var(--primary)}.chart-legend .dot,.progress i{background:var(--primary)}
.badge.blue,.count,.filter-count,.notification-item.unread{background:var(--primary-soft);color:var(--primary);border-color:var(--line)}
.channel-filter.is-selected,.catalog-product.is-selected{background:var(--primary-soft);border-color:var(--ring);box-shadow:none;color:var(--primary)}
#product-form .pe-photo.is-cover,#product-form .pe-photo:has(input:checked){border-color:var(--ring)}
.task{display:flex;align-items:center;gap:12px}.task>.icon:last-child{margin-left:auto}.task .count{display:inline-flex;align-items:center;justify-content:center;min-width:26px;min-height:26px}
.metric-line{align-items:center}.metric-line strong{min-width:64px;text-align:right}.faq-list{max-width:none}.faq-card{max-width:900px}.empty{display:flex;flex-direction:column;align-items:center;text-align:center}.empty>.icon{margin:0 auto 16px}
#reply-form.refined-composer,#reply-form.refined-composer:focus-within{border-top:1px solid var(--line);outline:0;box-shadow:none}
#reply-form.refined-composer textarea:focus{border:0;outline:0;box-shadow:none}
.btn.ghost,.modal-actions [data-action=close]{background:transparent;border-color:transparent;box-shadow:none;color:var(--muted)}
.btn.ghost:hover,.modal-actions [data-action=close]:hover{color:var(--primary);background:var(--primary-soft)}
.btn.ghost.danger{color:#a52c42}
.nav-item,.tab,.task,.catalog-product,.channel-filter,.product-card,.account-menu button{transform:none!important;transition:color .12s,background-color .12s,border-color .12s}
#toasts{position:fixed;top:auto;bottom:24px;left:50vw;right:auto;transform:translateX(-50%);width:max-content;max-width:calc(100vw - 32px);z-index:1000;display:flex;flex-direction:column;align-items:center;gap:8px}
#toasts .toast{padding:9px 14px;min-width:0;width:auto;max-width:420px;font-size:12px;line-height:1.5;border-radius:9px;text-align:center;box-shadow:0 4px 20px #182c4014}
.quantity-control{display:flex!important;align-items:center;gap:6px;border:1px solid var(--line);border-radius:8px;min-height:44px;padding:0 4px}
.quantity-control input{border:0!important;box-shadow:none;min-width:0;text-align:center;width:100%;padding:8px 0;appearance:textfield;-moz-appearance:textfield}.quantity-control input::-webkit-inner-spin-button{appearance:none}.quantity-control .icon-btn{flex:none;display:grid;place-items:center;min-width:36px;min-height:36px;padding:0;touch-action:none}
.cart-catalog-grid{max-height:280px;overflow-y:auto;overscroll-behavior:contain}.cart-selection-details{border-top:1px solid var(--line);padding-top:16px;margin-top:16px}.cart-picker-preview{padding:12px;margin-bottom:14px}.cart-picker-preview img{height:72px;width:64px;object-fit:contain}
.order-line-heading{display:flex;align-items:center;gap:12px;margin-bottom:14px}.order-line-heading>.icon-btn{margin-left:auto}.order-item{border:1px solid var(--line);border-radius:10px;padding:14px;margin:12px 0}.order-item .form-field{margin-bottom:0}.order-item .catalog-photo{width:52px;height:64px;flex:none}.catalog-photo img{width:100%;height:100%;object-fit:contain}
.receipt-upload{margin:14px 0;border:1px dashed #9fb4c5;border-radius:10px;background:var(--bg);padding:16px}.receipt-drop{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;position:relative;padding:18px;cursor:pointer}.receipt-drop input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}.receipt-drop small{color:var(--muted)}.receipt-drop:focus-within{outline:2px solid var(--ring);outline-offset:4px}.receipt-upload-preview{position:relative;text-align:center}.receipt-upload-preview img{max-width:100%;max-height:240px;object-fit:contain;border-radius:6px}.receipt-upload-preview button{position:absolute;right:0;top:0;background:#fff}.receipt-drop[hidden],.receipt-upload-preview[hidden]{display:none}
.favicon-settings{display:flex;align-items:center;gap:14px;flex-wrap:wrap;border-top:1px solid var(--line);margin-top:20px;padding-top:20px}.favicon-settings>div{flex:1}
@media(max-width:800px){#toasts{bottom:calc(76px + env(safe-area-inset-bottom))}.cart-catalog-grid{max-height:220px}.order-item .form-grid{grid-template-columns:1fr}.quantity-control{max-width:220px}.workspace-search{max-width:none}}

.od-action-secondary .btn,[data-action=order-cancel]{background:transparent;box-shadow:none;border-color:transparent}
#cart-item-form .cart-selection-details:not([hidden]){display:block;min-width:0}
#cart-product-preview{grid-column:1/-1}.cart-picker-preview>.product-placeholder{width:64px;height:72px;flex:none}.cart-picker-preview>div{min-width:0}.cart-picker-preview strong{overflow-wrap:anywhere}.catalog-photo .product-placeholder{width:100%;height:100%;padding:6px}.catalog-photo .product-placeholder .icon{width:24px;height:24px}
#cart-item-form .cart-selection-details .form-field{margin:0}.modal-body:has(#cart-item-form),.modal-body:has(#order-form){padding-top:22px}
@media(max-width:480px){#cart-item-form .cart-selection-details:not([hidden]){grid-template-columns:1fr}#cart-product-preview{grid-column:auto}}
:root{--blue-dark:var(--primary-hover)}
button:focus-visible,a:focus-visible{outline:2px solid var(--ring);outline-offset:2px}
input[type=checkbox],input[type=radio],#product-form .pe-cover input{accent-color:var(--primary)}
.select-options [role=option][aria-selected=true],.select-options [role=option]:focus,.sc-table thead th{background:var(--primary-soft);color:var(--primary)}
.inbox-filter .count,.channel-filter.is-selected .filter-count,.nav-item .count{background:var(--primary-soft);color:var(--primary)}
.assistant-symbol,.avatar.lilac{background:var(--primary-soft);color:var(--primary-hover)}.handling-label.ai i{background:var(--ring)}
.catalog-photo .product-placeholder{display:grid;place-items:center}.catalog-photo .product-placeholder>span{display:none}

/* A single compact stepper, shared by order and cart editors. */
.quantity-control{display:grid!important;grid-template-columns:42px minmax(50px,1fr) 42px;gap:0;width:164px;max-width:100%;height:44px;min-height:44px;padding:0;overflow:hidden;background:var(--surface,#fff);border:1px solid var(--line);border-radius:8px;margin:0!important;box-sizing:border-box}
.quantity-control>button{display:grid;place-items:center;width:42px;height:42px;min-height:42px;border:0;border-radius:0;padding:0;background:transparent;color:var(--primary);touch-action:none}
.quantity-control>button:hover{background:var(--primary-soft)}
.quantity-control>button:focus-visible{outline-offset:-3px}
.quantity-control>input{height:42px;min-height:0;margin:0!important;padding:0!important;line-height:42px;border:0!important;border-radius:0;background:transparent;color:var(--ink);font-weight:600}
.quantity-control:focus-within{border-color:var(--ring)}.quantity-field{min-width:0}.quantity-field>span{display:block;margin-bottom:8px}
.order-item .form-grid{grid-template-columns:minmax(0,1fr) 164px;align-items:end}.order-line-heading>div{min-width:0;flex:1}.order-line-heading strong{overflow-wrap:anywhere}.selection-heading{display:flex;justify-content:space-between;align-items:center;margin:18px 0 6px;gap:12px}
#cart-selected-items:empty{min-height:60px;border:1px dashed var(--line);border-radius:8px;display:grid;place-items:center}#cart-selected-items:empty:before{content:'Choose products from the catalog';font-size:13px;color:var(--muted)}
@media(max-width:480px){.order-item .form-grid{grid-template-columns:minmax(0,1fr)}.quantity-control{width:164px}.order-line-heading{gap:10px}}

.telegram-connections{padding:20px 0;border-bottom:1px solid var(--line);margin-bottom:20px}.telegram-connections>.sub{margin:8px 0 14px}.telegram-recipient{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-top:1px solid var(--line)}.telegram-recipient>div{display:grid;grid-template-columns:20px 1fr;align-items:center;gap:3px 8px}.telegram-recipient small{grid-column:2;color:var(--muted)}.telegram-recipient .icon,.connection-success .icon{color:var(--success,#16806a)}.telegram-advanced{margin-top:16px;border-top:1px solid var(--line);padding-top:16px}.telegram-advanced summary{cursor:pointer;color:var(--muted);padding:8px 0;font-size:13px}.telegram-advanced .form-field{margin-top:14px}.connection-discovery{margin:12px 0 20px}.connection-steps,.connection-result{padding:16px;margin-top:12px;border:1px solid var(--line);border-radius:10px;background:var(--bg)}.connection-steps p{margin-bottom:12px}.connection-steps ol{padding-left:20px;margin:0 0 14px}.connection-steps li{padding-left:4px;margin-bottom:8px;line-height:1.7;font-size:13px}.connection-code{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:12px}.connection-code code{overflow-wrap:anywhere;word-break:break-all;font-size:12px;max-width:100%}.connection-success{display:flex;align-items:center;gap:8px;margin-top:12px;color:var(--ink);font-size:13px}.connection-result p{margin:8px 0 12px}.notification-side .sub{margin-top:10px;line-height:1.8}

.order-item .form-field>.select-control{margin-bottom:0}.order-item .select-trigger{min-height:44px}

/* Keep password generation aligned with the input in create and reset dialogs. */
.password-control{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:stretch;margin-top:7px}
.password-control input{width:100%;min-width:0;margin:0}
.password-control .password-generate{height:auto;min-height:44px;margin:0;padding:0 12px;white-space:nowrap;align-self:stretch}

.password-field>label{display:block;font-size:12px;font-weight:550;color:var(--muted,#40536a)}

/* Team membership and Telegram onboarding share one clear connection directory. */
.team-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:24px}
.team-heading .sub{margin-top:6px}.team-guide{margin:0 24px 8px;padding:14px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.team-guide>span{display:flex;align-items:center;gap:9px;font-size:12px;font-weight:600;color:var(--primary)}.team-guide p{font-size:12px;color:var(--muted);margin:6px 0 0;line-height:1.7}
.team-member.member-row{display:grid;grid-template-columns:minmax(160px,1fr) minmax(120px,.75fr) auto;gap:20px;padding:22px 24px;align-items:center}
.team-person{display:flex;align-items:center;gap:13px;min-width:0}.team-person .member-meta strong{display:block;line-height:1.85}.team-person .team-you{display:inline-block;margin-left:6px;white-space:nowrap}.team-person .badge{margin-top:6px}.team-you{font-size:10px;font-weight:400;color:var(--muted)}
.team-telegram-status{display:flex;flex-direction:column;gap:4px;font-size:12px;min-width:0}.team-status-label{font-size:10px;color:var(--muted);letter-spacing:.04em}.team-telegram-status small{color:var(--muted);overflow-wrap:anywhere}.team-connected{display:flex;align-items:center;gap:5px;color:#13745c}.team-connected .icon{width:14px;height:14px}.team-invited{color:var(--primary);font-weight:550}
.team-actions.member-actions{display:flex;gap:6px;justify-content:flex-end;align-items:center;flex-wrap:wrap;max-width:245px}.team-actions .btn{min-height:36px}.team-footnote{padding:0 24px 20px}
.telegram-onboarding{max-width:600px;margin:28px auto}.telegram-onboarding h1{font-size:24px;margin:12px 0}.telegram-onboarding>.sub{margin:12px 0;line-height:1.8}.telegram-onboarding-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:12px;background:#edf4f9}.telegram-onboarding-icon svg{width:28px;height:28px}.telegram-signed-in{display:flex;gap:12px;align-items:center;padding:18px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:20px 0}.telegram-signed-in .sub{margin-top:4px}.telegram-invite-steps{padding-left:22px;font-size:13px;line-height:2;color:var(--muted)}.telegram-menu-hint{padding:14px 0;margin-top:12px;border-top:1px solid var(--line)}
@media(max-width:800px){.team-heading{padding:20px;align-items:flex-start}.team-guide{margin:0 20px 8px}.team-member.member-row{grid-template-columns:minmax(0,1fr) minmax(110px,.7fr);gap:14px;padding:20px}.team-actions.member-actions{grid-column:1/-1;max-width:none;justify-content:flex-start;gap:12px}.team-actions .btn{min-height:40px}.team-footnote{padding:0 20px 20px}.telegram-onboarding{margin:0 auto}.telegram-onboarding .row{flex-wrap:wrap}}

/* Telegram actions stay visibly interactive without competing with Save. */
.telegram-action.btn{min-height:40px;padding:9px 14px;border:1px solid #9aaec4;background:#fff;color:var(--primary);font-weight:600;box-shadow:0 1px 2px #001b3a08}
.telegram-action.btn:hover{background:var(--primary-soft);border-color:var(--primary)}
.telegram-action.btn:active{background:#dfeaf4}
.telegram-action.btn.danger{color:#a82f43;border-color:#dab4bd;background:#fff}
.telegram-action.btn.danger:hover{background:#fff0f3;border-color:#a82f43}
.telegram-action.btn.primary{background:var(--primary);border-color:var(--primary);color:white}
.telegram-action.btn:disabled{opacity:1;color:#778695;border-color:#d9e0e8;background:#f4f6f8;box-shadow:none}
.telegram-settings .between{align-items:center;flex-wrap:wrap}.telegram-settings>.card>.between>.sub{margin-top:4px}
.telegram-settings .telegram-connections{margin-bottom:0;padding-bottom:20px}.telegram-settings .telegram-connections>.between{margin-bottom:14px}
.telegram-settings .telegram-recipient{border:0;padding:12px 0 0}.telegram-recipient>div{min-width:0}.telegram-recipient strong,.telegram-recipient small{overflow-wrap:anywhere}
.telegram-settings .notification-option{min-height:54px;padding:13px 14px;align-items:center;gap:12px;cursor:pointer;border-color:#c8d5e3;background:white}
.telegram-settings .notification-option:has(input:checked){border-color:#9eb3c9;background:#f0f5fa}
.telegram-settings .notification-option:hover{border-color:var(--primary)}
.telegram-settings .notification-option:focus-within{outline:2px solid var(--ring);outline-offset:2px}
.telegram-settings .notification-option input{width:18px;height:18px;flex:none;margin:0;accent-color:var(--primary)}
.telegram-settings .notification-option strong{font-size:13px}
.telegram-notification-toggle{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 0;cursor:pointer;font-size:14px}
.telegram-notification-toggle input{appearance:none;position:relative;flex:none;width:44px;height:26px;padding:0;margin:0;border:1px solid #718399;border-radius:20px;background:#8495a8;cursor:pointer;transition:background .15s}
.telegram-notification-toggle input:before{content:'';position:absolute;left:3px;top:3px;width:18px;height:18px;background:white;border-radius:50%;transition:transform .15s}
.telegram-notification-toggle input:checked{background:var(--primary);border-color:var(--primary)}
.telegram-notification-toggle input:checked:before{transform:translateX(18px)}
.telegram-notification-toggle input:focus-visible{outline:2px solid var(--ring);outline-offset:3px}
.telegram-events-title{margin-bottom:12px}.telegram-settings .notification-side .telegram-action{margin-top:16px}
.telegram-settings .telegram-menu-hint{padding:0;margin:0;border:0;line-height:1.7}
.telegram-settings .telegram-advanced summary{font-weight:600;color:var(--ink);min-height:44px;display:list-item;padding:12px 0}
.telegram-settings .settings-save .row{flex-wrap:wrap}.telegram-settings .notification-options{gap:10px}
@media(max-width:600px){.telegram-action.btn,.team-actions .telegram-action.btn{min-height:44px}.telegram-settings .card-pad{padding:20px}.telegram-settings .notification-options{grid-template-columns:1fr}.telegram-recipient{align-items:flex-start;flex-wrap:wrap}.telegram-settings .telegram-connections>.between{gap:10px}.telegram-settings .settings-save .btn{flex:1}.telegram-settings .notification-side .telegram-action{width:100%}}
@media(prefers-reduced-motion:reduce){.telegram-notification-toggle input,.telegram-notification-toggle input:before{transition:none}}

/* Workspace refinement — restrained surfaces, clear actions and contained badges.
   Reference: emilkowalski/skills (emil-design-eng, ui-cheatsheet). */
:root{--workspace-safe-top:max(env(safe-area-inset-top,0px),var(--tg-content-safe-area-inset-top,0px));--workspace-safe-bottom:max(env(safe-area-inset-bottom,0px),var(--tg-content-safe-area-inset-bottom,0px));--workspace-header:56px;--workspace-nav:64px;--ease-press:cubic-bezier(.23,1,.32,1)}
.topbar{height:calc(var(--workspace-header) + var(--workspace-safe-top));padding-top:var(--workspace-safe-top);padding-bottom:0;overflow:visible;gap:16px;background:#fff}
.topbar>.row{flex:none;gap:6px;min-width:0}
.topbar .icon-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;width:44px;min-width:44px;height:44px;min-height:44px;flex:none;color:var(--muted);border-radius:8px}
.topbar [data-action=attention]{isolation:isolate}
.topbar .notification-count{top:2px;right:1px;min-width:18px;max-width:30px;height:18px;padding:0 3px;border:2px solid #fff;border-radius:999px;background:var(--primary);color:#fff;font-size:9px;font-weight:650;line-height:1;box-sizing:content-box;z-index:1}
.workspace-search{min-width:0;min-height:44px;border:0;border-radius:0;padding:0;max-width:360px}
.workspace-search input{min-width:0;min-height:44px;padding-top:10px;padding-bottom:10px}
.workspace-search:focus-within{border:0;border-radius:0;box-shadow:inset 0 -1px var(--ring)}
.workspace-results{top:calc(100% + 5px);border-radius:8px;box-shadow:0 8px 24px #182c401a}
.main{padding-top:24px}.page-head{align-items:center;gap:16px;margin-bottom:20px}.page-head h1{font-size:26px;line-height:1.25;letter-spacing:-.02em;font-weight:650}.page-head p{max-width:65ch;font-size:13px;line-height:1.5;margin-top:6px}.page-head .actions{gap:8px;flex-wrap:wrap}.page-head .actions:empty{display:none}
.card{border-radius:10px;box-shadow:none}.card-pad,.chart-card{padding:20px}.card h2{font-size:15px;line-height:1.4;font-weight:650;letter-spacing:-.01em}
.btn{min-height:40px;padding:8px 13px;font-weight:600;border-color:#a5b7c8;box-shadow:none;border-radius:7px;color:var(--primary);transition:background-color 120ms ease,border-color 120ms ease,transform 120ms var(--ease-press)}
.btn.small{min-height:36px;padding:6px 10px}.btn.primary{box-shadow:none}.btn.ghost{color:var(--primary);border-color:transparent;background:transparent;box-shadow:none}
.btn.danger{color:#a52c42;border-color:#c08d99;background:#fff}.btn:disabled{opacity:1;color:#7b8896;background:#f3f5f7;border-color:#dce3ea;box-shadow:none}.btn.ghost:disabled{border-color:transparent;background:transparent}
.btn:focus-visible,.icon-btn:focus-visible,[role=button]:focus-visible{outline:2px solid var(--ring);outline-offset:3px}
.btn:active:not(:disabled):not([data-action=tab]):not([data-action=nav]):not(.ghost){transform:scale(.97)}
.icon-btn{color:var(--muted);border-radius:7px;flex-shrink:0}.btn svg.icon,.icon-btn svg.icon{pointer-events:none;flex:none}
input:not([type=checkbox]):not([type=radio]),textarea,.select-trigger{border-color:#bac9d7}.form-field>span,.form-field>label{color:var(--ink)}
.num,.value,.count,.badge,.usage-num,td.right{font-variant-numeric:tabular-nums}
.stats.dashboard-summary{display:grid;grid-template-columns:1.4fr repeat(3,minmax(0,1fr));gap:0;margin:0 0 20px;background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.dashboard-summary .stat{padding:20px;min-width:0;border:0;border-radius:0;box-shadow:none;background:transparent}
.dashboard-summary .stat+.stat{border-left:1px solid var(--line)}
.dashboard-summary .stat:nth-child(3){grid-column:auto;grid-row:auto}
.dashboard-summary .stat:nth-child(4){display:block}
.dashboard-summary .stat .label{font-size:12px;line-height:1.5;color:var(--muted)}
.dashboard-summary .stat .value{font-size:28px;line-height:1.2;margin:8px 0 0;letter-spacing:-.025em;color:var(--ink)}
.dashboard-summary .stat-value .value{color:var(--primary)}
.dashboard-summary .stat-note{margin-top:7px;font-size:11px;line-height:1.45}
.dashboard-grid{gap:16px;grid-template-columns:minmax(0,1.8fr) minmax(260px,1fr)}.lower-grid{gap:16px;margin-top:16px}.lower-grid>.card{min-height:0}.chart-heading{margin-bottom:16px;gap:12px}.chart-legend{color:var(--muted)}.bar-chart{height:180px}.bar{background:var(--ring);border-radius:3px 3px 0 0;transition:none}.usage-num{font-size:28px;margin:20px 0 14px}.usage-num span{font-size:15px}.usage-meta{font-size:12px;margin-bottom:16px}.footer-note{max-width:80ch;font-size:12px;line-height:1.6}
.task{gap:10px;min-height:44px;padding:12px 0;font-size:12px}.task:hover{background:var(--primary-soft)}.task>.count{margin-left:auto}.task>.icon:last-child{width:16px}.metric-line{font-size:12px}.metric-line .progress{height:5px}
.toolbar{gap:12px;padding:14px 16px;flex-wrap:wrap}.toolbar .search-field{min-width:180px}.search-field input{min-height:42px}.tabs{gap:20px;padding:0 16px;scrollbar-width:thin}.tab{font-size:12px;min-height:44px;padding:13px 0;flex:none}.tab .count{margin-left:6px}.count{border-radius:5px;line-height:1.4}
th{padding:12px 16px;font-size:11px;background:#f5f8fa;color:var(--muted)}td{padding:14px 16px;font-size:13px}.table-sub{font-size:11px;color:var(--muted);margin-top:4px}.table-order-link{min-height:32px}.badge{font-size:11px;line-height:1.4;padding:4px 7px;border-radius:5px}
.product-grid{gap:16px}.product-card{transition:border-color 120ms ease;background:#fff}.product-card:hover{transform:none;box-shadow:none;border-color:var(--ring)}.product-body{padding:16px}.product-body h3{font-size:14px;line-height:1.65;margin:7px 0 10px}.product-price{font-size:15px}.stock-info{font-size:12px}.product-photo{background:#f4f6f8}
.empty{min-height:160px;padding:32px 20px;gap:8px}.empty h3{font-size:15px;font-weight:600;margin:0}.empty p{font-size:13px;line-height:1.65;margin:0;max-width:38ch}.empty>.btn{margin-top:8px}
#dialog{border-radius:12px;box-shadow:0 16px 48px #182c4026}.modal-head{padding:18px 20px;min-height:64px;gap:12px}.modal-head h2{font-size:17px;line-height:1.4}.modal-body{padding:20px}.modal-actions{padding-top:20px;gap:8px;align-items:center}.modal-actions>.btn{min-height:40px}.modal-head .icon-btn{width:40px;height:40px;min-width:40px;min-height:40px}.modal-head .icon-btn:hover{background:var(--primary-soft)}
#notification-list{gap:0}.notification-item{border:0;border-bottom:1px solid var(--line);border-radius:0;padding:16px 12px;gap:6px;min-width:0;background:#fff}.notification-item:last-child{border-bottom:0}.notification-item strong{font-size:13px}.notification-item span{line-height:1.65;overflow-wrap:anywhere}.notification-item small{font-size:11px;color:var(--muted)}.notification-item.unread{border-left:3px solid var(--primary);padding-left:9px;background:var(--primary-soft)}
.notification-item:focus-visible{outline-offset:-3px}.notification-item:hover{background:#f0f5f9}
.more-card{border-radius:8px;box-shadow:none;padding:18px;min-height:64px}.more-card:hover{transform:none;box-shadow:none}.settings-nav .nav-item{border-radius:7px}.team-guide{padding:12px 0}.notification-side .sub{line-height:1.6}
.account-menu,.select-options,.export-menu,.calendar-panel{border-radius:8px;transform-origin:top right}.select-options{transform-origin:top left}.account-menu button{min-height:44px}.select-options [role=option]{min-height:40px}
html[data-input-mode=keyboard] *,html[data-input-mode=keyboard] *:before,html[data-input-mode=keyboard] *:after{animation:none!important;transition:none!important}
@media(hover:hover) and (pointer:fine){.btn:not(:disabled):hover{border-color:var(--ring)}.btn.ghost:not(:disabled):hover{border-color:transparent;background:var(--primary-soft)}.icon-btn:hover{background:var(--primary-soft);color:var(--primary)}}
@media(max-width:1100px) and (min-width:801px){.dashboard-summary .stat{padding:16px}.dashboard-summary .stat .value{font-size:24px}.dashboard-grid{grid-template-columns:minmax(0,1.5fr) minmax(230px,1fr)}}
@media(max-width:800px){
 html{scrollbar-gutter:auto;scroll-padding-top:calc(var(--workspace-header) + var(--workspace-safe-top) + 8px)}
 .topbar{padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right));gap:8px}.topbar>.row{gap:2px}.topbar .avatar{width:30px;height:30px}.topbar .header-divider{display:none}
 .workspace-search{flex:1;max-width:none}.workspace-search input{font-size:16px;padding-left:26px}.workspace-search>.icon{width:17px;left:0}.workspace-search input::placeholder{font-size:14px}.workspace-search .workspace-results{position:fixed;top:calc(var(--workspace-header) + var(--workspace-safe-top));left:12px;right:12px;width:auto;max-width:none;max-height:55dvh}
 .main{padding:20px 16px calc(var(--workspace-nav) + var(--workspace-safe-bottom) + 24px)}.page-head{margin-bottom:16px;gap:12px;align-items:flex-start;flex-wrap:wrap}.page-head h1{font-size:24px}.page-head p{font-size:12px}.page-head .actions{width:100%;gap:8px}.page-head .actions .btn{min-height:44px;font-size:13px}.page-head .actions .select-control{max-width:180px}
 .btn,.btn.small,.team-actions .btn,.member-actions .btn{min-height:44px}.icon-btn{min-height:44px;min-width:44px}.chat-header .btn{min-height:44px}
 input:not([type=checkbox]):not([type=radio]),select,textarea,.select-trigger{font-size:16px}.form-field{min-width:0}.select-trigger{min-height:44px}
 .stats.dashboard-summary{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:16px}.dashboard-summary .stat{padding:16px 12px}.dashboard-summary .stat.stat-value{grid-column:1/-1;padding:18px 16px;border-bottom:1px solid var(--line)}.dashboard-summary .stat.stat-value+.stat{border-left:0}.dashboard-summary .stat .label{font-size:11px;line-height:1.5;min-height:33px}.dashboard-summary .stat .value{font-size:24px;margin-top:6px}.dashboard-summary .stat-value .label{min-height:0;font-size:12px}.dashboard-summary .stat-value .value{font-size:28px}.dashboard-summary .stat-note{font-size:11px}
 .dashboard-grid,.lower-grid{grid-template-columns:minmax(0,1fr);gap:14px}.lower-grid{margin-top:14px}.card-pad,.chart-card{padding:18px}.chart-heading{align-items:flex-start}.bar-chart{height:150px}.chart-legend{display:none}.usage-num{margin:16px 0 12px}
 .mobile-nav{height:calc(var(--workspace-nav) + var(--workspace-safe-bottom));padding:6px max(8px,env(safe-area-inset-right)) calc(6px + var(--workspace-safe-bottom)) max(8px,env(safe-area-inset-left));background:#fff;backdrop-filter:none;gap:4px;align-items:center}.mobile-nav button{flex:1;min-width:0;min-height:48px;height:48px;font-size:10px;gap:4px}.mobile-nav .icon{width:21px;height:21px}.mobile-nav button.active .icon{background:transparent;box-shadow:none;border-radius:0}.mobile-nav button.active{color:var(--primary);background:var(--primary-soft);border-radius:8px}.mobile-nav .nav-count{top:1px;right:calc(50% - 25px);font-size:9px;line-height:14px;min-width:16px;max-width:32px;padding:0 3px;background:var(--primary)}
 #toasts{bottom:calc(var(--workspace-nav) + var(--workspace-safe-bottom) + 12px);max-width:calc(100vw - 32px)}
 .main.main-inbox{padding:0 0 calc(var(--workspace-nav) + var(--workspace-safe-bottom))}.main-inbox .inbox{height:calc(100dvh - var(--workspace-header) - var(--workspace-safe-top) - var(--workspace-nav) - var(--workspace-safe-bottom))!important}.demo-ribbon~.main-inbox .inbox{height:calc(100dvh - var(--workspace-header) - var(--workspace-safe-top) - var(--workspace-nav) - var(--workspace-safe-bottom) - 24px)!important}
 #dialog,#dialog:has(#product-form),#dialog:has(.order-detail){max-height:calc(100dvh - var(--workspace-safe-top) - var(--workspace-safe-bottom) - 24px);max-width:calc(100vw - 24px);border-radius:12px;scroll-padding-top:72px}.modal-head{padding:14px 16px}.modal-body{padding:16px}.modal-actions>.btn{min-height:44px}
 .toolbar{padding:12px;gap:10px}.toolbar .search-field{flex:1 1 200px;max-width:none}.tabs{padding:0 12px;gap:18px}.tab{min-height:48px}.product-grid{gap:12px}.product-body{padding:12px}.product-body h3{font-size:13px}.product-price{font-size:14px}.footer-note{font-size:11px}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.btn:active:not(:disabled){transform:none!important}}
.workspace-search>.icon{position:absolute;left:0;top:50%;transform:translateY(-50%);pointer-events:none}.workspace-search input{padding-left:28px;margin:0}
.topbar [data-action=attention]:has(.notification-count)>.icon{transform:translate(-3px,2px)}
.bar-chart .bar{background:var(--ring);opacity:1}.count,.badge.blue{background:var(--primary-soft);color:var(--primary-hover)}
.main-dashboard>.dashboard-review{margin-bottom:12px;padding:10px 14px;gap:10px;flex-wrap:nowrap;align-items:center}.dashboard-review>span{flex:1;font-size:12px}.dashboard-review>.btn{margin:0;min-height:36px;padding:6px 8px;flex:none}
.order-cards .order-card{padding:16px;min-height:0}.order-card-customer{font-size:14px;font-weight:550;margin:6px 0;color:var(--ink)}.order-card-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;color:var(--muted)}.order-card-meta strong{font-size:15px;color:var(--ink)}.order-card-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:12px;padding-top:10px;border-top:1px solid var(--line)}.order-card-footer>div{display:flex;align-items:center;flex-wrap:wrap;gap:6px;font-size:11px;min-width:0}.order-card-footer .btn{flex:none;padding:6px 8px}.order-card-footer .btn .icon{width:15px}.order-card-footer .badge{font-size:10px}.order-card .table-order-link{color:var(--primary);font-weight:650;font-size:13px}
.knowledge-card{padding:20px;box-shadow:none;transition:border-color 120ms ease}.knowledge-card:hover{transform:none;box-shadow:none;border-color:var(--ring)}.knowledge-card h2{margin:0 0 8px}.knowledge-card p{font-size:13px;line-height:1.7;max-width:65ch}.knowledge-card .rule{margin:14px 0}.knowledge-card .between>.sub{color:var(--primary);font-weight:550}
.customer-orders-label{display:none}
@media(max-width:800px){
 .customer-table,.customer-table tbody{display:block;width:100%}.customer-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .customer-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;padding:14px 16px;border-top:1px solid var(--line)}
 .customer-table td{display:block;min-width:0;border:0;padding:0;font-size:12px;white-space:normal;overflow-wrap:anywhere}
 .customer-table td:first-child{grid-column:1;grid-row:1}.customer-table td:first-child .row{gap:8px}.customer-table .customer-name{min-height:44px;font-size:14px}.customer-table .avatar{width:30px;height:30px}
 .customer-table td:nth-child(2){grid-column:1;grid-row:2;color:var(--muted);align-self:center}.customer-table td:nth-child(3){grid-column:1/-1;grid-row:3;color:var(--muted);line-height:1.6}
 .customer-table td:nth-child(4){grid-column:2;grid-row:2;justify-self:end}.customer-table td:nth-child(5){grid-column:2;grid-row:1;align-self:center;color:var(--muted)}.customer-orders-label{display:inline}
}
@media(max-width:800px){.dashboard-review>.btn{min-height:44px}.main-dashboard>.dashboard-review{padding:8px 12px}.main-orders .toolbar .search-field{flex-basis:100%;max-width:none}.order-card-footer>.btn{min-height:44px}.knowledge-card{padding:18px}.main-inbox .inbox-list-head>.row .btn{min-height:40px}}

/* Dialog and action controls. One content gutter and one footer across forms. */
:root{--dialog-gutter:24px;--control-height:40px;--control-radius:7px;--destructive:#a52c42}
#dialog[open]{display:flex;flex-direction:column;overflow:hidden;max-height:calc(100dvh - var(--workspace-safe-top) - var(--workspace-safe-bottom) - 32px);animation:surface-appear 140ms ease-out}
#dialog::backdrop{background:#14283d52;backdrop-filter:blur(2px)}
@keyframes surface-appear{from{opacity:0}to{opacity:1}}
#dialog>.modal-head{flex:none;position:relative;padding:16px var(--dialog-gutter);min-height:68px;z-index:2}
#dialog-title{font-size:17px;font-weight:650;line-height:1.5;outline:none}
#dialog>.modal-body{padding:var(--dialog-gutter);overflow:auto;min-height:0;overscroll-behavior:contain}
#dialog .modal-head .icon-btn{width:36px;min-width:36px;height:36px;min-height:36px;border:0;color:var(--muted);background:transparent}
#dialog .modal-head .icon-btn:hover{background:var(--primary-soft)}
#dialog .modal-body:has(>form:only-child>.modal-form-content){padding:0;display:flex;overflow:hidden}
.modal-body>form:only-child:has(>.modal-form-content){display:flex;flex-direction:column;min-height:0;min-width:0;width:100%;margin:0}
.modal-form-content{padding:var(--dialog-gutter);min-height:0;overflow:auto;overscroll-behavior:contain;scroll-padding-block:16px}
.modal-form-content>.form-field:first-child,.modal-form-content>input[type=hidden]+.form-field{margin-top:0}
.modal-form-content>.form-field:last-child{margin-bottom:0}
.modal-form-content input,.modal-form-content textarea,.modal-form-content .select-trigger{scroll-margin-block:20px}
.modal-actions,.photo-editor .photo-actions{flex:none;display:flex;align-items:center;justify-content:flex-end;gap:8px;margin:0;padding:16px var(--dialog-gutter);border-top:1px solid var(--line);background:#fff}
.modal-actions>.btn{min-width:88px;min-height:var(--control-height);flex:0 0 auto;white-space:nowrap}
.modal-actions>.btn.primary{min-width:112px}
.btn.ghost,.modal-actions [data-action=close]{border-color:transparent;background:transparent;box-shadow:none;color:var(--primary);font-weight:550}
.btn.ghost.danger{color:var(--destructive);border-color:transparent;background:transparent}
.icon-btn.danger{color:var(--muted);background:transparent}
.icon-btn.danger:hover,.btn.ghost.danger:hover{color:var(--destructive);background:#fbf0f2}
.icon-btn:disabled{opacity:.45;cursor:not-allowed}
.error-text:empty{display:none}
.error-text:not(:empty){margin:14px 0 0;line-height:1.6}
.form-field>span{display:block;line-height:1.5;margin-bottom:7px}
.form-field input,.form-field textarea,.form-field .select-control{margin-top:0}
.select-trigger,.calendar-trigger{min-height:var(--control-height);border-radius:var(--control-radius);border-color:#bac9d7}
.select-trigger:disabled,.calendar-trigger:disabled{opacity:1;background:#f3f5f7;border-color:var(--line);color:#7b8896;cursor:not-allowed}
.select-trigger:focus-visible,.calendar-trigger:focus-visible{outline:2px solid var(--ring);outline-offset:2px}
.select-trigger[aria-invalid=true],.calendar-trigger[aria-invalid=true]{border-color:var(--destructive)}
#dialog:has(#product-form)>.modal-body{display:flex;padding:0;overflow:hidden}
#product-form{display:flex;flex-direction:column;width:100%;min-height:0;min-width:0}
#product-form>.pe-layout{overflow:auto;min-height:0;overscroll-behavior:contain}
#product-form>.modal-actions{position:relative;padding:16px var(--dialog-gutter);margin:0;z-index:1}
#dialog:has(.order-detail)>.modal-body{padding:0}
#dialog.image-viewer>.modal-body{padding:12px}

/* Photo changes, including removal, are a draft until Save changes. */
#dialog.photo-editor-dialog{width:448px}
#dialog.photo-editor-dialog>.modal-body{padding:0;display:flex;overflow:hidden}
.photo-editor{display:flex;flex-direction:column;width:100%;min-height:0;max-width:none;margin:0}
.photo-content{padding:20px var(--dialog-gutter);overflow:auto;min-height:0;overscroll-behavior:contain}
.photo-stage{position:relative;overflow:hidden;margin:auto;width:min(100%,320px);aspect-ratio:1;border-radius:8px;background:#f1f4f7;border:1px solid var(--line);display:grid;place-items:center}
.photo-stage #profile-crop{display:block;width:100%;height:100%;max-width:none;border:0;border-radius:0;margin:0;background:transparent;touch-action:none;cursor:crosshair}
.photo-stage #profile-crop[hidden]{display:none}
.photo-empty{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;gap:8px;text-align:center;padding:20px;line-height:1.5}
.photo-empty-icon .icon{width:28px;height:28px;color:#6e8295}.photo-empty strong{font-size:14px;font-weight:550;color:var(--ink)}.photo-empty>span:last-child{font-size:11px}
.photo-preview-row{display:flex;align-items:center;gap:12px;max-width:320px;margin:16px auto}.photo-preview-row[hidden]{display:none}
.photo-preview-row #profile-preview{height:40px;width:40px;max-width:40px;aspect-ratio:1;border-radius:50%;background:var(--primary-soft);outline:1px solid var(--line);flex:none}.photo-preview-row p{font-size:12px;line-height:1.6}
.photo-empty[hidden]{display:none}.favicon-editor .photo-preview-row #profile-preview{border-radius:6px}
.photo-tools{display:flex;align-items:center;justify-content:space-between;gap:8px;max-width:320px;margin:16px auto 0}
.photo-tool-actions{display:flex;gap:4px;align-items:center}
.photo-tools .btn{min-height:40px;font-size:12px;padding:8px 10px}.photo-tools .icon-btn{height:40px;width:40px;min-width:40px;min-height:40px}
.photo-tools [hidden],.photo-removal[hidden]{display:none}
.photo-removal{display:flex;align-items:center;justify-content:space-between;gap:8px;max-width:320px;margin:12px auto 0;padding:8px 0;font-size:12px;color:var(--muted)}
.photo-editor .photo-actions{justify-content:flex-end;margin:0}.photo-editor #photo-error{max-width:320px;margin:12px auto 0}.photo-editor #photo-error:empty{display:none}

/* Catalog and selections share the same form rhythm. */
.cart-catalog-tools{gap:12px;margin-bottom:12px}.cart-catalog-tools .form-field>span{font-size:12px}
.cart-catalog-grid{gap:8px;max-height:260px;padding:2px 4px 2px 2px;scrollbar-width:thin}
.catalog-product{border-radius:8px;padding:10px;gap:10px}.catalog-photo{height:64px;width:48px;flex-basis:48px;border-radius:4px;background:#f5f7f9}
.catalog-copy{line-height:1.6}.catalog-copy strong{font-size:12px;font-weight:550}.catalog-product>.icon{color:var(--primary)}
#cart-catalog-count,#order-catalog-count{margin:10px 0 0;font-size:11px}
.selection-heading{margin:24px 0 12px;gap:12px}.selection-heading h3{font-size:13px;font-weight:600}.selection-heading .sub{font-size:11px}
#cart-item-form .cart-selection-details{margin:0;padding:0;border:0;min-width:0}
#cart-selected-items:empty{display:flex!important;flex-direction:column;align-items:center;justify-content:center;min-height:88px;padding:20px 16px;border:0;border-radius:8px;background:#f6f8fa;gap:5px;text-align:center}
#cart-selected-items:empty:before{content:'No products selected';font-size:13px;font-weight:550;color:var(--ink)}
#cart-selected-items:empty:after{content:'Choose a product above.';font-size:12px;color:var(--muted)}
.order-item,.order-item+.order-item{margin:0 0 12px;padding:16px;border:1px solid var(--line);border-radius:8px;background:#fff}
.order-item:last-child{margin-bottom:0}.order-line-heading{gap:12px;margin-bottom:16px}.order-line-heading strong{font-size:13px;font-weight:600;line-height:1.65}.order-line-heading .sub{font-size:12px;margin-top:4px}
.order-line-heading>.icon-btn{align-self:flex-start;width:36px;min-width:36px;height:36px;min-height:36px}
.order-item .form-grid{gap:12px}.order-item .form-field>span{font-size:12px;margin-bottom:7px}.order-item .select-trigger{min-height:44px}
#order-items:not(:empty){margin-top:20px}#order-form .order-section-heading{border-top:1px solid var(--line);padding-top:24px;margin-top:24px}
#order-form .order-catalog{margin-top:14px}

/* Menus use the same edge, focus and selected states; no detached floating rows. */
.account-menu,.export-menu,.select-options,.calendar-panel{border:1px solid #cfdae4;border-radius:8px;box-shadow:0 8px 24px #182c4021;overflow:auto;overscroll-behavior:contain;animation:surface-appear 100ms ease-out}
.account-menu,.export-menu{padding:6px}.account-menu>button{font-size:13px;min-height:40px;padding:10px;border-radius:5px}.account-summary{padding:10px;margin-bottom:6px}.account-summary strong{font-size:13px}.account-summary .avatar{flex:none}.account-signout{border-top:1px solid var(--line)!important;border-radius:0!important;margin-top:6px;padding-top:12px!important}
.account-menu>button:focus-visible,.export-menu>button:focus-visible{outline:2px solid var(--ring);outline-offset:-2px;background:var(--primary-soft)}
.select-options [role=option]{min-height:40px;display:flex;align-items:center;padding:9px 32px 9px 10px;line-height:1.6;white-space:normal;overflow-wrap:anywhere}
.select-options [role=option]:focus{outline:2px solid var(--ring);outline-offset:-2px}
.select-options [role=option][aria-disabled=true]{color:#7b8896;opacity:1;background:transparent}
.calendar-panel button:focus-visible{outline:2px solid var(--ring);outline-offset:-2px}.calendar-panel button:disabled{opacity:.4;background:transparent}
.calendar-panel [data-step]{width:36px;height:36px}.calendar-footer button{min-height:36px;padding:6px 10px;color:var(--primary)}
@media(max-width:800px){
 :root{--dialog-gutter:16px;--control-height:44px}
 #dialog[open]{max-height:calc(100dvh - var(--workspace-safe-top) - var(--workspace-safe-bottom) - 24px)}
 #dialog>.modal-head{padding:12px var(--dialog-gutter);min-height:64px}
 #dialog .modal-head .icon-btn{min-width:44px;width:44px;height:44px;min-height:44px}
 .modal-actions,.photo-editor .photo-actions,#product-form>.modal-actions{padding:12px var(--dialog-gutter);gap:8px}
 .modal-actions>.btn{flex:0 0 auto;min-width:80px}.modal-actions>.btn.primary{min-width:108px}
 .photo-stage{width:min(100%,280px)}.photo-tools,.photo-preview-row,.photo-removal{max-width:320px}.photo-tools .btn,.photo-tools .icon-btn{min-height:44px}.photo-tools .icon-btn{min-width:44px;width:44px;height:44px}
 .photo-content{padding:16px var(--dialog-gutter)}
 .catalog-product{padding:8px}.catalog-photo{width:40px;height:56px;flex-basis:40px}.cart-catalog-grid{max-height:230px}
 .order-item,.order-item+.order-item{padding:12px}.order-line-heading>.icon-btn{width:44px;min-width:44px;height:44px;min-height:44px}
 .account-menu>button,.export-menu>button,.select-options [role=option]{min-height:44px}
}
@media(max-width:380px){.cart-catalog-grid{grid-template-columns:1fr}.photo-tools{flex-wrap:wrap}.photo-tool-actions{margin-left:auto}}
@media(max-height:650px){.photo-stage{width:min(100%,220px)}.photo-preview-row{margin:10px auto}.photo-tools{margin-top:10px}}
#confirm-dialog{width:420px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);padding:0;border:1px solid var(--line);border-radius:12px;box-shadow:0 16px 48px #182c4026;overflow:auto}
#confirm-dialog::backdrop{background:#14283d52;backdrop-filter:blur(2px)}
.confirm-content{padding:24px}.confirm-content h2{font-size:17px;line-height:1.5}.confirm-content p{font-size:13px;line-height:1.7;color:var(--muted);margin-top:8px}
#confirm-dialog .modal-actions{padding:16px 24px}
.btn.destructive{color:#fff;background:var(--destructive);border-color:var(--destructive)}.btn.destructive:hover{background:#8d2338;border-color:#8d2338}
@media(max-width:800px){.confirm-content{padding:20px}#confirm-dialog .modal-actions{padding:12px 16px}.modal-actions>.btn{max-width:100%;white-space:normal}}
.login-inner .modal-form-content{padding:0;overflow:visible}.login-inner .modal-actions{padding:20px 0 0;border:0}
.btn[aria-busy=true]{cursor:wait}

@media(pointer:coarse){.photo-stage #profile-crop{cursor:grab}}
#dialog:has(#customer-form),#dialog:has(#member-form),#dialog:has(#reset-form),#dialog:has(#stock-form){width:560px}
.password-control .password-generate{border:1px solid #bac9d7;border-radius:7px;background:#fff;color:var(--primary);padding:0 14px}

/* Compact Inbox: one title/actions row and one channel/filter row. */
.compact-inbox-title,.account-avatar,.topbar .inbox-search-toggle,.inbox-filter-toggle{display:none}
.inbox-search{margin:14px 0;display:flex;align-items:center;gap:4px}
.inbox-search .search-field{flex:1;min-width:0}
.inbox-search>[data-action="inbox-search-close"]{display:none}
.filter-active-dot{position:absolute;top:5px;right:5px;width:7px;height:7px;border-radius:50%;background:var(--blue)}
@media(max-width:800px){
 /* A narrow desktop WebView has classic scrollbars, unlike touch phones.
    Use a slim, matching track, never a reserved white gutter. */
 html{scrollbar-gutter:auto;scrollbar-width:thin;scrollbar-color:#aab9c8 var(--bg);background:var(--bg)}
 .inbox-topbar .workspace-search,.inbox-topbar .mobile-brand,.inbox-topbar .header-avatar,.inbox-topbar .account-dots{display:none!important}
 .inbox-topbar .compact-inbox-title{display:flex;align-items:baseline;gap:8px;min-width:0}
 .compact-inbox-title strong{font-size:17px;letter-spacing:-.3px}
 .compact-inbox-title span{font-size:11px;color:var(--muted);white-space:nowrap}
 .inbox-topbar .account-avatar{display:flex}
 .inbox-topbar .header-actions{gap:2px}
 .inbox-topbar .inbox-search-toggle,.inbox-filter-toggle{display:inline-flex;position:relative}
 .inbox-topbar [data-action="account"]{padding:4px}
 .inbox-topbar .profile-avatar{width:30px;height:30px;pointer-events:none}
 .inbox-heading,.inbox-status-filters{display:none!important}
 .inbox-list-head{padding:4px 12px 8px}
 .inbox-search{display:none;margin:4px 0 8px}
 .inbox-search.is-open{display:flex}
 .inbox-search>[data-action="inbox-search-close"]{display:inline-flex;flex-shrink:0}
 .channel-filters{display:flex;gap:6px;margin:0}
 .channel-filters .channel-filter{flex:1;min-width:0;min-height:44px;padding:8px;border-radius:8px}
 .channel-filters .inbox-filter-toggle{width:44px;height:44px;flex-shrink:0;border:1px solid var(--line);border-radius:8px;background:#fff}
 .channel-filters .inbox-filter-toggle:has(.filter-active-dot){background:var(--primary-soft);border-color:var(--ring)}
 .main-inbox .inbox-list-head>.between{display:none}
}
.inbox-filter-menu{position:fixed;z-index:120;width:210px;padding:6px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 8px 24px #182c401a}
.inbox-filter-menu button{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:44px;padding:10px 12px;border:0;border-radius:6px;background:#fff;color:var(--ink);text-align:left}
.inbox-filter-menu button:hover,.inbox-filter-menu button:focus-visible{background:var(--primary-soft)}
@media(max-width:800px){
 /* Scroll the content, not the Mini App frame. Classic desktop scrollbars no
    longer shorten the header or leave a strip beside the bottom navigation. */
 html:has(#app>.main){overflow:hidden;scrollbar-gutter:auto}
 #app:has(>.main){height:100dvh;display:flex;flex-direction:column;overflow:hidden;padding-bottom:calc(var(--workspace-nav) + var(--workspace-safe-bottom))}
 #app>.topbar,#app>.demo-ribbon{flex-shrink:0}
 #app>.main{flex:1;min-height:0;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:thin;scrollbar-color:#aab9c8 var(--bg);padding-bottom:24px}
 #app>.main-inbox{padding-bottom:0;overflow:hidden}
 #app>.main-inbox .inbox{height:100%!important;min-height:0!important}
}

/* Mixed-content dialogs stay in document flow; only a single form owns the
   fixed footer. Never turn headings, forms and account actions into columns. */
#dialog>.modal-body{display:block}
#dialog>.modal-body:has(>form:only-child>.modal-form-content){display:flex}
#dialog:has(#role-form){width:560px}
.member-dialog-identity{display:flex;align-items:center;gap:12px;padding-bottom:20px}
.member-dialog-identity>div{min-width:0;flex:1;overflow-wrap:anywhere}
.member-dialog-identity>.badge{flex-shrink:0}
.member-dialog-section{padding:20px 0;border-top:1px solid var(--line)}
.member-dialog-section:last-of-type{padding-bottom:0}
.member-dialog-section h3{margin-bottom:8px}
.member-dialog-section .form-field{margin:12px 0}
.member-dialog-section .row,.member-dialog-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.member-dialog-section .btn{white-space:normal;min-height:40px;max-width:100%}
#role-form .check{align-items:flex-start}
#role-form .check input{flex-shrink:0}
/* Legacy mixed forms still get full-width content and a usable local footer. */
.modal-body>form:not(:only-child){min-width:0;width:100%}
.modal-body>form:not(:only-child)>.modal-form-content{padding:16px 0;overflow:visible}
.modal-body>form:not(:only-child)>.modal-actions{padding:16px 0 0}
@media(max-width:800px){
 .member-dialog-section .btn{min-height:44px}
 .member-dialog-identity{gap:10px}
}
#channel-form .connection-modal-top{margin:0 0 12px}
#channel-form .setting-switch:last-of-type{border-bottom:0}
#order-action-form:has([name=action][value=cancel]) [type=submit]{background:var(--destructive);border-color:var(--destructive);color:#fff}

/* Cart headings stay available while populated selections and history scroll. */
.cart-context>.cart-heading{position:sticky;top:0;z-index:2;padding:16px 18px;background:#fff;border-bottom:1px solid var(--line);gap:12px;align-items:center}
.cart-context>.cart-heading h2{outline:none;margin:0;line-height:1.6;flex-wrap:wrap;gap:8px}
.cart-context>.cart-heading p{margin-top:3px;line-height:1.6}
.cart-context>.cart-heading .cart-close{flex:none}
.cart-context>.cart-workspace{padding-top:0}
.cart-context{scroll-padding-top:100px}
.delivery-payment>*{min-width:0;overflow-wrap:anywhere;line-height:1.8}
.delivery-payment>span{flex-shrink:0}
.bar-col:first-child>span{left:0}.bar-col:last-child>span{right:0}
@media(min-width:801px){.chat-header .mobile-only{display:none}}
@media(max-width:480px){
 .team-member.member-row{grid-template-columns:minmax(0,1fr);gap:14px}
 .team-member .team-person{align-items:flex-start}
 .team-member .team-telegram-status{padding-left:47px}
}

/* Reserve the amount column before wrapping long product names. */
.order-review .detail-line{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:12px}
.order-review .detail-line:not(.total)>strong{white-space:nowrap;text-align:right;font-variant-numeric:tabular-nums}
.order-review .detail-line.total{grid-template-columns:auto minmax(0,1fr)}
.order-review .detail-line.total>strong:last-child{text-align:right}

.recent-order.task{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;text-align:left}
.recent-order>span:nth-child(2){grid-column:1/-1;grid-row:2;overflow-wrap:anywhere;line-height:1.8;color:var(--muted)}
.recent-order>span:last-child{grid-column:2;grid-row:1;white-space:nowrap;font-variant-numeric:tabular-nums}

/* A receipt rejection is local to its review; Cancel keeps the order open. */
.order-payment-panel:has(.payment-rejection) #payment-form,
.order-payment-panel:has(.payment-rejection) .payment-review-reject{display:none}
.payment-rejection{margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}
.payment-rejection-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin-top:16px}
.payment-rejection textarea{min-height:100px}

/* Long synthetic reports use the same wrapping action rows as team dialogs. */
.simulation-runs,.simulation-report{display:grid;gap:16px;min-width:0}
.simulation-runs{margin-top:24px}
.simulation-report p{margin:0;overflow-wrap:anywhere;line-height:1.8}
.simulation-report h3{margin:8px 0 0}
.simulation-run{display:grid;gap:12px;min-width:0}
.simulation-run>strong{line-height:1.8;overflow-wrap:anywhere}
.simulation-run .row,.simulation-report>.row{flex-wrap:wrap;gap:8px}
#simulation-delete .check{align-items:flex-start}
#simulation-delete .check input{flex-shrink:0}
#simulation-delete [type=submit]{background:var(--destructive);border-color:var(--destructive);color:#fff}

.simulation-amount{white-space:nowrap;font-variant-numeric:tabular-nums}

.team-visibility{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 24px;border-bottom:1px solid var(--line)}
.team-visibility .sub{margin-top:4px}.team-visibility>.btn{flex-shrink:0}
@media(max-width:480px){.team-visibility{padding:16px;align-items:flex-start}.team-visibility strong{line-height:1.6}}

/* Inbox triage: one status line per chat, staff-needed chats marked, one next step in the open chat. */
.conversation-avatar{position:relative;flex-shrink:0;display:inline-flex;align-self:flex-start;padding:0 4px 4px 0}
.conversation-channel{position:absolute;right:0;bottom:0;display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 0 0 1.5px #fff}
.conversation-channel .channel-mark,.conversation-channel .channel-mark svg{width:14px;height:14px}
.conversation-channel .channel-mark.messenger{color:#0866ff}.conversation-channel .channel-mark.telegram{color:#229ed9}.conversation-channel .channel-mark.tiktok{color:#111}.conversation-channel .channel-mark.other{color:var(--muted)}
.conversation-row .conversation-preview{margin:2px 0 0;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.conversation-row{min-height:72px}
.chat-status{display:flex;align-items:baseline;gap:6px;min-width:0;margin:4px 0 0;font-size:12px;line-height:1.45;color:var(--muted)}
.chat-status strong{flex-shrink:0;font-weight:650;color:var(--ink)}
.chat-status span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-status.tone-act strong{color:#9a3412}.chat-status.tone-wait strong{color:var(--amber)}.chat-status.tone-done strong,.chat-status.tone-human strong{color:var(--muted);font-weight:500}
.conversation-row.needs-staff{box-shadow:inset 3px 0 #ea580c}
.conversation-row.needs-staff.active{box-shadow:inset 3px 0 #ea580c}
.chat-next{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 16px;border-bottom:1px solid var(--line);background:#fff;flex-shrink:0;min-width:0}
.chat-next p{display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 10px;min-width:0;margin:0;font-size:13px;line-height:1.5;color:var(--muted)}
.chat-next p strong{color:var(--ink);font-weight:650}
.chat-next p span{min-width:0;overflow-wrap:anywhere}
.chat-next-cart{display:inline-flex;align-items:center;gap:5px}.chat-next-cart svg{width:14px;height:14px;flex-shrink:0;align-self:center}
.chat-next .btn{flex-shrink:0;white-space:nowrap}
.chat-next.tone-act{background:#fff7ed;border-bottom-color:#fed7aa}.chat-next.tone-act p strong{color:#9a3412}
.chat-next.tone-wait p strong{color:var(--amber)}
.conversation-ai-control:not(.has-status) .conversation-ai-status{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.cart-missing strong{font-weight:650;margin-right:4px}
.cart-empty strong{font-weight:500;color:var(--muted)}
@media(max-width:800px){.chat-next{padding:8px 12px;gap:8px}.chat-next p{font-size:12.5px}.conversation-row{min-height:68px}}
.compact-inbox-title .inbox-needs{color:#9a3412;font-weight:650}
.chat-status .amount,.chat-next .amount{flex-shrink:0;white-space:nowrap;font-style:normal;font-variant-numeric:tabular-nums;color:var(--ink)}

/* Design pass (2026-11-16): approved palette tokens, toast legibility, product grid, empty states.
   Palette: primary #000451 · hover #082E57 · accent #365E7D · selected #EAF2F8 · page #F6F9FC · text #182C40. */
:root{--accent:#365e7d}
/* Counts, order links and quantities used four unrelated bright blues; they now share the palette. */
.table-order-link{color:var(--primary-hover)}
.table-order-link:hover{color:var(--primary);text-decoration:underline;text-underline-offset:3px}
.filter-count,.task .count,.cart-count{background:var(--primary-soft);color:var(--primary)}
.od-quantity{border-color:var(--line);background:var(--primary-soft);color:var(--primary-hover)}
.step-symbol{background:var(--primary-soft);color:var(--primary-hover)}
/* Toasts: status is carried by an icon as well as colour, the message uses body text colour,
   and the host can sit in the top layer above a modal backdrop. */
#toasts{margin:0;border:0;padding:0;height:auto;background:transparent;overflow:visible;color:var(--ink)}
#toasts .toast{display:flex;align-items:flex-start;gap:8px;padding:10px 14px 10px 12px;text-align:left;font-size:13px;line-height:1.5;color:var(--ink);background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 8px 24px #182c401f;max-width:min(420px,calc(100vw - 32px));overflow-wrap:anywhere;transition:opacity 150ms ease-in,transform 150ms ease-in}
#toasts .toast>.icon{width:16px;height:16px;margin-top:2px;stroke-width:2.2;color:var(--green)}
#toasts .toast.error{border-color:#f0c9cf}
#toasts .toast.error>.icon{color:var(--red)}
#toasts .toast.leaving{opacity:0;transform:translateY(4px)}
/* Desktop product cards fill the row instead of leaving an empty column on wide screens. */
@media(min-width:801px){.product-grid{grid-template-columns:repeat(auto-fill,minmax(232px,1fr))!important}}
/* The notification dialog explains what will appear instead of showing one grey line. */
.notification-empty{min-height:0;padding:20px 8px 12px}
.notification-empty>.icon{color:var(--accent)}
/* At 320px the three compact dashboard metrics were 4px too narrow for "Conversations". */
@media(max-width:360px){.dashboard-summary>.stat:not(.stat-value){padding-inline:8px}}
