.nmg-wb { display: grid; grid-template-columns: 280px 1fr 1fr; gap: 16px; background: #131823; border: 1px solid #283248; border-radius: 14px; padding: 16px; }
.nmg-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.nmg-drop { border: 2px dashed #374565; border-radius: 10px; padding: 14px; text-align: center; cursor: pointer; background: #0d111a; transition: border-color .15s; }
.nmg-drop:hover, .nmg-drop.drag { border-color: #22d3ee; }
.nmg-drop input { display: none; }
.nmg-drop strong { display: block; color: #fff; font-size: 14px; margin-bottom: 4px; }
.nmg-drop span { font-size: 12px; color: #9aa7c0; }
.nmg-samples { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.nmg-sbtn { background: #1b2232; border: 1px solid #283248; color: #cbd5e1; border-radius: 7px; padding: 6px 8px; font-size: 12px; cursor: pointer; font-weight: 600; }
.nmg-sbtn:hover, .nmg-sbtn.active { border-color: #6366f1; color: #fff; background: #232c44; }
.nmg-ctrl { background: #0d111a; border: 1px solid #222b3e; border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.nmg-row { display: flex; flex-direction: column; gap: 4px; }
.nmg-row label { display: flex; justify-content: space-between; font-size: 12px; color: #9aa7c0; font-weight: 600; }
.nmg-row label em { font-style: normal; color: #22d3ee; font-family: ui-monospace, monospace; }
.nmg-row input[type=range] { width: 100%; accent-color: #6366f1; }
.nmg-seg { display: flex; gap: 6px; flex-wrap: wrap; }
.nmg-seg button { flex: 1; background: #1b2232; border: 1px solid #283248; color: #cbd5e1; border-radius: 7px; padding: 6px 8px; font-size: 12px; cursor: pointer; font-weight: 600; }
.nmg-seg button.active { background: #6366f1; border-color: #6366f1; color: #fff; }
.nmg-checks { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: #cbd5e1; }
.nmg-checks label { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.nmg-stage { background: #0a0d14; border: 1px solid #222b3e; border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.nmg-stage-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.nmg-stage-title { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: #9aa7c0; font-weight: 700; }
.nmg-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.nmg-tab { background: #1b2232; border: 1px solid #283248; color: #cbd5e1; border-radius: 6px; padding: 4px 9px; font-size: 12px; cursor: pointer; font-weight: 600; }
.nmg-tab.active { background: #22d3ee; border-color: #22d3ee; color: #081018; }
.nmg-canvas-box { position: relative; width: 100%; aspect-ratio: 1 / 1; background: #07090f; border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.nmg-canvas-box canvas { width: 100%; height: 100%; object-fit: contain; display: block; }
.nmg-3d-canvas { cursor: grab; touch-action: none; }
.nmg-3d-canvas:active { cursor: grabbing; }
.nmg-dl-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.nmg-dl { flex: 1; min-width: 110px; background: #6366f1; color: #fff; border: 0; border-radius: 8px; padding: 9px 12px; font-weight: 700; font-size: 13px; cursor: pointer; }
.nmg-dl:hover { background: #4f46e5; }
.nmg-dl.sec { background: #1b2232; border: 1px solid #334155; color: #e2e8f0; }
.nmg-dl.sec:hover { border-color: #22d3ee; }
.nmg-meta { font-size: 12px; color: #9aa7c0; font-family: ui-monospace, monospace; }
@media (max-width: 960px) { .nmg-wb { grid-template-columns: 1fr; } }
