@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Noto+Sans+SC:wght@400;500;700&display=swap');

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', 'Noto Sans SC', system-ui, sans-serif;
            background: #f5f7fb;
            color: #1e1e2f;
            min-height: 100vh;
            -webkit-font-smoothing: antialiased;
        }

        ::-webkit-scrollbar {
            width: 4px;
            height: 4px;
        }
        ::-webkit-scrollbar-track {
            background: transparent;
        }
        ::-webkit-scrollbar-thumb {
            background: rgba(99, 102, 241, .2);
            border-radius: 20px;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: rgba(99, 102, 241, .4);
        }

        .navbar-light {
            background: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(18px) saturate(1.6);
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        }
        .nav-ad {
            display: flex;
            align-items: center;
            gap: 8px;
            max-width: 560px;
            padding-left: 16px;
            border-left: 1px solid rgba(99, 102, 241, 0.18);
            color: #4f46e5;
            font-size: 0.73rem;
            font-weight: 700;
            line-height: 1.45;
            flex-wrap: wrap;
        }
        .nav-ad span,
        .nav-ad strong {
            display: inline-flex;
            align-items: center;
            padding: 3px 9px;
            border-radius: 999px;
            background: #eef2ff;
            white-space: nowrap;
        }
        .nav-ad strong {
            color: #be123c;
            background: #fff1f2;
            font-weight: 800;
        }
        .brand-logo,
        .hero-logo,
        .welcome-icon {
            overflow: hidden;
            background: #0f172a;
        }
        .brand-logo {
            width: 38px;
            height: 38px;
            border-radius: 13px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            box-shadow: 0 10px 24px -12px rgba(15, 23, 42, 0.65);
        }
        .logo-mark {
            display: block;
            width: 100%;
            height: 100%;
        }
        .hero-logo {
            width: 64px;
            height: 64px;
            border-radius: 18px;
            margin: 0 auto 18px;
            box-shadow: 0 18px 42px -20px rgba(15, 23, 42, 0.5);
        }
        .official-link,
        .group-link {
            height: 40px;
            padding: 0 14px;
            border-radius: 14px;
            border: 1px solid rgba(99, 102, 241, 0.22);
            background: #eef2ff;
            color: #4338ca;
            font-size: 0.82rem;
            font-weight: 700;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 7px;
            text-decoration: none;
            white-space: nowrap;
            flex-shrink: 0;
            transition: all 0.25s;
        }
        .official-link:hover,
        .group-link:hover {
            background: #6366f1;
            border-color: #6366f1;
            color: #ffffff;
            box-shadow: 0 8px 22px -10px rgba(99, 102, 241, 0.55);
            transform: translateY(-1px);
        }
        .group-link {
            border-color: rgba(14, 165, 233, 0.24);
            background: #ecfeff;
            color: #0e7490;
        }
        .group-link:hover {
            background: #0891b2;
            border-color: #0891b2;
            box-shadow: 0 8px 22px -10px rgba(8, 145, 178, 0.6);
        }

        .card-light {
            background: #ffffff;
            border: 1px solid rgba(0, 0, 0, 0.06);
            border-radius: 24px;
            transition: border-color 0.25s, box-shadow 0.3s;
        }
        .card-light:hover {
            border-color: rgba(99, 102, 241, 0.15);
            box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.06);
        }

        .input-light {
            background: #ffffff;
            border: 1px solid #e2e4ea;
            border-radius: 14px;
            padding: 12px 18px;
            color: #1e1e2f;
            font-size: 0.9rem;
            transition: all 0.25s;
            outline: none;
            width: 100%;
        }
        .input-light:focus {
            border-color: #818cf8;
            box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.10);
        }
        .input-light::placeholder {
            color: #a0a3b1;
            font-weight: 300;
        }

        .textarea-light {
            background: #ffffff;
            border: 1px solid #e2e4ea;
            border-radius: 18px;
            padding: 18px 22px;
            color: #1e1e2f;
            font-size: 0.95rem;
            line-height: 1.7;
            transition: all 0.25s;
            outline: none;
            resize: vertical;
            min-height: 100px;
            width: 100%;
            font-family: inherit;
        }
        .textarea-light:focus {
            border-color: #818cf8;
            box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.08);
        }
        .textarea-light::placeholder {
            color: #a0a3b1;
            font-weight: 300;
        }

        .btn-primary {
            background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
            border: none;
            border-radius: 18px;
            padding: 16px 32px;
            font-weight: 600;
            font-size: 1.05rem;
            color: #ffffff;
            cursor: pointer;
            transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 8px 28px -8px rgba(99, 102, 241, 0.35);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            width: 100%;
            letter-spacing: 0.2px;
        }
        .btn-primary:hover {
            transform: scale(1.008);
            box-shadow: 0 12px 40px -8px rgba(99, 102, 241, 0.45);
            filter: brightness(1.04);
        }
        .btn-primary:active {
            transform: scale(0.98);
        }
        .btn-primary:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
            filter: none;
            box-shadow: none;
        }

        .ratio-btn {
            background: #ffffff;
            border: 1px solid #e2e4ea;
            border-radius: 14px;
            padding: 10px 8px;
            text-align: center;
            cursor: pointer;
            transition: all 0.25s;
            user-select: none;
        }
        .ratio-btn:hover {
            border-color: #a5b4fc;
            background: #f8f9ff;
        }
        .ratio-btn.active {
            background: #6366f1;
            border-color: #6366f1;
            color: #ffffff;
            box-shadow: 0 4px 12px rgba(99, 102, 241, 0.20);
        }
        .ratio-btn.active .desc {
            color: rgba(255, 255, 255, 0.7);
        }
        .ratio-btn .label {
            font-size: 1rem;
            font-weight: 700;
            font-family: 'Inter', monospace;
            letter-spacing: 0.3px;
        }
        .ratio-btn .desc {
            font-size: 0.65rem;
            color: #9ca3af;
            margin-top: 1px;
        }

        .prompt-tag {
            background: #f8f9ff;
            border: 1px solid #e8eaf0;
            border-radius: 100px;
            padding: 8px 16px;
            font-size: 0.8rem;
            color: #4b4d5c;
            cursor: pointer;
            transition: all 0.25s;
            user-select: none;
            display: inline-block;
            line-height: 1.4;
        }
        .prompt-tag:hover {
            background: #eef0ff;
            border-color: #a5b4fc;
            color: #4338ca;
            transform: translateY(-1px);
        }

        .history-card {
            border-radius: 14px;
            overflow: hidden;
            background: #ffffff;
            border: 1px solid #f0f1f5;
            transition: all 0.3s;
            cursor: pointer;
        }
        .history-card:hover {
            border-color: #d0d5f0;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
            transform: translateY(-2px);
        }
        .history-card img {
            width: 100%;
            aspect-ratio: 16/9;
            object-fit: cover;
            display: block;
            background: #f5f6fa;
        }
        .history-card .info {
            padding: 10px 12px 12px;
        }
        .history-card .info p {
            font-size: 0.75rem;
            color: #6b7280;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            line-height: 1.5;
        }
        .history-edit-btn {
            margin-top: 8px;
            border: 1px solid #d7e3f8;
            background: #f5f9ff;
            color: #2563eb;
            border-radius: 10px;
            font-size: 0.72rem;
            font-weight: 700;
            padding: 6px 9px;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            cursor: pointer;
        }
        .history-edit-btn:hover {
            background: #eaf2ff;
        }

        .result-card {
            border-radius: 18px;
            overflow: hidden;
            background: #ffffff;
            border: 1px solid #f0f1f5;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: pointer;
        }
        .result-card:hover {
            transform: translateY(-4px) scale(1.01);
            border-color: #c7d2fe;
            box-shadow: 0 16px 48px -12px rgba(99, 102, 241, 0.10);
        }
        .result-card img {
            width: 100%;
            aspect-ratio: 16/9;
            object-fit: cover;
            display: block;
            background: #f5f6fa;
        }
        .result-card .actions {
            padding: 12px 14px 14px;
            display: flex;
            gap: 8px;
        }
        .result-card .actions button {
            flex: 1;
            padding: 8px 0;
            border-radius: 12px;
            border: none;
            background: #f5f6fa;
            color: #4b4d5c;
            font-size: 0.75rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }
        .result-card .actions button:hover {
            background: #eef0ff;
            color: #4338ca;
        }

        .result-reminder {
            margin-bottom: 16px;
            padding: 10px 12px;
            border-radius: 12px;
            border: 1px solid rgba(245, 158, 11, .28);
            background: rgba(255, 251, 235, .92);
            color: #92400e;
            font-size: 0.76rem;
            line-height: 1.45;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .progress-track {
            height: 4px;
            background: #f0f1f5;
            border-radius: 20px;
            overflow: hidden;
        }
        .progress-bar {
            height: 100%;
            background: linear-gradient(90deg, #6366f1, #8b5cf6, #22d3ee);
            border-radius: 20px;
            transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            width: 0%;
        }

        .error-detail {
            display: none;
            margin-bottom: 22px;
            padding: 14px 16px;
            border-radius: 14px;
            border: 1px solid #fecaca;
            background: #fff7f7;
            color: #7f1d1d;
            font-size: 0.78rem;
            line-height: 1.55;
            white-space: pre-wrap;
            word-break: break-word;
        }
        .error-detail.show {
            display: block;
        }
        .error-detail button {
            margin-top: 10px;
            padding: 6px 10px;
            border-radius: 9px;
            border: 1px solid #fecaca;
            background: #ffffff;
            color: #991b1b;
            font-size: 0.72rem;
            cursor: pointer;
        }

        .toast {
            position: fixed;
            bottom: 32px;
            right: 32px;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(16px);
            border: 1px solid rgba(99, 102, 241, 0.12);
            border-radius: 18px;
            padding: 14px 24px;
            color: #1e1e2f;
            font-size: 0.85rem;
            display: flex;
            align-items: center;
            gap: 10px;
            box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.12);
            opacity: 0;
            transform: translateY(12px) scale(0.96);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            pointer-events: none;
            z-index: 999;
        }
        .toast.show {
            opacity: 1;
            transform: translateY(0) scale(1);
            pointer-events: auto;
        }
        .toast i {
            font-size: 1.1rem;
            color: #6366f1;
        }

        .modal-overlay {
            position: fixed;
            inset: 0;
            z-index: 1000;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 24px;
            background: rgba(15, 23, 42, 0.48);
            backdrop-filter: blur(12px);
        }
        .modal-overlay.show {
            display: flex;
        }
        .welcome-modal {
            width: min(440px, 100%);
            border-radius: 22px;
            border: 1px solid rgba(99, 102, 241, 0.14);
            background: #ffffff;
            padding: 28px;
            color: #1f2937;
            box-shadow: 0 30px 90px -24px rgba(15, 23, 42, 0.36);
            text-align: center;
        }
        .welcome-icon {
            width: 52px;
            height: 52px;
            margin: 0 auto 16px;
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 12px 28px -12px rgba(99, 102, 241, 0.55);
        }
        .welcome-modal h2 {
            font-size: 1.28rem;
            font-weight: 800;
            color: #111827;
            margin-bottom: 14px;
        }
        .welcome-modal p {
            font-size: 0.93rem;
            line-height: 1.75;
            color: #4b5563;
            margin-bottom: 8px;
        }
        .welcome-modal .welcome-qq {
            margin-top: 14px;
            padding: 10px 12px;
            border-radius: 14px;
            background: #f8f9ff;
            color: #4338ca;
            font-weight: 700;
        }
        .welcome-actions {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            margin-top: 18px;
        }
        .welcome-modal button,
        .welcome-join {
            width: 100%;
            border: none;
            border-radius: 15px;
            padding: 13px 18px;
            background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
            color: #ffffff;
            font-size: 0.95rem;
            font-weight: 700;
            cursor: pointer;
            box-shadow: 0 10px 28px -12px rgba(99, 102, 241, 0.5);
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            line-height: 1.2;
        }
        .welcome-join {
            background: linear-gradient(135deg, #0891b2 0%, #22d3ee 100%);
            box-shadow: 0 10px 28px -12px rgba(8, 145, 178, 0.55);
        }
        .welcome-modal button:hover,
        .welcome-join:hover {
            filter: brightness(1.04);
        }

        .status-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            display: inline-block;
            background: #6366f1;
            animation: pulse-dot 1.6s ease-in-out infinite;
        }
        @keyframes pulse-dot {
            0%, 100% {
                opacity: 0.4;
                transform: scale(0.9);
            }
            50% {
                opacity: 1;
                transform: scale(1.2);
            }
        }

        .line-clamp-2 {
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        @media (max-width: 768px) {
            .navbar-light .row {
                flex-direction: column;
                gap: 10px;
            }
            .nav-ad {
                width: 100%;
                max-width: none;
                padding-left: 0;
                padding-top: 10px;
                border-left: none;
                border-top: 1px solid rgba(99, 102, 241, 0.14);
                justify-content: center;
                font-size: 0.68rem;
            }
            .nav-ad span,
            .nav-ad strong {
                white-space: normal;
                text-align: center;
            }
            .top-actions {
                max-width: none;
            }
            .official-link,
            .group-link {
                padding: 0 12px;
                font-size: 0.78rem;
            }
            .hero-logo {
                width: 58px;
                height: 58px;
                margin-bottom: 14px;
            }
            .welcome-actions {
                grid-template-columns: 1fr;
            }
            .btn-primary {
                font-size: 0.95rem;
                padding: 14px 18px;
            }
            .ratio-btn .label {
                font-size: 0.9rem;
            }
            .toast {
                bottom: 16px;
                right: 16px;
                left: 16px;
                border-radius: 14px;
                padding: 12px 18px;
                font-size: 0.8rem;
            }
            .result-card .actions button {
                font-size: 0.7rem;
                padding: 6px 0;
            }
        }

        select.input-light {
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 16px center;
            padding-right: 40px;
            cursor: pointer;
        }
        select.input-light option {
            background: #ffffff;
            color: #1e1e2f;
        }

.badge-soft {
    display: inline-flex;
    align-items: center;
    gap: 4px;
            padding: 2px 10px;
            border-radius: 100px;
            font-size: 0.7rem;
    font-weight: 500;
    background: #f0f1ff;
    color: #6366f1;
}

.member-panel {
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 18px;
    background: linear-gradient(135deg, #ffffff 0%, #f7f8ff 100%);
    padding: 18px 20px;
}
.member-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.member-main h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 700;
    color: #312e81;
}
.member-main p {
    margin-top: 7px;
    font-size: 0.84rem;
    color: #4b5563;
}
.member-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}
.member-badge.trial {
    color: #b45309;
    background: #fff7ed;
    border: 1px solid #fed7aa;
}
.member-badge.pro {
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}
.member-actions {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.member-btn {
    border: 1px solid #d5daf8;
    border-radius: 12px;
    background: #ffffff;
    color: #4b5563;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.member-btn:not(.member-btn-primary):hover {
    border-color: #a5b4fc;
    background: #f8f9ff;
}
.member-btn-primary {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    box-shadow: 0 8px 20px -12px rgba(99, 102, 241, 0.6);
}
.member-btn-primary:hover {
    filter: brightness(1.04);
}
.secondary-btn {
    background: #eef2ff !important;
    color: #4338ca !important;
    box-shadow: none !important;
}

@media (max-width: 768px) {
    .member-main {
        align-items: flex-start;
    }
    .member-main h2 {
        font-size: 0.94rem;
    }
    .member-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
    .member-btn {
        justify-content: center;
    }
}

/* Apple-like theme overrides */
:root {
    --bg: #f5f5f7;
    --card: #ffffff;
    --text: #1d1d1f;
    --muted: #6e6e73;
    --line: #d2d2d7;
    --line-soft: #e6e6eb;
    --accent: #0071e3;
    --accent-hover: #0077ed;
    --accent-soft: #e8f2ff;
}

body {
    font-family: 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', 'Manrope', 'Noto Sans SC', sans-serif;
    background:
        radial-gradient(900px 400px at 85% -10%, rgba(0, 113, 227, 0.08), transparent 60%),
        linear-gradient(180deg, #fbfbfd 0%, var(--bg) 100%);
    color: var(--text);
}

.navbar-light {
    background: rgba(255, 255, 255, 0.74);
    backdrop-filter: saturate(180%) blur(22px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-ad {
    padding: 6px 12px;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.75);
    font-size: 0.72rem;
    font-weight: 600;
}

.top-pill {
    height: 38px;
    padding: 0 13px;
    border-radius: 999px;
    border: 1px solid #c7ddfb;
    background: var(--accent-soft);
    color: #0058b0;
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.card-light {
    border: 1px solid var(--line-soft);
    border-radius: 26px;
    box-shadow: 0 18px 46px -30px rgba(0, 0, 0, 0.24);
}

.card-light:hover {
    border-color: var(--line);
    box-shadow: 0 22px 50px -32px rgba(0, 0, 0, 0.26);
}

.input-light,
.textarea-light {
    border: 1px solid var(--line);
    background: #ffffff;
    color: var(--text);
    border-radius: 14px;
}

.input-light:focus,
.textarea-light:focus {
    border-color: #8abfff;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}

.btn-primary {
    background: linear-gradient(180deg, var(--accent-hover) 0%, var(--accent) 100%);
    border-radius: 14px;
    box-shadow: 0 16px 30px -18px rgba(0, 113, 227, 0.68);
}

.btn-primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.02);
    box-shadow: 0 18px 34px -18px rgba(0, 113, 227, 0.68);
}

.btn-primary,
.btn-primary:hover {
    color: #ffffff;
}

.badge-soft {
    background: #eef5ff;
    color: #0b63c9;
}

.ratio-btn {
    border-color: var(--line-soft);
}

.ratio-btn:hover {
    border-color: #a3cbff;
    background: #f4f9ff;
}

.ratio-btn.active {
    background: #111111;
    border-color: #111111;
    box-shadow: 0 8px 24px -14px rgba(0, 0, 0, 0.55);
}

.member-panel {
    border: 1px solid #d8dbe2;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(250, 250, 252, 0.98) 100%);
}

.member-main h2 {
    color: #1d1d1f;
}

.member-main p {
    color: var(--muted);
}

.member-badge.pro {
    color: #0058b0;
    background: #edf5ff;
    border: 1px solid #cde1fb;
}

.member-badge.trial {
    color: #9f580a;
    background: #fff7e8;
    border: 1px solid #f5ddad;
}

.member-btn {
    border: 1px solid var(--line);
    background: #ffffff;
    border-radius: 12px;
}

.member-btn:not(.member-btn-primary):hover {
    border-color: #a8cdfa;
    background: #f7fbff;
}

.member-btn-primary {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(180deg, var(--accent-hover) 0%, var(--accent) 100%);
    box-shadow: 0 14px 24px -16px rgba(0, 113, 227, 0.72);
}

.member-btn-primary:hover,
.member-btn.member-btn-primary:hover {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(180deg, #1a82ec 0%, #0071e3 100%) !important;
}

.member-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

.member-hint {
    display: inline-flex;
    align-items: center;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 0 8px;
}

.member-hint.ok {
    color: #036749;
}

.member-hint.warn {
    color: #9a3412;
}

.prompt-lab {
    border: 1px solid #dfe3ea;
    border-radius: 16px;
    background: linear-gradient(180deg, #fbfcff 0%, #f7f9fc 100%);
    padding: 14px;
}

.prompt-lab-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.prompt-lab-head h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1d1d1f;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.prompt-lab-head span {
    font-size: 0.75rem;
    color: #6e6e73;
}

.prompt-lab-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.prompt-lab-actions {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.welcome-modal {
    border: 1px solid #dfe1e7;
    border-radius: 24px;
}

.welcome-actions {
    grid-template-columns: 1fr;
}

.welcome-modal button {
    background: linear-gradient(180deg, var(--accent-hover) 0%, var(--accent) 100%);
}

.progress-track {
    background: #e9e9ee;
}

.progress-bar {
    background: linear-gradient(90deg, #0a84ff, #5e5ce6);
}

@media (max-width: 768px) {
    .nav-ad {
        width: auto;
        max-width: 100%;
        justify-content: center;
        text-align: center;
        border-top: none;
    }
    .top-actions {
        justify-content: center;
    }
    .prompt-lab-grid {
        grid-template-columns: 1fr;
    }
    .prompt-lab-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Beginner-friendly layout */
.beginner-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.beginner-steps .step-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(180deg, #fcfdff 0%, #f5f8ff 100%);
    border: 1px solid #dbe6f7;
    border-radius: 12px;
    padding: 10px 12px;
    color: #334155;
    font-size: 0.79rem;
    font-weight: 600;
}

.beginner-steps .num {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #0a84ff;
    color: #fff;
    font-size: 0.72rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.field-label {
    display: block;
    font-size: 0.8rem;
    color: #4b5563;
    font-weight: 700;
    margin-bottom: 8px;
}

.field-tip {
    margin-top: 8px;
    font-size: 0.76rem;
    color: #6b7280;
}

.quick-edit-panel {
    border: 1px solid #dce6f5;
    border-radius: 14px;
    background: linear-gradient(180deg, #fafdff 0%, #f5f9ff 100%);
    padding: 12px;
}

.quick-edit-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #1f2937;
}

.quick-edit-head span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.quick-edit-close {
    border: 1px solid #dbe3ef;
    border-radius: 999px;
    background: #fff;
    color: #64748b;
    font-size: 0.72rem;
    padding: 3px 10px;
    cursor: pointer;
}

.quick-edit-close:hover {
    background: #f1f5f9;
}

.quick-edit-info {
    margin-top: 8px;
    font-size: 0.74rem;
    color: #64748b;
}

.quick-edit-actions {
    margin-top: 10px;
}

.collapse-card {
    border: 1px solid #dce3ee;
    border-radius: 14px;
    padding: 10px 12px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.collapse-card > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.84rem;
    font-weight: 700;
    color: #1f2937;
}

.collapse-card > summary::-webkit-details-marker {
    display: none;
}

.collapse-card > summary span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.collapse-card > summary small {
    font-size: 0.72rem;
    color: #6b7280;
    font-weight: 600;
}

@media (max-width: 768px) {
    .beginner-steps {
        grid-template-columns: 1fr;
    }
}
