.fp-selector {
    width: 100%;
    max-width: 1180px;
    margin: 38px auto 70px;
    padding: 0 20px;
    box-sizing: border-box;
}

.fp-selector *,
.fp-selector *::before,
.fp-selector *::after {
    box-sizing: border-box;
}

.fp-selector__start,
.fp-selector__quiz {
    position: relative;
    overflow: hidden;
    padding: 48px;
    border: 1px solid #dddddd;
    background: #ffffff;
}

.fp-selector__start::after {
    content: "";
    position: absolute;
    top: -90px;
    right: -90px;
    width: 260px;
    height: 260px;
    border: 45px solid rgba(231, 48, 37, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.fp-selector__badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin-bottom: 28px;
    padding: 5px 11px;
    border: 1px solid #e73025;
    color: #e73025;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fp-selector__intro {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
    gap: 70px;
    align-items: center;
}

.fp-selector__title {
    margin: 0 0 20px;
    color: #171717;
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 400;
    line-height: 1.08;
}

.fp-selector__description {
    max-width: 650px;
    margin: 0 0 15px;
    color: #222222;
    font-size: 20px;
    line-height: 1.55;
}

.fp-selector__note {
    max-width: 650px;
    margin: 0 0 30px;
    color: #777777;
    font-size: 15px;
    line-height: 1.6;
}

.fp-selector__start-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 210px;
    min-height: 52px;
    padding: 13px 28px;
    border: 1px solid #e73025;
    border-radius: 0;
    background: #e73025;
    color: #ffffff;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.fp-selector__start-button:hover {
    background: #ffffff;
    color: #e73025;
}

.fp-selector__steps {
    border-left: 1px solid #dedede;
    padding-left: 34px;
}

.fp-selector__step {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 15px;
    align-items: center;
}

.fp-selector__step + .fp-selector__step {
    margin-top: 27px;
}

.fp-selector__step-number {
    display: flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid #cccccc;
    border-radius: 50%;
    color: #e73025;
    font-size: 14px;
    font-weight: 700;
}

.fp-selector__step-text {
    color: #333333;
    font-size: 15px;
    line-height: 1.45;
}

.fp-selector__progress {
    margin: 0 0 14px;
    padding: 9px 18px 10px;
    border: 1px solid #dddddd;
    background: #fafafa;
}


.fp-selector__progress-track {
    display: flex;
    gap: 0;
    align-items: center;
    overflow-x: auto;
    padding: 2px 0 5px;
    scrollbar-width: thin;
    scrollbar-color: #cccccc transparent;
}

.fp-selector__progress-item {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
}

.fp-selector__progress-item:not(:last-child)::after {
    content: "";
    width: 18px;
    height: 1px;
    margin: 0 7px;
    background: #d3d3d3;
}

.fp-selector__progress-step {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 4px 0;
    border: 0;
    border-bottom: 1px solid transparent;
    background: transparent;
    color: #aaaaaa;
    font: inherit;
    font-size: 12px;
    line-height: 1.25;
    white-space: nowrap;
}

button.fp-selector__progress-step {
    cursor: pointer;
}

.fp-selector__progress-step.is-complete {
    color: #555555;
}

.fp-selector__progress-step.is-complete::before {
    content: "✓";
    margin-right: 5px;
    color: #777777;
    font-size: 11px;
}

button.fp-selector__progress-step.is-complete {
    border-bottom-color: #bbbbbb;
}

button.fp-selector__progress-step.is-complete:hover,
button.fp-selector__progress-step.is-complete:focus-visible {
    border-bottom-color: #e73025;
    color: #e73025;
    outline: none;
}

button.fp-selector__progress-step.is-complete:hover::before,
button.fp-selector__progress-step.is-complete:focus-visible::before {
    color: #e73025;
}

.fp-selector__progress-step.is-current {
    color: #e73025;
    font-weight: 700;
}

.fp-selector__progress-step.is-current::before {
    content: "";
    width: 6px;
    height: 6px;
    margin-right: 6px;
    border-radius: 50%;
    background: #e73025;
}

.fp-selector__quiz-header {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 35px;
}

.fp-selector__eyebrow {
    margin-bottom: 10px;
    color: #e73025;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fp-selector__question-title {
    margin: 0;
    color: #171717;
    font-size: 30px;
    font-weight: 400;
    line-height: 1.25;
}

.fp-selector__back-button {
    flex: 0 0 auto;
    padding: 8px 0;
    border: 0;
    border-bottom: 1px solid #999999;
    background: transparent;
    color: #555555;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.fp-selector__back-button:hover {
    border-color: #e73025;
    color: #e73025;
}

.fp-selector__placeholder {
    padding: 30px;
    border: 1px dashed #cccccc;
    background: #fafafa;
    color: #777777;
    font-size: 15px;
    text-align: center;
}

.fp-selector__question-description {
    max-width: 720px;
    margin: 14px 0 0;
    color: #777777;
    font-size: 15px;
    line-height: 1.6;
}

.fp-selector__options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.fp-selector__option {
    display: flex;
    width: 100%;
    min-height: 105px;
    gap: 16px;
    align-items: flex-start;
    padding: 22px;
    border: 1px solid #d8d8d8;
    background: #ffffff;
    color: #222222;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.fp-selector__option:hover {
    border-color: #999999;
}

.fp-selector__option.is-selected {
    border-color: #e73025;
    background: #fffafa;
}

.fp-selector__option-marker {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    border: 1px solid #aaaaaa;
    border-radius: 50%;
    background: #ffffff;
}

.fp-selector__option.is-selected .fp-selector__option-marker {
    border: 6px solid #e73025;
}

.fp-selector__option-content {
    display: block;
}

.fp-selector__option-title {
    display: block;
    margin-bottom: 7px;
    color: #222222;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.fp-selector__option-description {
    display: block;
    color: #777777;
    font-size: 14px;
    line-height: 1.5;
}

.fp-selector__navigation {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    margin-top: 32px;
}

.fp-selector__next-button,
.fp-selector__restart-button {
    min-width: 170px;
    min-height: 48px;
    padding: 12px 25px;
    border: 1px solid #e73025;
    background: #e73025;
    color: #ffffff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.fp-selector__next-button:disabled {
    border-color: #cccccc;
    background: #cccccc;
    cursor: default;
}

.fp-selector__next-button:not(:disabled):hover,
.fp-selector__restart-button:hover {
    background: #ffffff;
    color: #e73025;
}

.fp-selector__summary {
    margin-top: 30px;
    border-top: 1px solid #dedede;
}

.fp-selector__summary-row {
    display: grid;
    grid-template-columns: minmax(180px, 0.4fr) minmax(0, 1fr);
    gap: 25px;
    padding: 18px 0;
    border-bottom: 1px solid #dedede;
}

.fp-selector__summary-label {
    color: #777777;
    font-size: 14px;
}

.fp-selector__summary-value {
    color: #222222;
    font-size: 15px;
    font-weight: 700;
}

@media (max-width: 800px) {
    .fp-selector {
        margin-top: 20px;
        padding: 0 14px;
    }

    .fp-selector__start,
    .fp-selector__quiz {
        padding: 30px 24px;
    }

    .fp-selector__intro {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .fp-selector__description {
        font-size: 18px;
    }

    .fp-selector__steps {
        border-top: 1px solid #dedede;
        border-left: 0;
        padding-top: 30px;
        padding-left: 0;
    }

    .fp-selector__quiz-header {
        display: block;
    }

    .fp-selector__back-button {
        margin-top: 20px;
    }
}

@media (max-width: 700px) {
    .fp-selector__progress {
        display: none !important;
    }

    .fp-selector__options {
        grid-template-columns: 1fr;
    }

    .fp-selector__navigation {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .fp-selector__next-button,
    .fp-selector__restart-button {
        width: 100%;
    }

    .fp-selector__back-button {
        align-self: flex-start;
        margin-top: 0;
    }

    .fp-selector__summary-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .fp-selector__start,
    .fp-selector__quiz {
        padding: 25px 18px;
    }

    .fp-selector__title {
        font-size: 33px;
    }

    .fp-selector__start-button {
        width: 100%;
    }

    .fp-selector__question-title {
        font-size: 25px;
    }
}

.fp-selector__recommendations {
    display: grid;
    gap: 16px;
    margin-top: 32px;
}

.fp-selector__recommendation {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 20px;
    padding: 24px;
    border: 1px solid #d9d9d9;
    background: #ffffff;
}

.fp-selector__recommendation:first-child {
    border-color: #e73025;
    background: #fffafa;
}

.fp-selector__recommendation-rank {
    display: flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid #cccccc;
    border-radius: 50%;
    color: #e73025;
    font-size: 16px;
    font-weight: 700;
}

.fp-selector__recommendation:first-child .fp-selector__recommendation-rank {
    border-color: #e73025;
    background: #e73025;
    color: #ffffff;
}

.fp-selector__recommendation-top {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    justify-content: space-between;
}

.fp-selector__recommendation-name {
    margin: 0;
    color: #202020;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
}

.fp-selector__recommendation-score {
    flex: 0 0 auto;
    padding: 5px 9px;
    border: 1px solid #dddddd;
    color: #777777;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.fp-selector__recommendation-summary {
    margin: 10px 0 15px;
    color: #555555;
    font-size: 15px;
    line-height: 1.55;
    white-space: pre-line;
}

.fp-selector__recommendation-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fp-selector__recommendation-meta span {
    padding: 5px 9px;
    background: #f2f2f2;
    color: #555555;
    font-size: 12px;
    line-height: 1.2;
}

.fp-selector__recommendation-reasons {
    margin: 17px 0 0;
    padding-left: 19px;
    color: #444444;
    font-size: 14px;
    line-height: 1.55;
}

.fp-selector__recommendation-reasons li + li {
    margin-top: 5px;
}

.fp-selector__answers-heading {
    margin-top: 42px;
    color: #222222;
    font-size: 18px;
    font-weight: 700;
}

.fp-selector__empty-result {
    display: grid;
    gap: 8px;
    padding: 24px;
    border: 1px dashed #cccccc;
    background: #fafafa;
    color: #666666;
    font-size: 14px;
    line-height: 1.55;
}

.fp-selector__empty-result strong {
    color: #222222;
    font-size: 16px;
}

@media (max-width: 700px) {
    .fp-selector__recommendation {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 14px;
        padding: 19px 16px;
    }

    .fp-selector__recommendation-rank {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .fp-selector__recommendation-top {
        display: block;
    }

    .fp-selector__recommendation-name {
        font-size: 21px;
    }

    .fp-selector__recommendation-score {
        display: inline-flex;
        margin-top: 9px;
    }
}


/* v0.4.0: вопросы с несколькими вариантами */
.fp-selector__quiz[data-fp-multiple="Y"] .fp-selector__option-marker {
    border-radius: 3px;
}

.fp-selector__quiz[data-fp-multiple="Y"] .fp-selector__option.is-selected .fp-selector__option-marker {
    position: relative;
    border: 1px solid #e73025;
    background: #e73025;
}

.fp-selector__quiz[data-fp-multiple="Y"] .fp-selector__option.is-selected .fp-selector__option-marker::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 6px;
    width: 5px;
    height: 9px;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(45deg);
}

.fp-selector__selection-status {
    margin-top: 15px;
    color: #777777;
    font-size: 13px;
    line-height: 1.45;
}

.fp-selector__selection-status.is-limit {
    color: #e73025;
    font-weight: 700;
}

/* v0.6.0: административная диагностика данных каталога */
.fp-selector__diagnostics {
    position: relative;
    z-index: 2;
    margin-top: 42px;
    border-top: 1px solid #dedede;
}

.fp-selector__diagnostics-toggle {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    padding: 22px 0 0;
    color: #222222;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.fp-selector__diagnostics-toggle::-webkit-details-marker {
    display: none;
}

.fp-selector__diagnostics-toggle::after {
    content: "+";
    flex: 0 0 auto;
    color: #e73025;
    font-size: 25px;
    font-weight: 400;
    line-height: 1;
}

.fp-selector__diagnostics[open] .fp-selector__diagnostics-toggle::after {
    content: "−";
}

.fp-selector__diagnostics-toggle-note {
    margin-left: auto;
    color: #888888;
    font-size: 12px;
    font-weight: 400;
}

.fp-selector__diagnostics-body {
    padding-top: 24px;
}

.fp-selector__diagnostics-description {
    max-width: 850px;
    margin: 0 0 20px;
    color: #666666;
    font-size: 14px;
    line-height: 1.6;
}

.fp-selector__diagnostic-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

.fp-selector__diagnostic-stat {
    padding: 16px;
    border: 1px solid #dddddd;
    background: #fafafa;
}

.fp-selector__diagnostic-stat strong,
.fp-selector__diagnostic-stat span {
    display: block;
}

.fp-selector__diagnostic-stat strong {
    margin-bottom: 5px;
    color: #222222;
    font-size: 24px;
    line-height: 1;
}

.fp-selector__diagnostic-stat span {
    color: #777777;
    font-size: 12px;
}

.fp-selector__diagnostic-stat.is-complete {
    border-left: 3px solid #3e9b55;
}

.fp-selector__diagnostic-stat.is-warning {
    border-left: 3px solid #d49b20;
}

.fp-selector__diagnostic-stat.is-error {
    border-left: 3px solid #d9473f;
}

.fp-selector__diagnostic-table-wrap {
    overflow-x: auto;
    border: 1px solid #dedede;
    background: #ffffff;
}

.fp-selector__diagnostic-table {
    width: 100%;
    min-width: 1250px;
    border-collapse: collapse;
    color: #333333;
    font-size: 12px;
    line-height: 1.45;
}

.fp-selector__diagnostic-table th,
.fp-selector__diagnostic-table td {
    padding: 13px 12px;
    border-right: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
    vertical-align: top;
    text-align: left;
}

.fp-selector__diagnostic-table th:last-child,
.fp-selector__diagnostic-table td:last-child {
    border-right: 0;
}

.fp-selector__diagnostic-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f4f4f4;
    color: #555555;
    font-size: 11px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.fp-selector__diagnostic-table tbody tr:last-child td {
    border-bottom: 0;
}

.fp-selector__diagnostic-table tbody tr.is-warning {
    background: #fffdf7;
}

.fp-selector__diagnostic-table tbody tr.is-error {
    background: #fff9f8;
}

.fp-selector__diagnostic-model strong,
.fp-selector__diagnostic-model span,
.fp-selector__diagnostic-position span,
.fp-selector__diagnostic-tone span {
    display: block;
}

.fp-selector__diagnostic-model strong {
    margin-bottom: 4px;
    color: #222222;
    font-size: 14px;
}

.fp-selector__diagnostic-model span,
.fp-selector__diagnostic-source,
.fp-selector__diagnostic-match,
.fp-selector__diagnostic-na {
    color: #888888;
    font-size: 11px;
}

.fp-selector__diagnostic-position span + span,
.fp-selector__diagnostic-tone span + span {
    margin-top: 4px;
}

.fp-selector__diagnostic-source {
    max-width: 230px;
    margin-top: 7px !important;
    overflow-wrap: anywhere;
}

.fp-selector__diagnostic-source a {
    color: #e73025;
    text-decoration: none;
}

.fp-selector__diagnostic-source a:hover {
    text-decoration: underline;
}

.fp-selector__diagnostic-match {
    margin-top: 3px !important;
}

.fp-selector__diagnostic-type,
.fp-selector__diagnostic-badge {
    display: inline-flex;
    padding: 4px 7px;
    border: 1px solid #d3d3d3;
    background: #f5f5f5;
    color: #555555;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.fp-selector__diagnostic-type.is-active {
    border-color: #e73025;
    background: #fff7f6;
    color: #e73025;
}

.fp-selector__diagnostic-badge.is-complete {
    border-color: #8bc498;
    background: #f3fbf5;
    color: #25753a;
}

.fp-selector__diagnostic-badge.is-warning {
    border-color: #e5c16e;
    background: #fffaf0;
    color: #8b6412;
}

.fp-selector__diagnostic-badge.is-error {
    border-color: #e3a09c;
    background: #fff3f2;
    color: #a82c25;
}

.fp-selector__diagnostic-status {
    min-width: 260px;
}

.fp-selector__diagnostic-status ul {
    margin: 9px 0 0;
    padding: 0 0 0 16px;
}

.fp-selector__diagnostic-status li + li {
    margin-top: 4px;
}

.fp-selector__diagnostic-status li.is-error {
    color: #a82c25;
}

.fp-selector__diagnostic-status li.is-warning {
    color: #8b6412;
}

@media (max-width: 800px) {
    .fp-selector__diagnostics-toggle {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .fp-selector__diagnostics-toggle-note {
        width: calc(100% - 35px);
        margin-left: 0;
    }

    .fp-selector__diagnostic-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.fp-selector__diagnostic-load-error {
    margin: 0 0 20px;
    padding: 14px 16px;
    border: 1px solid #e3a09c;
    background: #fff3f2;
    color: #a82c25;
    font-size: 13px;
    line-height: 1.5;
}

.fp-selector__diagnostic-section,
.fp-selector__diagnostic-section-id {
    display: block;
}

.fp-selector__diagnostic-section {
    margin-bottom: 4px;
    color: #333333;
    font-weight: 700;
}

.fp-selector__diagnostic-section-id {
    color: #888888;
    font-size: 11px;
}

.fp-selector__diagnostic-model a,
.fp-selector__recommendation-name a {
    color: inherit;
    text-decoration: none;
}

.fp-selector__diagnostic-model a:hover,
.fp-selector__recommendation-name a:hover {
    color: #e73025;
}

/* v0.9.0: анализ и копируемая плоская таблица параметров */
.fp-selector__diagnostic-analysis,
.fp-selector__diagnostic-export {
    margin: 24px 0;
    padding: 22px;
    border: 1px solid #dedede;
    background: #fafafa;
}

.fp-selector__diagnostic-analysis-head h3,
.fp-selector__diagnostic-export-head h3 {
    margin: 0 0 7px;
    color: #222222;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.fp-selector__diagnostic-analysis-head p,
.fp-selector__diagnostic-export-head p {
    max-width: 820px;
    margin: 0;
    color: #777777;
    font-size: 13px;
    line-height: 1.55;
}

.fp-selector__diagnostic-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.fp-selector__diagnostic-metric {
    padding: 15px;
    border: 1px solid #dddddd;
    background: #ffffff;
}

.fp-selector__diagnostic-metric span,
.fp-selector__diagnostic-metric strong,
.fp-selector__diagnostic-metric small {
    display: block;
}

.fp-selector__diagnostic-metric span {
    margin-bottom: 8px;
    color: #777777;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.fp-selector__diagnostic-metric strong {
    color: #222222;
    font-size: 23px;
    line-height: 1;
}

.fp-selector__diagnostic-metric small {
    margin-top: 7px;
    color: #888888;
    font-size: 11px;
    line-height: 1.4;
}

.fp-selector__diagnostic-magnets {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #dddddd;
}

.fp-selector__diagnostic-magnets > strong {
    display: block;
    margin-bottom: 10px;
    color: #444444;
    font-size: 12px;
}

.fp-selector__diagnostic-magnets > div {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.fp-selector__diagnostic-magnets span {
    display: inline-flex;
    padding: 6px 9px;
    border: 1px solid #d8d8d8;
    background: #ffffff;
    color: #555555;
    font-size: 11px;
}

.fp-selector__diagnostic-export {
    background: #ffffff;
}

.fp-selector__diagnostic-export-head {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 18px;
}

.fp-selector__diagnostic-copy {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
}

.fp-selector__diagnostic-copy-button {
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid #e73025;
    background: #e73025;
    color: #ffffff;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.fp-selector__diagnostic-copy-button:hover {
    background: #ffffff;
    color: #e73025;
}

.fp-selector__diagnostic-copy span {
    min-width: 95px;
    color: #3e8f50;
    font-size: 11px;
}

.fp-selector__diagnostic-copy span.is-error {
    color: #a82c25;
}

.fp-selector__diagnostic-export-table-wrap {
    max-height: 520px;
    overflow: auto;
    border: 1px solid #dedede;
}

.fp-selector__diagnostic-export-table {
    width: 100%;
    min-width: 1180px;
    border-collapse: collapse;
    color: #333333;
    font-size: 12px;
    line-height: 1.4;
}

.fp-selector__diagnostic-export-table th,
.fp-selector__diagnostic-export-table td {
    padding: 10px 11px;
    border-right: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
    vertical-align: top;
    text-align: left;
}

.fp-selector__diagnostic-export-table th:last-child,
.fp-selector__diagnostic-export-table td:last-child {
    border-right: 0;
}

.fp-selector__diagnostic-export-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f4f4f4;
    color: #555555;
    font-size: 10px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.fp-selector__diagnostic-export-table tbody tr:nth-child(even) {
    background: #fbfbfb;
}

.fp-selector__diagnostic-export-table small {
    display: block;
    margin-top: 3px;
    color: #999999;
    font-size: 10px;
}

.fp-selector__diagnostic-export-text {
    margin-top: 14px;
}

.fp-selector__diagnostic-export-text summary {
    color: #666666;
    font-size: 12px;
    cursor: pointer;
}

.fp-selector__diagnostic-export-text textarea {
    display: block;
    width: 100%;
    min-height: 260px;
    margin-top: 12px;
    padding: 13px;
    resize: vertical;
    border: 1px solid #cccccc;
    background: #fcfcfc;
    color: #333333;
    font-family: Consolas, Monaco, monospace;
    font-size: 11px;
    line-height: 1.45;
    white-space: pre;
}

@media (max-width: 900px) {
    .fp-selector__diagnostic-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fp-selector__diagnostic-export-head {
        display: block;
    }

    .fp-selector__diagnostic-copy {
        margin-top: 16px;
    }
}

@media (max-width: 520px) {
    .fp-selector__diagnostic-analysis,
    .fp-selector__diagnostic-export {
        padding: 16px;
    }

    .fp-selector__diagnostic-metric-grid {
        grid-template-columns: 1fr;
    }

    .fp-selector__diagnostic-copy {
        align-items: flex-start;
        flex-direction: column;
    }

    .fp-selector__diagnostic-copy-button {
        width: 100%;
    }
}

/* v0.9.4: процент совпадения и предупреждения о компромиссном результате */
.fp-selector__result-warning {
    margin-bottom: 18px;
    padding: 18px 20px;
    border: 1px solid #e2b75a;
    background: #fffaf0;
    color: #5f4a1c;
    font-size: 14px;
    line-height: 1.55;
}

.fp-selector__result-warning strong {
    display: block;
    margin-bottom: 7px;
    color: #4b3912;
    font-size: 15px;
}

.fp-selector__result-warning ul {
    margin: 0;
    padding-left: 19px;
}

.fp-selector__result-warning li + li {
    margin-top: 5px;
}

.fp-selector__recommendation-score.is-high {
    border-color: #a9d5b3;
    background: #f4fbf6;
    color: #347345;
}

.fp-selector__recommendation-score.is-medium {
    border-color: #ead29b;
    background: #fffaf0;
    color: #8a6518;
}

.fp-selector__recommendation-score.is-low {
    border-color: #e4aaa6;
    background: #fff7f6;
    color: #a33a33;
}

/* v0.9.5: дополнительная рекомендация при узком фильтре по магниту */
.fp-selector__magnet-alternative {
    margin-top: 28px;
    padding-top: 25px;
    border-top: 1px solid #dedede;
}

.fp-selector__magnet-alternative-title {
    color: #222222;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}

.fp-selector__magnet-alternative-note {
    max-width: 760px;
    margin: 7px 0 16px;
    color: #777777;
    font-size: 14px;
    line-height: 1.55;
}

.fp-selector__recommendation.is-alternative {
    border-style: dashed;
    border-color: #bdbdbd;
    background: #fafafa;
}

.fp-selector__recommendation.is-alternative .fp-selector__recommendation-rank {
    border-color: #e73025;
    background: #ffffff;
    color: #e73025;
}


/* v1.0.3: цветовое сравнение параметров рекомендации с запросом */
.fp-selector__parameter-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 2px;
    color: #777777;
    font-size: 12px;
}

.fp-selector__parameter-legend span {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 4px 9px;
    border: 1px solid #d9d9d9;
    background: #f7f7f7;
}

.fp-selector__recommendation-meta .fp-selector__metric {
    display: grid;
    gap: 3px;
    min-height: 42px;
    padding: 7px 10px;
    border: 1px solid #dddddd;
    background: #f7f7f7;
    color: #555555;
    line-height: 1.25;
}

.fp-selector__recommendation-meta .fp-selector__metric strong {
    font-size: 12px;
    font-weight: 700;
}

.fp-selector__recommendation-meta .fp-selector__metric small {
    font-size: 10px;
    font-weight: 600;
    line-height: 1.25;
    opacity: 0.9;
}

.fp-selector__parameter-legend .is-match,
.fp-selector__recommendation-meta .fp-selector__metric.is-match {
    border-color: #9bcba7;
    background: #f1faf3;
    color: #2f6f40;
}

.fp-selector__parameter-legend .is-close,
.fp-selector__recommendation-meta .fp-selector__metric.is-close {
    border-color: #e2c77f;
    background: #fff9e9;
    color: #7b5b12;
}

.fp-selector__parameter-legend .is-mismatch,
.fp-selector__recommendation-meta .fp-selector__metric.is-mismatch {
    border-color: #dfa39f;
    background: #fff3f2;
    color: #9b3434;
}

.fp-selector__recommendation-meta .fp-selector__metric.is-neutral {
    min-height: auto;
    padding: 3px 0;
    border-color: transparent;
    background: transparent;
    color: #666666;
}

@media (max-width: 560px) {
    .fp-selector__recommendation-meta {
        display: grid;
        grid-template-columns: 1fr;
    }

    .fp-selector__recommendation-meta .fp-selector__metric {
        width: 100%;
    }
}

/* v1.0.15: итоговая рекомендация без дублей и с зелёным акцентом */
.fp-selector__our-recommendation {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 2px solid #222222;
}

.fp-selector__our-recommendation-title {
    color: #171717;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.fp-selector__our-recommendation-note {
    max-width: 760px;
    margin: 7px 0 17px;
    color: #666666;
    font-size: 14px;
    line-height: 1.55;
}

.fp-selector__recommendation.is-our-recommendation {
    border-width: 2px;
    border-color: #9bcba7;
    background: #f1faf3;
}

.fp-selector__recommendation.is-our-recommendation .fp-selector__recommendation-rank {
    border-color: #2f6f40;
    background: #2f6f40;
    color: #ffffff;
    font-size: 17px;
}

/* v1.0.35: ненавязчивое отображение минимальной цены рядом с названием */
.fp-selector__recommendation-name {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}

.fp-selector__recommendation-price {
    color: #8a8a8a;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .fp-selector__recommendation-price {
        font-size: 13px;
    }
}


/* v1.0.48: компактное редактирование параметров на странице результатов */
.fp-selector__result-parameters {
    margin-top: 14px;
    padding: 9px 12px;
    border: 1px solid #e2e2e2;
    background: #fafafa;
}

.fp-selector__result-parameters-head {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.fp-selector__result-parameters-inline {
    display: flex;
    min-width: 0;
    gap: 6px;
    align-items: baseline;
}

.fp-selector__result-parameters-label {
    flex: 0 0 auto;
    color: #929292;
    font-size: 12px;
    line-height: 1.35;
}

.fp-selector__summary {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    gap: 0;
    margin: 0;
    border: 0;
    color: #555555;
    font-size: 12px;
    line-height: 1.4;
}

.fp-selector__summary-item {
    display: inline;
    min-width: 0;
}

.fp-selector__summary-item:not(:last-child)::after {
    content: " · ";
    color: #b0b0b0;
    white-space: pre;
}

.fp-selector__summary-value {
    color: #555555;
    font-size: 12px;
    font-weight: 400;
}

.fp-selector__result-edit-toggle {
    flex: 0 0 auto;
    min-height: 0;
    padding: 2px 0;
    border: 0;
    border-bottom: 1px dotted currentColor;
    background: transparent;
    color: #777777;
    font: inherit;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.25;
    cursor: pointer;
    transition: color .2s ease;
}

.fp-selector__result-edit-toggle:hover,
.fp-selector__result-edit-toggle:focus-visible {
    color: #e73025;
}

.fp-selector__result-editor {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e4e4e4;
}

.fp-selector__editor-field + .fp-selector__editor-field {
    margin-top: 14px;
}

.fp-selector__editor-label {
    margin-bottom: 6px;
    color: #444444;
    font-size: 12px;
    font-weight: 700;
}

.fp-selector__editor-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.fp-selector__editor-option {
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid #cecece;
    background: #ffffff;
    color: #444444;
    font: inherit;
    font-size: 12px;
    line-height: 1.25;
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}

.fp-selector__editor-option:hover,
.fp-selector__editor-option:focus-visible {
    border-color: #999999;
    color: #111111;
}

.fp-selector__editor-option.is-selected {
    border-color: #e73025;
    background: #e73025;
    color: #ffffff;
}

.fp-selector__editor-hint {
    margin-top: 5px;
    color: #888888;
    font-size: 11px;
}

.fp-selector__result-editor-status {
    min-height: 16px;
    margin-top: 10px;
    color: #47734f;
    font-size: 11px;
}

.fp-selector__result-editor-status.is-error {
    color: #9b3434;
}

.fp-selector__recommendations.is-updating {
    opacity: .55;
    pointer-events: none;
    transition: opacity .15s ease;
}

.fp-selector__editor-empty p {
    margin: 6px 0 0;
}

@media (max-width: 700px) {
    .fp-selector__result-parameters {
        margin-top: 12px;
        padding: 8px 10px;
    }

    .fp-selector__result-parameters-head {
        gap: 8px;
        align-items: flex-start;
    }

    .fp-selector__result-parameters-inline {
        display: block;
    }

    .fp-selector__result-parameters-label {
        display: none;
    }

    .fp-selector__summary {
        font-size: 11px;
        line-height: 1.35;
    }

    .fp-selector__summary-value,
    .fp-selector__result-edit-toggle {
        font-size: 11px;
    }

    .fp-selector__editor-options {
        display: grid;
        grid-template-columns: 1fr;
    }

    .fp-selector__editor-option {
        width: 100%;
        text-align: left;
    }
}
