:root {
    --primary-color: #009eb2;
    --secondary-color: #1a1a2e;
    --text-color: #333333;
    --builder-preview-width: 55px;
    --builder-preview-tile-size: 32px;
}

html {
    height: 100%;
    overflow: hidden;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 20px;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Bootstrap добавляет padding-right при открытии модала — это сдвигает центрованный flex-контент влево */
body.modal-open {
    padding-right: 20px !important;
}

#background-container {
    position: relative;
    width: 100%;
    max-width: 768px;
    background: #fff;
    border-radius: 20px;
    max-height: 94vh;
    max-height: 94dvh;
    overflow: hidden;
    transition: max-width 0.3s ease;
    display: flex;
    flex-direction: column;
}

#app-container {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#home-header-top {
    position: absolute;
    left: 0px;
    top: -120px;
    width: 100%;
    height: 150px;
    display: inline-block;
    background-image: url('/mini-app/assets/images/home-header-top.png');
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: contain;
    z-index: -1;
}

#home-header-left {
    position: absolute;
    left: -400px;
    top: 0px;
    width: 650px;
    height: 100%;
    display: inline-block;
    background-image: url('/mini-app/assets/images/home1.png');
    background-size: 80%;
    background-repeat: no-repeat;
    background-position: center;
    z-index: -1;
}

#home-header-right {
    position: absolute;
    right: -400px;
    top: 0px;
    width: 650px;
    height: 100%;
    display: inline-block;
    background-image: url('/mini-app/assets/images/home2.png');
    background-size: 80%;
    background-repeat: no-repeat;
    background-position: center;
    z-index: -1;
}

#app-container.iframe-expanded {
    max-width: 1152px;
}

.iframe-panel {
    display: flex;
    flex-direction: column;
}

.partner-iframe {
    width: 100%;
    height: calc(94vh - 220px);
    height: calc(94dvh - 220px);
    border: none;
    border-radius: 10px;
    background: #f5f5f5;
    display: block;
}

#app-header {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #ccc;
}

#app-logo {
    max-height: 50px;
}

#app-content {
    padding: 20px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

#vue-mini-app {
    min-height: 180px;
}

.mini-app-loader {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #5f6368;
    font-size: 0.95rem;
}

.mini-app-loader-spinner {
    width: 1rem;
    height: 1rem;
    border-width: 0.14em;
    color: var(--primary-color);
}

.step.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Step Timeline ─────────────────────────────────────────────── */
.step-timeline {
    display: flex;
    align-items: flex-start;
    padding: 12px 20px 14px;
    margin: -20px -20px 20px;
    border-bottom: 1px solid #eee;
    background: #fafafa;
}

.step-timeline-connector {
    flex: 1;
    height: 2px;
    background: #e0e0e0;
    margin-top: 13px;
    margin-left: 4px;
    margin-right: 4px;
    border-radius: 1px;
}

.step-timeline-connector--done {
    background: var(--primary-color);
}

.step-timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.step-timeline-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    border: 2px solid #e0e0e0;
    background: #fff;
    color: #ccc;
}

.step-timeline-item--active .step-timeline-dot {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #fff;
}

.step-timeline-item--done .step-timeline-dot {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #fff;
}

.step-timeline-label {
    margin-top: 5px;
    font-size: 0.7rem;
    color: #ccc;
    white-space: nowrap;
}

.step-timeline-item--active .step-timeline-label {
    color: var(--primary-color);
    font-weight: 600;
}

.step-timeline-item--done .step-timeline-label {
    color: #999;
}

@media (max-width: 767px) {
    .step-timeline-connector {
        margin-top: 0;
        align-self: center;
    }

    .step-timeline-item {
        flex-direction: row;
        align-items: center;
        gap: 6px;
    }

    .step-timeline-label {
        margin-top: 0;
    }
}
/* ──────────────────────────────────────────────────────────────── */

.step-header {
    text-align: center;
    margin-bottom: 25px;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 10px;
}

.step-header h2 {
    margin: 0 0 8px;
    color: var(--text-color);
    font-size: 1.5rem;
}

.step-desc {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
}

#upload-zone {
    border: 2px dashed #ccc;
    border-radius: 16px;
    padding: 20px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 20px;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

#upload-zone:hover,
#upload-zone.dragover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(74, 144, 217, 0.08) 0%, #fff 100%);
    transform: scale(1.01);
}

#upload-placeholder {
    color: #888;
}

#upload-placeholder svg {
    margin-bottom: 15px;
    color: var(--primary-color);
    opacity: 0.7;
}

#upload-placeholder p {
    margin: 0;
    font-size: 1.1rem;
}

#preview-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.btn-primary,
.btn-secondary {
    display: block;
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #04b8ce 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(74, 144, 217, 0.4);
    text-align: center;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 217, 0.5);
}

.btn-primary:disabled {
    background: #ccc;
    box-shadow: none;
    cursor: not-allowed;
}

.btn-cta {
    font-size: 1.1rem;
    padding: 18px 24px;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(74, 144, 217, 0.4);
    }

    50% {
        box-shadow: 0 4px 25px rgba(74, 144, 217, 0.7);
    }
}

.btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid #ddd;
}

.btn-secondary:hover {
    border-color: var(--secondary-color);
    background: rgba(26, 26, 46, 0.05);
}

.step-nav {
    margin-top: 20px;
}

#building-list,
#zoning-list,
#main-texture-list,
#decor-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}

#main-texture-list {
    display: block;
    padding: 15px;
    max-height: 50vh;
    overflow: auto;
}

.texture-category {
    margin-bottom: 20px;
}

.texture-category:last-child {
    margin-bottom: 0;
}

.texture-category-title {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
}

.texture-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}

.type-card {
    padding: 16px 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border: 2px solid #eee;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.type-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.type-card.selected {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(74, 144, 217, 0.2);
}

.type-card img {
    width: 110px;
    height: 110px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 10px;
}

.type-card .type-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
}

.type-card .type-sub {
    font-size: 0.8rem;
    color: #777;
}

#recipe-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 15px;
    padding: 15px;
    height: 45vh;
    height: 45dvh;
    max-height: 300px;
    overflow: auto;
}

.builder-cta-wrap {
    margin-top: 12px;
}

.builder-cta-btn {
    width: 100%;
}

.builder-cta-desc {
    margin: 10px 0 0;
    text-align: center;
    color: #666;
    font-size: 0.95rem;
}

.builder-layout {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    align-items: start;
    margin-bottom: 16px;
}

.builder-selection-column {
    flex: 1 1 auto;
    min-width: 0;
}

.builder-preview {
    flex: 0 0 var(--builder-preview-width);
    width: var(--builder-preview-width);
    margin-bottom: 0;
}

.builder-preview-panel {
    padding: 8px;
    border: 1px solid #e8edf2;
    border-radius: 14px;
    background: #f7f9fc;
}

.builder-preview-group:not(:last-child) {
    margin-bottom: 10px;
}

.builder-preview-group-title {
    margin: 0 0 6px;
    font-size: 9px;
    line-height: 1;
    text-transform: uppercase;
    color: #7f8ca0;
}

.builder-preview-grid {
    display: grid;
    grid-template-columns: var(--builder-preview-tile-size);
    gap: 6px;
    justify-content: start;
}

.builder-preview-empty {
    height: var(--builder-preview-tile-size);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b97a8;
    font-size: 12px;
    border: 1px dashed #d4dde8;
    border-radius: 8px;
}

.builder-preview-tile {
    width: var(--builder-preview-tile-size);
    height: var(--builder-preview-tile-size);
    border: 1px solid #d7e0ea;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
}

.combo-item {
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    border: 3px solid #ffffff;
    padding: 10px;
}

.combo-item:hover {
    border: 3px solid #009eb2;
}

.combo-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
}

.texture-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 0px;
    background-size: contain;
    background-position: center;
    border: 3px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.texture-circle svg {
    display: block;
}

.combo-item .texture-circle {
    width: 90px;
    height: 220px;
    border-radius: 10px;
    border: 0;
    background-size: contain;
}

.combo-item span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    display: none;
}

#step-loading {
    text-align: center;
    padding: 80px 20px;
}

.loading-content h2 {
    margin: 0 0 10px;
    color: var(--text-color);
}

.loading-content p {
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.loading-hint {
    font-size: 12px;
    color: #aaa !important;
    margin-top: 8px !important;
    line-height: 1.5;
}

.loading-progress-message {
    margin-top: 10px !important;
    margin-bottom: 0 !important;
    font-size: 15px;
    font-weight: 500;
    color: #444 !important;
    animation: progress-pulse 1.8s ease-in-out infinite;
}

.loading-progress-message::after {
    content: '';
    animation: progress-dots 1.5s steps(1, end) infinite;
}

@keyframes progress-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.55;
    }
}

@keyframes progress-dots {
    0% {
        content: '';
    }

    25% {
        content: '.';
    }

    50% {
        content: '..';
    }

    75% {
        content: '...';
    }
}

.loading-error-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #fee;
    color: #e55;
    font-size: 28px;
    line-height: 70px;
    margin: 0 auto 25px;
}

.loading-error h2 {
    color: #c44;
}

.loading-progress-message--error {
    color: #c44 !important;
    animation: none !important;
    font-weight: normal !important;
}

.loading-progress-message--error::after {
    display: none;
}

.btn-retry {
    margin-top: 20px;
    padding: 12px 32px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
}

.btn-retry:hover {
    opacity: 0.9;
}

#loading-spinner {
    width: 70px;
    height: 70px;
    border: 4px solid #eee;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 25px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.result-regenerate-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 14px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.result-regenerate-btn:hover {
    border-color: #3399ff;
    color: #0f5ea5;
    background: #e8f3ff;
}

.btn-cta-warm {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    box-shadow: 0 4px 15px rgba(247, 147, 30, 0.45);
    animation: pulse-warm 2s infinite;
}

.btn-cta-warm:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 147, 30, 0.6);
}

@keyframes pulse-warm {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(247, 147, 30, 0.45);
    }

    50% {
        box-shadow: 0 4px 25px rgba(247, 147, 30, 0.75);
    }
}

.result-image-wrapper {
    margin-bottom: 20px;
    border-radius: 16px;
    background-color: #dfdfdf;
    position: relative;
    height: 45vh;
    height: 45dvh;
    max-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ── Recipe carousel (StepResult) ─────────────────────────────── */
.recipe-carousel {
    margin-bottom: 20px;
}

.builder-carousel-row {
    display: flex;
    gap: 8px;
}

.builder-carousel-row .recipe-carousel {
    width: calc(50% - 4px);
    min-width: 0;
}

.recipe-carousel--prompt {
    border-radius: 12px;
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    animation: carousel-prompt-pulse 1.2s ease-in-out infinite;
}

@keyframes carousel-prompt-pulse {
    0%, 100% { outline-color: var(--primary-color); }
    50%       { outline-color: transparent; }
}

.recipe-carousel-prompt-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
    padding-bottom: 4px;
}

.recipe-carousel-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 2px 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.recipe-carousel-track::-webkit-scrollbar {
    height: 4px;
}

.recipe-carousel-track::-webkit-scrollbar-track {
    background: transparent;
}

.recipe-carousel-track::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.recipe-carousel-item {
    flex: 0 0 90px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    border-radius: 12px;
    padding: 6px;
    border: 2px solid transparent;
    transition: border-color 0.2s, background 0.2s;
}

.recipe-carousel-item:hover {
    border-color: var(--primary-color);
    background: rgba(0, 158, 178, 0.06);
}

.recipe-carousel-item--active {
    border-color: var(--primary-color);
    background: rgba(0, 158, 178, 0.1);
}

.recipe-carousel-thumb {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    background-size: 60%;
    background-position: center;
    background-color: #e9e9e9;
    position: relative;
    flex-shrink: 0;
}

.recipe-done-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.recipe-carousel-name {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-color);
    text-align: center;
    line-height: 1.2;
    max-width: 78px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ──────────────────────────────────────────────────────────────── */

.result-image-wrapper .btn-buy-materials {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    max-width: calc(100% - 24px);
}

.result-image {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: pointer;
}

#result-image-modal-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

#result-image-modal .modal-dialog {
    max-width: min(96vw, 1400px);
}

#result-image-modal .result-image-modal-content {
    background: #111;
    border: 0;
    border-radius: 12px;
    position: relative;
}

#result-image-modal .result-image-modal-body {
    height: min(92vh, 1200px);
    height: min(92dvh, 1200px);
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#result-image-modal .result-image-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    background-color: rgba(255, 255, 255, 0.95);
    opacity: 1;
}

.selected-info {
    padding: 0px 10px;
    margin-bottom: 10px;
}

.selected-item {
    display: flex;
    justify-content: space-between;
    align-items: start;
    padding: 0;
}

.selected-item:not(:last-child) {
    border-bottom: 1px solid #eee;
}

.selected-label {
    color: #666;
    font-size: 0.9rem;
}

.selected-value {
    text-align: right;
    font-weight: 600;
    color: var(--text-color);
}

.selected-item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.btn-buy-materials {
    padding: 8px 14px;
    border: none;
    border-radius: 10px;
    background: #22a447;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
    box-shadow: 0 4px 14px rgba(34, 164, 71, 0.35);
    transition: background 0.2s, box-shadow 0.2s;
}

.btn-buy-materials:hover {
    background: #1b8a39;
    box-shadow: 0 6px 18px rgba(34, 164, 71, 0.45);
    color: #fff;
}

.change-recipe-link {
    margin-left: 8px;
    font-size: 0.8rem;
    color: var(--primary-color);
    text-decoration: none;
    white-space: nowrap;
    opacity: 0.8;
}

.change-recipe-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.result-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.lead-form-card {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 10px 8px 0;
}

.step-lead-view {
    padding-top: 8px;
}

.lead-form-title {
    margin: 0 0 4px;
    color: #111;
    font-size: 2.15rem;
    line-height: 1.05;
    font-weight: 700;
}

.lead-form-subtitle {
    margin: 0 0 24px;
    color: #3f3f48;
    font-size: 1.05rem;
    text-align: center;
}

.lead-form-group {
    margin-bottom: 14px;
}

.lead-form-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: end;
    gap: 12px;
}

.lead-form-or {
    margin-bottom: 14px;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #7a7a84;
    font-size: 0.9rem;
    white-space: nowrap;
}

.lead-city-picker {
    position: relative;
}

.lead-city-input {
    position: relative;
    z-index: 2;
}

.lead-city-dropdown {
    position: absolute;
    z-index: 15;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid #dce2e8;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 14px 28px rgba(24, 39, 75, 0.12);
    padding: 6px;
}

.lead-city-option {
    width: 100%;
    border: 0;
    background: transparent;
    border-radius: 8px;
    text-align: left;
    padding: 10px 12px;
    font-size: 0.95rem;
    color: #1e1e26;
}

.lead-city-option:hover {
    background: #f4f8fb;
}

.lead-consent {
    margin: 20px 0px 14px 0px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.lead-consent-checkbox {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    flex: 0 0 18px;
}

.lead-consent-text {
    color: #3f3f48;
    font-size: 0.87rem;
    line-height: 1.45;
}

.lead-consent-text a {
    color: var(--primary-color);
    text-decoration: underline;
}

.step-lead-view .form-label {
    margin-bottom: 6px;
    font-size: 0.85rem;
    color: #4c4c4f;
    font-weight: 500;
}

.step-lead-view .form-control {
    border: 1px solid #bfbfbf;
    border-radius: 6px;
    min-height: 50px;
    padding: 12px 14px;
    font-size: 1rem;
    color: #1e1e26;
    box-shadow: none;
}

.step-lead-view .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 158, 178, 0.14);
}

.lead-submit-btn {
    margin-top: 6px;
    min-height: 52px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
}

.lead-form-privacy {
    margin: 14px 0 28px;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.45;
    text-align: center;
}

.lead-form-error {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #f3b2b2;
    background: #ffecec;
    color: #8a2020;
    font-size: 0.92rem;
}

.form-control.is-invalid {
    border-color: #dc3545;
}

@media (max-width: 640px) {
    .lead-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .lead-form-or {
        margin: -4px 0 10px;
        min-height: auto;
    }
}

@media (max-width: 500px) {
    body {
        padding: 10px;
    }

    #app-content {
        padding: 20px;
    }

    .result-regenerate-btn {
        width: 100%;
    }

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

    #combination-list {
        grid-template-columns: repeat(2, 1fr);
    }

    #decor-list {
        grid-template-columns: repeat(2, 1fr);
    }
}
