:root{--surface:#fffefb;--canvas:#f6f7f2;--ink:#183e31;--muted:#687365;--line:#dde3d7;--input:#f0f2e9;--accent:#d5e95c;color-scheme:light}
:root[data-theme=dark]{--surface:#1d211f;--canvas:#111512;--ink:#edf2e9;--muted:#acb7a5;--line:#39413b;--input:#292f29;--accent:#c8df5d;color-scheme:dark}
body,.shell{background:var(--canvas);color:var(--ink)}h1,h2,h3,h4{color:inherit}.pinned-menu,.bottom-nav{background:var(--surface)!important;border-color:var(--line)}.pinned-menu header{min-height:44px;padding:4px 8px;gap:4px}.brand{font-size:19px;gap:5px}.brand img{width:27px;height:27px}.header-tools{gap:2px}.header-tools .icon-btn{width:34px;height:34px;padding:7px}.header-tools svg{width:20px;height:20px}.category-toggle{padding:7px;background:var(--input);color:var(--ink)}.category-toggle span{display:none}.header-search{margin:0 8px 5px}.bottom-nav{min-height:48px;padding:2px 4px max(2px,env(safe-area-inset-bottom));gap:0}.bottom-nav button{padding:4px 1px;min-width:0;font-size:10px}.bottom-nav button svg{width:21px;height:21px;margin-bottom:1px}.bottom-nav button span{font-size:10px}.bottom-nav button:before{height:2px;top:0}.bottom-nav button b{font-size:9px}.shell:not(.feed-shell) main{padding:12px 7px 65px}.feed,.feed-media,.feed-shade{background:#000}.feed-shade{background:linear-gradient(0deg,#000b,transparent 45%)}.feed-description{left:13px;right:80px;bottom:14px;max-height:48%;pointer-events:auto}.feed-description h2{font-size:21px}.feed-description .price{font-size:24px}.feed-controls{position:absolute;right:8px;bottom:22px;display:flex;flex-direction:column;gap:10px;align-items:center;width:62px}.info-circle{border:2px solid white;border-radius:50%;width:38px;height:38px;color:#fff;font-family:serif;font-size:27px;font-weight:bold;text-decoration:none;background:#0007;padding:0;line-height:32px}.feed-buy{margin:0;display:block;width:100%}.feed-buy .stepper{display:flex;flex-direction:column-reverse;width:62px;border-radius:10px;overflow:hidden;gap:0;background:#fffffff2}.feed-buy .stepper input{width:62px;height:35px;text-align:center;font-size:17px;padding:0;border:0;color:#172419;background:transparent}.feed-buy .stepper button{width:62px;height:32px;border-radius:0;padding:0;font-size:23px}.stepper input::-webkit-inner-spin-button{appearance:none}.sound-button{width:32px;height:32px;top:8px;right:10px;font-size:17px}.market-grid{gap:5px}.market-grid .product-card{border-radius:9px;background:var(--surface);border-color:var(--line);overflow:hidden}.market-grid .product-picture{aspect-ratio:3/4;padding:0;margin:0;width:100%;background:#000}.market-grid .product-picture img,.market-grid .product-picture video{width:100%;height:100%;object-fit:contain;padding:0;border-radius:0}.market-grid .product-body{padding:7px 6px}.market-grid h3{font-size:14px;margin:5px 0}.market-grid .price{font-size:18px}.market-grid .wholesale-info{font-size:10px}.market-grid .stepper{margin-top:7px}.edit-dot{top:5px;right:5px;z-index:5;background:#fffdf0;color:#152b21;width:30px;height:30px;padding:0;font-size:22px}.inventory-top{gap:4px;margin-bottom:7px}.inventory-tabs{gap:3px}.inventory-tabs button{font-size:10px;padding:8px 3px;border-radius:8px}.inventory-top>.icon-btn{width:33px;height:33px;padding:6px;flex-shrink:0}.inventory-list{display:flex;flex-direction:column;gap:4px}.inventory-list .product-body{display:flex;align-items:center;gap:9px;padding:7px}.inventory-list .product-body h3{flex:1;margin:0}.inventory-list .product-body b{font-size:13px;white-space:nowrap}.inventory-list .product-card{min-height:42px}.dragging{opacity:.7;outline:3px solid var(--accent);z-index:10}.reordering,.reordering *{user-select:none!important;-webkit-user-select:none!important;cursor:grabbing!important}.reordering .product-card{touch-action:none}.media-gallery{display:flex;width:100%;height:100%;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain}.media-gallery>*{flex:0 0 100%;width:100%;height:100%;object-fit:contain;scroll-snap-align:start}.gallery-count{position:absolute;top:7px;left:7px;background:#0008;color:white;border-radius:12px;padding:3px 6px;font-size:10px;pointer-events:none}.detail-media{position:relative;background:#000}.unit-comment{display:block;font-size:12px;white-space:pre-wrap;margin-top:6px}.upload-progress{display:flex;gap:12px;align-items:center;margin:12px 0}.upload-progress small{display:block;font-size:12px;margin-top:5px}.progress-ring{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:conic-gradient(#739447 var(--progress),var(--line) 0);flex-shrink:0}.progress-ring b{display:grid;place-items:center;background:var(--surface);width:43px;height:43px;border-radius:50%;font-size:12px}#media-previews{display:flex;gap:6px;flex-wrap:wrap}#media-previews>div{position:relative;width:85px;height:85px}#media-previews img{width:100%;height:100%;object-fit:contain;background:#000}.remove-media{position:absolute;right:0;top:0;padding:1px 5px}.media-pickers{display:flex;gap:6px;margin-top:10px}.media-pickers label{flex:1;font-size:12px}.receipt-edit-line{border:1px solid var(--line);border-radius:8px;padding:10px;margin:10px 0}.receipt-80 pre{white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.45 monospace}.dialog,.profile-card,.seller-cart,.settings-group,.order-card{background:var(--surface);color:var(--ink)}input,textarea,select{background:var(--input);color:var(--ink);border-color:var(--line)}.outline,.text-btn,.icon-btn,.menu-list button{color:var(--ink)}.notice,.chips button,.inventory-tabs button{background:var(--input);color:var(--ink)}.selected,.primary{background:#203e32!important;color:#fff!important}.muted,.footnote,.product-description{color:var(--muted)}.warehouse-select{padding:4px 8px}.warehouse-select label{margin:0;font-size:11px}.warehouse-select select{padding:5px}.warehouse-select .mini-links{display:none}.chat-item,.news-item,.notification-item{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:12px;margin-bottom:8px;overflow-wrap:anywhere}.chat-item{display:block;width:100%;text-align:left;color:var(--ink)}.chat-item small,.news-item small{display:block;color:var(--muted);margin-top:5px}.chat-messages{display:flex;flex-direction:column;gap:8px;min-height:200px;max-height:calc(100dvh - 235px);overflow-y:auto;padding:8px 0}.message{align-self:flex-start;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:9px 12px;max-width:87%;white-space:pre-wrap;overflow-wrap:anywhere}.message.mine{align-self:flex-end;background:var(--input)}.message small{display:block;font-size:10px;opacity:.7;margin-top:4px}.chat-compose{display:flex;gap:6px;align-items:end}.chat-compose textarea{flex:1;margin:0;resize:none}.chat-compose button{width:48px;height:48px;padding:10px}.community-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:9px 0}.community-tabs button{font-size:12px}.people-list{max-height:40vh;overflow:auto}.people-list label{display:flex;align-items:center;gap:8px;border-bottom:1px solid var(--line);padding:9px 0;margin:0}.people-list input{width:20px}.account-search{margin-bottom:8px}.news-item p{white-space:pre-wrap}.notification-bell{position:relative}.notification-bell.has-unread:after{content:'';width:7px;height:7px;background:#de5e43;border-radius:50%;position:absolute;right:4px;top:3px}.receipt-actions button{color:var(--ink)}@media(min-width:900px){.market-grid:not(.inventory-list){grid-template-columns:repeat(3,minmax(0,1fr))}}@media print{:root{color-scheme:light}.receipt-80{color:#000!important;background:#fff!important}.receipt-80 pre{font-size:9px}.receipt-actions{display:none!important}}
/* Override legacy fixed dimensions as well as padding. */
.pinned-menu header{height:44px}.feed-buy .stepper{height:99px;flex-shrink:0}.feed-buy .stepper input,.feed-buy .stepper button{flex:0 0 33px;height:33px}.bottom-nav button{gap:1px}.bottom-nav button.selected{background:transparent!important;color:var(--ink)!important}.product-card img{-webkit-user-drag:none}.receipt-actions .primary{color:#fff}.people-list [hidden]{display:none!important}
