/* Shared loading, empty and error states; preserve the Duo blue-white palette. */
.media-host{position:relative;isolation:isolate}.media-host[data-media-state=loading]:before{content:'';position:absolute;inset:0;z-index:1;background:linear-gradient(110deg,#edf2fa 25%,#f9fbff 45%,#edf2fa 65%);background-size:220% 100%;animation:noutech-loading 1.6s linear infinite;pointer-events:none;border-radius:inherit}.media-status{position:absolute;inset:0;z-index:3;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;padding:8px;color:#526987;font-size:12px;line-height:1.4;pointer-events:none;border-radius:inherit}.media-status[hidden]{display:none!important}.media-host[data-media-state=error]>.media-status{background:#f3f6fb}.media-host[data-media-state=error]>img,.media-host[data-media-state=error]>.product-open img,.media-host[data-media-state=error] .gallery-large img{visibility:hidden}.media-retry{pointer-events:auto;min-height:44px;padding:8px 12px;border:1px solid #bdcff1;border-radius:8px;background:#fff;color:#1d4ed8;font:inherit;font-weight:600;cursor:pointer}.media-host[data-media-state=loading]>.media-status{font-size:11px}.store-product-photo .media-status{font-size:11px}.gallery-thumbs img{background:#edf2fa}
@keyframes noutech-loading{to{background-position:-220% 0}}
.catalog-skeleton{height:340px;border:1px solid #dfe7f4;border-radius:14px;background:linear-gradient(110deg,#edf2fa 25%,#f9fbff 45%,#edf2fa 65%);background-size:220% 100%;animation:noutech-loading 1.6s linear infinite}.is-list .catalog-skeleton{height:160px}.page-loading,.seller-loading{padding:28px 18px;color:#526987;text-align:center;font-size:14px;line-height:1.6}.page-loading:before,.seller-loading:before{content:'';display:block;width:22px;height:22px;border:2px solid #dce7fc;border-top-color:#1d4ed8;border-radius:50%;margin:0 auto 12px;animation:noutech-spin .9s linear infinite}@keyframes noutech-spin{to{transform:rotate(360deg)}}
.page-error,.store-empty,.cabinet-empty{border-radius:14px;line-height:1.6;overflow-wrap:anywhere}.page-error{padding:28px 20px;border:1px solid #dfe7f4;background:white;text-align:center}.page-error h1{font-size:21px;line-height:1.4}.page-error .primary,.page-error .secondary{display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin:8px 4px}.media-retry:focus-visible,.store-socials button:focus-visible{outline:2px solid #1d4ed8;outline-offset:3px}
/* 2. Full listing: consistent controls and readable long specifications. */
.listing-v2 .page-product-summary h1{overflow-wrap:anywhere}.listing-v2 .page-price{font-variant-numeric:tabular-nums}.listing-specs dt,.listing-specs dd{min-width:0;overflow-wrap:anywhere}.listing-desktop-contact a,.listing-contactbar a,.listing-copy{min-height:44px}.listing-description p{white-space:pre-wrap;overflow-wrap:anywhere}
/* 3. Storefront: stable product slots and compact identity on small screens. */
.store-profile .seller-identity>div{min-width:0}.store-profile h1,.store-tagline,.store-description{overflow-wrap:anywhere}.store-products .store-product{min-width:0;overflow:hidden}.store-products .store-product-photo{height:170px;padding:8px;box-sizing:border-box;background:#f7f9fc}.store-products .store-product-photo img{width:100%;height:100%;object-fit:contain}.store-products .store-product-info h3{height:42px;line-height:21px;font-size:14px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:8px 0}.store-products .store-product-info>p{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.store-socials{display:flex;flex-wrap:wrap;gap:8px}.store-socials a,.store-socials button{min-height:44px;display:inline-flex;align-items:center;justify-content:center}
/* 4. Cabinet/admin: shared focus, feedback and form typography. */
.seller-cabinet input,.seller-cabinet select,.ops-dialog input,.ops-dialog select,.ops-dialog textarea{font-family:inherit;line-height:1.5}.seller-cabinet :is(input,select,textarea):focus-visible,.ops-dialog :is(input,select,textarea):focus-visible{outline:2px solid #8bb0ff;outline-offset:2px}.cabinet-card h3,.ops-row h2,.admin-panel h2{overflow-wrap:anywhere}.seller-status-counts strong,.ops-stats strong{font-variant-numeric:tabular-nums}.admin-feedback,.listing-change-notice{line-height:1.6}
/* 5. Messages: clear unread state, legible previews and bounded long text. */
.thread-item{min-width:0;text-align:left}.thread-copy{min-width:0}.thread-copy strong,.thread-copy b,.thread-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}.thread-item:has(.thread-unread){background:#f0f5ff;border-left:3px solid #1d4ed8}.thread-unread{min-width:20px;min-height:20px;font-variant-numeric:tabular-nums}.message-history{overscroll-behavior:contain}.message-bubble,.message-bubble p{overflow-wrap:anywhere}#message-form textarea{font-family:inherit;font-size:16px;line-height:1.5}#message-form button{min-height:44px}#message-status:not(:empty){font-size:13px;line-height:1.5;padding:6px 12px}
@media(max-width:760px){.catalog-skeleton{height:257px}.is-list .catalog-skeleton{height:131px}.media-status{font-size:11px;gap:3px}.media-retry{font-size:11px;padding:6px;min-height:44px}.listing-specs dl>div{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.store-cover .store-banner{height:110px;object-fit:cover}.store-profile{padding:16px}.store-profile h1{font-size:21px;line-height:1.35}.store-tagline,.store-description{font-size:14px;line-height:1.6}.store-products{gap:10px}.store-products .store-product-photo{height:130px;padding:6px}.store-products .store-product-info{padding:10px}.store-products .store-product-info>p{font-size:17px;line-height:1.4}.store-products .store-product-info small{font-size:10px}.seller-cabinet :is(input,select,textarea){font-size:16px}.inbox-empty{font-size:14px;line-height:1.6;padding:20px}.thread-item{min-height:76px}.thread-copy strong{font-size:14px}.thread-copy b,.thread-copy small{font-size:12px;line-height:1.5}.page-error h1{font-size:18px}}
@media(prefers-reduced-motion:reduce){.media-host:before,.catalog-skeleton,.page-loading:before,.seller-loading:before{animation:none!important}}

#products .product{cursor:pointer}
