/* [2026-10-14 설계 docs/superpowers/specs/2026-10-14-competitor-features-adoption-design.md §4-C] 「＋ 슬라이드 추가」 고르기 창 · 문제 템플릿(js/editor-new-slide.js)
   ★창 크기는 고정이다★ — 첫 걸음(넷)과 템플릿 걸음(여섯)이 같은 크기 · 색은 토큰만 · 칠한 면 없이 테두리로 고른다. */
.ns-overlay {
  position: fixed; inset: 0; z-index: 10040;
  background: rgba(15, 23, 42, .45);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.ns-box {
  width: min(560px, 100%); height: min(500px, calc(100vh - 32px));
  display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
}
.ns-head { display: flex; align-items: center; gap: 8px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.ns-head h2 { flex: 1; margin: 0; font-size: var(--text-lg); font-weight: 800; color: var(--text); word-break: keep-all; }
.ns-x, .ns-back {
  flex-shrink: 0; height: 32px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--text-muted);
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; cursor: pointer; font-size: var(--text-sm); font-weight: 700;
}
.ns-x { width: 32px; }
.ns-back { padding: 0 8px; }
.ns-x:hover, .ns-back:hover { background: var(--bg-subtle); color: var(--text); }
.ns-body { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 12px; }

.ns-ways { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ns-way {
  position: relative; display: flex; align-items: flex-start; gap: 12px; min-height: 104px; padding: 16px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; text-align: left;
}
.ns-way:hover { border-color: var(--border-strong); background: var(--surface-hover); }
/* [2026-11-22] 5번째 줄(Claude·ChatGPT로 만들기)은 짝이 없어 한 줄을 다 쓴다 */
.ns-way-wide { grid-column: 1 / -1; min-height: 0; align-items: center; }
.ns-way-ico { flex-shrink: 0; width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--bg-subtle); color: var(--text-muted); display: inline-flex; align-items: center; justify-content: center; }
.ns-way-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; word-break: keep-all; }
.ns-way-txt b { font-size: var(--text-base); color: var(--text); }
.ns-way-txt span { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.45; }
.ns-key {
  display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 4px;
  border: 1px solid var(--border); border-radius: var(--radius-xs); font-size: var(--text-xs); color: var(--text-muted); background: var(--surface);
}
.ns-way .ns-key { position: absolute; top: 8px; right: 8px; }
.ns-prev {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px;
  border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--text-muted); font-size: var(--text-sm); font-weight: 700; cursor: pointer;
}
.ns-prev:hover { background: var(--bg-subtle); color: var(--text); }

.ns-tpl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ns-tpl {
  display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); cursor: pointer; text-align: left;
}
.ns-tpl:hover { border-color: var(--border-strong); background: var(--surface-hover); }
.ns-thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--border); border-radius: var(--radius-xs); background: var(--surface); }
.ns-p { position: absolute; display: block; border-radius: var(--radius-xs); }
.ns-p-q { background: var(--border-strong); }
.ns-p-o { border: 1px solid var(--border-strong); }
.ns-p-s { border: 1px solid var(--border-strong); border-bottom-width: 2px; }
.ns-p-x { border: 1px solid var(--border-strong); border-radius: 50%; }
.ns-p-i { border: 1px dashed var(--text-muted); }
.ns-p-t { border: 1px dashed var(--border-strong); background: var(--bg-subtle); }
.ns-tpl-name { display: flex; align-items: center; gap: 6px; font-size: var(--text-sm); font-weight: 700; color: var(--text); word-break: keep-all; }

.ns-way:focus-visible, .ns-tpl:focus-visible, .ns-prev:focus-visible, .ns-x:focus-visible, .ns-back:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
@media (max-width: 480px) {
  .ns-ways { grid-template-columns: 1fr; }
  .ns-way { min-height: 0; }
  .ns-tpl-grid { grid-template-columns: 1fr 1fr; }
}
