.pack-intro{padding:22px;margin-bottom:16px;border:1px solid #4d795c;border-radius:16px;background:linear-gradient(135deg,#1e3828,#14251b);color:#c5e5d0;font-size:13px}.pack-intro h2{margin:0 0 6px;font-size:20px;color:#effbf3;line-height:1.5}.pack-intro p{margin:0}.pack-how-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:20px 0 0;padding:0;list-style:none}.pack-how-steps li{display:flex;gap:10px;min-width:0}.pack-how-steps li>span{display:grid;place-items:center;flex-shrink:0;width:30px;height:30px;border:1px solid #679d78;border-radius:50%;color:#c7f7d8;font-size:14px;font-weight:700}.pack-how-steps h3{margin:0 0 4px;color:#edfaf1;font-size:14px;line-height:1.5}.pack-how-steps p{color:#b2cdbb;font-size:12px;line-height:1.6}.pack-how-steps li:last-child>span{background:#a0f1c0;border-color:#a0f1c0;color:#143321}
.pack-filters{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:22px}.pack-filters .search-wrap{flex:1;min-width:220px;flex-wrap:wrap;font-size:11px;color:#a9c5b3}.pack-filters .search-wrap input{flex-basis:100%;font-size:14px}.pack-filters select{max-width:180px;min-height:46px;padding:10px;background:#1a2c20;border:1px solid #405c49;border-radius:10px;color:#cce7d5;font-size:12px}.pack-filters>p{font-size:12px;color:#9bbcA6}
.pack-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.pack-cover{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;background:#253c2c}.pack-title{display:flex;align-items:start;gap:10px}.pack-title h2{min-width:0;flex:1;margin:0;color:#e0f0e5;font-size:16px;line-height:1.5;overflow-wrap:anywhere}.pack-title .category-pill{margin-top:3px}.pack-author{margin:8px 0 14px;color:#a7c3b1;font-size:12px;overflow-wrap:anywhere}.pack-card .card-tags{margin-bottom:18px}.pack-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:auto}.pack-actions .button{flex:1;min-width:100px;padding:10px;font-size:12px}.pack-actions button:disabled{opacity:.55;cursor:wait}
.pack-pagination{display:flex;align-items:center;justify-content:center;gap:20px;margin-top:28px}.pack-pagination>span{font-size:12px;color:#9bbcA6}.pack-pagination button:disabled{opacity:.4;cursor:default}.pack-credits{max-width:900px}
.pack-notice{position:fixed;z-index:50;right:max(20px,env(safe-area-inset-right));bottom:max(20px,env(safe-area-inset-bottom));width:min(460px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:22px;border:2px solid #8bcfa1;border-radius:18px;background:#152c1e;box-shadow:0 18px 70px #000b;color:#e1f7e9}.pack-notice-heading{display:flex;align-items:center;gap:12px;padding-right:28px}.pack-notice h2{margin:0;font-size:18px;line-height:1.4;color:#edfff3}.pack-notice p{margin:10px 0 0;font-size:14px;line-height:1.7;overflow-wrap:anywhere}.pack-notice [data-pack-name]{margin-top:4px;font-size:12px;color:#a9c9b4}.pack-notice-icon{display:grid;place-items:center;flex-shrink:0;width:42px;height:42px;border-radius:50%;background:#284f36;color:#b9f6ce;font-size:23px;font-weight:700}.pack-progress{display:flex;align-items:center;gap:12px;margin-top:16px;font-size:13px;font-variant-numeric:tabular-nums}.pack-notice progress{min-width:0;flex:1;width:100%;height:10px;accent-color:#a2e8ba}.pack-progress>span{min-width:38px;text-align:right}.pack-notice>button{position:absolute;top:8px;right:8px;min-width:44px;min-height:44px;background:transparent;color:#d5f4df;font-size:25px;border-radius:8px}.pack-notice h3{margin:18px 0 0;font-size:14px;color:#baf2cd}.pack-notice-actions{display:flex;gap:10px;margin-top:16px}.pack-notice-actions .button{width:100%;min-height:46px;font-size:14px}.pack-notice[data-kind="error"]{border-color:#e5a19e;background:#321e20}.pack-notice[data-kind="error"] .pack-notice-icon{background:#613a3b;color:#ffc7c2}
@media(max-width:1100px){.pack-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}}
@media(max-width:580px){.main-nav{grid-template-columns:repeat(6,minmax(0,1fr))}.pack-grid{grid-template-columns:1fr;gap:18px}.pack-card .card-body{padding:18px}.pack-filters .search-wrap{flex-basis:100%;min-width:0}.pack-filters select{max-width:210px}.pack-filters>p{margin-left:auto}.pack-pagination{gap:12px}.pack-pagination .button{min-height:44px}.pack-intro{padding:16px}.pack-notice{bottom:12px;padding-left:14px}}

.pack-detail-link{display:flex;width:fit-content;margin-top:16px}

.pack-variant-label{display:grid;gap:6px;margin-bottom:14px;color:#a7c3b1;font-size:11px}.pack-variant-label select{width:100%;min-width:0;min-height:44px;padding:8px;border:1px solid #405c49;border-radius:8px;background:#15271c;color:#d2e8da;font-size:12px}

.pack-compat{margin:0 0 14px;color:#dec99d;font-size:12px;line-height:1.6}

.pack-description{margin:0 0 14px;color:#c0d8c8;font-size:13px;line-height:1.8;overflow-wrap:anywhere}.pack-original{margin:0 0 16px;color:#a7c3b1;font-size:12px}.pack-original summary{width:fit-content;min-height:36px;padding:7px 0;cursor:pointer}.pack-original summary:hover{color:#dcf5e4}.pack-original summary:focus-visible{outline:2px solid #a2e8ba;outline-offset:3px;border-radius:3px}.pack-original p{margin:4px 0 0;padding:10px 12px;border-left:2px solid #52795f;background:#17291e;line-height:1.8;overflow-wrap:anywhere}

.pack-storage{display:flex;align-items:flex-start;gap:12px;padding:18px;margin-bottom:24px;border:1px solid #385b44;border-radius:14px;background:#142219}.pack-storage-icon{display:grid;place-items:center;flex-shrink:0;width:28px;height:28px;border-radius:8px;background:#284b35;color:#bdf4d0}.pack-storage>div{flex:1;min-width:0}.pack-storage strong{font-size:14px;color:#dbf5e5}.pack-storage p{margin:4px 0 0;color:#a9c8b4;font-size:12px;line-height:1.7}.pack-storage summary{width:fit-content;min-height:36px;padding:6px 0;color:#bdf4d0;font-size:12px;cursor:pointer}.pack-saved-count{flex-shrink:0;padding:4px 9px;border-radius:7px;background:#244331;color:#cdf5db;font-size:12px;white-space:nowrap}.pack-art{position:relative}.pack-status{position:absolute;top:12px;left:12px;max-width:calc(100% - 24px);padding:5px 10px;border:1px solid #6f987e;border-radius:8px;background:#102219eb;backdrop-filter:blur(8px);color:#e0f6e9;font-size:12px;font-weight:650;line-height:1.5}.pack-status-saved{background:#b6edc9;color:#143823;border-color:#c4f9d7}.pack-status-saved:before{content:"✓ ";font-weight:800}.pack-status-newer{background:#30291deb;color:#f3ddb1;border-color:#b29a70}.pack-status-working{background:#d0ecb8;color:#21351b}.pack-card.is-saved{border-color:#669e79}.pack-save-hint{margin:0 0 12px;color:#a8c8b3;font-size:12px;line-height:1.6}.pack-card.is-saved .pack-save-hint{color:#bdf4d0}.pack-actions .button{min-height:46px;font-size:13px;line-height:1.5}.pack-enable-steps{margin:12px 0 0;padding-left:22px;font-size:13px;line-height:1.7;color:#d9efdf}.pack-enable-steps li+li{margin-top:8px}.pack-enable-guide{margin:18px;padding:18px;border:1px solid #618f6e;border-radius:12px;background:#1a3525}.pack-enable-guide h2{margin:0;font-size:17px}.pack-enable-guide p{margin:8px 0 0;color:#bcd8c6;font-size:12px;overflow-wrap:anywhere}.player-pack-tip{display:flex;align-items:center;gap:14px;flex-shrink:0;padding:12px max(16px,env(safe-area-inset-right)) 12px max(16px,env(safe-area-inset-left));border-bottom:1px solid #5c8b68;background:#24452e;color:#e1f9e8}.player-pack-tip>div{flex:1;min-width:0}.player-pack-tip strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.player-pack-tip p{margin:2px 0 0;font-size:12px;line-height:1.5;color:#c2e4cd}.player-pack-tip button{flex-shrink:0;min-height:44px;padding:8px 12px;border:1px solid #8ebd99;border-radius:9px;background:#355d40;color:#e8fff0;font-size:12px}.player-pack-tip [data-pack-hide]{min-width:44px;padding:5px;background:transparent;border-color:transparent;font-size:24px}
@media(max-width:740px){.pack-how-steps{gap:12px}.pack-how-steps li{display:block}.pack-how-steps h3{margin-top:8px}.pack-storage{flex-wrap:wrap}.pack-saved-count{margin-left:40px}.player-pack-tip{gap:6px;padding-top:8px;padding-bottom:8px}.player-pack-tip button{padding:8px}.player-pack-tip [data-pack-hide]{min-width:44px}.player-pack-tip strong{font-size:12px}}
@media(max-width:580px){.pack-intro{padding:18px 16px}.pack-intro h2{font-size:18px}.pack-how-steps{gap:10px;margin-top:16px}.pack-how-steps h3{font-size:13px}.pack-storage{padding:14px}.pack-notice{right:12px;bottom:max(12px,env(safe-area-inset-bottom));width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:18px}.pack-notice h2{font-size:17px}.pack-notice p{font-size:13px}.pack-notice-actions .button{min-height:46px}.pack-notice-icon{width:36px;height:36px;font-size:21px}}

.pack-restore{position:fixed;z-index:50;right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));max-width:calc(100vw - 32px);min-height:46px;padding:12px 18px;border:1px solid #8bcfa1;border-radius:14px;background:#21452e;box-shadow:0 8px 30px #0008;color:#e0f9e8;font-size:13px;line-height:1.6;text-align:left}.home-resourcepacks{min-height:44px}

.resourcepack-count{display:inline-flex;align-items:center;justify-content:center;min-width:30px;padding:1px 7px;border-radius:6px;background:#335e43;color:#d3f9df;font-size:12px;font-weight:700;line-height:1.6;font-variant-numeric:tabular-nums}.nav-item .nav-pack-count{display:inline-flex;font-size:12px}@media(max-width:1000px){.nav-item .nav-pack-count{margin:0;padding:1px 5px;min-width:26px;font-size:10px;line-height:1.3}}
