.pack-help-dialog,.pack-gallery-viewer{color:#e8eee9;background:#111713;border:1px solid #ffffff24;border-radius:18px;padding:24px;max-width:min(620px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto}
.pack-help-dialog::backdrop,.pack-gallery-viewer::backdrop{background:#000b;backdrop-filter:blur(6px)}
.pack-help-dialog h2{font-size:24px;font-weight:800;margin:0 36px 12px 0}.pack-help-dialog p{color:#9ba99e;font-size:14px;margin:12px 0}.pack-help-dialog ol{list-style:decimal;padding-left:24px;line-height:1.7}.pack-help-dialog li{margin:12px 0}.pack-help-dialog a{color:#a4edbb}.pack-help-dialog>button,.pack-gallery-viewer [data-close]{float:right;font-size:26px;min-width:44px;min-height:44px;border-radius:10px;background:#ffffff0b}
.pack-gallery-viewer{max-width:min(1100px,calc(100vw - 24px));width:100%;padding:12px}.pack-gallery-viewer img{width:100%;max-height:70dvh;object-fit:contain}.pack-gallery-viewer nav{display:flex;align-items:center;justify-content:center;gap:24px}.pack-gallery-viewer nav button{min-height:44px;min-width:54px;background:#ffffff0b;border-radius:10px}.pack-gallery-thumb{border:1px solid #ffffff24;border-radius:12px;overflow:hidden;aspect-ratio:16/9;background:#111713;color:#a4edbb}.pack-gallery-thumb img{width:100%;height:100%;object-fit:cover}.pack-gallery-thumb:hover{border-color:#a4edbb}.pack-gallery-thumb:focus-visible{outline:2px solid #a4edbb;outline-offset:3px}
.pack-install-inline{margin:14px 0;padding:14px;border:1px solid #a4edbb30;border-radius:12px;background:#a4edbb08;color:#bcc9bf;font-size:13px;line-height:1.6}.pack-install-inline button{color:#a4edbb;min-height:44px;font-weight:700}
.rpc-save-status{font-size:12px;color:#a4edbb;padding:8px 16px}.rpc-save-status[data-error="true"]{color:#fca5a5}
.pack-help-dialog,.pack-gallery-viewer,.action-error-dialog{box-sizing:border-box;margin:auto;inset:0;box-shadow:0 30px 100px #0009;overflow-wrap:anywhere}
.texture-preview-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin:12px 0}.texture-preview-heading h3{font-size:18px;font-weight:800;color:#edf3ee}.texture-preview-heading p,.texture-preview-status{font-size:12px;color:#93a399;margin:8px 0 14px}.texture-preview-filters{display:flex;gap:8px;flex-wrap:wrap}.texture-preview-filters select{max-width:240px;min-height:44px;padding:8px 12px;color:#dce8df;background:#172019;border:1px solid #ffffff20;border-radius:10px;font-size:12px}.texture-preview-filters [hidden]{display:none}.texture-preview-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:12px}.texture-preview-card{padding:12px;background:#151c17;border:1px solid #ffffff16;border-radius:12px;text-align:left;color:#dce8df}.texture-preview-card img{display:block;width:100%;height:100px;object-fit:contain;image-rendering:pixelated;background-color:#111713;background-image:linear-gradient(45deg,#ffffff06 25%,transparent 25%),linear-gradient(-45deg,#ffffff06 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ffffff06 75%),linear-gradient(-45deg,transparent 75%,#ffffff06 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0}.texture-preview-card strong{display:block;font-size:12px;margin:12px 0 4px;overflow-wrap:anywhere}.texture-preview-card span{font-size:11px;color:#93a399}.texture-preview-card:hover,.texture-preview-card:focus-visible{border-color:#a4edbb;outline:0}.texture-preview-retry{min-height:44px;color:#a4edbb;text-align:left}
#modalTexturePreview{margin-bottom:24px}
.pack-texture-viewer{box-sizing:border-box;margin:auto;padding:24px;width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;border:1px solid #a4edbb30;border-radius:18px;background:#111713;color:#edf3ee}.pack-texture-viewer::backdrop{background:#000b;backdrop-filter:blur(6px)}.pack-texture-viewer button{float:right;font-size:26px;min-width:44px;min-height:44px}.pack-texture-viewer h2{font-size:22px;font-weight:800;margin:0 40px 8px 0}.pack-texture-viewer p{font-size:12px;color:#93a399;margin-bottom:18px}.pack-texture-viewer img{display:block;object-fit:contain;image-rendering:pixelated;width:100%;height:min(420px,55dvh);background:#1c2720;border-radius:12px}
@media(max-width:600px){.texture-preview-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.texture-preview-card{padding:10px}.texture-preview-filters{width:100%}.texture-preview-filters select{max-width:100%;flex:1}.pack-texture-viewer{padding:18px}}
.action-error-dialog{background:#111713;color:#e8eee9;border:1px solid #ffffff24;border-radius:18px;padding:24px;max-width:min(460px,calc(100vw - 24px))}.action-error-dialog::backdrop{background:#000b}.action-error-dialog h2{font-size:22px;font-weight:700}.action-error-dialog p{margin:16px 0;color:#bcc9bf}.action-error-dialog button,.action-error-dialog a{display:inline-block;padding:12px 16px;min-height:44px;border-radius:10px;background:#a4edbb;color:#102719;margin:4px}
