/* One bounded scroll region: Safari must never infer a zero flex basis. */
body.design41.glass74 #modal[open]{display:grid!important;grid-template-rows:auto minmax(0,1fr)!important;height:min(740px,calc(var(--modal-viewport87,100dvh) - 32px))!important;max-height:calc(var(--modal-viewport87,100dvh) - 32px)!important;min-height:220px;inset:0;margin:auto!important;overflow:hidden!important;transform:none!important}
body.design41.glass74 #modal #modal-body{display:block!important;flex:none!important;height:100%!important;max-height:none!important;min-height:0!important;box-sizing:border-box;overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch;padding:20px 20px calc(24px + env(safe-area-inset-bottom,0px))!important}
body.design41.glass74 #modal .modal-top{min-height:60px;box-sizing:border-box}.design41:has(#modal[open]){overflow:hidden}
.design41 .u87-storage>div{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.design41 .u87-storage :is(h2,p,small){flex-basis:100%;margin:0}.design41 .u87-storage .button{display:inline-flex;align-items:center;justify-content:center;margin:0!important;min-height:46px;flex:1 1 110px;align-self:stretch}
.design41 .u88-deck{position:relative;isolation:isolate;touch-action:pan-y;overflow:hidden}.design41 .u88-deck .u54-deck-nav{position:relative;display:flex;align-items:center;justify-content:space-between;grid-column:1/-1;padding:0 20px 12px;gap:12px}.design41 .u88-deck .u54-deck-nav>div{display:flex;gap:8px}.design41 .u88-deck .u54-deck-nav button{border:0;background:transparent;color:var(--green);min-width:30px;min-height:30px;border-radius:10px}.design41 .u88-deck .u54-deck-nav button span{display:block;width:7px;height:7px;border-radius:50%;background:var(--line)}.design41 .u88-deck .u54-deck-nav [aria-current=true] span{background:var(--green);width:22px;border-radius:5px}.design41 .u88-deck .x44-hero-copy{animation:u88-enter .35s ease both}.design41 .u88-deck .x44-art{animation:u88-float 6s ease-in-out infinite}.design41 .u88-deck .x44-hero-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.design41 .u88-deck .button{min-height:46px;justify-content:center}
@keyframes u88-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes u88-float{50%{transform:translateY(-6px)}}
body.design41.glass74 .u87-best{border:1.5px solid #d4b35b!important;background:linear-gradient(135deg,#fff9e6,var(--paper))!important;box-shadow:0 0 0 1px #e3ba4b40,0 7px 25px #c9992526!important;position:relative;overflow:hidden;isolation:isolate;animation:u88-gold 3.2s ease-in-out infinite}.design41 .u87-best:before{content:'';position:absolute;inset:-50%;background:linear-gradient(110deg,transparent 38%,#f8df9e38 48%,transparent 58%);transform:translateX(-60%);animation:u88-shine 6s ease-in-out infinite;pointer-events:none;z-index:-1}@keyframes u88-gold{50%{box-shadow:0 0 0 1px #edce7659,0 7px 30px #e4b33e45}}@keyframes u88-shine{60%,100%{transform:translateX(60%)}}
html[data-theme=dark] body.design41.glass74 .u87-best{background:linear-gradient(135deg,#403722,#192131 65%)!important;border-color:#d4b35b!important}
.u88-rank-header,.u88-store-header,.u88-company-cover{padding:22px;border-radius:22px;background:var(--mint);border:1px solid var(--line);margin-bottom:18px}.u88-rank-header small,.u88-store-header small,.u88-company-cover small{font-size:10px;letter-spacing:1.4px;color:var(--green)}.u88-rank-header h2,.u88-store-header h2{margin:8px 0;font-size:25px}.u88-rank-header p,.u88-store-header p{margin:0;color:var(--muted);font-size:13px}
.u88-leaders{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0}.u88-leader{display:flex;flex-direction:column;align-items:center;text-align:center;justify-content:flex-start;gap:7px;padding:16px 7px;border:1px solid var(--line);border-radius:18px;background:var(--paper);min-width:0}.u88-leader:first-child{border-color:#d4b35b;background:linear-gradient(160deg,#f8e7ac35,var(--paper));transform:translateY(-5px)}.u88-leader .u88-avatar{width:46px;height:46px}.u88-leader strong{font-size:12px;overflow-wrap:anywhere}.u88-leader small{font-size:10px;color:var(--muted)}.u88-medal{font-size:20px}.u88-avatar{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:14px;color:var(--green);background:var(--mint);font-weight:750;flex-shrink:0}
.u88-rank-list{display:grid;gap:8px}.u88-rank-row{display:grid;grid-template-columns:30px 40px minmax(0,1fr) auto;align-items:center;gap:10px;border:1px solid var(--line);border-radius:16px;background:var(--paper);padding:12px}.u88-rank-row.u88-mine{border-color:var(--green);background:var(--mint)}.u88-rank-row .u88-rank-name{border:0;background:transparent;text-align:left;font:inherit;font-weight:650;color:var(--ink);padding:0;overflow-wrap:anywhere;cursor:pointer}.u88-rank-row small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.u88-rank-value{text-align:right;max-width:130px}.u88-rank-value strong{font-size:12px;overflow-wrap:anywhere}.u88-mine-strip{display:flex;justify-content:space-between;gap:12px;padding:14px;border:1px solid var(--green);background:var(--mint);border-radius:16px;margin:16px 0;font-size:13px}
.u88-categories{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0}.u88-category{min-width:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:9px;border:1px solid var(--line);border-radius:16px;padding:16px 8px;background:var(--paper);color:var(--ink);font:inherit;font-size:12px;font-weight:650;min-height:100px;cursor:pointer}.u88-category>span{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:12px;background:var(--mint);color:var(--green)}.u88-category svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7}.u88-category.active{border-color:var(--green);background:var(--mint)}
.design41 .u88-product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.design41 .u88-product-grid>.u87-product{display:flex;flex-direction:column;min-width:0;padding:14px}.design41 .u88-product-grid .product-visual{min-height:150px;display:flex;align-items:center;justify-content:center;background:var(--mint);border-radius:14px;margin-bottom:10px}.design41 .u88-product-grid h2{font-size:15px;line-height:1.4;margin:8px 0}.design41 .u88-product-grid p{font-size:12px}.design41 .u88-product-grid .c85-actions{margin-top:auto}.design41 .u88-product-grid .button{width:100%;min-height:44px;justify-content:center}
.u88-inventory-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.u88-inventory-card{border:1px solid var(--line);border-radius:18px;background:var(--paper);padding:14px;min-width:0}.u88-inventory-card .u88-item-image{height:130px;display:flex;align-items:center;justify-content:center;background:var(--mint);border-radius:12px;margin-bottom:10px}.u88-item-image img{max-width:100%;height:110px;object-fit:contain}.u88-inventory-card label{display:flex;align-items:flex-start;gap:8px;font-weight:650;font-size:13px;line-height:1.4}.u88-inventory-card input{width:17px;height:17px;flex-shrink:0}.u88-condition{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:var(--muted);margin:12px 0 5px}.u88-inventory-card progress{display:block;width:100%;height:5px}.u88-item-status{display:inline-flex;font-size:10px;padding:5px 8px;border-radius:8px;background:var(--mint);color:var(--green);margin-top:10px}.u88-item-status[data-status=booked]{background:#b99a4b20;color:#a8862a}.u88-inventory-card details{margin-top:12px;font-size:10px;color:var(--muted);overflow-wrap:anywhere}.u88-inventory-card details .button{font-size:10px;min-height:34px;margin-top:6px}.u88-inventory-toolbar{display:flex;gap:8px;flex-wrap:wrap;padding:12px;border:1px solid var(--line);border-radius:16px;background:var(--paper);margin-bottom:16px}.u88-inventory-toolbar .button{font-size:12px;min-height:40px}
.u88-company-cover{display:grid;grid-template-columns:1fr 150px;align-items:center;overflow:hidden}.u88-company-cover .x44-art{position:static;width:150px;height:120px}.u88-company-cover h1{font-size:28px;margin:8px 0}.u88-company-cover p{font-size:12px;color:var(--muted);margin:0}.u88-manager-people{display:grid;gap:8px}.u88-manager-person{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid var(--line);border-radius:14px}.u88-manager-person small{display:block;font-size:11px;color:var(--muted);margin-top:4px}.u88-manager-controls{display:flex;gap:10px;align-items:center;justify-content:space-between}.u88-manager-state{display:flex;align-items:center;gap:8px;color:var(--green);font-size:12px}.u88-manager-state:before{content:'';width:8px;height:8px;border-radius:50%;background:currentColor}
@media(max-width:760px){body.design41.glass74 #modal[open]{width:calc(100% - 16px)!important;height:calc(var(--modal-viewport87,100dvh) - 24px)!important;max-height:calc(var(--modal-viewport87,100dvh) - 24px)!important;border-radius:22px!important;min-height:0;inset:0!important;margin:auto!important;border:1px solid var(--line)!important}body.design41.glass74 #modal #modal-body{padding:16px 16px calc(26px + env(safe-area-inset-bottom,0px))!important}.design41 .u88-inventory-grid,.design41 .u88-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.design41 .u88-product-grid>.u87-product{padding:10px}.design41 .u88-product-grid .product-visual{min-height:110px}.design41 .u88-product-grid .u87-product-visual{height:110px}.design41 .u88-product-grid h2{font-size:13px}.u88-inventory-card{padding:10px}.u88-inventory-card .u88-item-image{height:100px}.u88-item-image img{height:85px}.u88-inventory-card label{font-size:12px}.u88-rank-row{gap:8px;grid-template-columns:24px 36px minmax(0,1fr) auto;padding:11px 9px}.u88-rank-row .u88-avatar{width:36px;height:36px}.u88-rank-value{max-width:100px}.u88-rank-value strong{font-size:11px}.u88-company-cover{grid-template-columns:1fr 100px;padding:18px}.u88-company-cover .x44-art{width:110px;height:110px}.u88-company-cover h1{font-size:24px}.u88-rank-header h2,.u88-store-header h2{font-size:23px}.design41 .u88-deck .u54-deck-nav{padding:0 14px 8px}.design41 .u88-deck .x44-hero-actions{gap:8px}.design41 .u88-deck .button{padding:10px 8px;font-size:12px}.u88-manager-controls{align-items:flex-start}.design41 .u87-storage{grid-template-columns:1fr 100px}.design41 .u87-storage>div{gap:8px}.design41 .u87-storage .button{flex-basis:90px;min-height:44px;font-size:12px;padding:9px 8px}}
@media(prefers-reduced-motion:reduce){.design41 .u88-deck .x44-art,.design41 .u87-best,.design41 .u87-best:before{animation:none!important}}
.u88-category-strip .u88-categories{display:flex;overflow-x:auto;padding-bottom:7px;scrollbar-width:none}.u88-category-strip .u88-category{flex:0 0 105px;min-height:80px;padding:10px 7px}.u88-rank-name{color:var(--ink);font:inherit;border:0;background:transparent;cursor:pointer;max-width:100%;overflow-wrap:anywhere;font-weight:650}.design41 #main{overflow-anchor:none}.design41 .u88-inventory-card.i41-card{margin:0}.design41 .u88-inventory-card .u88-item-image>svg{width:40px;height:40px}.design41 .i41-loading{border:0!important;border-radius:0!important;box-shadow:none!important}
body.design41.glass74 #main .u87-best{animation:u88-gold 3.2s ease-in-out infinite!important}body.design41.glass74 #main .u88-deck .x44-art{animation:u88-float 6s ease-in-out infinite!important}
body.design41.glass74.u88-reduced #main .u87-best,body.design41.glass74.u88-reduced #main .u87-best:before,body.design41.glass74.u88-reduced #main .u88-deck .x44-art{animation:none!important}
@media(prefers-reduced-motion:reduce){body.design41.glass74 #main .u87-best,body.design41.glass74 #main .u87-best:before,body.design41.glass74 #main .u88-deck .x44-art{animation:none!important}}
.u88-company-cover>div{min-width:0}.u88-company-cover h1{overflow-wrap:anywhere}.u88-manager-person>div{min-width:0}.u88-manager-person strong,.u88-manager-person small{overflow-wrap:anywhere}
@keyframes u88-enter{from{opacity:1;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
.u88-leader:first-child{grid-column:2;grid-row:1}.u88-leader:nth-child(2){grid-column:1;grid-row:1}.u88-leader:nth-child(3){grid-column:3;grid-row:1}.u88-leader .u88-rank-name{font-size:12px;line-height:1.4;min-height:34px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body.design41.glass74 #mobile-nav .mobile-item.active{background:var(--mint)!important;color:var(--green)!important;border:1px solid var(--line);box-shadow:none!important}
