.pay-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1.35rem 1.5rem;
    overflow: hidden;
    border: 1px solid var(--ot-border);
    border-radius: 18px;
    background:
        radial-gradient(80% 140% at 100% 0%, color-mix(in srgb, var(--ot-primary) 16%, transparent), transparent 62%),
        linear-gradient(135deg, var(--ot-surface), var(--ot-surface-alt));
}

.pay-hero__text {
    min-width: 0;
}

.pay-hero__text .page-head__hint + .pay-hero__actions {
    margin-top: 1rem;
}

.pay-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.pay-hero__art {
    flex: 0 0 auto;
    perspective: 700px;
}

.pay-card3d {
    position: relative;
    display: block;
    width: 150px;
    height: 96px;
    border-radius: 14px;
    transform-style: preserve-3d;
    transform: rotateX(18deg) rotateY(-26deg) rotateZ(4deg);
    animation: pay-card-float 7s ease-in-out infinite;
}

.pay-card3d__face {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background:
        radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, .28), transparent 55%),
        linear-gradient(140deg, var(--ot-primary), color-mix(in srgb, var(--ot-primary) 55%, #000));
    box-shadow: 0 18px 30px -16px color-mix(in srgb, var(--ot-primary) 70%, #000), inset 0 1px 0 rgba(255, 255, 255, .3);
    transform: translateZ(10px);
}

.pay-card3d__back {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: color-mix(in srgb, var(--ot-primary) 40%, #000);
    transform: translateZ(-2px) translate(10px, 10px);
    opacity: .55;
}

.pay-card3d__chip {
    position: absolute;
    top: 30px;
    left: 16px;
    width: 26px;
    height: 20px;
    border-radius: 5px;
    background: linear-gradient(135deg, #f8e3a3, #c9a44a);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15);
}

.pay-card3d__line {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 18px;
    height: 6px;
    border-radius: 3px;
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .7) 0 18px, transparent 18px 24px);
}

.pay-card3d__mark {
    position: absolute;
    top: 14px;
    right: 14px;
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
}

@keyframes pay-card-float {
    0%,
    100% {
        transform: rotateX(18deg) rotateY(-26deg) rotateZ(4deg) translateY(0);
    }

    50% {
        transform: rotateX(14deg) rotateY(-34deg) rotateZ(3deg) translateY(-5px);
    }
}

.pay-ic {
    width: 1.1em;
    height: 1.1em;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: -.15em;
}

.pay-test {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin-bottom: 1.5rem;
    padding: .9rem 1.1rem;
    border: 1px dashed var(--st-partial);
    border-radius: 12px;
    color: var(--ot-text);
    background:
        repeating-linear-gradient(135deg, var(--st-partial-bg) 0 14px, transparent 14px 28px),
        var(--ot-surface);
}

.pay-test > .ic {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin-top: .1rem;
    color: var(--st-partial);
}

.pay-test__title {
    display: block;
    font-weight: 600;
    line-height: 1.35;
}

.pay-test__text {
    display: block;
    margin-top: .25rem;
    color: var(--ot-muted);
    font-size: .88rem;
    line-height: 1.5;
}

.pay-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

@media (min-width: 992px) {
    .pay-layout {
        grid-template-columns: minmax(0, 1.25fr) minmax(320px, .85fr);
    }

    .pay-layout__aside {
        position: sticky;
        top: 1rem;
    }
}

.pay-layout > * {
    min-width: 0;
}

.pay-layout .panel {
    margin-bottom: 0;
}

.pay-layout__main {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
}

.pay-layout__main > .panel + .panel,
.pay-layout--areas > .panel + .panel {
    margin-top: 0;
}

.pay-layout--areas {
    grid-template-areas:
        "period"
        "summary"
        "consent"
        "alt";
}

.pay-layout__period {
    grid-area: period;
}

.pay-layout__summary {
    grid-area: summary;
    align-self: start;
}

.pay-layout__consent {
    grid-area: consent;
}

.pay-layout__alt {
    grid-area: alt;
}

@media (min-width: 992px) {
    .pay-layout--areas {
        grid-template-areas:
            "period summary"
            "consent summary"
            "alt summary";
        grid-template-rows: auto auto 1fr;
    }
}

.pay-step {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    margin-right: .5rem;
    border-radius: 50%;
    color: var(--ot-on-primary);
    background: var(--ot-primary);
    font-size: .8rem;
    font-weight: 700;
    vertical-align: 1px;
}

.pay-periods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 1rem;
}

.pay-period {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    min-height: 44px;
    margin: 0;
    padding: 1rem 1.1rem 1.05rem 3rem;
    border: 1.5px solid var(--ot-border);
    border-radius: 14px;
    background: var(--ot-surface);
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.pay-period:hover {
    border-color: color-mix(in srgb, var(--ot-primary) 55%, var(--ot-border));
}

.pay-period:has(input:checked) {
    border-color: var(--ot-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ot-primary) 18%, transparent);
}

.pay-period:has(input:focus-visible) {
    outline: 2px solid var(--ot-primary);
    outline-offset: 2px;
}

.pay-period input {
    position: absolute;
    top: 1.1rem;
    left: 1.1rem;
    width: 1.15rem;
    height: 1.15rem;
    margin: 0;
}

.pay-period__name {
    font-weight: 600;
    line-height: 1.3;
}

.pay-period__price {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.pay-period__old {
    margin-left: .4rem;
    color: var(--ot-muted);
    font-size: .9rem;
    font-weight: 500;
    text-decoration: line-through;
}

.pay-period__hint {
    color: var(--ot-muted);
    font-size: .84rem;
    line-height: 1.45;
}

.pay-period__gift {
    position: absolute;
    top: -.65rem;
    right: .9rem;
    padding: .15rem .55rem;
    border-radius: 999px;
    color: var(--st-present);
    background: var(--st-present-bg);
    border: 1px solid color-mix(in srgb, var(--st-present) 45%, transparent);
    font-size: .72rem;
    font-weight: 600;
    line-height: 1.4;
}

.pay-field + .pay-checks,
.pay-checks + .pay-actions {
    margin-top: 1.25rem;
}

.pay-field .form-text {
    margin-top: .4rem;
    line-height: 1.45;
}

.pay-field label {
    display: block;
    margin-bottom: .35rem;
    font-size: .85rem;
    font-weight: 500;
}

.pay-checks {
    display: grid;
    gap: .75rem;
}

.pay-check {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    min-height: 44px;
    margin: 0;
    padding: .75rem .9rem;
    border: 1px solid var(--ot-border);
    border-radius: 12px;
    background: var(--ot-surface-alt);
    cursor: pointer;
    line-height: 1.5;
    transition: border-color .2s ease, background-color .2s ease;
}

.pay-check:has(input:checked) {
    border-color: color-mix(in srgb, var(--st-present) 55%, var(--ot-border));
    background: var(--st-present-bg);
}

.pay-check.is-invalid {
    border-color: var(--st-absent);
}

.pay-check input {
    flex: 0 0 auto;
    width: 1.2rem;
    height: 1.2rem;
    margin: .15rem 0 0;
}

.pay-check__text {
    min-width: 0;
    font-size: .92rem;
}

.pay-check__error {
    display: block;
    margin-top: .25rem;
    color: var(--st-absent);
    font-size: .82rem;
}

.pay-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem 1rem;
}

.pay-actions .btn {
    min-height: 44px;
}

.pay-actions__note {
    color: var(--ot-muted);
    font-size: .84rem;
    line-height: 1.45;
}

.pay-summary {
    padding: 1.25rem;
}

.pay-summary__tariff {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1rem;
}

.pay-summary__badge {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: var(--ot-on-primary);
    background: linear-gradient(140deg, var(--ot-primary), color-mix(in srgb, var(--ot-primary) 60%, #000));
}

.pay-summary__name {
    display: block;
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.pay-summary__meta {
    display: block;
    margin-top: .15rem;
    color: var(--ot-muted);
    font-size: .84rem;
    line-height: 1.4;
}

.pay-lines {
    display: grid;
    gap: .6rem;
    margin: 0;
    padding: 1rem 0;
    border-top: 1px dashed var(--ot-border);
    border-bottom: 1px dashed var(--ot-border);
}

.pay-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin: 0;
}

.pay-line dt {
    min-width: 0;
    color: var(--ot-muted);
    font-weight: 400;
    line-height: 1.4;
}

.pay-line dd {
    flex: 0 0 auto;
    margin: 0;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.pay-line--discount dd,
.pay-line--discount dt {
    color: var(--st-present);
}

.pay-line__note {
    display: block;
    margin-top: .15rem;
    font-size: .8rem;
    line-height: 1.4;
}

.pay-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
}

.pay-total__label {
    font-weight: 600;
}

.pay-total__value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    transition: color .2s ease;
}

.pay-total__hint {
    margin: .5rem 0 0;
    color: var(--ot-muted);
    font-size: .84rem;
    line-height: 1.45;
}

.pay-methods {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.pay-methods li {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .65rem;
    border: 1px solid var(--ot-border);
    border-radius: 999px;
    background: var(--ot-surface-alt);
    font-size: .8rem;
    line-height: 1.3;
}

.pay-secure {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    margin: 1rem 0 0;
    color: var(--ot-muted);
    font-size: .84rem;
    line-height: 1.5;
}

.pay-secure .ic {
    flex: 0 0 auto;
    margin-top: .15rem;
    color: var(--st-present);
}

.pay-alt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem 1rem;
    padding: 1rem 1.25rem;
}

.pay-alt__text {
    min-width: 0;
    flex: 1 1 260px;
}

.pay-alt__title {
    display: block;
    font-weight: 600;
    line-height: 1.35;
}

.pay-alt__hint {
    display: block;
    margin-top: .2rem;
    color: var(--ot-muted);
    font-size: .86rem;
    line-height: 1.5;
}

.pay-admin-hint {
    display: flex;
    gap: .65rem;
    margin-bottom: 1.5rem;
    padding: .85rem 1rem;
    border: 1px solid var(--ot-admin-border);
    border-radius: 12px;
    background: var(--ot-admin-bg);
    line-height: 1.5;
    font-size: .9rem;
}

.pay-admin-hint .ic {
    flex: 0 0 auto;
    margin-top: .15rem;
    color: var(--ot-admin);
}

.pay-error {
    display: flex;
    gap: .65rem;
    margin-bottom: 1.25rem;
    padding: .85rem 1rem;
    border: 1px solid color-mix(in srgb, var(--st-absent) 50%, transparent);
    border-radius: 12px;
    background: var(--st-absent-bg);
    line-height: 1.5;
}

.pay-error .ic {
    flex: 0 0 auto;
    margin-top: .15rem;
    color: var(--st-absent);
}

.state-pill--info {
    color: var(--ot-primary);
    background: var(--ot-primary-soft);
}

.pay-result {
    display: grid;
    justify-items: center;
    gap: .75rem;
    max-width: 640px;
    margin: 1rem auto 1.5rem;
    padding: 2rem 1.5rem;
    text-align: center;
}

.pay-result__icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    margin-bottom: .25rem;
}

.pay-result__icon .ic {
    width: 38px;
    height: 38px;
}

.pay-result--paid .pay-result__icon {
    color: var(--st-present);
    background: var(--st-present-bg);
    box-shadow: 0 0 0 10px color-mix(in srgb, var(--st-present-bg) 60%, transparent);
    animation: pay-pop .35s ease-out both;
}

.pay-result--failed .pay-result__icon {
    color: var(--st-absent);
    background: var(--st-absent-bg);
}

.pay-result--pending .pay-result__icon {
    color: var(--ot-primary);
    background: var(--ot-primary-soft);
}

.pay-result--pending .pay-result__icon::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--ot-primary);
    animation: pay-spin 1.2s linear infinite;
}

.pay-result__title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
}

.pay-result__text {
    max-width: 52ch;
    margin: 0;
    color: var(--ot-muted);
    line-height: 1.6;
}

.pay-result__facts {
    display: grid;
    width: 100%;
    max-width: 440px;
    gap: .5rem;
    margin: .75rem 0 .25rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--ot-border);
    border-radius: 12px;
    background: var(--ot-surface-alt);
    text-align: left;
}

.pay-result__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .6rem;
    margin-top: .5rem;
}

.pay-result__actions .btn {
    min-height: 44px;
}

.pay-result__status {
    color: var(--ot-muted);
    font-size: .84rem;
}

@keyframes pay-pop {
    from {
        transform: scale(.7);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

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

.pay-list {
    display: grid;
}

.pay-row {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) 140px 150px;
    align-items: center;
    gap: .5rem 1.25rem;
    padding: .9rem 1.25rem;
    border-bottom: 1px solid var(--ot-border);
}

.pay-row:last-child {
    border-bottom: 0;
}

.pay-row--head {
    padding-top: .6rem;
    padding-bottom: .6rem;
    color: var(--ot-muted);
    background: var(--ot-surface-alt);
    font-size: .75rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.pay-row__date {
    color: var(--ot-muted);
    font-size: .88rem;
    font-variant-numeric: tabular-nums;
}

.pay-row__main {
    min-width: 0;
}

.pay-row__title {
    display: block;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.pay-row__meta {
    display: block;
    margin-top: .2rem;
    color: var(--ot-muted);
    font-size: .84rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.pay-row__sum {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.pay-row__sum small {
    display: block;
    color: var(--st-present);
    font-size: .78rem;
    font-weight: 500;
}

.pay-row__state {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .35rem;
    min-width: 0;
}

.pay-row__state .btn {
    min-height: 36px;
}

.pay-row__label {
    display: none;
}

@media (max-width: 767.98px) {
    .pay-row--head {
        display: none;
    }

    .pay-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: .4rem .75rem;
        padding: 1rem;
    }

    .pay-row__date {
        grid-column: 1 / -1;
        order: -1;
    }

    .pay-row__main {
        grid-column: 1 / -1;
    }

    .pay-row__sum {
        text-align: left;
    }

    .pay-row__state {
        align-items: flex-end;
    }

    .pay-row__state .btn {
        min-height: 44px;
    }
}

.pay-receipt {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
    padding: 1.1rem 1.25rem;
    line-height: 1.55;
}

.pay-receipt__icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: var(--ot-primary);
    background: var(--ot-primary-soft);
}

.pay-receipt__title {
    display: block;
    margin-bottom: .2rem;
    font-weight: 600;
}

.pay-receipt__text {
    margin: 0;
    color: var(--ot-muted);
    font-size: .9rem;
}

.pay-receipt__text + .pay-receipt__text {
    margin-top: .45rem;
}

.pay-empty {
    display: grid;
    justify-items: center;
    gap: .5rem;
    padding: 2rem 1.25rem;
    color: var(--ot-muted);
    text-align: center;
    line-height: 1.55;
}

.pay-empty__icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    color: var(--ot-primary);
    background: var(--ot-primary-soft);
}

.pay-empty__icon .ic,
.pay-empty__icon .pay-ic {
    width: 26px;
    height: 26px;
}

.pay-empty__title {
    color: var(--ot-text);
    font-weight: 600;
}

.pay-empty p {
    max-width: 52ch;
    margin: 0;
}

.pay-empty .btn {
    margin-top: .5rem;
    min-height: 44px;
}

.invite-card {
    position: relative;
    overflow: hidden;
}

.invite-card .panel__head {
    background:
        radial-gradient(70% 160% at 100% 0%, color-mix(in srgb, var(--st-present) 14%, transparent), transparent 60%);
}

.invite-card__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px;
    gap: 1.25rem;
    align-items: start;
}

.invite-card__lead {
    margin: 0 0 1rem;
    color: var(--ot-muted);
    line-height: 1.55;
}

.invite-link {
    display: flex;
    gap: .5rem;
}

.invite-link .form-control {
    min-width: 0;
    min-height: 44px;
    font-family: var(--bs-font-monospace);
    font-size: .86rem;
}

.invite-link .btn {
    flex: 0 0 auto;
    min-height: 44px;
    white-space: nowrap;
}

.invite-qr {
    display: grid;
    gap: .35rem;
    justify-items: center;
    margin: 0;
    color: var(--ot-muted);
    font-size: .74rem;
    text-align: center;
    line-height: 1.35;
}

.invite-qr svg {
    display: block;
    width: 132px;
    height: 132px;
    padding: 6px;
    border: 1px solid var(--ot-border);
    border-radius: 12px;
    background: #fff;
}

.invite-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
    margin-top: 1.25rem;
}

.invite-stat {
    padding: .75rem .85rem;
    border: 1px solid var(--ot-border);
    border-radius: 12px;
    background: var(--ot-surface-alt);
}

.invite-stat__value {
    display: block;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.invite-stat__label {
    display: block;
    margin-top: .2rem;
    color: var(--ot-muted);
    font-size: .8rem;
    line-height: 1.35;
}

.invite-stat--accent .invite-stat__value {
    color: var(--st-present);
}

.invite-tiers {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
}

.invite-tier {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .7rem;
    border: 1px solid var(--ot-border);
    border-radius: 999px;
    background: var(--ot-surface);
    color: var(--ot-muted);
    font-size: .8rem;
    line-height: 1.3;
}

.invite-tier.is-reached {
    color: var(--st-present);
    border-color: color-mix(in srgb, var(--st-present) 45%, transparent);
    background: var(--st-present-bg);
}

.invite-tier strong {
    color: inherit;
}

.invite-next {
    margin: 1rem 0 0;
    color: var(--ot-text);
    font-size: .9rem;
    line-height: 1.55;
}

.invite-progress {
    height: 8px;
    margin-top: .6rem;
    overflow: hidden;
    border-radius: 999px;
    background: var(--ot-surface-alt);
    box-shadow: inset 0 0 0 1px var(--ot-border);
}

.invite-progress__bar {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--st-present), color-mix(in srgb, var(--st-present) 60%, var(--ot-primary)));
    transition: width .4s ease-out;
}

.invite-off {
    margin: 1rem 0 0;
    color: var(--ot-muted);
    font-size: .86rem;
    line-height: 1.5;
}

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

    .invite-qr {
        justify-self: start;
    }

    .invite-stats {
        grid-template-columns: minmax(0, 1fr);
    }

    .invite-link {
        flex-direction: column;
    }
}

.invite-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    border: 1px solid color-mix(in srgb, var(--st-present) 40%, var(--ot-border));
    border-radius: 16px;
    background:
        radial-gradient(70% 160% at 0% 0%, color-mix(in srgb, var(--st-present) 16%, transparent), transparent 60%),
        var(--ot-surface);
}

.invite-banner__icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(140deg, var(--st-present), color-mix(in srgb, var(--st-present) 55%, #000));
}

.invite-banner__text {
    flex: 1 1 260px;
    min-width: 0;
}

.invite-banner__title {
    display: block;
    font-weight: 600;
    line-height: 1.35;
}

.invite-banner__hint {
    display: block;
    margin-top: .2rem;
    color: var(--ot-muted);
    font-size: .9rem;
    line-height: 1.5;
}

.invite-banner .btn {
    min-height: 44px;
}

.plan__premium {
    display: grid;
    gap: .5rem;
    margin: .75rem 0 1.25rem;
    padding: .75rem .8rem .85rem;
    border: 1px solid color-mix(in srgb, var(--ot-primary) 30%, var(--ot-border));
    border-radius: 12px;
    background: color-mix(in srgb, var(--ot-primary-soft) 70%, transparent);
}

.plan__premium-title {
    color: var(--ot-primary);
    font-size: .86rem;
    font-weight: 600;
    line-height: 1.35;
}

.plan__premium-list {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.plan__premium-list li {
    padding: .15rem .5rem;
    border-radius: 999px;
    background: var(--ot-surface);
    border: 1px solid var(--ot-border);
    font-size: .76rem;
    line-height: 1.4;
}

.plan__pay {
    display: grid;
    gap: .5rem;
}

.plan__pay .btn {
    min-height: 44px;
    white-space: normal;
}

.plan__pay-note {
    color: var(--ot-muted);
    font-size: .76rem;
    line-height: 1.4;
    text-align: center;
}

.pay-tiers {
    display: grid;
    gap: .6rem;
    max-width: 620px;
}

.pay-settings-note {
    flex-basis: 100%;
    margin: 0;
    color: var(--ot-muted);
    font-size: .84rem;
    line-height: 1.45;
}

.pay-tiers__row {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr) minmax(0, 1fr);
    gap: .6rem;
    align-items: center;
}

.pay-tiers__num {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    color: var(--ot-muted);
    background: var(--ot-surface-alt);
    border: 1px solid var(--ot-border);
    font-size: .8rem;
    font-weight: 600;
}

.pay-tiers__head {
    color: var(--ot-muted);
    font-size: .78rem;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.pay-tiers .form-control {
    min-height: 40px;
}

.pay-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
    gap: .75rem;
    margin: 0 0 1.25rem;
}

.pay-status {
    padding: .8rem .9rem;
    border: 1px solid var(--ot-border);
    border-radius: 12px;
    background: var(--ot-surface-alt);
    min-width: 0;
}

.pay-status__label {
    display: block;
    color: var(--ot-muted);
    font-size: .75rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.pay-status__value {
    display: block;
    margin-top: .3rem;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.pay-status__value--ok {
    color: var(--st-present);
}

.pay-status__value--warn {
    color: var(--st-partial);
}

.pay-status__value--off {
    color: var(--st-absent);
}

.pay-copy {
    display: flex;
    gap: .5rem;
    margin-bottom: 1.25rem;
}

.pay-copy .form-control {
    min-width: 0;
    font-family: var(--bs-font-monospace);
    font-size: .84rem;
}

.pay-copy .btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

.pay-subhead {
    margin: 1.5rem 0 .85rem;
    font-size: .95rem;
    font-weight: 600;
}

.pay-subhead:first-child {
    margin-top: 0;
}

.pay-settings-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: 1.5rem;
}

.pay-help {
    margin-top: 1.25rem;
}

.pay-help ol {
    margin: .75rem 0 0;
    padding-left: 1.25rem;
    line-height: 1.6;
}

.pay-help li + li {
    margin-top: .5rem;
}

.pay-help code {
    overflow-wrap: anywhere;
}

.pay-invoice-tools {
    display: grid;
    gap: .5rem;
    width: 100%;
}

.pay-invoice-tools .sub-row__form {
    flex-wrap: wrap;
}

.pay-invoice-file {
    max-width: 100%;
}

@media (max-width: 575.98px) {
    .pay-invoice-tools .btn,
    .pay-invoice-tools .form-control,
    .pay-row__state .btn,
    .plan__pay .plan__request {
        min-height: 44px;
    }
}

.pay-req {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
    gap: .35rem 1rem;
    margin-top: .5rem;
    font-size: .84rem;
    line-height: 1.45;
}

.pay-req__item {
    min-width: 0;
    overflow-wrap: anywhere;
}

.pay-req__item span {
    color: var(--ot-muted);
}

.pay-partner-url {
    display: block;
    margin-top: .2rem;
    font-family: var(--bs-font-monospace);
    font-size: .8rem;
    color: var(--ot-muted);
    overflow-wrap: anywhere;
}

.pay-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 1.1rem 1.25rem;
}

.pay-form-grid .form-field label {
    margin-bottom: .35rem;
}

.pay-form-grid .form-text {
    margin-top: .4rem;
    line-height: 1.45;
}

.pay-form-grid .invalid-feedback {
    display: block;
}

.pay-form-grid .form-control,
.pay-form-grid .form-select {
    min-height: 44px;
}

.pay-form-section + .pay-form-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--ot-border);
}

.pay-form-section__title {
    margin: 0 0 1rem;
    font-size: .95rem;
    font-weight: 600;
}

@media (max-width: 575.98px) {
    .pay-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.1rem 1rem;
    }

    .pay-hero__art {
        display: none;
    }

    .pay-hero__actions .btn {
        width: 100%;
        min-height: 44px;
    }

    .pay-actions .btn {
        width: 100%;
    }

    .pay-copy {
        flex-direction: column;
    }

    .pay-copy .btn {
        min-height: 44px;
    }

    .pay-result {
        padding: 1.5rem 1rem;
    }

    .pay-result__actions .btn {
        width: 100%;
    }

    .pay-tiers__row {
        grid-template-columns: 2rem minmax(0, 1fr) minmax(0, 1fr);
        gap: .45rem;
    }
}

.filter-bar > .btn-group {
    flex-wrap: wrap;
    max-width: 100%;
}

@media (prefers-reduced-motion: reduce) {
    .pay-card3d,
    .pay-result--paid .pay-result__icon,
    .pay-result--pending .pay-result__icon::after {
        animation: none;
    }

    .pay-period,
    .pay-check,
    .invite-progress__bar,
    .pay-total__value {
        transition: none;
    }
}

.pay-search {
    flex: 1 1 18rem;
    max-width: 30rem;
}

.att-total {
    color: var(--ot-muted);
    font-size: .85rem;
    line-height: 1.45;
}

.att-total strong {
    color: var(--ot-text);
}

.att-list {
    display: grid;
    gap: .75rem;
    padding: 1rem 1.25rem 1.25rem;
}

.att {
    border: 1px solid var(--ot-border);
    border-radius: 14px;
    background: var(--ot-surface);
    transition: border-color .2s ease-out, box-shadow .2s ease-out;
}

.att[open] {
    border-color: color-mix(in srgb, var(--ot-primary) 35%, var(--ot-border));
    box-shadow: var(--sh-1);
}

.att.is-focus {
    border-color: var(--ot-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ot-primary) 18%, transparent);
}

.att__head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: .5rem 1rem;
    padding: .85rem 1rem;
    border-radius: 14px;
    cursor: pointer;
    list-style: none;
}

.att__head::-webkit-details-marker {
    display: none;
}

.att__head:focus-visible {
    outline: 2px solid var(--ot-primary);
    outline-offset: 2px;
}

.att__num {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 3.6rem;
    min-height: 3.2rem;
    padding: .3rem .45rem;
    border-radius: 12px;
    background: var(--ot-surface-alt);
    color: var(--ot-muted);
    line-height: 1.15;
}

.att__num-label {
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.att__num-value {
    color: var(--ot-text);
    font-size: 1.15rem;
    font-weight: 700;
}

.att__num .ic {
    width: 1.25rem;
    height: 1.25rem;
}

.att__main {
    display: grid;
    gap: .25rem;
    min-width: 0;
}

.att__title {
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.att__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .15rem .65rem;
    color: var(--ot-muted);
    font-size: .82rem;
    line-height: 1.45;
}

.att__meta > * {
    min-width: 0;
    overflow-wrap: anywhere;
}

.att__client {
    font-weight: 600;
}

.att__test {
    padding: 0 .4rem;
    border-radius: 6px;
    background: var(--ot-surface-alt);
}

.att__reason {
    display: flex;
    align-items: flex-start;
    gap: .35rem;
    color: var(--st-absent);
    font-size: .84rem;
    line-height: 1.45;
}

.att__reason > span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.att__reason .ic {
    flex: none;
    width: .9rem;
    height: .9rem;
    margin-top: .15rem;
}

.att__state {
    display: grid;
    justify-items: end;
    gap: .3rem;
    text-align: right;
}

.att__method {
    max-width: 15rem;
    color: var(--ot-muted);
    font-size: .78rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.att__chevron {
    width: .9rem;
    height: .9rem;
    color: var(--ot-muted);
    transition: transform .2s ease-out;
}

.att[open] .att__chevron {
    transform: rotate(90deg);
}

.att__body {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    border-top: 1px dashed var(--ot-border);
}

.att__ids {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: .6rem 1.25rem;
    margin: 0;
}

.att__ids dt {
    color: var(--ot-muted);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.att__ids dd {
    margin: .2rem 0 0;
    font-size: .88rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.att__uid {
    padding: .1rem .35rem;
    border-radius: 6px;
    background: var(--ot-surface-alt);
    color: var(--ot-text);
    font-size: .82rem;
    overflow-wrap: anywhere;
    word-break: break-all;
    user-select: all;
}

.att__log {
    display: grid;
    margin: 0 0 0 .35rem;
    padding: 0;
    border-left: 2px solid var(--ot-border);
    list-style: none;
}

.att__event {
    position: relative;
    display: grid;
    grid-template-columns: 9.75rem minmax(0, 1fr);
    gap: .1rem .9rem;
    padding: .45rem 0 .45rem 1.1rem;
    font-size: .86rem;
    line-height: 1.45;
}

.att__dot {
    position: absolute;
    top: .78rem;
    left: -.42rem;
    width: .7rem;
    height: .7rem;
    border-radius: 50%;
    background: var(--st-unset);
    box-shadow: 0 0 0 3px var(--ot-surface);
}

.att__dot--ok {
    background: var(--st-present);
}

.att__dot--overdue {
    background: var(--st-absent);
}

.att__dot--soon {
    background: var(--st-partial);
}

.att__dot--info {
    background: var(--ot-primary);
}

.att__time {
    color: var(--ot-muted);
    font-variant-numeric: tabular-nums;
}

.att__what {
    font-weight: 600;
    overflow-wrap: anywhere;
}

.att__detail {
    grid-column: 2;
    color: var(--ot-muted);
    overflow-wrap: anywhere;
}

.att__event--empty {
    display: block;
    color: var(--ot-muted);
}

.cl-card__who {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem 1rem;
    padding: 1.25rem;
    border-bottom: 1px solid var(--ot-border);
}

.cl-card__avatar {
    display: grid;
    flex: none;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #14527A 0%, #2A8BB8 100%);
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
}

.cl-card__name {
    display: grid;
    flex: 1 1 12rem;
    gap: .2rem;
    min-width: 0;
}

.cl-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.cl-card__sub {
    color: var(--ot-muted);
    font-size: .86rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.cl-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
    gap: 1rem 1.5rem;
    margin: 0;
    padding: 1.1rem 1.25rem 1.25rem;
}

.cl-facts--compact {
    grid-template-columns: minmax(0, 1fr);
    gap: .85rem;
}

.cl-fact dt {
    display: flex;
    align-items: center;
    gap: .35rem;
    color: var(--ot-muted);
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.cl-fact dt .ic {
    flex: none;
    width: .85rem;
    height: .85rem;
}

.cl-fact dd {
    margin: .25rem 0 0;
    font-size: .95rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.cl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 0 1.5rem;
    align-items: start;
}

.cl-rows {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cl-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem 1rem;
    padding: .8rem 1.25rem;
    border-bottom: 1px solid var(--ot-border);
}

.cl-row:last-child {
    border-bottom: 0;
}

.cl-row__main {
    display: grid;
    flex: 1 1 12rem;
    gap: .2rem;
    min-width: 0;
}

.cl-row__title {
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.cl-row__meta {
    color: var(--ot-muted);
    font-size: .82rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.cl-empty {
    margin: 0;
    padding: 1rem 1.25rem 1.25rem;
    color: var(--ot-muted);
    line-height: 1.5;
}

.cl-grid .panel > .btn-link {
    margin: 0 1.25rem 1rem;
}

@media (max-width: 767.98px) {
    .att-list {
        padding: .85rem;
    }

    .att__head {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .att__state {
        display: flex;
        flex-wrap: wrap;
        grid-column: 1 / -1;
        align-items: center;
        gap: .4rem .75rem;
        text-align: left;
    }

    .att__chevron {
        grid-row: 1;
        grid-column: 3;
    }

    .att__event {
        grid-template-columns: minmax(0, 1fr);
    }

    .att__detail {
        grid-column: 1;
    }

    .cl-card__who,
    .cl-facts {
        padding-right: 1rem;
        padding-left: 1rem;
    }
}

@media (max-width: 359.98px) {
    .att__head {
        grid-template-columns: minmax(0, 1fr) auto;
        padding: .75rem;
    }

    .att__num {
        flex-direction: row;
        justify-self: start;
        gap: .35rem;
        min-width: 0;
        min-height: 0;
    }

    .att__main {
        grid-column: 1 / -1;
    }

    .att__chevron {
        grid-column: 2;
    }

    .att__body {
        padding: .85rem .75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .att,
    .att__chevron {
        transition: none;
    }
}

.per-list {
    display: grid;
    gap: .75rem;
    margin: 0;
    padding: 1rem 1.25rem 1.25rem;
    list-style: none;
}

.per-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: .5rem 1rem;
    padding: .9rem 1rem;
    border: 1px solid var(--ot-border);
    border-left: 4px solid var(--ot-primary);
    border-radius: 14px;
    background: var(--ot-surface);
}

.per-item--paused {
    border-left-color: var(--st-partial);
}

.per-item__num {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--ot-primary-soft);
    color: var(--ot-primary);
    font-weight: 700;
}

.per-item__main {
    display: grid;
    gap: .3rem;
    min-width: 0;
}

.per-item__title {
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.per-item__meta,
.per-item__dates {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem .5rem;
    color: var(--ot-muted);
    font-size: .85rem;
    line-height: 1.45;
}

.per-item__dates .ic {
    flex: none;
    width: .85rem;
    height: .85rem;
}

.per-item__dates > span {
    flex: 1 1 0;
    min-width: 0;
    overflow-wrap: anywhere;
}

.per-item__tag {
    padding: .05rem .5rem;
    border-radius: 999px;
    background: var(--ot-surface-alt);
    color: var(--ot-text);
    font-size: .75rem;
    font-weight: 600;
}

.per-item__tag--queued {
    background: var(--ot-primary-soft);
    color: var(--ot-primary);
}

.per-switch {
    justify-self: end;
    max-width: 22rem;
}

.per-switch > summary {
    list-style: none;
    white-space: normal;
}

.per-switch > summary::-webkit-details-marker {
    display: none;
}

.per-switch__box {
    display: grid;
    gap: .6rem;
    margin-top: .6rem;
    padding: .75rem .85rem;
    border-radius: 12px;
    background: var(--ot-surface-alt);
    font-size: .86rem;
    line-height: 1.5;
}

.per-switch__box p {
    margin: 0;
    overflow-wrap: anywhere;
}

.per-switch__box .btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    justify-self: start;
}

@media (max-width: 767.98px) {
    .per-list {
        padding: .85rem;
    }

    .per-item {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .per-switch {
        grid-column: 1 / -1;
        justify-self: stretch;
        max-width: none;
    }

    .per-switch > summary {
        display: flex;
        justify-content: center;
        min-height: 44px;
        align-items: center;
    }
}

.plan__test {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    align-self: flex-start;
    margin-bottom: .5rem;
    padding: .2rem .6rem;
    border-radius: 999px;
    background: var(--ot-primary-soft);
    color: var(--ot-text);
    font-size: .75rem;
    font-weight: 600;
    line-height: 1.35;
}

.plan__test .ic,
.plan__special .ic {
    flex: none;
    width: 1rem;
    height: 1rem;
}

.plan__test span,
.plan__special span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.plan__special {
    display: flex;
    align-items: flex-start;
    gap: .4rem;
    margin: .35rem 0 0;
    color: var(--st-present);
    font-size: .84rem;
    font-weight: 600;
    line-height: 1.45;
}

.plan__special s {
    color: var(--ot-muted);
    font-weight: 400;
}

.spec {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 1.25rem;
    margin: 1.5rem 0 0;
    padding: 1.5rem;
    border: 1px solid color-mix(in srgb, var(--ot-primary) 30%, var(--ot-border));
    border-radius: 22px;
    background:
        radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--ot-primary) 14%, transparent), transparent 60%),
        var(--ot-surface);
    box-shadow: var(--sh-1);
}

.spec__main,
.spec__side {
    min-width: 0;
}

.spec__badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .25rem .65rem;
    border-radius: 999px;
    background: var(--ot-primary-soft);
    color: var(--ot-primary);
    font-size: .78rem;
    font-weight: 700;
}

.spec__badge .ic {
    width: .95rem;
    height: .95rem;
}

.spec__title {
    margin: .65rem 0 .5rem;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: break-word;
}

.spec__lead {
    margin: 0;
    color: var(--ot-muted);
    line-height: 1.6;
}

.spec__steps {
    display: grid;
    gap: .55rem;
    margin: 1.1rem 0 0;
    padding: 0;
    list-style: none;
}

.spec__step {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    min-width: 0;
}

.spec__step-num {
    flex: none;
    display: inline-grid;
    place-items: center;
    width: 1.9rem;
    height: 1.9rem;
    border: 1px solid var(--ot-border);
    border-radius: 50%;
    background: var(--ot-surface-alt);
    color: var(--ot-muted);
    font-size: .85rem;
    font-weight: 700;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

.spec__step.is-done .spec__step-num {
    border-color: var(--st-present);
    background: var(--st-present-bg);
    color: var(--st-present);
}

.spec__step.is-current .spec__step-num {
    border-color: var(--ot-primary);
    background: var(--ot-primary-soft);
    color: var(--ot-primary);
}

.spec__step-text,
.spec__bonus-text {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    min-width: 0;
    line-height: 1.45;
    overflow-wrap: break-word;
}

.spec__step-text span,
.spec__bonus-text span {
    color: var(--ot-muted);
    font-size: .86rem;
}

.spec__side {
    display: flex;
    flex-direction: column;
    gap: .8rem;
    padding: 1.1rem;
    border: 1px solid var(--ot-border);
    border-radius: 16px;
    background: var(--ot-surface-alt);
}

.spec__side-title {
    color: var(--ot-muted);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.spec__bonuses {
    display: grid;
    gap: .7rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.spec__bonuses--row {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    padding: 0 1.25rem 1.1rem;
}

.spec__bonus {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    min-width: 0;
}

.spec__bonus-icon {
    flex: none;
    display: inline-grid;
    place-items: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 11px;
    background: var(--ot-primary-soft);
    color: var(--ot-primary);
}

.spec__bonus-icon .ic {
    width: 1.05rem;
    height: 1.05rem;
}

.spec__manager {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    margin: 0;
    padding: .6rem .75rem;
    border-radius: 12px;
    background: var(--st-present-bg);
    color: var(--ot-text);
    font-size: .88rem;
    line-height: 1.45;
}

.spec-mine .spec__manager {
    margin: 0 1.25rem 1.1rem;
}

.spec__manager .ic {
    flex: none;
    width: 1rem;
    height: 1rem;
    margin-top: .15rem;
    color: var(--st-present);
}

.spec__manager span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.spec__action {
    display: grid;
    gap: .35rem;
    margin-top: auto;
}

.spec__action .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 44px;
    white-space: normal;
}

.spec__state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 44px;
    padding: .4rem .8rem;
    border: 1px dashed var(--ot-border);
    border-radius: 12px;
    color: var(--ot-muted);
    font-weight: 600;
    text-align: center;
}

.spec__state--ok {
    border-style: solid;
    border-color: var(--st-present);
    background: var(--st-present-bg);
    color: var(--st-present);
}

.spec__state .ic {
    flex: none;
    width: 1.05rem;
    height: 1.05rem;
}

.spec-choice {
    margin: 0 0 1rem;
    padding: 0;
    border: 0;
}

.spec-choice__legend {
    margin-bottom: .5rem;
    font-size: .9rem;
    font-weight: 600;
}

.spec-choice__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: .6rem;
}

.spec-choice__item {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    min-width: 0;
    min-height: 44px;
    padding: .7rem .8rem;
    border: 1px solid var(--ot-border);
    border-radius: 12px;
    background: var(--ot-surface-alt);
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease;
}

.spec-choice__item:hover,
.spec-choice__item:focus-within {
    border-color: var(--ot-primary);
}

.spec-choice__item:has(input:checked) {
    border-color: var(--ot-primary);
    background: var(--ot-primary-soft);
}

.spec-choice__item .form-check-input {
    flex: none;
    margin-top: .2rem;
}

.spec-choice__text {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    min-width: 0;
    line-height: 1.4;
    overflow-wrap: break-word;
}

.spec-choice__text span {
    color: var(--ot-muted);
    font-size: .84rem;
}

.spec-decide {
    flex-wrap: wrap;
    gap: .4rem;
}

.pay-free {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border-color: color-mix(in srgb, var(--st-present) 45%, var(--ot-border));
    background: linear-gradient(90deg, var(--st-present-bg), transparent 70%), var(--ot-surface);
}

.pay-free__icon {
    display: inline-grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 14px;
    background: var(--st-present-bg);
    color: var(--st-present);
}

.pay-free__icon .ic {
    width: 1.35rem;
    height: 1.35rem;
}

.pay-free__body {
    min-width: 0;
}

.pay-free__title {
    margin: 0 0 .25rem;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
}

.pay-free__text {
    margin: 0;
    color: var(--ot-muted);
    font-size: .9rem;
    line-height: 1.55;
}

.pay-free__form .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 44px;
    white-space: normal;
}

.pay-choose {
    margin-bottom: 0;
}

.pay-howto__steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
    gap: .75rem;
    margin: 0;
    padding: 0 1.25rem 1rem;
    list-style: none;
}

.pay-howto__step {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    min-width: 0;
    padding: .85rem;
    border: 1px solid var(--ot-border);
    border-radius: 14px;
    background: var(--ot-surface-alt);
}

.pay-howto__num {
    flex: none;
    display: inline-grid;
    place-items: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 50%;
    background: var(--ot-primary-soft);
    color: var(--ot-primary);
    font-weight: 700;
}

.pay-howto__text {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    min-width: 0;
    line-height: 1.45;
    overflow-wrap: break-word;
}

.pay-howto__text span {
    color: var(--ot-muted);
    font-size: .86rem;
}

.pay-howto__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    padding: 0 1.25rem 1.25rem;
}

.pay-howto__actions .btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-height: 44px;
}

.cl-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    padding: 0 1.25rem 1.1rem;
}

.cl-group__label {
    flex: 1 1 100%;
    color: var(--ot-muted);
    font-size: .8rem;
    font-weight: 600;
}

.cl-group .form-select,
.cl-group .form-control {
    flex: 1 1 200px;
    min-width: 0;
    max-width: 100%;
}

@media (max-width: 767.98px) {
    .spec {
        grid-template-columns: minmax(0, 1fr);
        padding: 1.1rem;
    }

    .spec__title {
        font-size: 1.15rem;
    }

    .pay-free {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .pay-free__form {
        grid-column: 1 / -1;
    }

    .pay-free__form .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .spec__step-num,
    .spec-choice__item {
        transition: none;
    }
}

.plan__test-note {
    margin: 0;
    color: var(--ot-muted);
    font-size: .84rem;
    line-height: 1.45;
    text-align: center;
}
