/* 웹 생성기 (2026-10-09). 색·버튼은 style.css 것을 그대로 씀. 패드·폰에서 쓰는 페이지라 좁은 화면도 챙김 */
.g-wrap { max-width: 1280px; padding: 16px 16px 60px; }
.top-inner { flex-wrap: wrap; }
.g-title { font-weight: 700; }
.g-sub { font-weight: 400; color: var(--muted); font-size: 13px; margin-left: 6px; }
.g-anlas { margin-left: auto; font-size: 13px; color: var(--muted); white-space: nowrap; }
.hint { color: var(--muted); font-size: 13px; }
.g-note { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; font-size: 14px; }
.g-note p { margin: 0 0 4px; }
.g-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 14px; align-items: start; }
@media (max-width: 820px) { .g-cols { grid-template-columns: minmax(0, 1fr); } .g-make { order: -1; } }
.g-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: var(--shadow); min-width: 0; }
.g-tabs { display: flex; gap: 4px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.g-tab { background: none; border: 0; padding: 8px 12px; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; font-weight: 600; }
.g-tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--text); }
.g-pane label { display: block; font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.g-pane input, .g-pane textarea, .g-pane select, .g-add input, .g-add textarea {
  display: block; width: 100%; margin-top: 4px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg); color: var(--text); font-size: 14px; }
.g-pane textarea { resize: vertical; }
.g-row { display: flex !important; align-items: center; gap: 8px; }
.g-row select { flex: 1; margin-top: 0 !important; }
.g-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
.g-pw { display: flex; gap: 6px; align-items: center; }
.g-pw input { flex: 1; }
.g-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.danger-text { color: var(--danger); }
.g-now { font-size: 13px; padding: 7px 10px; border-radius: 8px; margin-bottom: 8px; background: var(--chip); }
.g-now.on { background: #e6f4ea; color: #1a5c2e; }
@media (prefers-color-scheme: dark) { .g-now.on { background: #1f3a27; color: #bfe6c9; } }
.g-queue { list-style: none; margin: 0; padding: 0; max-height: 46vh; overflow: auto; }
.g-queue li { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; cursor: pointer; border: 1px solid transparent; }
.g-queue li:hover { background: var(--chip); }
.g-queue li.sel { border-color: var(--text); }
.g-queue .st { font-size: 12px; padding: 1px 7px; border-radius: 999px; background: var(--chip); white-space: nowrap; }
.g-queue .st.done { background: #e6f4ea; color: #1a5c2e; }
.g-queue .st.fail { background: #fde8e6; color: var(--danger); }
.g-queue .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-queue .x { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 16px; padding: 0 4px; }
.g-add { margin-top: 10px; }
.g-add summary { cursor: pointer; font-size: 14px; }
.g-add input, .g-add textarea { margin-bottom: 6px; }
.g-list { list-style: none; margin: 8px 0; padding: 0; max-height: 200px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
.g-list li { padding: 6px 10px; cursor: pointer; }
.g-list li.sel { background: var(--chip); font-weight: 600; }
.g-list:empty::before { content: '저장한 캐릭터가 없어요'; display: block; padding: 8px 10px; color: var(--muted); font-size: 13px; }
.g-prompt { font-size: 12px; color: var(--muted); background: var(--bg); border-radius: 8px; padding: 8px 10px; max-height: 120px; overflow: auto; word-break: break-word; margin-bottom: 10px; }
.g-go { width: 100%; padding: 12px; font-size: 16px; }
.g-result { margin-top: 12px; }
.g-result img { width: 100%; border-radius: 10px; display: block; background: var(--chip); }
.g-h { font-size: 14px; margin: 18px 0 8px; }
.g-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.g-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; cursor: pointer; display: block; }
