/* Конфигуратор компьютера: слева сцена (3D / чертёж), справа панель комплектующих; на мобильных — друг под другом.
   Панель, инструменты и карточки — на том же языке, что терраса и ландшафт (deck.css, landscape.css) */
.pccfg {
    grid-template-columns: minmax(0, 1fr) 380px;
    color: var(--color-whte, #fff);
}

/* Липкая колонка, высота сцены и плашка итога — общие (configurator-kit/kit.css: .cfg-view, .cfg-stage, .cfg-deal) */
.pccfg__stage {
    border-radius: 32px;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 85%, rgba(151, 191, 116, .2), transparent 60%),
        linear-gradient(180deg, #2b2e2b 0%, #1d1f1d 100%);
    border: 1px solid rgba(255, 255, 255, .08);
    transition: background .6s;
}

.pccfg__stage.is-night {
    background:
        radial-gradient(ellipse at 50% 80%, rgba(80, 120, 255, .08), transparent 55%),
        linear-gradient(180deg, #111312 0%, #070808 100%);
}

/* Чертёж: синяя «калька» с сеткой */
.pccfg__stage.is-2d {
    background:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 24px 24px,
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 24px 24px,
        #17324d;
}

.pccfg__stage > canvas {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    display: block;
    cursor: grab;
    touch-action: none;
}

.pccfg__stage > canvas:active {
    cursor: grabbing;
}

.pccfg__stage.is-2d > canvas,
html.has-site-cursor .pccfg__stage.is-2d > canvas {
    cursor: default !important;
}

.pccfg__loader {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    transition: opacity .4s;
}

.pccfg__loader span {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, .15);
    border-top-color: var(--color-alt, #97bf74);
    animation: pccfg-spin 1s linear infinite;
}

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

.pccfg--ready .pccfg__loader {
    opacity: 0;
    pointer-events: none;
}

.pccfg__nogl {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 56px;
    padding: 0 24px;
    text-align: center;
    color: rgba(255, 255, 255, .7);
}

.pccfg--nogl .pccfg__nogl {
    display: block;
}

.pccfg--nogl .pccfg__tools,
.pccfg--nogl .pccfg__loader {
    display: none;
}

/* Панель инструментов на сцене */
.pccfg__tools {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pccfg__tool {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(0, 0, 0, .3);
    color: #fff;
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s, opacity .2s;
}

.pccfg__tool:hover:not(:disabled) {
    border-color: var(--color-alt, #97bf74);
    background: rgba(0, 0, 0, .5);
}

.pccfg__tool.is-active,
.pccfg__tool.is-active:hover:not(:disabled) {
    background: var(--color-alt, #97bf74);
    border-color: var(--color-alt, #97bf74);
    color: #1d1f1d;
}

.pccfg__tool:disabled {
    opacity: .35;
    cursor: default;
}

/* Вентилятор на кнопке «анимация» крутится, пока она включена */
.pccfg__tool[data-pc-tool="fans"].is-active svg {
    animation: pccfg-spin 1.6s linear infinite;
}

.pccfg__mode {
    display: flex;
    gap: 2px;
    padding: 3px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(0, 0, 0, .3);
}

.pccfg__mode button {
    min-width: 34px;
    padding: 7px 12px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.pccfg__mode button.is-active {
    background: var(--color-alt, #97bf74);
    color: #1d1f1d;
}

.pccfg__icon-sun,
.pccfg__tool--night.is-active .pccfg__icon-moon {
    display: none;
}

.pccfg__tool--night.is-active .pccfg__icon-sun {
    display: block;
}

/* Совместимость: значок в левом верхнем углу сцены и список замечаний */
.pccfg__status {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 14px 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(0, 0, 0, .35);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}

.pccfg__status:hover {
    background: rgba(0, 0, 0, .55);
}

.pccfg__status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--st, #97bf74);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--st, #97bf74) 25%, transparent);
}

.pccfg__status.is-ok { --st: #97bf74; }
.pccfg__status.is-warn { --st: #f2b84b; }
.pccfg__status.is-error { --st: #ff5a5f; }

.pccfg__status.is-error .pccfg__status-dot {
    animation: pccfg-pulse 1.4s ease-in-out infinite;
}

@keyframes pccfg-pulse {
    50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--st) 10%, transparent); }
}

.pccfg__issues {
    position: absolute;
    top: 64px;
    left: 16px;
    z-index: 4;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: min(360px, calc(100% - 32px));
    padding: 6px;
    border-radius: 18px;
    background: #1d1f1d;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .4);
    animation: pccfg-fade .2s ease-out;
}

.pccfg__issues[hidden] {
    display: none;
}

@keyframes pccfg-fade {
    from { opacity: 0; transform: translateY(-4px); }
}

.pccfg__issue {
    display: block;
    padding: 9px 12px 9px 30px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, .05);
    color: #fff;
    font: inherit;
    font-size: 13px;
    line-height: 1.35;
    text-align: left;
    position: relative;
    cursor: pointer;
}

.pccfg__issue::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 14px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #97bf74;
}

.pccfg__issue.is-warn::before { background: #f2b84b; }
.pccfg__issue.is-error::before { background: #ff5a5f; }

.pccfg__issue:hover:not(.is-ok) {
    background: rgba(255, 255, 255, .1);
}

.pccfg__issue.is-ok {
    cursor: default;
}

/* Подпись детали под курсором */
.pccfg__tip {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 4;
    max-width: 260px;
    padding: 6px 10px;
    border-radius: 10px;
    background: var(--color-alt, #97bf74);
    color: #1d1f1d;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    pointer-events: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .3);
}

.pccfg__tip[hidden] {
    display: none;
}

.pccfg__hint {
    position: absolute;
    left: 20px;
    bottom: 16px;
    z-index: 2;
    max-width: calc(100% - 40px);
    font-size: 13px;
    line-height: 1.35;
    color: rgba(255, 255, 255, .45);
    pointer-events: none;
}

/* Лист чертежа: подписи видов, размеры, выноски и штамп поверх холста */
.pccfg__sheet {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.pccfg__sheet[hidden] {
    display: none;
}

.pccfg__dim,
.pccfg__mark,
.pccfg__caption {
    position: absolute;
    left: 0;
    top: 0;
}

.pccfg__caption {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: rgba(232, 241, 255, .75);
    white-space: nowrap;
}

.pccfg__dim {
    padding: 2px 6px;
    border-radius: 6px;
    background: var(--color-alt, #97bf74);
    color: #1d1f1d;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.pccfg__mark {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-alt, #97bf74);
    color: #1d1f1d;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 0 0 2px #17324d;
}

.pccfg__stamp {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 14px;
    border: 1px solid rgba(232, 241, 255, .6);
    font-size: 12px;
    line-height: 1.3;
    color: rgba(232, 241, 255, .9);
}

.pccfg__stamp[hidden] {
    display: none;
}

/* Строки штампа не переносятся: на снимке каждая рисуется одной строкой */
.pccfg__stamp > *,
.pccfg__legend > * {
    white-space: nowrap;
}

.pccfg__stamp.is-compact {
    gap: 1px;
    padding: 5px 7px;
    font-size: 9px;
    line-height: 1.25;
}

.pccfg__legend {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 4px 0;
    border-block: 1px solid rgba(232, 241, 255, .25);
}

.pccfg__legend:empty,
.pccfg__legend[hidden],
.pccfg__mark[hidden] {
    display: none;
}

/* Панель */
.pccfg__panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 22px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: #1d1f1d;
}

.pccfg__group {
    min-width: 0;
    border-radius: 18px;
    transition: box-shadow .3s, background .3s;
}

/* Деталь выбрали на сцене — раздел коротко подсвечивается */
.pccfg__group.is-flash {
    animation: pccfg-flash-sec 1.4s ease-out;
}

@keyframes pccfg-flash-sec {
    0%, 30% { box-shadow: 0 0 0 10px rgba(151, 191, 116, .18); background: rgba(151, 191, 116, .18); }
    100% { box-shadow: 0 0 0 10px rgba(151, 191, 116, 0); background: rgba(151, 191, 116, 0); }
}

.pccfg__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.pccfg__label {
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--color-alt, #97bf74);
}

.pccfg__sublabel {
    margin: 4px 0 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, .55);
}

.pccfg__sublabel ~ .pccfg__sublabel {
    margin-top: 12px;
}

.pccfg__note {
    min-width: 0;
    overflow: hidden;
    font-size: 12px;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: rgba(255, 255, 255, .55);
}

.pccfg__meta {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.4;
    color: rgba(255, 255, 255, .55);
}

/* Карточки каталога «снимок + название + характеристики» в один ряд, что не влезло — свайпом */
.pccfg__cards {
    display: flex;
    gap: 8px;
    margin: -2px;
    padding: 2px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

.pccfg__cards::-webkit-scrollbar {
    display: none;
}

/* Стрелка прокрутки ряда — на середине снимка (kit.css: .cfg-arrow) */
.cfg-rail:has(> .pccfg__cards) {
    --cfg-arrow-top: 21px;
}

.pccfg__card {
    flex: 0 0 104px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    scroll-snap-align: start;
    cursor: pointer;
}

.pccfg__card[hidden] {
    display: none;
}

.pccfg__card-img {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    margin-bottom: 3px;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(#f1f3f0, #d9ddd6);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
    transition: box-shadow .2s, opacity .2s;
}

.pccfg__card-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pccfg__card-img::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 0 var(--color-alt, #97bf74);
    transition: box-shadow .2s;
}

.pccfg__card:hover .pccfg__card-img::after {
    box-shadow: inset 0 0 0 2px var(--color-alt, #97bf74);
}

.pccfg__card.is-active .pccfg__card-img::after {
    box-shadow: inset 0 0 0 3px var(--color-alt, #97bf74);
}

.pccfg__card-name {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}

.pccfg__card.is-active .pccfg__card-name {
    color: var(--color-alt, #97bf74);
}

.pccfg__card-sub {
    font-size: 11px;
    line-height: 1.25;
    color: rgba(255, 255, 255, .5);
}

.pccfg__card-sub.is-why {
    color: #ff8a8e;
}

/* Недоступный вариант: приглушён, причина — вместо характеристик */
.pccfg__card.is-off {
    cursor: not-allowed;
}

.pccfg__card.is-off .pccfg__card-img {
    opacity: .4;
}

.pccfg__card.is-off:hover .pccfg__card-img::after {
    box-shadow: none;
}

/* Значок на карточке: ! — придётся заменить или не хватит, ✓ — рекомендуем */
.pccfg__badge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    line-height: 1;
    color: #1d1f1d;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
}

.pccfg__badge[hidden] {
    display: none;
}

.pccfg__badge.is-warn { background: #f2b84b; }
.pccfg__badge.is-error { background: #ff5a5f; color: #fff; }
.pccfg__badge.is-ok { background: var(--color-alt, #97bf74); }

.pccfg__badge.is-warn::before,
.pccfg__badge.is-error::before {
    content: "!";
}

.pccfg__badge.is-ok::before {
    content: "✓";
}

/* Слоты платы: память и видеокарты — выбрать слот, затем модуль */
.pccfg__slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 10px;
}

.pccfg__slot {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
    padding: 8px 8px 8px 14px;
    border: 1px dashed rgba(255, 255, 255, .22);
    border-radius: 12px;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}

.pccfg__slot.is-filled {
    border-style: solid;
    background: rgba(255, 255, 255, .06);
}

.pccfg__slot.is-sel {
    border: 1px solid var(--color-alt, #97bf74);
    box-shadow: inset 0 0 0 1px var(--color-alt, #97bf74);
}

.pccfg__slot:hover:not(:disabled) {
    border-color: var(--color-alt, #97bf74);
}

.pccfg__slot.is-blocked {
    opacity: .45;
    cursor: not-allowed;
}

.pccfg__slot b {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    color: rgba(255, 255, 255, .6);
}

.pccfg__slot span {
    max-width: 100%;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pccfg__slot:not(.is-filled) span {
    color: rgba(255, 255, 255, .4);
}

/* Полоска модуля в цвет радиатора; у RGB — радуга */
.pccfg__slot-bar {
    position: absolute;
    left: 5px;
    top: 8px;
    bottom: 8px;
    width: 4px;
    border-radius: 2px;
    background: var(--sw);
}

.pccfg__slot-bar[data-rgb],
.pccfg__rainbow {
    background: linear-gradient(#ff3b5c, #ffb02e, #8fd14f, #24dcff, #3c6bff, #a63cff);
}

.pccfg__slot--gpu {
    padding-left: 10px;
}

.pccfg__x {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-style: normal;
    line-height: 1;
    cursor: pointer;
}

.pccfg__x:hover {
    background: #ff5a5f;
}

.pccfg__row {
    display: flex;
    gap: 14px;
    margin-top: 8px;
}

.pccfg__link {
    padding: 0;
    border: 0;
    background: none;
    color: rgba(255, 255, 255, .6);
    font: inherit;
    font-size: 12px;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, .25);
    text-underline-offset: 3px;
    cursor: pointer;
}

.pccfg__link:hover {
    color: var(--color-alt, #97bf74);
}

/* Накопители: добавленные — «чипы» с крестиком */
.pccfg__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.pccfg__chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 6px 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    font-size: 12px;
    animation: pccfg-fade .25s ease-out;
}

.pccfg__chip .pccfg__x {
    position: static;
}

.pccfg__empty {
    font-size: 12px;
    color: #ff8a8e;
}

/* Мощность: шкала блока питания, зона оптимума 40–85 %, потребление и вердикт */
.pccfg__power {
    margin-bottom: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .05);
}

.pccfg__power-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.pccfg__power-head b {
    font-size: 22px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.pccfg__power-head span {
    font-size: 13px;
    color: rgba(255, 255, 255, .6);
}

.pccfg__meter {
    position: relative;
    height: 10px;
    border-radius: 5px;
    background: rgba(255, 255, 255, .08);
}

.pccfg__meter-zone {
    position: absolute;
    top: 0;
    bottom: 0;
    border-radius: 5px;
    background: repeating-linear-gradient(-45deg, rgba(151, 191, 116, .28) 0 4px, rgba(151, 191, 116, .14) 4px 8px);
}

.pccfg__meter-fill {
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    border-radius: 4px;
    background: var(--color-alt, #97bf74);
    transition: width .5s cubic-bezier(.22, 1, .36, 1), background .3s;
}

.pccfg__meter.is-low .pccfg__meter-fill {
    background: #ff5a5f;
}

.pccfg__meter.is-high .pccfg__meter-fill {
    background: #f2b84b;
}

/* Предел блока питания */
.pccfg__meter-cap {
    position: absolute;
    top: -4px;
    bottom: -4px;
    width: 2px;
    margin-left: -1px;
    border-radius: 1px;
    background: #fff;
}

.pccfg__verdict {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--color-alt, #97bf74);
}

.pccfg__verdict.is-low { color: #ff7a7e; }
.pccfg__verdict.is-high { color: #f2b84b; }

.pccfg__power-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin-top: 8px;
    font-size: 11px;
    color: rgba(255, 255, 255, .5);
}

.pccfg__power-list b {
    font-weight: 600;
    color: rgba(255, 255, 255, .8);
}

/* Подтверждение замен при смене корпуса или платы */
.pccfg__confirm {
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(242, 184, 75, .12);
    border: 1px solid rgba(242, 184, 75, .4);
    font-size: 13px;
    line-height: 1.4;
    animation: pccfg-fade .25s ease-out;
}

.pccfg__confirm[hidden] {
    display: none;
}

.pccfg__confirm ul {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 8px 0 10px;
    padding: 0;
    list-style: none;
}

.pccfg__confirm li span {
    font-weight: 600;
}

.pccfg__confirm li em {
    font-style: normal;
    color: #ff8a8e;
}

.pccfg__confirm li small {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, .55);
}

.pccfg__confirm-btns {
    display: flex;
    gap: 6px;
}

.pccfg__btn {
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.pccfg__btn--ok {
    border-color: var(--color-alt, #97bf74);
    background: var(--color-alt, #97bf74);
    color: #1d1f1d;
}

/* Подсветка: режим и цвет */
.pccfg__seg {
    display: flex;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
}

.pccfg__opt {
    flex: 1 1 auto;
    padding: 8px 10px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.pccfg__opt:hover {
    background: rgba(255, 255, 255, .08);
}

.pccfg__opt.is-active {
    background: var(--color-alt, #97bf74);
    color: #1d1f1d;
}

.pccfg__opt[data-pc-light="rgb"].is-active {
    background: linear-gradient(90deg, #ff5a7a, #ffb02e, #8fd14f, #24dcff, #8a6bff);
}

.pccfg__colors {
    margin-top: 12px;
}

.pccfg__colors[hidden] {
    display: none;
}

.pccfg__swatches {
    display: flex;
    gap: 8px;
}

.pccfg__swatch {
    width: 32px;
    height: 32px;
    flex: none;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--sw);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25), 0 0 12px color-mix(in srgb, var(--sw) 55%, transparent);
    outline: 2px solid transparent;
    outline-offset: 3px;
    cursor: pointer;
    transition: outline-color .2s, transform .15s;
}

.pccfg__swatch:hover {
    transform: scale(1.08);
}

.pccfg__swatch.is-active {
    outline-color: var(--color-alt, #97bf74);
}

/* Смета */
.pccfg__spec {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.pccfg__spec td {
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    vertical-align: top;
}

.pccfg__spec td small {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.3;
    color: rgba(255, 255, 255, .5);
}

.pccfg__spec td + td {
    padding-left: 12px;
    text-align: right;
    white-space: nowrap;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.pccfg__spec-sum td {
    border-bottom: 0;
    color: var(--color-alt, #97bf74);
}

/* Низ широкой сцены занят плашкой итога — подсказка уходит наверх, под инструменты */
@container (min-width: 900px) {
    .pccfg__hint {
        top: 66px;
        right: 20px;
        left: auto;
        bottom: auto;
        max-width: 300px;
        text-align: right;
    }
}

@media (max-width: 1024px) {
    .pccfg {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Телефон: сцена, кнопки разделов и итог — в один экран; панель — окном поверх кнопок (kit.css: .cfg-panel) */
@media (max-width: 600px) {
    .pccfg .pccfg__stage {
        aspect-ratio: 1 / .88;
        border-radius: 20px;
    }

    .pccfg__hint {
        display: none;
    }

    .pccfg__tools {
        top: 10px;
        right: 10px;
        gap: 4px;
    }

    .pccfg__tool {
        width: 34px;
        height: 34px;
    }

    .pccfg__tool svg {
        width: 18px;
        height: 18px;
    }

    .pccfg__mode button {
        padding: 6px 9px;
        font-size: 12px;
    }

    /* Значок совместимости — внизу сцены, чтобы не спорить с инструментами */
    .pccfg__status {
        top: auto;
        bottom: 10px;
        left: 10px;
        height: 32px;
        padding: 0 12px 0 10px;
        font-size: 12px;
    }

    .pccfg__stage.is-2d .pccfg__status {
        display: none;
    }

    .pccfg__issues {
        top: auto;
        bottom: 50px;
        left: 10px;
        width: calc(100% - 20px);
    }

    .pccfg__panel .pccfg__card {
        flex-basis: 120px;
    }

    /* Подпись справа в шапке раздела — левее крестика окна */
    .pccfg__head {
        padding-right: 44px;
    }

    .pccfg__panel .pccfg__swatches {
        gap: 12px;
        margin-block: -9px;
        padding-block: 9px;
    }

    .pccfg__panel .pccfg__swatch {
        width: 46px;
        height: 46px;
    }

    .pccfg__dim {
        padding: 1px 4px;
        font-size: 9px;
    }

    .pccfg__caption {
        font-size: 9px;
    }

    .pccfg__mark {
        width: 16px;
        height: 16px;
        font-size: 9px;
    }

    /* Вкладки: три в ряд; у «Питания» и проблемных разделов — цветная точка */
    .pccfg .cfg-tab {
        position: relative;
    }

    .pccfg .cfg-tab[data-status="low"]::after,
    .pccfg .cfg-tab[data-status="high"]::after {
        content: "";
        position: absolute;
        top: 7px;
        right: 7px;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #f2b84b;
    }

    .pccfg .cfg-tab[data-status="low"]::after {
        background: #ff5a5f;
    }

    .pccfg .cfg-tab--main {
        padding: 7px 4px 6px;
    }

    .pccfg .cfg-tab-ico {
        height: 22px;
    }

    .pccfg .cfg-tab-ico svg {
        width: 24px;
        height: 22px;
    }

    .pccfg .cfg-tab-sw {
        width: 20px;
        height: 20px;
    }
}

/* На чертеже подписи видов говорят сами за себя — подсказку прячем, чтобы не спорила со штампом */
.pccfg__stage.is-2d .pccfg__hint {
    display: none;
}
