/* Wide, fluid application workspace; readable forms retain their inner limits. */
.shell{width:calc(100% - clamp(24px,4vw,72px));max-width:1760px;margin-inline:auto}
.workspace-app .shell{max-width:2040px}.workspace-app .portal-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:clamp(20px,2.5vw,40px);max-width:2040px}
.portal-content{min-width:0;width:100%}.side-panel{width:100%;min-width:0;align-self:start}.portal-heading{flex-wrap:wrap;gap:14px}.portal-heading h1{font-size:clamp(24px,2.6vw,38px)}
.table-wrap{max-width:100%;overflow-x:auto}.form-grid>*{min-width:0}.form-inline{flex-wrap:wrap}.form-inline>.field{flex:1 1 180px}.products-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr))}.product-card .image-frame{aspect-ratio:4/5}.product-card .image-frame img{object-fit:contain}
.notification-count{display:inline-grid!important;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:20px;background:var(--v5-brand,#64223c);color:var(--v5-surface,#fff);font:700 11px/1 system-ui;flex-shrink:0}.notification-count[hidden]{display:none!important}
.side-nav .notification-count{margin-left:auto}.side-nav .notification-count:not([hidden])+.nav-chevron{display:none}.v14-messages-link{display:grid;place-items:center;position:relative;width:40px;height:40px;border:1px solid var(--v5-border);border-radius:10px;color:var(--v5-ink);flex:none}.v14-messages-link .notification-count{position:absolute;right:-6px;top:-6px;border:2px solid var(--v5-bg)}
.message-receipt{display:block;text-align:right;margin-top:8px;font:500 11px system-ui;opacity:.75}.message-receipt.is-seen{opacity:1;color:var(--v5-brand)}.chat-error{padding:12px 16px;color:var(--v5-brand);border:1px solid currentColor;margin:12px}.chat-error[hidden]{display:none}.chat-compose{align-items:end}.chat-compose textarea{min-width:0}.chat-header{gap:16px}.chat-header h1{overflow-wrap:anywhere}.chat-product-info{overflow-wrap:anywhere}.chat-compose button:disabled{opacity:.55;cursor:wait}.v14-setup{padding:16px;margin:12px auto;max-width:1000px;background:var(--v5-surface);border:1px solid var(--v5-border);display:flex;gap:16px;align-items:center;flex-wrap:wrap}
@media(min-width:1800px){.dashboard-cards{gap:20px}.mini-metric{padding:26px}.portal-section{padding:26px}}
@media(max-width:1023px){.workspace-app .portal-layout{display:block}.side-panel{position:static;margin-bottom:20px}.side-identity{display:flex}.side-nav{display:flex;overflow-x:auto;gap:8px;flex-direction:row}.side-nav>a{flex:0 0 auto;display:flex;align-items:center;gap:8px}.side-nav .notification-count{margin:0}.side-section-label,.side-shortcut{display:none}.dashboard-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.portal-content{padding:0}.sidebar-logout{max-width:220px}.portal-heading-actions{max-width:100%}}
@media(max-width:560px){.shell{width:calc(100% - 24px)}.nav-shell{width:100%;padding-inline:12px}.is-signed-in .nav-actions>.user-pill{display:none}.v14-messages-link{width:36px;min-width:36px;height:40px}.products-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.product-copy{padding-inline:0}.product-title{font-size:13px}.price-line{flex-wrap:wrap;gap:6px}.form-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}.chat-compose{display:flex;flex-wrap:wrap}.chat-compose textarea{flex:1 1 100%;width:100%;font-size:16px}.chat-compose>.btn{margin-left:auto;min-height:44px}.chat-header h1{font-size:23px}.chat-header .eyebrow{font-size:9px}.inbox-item>span:last-child{font-size:11px}.mini-metric{padding:14px}.mini-metric strong{font-size:22px}.order-detail-grid,.checkout-layout,.cart-layout{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.v9-home .shell{max-width:1760px;padding-inline:clamp(0px,1vw,24px)}
/* Explicit dark surfaces also cover legacy chat and navigation rules. */
html[data-theme=dark] .chat-messages{background:#1b191e;color:#f5eee9}
html[data-theme=dark] .chat-bubble{background:#302b33;border-color:#534751;color:#f5eee9}
html[data-theme=dark] .chat-bubble.own{background:#653047;color:#fff}
html[data-theme=dark] .message-receipt.is-seen,html[data-theme=dark] .chat-product a{color:#f2bbce}
html[data-theme=dark] .site-header .brand,html[data-theme=dark] .site-footer .brand,html[data-theme=dark] .mobile-nav a,html[data-theme=dark] .v14-messages-link,html[data-theme=dark] .v5-preferences button{color:#f5eee9!important}
html[data-theme=dark] .inbox-list{background:#232125;border-color:#40383e;color:#f5eee9}
html[data-theme=dark] .inbox-item{border-color:#40383e}
html[data-theme=dark] .inbox-item:hover{background:#302b33}
