@media(max-width:1100px){.sidebar{display:block!important;padding:12px!important}.sidebar .brand{display:none}.sidebar .nav-group{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 5px}.sidebar .nav-label{display:none}.sidebar .nav-link{min-height:36px;padding:8px 10px;font-size:13px}.sidebar .nav-link span:last-child{display:none}.main{padding:16px!important}.topbar,.workspace-topbar,.results-head{flex-wrap:wrap}.chat-layout{grid-template-columns:1fr!important}}
button:disabled{opacity:.55;cursor:not-allowed}input:focus-visible,textarea:focus-visible,select:focus-visible,a:focus-visible,button:focus-visible{outline:3px solid #c86e2b;outline-offset:3px}
img{max-width:100%}.hero-grid>*{min-width:0}.stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.stat{overflow-wrap:anywhere}
.no-photo{display:flex;align-items:center;justify-content:center;color:#61707a;font-size:14px}
.chat,.message-row{align-content:start}.bubble{white-space:pre-wrap;overflow-wrap:anywhere}
.listing-body,.profile-row strong,.order-card,.context-title{overflow-wrap:anywhere}
.search-row input{min-width:0;max-width:100%}.nav-actions,.nav-links{flex-wrap:wrap}
.listing-body .price{font-size:22px;text-transform:none;letter-spacing:normal}
.site-footer{padding:24px 16px;text-align:center;color:#61707a;font-size:14px}.site-footer a{margin:0 10px;text-decoration:underline}
@media(max-width:600px){
  .hero{padding:32px 0}.hero-card{padding:16px}.stat{padding:10px}.stat strong{font-size:20px}.stat .muted{font-size:13px}
  .hero h1{font-size:clamp(34px,10vw,44px);overflow-wrap:anywhere}
  .topbar h1,.workspace-topbar h1,.card h1{font-size:32px}.panel,.card{padding:18px}
  .nav-links{gap:14px}.nav-actions{gap:8px}.btn{max-width:100%}
  .chat-header-top,.listing-head,.order-card>.row{flex-wrap:wrap}.context-card{grid-template-columns:1fr}
  .bubble{max-width:100%}.profile-row{flex-wrap:wrap}.meta{min-width:0}
  body:not(.pdf-mode) .invoice{padding:20px 16px}
  body:not(.pdf-mode) .invoice .head{display:none}
  body:not(.pdf-mode) .invoice .body-row>[data-label]::before{content:attr(data-label);display:block;font-weight:700;color:#66727b;margin-bottom:6px}
}
@media print{.site-footer{display:none}}

/* Shared interface polish: keep navigation and controls predictable across pages. */
.mobile-workspace-bar{display:none}
.sidebar .brand img{filter:brightness(0) invert(1)}
.workspace-menu .nav-link[aria-current="page"]{background:rgba(255,255,255,.13);box-shadow:inset 3px 0 #e59652}
.btn,.pill,.toggle-btn,.nav-link{transition:background-color .15s ease,box-shadow .15s ease}
.btn:hover,.pill:hover{box-shadow:0 4px 14px rgba(23,52,71,.12)}
input,select,textarea{color:#1c252c}textarea{resize:vertical}
.notice.show{line-height:1.5}.listing-card:focus-visible{outline-offset:4px}
.no-photo{background:repeating-linear-gradient(135deg,#f2ede4,#f2ede4 14px,#eee8dd 14px,#eee8dd 15px);color:#66716f;font-size:13px;letter-spacing:.02em}
.marketplace-page .hero{padding-top:30px;padding-bottom:12px}
.marketplace-page .hero p{font-size:16px;max-width:650px}
.marketplace-page .search-shell{padding:16px;border-radius:20px;margin-top:20px}
.marketplace-page .search-row select{flex:0 1 200px;min-width:0}
.marketplace-page .layout{align-items:start}
.marketplace-filters{padding:20px}
.filter-disclosure summary{display:flex;justify-content:space-between;align-items:center;cursor:pointer;list-style:none;font-size:18px;font-weight:750;color:#173447}
.filter-disclosure summary::-webkit-details-marker{display:none}
.filter-disclosure summary::after{content:'+';font-size:24px;font-weight:400}
.filter-disclosure[open] summary::after{content:'−'}
.filter-content{padding-top:22px}
.filter-reset{border:0;border-bottom:1px solid currentColor;background:none;color:#173447;padding:6px 0;cursor:pointer;font:inherit;font-weight:650}
.marketplace-page .listing-card{box-shadow:0 5px 18px rgba(23,52,71,.045);transition:box-shadow .18s ease,transform .18s ease}
.marketplace-page .listing-card:hover{box-shadow:0 12px 28px rgba(23,52,71,.12);transform:translateY(-2px)}
.marketplace-page .listing-meta{align-items:center;flex-wrap:wrap}
.marketplace-page .listing-card h3{font-size:21px;line-height:1.3}
.marketplace-page .listing-body .price{font-size:25px;font-weight:800;margin:12px 0}
.marketplace-page .listing-desc{font-size:14px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.marketplace-page .listing-foot{border-top:1px solid #eee7db;padding-top:12px;flex-wrap:wrap;font-size:13px}
.messages-page .layout{align-items:start}
.messages-page .chat{min-height:100px;max-height:55vh;overflow-y:auto;padding:18px 2px;gap:18px;scrollbar-gutter:stable}
.messages-page .reply{margin-top:0}.messages-page .reply textarea{min-height:86px}
.messages-page .reply-actions>.muted{font-size:12px;max-width:300px}
.listing-page .listing-summary h1{font-size:clamp(28px,3vw,40px);line-height:1.14;margin-top:0}
.listing-page .listing-summary .price{font-size:32px;margin:18px 0;color:#173447;font-weight:800}
.listing-page .listing-summary>.badge{margin-bottom:14px;text-transform:capitalize}
.listing-page form label{display:block;font-size:14px;font-weight:650;color:#61707a;margin-bottom:4px}
.marketplace-loading{display:none}.shell-loading .marketplace-loading{display:block;padding:48px 24px;text-align:center;color:#61707a;font-size:18px}
.listing-page .meta-card{padding:14px;background:#f4f0e8}.listing-page .meta-value{font-size:16px}
.listing-page .cta-stack .btn{min-height:48px}
.listing-page .section-title,.listing-page .seller-row,.listing-page .mini-item{flex-wrap:wrap}
.listing-page .gallery-main.no-photo{min-height:220px;height:260px}
@media(max-width:1100px){
  .ui-ready .sidebar{padding:12px 16px!important}
  .mobile-workspace-bar{display:flex;align-items:center;justify-content:space-between;min-height:40px;gap:16px}
  .mobile-wordmark{font-size:17px;font-weight:850;letter-spacing:.16em;color:#fff}
  .workspace-menu-toggle{font:inherit;font-size:14px;font-weight:650;color:#fff;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.3);border-radius:10px;padding:10px 14px;cursor:pointer;min-height:42px}
  .ui-ready .workspace-menu{display:none;padding-top:16px}
  .ui-ready .sidebar.menu-open .workspace-menu{display:block}
  .sidebar .nav-link{min-height:42px;padding:11px 14px;font-size:14px}
  .sidebar .nav-group{gap:8px;margin-bottom:8px}
  .main{padding-top:24px!important}
}
@media(max-width:1020px){
  .marketplace-page .marketplace-filters{padding:16px 20px;border-radius:16px}
  .marketplace-page .layout{gap:22px}
  .marketplace-page .results-head h2{font-size:24px}
  .marketplace-page .results-tools{width:100%;justify-content:space-between;gap:8px}
  .marketplace-page .results-tools>.btn{font-size:13px;padding:10px 14px}
  .marketplace-page .listing-thumb{height:200px}
  .marketplace-page .list-view .listing-card{grid-template-columns:96px minmax(0,1fr);border-radius:16px}
  .marketplace-page .list-view .listing-thumb{height:100%;min-height:140px;font-size:11px;text-align:center;padding:8px;border:0}
  .marketplace-page .list-view .listing-body{padding:14px}
  .marketplace-page .list-view .listing-card h3{font-size:17px}
  .marketplace-page .list-view .listing-desc,.marketplace-page .list-view .listing-meta .status{display:none}
  .marketplace-page .list-view .listing-body .price{font-size:21px;margin:8px 0}
  .marketplace-page .list-view .listing-foot{font-size:12px}
}
@media(max-width:600px){
  .marketplace-page .search-row input{flex-basis:100%;width:100%;font-size:16px;padding:14px}
  .marketplace-page .search-row select{flex:1 1 140px;width:0;padding:12px;font-size:14px}
  .marketplace-page .search-row>.btn{padding:12px 18px;font-size:14px}
  .marketplace-page .workspace-topbar p,.marketplace-page .hero p{font-size:15px;line-height:1.5}
  .marketplace-page .hero h1{font-size:36px}
  .listing-page .meta-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .listing-page .listing-summary{padding:22px}
  .listing-page .listing-summary .subtitle{font-size:15px;line-height:1.5}
  .messages-page .thread-list{max-height:230px;overflow-y:auto}
  .messages-page .chat{max-height:50vh;min-height:80px}
  .messages-page .context-card{padding:12px}.messages-page .chat-title{font-size:21px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*::before,*::after{transition:none!important}}
