/* Created by: Claude Opus 5 | Date: 2026-11-16 — Creatives ▸ Creative Generator subtab. */
.nav-item.nav-sub { padding-left: 34px; font-size: 13px; opacity: .92; }
.nav-item.nav-sub svg { width: 15px; height: 15px; }

.cg-quota { font-size: 13px; color: var(--muted, #6b7280); }
.cg-quota.cg-spent { color: #b91c1c; font-weight: 600; }

.cg-compose { border: 1px solid var(--border, #e5e7eb); border-radius: 14px; padding: 14px; margin: 12px 0 18px;
  background: var(--card, #fff); display: flex; flex-direction: column; gap: 10px; }
.cg-compose.cg-dropping { border-color: #2563eb; background: rgba(37, 99, 235, .05); }
#cg-prompt { width: 100%; border: 1px solid var(--border, #e5e7eb); border-radius: 10px; padding: 11px 12px;
  font: inherit; font-size: 16px; line-height: 1.45; resize: vertical; min-height: 96px; background: transparent; color: inherit; }

.cg-refs-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cg-add { width: 44px; height: 44px; min-width: 44px; border-radius: 10px; border: 1px dashed var(--border, #cbd5e1);
  background: transparent; color: inherit; font-size: 22px; line-height: 1; cursor: pointer; }
.cg-add:hover { border-color: #2563eb; color: #2563eb; }
.cg-refs { display: flex; gap: 8px; flex-wrap: wrap; }
.cg-ref { position: relative; margin: 0; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; }
.cg-ref img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cg-ref-x { position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; border: 0; border-radius: 50%;
  background: rgba(17, 24, 39, .72); color: #fff; font-size: 14px; line-height: 1; cursor: pointer; }
.cg-ref-note { font-size: 12px; color: var(--muted, #6b7280); }

.cg-controls { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cg-controls select { min-height: 44px; font-size: 16px; border-radius: 10px; border: 1px solid var(--border, #e5e7eb);
  padding: 0 10px; background: transparent; color: inherit; }
.cg-controls .btn { min-height: 44px; margin-left: auto; }
.cg-seats, .cg-message { font-size: 13px; color: var(--muted, #6b7280); margin: 0; }
.cg-message.cg-ok { color: #047857; }
.cg-message.cg-warn { color: #b45309; }

.cg-h3 { font-size: 15px; margin: 18px 0 8px; }
.cg-jobs { display: flex; flex-direction: column; gap: 10px; }
.cg-job { border: 1px solid var(--border, #e5e7eb); border-radius: 12px; padding: 12px; background: var(--card, #fff); }
.cg-job header { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--muted, #6b7280); }
.cg-prompt { margin: 8px 0 0; font-size: 14px; line-height: 1.5; white-space: pre-wrap; }
.cg-errors { margin: 8px 0 0; padding-left: 18px; font-size: 13px; color: #b45309; }
.cg-pill { border-radius: 999px; padding: 3px 10px; font-weight: 600; font-size: 12px; }
.cg-working { background: #eff6ff; color: #1d4ed8; }
.cg-done { background: #ecfdf5; color: #047857; }
.cg-failed { background: #fef2f2; color: #b91c1c; }
.cg-learned { background: #f5f3ff; color: #6d28d9; border-radius: 999px; padding: 3px 10px; font-weight: 600; }
.cg-empty { font-size: 14px; color: var(--muted, #6b7280); }
.cg-job .btn { margin-top: 10px; min-height: 44px; }

@media (max-width: 640px) {
  .cg-controls select, .cg-controls .btn { flex: 1 1 46%; margin-left: 0; }
}

/* Claude 2026-11-16: who is generating — typed once, remembered on the device */
.cg-maker{width:100%;box-sizing:border-box;min-height:44px;font-size:16px;padding:10px 12px;margin-bottom:10px;border:1px solid #d1d5db;border-radius:10px;background:#fff}
