/* ── The New canvas window (src/new-canvas.js) — in the Tutorials window's frame (templates.css) ── */
.nc-panel { width: min(640px, 100%); gap: 18px; }
.nc-section { display: flex; flex-direction: column; gap: 10px; }
.nc-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #8a8a8a; }

/* the sizes: each a box in its shape, its size and what it's for */
.nc-sizes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.nc-size {
  display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 6px 9px; cursor: pointer;
  background: #222; border: 1px solid #333; border-radius: 8px; color: #e0e0e0; font: inherit;
}
.nc-size:hover, .nc-size:focus-visible { border-color: #4a4a4a; background: #262626; outline: none; }
.nc-size.on { border-color: #4a7fcb; background: #222a37; box-shadow: 0 0 0 1px #4a7fcb; }
.nc-shape { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; margin-bottom: 2px; }
.nc-shape i { display: block; border: 1.5px solid #8a8a8a; border-radius: 2px; background: repeating-conic-gradient(#3a3a3a 0 25%, #2c2c2c 0 50%) 0 0 / 6px 6px; }
.nc-size.on .nc-shape i { border-color: #8fb4f0; }
.nc-size b { font-size: 0.82rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.nc-size span { font-size: 0.7rem; color: #8a8a8a; }

.nc-custom { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 0.82rem; color: #bbb; }
.nc-custom-label { margin-right: 4px; }
.nc-custom .num-field input { width: 72px; }
.nc-x, .nc-px { color: #8a8a8a; }
.nc-max { color: #666; }

/* the colors: two choices side by side, each with a picture */
.nc-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.nc-mode {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px; text-align: left; cursor: pointer;
  background: #222; border: 1px solid #333; border-radius: 8px; color: #e0e0e0; font: inherit;
}
.nc-mode:hover, .nc-mode:focus-visible { border-color: #4a4a4a; background: #262626; outline: none; }
.nc-mode.on { border-color: #4a7fcb; background: #222a37; box-shadow: 0 0 0 1px #4a7fcb; }
.nc-mode-pic { flex-shrink: 0; width: 34px; height: 34px; border-radius: 8px; border: 1px solid #ffffff22; }
.nc-open-pic { background: conic-gradient(#ff4d4d, #ffd84d, #6bff6b, #4dd8ff, #6b6bff, #ff4dd8, #ff4d4d); }
.nc-mode-text { display: flex; flex-direction: column; gap: 3px; }
.nc-mode-text b { font-size: 0.86rem; font-weight: 600; }
.nc-mode-text span { font-size: 0.74rem; line-height: 1.45; color: #9a9a9a; }

/* Palette only: which palette, its colors */
.nc-pal { display: flex; flex-direction: column; gap: 8px; }
.nc-pal[hidden] { display: none; }
.nc-pal .pal-select { align-self: flex-start; min-width: 220px; }
.nc-swatches { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; }
.nc-swatches i { width: 14px; height: 14px; border-radius: 2px; box-shadow: inset 0 0 0 1px #0004; }
.nc-swatches span { margin-left: 6px; font-size: 0.72rem; color: #8a8a8a; }

.nc-actions { display: flex; align-items: center; gap: 8px; padding-top: 4px; border-top: 1px solid #2a2a2a; padding-top: 14px; }
.nc-summary { margin-right: auto; font-size: 0.78rem; color: #9a9a9a; font-variant-numeric: tabular-nums; }
.nc-actions .btn { height: 32px; padding: 0 16px; justify-content: center; }

/* the Palette window: a drawing kept to this palette */
.pal-lock { display: flex; align-items: center; gap: 6px; margin: 6px 0 2px; font-size: 0.72rem; color: #9fb7dc; }
.pal-lock[hidden] { display: none; }
.pal-lock b { font-weight: 600; color: #cfe0fa; }

@media (max-width: 560px) {
  .nc-sizes { grid-template-columns: repeat(2, 1fr); }
  .nc-modes { grid-template-columns: 1fr; }
}
