.demo-dialog {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: #f7f8fc;
    padding: 1.25rem;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.08);
    font-family: "Manrope", "Inter", system-ui, -apple-system, sans-serif;
    color: #0f172a;
}

.dialog-title {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0;
}

.dialog-copy {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}

.demo-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

.demo-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}

.card-header {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}

.card-title {
    font-weight: 700;
    color: #0f172a;
}

.card-chip {
    align-self: flex-start;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: #e2e8f0;
    color: #0f172a;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

.card-chip.accent {
    background: #dbeafe;
    color: #2563eb;
}

.card-chip.neutral {
    background: #f1f5f9;
    color: #475569;
}

.card-chip.success {
    background: #dcfce7;
    color: #16a34a;
}

.input-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.field-label {
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0.01em;
}

.input-control {
    width: 100%;
}

.autocomplete-shell {
    width: 100%;
}

.file-input {
    padding: 0.55rem 0.75rem;
    border: 1px dashed #94a3b8;
    border-radius: 10px;
    background: #f8fafc;
    color: #475569;
}

.field-hint {
    color: #475569;
    font-size: 0.9rem;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.pill {
    background: #e2e8f0;
    color: #0f172a;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid #cbd5e1;
}

.toggles .input-control {
    max-width: 240px;
}

.numpicker-wrapper {
    display: flex;
    gap: 0.35rem;
    align-items: stretch;
}

.numpicker-controls {
    display: flex;
    flex-direction: column;
    width: 46px;
}

.numpicker-controls button {
    flex: 1 1 50%;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    color: #0f172a;
    cursor: pointer;
    transition: background 150ms ease, transform 120ms ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.numpicker-controls button:first-child {
    border-bottom: none;
}

.numpicker-controls button:hover {
    background: #e2e8f0;
}

.numpicker-controls button:active {
    transform: translateY(1px);
}

@media (min-width: 640px) {
    .demo-dialog {
        padding: 1.5rem;
    }

    .demo-card {
        padding: 1.25rem;
    }

    .demo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .input-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .toggles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .demo-dialog {
        padding: 1.75rem;
    }

    .demo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .input-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .toggles {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dialog-title {
        font-size: 1.6rem;
    }
}
