/**
 * AIGP Prompt Library — Frontend Styles (Theme-Agnostic & Full Light/Dark Support)
 */

:root,
[data-theme="dark"],
html,
body {
    --aigp-primary: #6366f1;
    --aigp-primary-hover: #4f46e5;
    --aigp-primary-light: rgba(99, 102, 241, 0.16);
    --aigp-secondary: #0ea5e9;
    --aigp-accent: #8b5cf6;
    --aigp-trending: #ef4444;
    --aigp-video: #ec4899;
    --aigp-image: #3b82f6;
    --aigp-success: #10b981;
    --aigp-warning: #f59e0b;
    --aigp-danger: #ef4444;

    --aigp-bg: #090d16;
    --aigp-bg-secondary: #0f172a;
    --aigp-bg-card: #111827;
    --aigp-bg-card-hover: #172033;
    --aigp-surface: #111827;
    --aigp-surface-card: #111827;
    --aigp-surface-alt: #1e293b;
    --aigp-text: #f8fafc;
    --aigp-text-secondary: #cbd5e1;
    --aigp-text-muted: #94a3b8;
    --aigp-border: #1f2937;
    --aigp-border-light: rgba(148, 163, 184, 0.15);
    --aigp-border-focus: var(--aigp-primary);
    --aigp-input-bg: #1e293b;
    --aigp-input-border: #334155;
    --aigp-input-text: #f8fafc;
    --aigp-box-bg: #0f172a;
    --aigp-box-border: #1e293b;
    --aigp-terminal-bg: #0f172a;
    --aigp-terminal-text: #f8fafc;
    --aigp-badge-img: #0284c7;
    --aigp-badge-vid: #dc2626;
    --aigp-badge-trend: #f59e0b;
    --aigp-badge-feat: #8b5cf6;
    --aigp-radius: 12px;
    --aigp-radius-sm: 8px;
    --aigp-radius-md: 12px;
    --aigp-radius-lg: 16px;
    --aigp-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    --aigp-shadow-hover: 0 12px 32px rgba(99, 102, 241, 0.22);
}

.aigp-container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

/* Prompt Grid */
.aigp-prompt-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin-top: 24px;
    margin-bottom: 32px;
}

.aigp-prompt-grid.aigp-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.aigp-prompt-grid.aigp-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.aigp-prompt-grid.aigp-cols-1 {
    grid-template-columns: 1fr;
}

@media (max-width: 1024px) {
    .aigp-prompt-grid,
    .aigp-prompt-grid.aigp-cols-4 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .aigp-prompt-grid,
    .aigp-prompt-grid.aigp-cols-4,
    .aigp-prompt-grid.aigp-cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .aigp-prompt-grid,
    .aigp-prompt-grid.aigp-cols-4,
    .aigp-prompt-grid.aigp-cols-3,
    .aigp-prompt-grid.aigp-cols-2 {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

/* Card Styling */
.aigp-card {
    background: var(--aigp-bg-card);
    border: 1px solid var(--aigp-border);
    border-radius: var(--aigp-radius);
    overflow: hidden;
    box-shadow: var(--aigp-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
}

.aigp-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--aigp-shadow-hover);
    border-color: #cbd5e1;
}

.aigp-card-media-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: var(--aigp-surface-alt, #f1f5f9);
    overflow: hidden;
}

.aigp-card-media-link {
    display: block;
    width: 100%;
    height: 100%;
}

.aigp-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.aigp-card:hover .aigp-card-img {
    transform: scale(1.04);
}

.aigp-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    background: var(--aigp-box-bg, #f1f5f9);
    color: var(--aigp-text-muted, #64748b);
}

.aigp-card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    z-index: 2;
}

.aigp-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.aigp-badge-image { background: var(--aigp-badge-img); }
.aigp-badge-video { background: var(--aigp-badge-vid); }
.aigp-badge-trending { background: var(--aigp-badge-trend); color: #78350f; }
.aigp-badge-featured { background: var(--aigp-badge-feat); }

.aigp-card-tool-tag {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(4px);
    color: #f8fafc;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.aigp-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.aigp-card-category a {
    font-size: 12px;
    font-weight: 600;
    color: var(--aigp-primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.aigp-card-title {
    margin: 6px 0 8px 0;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 600;
}

.aigp-card-title a {
    color: var(--aigp-text);
    text-decoration: none;
}

.aigp-card-title a:hover {
    color: var(--aigp-primary);
}

.aigp-card-prompt-snippet {
    margin-bottom: 14px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--aigp-text-muted);
    flex-grow: 1;
}

.aigp-card-prompt-snippet p {
    margin: 0;
}

.aigp-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--aigp-border);
    font-size: 12px;
    color: var(--aigp-text-muted);
}

.aigp-card-metrics {
    display: flex;
    align-items: center;
    gap: 12px;
}

.aigp-metric-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Copy Buttons */
.aigp-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    color: var(--aigp-text);
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.aigp-copy-btn:hover {
    background: var(--aigp-primary);
    color: #ffffff;
    border-color: var(--aigp-primary);
}

.aigp-copy-btn.aigp-btn-primary {
    background: var(--aigp-primary);
    color: #ffffff;
    border-color: var(--aigp-primary);
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 8px;
}

.aigp-copy-btn.aigp-btn-primary:hover {
    background: var(--aigp-primary-hover);
}

.aigp-copy-btn.copied {
    background: #16a34a !important;
    color: #ffffff !important;
    border-color: #16a34a !important;
}

/* Filter Bar */
.aigp-filters-wrapper {
    margin: 24px 0;
}

.aigp-filters-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    background: var(--aigp-bg-card);
    border: 1px solid var(--aigp-border);
    border-radius: var(--aigp-radius);
    box-shadow: var(--aigp-shadow);
}

.aigp-filters-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.aigp-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: var(--aigp-text);
    background: #f1f5f9;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.aigp-filter-pill:hover,
.aigp-filter-pill.active {
    background: var(--aigp-primary);
    color: #ffffff;
}

.aigp-search-input-wrap {
    display: flex;
    align-items: center;
    border: 1px solid var(--aigp-border);
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

.aigp-search-input {
    border: none;
    padding: 8px 14px;
    font-size: 13px;
    outline: none;
    width: 200px;
}

.aigp-search-btn {
    border: none;
    background: transparent;
    padding: 8px 12px;
    cursor: pointer;
}

.aigp-tools-filter-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.aigp-filter-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--aigp-text-muted);
    white-space: nowrap;
}

.aigp-tools-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.aigp-tool-tag,
.aigp-cat-tag {
    display: inline-block;
    padding: 4px 10px;
    background: #f8fafc;
    border: 1px solid var(--aigp-border);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--aigp-text);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.aigp-tool-tag:hover,
.aigp-tool-tag.active {
    background: var(--aigp-primary, #6366f1);
    color: #ffffff;
    border-color: var(--aigp-primary, #6366f1);
}

/* Single Prompt Layout */
.aigp-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: var(--aigp-text-muted);
    margin: 20px 0;
}

.aigp-breadcrumbs a {
    color: var(--aigp-text-muted);
    text-decoration: none;
}

.aigp-breadcrumbs a:hover {
    color: var(--aigp-primary);
}

.aigp-breadcrumbs .aigp-current {
    color: var(--aigp-text);
    font-weight: 600;
}

.aigp-single-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    margin-top: 20px;
}

@media (max-width: 900px) {
    .aigp-single-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.aigp-media-viewport {
    background: var(--aigp-surface-alt, #f1f5f9);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--aigp-shadow-hover);
}

.aigp-single-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.aigp-single-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.aigp-single-title {
    font-size: 28px;
    line-height: 1.3;
    margin: 0 0 12px 0;
    color: var(--aigp-text);
}

.aigp-single-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--aigp-text-muted);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--aigp-border);
}

/* Prompt Box */
.aigp-prompt-box {
    background: var(--aigp-box-bg, var(--aigp-surface, #ffffff));
    color: var(--aigp-text, #0f172a);
    border-radius: var(--aigp-radius, 12px);
    overflow: hidden;
    box-shadow: var(--aigp-shadow);
    border: 1px solid var(--aigp-border, #e2e8f0);
}

.aigp-prompt-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: var(--aigp-surface-alt, #f1f5f9);
    border-bottom: 1px solid var(--aigp-border, #e2e8f0);
}

.aigp-prompt-box-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--aigp-text-muted, #64748b);
}

.aigp-prompt-text-content {
    padding: 20px;
    font-size: 15px;
    line-height: 1.7;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    word-break: break-word;
    user-select: all;
}

.aigp-prompt-text-content p {
    margin: 0;
}

.aigp-prompt-box-negative {
    background: #1e1e24;
    border-color: #451a1a;
}

.aigp-prompt-box-negative .aigp-prompt-box-header {
    background: #2a1b1b;
    border-color: #502121;
}


/* Specs Table */
.aigp-specs-card {
    background: var(--aigp-bg-card);
    border: 1px solid var(--aigp-border);
    border-radius: 12px;
    padding: 20px;
}

.aigp-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 20px;
    margin: 0;
}

.aigp-spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    border-bottom: 1px solid var(--aigp-border-light, var(--aigp-border));
    padding-bottom: 6px;
}

.aigp-spec-item dt {
    color: var(--aigp-text-muted);
    font-weight: 500;
}

.aigp-spec-item dd {
    margin: 0;
    font-weight: 600;
    color: var(--aigp-text);
}

.aigp-spec-item dd code {
    background: var(--aigp-surface-alt, #f1f5f9);
    color: var(--aigp-text);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

/* Toast */
.aigp-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--aigp-surface, #ffffff);
    color: var(--aigp-text, #0f172a);
    border: 1px solid var(--aigp-border, #e2e8f0);
    padding: 12px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--aigp-shadow-hover);
    z-index: 999999;
    opacity: 0;
    transform: translateY(16px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.aigp-toast.active {
    opacity: 1;
    transform: translateY(0);
}

/* Chips shortcode */
.aigp-category-chips,
.aigp-tool-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0;
}

.aigp-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 9999px;
    background: #f1f5f9;
    border: 1px solid var(--aigp-border);
    font-size: 13px;
    font-weight: 600;
    color: var(--aigp-text);
    text-decoration: none;
    transition: all 0.2s ease;
}

.aigp-chip:hover {
    background: var(--aigp-primary);
    color: #ffffff;
}

.aigp-chip-count {
    background: rgba(0,0,0,0.08);
    padding: 2px 6px;
    border-radius: 9999px;
    font-size: 11px;
}

.aigp-chip:hover .aigp-chip-count {
    background: rgba(255,255,255,0.25);
}

/* ==========================================================================
   Multi-Scene Video Prompt Breakdown
   ========================================================================== */
.aigp-badge-scenes {
    background: #e0e7ff;
    color: #4338ca;
}

[data-theme="dark"] .aigp-badge-scenes,
body.dark-mode .aigp-badge-scenes {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.35);
}

.aigp-video-breakdown-wrap {
    margin-top: 24px;
    margin-bottom: 32px;
}

.aigp-breakdown-header {
    background: var(--aigp-surface, #ffffff);
    border: 1px solid var(--aigp-border, #e2e8f0);
    border-radius: var(--aigp-radius, 12px);
    padding: 22px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: var(--aigp-shadow, 0 4px 6px -1px rgba(0,0,0,0.06));
}

.aigp-breakdown-title-box {
    flex: 1;
    min-width: 260px;
}

.aigp-breakdown-heading {
    margin: 8px 0 6px 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--aigp-text, #0f172a);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.aigp-scene-count-badge {
    font-size: 13px;
    font-weight: 700;
    background: rgba(99, 102, 241, 0.12);
    color: #4f46e5;
    border: 1px solid rgba(99, 102, 241, 0.25);
    padding: 2px 10px;
    border-radius: 9999px;
    line-height: 1.4;
}

.aigp-breakdown-desc {
    margin: 0;
    font-size: 0.9rem;
    color: var(--aigp-text-muted, #64748b);
    line-height: 1.5;
}

.aigp-breakdown-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.aigp-scenes-stream {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.aigp-scene-card {
    background: var(--aigp-surface, #ffffff);
    border: 1px solid var(--aigp-border, #e2e8f0);
    border-radius: var(--aigp-radius, 12px);
    padding: 22px;
    box-shadow: var(--aigp-shadow, 0 4px 6px -1px rgba(0,0,0,0.06));
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.aigp-scene-card:hover {
    border-color: #6366f1;
    box-shadow: var(--aigp-shadow-hover, 0 10px 15px -3px rgba(0,0,0,0.1));
}

.aigp-scene-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--aigp-border, #e2e8f0);
    flex-wrap: wrap;
}

.aigp-scene-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.aigp-scene-idx {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #ffffff;
    font-weight: 800;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 6px;
    line-height: 1.3;
}

.aigp-scene-name {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--aigp-text, #0f172a);
}

.aigp-scene-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.aigp-scene-pill {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1.3;
}

.aigp-pill-dur {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.aigp-pill-tool {
    background: rgba(6, 182, 212, 0.12);
    color: #0891b2;
    border: 1px solid rgba(6, 182, 212, 0.25);
}

.aigp-scene-intro {
    font-size: 0.95rem;
    color: var(--aigp-text-muted, #64748b);
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.aigp-scene-ref-box {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    border: 1px dashed var(--aigp-border, #e2e8f0);
}

.aigp-scene-ref-img-holder {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--aigp-border, #e2e8f0);
}

.aigp-scene-ref-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.aigp-scene-ref-caption {
    font-size: 13px;
    font-weight: 600;
    color: var(--aigp-text-muted, #64748b);
}

.aigp-scene-prompts-area {
    display: flex;
    flex-direction: column;
}

.aigp-prompt-step {
    background: var(--aigp-surface-alt, #f8fafc);
    border: 1px solid var(--aigp-border, #e2e8f0);
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 10px;
}

.aigp-prompt-step.aigp-step-image {
    border-left: 3px solid #0284c7;
}

.aigp-prompt-step.aigp-step-video {
    border-left: 3px solid #dc2626;
}

.aigp-prompt-step.aigp-step-video-only {
    border-left: 3px solid #4f46e5;
}

.aigp-step-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.aigp-step-label {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--aigp-text, #0f172a);
}

.aigp-step-label small {
    color: var(--aigp-text-muted, #64748b);
    font-size: 0.8rem;
}

.aigp-step-badge {
    font-size: 10px;
    font-weight: 800;
    background: #0284c7;
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.aigp-step-video .aigp-step-badge {
    background: #dc2626;
}

.aigp-workflow-connector {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 2px 0 10px 14px;
    color: #6366f1;
    font-size: 12px;
    font-weight: 600;
}

.aigp-arrow-down {
    font-size: 16px;
    font-weight: 800;
}

.aigp-prompt-step pre.aigp-prompt-code {
    background: transparent;
    color: var(--aigp-text, #0f172a);
    font-family: Menlo, Consolas, Monaco, monospace;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
    padding: 0;
    border: none;
}

.aigp-scene-meta-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--aigp-border, #e2e8f0);
}

.aigp-scene-neg-box {
    font-size: 12px;
    color: #dc2626;
    background: rgba(220, 38, 38, 0.06);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid rgba(220, 38, 38, 0.15);
    word-break: break-word;
}

.aigp-scene-neg-box code {
    background: transparent;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
}

.aigp-neg-tag {
    font-weight: 700;
    margin-right: 6px;
}

.aigp-scene-camera-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.aigp-cam-pill {
    font-size: 11px;
    background: rgba(0, 0, 0, 0.04);
    color: var(--aigp-text-muted, #64748b);
    border: 1px solid var(--aigp-border, #e2e8f0);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

/* Single Video Workflow Two-Step Display */
.aigp-workflow-single-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.aigp-prompt-box-image-step {
    border-left: 4px solid #3b82f6 !important;
}

.aigp-prompt-box-video-step {
    border-left: 4px solid #8b5cf6 !important;
}

.aigp-scene-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.aigp-btn-outline {
    background: transparent;
    border: 1px solid var(--aigp-border, #cbd5e1);
    color: var(--aigp-text, #334155);
}

.aigp-btn-outline:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--aigp-primary, #6366f1);
    color: var(--aigp-primary, #6366f1);
}

/* ==========================================================================
   Unified Multi-Prompt & Optional Image Prompt Styles
   ========================================================================== */
.aigp-prompts-display-wrap {
    margin-bottom: 24px;
}

.aigp-image-prompt-box {
    border-left: 4px solid #3b82f6 !important;
    background: var(--aigp-surface, #ffffff);
    border-radius: var(--aigp-radius-lg, 12px);
    border: 1px solid var(--aigp-border, #e2e8f0);
    border-left-width: 4px !important;
    padding: 20px;
    margin-bottom: 24px;
}

.aigp-prompt-block-card {
    background: var(--aigp-surface, #ffffff);
    border: 1px solid var(--aigp-border, #e2e8f0);
    border-radius: var(--aigp-radius-lg, 12px);
    padding: 20px;
    margin-bottom: 0;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.aigp-prompt-num-badge {
    background: var(--aigp-primary, #6366f1);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.04em;
    display: inline-block;
}

.aigp-multiple-prompts-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.aigp-prompt-blocks-stream {
    display: flex;
    flex-direction: column;
    gap: 16px;
}


