/* anodeThreadMenu */
.anode-thread-menu,
.anode-thread-menu * {
    box-sizing: border-box;
}

.anode-thread-menu {
    width: 100%;
    margin: 18px 0 26px;
    padding: 18px;
    border: 1px solid #d7e0e8;
    border-left: 5px solid #f0cf32;
    border-radius: 12px;
    background: linear-gradient(
        135deg,
        #ffffff 0%,
        #f5f9fc 100%
    );
    box-shadow: 0 5px 17px rgba(20, 47, 80, 0.08);
}

.anode-thread-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 15px;
}

.anode-thread-menu__eyebrow {
    margin-bottom: 3px;
    color: #b18f00;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.anode-thread-menu__title {
    margin: 0;
    color: #142f50;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.2;
}

.anode-thread-menu__subtitle {
    margin: 5px 0 0;
    color: #506176;
    font-size: 14px;
    line-height: 1.35;
}

.anode-thread-menu__reset {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid #d7e0e8;
    border-radius: 7px;
    background: #ffffff;
    color: #17395f;
    font-size: 14px;
    font-weight: 600;
}

.anode-thread-menu__reset:hover {
    border-color: #e0c02d;
    background: #fff8cc;
    color: #17395f;
    text-decoration: none;
}

.anode-thread-menu__groups {
    display: grid;
    grid-template-columns:
        minmax(280px, 0.8fr)
        minmax(460px, 1.2fr);
    gap: 14px;
}

.anode-thread-menu__group {
    min-width: 0;
    padding: 13px;
    border: 1px solid #e0e6ec;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
}

.anode-thread-menu__group-title {
    margin-bottom: 10px;
    color: #142f50;
    font-size: 15px;
    font-weight: 700;
}

.anode-thread-menu__buttons {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.anode-thread-menu__button {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 54px;
    padding: 8px 7px;
    border: 1px solid #ccd7e1;
    border-radius: 8px;
    background: #ffffff;
    color: #17395f;
    text-align: center;
    line-height: 1.15;
    transition:
        transform 0.15s ease,
        border-color 0.15s ease,
        background 0.15s ease,
        box-shadow 0.15s ease;
}

.anode-thread-menu__button strong {
    color: inherit;
    font-size: 17px;
    font-weight: 700;
}

.anode-thread-menu__button small {
    margin-top: 3px;
    color: #607086;
    font-size: 12px;
    font-weight: 500;
}

.anode-thread-menu__button:hover {
    z-index: 2;
    transform: translateY(-2px);
    border-color: #dfbd20;
    background: #fff8cc;
    color: #17395f;
    text-decoration: none;
    box-shadow: 0 5px 12px rgba(20, 47, 80, 0.1);
}

.anode-thread-menu__button.is-active {
    border-color: #d5af00;
    background: #ffed7a;
    color: #142f50;
    box-shadow: 0 4px 11px rgba(213, 175, 0, 0.2);
}

.anode-thread-menu__button.is-active small {
    color: #17395f;
}

.anode-thread-menu__button.is-active::after {
    position: absolute;
    top: 4px;
    right: 6px;
    color: #17395f;
    font-size: 11px;
    font-weight: 700;
    content: "✓";
}

.anode-thread-menu__button:focus-visible,
.anode-thread-menu__reset:focus-visible {
    outline: 2px solid #d5af00;
    outline-offset: 2px;
}

@media (max-width: 1199.98px) {
    .anode-thread-menu__groups {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .anode-thread-menu {
        margin: 15px 0 20px;
        padding: 14px;
        border-radius: 10px;
    }

    .anode-thread-menu__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .anode-thread-menu__title {
        font-size: 19px;
    }

    .anode-thread-menu__reset {
        min-height: 36px;
    }

    .anode-thread-menu__buttons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .anode-thread-menu__button {
        min-height: 52px;
    }
}

/* modelSelectionBannerTpl */
.ts-model-banner {
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
    display: flex !important;
    align-items: center;
    gap: 20px;
    margin: 15px 0 2px;
    min-height: 128px;
    padding: 24px 22px;
    border-radius: 8px;
    background: linear-gradient(135deg, #173758 0%, #1268a8 100%);
    box-shadow: 0 7px 20px rgba(23, 55, 88, .20);
    color: #fff !important;
    text-decoration: none !important;
    transition: transform .2s, box-shadow .2s;
}

.ts-model-banner::after {
    content: "";
    position: absolute;
    right: -55px;
    bottom: -90px;
    width: 210px;
    height: 210px;
    border: 35px solid rgba(255, 241, 153, .10);
    border-radius: 50%;
    pointer-events: none;
}

.ts-model-banner:hover {
    color: #fff !important;
    text-decoration: none !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(23, 55, 88, .27);
}

.ts-model-banner__icon {
    position: relative;
    z-index: 1;
    flex: 0 0 68px;
    width: 68px;
    height: 68px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff199;
    box-shadow: 0 4px 13px rgba(0, 0, 0, .18);
}

.ts-model-banner__icon svg {
    display: block !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    fill: none !important;
    stroke: #173758 !important;
    stroke-width: 3 !important;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ts-model-banner__content {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    display: block;
    min-width: 0;
}

.ts-model-banner__label {
    display: block;
    margin-bottom: 5px;
    color: #fff199;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.ts-model-banner__title {
    display: block;
    margin-bottom: 6px;
    color: #fff;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.25;
}

.ts-model-banner__description {
    display: block;
    color: rgba(255, 255, 255, .88);
    font-size: 15px;
    line-height: 1.4;
}

.ts-model-banner__button {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 5px;
    background: #fff199;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
    color: #173758;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    transition: background .2s, transform .2s;
}

.ts-model-banner:hover .ts-model-banner__button {
    background: #ffe66a;
    transform: translateX(2px);
}

.ts-model-banner__arrow {
    font-size: 20px;
    line-height: 1;
}

@media (max-width: 767px) {
    .ts-model-banner {
        min-height: 0;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 14px;
        padding: 17px;
    }

    .ts-model-banner__icon {
        flex-basis: 54px;
        width: 54px;
        height: 54px;
    }

    .ts-model-banner__icon svg {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        min-height: 34px !important;
    }

    .ts-model-banner__content {
        flex-basis: calc(100% - 70px);
    }

    .ts-model-banner__title {
        font-size: 18px;
    }

    .ts-model-banner__description {
        font-size: 14px;
    }

    .ts-model-banner__button {
        flex-basis: 100%;
        width: 100%;
        white-space: normal;
    }
}

@media (max-width: 420px) {
    .ts-model-banner {
        display: block !important;
        text-align: center;
    }

    .ts-model-banner__icon {
        margin: 0 auto 13px;
    }

    .ts-model-banner__button {
        margin-top: 15px;
    }
}
