/* ===== Free Create Page ===== */
.page-freecreate { animation: fadeIn 0.4s ease; }

.freecreate-layout {
    grid-template-columns: 420px 1fr;
}

.freecreate-prompt {
    min-height: 160px;
}

.freecreate-references-section {
    transition: opacity 0.16s ease;
}

.freecreate-references-section.is-hidden {
    display: none;
}

.freecreate-upload-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.freecreate-upload-slot .upload-area {
    --upload-preview-height: 168px;
    min-height: var(--upload-preview-height);
    margin-bottom: 10px;
}

.freecreate-upload-slot .upload-picker-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.freecreate-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.freecreate-summary span {
    min-height: 30px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--bg-card);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    font-size: 12px;
}

.freecreate-result-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.freecreate-result-grid .photoset-assistant-image {
    min-height: 260px;
}

.freecreate-result-meta {
    display: none;
}

.freecreate-result-title {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.freecreate-result-caption {
    margin-top: 6px;
    min-height: 54px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.freecreate-empty {
    grid-column: 1 / -1;
    min-height: 360px;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-card);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

@media (max-width: 1180px) {
    .freecreate-layout {
        grid-template-columns: 1fr;
    }

    .freecreate-layout .studio-panel {
        max-height: none;
    }
}

@media (max-width: 760px) {
    .freecreate-upload-grid,
    .freecreate-result-grid {
        grid-template-columns: 1fr;
    }
}
