body[data-game-view=shop] #view{padding:16px;border-color:#a4a87955;background:linear-gradient(#173b2d,#102e24)}body[data-game-view=shop] .my-shop-hero{padding:0 10px 12px;border:0;background:none;border-radius:18px}body[data-game-view=shop] .my-shop-hero>img{display:block;max-height:190px;width:100%;object-fit:contain;margin:0 auto}body[data-game-view=shop] .my-shop-hero>span{font:1.3rem Georgia;margin:0 0 12px;display:block;text-align:center}body[data-game-view=shop] .live-shop-shelf{margin:0;padding:14px 12px 10px;border:1px solid #c2ae7366;background:linear-gradient(#244b35,#123027)}body[data-game-view=shop] .live-shop-shelf h3{font-size:1.1rem}body[data-game-view=shop] .live-shop-shelf h3 small,body[data-game-view=shop] .live-shop-shelf>small{font-size:.875rem}body[data-game-view=shop] .shop-shelf-slots>p{font-size:1rem;padding:10px 0}body[data-game-view=shop] .shop-shelf-slot>span,body[data-game-view=shop] .shop-shelf-slot>small{font-size:.875rem}body[data-game-view=shop] .shop-empty-create{display:block;width:100%;margin:0 0 20px;min-height:46px;font-size:1rem}body[data-game-view=shop] .customer-board{padding:16px;margin:16px 0;border-color:#a7a77555;background:#15382b}body[data-game-view=shop] .customer-board>header{align-items:flex-start;gap:8px}body[data-game-view=shop] .customer-board>header h2{font:1.5rem/1.2 Georgia;margin-top:6px}body[data-game-view=shop] .customer-board>header small{font-size:.75rem;letter-spacing:1px}body[data-game-view=shop] .customer-board>header>span{font-size:.875rem;white-space:nowrap;color:#c0cdb2}body[data-game-view=shop] .customer-tabs{gap:6px;margin:16px 0}body[data-game-view=shop] .customer-tabs button{font-size:.875rem;min-height:44px;padding:8px 4px;border-radius:12px}body[data-game-view=shop] .customer-order{padding:16px;border-color:#94a47655;background:#1b402f}body[data-game-view=shop] .customer-heading{gap:10px}body[data-game-view=shop] .customer-heading h3{font-size:1.1rem}body[data-game-view=shop] .customer-avatar{width:42px;height:42px;min-width:42px;font-size:1.15rem;background:linear-gradient(130deg,#dfca91,#b49a61)}body[data-game-view=shop] .customer-trust{display:block;font-size:.875rem;color:#bfc9a9;margin-top:3px}body[data-game-view=shop] .customer-quote{font:1.05rem/1.6 Georgia;color:#e4dcc1;margin:16px 0}body[data-game-view=shop] .customer-loyalty{margin-bottom:18px;color:#becdb0;font-size:.875rem}body[data-game-view=shop] .customer-loyalty progress{display:block;width:100%;height:5px;margin-top:8px;accent-color:#c5af76}body[data-game-view=shop] .order-recipe{margin:12px 0;gap:10px}body[data-game-view=shop] .order-recipe strong{font-size:1.05rem}body[data-game-view=shop] .order-recipe small{font-size:.875rem;line-height:1.5}body[data-game-view=shop] .order-reward{display:flex;align-items:center;gap:7px;font-size:1.1rem;color:#e6d293;flex-wrap:wrap;margin:15px 0 10px}body[data-game-view=shop] .order-reward img{flex:none}body[data-game-view=shop] .order-reward small{font-size:.875rem;color:#bdcdb5;margin:0}body[data-game-view=shop] .order-need{font-size:.875rem;line-height:1.5;margin-bottom:12px;color:#c7d2b8}body[data-game-view=shop] .customer-order>.gold{width:100%;min-height:46px;font-size:1rem;border-radius:12px}body[data-game-view=shop] .customer-more{margin-top:12px;border-top:1px solid #8ba27633;padding-top:4px;color:#bdcbb0;font-size:.875rem;line-height:1.6}body[data-game-view=shop] .customer-more summary{cursor:pointer;min-height:44px;display:flex;align-items:center;color:#d2d4ba}body[data-game-view=shop] .customer-more p{margin-top:8px}body[data-game-view=shop] .customer-disclaimer{font-size:.875rem;line-height:1.5;margin-top:14px;color:#b3c1a8}body[data-game-view=shop] .cards{margin-top:14px}body[data-game-view=shop] .bottle-card{border-color:#97a57866}body[data-game-view=shop] .perfume-collection{margin:18px 0 12px}body[data-game-view=shop] .shop-sales-summary{border-top:1px solid #9aaa7744;padding:12px 0;margin-top:14px;font-size:.875rem;color:#c3cdb8}body[data-game-view=shop] .shop-sales-summary summary{min-height:44px;cursor:pointer;display:flex;align-items:center}body[data-game-view=shop] .shop-sales-summary p{padding:4px 0 12px}.customer-thanks{min-width:240px;padding:16px 20px;box-shadow:0 8px 30px #031c16aa}.customer-thanks>strong{display:block;font:1.25rem Georgia;color:#f4dfb0}.customer-thanks>p{font-size:1rem;color:#d5ddc3;margin:7px 0 12px}.customer-count{display:block;font-size:1rem;color:#f0d48e}@media(max-width:360px){body[data-game-view=shop] #view{padding:12px}body[data-game-view=shop] .customer-board{padding:12px}body[data-game-view=shop] .customer-order{padding:12px}body[data-game-view=shop] .customer-board>header{flex-wrap:wrap}body[data-game-view=shop] .my-shop-hero>img{max-height:160px}}
/* One shop, two focused tabs. Existing actions stay in their original DOM nodes. */
body[data-game-view=shop] .farm-shop-title{font:700 2rem/1.15 Georgia,serif;color:#efe6cc;margin:0 0 18px;text-shadow:0 2px 0 #06120c}
body[data-game-view=shop] .farm-shop-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:5px;margin-bottom:22px;border-radius:18px;background:#091a11;box-shadow:inset 0 2px 5px #0006}
body[data-game-view=shop] .farm-shop-tabs button{min-width:0;min-height:52px;padding:10px 7px;border:1px solid transparent;border-radius:14px;background:none;color:#b6c4b1;font:700 1rem/1.25 Georgia,serif}
body[data-game-view=shop] .farm-shop-tabs button[aria-selected=true]{background:linear-gradient(#36533f,#233c2b);border-color:#a6ad7140;color:#efce79;box-shadow:inset 0 1px 1px #d8e3b333,0 3px 0 #102619}
body[data-game-view=shop] #view [role=tabpanel][hidden]{display:none!important}
body[data-game-view=shop] #view [role=tabpanel]{min-width:0;outline-offset:3px}
body[data-game-view=shop] .my-shop-hero>img{max-height:110px}
body[data-game-view=shop] .my-shop-hero>span{font-size:1.25rem;margin-bottom:14px}
body[data-game-view=shop] .my-shop-hero .building-manage{display:block;min-height:44px;margin:12px auto;font-size:.875rem}
body[data-game-view=shop] #shop-orders-panel .customer-board{margin:0;border-radius:20px}
body[data-game-view=shop] #shop-orders-panel .customer-board>header h2{font-size:1.4rem}
body[data-game-view=shop] .farm-shop-tabs button:focus-visible{outline:2px solid #edcf7a;outline-offset:2px}
@media(max-width:360px){body[data-game-view=shop] .farm-shop-tabs button{font-size:.9375rem}body[data-game-view=shop] .my-shop-hero>img{max-height:95px}}
/* Gallery reference: compact 3D shop dashboard and visible order cards. */
body[data-game-view=farm] #harvestBasket{display:none!important}body[data-game-view=farm] #leagueOpen.world-ranking{right:calc(max(12px,(100vw - 590px)/2) + 62px)}
body[data-game-view=shop] #view{border:0;background:none;padding:12px 8px 20px;box-shadow:none}
body[data-game-view=shop] .farm-shop-tabs{margin:0 0 20px;gap:3px;padding:4px;background:#071b12;border-radius:19px}
body[data-game-view=shop] .farm-shop-tabs button{min-height:52px;font:700 1rem/1.2 'Ayupov Sans',Arial,sans-serif;border-radius:15px;color:#b9c9b7}
body[data-game-view=shop] .farm-shop-tabs button[aria-selected=true]{background:linear-gradient(#fff0bc,#e1c57f 65%,#b89b58);color:#253021;border-color:#e9d79a;box-shadow:inset 0 1px 0 #fff8,0 4px 0 #8e773c,0 5px 9px #0005}
body[data-game-view=shop] .shop-orders-count{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 4px;border-radius:50%;background:linear-gradient(#fbe4a4,#d4b15b);color:#203323;font-size:.8125rem;margin-left:5px}
body[data-game-view=shop] #shop-ready-panel{display:flex;flex-direction:column;gap:14px;min-height:calc(100dvh - 220px)}
body[data-game-view=shop] .my-shop-hero{display:grid;grid-template-columns:100px minmax(0,1fr);align-items:center;gap:12px;padding:0;margin:0;background:none}
body[data-game-view=shop] .my-shop-hero>img{width:100%;height:128px;max-height:128px;object-fit:contain;margin:0;filter:drop-shadow(0 6px 5px #0006)}
body[data-game-view=shop] .shop-building-meta{min-width:0}.shop-building-meta h2{font:700 1.25rem/1.2 Georgia,serif;color:#f0dfad;margin:0 0 8px;overflow-wrap:anywhere;text-shadow:0 2px 1px #0005}.shop-building-meta p{margin:0 0 10px;font-size:.875rem;color:#b4c7b4;line-height:1.4}.shop-building-meta progress{display:block;width:100%;height:8px;accent-color:#e0c479;border-radius:8px;margin:0 0 7px}.shop-building-meta small{display:block;color:#adc3ae;font-size:.8125rem;line-height:1.4}
body[data-game-view=shop] .live-shop-shelf{padding:12px;border:1px solid #6c8c6240;border-radius:20px;background:linear-gradient(130deg,#2b4936,#1b3928);box-shadow:inset 0 1px 0 #d4e5bc14,0 5px 0 #0b2117,0 9px 13px #0003;margin:0}
body[data-game-view=shop] .live-shop-shelf h3{display:flex;justify-content:space-between;align-items:center;gap:8px;font:700 1.25rem Georgia,serif;margin:0 0 12px;color:#eee2bf}
body[data-game-view=shop] .live-shop-shelf h3 small{font:400 .75rem/1.4 'Ayupov Sans',Arial,sans-serif;color:#b0c6ac;text-align:right;max-width:65%}
body[data-game-view=shop] .shop-shelf-slots{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;border:0;padding:0;min-height:74px;background:none;box-shadow:none}
body[data-game-view=shop] .shop-shelf-slot{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:78px;padding:8px 3px;background:#0c2619;border:1px solid #62805c24;border-radius:15px;box-shadow:inset 0 4px 7px #0007,0 1px 0 #e1efc114;color:#e9e1bc}
body[data-game-view=shop] .shop-shelf-slot>span{font-size:.75rem;line-height:1.2;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body[data-game-view=shop] .shop-shelf-slot>small{font-size:.75rem;line-height:1.2;color:#b4c5af}.shop-shelf-slot .bottle-preview{width:38px;height:48px}
body[data-game-view=shop] .shop-add-slot b{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:linear-gradient(#ffedac,#d5b05c);color:#28321e;font:700 24px/1 Arial;box-shadow:0 3px 5px #0006}
body[data-game-view=shop] .shop-quick-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin:3px 0 0}
body[data-game-view=shop] .shop-quick-grid button,body[data-game-view=shop] .shop-upgrade-slot .building-manage{box-sizing:border-box;min-width:0;border:1px solid #81987338;border-radius:18px;background:linear-gradient(135deg,#304c39,#203e2c);box-shadow:inset 0 1px 0 #d5e2ba22,0 5px 0 #10291c,0 9px 13px #0003;text-align:left;padding:12px;color:#e8e4cb}
body[data-game-view=shop] .shop-quick-grid button{display:grid;grid-template-columns:28px 1fr;gap:6px 8px;align-items:center;min-height:82px}
body[data-game-view=shop] .shop-quick-grid button>span{display:grid;place-items:center;width:28px;height:28px;background:linear-gradient(#3a5940,#25452f);border-radius:10px;color:#e1c979;font-size:21px;box-shadow:0 2px 4px #0004}
body[data-game-view=shop] .shop-quick-grid strong{min-width:0;font-size:1rem;line-height:1.25;overflow-wrap:anywhere}body[data-game-view=shop] .shop-quick-grid small{grid-column:2;color:#b3c6ad;font-size:.8125rem}
body[data-game-view=shop] #shopHarvest{grid-column:1/-1;min-height:56px;grid-template-columns:28px 1fr auto}body[data-game-view=shop] #shopHarvest small{grid-column:auto;text-align:right}
body[data-game-view=shop] .shop-upgrade-slot{position:relative}body[data-game-view=shop] .shop-upgrade-slot .building-manage{display:block;width:100%;min-height:58px;margin:0;padding:14px 120px 14px 15px;font:700 1rem/1.3 'Ayupov Sans',Arial,sans-serif}
body[data-game-view=shop] .shop-upgrade-slot:after{content:attr(data-price);position:absolute;right:14px;top:50%;transform:translateY(-50%);max-width:105px;pointer-events:none;text-align:right;font-size:.8125rem;color:#d2c592}
body[data-game-view=shop] #shopBottles:not([open]),body[data-game-view=shop] #shopHistory:not([open]){display:none}
body[data-game-view=shop] #shopBottles,body[data-game-view=shop] #shopHistory{border:1px solid #7c916740;background:#153323;border-radius:18px;padding:12px;margin:0;scroll-margin-top:90px}
body[data-game-view=shop] #shopBottles>summary,body[data-game-view=shop] #shopHistory>summary{font:700 1rem/1.4 Georgia,serif;color:#edddb1;cursor:pointer;min-height:44px}
body[data-game-view=shop] #backLab{position:sticky;bottom:92px;z-index:3;box-sizing:border-box;min-height:52px;width:100%;margin:16px 0 0;padding:14px;border-radius:17px;background:linear-gradient(#fff0ba,#dfc17b 70%,#b69a58);color:#253021;box-shadow:inset 0 1px 0 #fff8,0 5px 0 #8a733d,0 8px 12px #0005;font-size:1rem;font-weight:700}
body[data-game-view=shop] #shop-orders-panel .compact-order-board{padding:0;border:0;background:none;margin:0}
body[data-game-view=shop] .compact-order-board>header{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:0 0 12px;padding:0}
body[data-game-view=shop] .compact-order-board>header h2{font:400 .875rem/1.3 'Ayupov Sans',Arial,sans-serif;color:#b7c7b0;margin:0}
body[data-game-view=shop] .compact-order-board>header>span{font-size:.8125rem;color:#b7c7b0}
body[data-game-view=shop] .compact-order-board .customer-orders{display:grid;gap:16px}
body[data-game-view=shop] .compact-order-board .customer-order{padding:14px;margin:0;border:1px solid #6c8b624d;border-radius:20px;background:linear-gradient(130deg,#2b4936,#1b3928);box-shadow:inset 0 1px 0 #d4e5bc22,0 5px 0 #0b2117,0 9px 13px #0004}
body[data-game-view=shop] .compact-order-board .order-ready{border:1px solid #9bd4a9;box-shadow:inset 0 1px 0 #d9ffd844,0 0 0 1px #71b48744,0 7px 15px #0004}
body[data-game-view=shop] .compact-order-board .customer-heading{display:flex;gap:10px;align-items:center}.compact-order-board .customer-heading>div{flex:1;min-width:0}
body[data-game-view=shop] .compact-order-board .customer-avatar{width:38px;height:38px;min-width:38px;background:radial-gradient(circle at 35% 25%,#ffe6a1,#ceb06a 60%,#9b7938);box-shadow:inset 0 1px 1px #fff8,0 4px 7px #0005;color:#35402b;font:700 1.25rem Georgia,serif}
body[data-game-view=shop] .compact-order-board .customer-heading h3{font:700 1rem/1.25 Georgia,serif;color:#efe4c3;margin:0;overflow-wrap:anywhere}
body[data-game-view=shop] .compact-order-board .customer-trust{font-size:.75rem;line-height:1.3;margin-top:4px;color:#b6c7ad}
body[data-game-view=shop] .compact-order-board .order-reward{flex:none;display:flex;gap:3px;align-items:center;margin:0;padding:6px;border:1px solid #cfb66a;border-radius:12px;background:linear-gradient(#ffe5a0,#d6b25a);color:#314026;box-shadow:inset 0 1px 0 #fff6,0 3px 0 #8b7334,0 5px 7px #0004;font-size:.875rem}
body[data-game-view=shop] .compact-order-board .customer-quote{font:400 .9375rem/1.4 Georgia,serif;margin:10px 0;color:#d9dec6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body[data-game-view=shop] .compact-order-board .order-recipe{display:block;margin:12px 0 10px}.order-ingredients{display:flex;gap:6px;flex-wrap:wrap}.order-ingredient{display:inline-flex;align-items:center;gap:5px;padding:6px 8px;border:1px solid #88b0872a;border-radius:12px;background:linear-gradient(#315a3c,#1e4b30);color:#d9ebcf;box-shadow:inset 0 1px 0 #d4e5bc19,0 3px 5px #0003;font-size:.8125rem;line-height:1.25}.order-ingredient img{border-radius:50%;object-fit:cover;flex:none}.ingredient-missing{background:linear-gradient(#69452b,#4e3021);border-color:#b5784e44;color:#f3d9bc}
body[data-game-view=shop] .compact-order-board .order-need{font-size:.75rem;color:#b6c7ad;line-height:1.3;margin:8px 0}
body[data-game-view=shop] .compact-order-board .customer-order>.gold{width:100%;min-height:48px;margin:0;padding:12px 8px;font-size:1rem;font-weight:700;border-radius:14px;background:linear-gradient(#fff0bc,#dfc27d 70%,#b69b58);color:#263725;box-shadow:inset 0 1px 0 #fff8,0 4px 0 #8d773b,0 7px 10px #0004}
body[data-game-view=shop] .compact-order-board .order-ready>.gold{background:linear-gradient(#b6edbb,#80c991 70%,#60a775);color:#163c27;box-shadow:inset 0 1px 0 #eaffe788,0 4px 0 #477d53,0 7px 10px #0004}
body[data-game-view=shop] .compact-order-board .customer-more{margin:10px 0 0;padding:0;border:0;font-size:.8125rem}.compact-order-board .customer-more summary{font-size:.8125rem;min-height:32px}
@media(max-width:360px){body[data-game-view=shop] #view{padding:12px 4px 20px}body[data-game-view=shop] .farm-shop-tabs button{font-size:.9375rem}body[data-game-view=shop] .my-shop-hero{grid-template-columns:85px minmax(0,1fr);gap:10px}body[data-game-view=shop] .shop-building-meta h2{font-size:1.15rem}body[data-game-view=shop] .live-shop-shelf{padding:10px}body[data-game-view=shop] .shop-shelf-slots{gap:6px}body[data-game-view=shop] .shop-quick-grid{gap:10px}body[data-game-view=shop] .compact-order-board .customer-order{padding:12px}body[data-game-view=shop] .compact-order-board .customer-heading{gap:8px}}
/* Hosil remains visible when opened from a non-farm screen. */
body[data-game-view] #worldBag.premium-bag #barnDetails{display:block!important}
body[data-game-view=shop] #shop-orders-panel .compact-order-board>header h2{font:400 .875rem/1.4 'Ayupov Sans',Arial,sans-serif;margin:0;color:#b7c7b0}
.shop-building-meta progress{-webkit-appearance:none;appearance:none;border:0;overflow:hidden;background:#071b12;border-radius:8px}.shop-building-meta progress::-webkit-progress-bar{background:#071b12;border-radius:8px;box-shadow:inset 0 2px 3px #0006}.shop-building-meta progress::-webkit-progress-value{background:linear-gradient(#ffebad,#d1b466);border-radius:8px;box-shadow:0 0 7px #ead48b66}.shop-building-meta progress::-moz-progress-bar{background:linear-gradient(#ffebad,#d1b466);border-radius:8px}
.shop-quick-grid button>span svg{width:20px;height:20px;display:block}
/* Keep the main action below the dashboard without covering upgrade controls. */
body[data-game-view=shop] #shop-ready-panel{gap:12px;min-height:calc(100dvh - 290px)}
body[data-game-view=shop] .my-shop-hero>img{height:110px;max-height:110px}
body[data-game-view=shop] .shop-quick-grid button{min-height:74px}
body[data-game-view=shop] #shopHarvest{min-height:54px}
body[data-game-view=shop] #backLab{position:static;margin-top:auto}
/* Keep shop navigation clear of the measured fixed profile HUD on entry and swipe. */
body[data-game-view=shop] #view{scroll-margin-top:var(--shop-hud-bottom,88px)}
body[data-game-view=shop] .farm-shop-tabs{position:sticky;top:var(--shop-hud-bottom,88px);z-index:20;box-shadow:0 8px 12px #0b2119cc}
body[data-game-view=shop] .game-hud:before{content:'';position:absolute;inset:-12px -12px -7px;z-index:-1;background:linear-gradient(#0b241e 95%,#0b241e00);pointer-events:none}
body[data-game-view=shop] #shopBottles,body[data-game-view=shop] #shopHistory,body[data-game-view=shop] #shopHarvestPanel{scroll-margin-top:calc(var(--shop-hud-bottom,88px) + 76px)}
body[data-game-view=shop] .shop-harvest-inline{border:1px solid #81713b;border-radius:26px;background:linear-gradient(145deg,#1d3225,#14261b 72%,#102017);box-shadow:inset 0 1px 1px #d6c27c33,0 8px 20px #0004;padding:20px 16px;margin-top:10px;outline-offset:3px}
.shop-harvest-inline>header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:20px}.shop-harvest-inline>header h2{font:700 2rem/1.1 Georgia,serif;color:#f1e8c9;text-shadow:0 2px 0 #080f0b;margin:0 0 8px}.shop-harvest-inline>header p{font-size:1rem;line-height:1.4;color:#b7c6b2;margin:0}.shop-harvest-inline>header>small{color:#d8c485;font-size:.875rem;letter-spacing:0;white-space:nowrap}
.shop-harvest-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 14px}.shop-harvest-grid .harvest-resource{min-width:0;display:flex;flex-direction:column;align-items:center;gap:12px;padding:16px 6px;background:linear-gradient(145deg,#253c2d,#192c20 80%);border:1px solid #8fa78a20;border-bottom-color:#0a180e;border-radius:24px;box-shadow:inset 0 1px 0 #cfdfbf14,0 5px 0 #0c1a12,0 10px 16px #0003}
.shop-harvest-grid img{box-sizing:border-box;width:clamp(76px,22vw,108px);height:clamp(76px,22vw,108px);padding:4px;border-radius:50%;background:linear-gradient(130deg,#fff2b1,#e8c45f 30%,#9b711e 70%,#eac363);box-shadow:0 7px 13px #0004;object-fit:cover}
.shop-harvest-grid strong{max-width:100%;min-width:64px;padding:6px 10px;border-radius:13px;background:#0b1b11;box-shadow:inset 0 3px 6px #0008,0 1px 0 #bcd3af13;color:#f2cd70;font:700 1.75rem/1.15 'Ayupov Sans',Arial,sans-serif;text-align:center;text-shadow:0 2px 0 #67491d;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.shop-harvest-grid h3{margin:0;font:700 1.25rem/1.2 Georgia,serif;color:#efe8cf;text-shadow:0 2px 2px #0005;text-align:center;overflow-wrap:anywhere}
.shop-harvest-grid [data-empty=true] img{background:linear-gradient(130deg,#e5e9e4,#9aa99d 45%,#5b665c 75%,#c1c9be);filter:saturate(.5) brightness(.85)}.shop-harvest-grid [data-empty=true] strong{color:#adbbae;text-shadow:none}.shop-harvest-grid [data-empty=true] h3{color:#c8d0c3}
@media(max-width:360px){body[data-game-view=shop] .shop-harvest-inline{padding:18px 12px}.shop-harvest-grid{gap:16px 10px}.shop-harvest-grid h3{font-size:1.1rem}}

/* Gallery now belongs to the shop room, above its stock and sale controls. */
body[data-game-view=shop] .my-shop-hero{display:flex;flex-direction:column;align-items:stretch;gap:8px;margin:0 0 16px;padding:0}
body[data-game-view=shop] .my-shop-hero>img{display:block;flex:none;width:min(100%,230px);height:128px;min-height:0;max-height:128px;object-fit:contain;margin:0 auto;filter:drop-shadow(0 6px 5px #05130d55)}
body[data-game-view=shop] .my-shop-hero .shop-building-meta{text-align:center;width:100%;min-width:0}
@media(max-height:650px){body[data-game-view=shop] .my-shop-hero>img{height:110px;max-height:110px}}

body[data-game-view=shop] .shop-empty-shelf{text-align:center;padding:8px 0 2px}body[data-game-view=shop] .shop-empty-shelf p{margin:2px 0 12px;font-size:1rem;color:#e5dfc6}body[data-game-view=shop] .shop-empty-shelf .shop-empty-create{margin:0;width:100%;min-height:46px}

/* Six ingredients fit in two compact rows. */
body[data-game-view=shop] .shop-harvest-inline{padding:16px 12px}
.shop-harvest-inline>header{margin-bottom:14px}
.shop-harvest-inline>header h2{font-size:1.25rem;line-height:1.25;margin:0}
.shop-harvest-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 8px}
.shop-harvest-grid .harvest-resource{gap:7px;padding:10px 4px;border-radius:16px}
.shop-harvest-grid img{width:clamp(48px,14vw,64px);height:clamp(48px,14vw,64px);padding:3px}
.shop-harvest-grid strong{box-sizing:border-box;min-width:42px;padding:4px 7px;border-radius:9px;font-size:1.25rem}
.shop-harvest-grid h3{font:500 .875rem/1.3 'Ayupov Sans',Arial,sans-serif}

body[data-game-view=shop] .farm-shop-tabs{position:static;padding:3px;margin-bottom:14px;gap:3px;border-radius:15px;box-shadow:inset 0 2px 5px #0006}
body[data-game-view=shop] .farm-shop-tabs button{min-height:44px;padding:8px 5px;font-size:.875rem;border-radius:12px}
body[data-game-view=shop] .quest{display:none!important}
#worldDock [data-dock=lab]{position:relative}
#worldDock .lab-status{position:absolute;top:2px;right:2px;max-width:calc(100% - 4px);box-sizing:border-box;padding:3px 5px;border:1px solid #bda463;border-radius:9px;background:#173d2c;color:#efdda3;font:600 10px/1.15 'Ayupov Sans',Arial,sans-serif;white-space:nowrap;pointer-events:none}
#worldDock .lab-status[data-ready=true]{background:#e5be67;color:#243121}
#worldDock .lab-status[hidden]{display:none}

body[data-game-view=shop] .shop-upgrade-slot[hidden]{display:none!important}

/* Fixed-camera boutique interior; all sales and inventory handlers stay intact. */
body[data-game-view=shop] .my-shop-hero.shop-room-present{gap:10px;margin-bottom:16px}
.shop-room-present .shop-building-meta{order:-1}
.shop-room-present .shop-building-meta h2{margin:0 0 4px;font-size:1.35rem}
.shop-room-present .shop-building-meta p{margin:0 0 6px;font-size:.875rem}
.shop-room-present .shop-building-meta progress{margin:3px 0}
.shop-room-viewport{position:relative;isolation:isolate;overflow:hidden;width:100%;height:clamp(340px,100vw,440px);border:1px solid #b39b5e77;border-radius:20px;background:#102e24;box-shadow:inset 0 1px 0 #efda8a33,0 6px 16px #0003}
.shop-room-viewport .shop-room-canvas{position:absolute;inset:0;display:block;width:100%;height:100%;opacity:0;pointer-events:none}
.shop-room-viewport[data-room-state=ready] .shop-room-canvas{opacity:1}
.shop-room-fallback{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;padding:0;box-sizing:border-box}
.shop-room-viewport[data-room-state=ready] .shop-room-fallback{visibility:hidden}
.shop-room-tools{position:absolute;z-index:2;top:12px;left:12px;right:12px;display:flex;justify-content:space-between;gap:10px;pointer-events:none}
.shop-room-tools .shop-room-shortcut{pointer-events:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:74px;min-height:62px;margin:0;padding:6px 8px;border:1px solid #c9ab6588;border-radius:13px;background:#12392bde;color:#efda9e;box-shadow:0 3px 7px #071f1844}
.shop-room-shortcut svg{width:25px;height:25px}
.shop-room-shortcut span{font:500 .8125rem/1.2 'Ayupov Sans',Arial,sans-serif}
.shop-room-shortcut:last-child{margin-left:auto}
.shop-room-shortcut:focus-visible{outline:2px solid #efcf7f;outline-offset:2px}
#shop-ready-panel:has(.shop-room-present)>.shop-upgrade-slot{display:none}
@media(max-width:350px){.shop-room-viewport{height:340px}.shop-room-tools{top:8px;left:8px;right:8px}.shop-room-tools .shop-room-shortcut{min-width:66px}}
/* Accessible tap targets follow the actual 3D counter positions. */
.room-shelf-targets{position:absolute;inset:0;z-index:1;pointer-events:none}
.shop-room-viewport:not([data-room-state=ready]) .room-shelf-targets{display:none}
.room-shelf-targets .room-shelf-target{position:absolute;transform:translate(-50%,-50%);pointer-events:auto;box-sizing:border-box;min-width:44px;min-height:44px;margin:0;padding:0;border:0;background:transparent;box-shadow:none;color:#f4dda0;touch-action:manipulation}
.room-shelf-targets .room-shelf-target.is-empty{width:44px;height:44px;border:1px dashed #f2d68d;border-radius:50%;background:#12392bdc;box-shadow:0 2px 6px #071a1455;font:500 30px/1 Georgia,serif}
.room-shelf-targets .room-shelf-target.has-bottle{width:clamp(52px,15.5vw,66px);height:82px;border-radius:10px}
.room-shelf-targets .room-shelf-target:focus-visible{outline:2px solid #f2ce7d;outline-offset:3px}
.room-shelf-targets .room-shelf-target:active{background-color:#d6ba6a30}
.room-shelf-name{position:absolute;bottom:-14px;left:0;right:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;min-height:2.4em;padding:4px;border-radius:7px;background:#12392bee;color:#f2dfb3;font:500 12px/1.2 'Ayupov Sans',Arial,sans-serif;white-space:normal;overflow-wrap:anywhere;overflow:hidden}
.room-shelf-caption{position:absolute;z-index:1;left:50%;bottom:10px;transform:translateX(-50%);padding:4px 9px;border:1px solid #bda46388;border-radius:10px;background:#12392be8;color:#ecdaab;font-size:12px;white-space:nowrap;pointer-events:none}
.room-ready-list{display:grid;gap:10px;max-height:58dvh;overflow-y:auto;overscroll-behavior:contain}
.room-ready-list article{display:grid;grid-template-columns:66px minmax(0,1fr);align-items:center;gap:12px;padding:12px;border:1px solid #c0a96566;border-radius:15px;background:#193e2c}
.room-ready-list article>div{min-width:0}
.room-ready-list .bottle-preview{width:62px;height:88px;max-width:100%;margin:0}
.room-ready-list h3{font:600 1.1rem/1.25 Georgia,serif;margin:0 0 6px;overflow-wrap:anywhere}
.room-ready-list small{display:block;color:#c6cfb5;font-size:13px;line-height:1.35}
.room-ready-list p{margin:8px 0;font-size:14px;color:#e4c986}
.room-ready-list .gold,.room-shelf-dialog>#roomMakePerfume{width:100%;min-height:44px;margin:0;font-size:14px;padding:10px}
.room-bottle-detail{text-align:center}
.room-bottle-detail>.bottle-preview{display:block;width:90px;height:120px;margin:0 auto 12px}
.room-bottle-detail h3{font:600 1.5rem/1.2 Georgia,serif;overflow-wrap:anywhere;color:#efddad}
.room-bottle-detail>strong{display:block;font-size:1rem;color:#ecd08c}
.room-bottle-detail .gold{width:100%;min-height:46px}

/* Customer presence follows the real listed-bottle timer; tapping opens the sale. */
.shop-room-viewport .room-customer{position:absolute;z-index:3;right:8px;top:auto;bottom:44px;display:grid;grid-template-columns:14px 1fr;gap:2px 4px;box-sizing:border-box;width:118px;min-height:44px;padding:6px 7px;border:1px solid #e7c77b;border-radius:14px 14px 3px 14px;background:#12392bf5;color:#f5dfa7;box-shadow:0 4px 12px #0004;text-align:left;cursor:pointer;animation:room-customer-arrive .7s ease-out both}
.shop-room-viewport .room-customer[hidden]{display:none}
.room-customer>span{grid-row:span 2;align-self:center;color:#f3ce71;font-size:16px}
.room-customer strong{white-space:nowrap;font:600 12px/1.2 'Ayupov Sans',Arial,sans-serif}
.room-customer small{font:400 11px/1.2 'Ayupov Sans',Arial,sans-serif;color:#dccb9f}
.room-customer:focus-visible{outline:3px solid #f8e1a2;outline-offset:3px}
@keyframes room-customer-arrive{from{opacity:0;transform:translateX(20px)}to{opacity:1;transform:translateX(0)}}
@media(prefers-reduced-motion:reduce){.shop-room-viewport .room-customer{animation:none}}

/* The display cabinet opens a read-only, compact ingredient inventory. */
.shop-room-viewport .room-warehouse-target{position:absolute;z-index:1;left:20%;top:25%;width:60%;height:32%;min-width:44px;min-height:44px;margin:0;padding:0;border:0;border-radius:10px;background:transparent;box-shadow:none;color:#f5dfa7;cursor:pointer;touch-action:manipulation}
.room-warehouse-target>span{position:absolute;left:50%;top:8px;transform:translateX(-50%);padding:5px 10px;border:1px solid #c9ab65aa;border-radius:20px;background:#12392bf2;font:600 14px/1.2 'Ayupov Sans',Arial,sans-serif;white-space:nowrap}
.shop-room-viewport .room-warehouse-target:focus-visible{outline:3px solid #f0d18a;outline-offset:3px;background:#e8c46c15}
.shop-room-viewport .room-warehouse-target:active{background:#e8c46c20}
body[data-game-view=shop] #shopHarvestPanel.shop-warehouse-open{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:58px;margin:12px 0;padding:16px;border:1px solid #bda46388;border-radius:16px;background:#1c3e2f;color:#efdbac;text-align:left;box-shadow:0 3px 8px #0002}
.shop-warehouse-open strong{font-size:16px}.shop-warehouse-open>span{font-size:14px;white-space:nowrap}
.room-warehouse-dialog{max-height:65dvh;overflow-y:auto;padding:0 2px 4px}
.room-warehouse-total{margin:0 0 12px;font-size:14px;color:#d9cba5}
.room-warehouse-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.room-warehouse-grid article{display:flex;flex-direction:column;align-items:center;gap:7px;min-width:0;padding:12px 4px;border:1px solid #bca16855;border-radius:15px;background:#214532;text-align:center}
.room-warehouse-grid img{display:block;width:58px;height:58px;object-fit:cover;border:2px solid #d5b46c;border-radius:50%}
.room-warehouse-grid h3{margin:0;font:500 14px/1.25 'Ayupov Sans',Arial,sans-serif}
.room-warehouse-grid strong{font-size:20px;line-height:1.2;color:#f2d48e;overflow-wrap:anywhere}
.room-warehouse-grid strong small{font-size:12px;font-weight:400}
.room-warehouse-grid [data-empty=true]{background:#183526}.room-warehouse-grid [data-empty=true] img{filter:saturate(.45)}

.shop-upgrade-requirements{margin:12px 0 2px;text-align:left}
.shop-upgrade-requirements h3{margin:0 0 8px;font:500 14px/1.4 'Ayupov Sans',Arial,sans-serif;color:#e7d59f}
.shop-upgrade-requirements ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.shop-upgrade-requirements li{display:flex;flex-direction:column;gap:5px;min-width:0;padding:9px 6px;border:1px solid #baa16a55;border-radius:11px;background:#153629;text-align:center}
.shop-upgrade-requirements li>span{font-size:14px;color:#cfdbcb}
.shop-upgrade-requirements strong{font-size:14px;color:#f3db9e;overflow-wrap:anywhere}
.shop-upgrade-requirements strong small{display:inline;font-size:12px;color:#c6cdb4;white-space:nowrap}
.shop-upgrade-requirements em{font:400 12px/1.3 'Ayupov Sans',Arial,sans-serif;color:#f1cc86;overflow-wrap:anywhere}
.shop-upgrade-requirements [data-met=true] em{color:#a8d8ad}

/* Keep acknowledged ready-to-sell stock reachable while scrolling the shop. */
body[data-game-view=shop] .shop-ready-sale{position:sticky;top:var(--shop-hud-bottom,88px);z-index:4;display:block;box-sizing:border-box;width:max-content;max-width:100%;min-height:44px;margin:6px auto 10px;padding:8px 12px;border:1px solid #c6ab68;border-radius:14px;background:#173d2ff5;color:#f2d896;font-size:14px;line-height:1.3;box-shadow:0 3px 8px #061b1855}
body[data-game-view=shop] .shop-ready-sale[hidden]{display:none}

.room-shelf-info{position:absolute;bottom:-39px;left:0;right:0;display:block;background:transparent;overflow:visible}
.room-shelf-info .room-shelf-name{position:static;padding:2px 1px;background:transparent;text-shadow:0 1px 3px #031c13,1px 0 1px #031c13,-1px 0 1px #031c13}
.room-shelf-status{display:block;box-sizing:border-box;min-height:2.4em;margin-top:4px;padding:4px 2px;font:500 11px/1.2 'Ayupov Sans',Arial,sans-serif;color:#e3e6cf;white-space:normal;overflow-wrap:anywhere;text-shadow:0 1px 3px #031c13}
.room-shelf-target[data-sale-ready=true] .room-shelf-info{box-shadow:none}
.room-shelf-target[data-sale-ready=true] .room-shelf-status{border:1px solid #efd99a;border-radius:7px;background:linear-gradient(135deg,#f6e6ad,#d1b366);color:#243e2c;font-weight:600;text-shadow:none;box-shadow:0 2px 4px #061e1933}
/* The ready bottle and pinned sales button already identify this customer. */
.shop-room-viewport[data-room-state=ready]:has(.room-shelf-target[data-sale-ready=true]) .room-customer{display:none}

.shop-room-viewport .room-shelf-caption{bottom:6px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;box-sizing:border-box;max-width:calc(100% - 16px);min-height:44px;margin:0;padding:5px 10px;pointer-events:auto;cursor:pointer;font-size:12px}
.room-shelf-caption small{font-size:11px;color:#f3d894}.room-shelf-caption:focus-visible{outline:3px solid #efd18b;outline-offset:2px}
.room-all-shelf>p{margin:0 0 12px;font-size:14px}
.room-all-shelf-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-height:58dvh;overflow:auto;padding:2px}
.room-all-shelf-grid>button{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:5px;min-width:0;min-height:132px;margin:0;padding:8px 4px;border:1px solid #bba46a66;border-radius:12px;background:#193e2d;color:#eddbad;text-align:center}
.room-all-shelf-grid .bottle-preview{width:45px;height:59px;flex:none}
.room-all-shelf-grid strong{font:500 12px/1.25 'Ayupov Sans',Arial,sans-serif;overflow-wrap:anywhere}
.room-all-shelf-grid small{font-size:11px;color:#baceb9}
.room-all-shelf-status{font-size:11px;line-height:1.3}.room-all-shelf-grid [data-sale-ready=true] .room-all-shelf-status{color:#ffdf83}
.room-all-shelf-plus{display:grid;place-items:center;width:45px;height:59px;font-size:30px;color:#d8bd7a}
.room-all-shelf-grid>button:focus-visible{outline:2px solid #efd18b;outline-offset:-3px}
.room-all-shelf-hint{display:block;margin-top:9px;color:#cbd5bc;font-size:12px;line-height:1.4}

details.shop-upgrade-requirements{padding:0;border:0;background:transparent;box-shadow:none}
.shop-upgrade-requirements>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;box-sizing:border-box;padding:10px 12px;border:1px solid #bba46a66;border-radius:11px;background:#153629;color:#ead8a8;font:500 13px/1.4 'Ayupov Sans',Arial,sans-serif;list-style:none;cursor:pointer}
.shop-upgrade-requirements>summary::-webkit-details-marker{display:none}
.shop-upgrade-requirements>summary svg{flex:none;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7}
.shop-upgrade-requirements[open]>summary svg{transform:rotate(180deg)}
.shop-upgrade-requirements[open]>summary{margin-bottom:10px}
.shop-upgrade-requirements>summary:focus-visible{outline:2px solid #f1d291;outline-offset:3px}

body[data-game-view=shop] #shopBottles[hidden]{display:none}

/* Keep the shop identity on one line; requirements live in the upgrade dialog. */
body[data-game-view=shop] .my-shop-hero .shop-building-meta h2{display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;margin:0;font:600 16px/1.3 'Ayupov Sans',Arial,sans-serif}
.shop-building-meta h2>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.shop-building-meta h2>small{flex:none;display:inline;font:400 14px/1.3 'Ayupov Sans',Arial,sans-serif;color:#c5d1bc}
body[data-game-view=shop] .my-shop-hero.shop-room-present{gap:6px}
body[data-game-view=shop] .farm-shop-tabs{margin-bottom:12px}
.building-upgrade>.shop-upgrade-requirements{margin:12px 0 16px}

.room-sale-summary{display:flex;align-items:center;gap:14px;margin:4px 0 18px;min-width:0}
.room-sale-summary .bottle-preview{flex:none;width:50px;height:68px}
.room-sale-summary>div{min-width:0}.room-sale-summary h3{margin:0 0 8px;font:600 18px/1.3 'Ayupov Sans',Arial,sans-serif;overflow-wrap:anywhere}
.room-sale-summary strong{font-size:16px;color:#f1d793}
.room-sale-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.room-sale-actions button{min-width:0;min-height:44px;margin:0;padding:10px 8px;font-size:14px}
.room-customer-anchor{position:absolute;width:1px;height:1px;pointer-events:none;visibility:hidden}

.room-empty-label{position:absolute;top:calc(100% + 5px);left:50%;transform:translateX(-50%);display:block;width:clamp(52px,15.5vw,66px);font:500 11px/1.2 'Ayupov Sans',Arial,sans-serif;color:#f2dfb3;white-space:normal;text-align:center;text-shadow:0 1px 3px #031c13,1px 0 1px #031c13,-1px 0 1px #031c13}
