
/* ── Grid helpers ────────────────────────────────────────────────────── */
.fg-grid { grid-template-columns: 1fr 1fr; }
.fg-full { grid-column: 1 / -1; }
@media (max-width: 560px) { .fg-grid { grid-template-columns: 1fr; } }

/* ── Text inputs (NO pg-sel — no dropdown arrow) ─────────────────────── */
.fg-input {
    width: 100%;
    appearance: none;
    background-color: var(--pg-white,#fff);
    border: 1px solid var(--pg-border,#ececec);
    border-radius: 8px;
    padding: 9px 12px;
    font-family: inherit;
    font-size: 13.5px;
    color: var(--pg-text,#111111);
    transition: border-color .18s ease, box-shadow .18s ease;
}
.fg-input:focus {
    outline: none;
    border-color: #3680ED;
    box-shadow: 0 0 0 3px rgba(54,128,237,.12);
}
.fg-input::placeholder { color: var(--pg-muted,#888888); }

/* ── Textarea (NO pg-sel — no dropdown arrow) ────────────────────────── */
.fg-textarea {
    width: 100%;
    appearance: none;
    background-color: var(--pg-white,#fff);
    border: 1px solid var(--pg-border,#ececec);
    border-radius: 8px;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 13.5px;
    color: var(--pg-text,#111111);
    line-height: 1.6;
    resize: vertical;
    min-height: 72px;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.fg-textarea:focus {
    outline: none;
    border-color: #3680ED;
    box-shadow: 0 0 0 3px rgba(54,128,237,.12);
}
.fg-textarea::placeholder { color: var(--pg-muted,#888888); }

/* ── Toggle switches ─────────────────────────────────────────────────── */
.fg-toggle-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--pg-bg,#fafafa);
    border: 1px solid var(--pg-border,#ececec);
    border-radius: 10px;
    padding: 10px 14px;
}
.fg-toggle-group > label:first-child {
    font-size: 13px;
    font-weight: 600;
    color: var(--pg-secondary,#666666);
    margin: 0;
}
.fg-switch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.fg-switch input { opacity: 0; width: 0; height: 0; }
.fg-slider {
    position: absolute; inset: 0;
    background: var(--pg-border,#ececec);
    border-radius: 24px;
    cursor: pointer;
    transition: background .2s ease;
}
.fg-slider::before {
    content: '';
    position: absolute;
    left: 3px; top: 3px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--pg-white,#fff);
    box-shadow: 0 1px 4px rgba(15,23,42,.18);
    transition: transform .2s ease;
}
.fg-switch input:checked + .fg-slider           { background: #3680ED; }
.fg-switch input:checked + .fg-slider::before   { transform: translateX(18px); }
.fg-switch input:focus-visible + .fg-slider     { box-shadow: 0 0 0 3px rgba(54,128,237,.25); }

/* ── Range slider (creativity level) — JS-driven gradient ───────────── */
.fg-range-value {
    display: inline-block;
    margin-left: 8px;
    background: #EAF2FD;
    color: #3680ED;
    font-size: 12px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 20px;
    min-width: 28px;
    text-align: center;
}
.fg-range-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}
.fg-range-min,
.fg-range-max { font-size: 12px; color: var(--pg-muted,#888888); flex-shrink: 0; }

.fg-range {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 5px;
    border-radius: 4px;
    background: var(--pg-border,#ececec); /* base; JS overrides with live gradient */
    outline: none;
    cursor: pointer;
}
.fg-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #3680ED;
    border: 2px solid var(--pg-white,#fff);
    box-shadow: 0 1px 4px rgba(15,23,42,.18);
    cursor: pointer;
}
.fg-range::-moz-range-thumb {
    width: 16px; height: 16px;
    border-radius: 50%;
    background: #3680ED;
    border: 2px solid var(--pg-white,#fff);
    box-shadow: 0 1px 4px rgba(15,23,42,.18);
    cursor: pointer;
}
