:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-700: #334155;
    --slate-500: #64748b;
    --indigo-600: #4f46e5;
    --violet-600: #7c3aed;
}

body {
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

.app-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(
            circle at 8% 10%,
            rgba(79, 70, 229, 0.16),
            transparent 28rem
        ),
        radial-gradient(
            circle at 90% 0%,
            rgba(14, 165, 233, 0.12),
            transparent 24rem
        ),
        linear-gradient(180deg, #f8fafc 0%, #eef2ff 46%, #f8fafc 100%);
}

.glass-nav,
.ux-card {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(16px);
}

.brand-mark {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 1rem;
    display: grid;
    place-items: center;
    color: white;
    font-weight: 900;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--indigo-600), var(--violet-600));
    box-shadow: 0 14px 30px rgba(79, 70, 229, 0.28);
}

.nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    padding: 0.55rem 0.85rem;
    color: #334155;
    background: white;
    transition: all 0.2s ease;
}

.nav-pill:hover {
    color: var(--indigo-600);
    border-color: #c7d2fe;
    background: #eef2ff;
}

.hero-card {
    position: relative;
    background:
        radial-gradient(
            circle at 85% 25%,
            rgba(255, 255, 255, 0.22),
            transparent 16rem
        ),
        linear-gradient(135deg, #4338ca 0%, #6d28d9 55%, #0f172a 100%);
    box-shadow: 0 30px 80px rgba(49, 46, 129, 0.32);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 0.2rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.metric-card {
    border-radius: 1rem;
    padding: 1rem;
    color: white;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.metric-card span {
    display: block;
    font-weight: 900;
    font-size: 1.5rem;
}

.metric-card p {
    color: #e0e7ff;
    font-size: 0.875rem;
}

.wizard-step {
    width: 100%;
    display: flex;
    gap: 0.75rem;
    text-align: left;
    padding: 0.85rem;
    border-radius: 1rem;
    color: #475569;
    transition: all 0.2s ease;
}

.wizard-step:hover,
.wizard-step.active {
    background: #eef2ff;
    color: #312e81;
}

.wizard-step span,
.step-pill {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
}

.wizard-step span {
    background: #e2e8f0;
    color: #334155;
}

.wizard-step.active span {
    background: #4f46e5;
    color: white;
}

.wizard-step strong {
    display: block;
    font-size: 0.9rem;
}

.wizard-step small {
    color: #64748b;
    font-size: 0.75rem;
}

.wizard-panel {
    display: none;
}

.wizard-panel.active {
    display: block;
}

.panel-title {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
}

.panel-title h3 {
    color: #0f172a;
    font-size: 1.35rem;
    font-weight: 800;
}

.panel-title p {
    color: #64748b;
    margin-top: 0.2rem;
}

.upload-dropzone {
    min-height: 13rem;
    border: 2px dashed #c7d2fe;
    border-radius: 1.25rem;
    background: linear-gradient(180deg, #f8fafc, #eef2ff);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-dropzone:hover {
    border-color: #6366f1;
    transform: translateY(-1px);
}

.upload-dropzone strong {
    color: #0f172a;
    font-size: 1.05rem;
}

.upload-dropzone span {
    color: #64748b;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.hint-card {
    border-radius: 1rem;
    padding: 0.9rem 1rem;
    font-size: 0.875rem;
    border: 1px solid transparent;
}

.hint-card.amber {
    color: #92400e;
    background: #fffbeb;
    border-color: #fde68a;
}

.hint-card.blue {
    color: #1e40af;
    background: #eff6ff;
    border-color: #bfdbfe;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1rem;
}

@media (min-width: 768px) {
    .form-grid:not(.single) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.form-grid label,
.form-grid + div label {
    display: block;
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.form-grid input,
.modern-input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 0.9rem;
    padding: 0.78rem 0.95rem;
    background: white;
    outline: none;
    transition: all 0.2s ease;
}

.form-grid input:focus,
.modern-input:focus,
textarea:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.13);
}

.form-grid p {
    color: #64748b;
    font-size: 0.75rem;
    margin-top: 0.35rem;
}

.source-card,
.launch-card {
    border-radius: 1.25rem;
    padding: 1.1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.source-icon {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.85rem;
    display: grid;
    place-items: center;
    font-weight: 900;
    color: #4f46e5;
    background: #eef2ff;
}

.source-card h4 {
    font-weight: 800;
    color: #0f172a;
}

.source-card p {
    color: #64748b;
    font-size: 0.875rem;
}

.model-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 0.7rem;
}

@media (min-width: 768px) {
    .model-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.model-option {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 0.85rem;
    background: white;
    transition: all 0.2s ease;
}

.model-option:hover {
    border-color: #c7d2fe;
    background: #f8fafc;
}

.model-option input {
    accent-color: #4f46e5;
}

.model-option span {
    color: #334155;
    font-size: 0.9rem;
}

.panel-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.primary-action,
.secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.9rem;
    padding: 0.75rem 1rem;
    font-weight: 800;
    transition: all 0.2s ease;
}

.primary-action {
    color: white;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    box-shadow: 0 14px 30px rgba(79, 70, 229, 0.22);
}

.primary-action:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(79, 70, 229, 0.3);
}

.secondary-action {
    color: #334155;
    border: 1px solid #cbd5e1;
    background: white;
}

.secondary-action:hover {
    color: #4f46e5;
    border-color: #c7d2fe;
    background: #eef2ff;
}

.launch-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .launch-card {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.details-summary {
    list-style: none;
    position: relative;
    padding-right: 1.5rem;
}

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

.details-summary::after {
    content: "▾";
    position: absolute;
    right: 0;
    top: 0;
    transition: transform 0.2s ease;
}

details[open] .details-summary::after {
    transform: rotate(-180deg);
}

code {
    color: #4338ca;
    background: #eef2ff;
    border-radius: 0.35rem;
    padding: 0.05rem 0.25rem;
}

.model-settings-card {
    border-radius: 1.25rem;
    padding: 1.1rem;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px solid #e2e8f0;
}

.model-settings-card h4 {
    color: #0f172a;
    font-weight: 800;
    font-size: 1rem;
}

.model-settings-card p {
    color: #64748b;
    font-size: 0.875rem;
    margin-top: 0.15rem;
}

.thinking-option {
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px dashed #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.8rem;
}

.thinking-option input {
    accent-color: #7c3aed;
}
