#modal.shop-modal{width:min(1100px,calc(100vw - 28px));height:min(690px,calc(100dvh - 24px));max-height:calc(100dvh - 24px);padding:0;border:1px solid #dfd9bf;border-radius:24px;background:#fbf7ec;color:#39453b;overflow:hidden;box-sizing:border-box}
.shop-modal .modal-heading{display:none}#modal.shop-modal #modal-content{height:100%;padding:0;overflow:hidden;max-height:none}
.bs-shell,.bs-shell *{box-sizing:border-box}.bs-shell{height:100%;display:flex;flex-direction:column;font-family:system-ui,-apple-system,'PingFang SC',sans-serif;font-size:16px;line-height:1.4}.bs-shell button{font:inherit;cursor:pointer;touch-action:manipulation}.bs-shell button:disabled{cursor:default}.bs-shell button:focus-visible{outline:3px solid #b68d44;outline-offset:1px}.bs-header{height:88px;flex-shrink:0;display:flex;align-items:center;gap:14px;padding:0 26px;border-bottom:1px solid #e5decc}.bs-header h2{margin:0;font-size:30px;letter-spacing:2px;color:inherit}.bs-wallet{margin-left:auto;display:flex;align-items:center;gap:10px;font-size:14px}.bs-wallet strong{font-size:30px;color:#406652;font-variant-numeric:tabular-nums}.bs-shell .bs-round{border:1px solid #ddd6c3;border-radius:50%;width:44px;height:44px;min-height:44px;background:#eee9d9;color:#61755e;padding:0;font-size:25px;flex-shrink:0}.bs-body{flex:1;display:flex;min-height:0}.bs-tabs{width:96px;padding:16px 9px;display:flex;flex-direction:column;gap:10px;background:#f3eedf;border-right:1px solid #e5decc;flex-shrink:0}.bs-tabs button{display:flex;flex-direction:column;align-items:center;gap:5px;border:0;background:transparent;color:#777e69;border-radius:14px;padding:11px 5px;font-weight:650;font-size:16px;min-height:54px}.bs-tabs svg{width:28px;height:28px}.bs-tabs .selected{background:#426957;color:#fff7e6;box-shadow:0 3px 0 #314f43}.bs-scroll{min-width:0;flex:1;overflow:auto;padding:18px;overscroll-behavior:contain;touch-action:pan-y;scrollbar-width:thin;scrollbar-color:#bcbba7 transparent}.bs-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.bs-card{min-width:0;background:#fffdf6;border:1px solid #dddcc6;border-radius:18px;padding:12px;display:flex;flex-direction:column;align-items:stretch;gap:8px;text-align:center}.bs-shell .bs-art{padding:0;border:0;background:#f6f3e6;border-radius:12px;height:155px;display:flex;align-items:center;justify-content:center;overflow:hidden;flex-shrink:0}.bs-art img{display:block;width:auto;max-width:100%;height:100%;object-fit:contain}.bs-card h3{font-size:20px;line-height:1.4;margin:0;color:inherit}.bs-shell .bs-name{padding:0;border:0;background:transparent;font:inherit;color:inherit;font-weight:700;min-height:0}.bs-card p{font-size:14px;color:#69735f;line-height:1.4;margin:0}.bs-shell .bs-buy{margin-top:auto;background:#456b58;border:0;min-height:44px;border-radius:10px;padding:8px 12px;box-shadow:0 3px 0 #314f42;color:#fff9e9;font-size:18px;font-weight:750;white-space:nowrap}.bs-buy small{font-size:12px;font-weight:500;margin-left:6px}.bs-shell .bs-buy:disabled{background:#ecebdd;color:#737965;box-shadow:none;opacity:1}.bs-footer{height:32px;flex-shrink:0;padding:0 20px;border-top:1px solid #e5decc;color:#7b806f;display:flex;align-items:center;font-size:12px;overflow:hidden}.bs-footer span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.bs-footer button{background:none;color:inherit;border:0;padding:2px;text-decoration:underline}.bs-staff{display:flex;min-height:100%;border-radius:18px;border:1px solid #dedcc8;background:#fffdf6;overflow:hidden}.bs-shell .bs-portrait{border:0;padding:0;width:40%;flex-shrink:0;position:relative;background:#e8ecdc;overflow:hidden}.bs-portrait img{position:absolute;width:100%;height:100%;inset:0;object-fit:cover;display:block}.bs-staff-info{padding:30px;display:flex;flex-direction:column;align-items:flex-start;flex:1;min-width:0}.bs-staff-info h3{font-size:28px;margin:0 0 10px;color:inherit}.bs-staff-info p{margin:0 0 14px;font-size:16px;color:#69735f}.bs-staff-info .bs-job{background:#f0f1e4;padding:10px 14px;border-radius:10px;color:#456b58;font-size:18px}.bs-staff-info .bs-wage{color:#8d795d}.bs-staff-info .bs-buy{min-width:175px}
@media(max-height:500px),(max-width:800px){#modal.shop-modal{height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);border-radius:20px}.bs-header{height:54px;padding:0 20px;gap:10px}.bs-header h2{font-size:25px}.bs-wallet{font-size:12px;gap:8px}.bs-wallet strong{font-size:26px}.bs-shell .bs-round{width:40px;height:40px;min-height:40px}.bs-tabs{width:70px;padding:10px 6px;gap:7px}.bs-tabs button{min-height:47px;padding:6px 3px;font-size:14px;gap:2px;border-radius:12px}.bs-tabs svg{width:22px;height:22px}.bs-scroll{padding:10px 12px}.bs-grid{gap:10px}.bs-card{padding:9px;gap:8px;border-radius:14px}.bs-shell .bs-art{height:clamp(72px,calc(100dvh - 274px),150px);border-radius:9px}.bs-card h3{font-size:18px}.bs-card p{font-size:13px}.bs-footer{height:30px}.bs-portrait{width:34%!important}.bs-staff-info{padding:18px 22px}.bs-staff-info h3{font-size:23px;margin-bottom:8px}.bs-staff-info .bs-job{font-size:16px;padding:8px 12px;margin-bottom:10px}.bs-staff-info .bs-wage,.bs-staff-info p{font-size:13px}.bs-staff-info .bs-buy{min-width:160px}}
@media(max-height:350px){.bs-tabs{padding:8px 5px;gap:5px}.bs-tabs button{min-height:44px;padding:3px;gap:0;font-size:13px}.bs-tabs svg{width:20px;height:20px}.bs-card{padding:8px;gap:6px}.bs-card h3{font-size:17px}.bs-staff-info{padding:9px 16px}.bs-staff-info h3{font-size:20px;margin-bottom:5px}.bs-staff-info .bs-job{font-size:14px;padding:5px 9px;margin-bottom:6px}.bs-staff-info p{margin-bottom:7px;font-size:12px}}
@media(max-width:760px){.bs-wallet>span{display:none}.bs-wallet strong{font-size:23px}.bs-header{gap:8px}}
@media(max-width:540px) and (orientation:portrait){.bs-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bs-staff{flex-direction:column}.bs-portrait{width:100%!important;min-height:220px}.bs-portrait img{object-fit:contain}.bs-staff-info{padding:14px}}
/* Selection and confirmation remain separate from the product cards. */
.bs-card,.bs-staff{position:relative}.bs-card.is-selected,.bs-staff.is-selected{border-color:#456b58;box-shadow:inset 0 0 0 2px #456b58;background:#f0f4e9}.bs-owned{align-self:center;color:#6a7965;font-size:12px}.bs-footer{height:80px;padding:10px 22px;gap:16px;background:#f1eddf;overflow:visible}.bs-footer.has-selection{background:#e9efdf;border-top:2px solid #a2b491}.bs-choice{flex:1;min-width:0}.bs-choice-title{display:flex;align-items:baseline;gap:14px;flex-wrap:wrap;line-height:1.3}.bs-choice-title strong{font-size:20px;color:#39453b}.bs-choice-title b{font-size:24px;color:#406652;font-variant-numeric:tabular-nums}.bs-choice-title em{font-size:14px;font-style:normal;color:#956741}.bs-choice-title>span{font-size:17px}.bs-footer [data-shop-caption]{display:block;min-height:17px;font-size:12px;line-height:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bs-confirm-actions{display:flex;gap:12px;flex-shrink:0}.bs-shell .bs-confirm-actions button{height:48px;min-width:110px;border-radius:12px;padding:8px 20px;text-decoration:none;font-size:20px;font-weight:700}.bs-shell .bs-cancel{background:#fffdf5;border:1px solid #bbc5ad;color:#52624d}.bs-shell .bs-confirm-actions .bs-buy{margin:0;background:#456b58;color:#fff9e9;border:0;box-shadow:0 3px 0 #314f42}.bs-shell .bs-confirm-actions .bs-buy:disabled{background:#d7deca;color:#73806d;box-shadow:none}.bs-tabs{overflow-y:auto}.bs-tabs button{flex:1;min-height:0}
@media(max-height:500px),(max-width:800px){.bs-footer{height:68px;padding:7px 16px;gap:12px}.bs-choice-title{gap:9px}.bs-choice-title strong{font-size:17px}.bs-choice-title b{font-size:21px}.bs-choice-title em{font-size:12px}.bs-shell .bs-confirm-actions button{height:44px;min-width:86px;font-size:18px;padding:7px 15px}.bs-confirm-actions{gap:8px}.bs-tabs{padding:6px;gap:3px}.bs-tabs button{min-height:0;padding:3px}.bs-card .bs-art{height:clamp(72px,calc(100dvh - 274px),150px)}}
@media(max-width:540px) and (orientation:portrait){.bs-footer{height:auto;min-height:114px;flex-wrap:wrap}.bs-choice{flex-basis:100%}.bs-confirm-actions{width:100%}.bs-confirm-actions button{flex:1}}
