:root {
    --rs-border: #dee2e6;
    --rs-soft: #f8f9fa;
    --rs-bg: #f5f6f8;
}

body {
    background: var(--rs-bg);
}

.rs-navbar .container {
    gap: 12px;
    align-items: flex-start;
}

.rs-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.rs-card {
    background: #fff;
    border: 1px solid var(--rs-border);
    border-radius: 8px;
    padding: 16px;
}

.rs-form .form-control,
.rs-form .form-select {
    min-height: 46px;
}

.rs-form textarea.form-control {
    min-height: 140px;
}

.rs-form .form-text {
    color: #5c6670;
}

.rs-stat {
    min-height: 112px;
}

.rs-stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
}

.rs-thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--rs-border);
    background: var(--rs-soft);
}

.rs-photo,
.preview-image {
    width: 100%;
    object-fit: contain;
    border: 1px solid var(--rs-border);
    border-radius: 8px;
    background: var(--rs-soft);
}

.rs-photo {
    max-height: 360px;
}

.preview-image {
    max-height: 240px;
}

.suggestion-image {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--rs-border);
}

.step-badge {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
}

.file-path,
.rs-break,
.break-anywhere {
    overflow-wrap: anywhere;
}

.file-path {
    font-size: 0.92rem;
}

.rs-actions {
    display: grid;
    gap: 8px;
}

.alert {
    border-radius: 8px;
}

@media (min-width: 768px) {
    .rs-actions {
        display: flex;
        flex-wrap: wrap;
    }
}

@media (max-width: 767.98px) {
    .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .rs-navbar .container {
        align-items: stretch;
    }

    .rs-menu {
        width: 100%;
    }

    .rs-menu .btn,
    .rs-actions .btn,
    .d-md-flex .btn {
        width: 100%;
    }

    .btn-lg {
        min-height: 50px;
    }

    .rs-card {
        padding: 14px;
    }

    .table-responsive {
        font-size: 0.94rem;
    }
}