.custom-weapon-entry{display:grid;gap:10px;margin:20px;padding:18px;border:1px solid var(--border,#6b7e89);border-radius:8px;background:var(--panel,var(--surface,#fff))}.custom-weapon-entry p,.custom-weapon-entry small{margin:0;font-size:12px;line-height:1.7}.custom-weapon-entry .tiny-tag{justify-self:start}.custom-weapon-modal{width:min(1080px,calc(100vw - 32px));max-width:1080px}.custom-weapon-modal .modal-inner{padding:28px}.weapon-subtitle{font-size:13px;line-height:1.8}.weapon-editor-layout{display:grid;grid-template-columns:minmax(280px,1fr) minmax(290px,1fr);gap:24px;margin-top:20px;align-items:start}.weapon-preview-column{position:sticky;top:0}.weapon-preview-column>canvas{display:block;width:100%;height:auto;background:#101a2b;border:1px solid #394b63;border-radius:8px}.weapon-inline{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.weapon-progress-label{flex:1;font-size:12px}.weapon-progress-label input{width:100%}.weapon-hint,.weapon-editor-controls small{font-size:12px;line-height:1.7;opacity:.85}.weapon-grip-editor{display:flex;align-items:center;gap:12px;margin-top:14px}.weapon-grip-editor canvas{width:144px;height:144px;flex-shrink:0;background-color:#162236;background-image:linear-gradient(45deg,#243249 25%,transparent 25%),linear-gradient(-45deg,#243249 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#243249 75%),linear-gradient(-45deg,transparent 75%,#243249 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0;cursor:crosshair;image-rendering:pixelated}.weapon-grip-editor .chip{margin-bottom:8px}.weapon-grip-editor [aria-pressed=true]{outline:2px solid #60cfa6}.weapon-editor-controls{min-width:0}.weapon-editor-controls fieldset,.weapon-editor-controls details{border:1px solid var(--border,#83909c);border-radius:6px;padding:14px;margin:0 0 16px;min-width:0}.weapon-editor-controls legend,.weapon-editor-controls summary{font-weight:700;font-size:14px}.weapon-editor-controls summary{cursor:pointer;margin-bottom:10px}.weapon-editor-controls label{display:grid;gap:6px;font-size:12px;line-height:1.5;margin:8px 0}.weapon-editor-controls input:not([type=file]),.weapon-editor-controls select,.weapon-editor-controls textarea{width:100%;min-width:0;box-sizing:border-box;border:1px solid var(--border,#8a96a4);border-radius:4px;padding:7px;color:inherit;background:var(--theme-control,var(--panel,#141b17));font:inherit}.weapon-editor-controls input[type=file]{font-size:12px;width:100%}.weapon-editor-controls input[type=color]{height:36px;padding:2px}.weapon-editor-controls textarea{height:64px;resize:vertical}.weapon-input-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.weapon-keyframes{margin-top:12px}.weapon-keyframe,.weapon-keyframe-head{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;font-size:12px;margin:6px 0}.weapon-sound audio{width:100%;height:34px;margin:10px 0}.sound-status,.sound-feedback{font-size:12px;line-height:1.6;overflow-wrap:anywhere}.weapon-editor-actions{display:flex;justify-content:flex-end;gap:12px;padding-top:18px;border-top:1px solid var(--border,#8795a0)}#weapon-editor-feedback{font-size:13px;line-height:1.8;color:inherit;min-height:24px}.mod-build-panel{padding:22px;margin:20px 0;border:1px solid var(--border,#82909f);border-radius:8px;background:var(--panel,var(--surface,#fff))}.mod-build-panel p{font-size:14px;line-height:1.8}.mod-build-panel pre{white-space:pre-wrap;font-size:12px;max-height:200px;overflow:auto}.asset-preview{max-width:256px;max-height:320px;image-rendering:pixelated;object-fit:contain;background:#253047}.binary-preview{padding:24px}.binary-preview p{font-size:13px}.weapon-editor-controls button{font-size:12px}@media(max-width:740px){.custom-weapon-modal .modal-inner{padding:24px 16px}.weapon-editor-layout{grid-template-columns:1fr}.weapon-preview-column{position:static}.weapon-preview-column>canvas{max-height:280px;object-fit:contain}.weapon-editor-actions{position:sticky;bottom:-24px;background:var(--theme-surface,var(--panel,#141b17));padding-bottom:12px}.weapon-grip-editor canvas{width:112px;height:112px}}

.custom-weapon-modal{max-height:calc(100dvh - 32px);overflow:auto}.custom-weapon-entry{margin-top:0}.mod-build-panel a[hidden]{display:none}.weapon-editor-controls .weapon-sound{margin-top:14px}
.custom-weapon-modal h2{font-size:25px;margin:8px 0}.custom-weapon-modal .weapon-subtitle{margin:8px 0}.weapon-editor-layout{height:clamp(280px,calc(100dvh - 260px),600px)}.weapon-editor-controls{height:100%;overflow:auto;padding-right:9px;scrollbar-width:thin}.weapon-preview-column>canvas{height:clamp(170px,32vh,300px);object-fit:contain}.weapon-grip-editor canvas{width:96px;height:96px}.weapon-preview-column .weapon-hint{margin:8px 0}.weapon-editor-actions{margin-top:12px}.weapon-sound audio[hidden]{display:none}.weapon-editor-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 6px}.weapon-editor-tabs button{font-size:12px}
@media(max-width:740px){.weapon-editor-layout{height:auto}.weapon-editor-controls{height:auto;overflow:visible;padding-right:0}.weapon-preview-column>canvas{height:240px}.weapon-editor-actions{bottom:-24px}}

.custom-weapon-thumbnail{width:96px;height:96px;object-fit:contain;image-rendering:pixelated}.library-art .custom-weapon-thumbnail{width:64px;height:64px}
.plan-visual:has(.custom-weapon-thumbnail):after{content:'原创贴图 · 已加入导出工程'}
@media(max-width:740px){.weapon-editor-actions{bottom:0;padding:12px 0;margin-bottom:-8px}}

@media(min-width:741px){.custom-weapon-modal .modal-inner{padding:20px 24px}.weapon-editor-layout{height:clamp(260px,calc(100dvh - 300px),600px)}.weapon-preview-column>canvas{height:clamp(150px,26vh,240px)}.weapon-grip-editor canvas{width:80px;height:80px}.weapon-grip-editor .chip{font-size:11px;padding:6px}.weapon-preview-column .weapon-hint{font-size:11px;margin:6px 0}#weapon-editor-feedback{min-height:0;margin:5px 0}.weapon-editor-actions{padding-top:12px;margin-top:8px}}

@media(min-width:741px){.weapon-preview-column{max-height:100%;overflow:auto;padding:0 2px 8px;scrollbar-width:thin}}
