.custom-top-rating-create-dialog {
    width: min(920px, calc(100vw - 1rem));
    max-width: 920px;
    background: linear-gradient(180deg, rgba(7, 14, 22, 0.98), rgba(12, 22, 34, 0.97)) !important;
    color: #f5f8fc;
    border: 1px solid rgba(150, 179, 212, 0.12);
    border-radius: 30px !important;
    box-shadow: 0 30px 72px rgba(0, 0, 0, 0.38) !important;
    overflow: hidden;
}

.custom-top-rating-create-dialog__title-shell {
    padding: 1.35rem 1.5rem 0.55rem !important;
    background:
        radial-gradient(circle at top right, rgba(243, 176, 90, 0.14), transparent 32%),
        linear-gradient(180deg, rgba(10, 18, 28, 0.96), rgba(11, 20, 31, 0.88));
    border-bottom: 1px solid rgba(146, 174, 205, 0.12);
}

.custom-top-rating-create-dialog__title-block {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.custom-top-rating-create-dialog__eyebrow {
    color: rgba(243, 176, 90, 0.88);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.custom-top-rating-create-dialog__content-shell {
    padding: 0.9rem 1.5rem 1.35rem !important;
    background: transparent;
}

.custom-top-rating-create-dialog__actions-shell {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    padding: 0 1.5rem 1.35rem !important;
    background: transparent;
    border-top: 0;
}

.custom-top-rating-create-dialog__title {
    margin: 0;
    color: #f7f9fd;
    font-family: "Playfair Display", "Libre Baskerville", serif;
    font-size: clamp(1.8rem, 2.6vw, 2.4rem);
    line-height: 1.02;
}

.custom-top-rating-create-dialog__layout {
    display: block;
}

.custom-top-rating-create-dialog__main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.custom-top-rating-create-dialog__progress-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.7rem;
}

.custom-top-rating-create-dialog__step-card,
.custom-top-rating-create-dialog__panel,
.custom-top-rating-create-dialog__field-card,
.custom-top-rating-create-dialog__template-card,
.custom-top-rating-create-dialog__category-option,
.custom-top-rating-create-dialog__filter-group,
.custom-top-rating-create-dialog__review-item {
    border: 1px solid rgba(146, 174, 205, 0.14);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
}

.custom-top-rating-create-dialog__step-card {
    display: flex;
    gap: 0.7rem;
    align-items: center;
    padding: 0.8rem 0.9rem;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(11, 20, 31, 0.96), rgba(15, 27, 41, 0.92));
}

.custom-top-rating-create-dialog__step-card--current {
    border-color: rgba(243, 176, 90, 0.28);
    background: linear-gradient(180deg, rgba(39, 29, 16, 0.96), rgba(17, 27, 41, 0.94));
}

.custom-top-rating-create-dialog__step-card--complete {
    border-color: rgba(123, 184, 255, 0.24);
}

.custom-top-rating-create-dialog__step-index {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #f7f9fd;
    font-weight: 700;
}

.custom-top-rating-create-dialog__step-label,
.custom-top-rating-create-dialog__field-title,
.custom-top-rating-create-dialog__review-item-label {
    color: rgba(209, 221, 238, 0.64);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.custom-top-rating-create-dialog__step-title,
.custom-top-rating-create-dialog__panel-title,
.custom-top-rating-create-dialog__template-card-title,
.custom-top-rating-create-dialog__filter-group-title,
.custom-top-rating-create-dialog__review-title,
.custom-top-rating-create-dialog__review-item-value {
    color: #f5f8fc;
}

.custom-top-rating-create-dialog__step-title {
    font-weight: 700;
    line-height: 1.3;
}

.custom-top-rating-create-dialog__panel {
    padding: 1.2rem;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(9, 18, 28, 0.94), rgba(14, 25, 38, 0.92));
}

.custom-top-rating-create-dialog__panel-header {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.custom-top-rating-create-dialog__panel-title,
.custom-top-rating-create-dialog__filter-group-title,
.custom-top-rating-create-dialog__template-card-title,
.custom-top-rating-create-dialog__review-title {
    margin: 0;
}

.custom-top-rating-create-dialog__panel-description {
    margin: 0;
    color: rgba(209, 221, 238, 0.72);
    line-height: 1.6;
}

.custom-top-rating-create-dialog__category-grid,
.custom-top-rating-create-dialog__field-grid,
.custom-top-rating-create-dialog__review-grid {
    display: grid;
    gap: 0.8rem;
}

.custom-top-rating-create-dialog__category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 0.9rem;
}

.custom-top-rating-create-dialog__field-grid,
.custom-top-rating-create-dialog__review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.custom-top-rating-create-dialog__field-card,
.custom-top-rating-create-dialog__category-option,
.custom-top-rating-create-dialog__filter-group,
.custom-top-rating-create-dialog__review-item {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.95rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
}

.custom-top-rating-create-dialog__category-option,
.custom-top-rating-create-dialog__template-card,
.custom-top-rating-create-dialog__chip,
.custom-top-rating-create-dialog__action {
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.custom-top-rating-create-dialog__category-option:hover,
.custom-top-rating-create-dialog__template-card:hover,
.custom-top-rating-create-dialog__chip:hover,
.custom-top-rating-create-dialog__action:hover {
    transform: translateY(-1px);
}

.custom-top-rating-create-dialog__category-option {
    align-items: flex-start;
    text-align: left;
}

.custom-top-rating-create-dialog__category-option--selected {
    border-color: rgba(255, 204, 128, 0.72);
    background: linear-gradient(180deg, rgba(70, 47, 18, 0.96), rgba(26, 34, 46, 0.94));
    box-shadow: 0 20px 42px rgba(243, 176, 90, 0.18), inset 0 0 0 1px rgba(255, 224, 163, 0.24);
}

.custom-top-rating-create-dialog__category-title {
    color: #f5f8fc;
    font-size: 1rem;
    font-weight: 700;
}

.custom-top-rating-create-dialog__field-input {
    width: 100%;
    min-height: 3rem;
    padding: 0.8rem 0.95rem;
    border: 1px solid rgba(145, 173, 204, 0.18);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    color: #f5f8fc;
    font: inherit;
}

.custom-top-rating-create-dialog__field-input:focus {
    outline: none;
    border-color: rgba(243, 176, 90, 0.3);
    box-shadow: 0 0 0 3px rgba(243, 176, 90, 0.1);
}

.custom-top-rating-create-dialog__field-card--error {
    border-color: rgba(255, 119, 114, 0.28);
    background: rgba(255, 119, 114, 0.06);
}

.custom-top-rating-create-dialog__field-card--error .custom-top-rating-create-dialog__field-input {
    border-color: rgba(255, 119, 114, 0.35);
    box-shadow: 0 0 0 1px rgba(255, 119, 114, 0.14);
}

.custom-top-rating-create-dialog__field-error {
    color: #ffd0cb;
    font-size: 0.82rem;
    line-height: 1.45;
}

.custom-top-rating-create-dialog__template-group {
    display: grid;
    gap: 0.8rem;
}

.custom-top-rating-create-dialog__template-card {
    width: 100%;
    padding: 0.95rem;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(10, 19, 29, 0.92), rgba(14, 25, 38, 0.88));
    text-align: left;
}

.custom-top-rating-create-dialog__template-card:hover {
    border-color: rgba(123, 184, 255, 0.22);
}

.custom-top-rating-create-dialog__template-card--selected {
    border-color: rgba(255, 204, 128, 0.72);
    background: linear-gradient(180deg, rgba(64, 44, 19, 0.95), rgba(15, 27, 41, 0.9));
    box-shadow: 0 22px 46px rgba(243, 176, 90, 0.18), inset 0 0 0 1px rgba(255, 224, 163, 0.24);
}

.custom-top-rating-create-dialog__template-card-copy {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.custom-top-rating-create-dialog__template-card-header {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    align-items: start;
}

.custom-top-rating-create-dialog__template-card-tag {
    display: inline-flex;
    align-items: center;
    min-height: 1.9rem;
    padding: 0 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(243, 176, 90, 0.2);
    background: rgba(243, 176, 90, 0.08);
    color: #ffd08a;
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
}

.custom-top-rating-create-dialog__filter-groups {
    display: grid;
    gap: 0.8rem;
}

.custom-top-rating-create-dialog__chip-set {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.custom-top-rating-create-dialog__chip {
    min-height: 2.35rem;
    padding: 0.65rem 0.95rem;
    border: 1px solid rgba(145, 173, 204, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.02);
    color: #edf3fb;
    font-weight: 700;
}

.custom-top-rating-create-dialog__chip--selected {
    border-color: rgba(255, 204, 128, 0.68);
    background: linear-gradient(180deg, rgba(83, 57, 22, 0.92), rgba(34, 31, 27, 0.88));
    color: #fff6e5;
    box-shadow: 0 14px 28px rgba(243, 176, 90, 0.16), inset 0 0 0 1px rgba(255, 224, 163, 0.2);
}

.custom-top-rating-create-dialog__review-stack {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.custom-top-rating-create-dialog__review-title {
    font-size: 1.05rem;
}

.custom-top-rating-create-dialog__review-item-value {
    font-size: 1rem;
    font-weight: 700;
}

.custom-top-rating-create-dialog__alert {
    margin-top: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(243, 176, 90, 0.18);
    background: rgba(243, 176, 90, 0.08);
    color: #ffe1b3;
    line-height: 1.55;
}

.custom-top-rating-create-dialog__alert--error {
    border-color: rgba(255, 119, 114, 0.2);
    background: rgba(255, 119, 114, 0.1);
    color: #ffd0cb;
}

.custom-top-rating-create-dialog__action {
    min-height: 3rem;
    padding: 0.8rem 1.1rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    color: #f5f8fc;
    background: rgba(255, 255, 255, 0.03);
}

.custom-top-rating-create-dialog__action--primary {
    color: #101720;
    background: linear-gradient(135deg, #f3b05a, #ffc884);
    box-shadow: 0 18px 34px rgba(243, 176, 90, 0.18);
}

.custom-top-rating-create-dialog__action--secondary,
.custom-top-rating-create-dialog__action--cancel {
    border-color: rgba(145, 173, 204, 0.16);
}

.custom-top-rating-create-dialog__action--cancel {
    background: transparent;
}

.custom-top-rating-create-dialog input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.95);
    cursor: pointer;
}

.custom-top-rating-create-dialog select option {
    color: #081018;
}

@media (max-width: 768px) {
    .custom-top-rating-create-dialog {
        border-radius: 24px !important;
    }

    .custom-top-rating-create-dialog__title-shell,
    .custom-top-rating-create-dialog__content-shell,
    .custom-top-rating-create-dialog__actions-shell {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .custom-top-rating-create-dialog__progress-strip,
    .custom-top-rating-create-dialog__category-grid,
    .custom-top-rating-create-dialog__field-grid,
    .custom-top-rating-create-dialog__review-grid {
        grid-template-columns: 1fr;
    }

    .custom-top-rating-create-dialog__template-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .custom-top-rating-create-dialog__actions-shell {
        flex-direction: column-reverse;
    }

    .custom-top-rating-create-dialog__action,
    .custom-top-rating-create-dialog__chip {
        width: 100%;
    }

    .custom-top-rating-create-dialog__chip {
        justify-content: center;
    }
}