.sms-shell {
    padding-bottom: 72px;
}

.sms-heading p {
    max-width: 620px;
}

.entry-page h2 {
    margin-top: 24px;
}

.environment-note {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8ebef;
    color: #576170;
}

.environment-note strong {
    color: #0875e1;
}

.environment-note span {
    text-align: right;
}

.card-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 20px;
    padding: 20px 0;
    border-top: 1px solid #e8ebef;
    border-bottom: 1px solid #e8ebef;
}

.card-summary.is-hidden {
    display: none;
}

.card-summary span,
.activation-meta span {
    display: block;
    margin-bottom: 6px;
    color: #747c88;
    font-size: 14px;
    font-weight: 700;
}

.card-summary strong,
.activation-meta strong {
    display: block;
    overflow-wrap: anywhere;
    color: #1f2328;
    line-height: 1.45;
}

.activate-button {
    margin-top: 20px;
}

.activation-page {
    min-height: 520px;
    padding: 28px;
}

.activation-page:focus {
    outline: none;
}

.activation-status {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.activation-status-dot {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 7px;
    border-radius: 50%;
    background: #9b6500;
    box-shadow: 0 0 0 9px rgba(155, 101, 0, .1);
    animation: smsPulse 1.4s ease-in-out infinite;
}

.activation-page.state-ok .activation-status-dot {
    background: #147947;
    box-shadow: 0 0 0 9px rgba(20, 121, 71, .1);
    animation: none;
}

.activation-page.state-bad .activation-status-dot {
    background: #a61d24;
    box-shadow: 0 0 0 9px rgba(166, 29, 36, .1);
    animation: none;
}

.activation-status span {
    display: block;
    margin-bottom: 7px;
    color: #0875e1;
    font-weight: 900;
}

.activation-status h2 {
    margin: 0;
    font-size: 34px;
    line-height: 1.2;
}

.activation-status p {
    margin: 10px 0 0;
    color: #66707f;
    line-height: 1.6;
}

.activation-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 28px;
    padding: 18px 0;
    border-top: 1px solid #e8ebef;
    border-bottom: 1px solid #e8ebef;
}

.activation-field {
    padding: 26px 0;
    border-bottom: 1px solid #e8ebef;
}

.activation-field label {
    margin-bottom: 12px;
    color: #66707f;
    font-size: 14px;
}

.value-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.phone-value,
.code-value {
    min-width: 0;
    overflow-wrap: anywhere;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
}

.phone-value {
    font-size: 38px;
    line-height: 1.2;
}

.code-value {
    color: #747c88;
    font-size: 32px;
    line-height: 1.2;
}

.activation-page.state-ok .code-value {
    color: #147947;
    font-size: 44px;
}

.copy-button {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0 16px;
    color: #0875e1;
    background: #eaf4ff;
}

.copy-button:hover:not(:disabled) {
    background: #d9ebff;
}

.action-countdown {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 22px;
    padding: 18px 0;
    color: #8a5a00;
}

.action-countdown strong {
    flex: 0 0 auto;
    min-width: 86px;
    color: #1f2328;
    font-size: 30px;
    font-variant-numeric: tabular-nums;
}

.action-countdown.ready {
    color: #14643a;
}

.activation-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.danger-button {
    color: #a61d24;
    background: #fff0f0;
    border: 1px solid #f2b8b8;
}

.danger-button:hover:not(:disabled) {
    color: #fff;
    background: #a61d24;
}

.terminal-action {
    min-height: 56px;
}

.sms-shell .is-hidden {
    display: none;
}

button:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(8, 117, 225, .24);
    outline-offset: 2px;
}

@keyframes smsPulse {
    0%, 100% {
        transform: scale(.8);
        opacity: .5;
    }
    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .activation-status-dot {
        animation: none;
    }
}

@media (max-width: 700px) {
    .environment-note {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .environment-note span {
        text-align: left;
    }

    .card-summary,
    .activation-meta {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .activation-page {
        min-height: 0;
        padding: 20px 18px;
    }

    .activation-status h2 {
        font-size: 28px;
    }

    .value-row {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }

    .phone-value {
        font-size: 29px;
    }

    .code-value,
    .activation-page.state-ok .code-value {
        font-size: 34px;
    }

    .copy-button {
        width: 100%;
    }

    .action-countdown {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .activation-actions {
        grid-template-columns: 1fr;
    }
}
