/* Commercial workspace: clear hierarchy, compact controls and the shared chat language. */
.seller-page,.seller-admin{--pro-line:color-mix(in srgb,var(--text,#e9edf5) 12%,transparent);--pro-soft:color-mix(in srgb,var(--text,#e9edf5) 4%,transparent);max-width:1120px;margin:auto;line-height:1.5}
.seller-page h1,.seller-admin h1{font-size:clamp(1.55rem,3vw,2rem);letter-spacing:-.035em;line-height:1.15;margin:6px 0 10px}
.seller-page h2,.seller-admin h2{font-size:1.13rem;letter-spacing:-.02em;margin:4px 0 10px}
.seller-page .card,.seller-admin .card{border:1px solid var(--pro-line);box-shadow:none;border-radius:20px;padding:22px}
.seller-page .btn,.seller-admin .btn{min-height:42px;border-radius:12px;white-space:normal;line-height:1.3}
.seller-hero,.seller-admin-hero{background:linear-gradient(115deg,#112b37,#174e4a);border:1px solid #36756855;box-shadow:none;border-radius:24px;padding:26px;color:#f2fffb}
.seller-hero p,.seller-admin-hero p{color:#bdd8d5;max-width:540px}
.seller-hero .seller-balance{background:#091c2244;border:1px solid #9addc82b;border-radius:16px;padding:16px 22px;min-width:210px}
.seller-balance b{font-size:1.9rem;letter-spacing:-.05em}
.commercial-situation{position:relative;border:1px solid var(--pro-line);background:var(--pro-soft);border-radius:18px;padding:20px;box-shadow:none}
.commercial-situation h2{font-size:1.08rem;max-width:680px;margin:12px 0 16px}
.commercial-metrics{gap:12px}.commercial-metrics article{border-radius:16px;padding:16px;background:var(--pro-soft);border:1px solid var(--pro-line);min-width:0}
.commercial-metrics b{font-size:1.2rem;word-break:break-word}.commercial-metrics small{font-size:.78rem;line-height:1.4}
.seller-navigation button{min-height:60px}.seller-navigation button.active{background:color-mix(in srgb,var(--accent,#49bfa3) 15%,transparent);border-radius:14px}
.seller-price{border:1px solid var(--pro-line);border-radius:22px;text-align:left;padding:24px;box-shadow:none}
.seller-price.featured{border-color:#45b696}.seller-price em{display:flex;justify-content:space-between;font-style:normal;margin-top:18px;padding-top:16px;border-top:1px solid var(--pro-line)}
.seller-profile-main{align-items:center}.seller-profile-stats{gap:20px}.seller-profile-stats b{font-size:1.2rem}
.seller-context-card{margin:18px 0}.seller-context-card>p{max-width:650px;color:var(--muted,#9baab7)}
.seller-tag-switch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:18px 0}
.seller-tag-switch button{display:flex;flex-direction:column;gap:8px;align-items:flex-start;min-height:80px;text-align:left;border:1px solid var(--pro-line);border-radius:16px;padding:16px;background:var(--pro-soft);color:inherit;cursor:pointer}
.seller-tag-switch button span{display:flex;align-items:center;gap:8px;font-weight:700}.seller-tag-switch button small{font-size:.77rem;color:var(--muted,#b2c6c2)}
.seller-tag-switch [aria-pressed=true]{border-color:#49b895;background:#32967622;box-shadow:inset 0 0 0 1px #49b895}
.commercial-support{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.commercial-support button{text-align:left;display:flex;flex-direction:column;gap:12px;cursor:pointer;min-height:128px;color:inherit}.commercial-support b{font-size:1.08rem}.commercial-support span{font-size:.85rem;color:var(--muted,#a5b2c0)}
.seller-admin-nav{display:flex;gap:6px;background:var(--pro-soft);border:1px solid var(--pro-line);border-radius:16px;padding:6px;margin:20px 0}.seller-admin-nav button{flex:1;padding:12px 8px;border-radius:11px;font-size:.85rem;min-width:0}.seller-admin-nav button.active{background:#26765d33;color:var(--text,#e6fff5);border:1px solid #429c7644}
.seller-admin-next{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:24px;border-radius:20px;background:linear-gradient(115deg,#245d4930,#245d4910);border:1px solid #459f6f44;margin:0 0 18px}.seller-admin-next p{margin:0;max-width:630px;color:var(--muted,#adbac9);font-size:.9rem}.seller-admin-next .btn{flex-shrink:0}
.seller-admin-metrics{gap:12px}.seller-admin-metrics article{padding:17px;border-radius:16px;box-shadow:none;background:var(--pro-soft);border:1px solid var(--pro-line)}.seller-admin-metrics b{font-size:1.55rem}.seller-admin-metrics em{font-style:normal;font-size:.75rem}
.seller-admin-table article{border:1px solid var(--pro-line);border-radius:18px;display:grid;grid-template-columns:44px minmax(140px,1fr) repeat(2,minmax(75px,auto));gap:14px;align-items:center;padding:20px;margin:12px 0;background:var(--pro-soft)}.seller-admin-table article .pill{grid-column:2}.seller-admin-table small{display:block;color:var(--muted,#a9b9c4)}
.seller-admin-task{border-radius:12px;min-height:52px}.seller-admin-cards>article{border:1px solid var(--pro-line);border-radius:20px;padding:22px;box-shadow:none}.seller-admin-cards footer{border-top:1px solid var(--pro-line);padding-top:16px}
.seller-contact-list{display:grid;gap:8px}.seller-contact-list button{display:flex;align-items:center;gap:14px;text-align:left;border:1px solid var(--pro-line);border-radius:14px;padding:14px;background:var(--pro-soft);color:inherit;cursor:pointer}.seller-contact-list button>span:nth-child(2){flex:1;min-width:0}.seller-contact-list small{display:block;color:var(--muted,#a6b9c2);font-size:.8rem;margin-top:4px}
.seller-unified-chat.mobile-chat-page{display:flex;flex-direction:column;min-height:420px;height:min(740px,calc(100dvh - 165px));width:100%;border:1px solid var(--pro-line,#4b657633);border-radius:22px;overflow:hidden;background:var(--card,#13212e)}
.seller-unified-chat .mobile-chat-header{flex-shrink:0;padding:16px;display:flex;align-items:center;gap:12px;border-bottom:1px solid #8798a526;background:var(--card,#13212e)}
.seller-unified-chat .chat-heading-copy{flex:1;min-width:0}.seller-unified-chat .chat-heading-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}.seller-unified-chat .chat-heading-copy small{display:block;font-size:.75rem;color:var(--muted,#a6b7c2)}
.seller-unified-chat .chat-avatar{height:42px;width:42px;flex-shrink:0;display:grid;place-items:center;background:#39987922;border-radius:15px;color:#60bfa2}
.seller-unified-chat .chat{display:flex;flex-direction:column;flex:1;min-height:0;border:0;border-radius:0;padding:0!important;margin:0;position:relative}
.seller-unified-chat .chat-log{flex:1;min-height:0;overflow-y:auto;padding:20px 18px;display:flex;flex-direction:column;gap:8px;background:radial-gradient(circle at top left,#2e876318,transparent 65%)}
.seller-unified-chat .msg{flex-shrink:0;max-width:83%;min-width:75px;overflow-wrap:anywhere}.seller-unified-chat .msg.me{align-self:flex-end}.seller-unified-chat .msg.them{align-self:flex-start}
.seller-unified-chat .msg img{max-width:100%;max-height:280px;border-radius:12px;display:block;object-fit:contain;margin:8px 0}.seller-chat-sender,.seller-chat-order{display:block;margin:0 0 6px;font-size:.76rem}.seller-chat-order{margin:8px 0 0}
.seller-unified-chat .when{display:block;text-align:right;font-size:.65rem;margin-top:8px;opacity:.7}
.seller-unified-chat .chat-input{position:relative!important;bottom:auto!important;display:flex;gap:8px;align-items:flex-end;padding:12px;flex-shrink:0;background:var(--card,#13212e);width:100%;border-top:1px solid #8798a526}.seller-unified-chat .chat-input textarea{flex:1;min-width:0;min-height:44px;max-height:120px;resize:none;font-size:16px;line-height:1.45;border-radius:14px;padding:10px}.seller-unified-chat .chat-input button{flex-shrink:0;width:44px;padding:8px;min-height:44px}
.seller-unified-chat .chat-composer-toolbar{position:relative;flex-shrink:0;min-height:30px;padding:0 12px;background:var(--card,#13212e)}.seller-unified-chat .chat-options-menu{bottom:100%;z-index:10;max-width:calc(100vw - 64px)}
.seller-chat-status{font-size:.75rem;color:var(--muted,#9db7b7);margin:0;padding:0 14px}.seller-chat-status:not(:empty){padding:8px 14px}.seller-chat-reference{font-size:.8rem;padding:10px 14px;background:#599ed51a}.seller-chat-reference button{color:inherit;text-decoration:underline;background:transparent;border:0;cursor:pointer}
.seller-chat-attachment:not([hidden]){display:flex;align-items:center;gap:12px;padding:10px 14px;font-size:.8rem}.seller-chat-attachment img{width:60px;height:60px;border-radius:10px;object-fit:cover}
.seller-ai-fab{box-shadow:0 6px 24px #0002;border-radius:16px;padding:10px 16px}.seller-ai-fab small{display:none}
.seller-ai-panel{border-radius:24px 24px 0 0;max-width:540px;width:min(540px,100%);border:1px solid #4d837750;box-shadow:0 20px 100px #0005}.seller-ai-panel header{background:linear-gradient(120deg,#133f3c,#142d40);padding:20px}.seller-ai-panel header h2{font-size:1.13rem}.seller-ai-context{margin:0;padding:10px 18px;background:#3d976118;font-size:.76rem;color:var(--muted,#b3c8c6)}
.seller-ai-dialog{padding:18px;display:flex;flex-direction:column;gap:16px}.seller-ai-dialog .seller-message{padding:14px 16px;border-radius:16px;max-width:94%;width:fit-content;line-height:1.6;font-size:.9rem}.seller-ai-dialog .seller-message.mine{align-self:flex-end}.seller-ai-text ul,.seller-ai-text ol{padding-left:20px}.seller-ai-copy{font-size:.73rem;margin:10px 8px 0 0;min-height:34px}.seller-ai-progress{font-size:.9rem;line-height:1.6}.seller-ai-progress small{color:var(--muted,#b0c0c4)}.seller-ai-chips{gap:6px;padding:10px 16px}.seller-ai-chips button{font-size:.75rem;padding:8px 10px;border-radius:10px}
@media(max-width:640px){.seller-page,.seller-admin{padding:0 0 20px}.seller-hero,.seller-admin-hero{padding:22px;border-radius:20px}.seller-hero{gap:20px}.seller-hero .seller-balance{width:100%;padding:14px 18px}.commercial-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.commercial-support{grid-template-columns:1fr}.commercial-support button{min-height:88px;gap:6px;padding:18px!important}.seller-page .card,.seller-admin .card{padding:18px}.seller-tag-switch{gap:8px}.seller-tag-switch button{padding:12px;font-size:.83rem}.seller-profile-stats{grid-template-columns:1fr 1fr;gap:14px}.seller-admin-next{display:block;padding:20px}.seller-admin-next .btn{margin-top:16px;width:100%}.seller-admin-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible}.seller-admin-nav button{padding:10px 5px;font-size:.78rem}.seller-admin-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.seller-admin-metrics b{font-size:1.3rem}.seller-admin-table article{grid-template-columns:42px 1fr 1fr;padding:16px;gap:12px}.seller-admin-table article>div:first-of-type{grid-column:2/4}.seller-admin-table article>div:nth-of-type(2){grid-column:2}.seller-admin-table article>.pill{grid-column:1/4;width:fit-content}.seller-admin-table article>.btn{grid-column:auto;font-size:.75rem}.seller-unified-chat.mobile-chat-page{height:calc(100dvh - 175px);min-height:340px;border-radius:16px}.seller-unified-chat .mobile-chat-header{padding:12px;gap:8px}.seller-unified-chat .mobile-chat-header .pill{font-size:.65rem}.seller-unified-chat .chat-log{padding:14px 10px}.seller-unified-chat .chat-input{padding:10px 8px;gap:6px}.seller-unified-chat .msg{max-width:89%}.seller-ai-panel{max-height:calc(100dvh - 80px)}.seller-ai-fab{bottom:86px!important;right:16px}.seller-ai-fab b{font-size:.8rem}}
@media(prefers-reduced-motion:reduce){.seller-page *,.seller-admin *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
.seller-context-shortcut{display:inline-flex;gap:8px;align-items:center;border:1px solid #86cbb443;border-radius:9px;color:#d6f2e7;background:#061f2250;padding:7px 10px;font-size:.76rem;cursor:pointer;margin-top:6px}.seller-context-shortcut span{font-size:1rem;margin-left:10px}
.seller-admin-secondary{margin:18px 0}.seller-admin-secondary summary{cursor:pointer;font-weight:650}.seller-admin-secondary .seller-admin-insights{margin-top:16px}
.seller-admin .seller-admin-metrics article>span{display:none}.seller-admin .seller-admin-metrics article{min-height:110px}
@media(max-width:640px){.seller-unified-chat.mobile-chat-page{position:fixed;inset:var(--seller-chat-top,0) 0 auto;z-index:4000;border-radius:0;border:0;width:100%;height:var(--seller-chat-height,100dvh);min-height:0;margin:0;padding:0}.seller-unified-chat .mobile-chat-header{padding-top:max(12px,env(safe-area-inset-top))}.seller-unified-chat .chat-input{padding-bottom:max(12px,env(safe-area-inset-bottom))}.seller-admin-hero{padding:20px}.seller-admin-hero h1{margin-bottom:6px}.seller-admin-hero p{margin:0 0 12px;font-size:.9rem}.seller-admin-metrics article{display:flex;flex-direction:column;justify-content:center;gap:8px}.seller-admin-metrics article>b{margin:0}.seller-admin-metrics article>small{font-size:.78rem}.seller-admin-metrics article>em{font-size:.7rem}.seller-admin-metrics{margin:14px 0}.seller-admin-grid{gap:14px}}
.seller-ai-panel .seller-ai-face{width:42px;height:42px;min-width:42px;border-radius:14px}.seller-ai-panel header{gap:12px}.seller-ai-panel .seller-ai-dialog{min-height:140px;flex:1}.seller-ai-panel .seller-ai-chips{flex-shrink:0}.seller-ai-panel .seller-ai-copy{display:inline-flex;align-items:center;gap:6px}.commercial-review-summary{padding:18px;border-radius:16px;background:#359e7620}.commercial-review-summary h2{font-size:1.8rem;margin:8px 0}
.seller-admin .seller-admin-table article{display:grid!important}.seller-admin .seller-admin-table article[hidden]{display:none!important}
.seller-admin .seller-person-actions{grid-column:1/-1;display:flex;gap:10px;flex-wrap:wrap;padding-top:14px;border-top:1px solid var(--pro-line)}.seller-person-actions .btn{flex:1 1 140px}
@media(max-width:640px){.seller-admin .seller-person-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.seller-person-actions>[data-seller-account]{grid-column:1/-1}.seller-person-actions .btn{font-size:.78rem}}
.seller-admin .seller-admin-table article>div{display:grid}.seller-admin .seller-admin-table article>.pill{display:inline-flex}.seller-admin .seller-admin-table article>div.seller-person-actions{display:flex}
@media(max-width:640px){.seller-admin .seller-admin-table article>div.seller-person-actions{display:grid;grid-template-columns:1fr 1fr}}

/* Selector visible in every seller view. */
.seller-context-compact>h2,.seller-context-compact>p,.seller-context-compact>small{display:none}.seller-context-compact .seller-tag-switch{margin:10px 0 0}.seller-context-compact .seller-tag-switch button{min-height:52px;padding:12px}.seller-context-compact .seller-tag-switch button small{display:none}.seller-tag-switch button:disabled{cursor:wait;opacity:.65}.seller-tag-switch button span{overflow-wrap:anywhere;min-width:0}

/* Seller chat follows the selected theme in private and group conversations. */
.seller-unified-chat.mobile-chat-page,.seller-unified-chat .mobile-chat-header,.seller-unified-chat .chat,.seller-unified-chat .chat-input,.seller-unified-chat .chat-composer-toolbar{background:var(--surface);color:var(--text);border-color:var(--line)}
.seller-unified-chat .chat-log{background:var(--bg)}
.seller-unified-chat .msg.them{background:var(--surface-2);color:var(--text);border:1px solid var(--line)}
.seller-unified-chat .msg.me{background:color-mix(in srgb,var(--accent) 23%,var(--surface));color:var(--text);border:1px solid color-mix(in srgb,var(--accent) 45%,var(--line))}
.seller-unified-chat .msg .when,.seller-unified-chat .chat-heading-copy small,.seller-unified-chat .seller-chat-status{color:var(--muted);opacity:1}
.seller-unified-chat .chat-input textarea,.seller-unified-chat .chat-options-menu{background:var(--surface-2);color:var(--text);border-color:var(--line)}
.seller-unified-chat .chat-input textarea::placeholder{color:var(--muted)}
.seller-unified-chat .chat-back,.seller-unified-chat .chat-options-menu button,.seller-unified-chat .chat-empty-state{color:var(--text)}
.seller-unified-chat .seller-chat-tools,.seller-unified-chat .seller-chat-attachment{background:var(--surface);color:var(--text)}
.seller-unified-chat .chat-avatar{background:color-mix(in srgb,var(--accent) 15%,var(--surface));color:var(--accent)}

.seller-unified-chat .chat-input [data-image]{color:var(--text);background:var(--surface-2);border-color:var(--line)}
