/* The modal content is one block. Only the product list owns the columns. */
#mine-modal>section[data-view=upgrade],#mine-modal>section[data-view=tools],#mine-modal>section[data-view=power]{width:min(1280px,100%);max-height:calc(100dvh - 32px);background:#122129;color:#e5e8dd;border-color:#5c716c;box-shadow:0 28px 90px #0009}
#mine-modal>section[data-view=upgrade] #modal-content,#mine-modal>section[data-view=tools] #modal-content{display:block;padding:22px;background:#122129;min-width:0}
#mine-modal>section[data-view=upgrade] .dialog-header,#mine-modal>section[data-view=tools] .dialog-header{background:#192b32;border-color:#3e565c}
#mine-modal>section[data-view=upgrade] .panel-heading h2,#mine-modal>section[data-view=tools] .panel-heading h2{color:#f0eee1;font-size:26px}
#mine-modal>section[data-view=upgrade] .panel-heading p,#mine-modal>section[data-view=tools] .panel-heading p{font-size:13px;color:#a7b9b8}
#mine-modal>section[data-view=upgrade] .market-categories{top:-22px;padding:12px 0;background:#122129f5;gap:9px;margin-bottom:18px;border-color:#3d555b}
#mine-modal>section[data-view=upgrade] .market-categories button{min-height:46px;font-size:14px;color:#b8c7c7;background:#1b3038;border-color:#435d64}
#mine-modal>section[data-view=upgrade] .market-categories button[aria-pressed=true]{background:#c8a35d;color:#17211c;border-color:#e2c385}
#mine-modal .market-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:18px;min-width:0;width:100%;align-items:start;margin-top:18px}
#mine-modal .power-products{display:block;min-width:0}
#mine-modal .market-product{box-sizing:border-box;height:600px;min-height:600px;max-height:600px;min-width:0;width:100%;margin:0;padding:18px;border:1px solid #48646b;border-radius:14px;background:linear-gradient(150deg,#21363d,#172a32 70%);display:grid;grid-template-rows:20px 190px 44px 54px 112px 92px;gap:10px;overflow:hidden;color:#e5e9df}
#mine-modal .product-topline{height:20px;display:flex;align-items:center;justify-content:space-between;gap:7px;min-width:0}
#mine-modal .product-topline small{font-size:10px;letter-spacing:.06em;color:#b8c5a4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#mine-modal .product-status{font-size:9px;color:#bed0cb;border:1px solid #61797399;padding:4px 6px;border-radius:5px;white-space:nowrap;max-width:60%;overflow:hidden;text-overflow:ellipsis}
#mine-modal .product-visual{height:190px;width:100%;min-width:0;overflow:hidden;box-sizing:border-box;border:1px solid #63786744;border-radius:10px;background:radial-gradient(ellipse at 50% 80%,#b4975d21,transparent 63%),linear-gradient(180deg,#101d24,#16272c);display:flex;align-items:center;justify-content:center}
#mine-modal .product-visual img{display:block;width:100%;height:100%;object-fit:contain;object-position:center;filter:drop-shadow(0 5px 5px #060d1166)}
#mine-modal .market-product>h3{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;height:44px;line-height:22px;font-size:18px;font-weight:600;letter-spacing:-.01em;margin:0;color:#edf0e5}
#mine-modal .market-product .product-copy{height:54px;line-height:18px;font-size:13px;color:#aac0c2;margin:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
#mine-modal .product-stats{display:grid;grid-template-rows:repeat(4,28px);height:112px;min-width:0;margin:0;padding:0;font-size:13px;border-top:1px solid #52686b66;font-variant-numeric:tabular-nums}
#mine-modal .product-stats>div{display:flex;align-items:center;justify-content:space-between;gap:7px;min-width:0;border-bottom:1px solid #52686b44;line-height:27px}
#mine-modal .product-stats dt{color:#a4bcc0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:56%}
#mine-modal .product-stats dd{color:#edf1dd;margin:0;font-weight:600;text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;max-width:60%}
#mine-modal .product-actions{display:grid;grid-template-rows:52px 32px;gap:8px;min-width:0}
#mine-modal .product-buy-options{display:flex;gap:6px;min-width:0}
#mine-modal .product-buy-options button{display:flex;flex:1;align-items:center;justify-content:center;min-width:0;min-height:52px;height:52px;padding:7px;margin:0;font-size:12px;line-height:16px;text-align:center;color:#19221d;background:#cfad66;border:1px solid #d6bb7a;overflow-wrap:anywhere;border-radius:7px}
#mine-modal .product-buy-options button:hover:not(:disabled){background:#e2c584}
#mine-modal .product-buy-options button:disabled{background:#334a4c;border-color:#536b68;color:#b0c0b8;opacity:.8}
#mine-modal .product-more{height:32px;min-width:0;display:flex;align-items:center;justify-content:center}
#mine-modal .product-more button{height:32px;min-height:32px;width:100%;padding:4px;margin:0;border:0;background:none;color:#cad8b2;font-size:12px;text-align:center;justify-content:center;line-height:18px}
#mine-modal .product-more>span{font-size:11px;color:#9cb0ae}
#mine-modal .market-footer{display:flex;gap:12px;flex-wrap:wrap;border-top:1px solid #4d666755;padding-top:18px;margin-top:20px}
#mine-modal .market-footer button{min-height:46px;font-size:13px;background:#263e40;color:#d2ddbe;border-color:#566f69}
#mine-modal .market-product button:focus-visible{outline:2px solid #efd99c;outline-offset:2px}
@media(max-width:600px){#mine-modal>section[data-view=upgrade] #modal-content,#mine-modal>section[data-view=tools] #modal-content{padding:14px}#mine-modal .market-grid{gap:14px}#mine-modal>section[data-view=upgrade] .market-categories{top:-14px}#mine-modal>section[data-view=upgrade] .market-categories button{font-size:12px}}
