/* Neumorphism Generator */

.nm-card { padding: 20px 24px 24px; }
.nm-layout { display: grid; grid-template-columns: 260px 1fr; gap: 20px; align-items: start; }
@media (max-width: 780px) { .nm-layout { grid-template-columns: 1fr; } }

.nm-controls { display: flex; flex-direction: column; gap: 4px; }
.nm-section-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); margin-bottom: 8px; }

/* Style buttons */
.nm-style-btns { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 4px; }
.nm-style-btn { padding: 5px 12px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--muted-2); font-size: .83rem; font-weight: 500; cursor: pointer; transition: all .13s; }
.nm-style-btn:hover { color: var(--text); border-color: var(--muted-2); }
.nm-style-btn--active { border-color: var(--accent); color: var(--accent); background: rgba(108,139,255,.1); }

/* Color */
.nm-color-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.nm-color-swatch { width: 28px; height: 28px; padding: 2px; border: 1px solid var(--line); border-radius: 6px; background: none; cursor: pointer; }
.nm-color-hex { font-size: .82rem; color: var(--muted-2); font-family: monospace; }

/* Sliders */
.nm-slider-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.nm-slider-label { display: flex; justify-content: space-between; font-size: .87rem; color: var(--muted); }
.nm-val { color: var(--accent); font-weight: 600; font-size: .83rem; font-variant-numeric: tabular-nums; }

/* Light grid */
.nm-light-grid { display: grid; grid-template-columns: repeat(3, 32px); gap: 4px; margin-bottom: 4px; }
.nm-light-btn { width: 32px; height: 32px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--muted-2); font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .13s; }
.nm-light-btn:hover { border-color: var(--accent); color: var(--accent); }
.nm-light-btn--active { border-color: var(--accent); color: var(--accent); background: rgba(108,139,255,.12); }

.nm-actions { display: flex; align-items: center; gap: 10px; }
.nm-copy-msg { font-size: .83rem; color: var(--accent-2); font-weight: 600; }

/* Preview */
.nm-right { display: flex; flex-direction: column; gap: 14px; }
.nm-preview-area {
  min-height: 280px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  transition: background .25s;
}
.nm-preview-card {
  display: flex; align-items: center; justify-content: center;
  transition: all .3s;
  font-size: .82rem; color: #999; user-select: none;
}

.nm-code {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; font: .78rem/1.65 "Fira Code","Cascadia Code",monospace;
  color: var(--muted); overflow-x: auto; white-space: pre; margin: 0;
}
