.tp-psc {
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    font-family: inherit;
    color: inherit;
}

.tp-psc *,
.tp-psc *::before,
.tp-psc *::after {
    box-sizing: border-box;
}

.tp-psc__card {
    width: 100%;
    margin: 0 auto;
    padding: 28px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

.tp-psc__title {
    margin: 0 0 8px;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    line-height: 1.2;
}

.tp-psc__text,
.tp-psc__hint,
.tp-psc__result-text,
.tp-psc__notice {
    line-height: 1.6;
}

.tp-psc__text {
    margin: 0 0 24px;
    opacity: 0.82;
}

.tp-psc__label {
    display: inline-block;
    margin-bottom: 8px;
    font-weight: 700;
}

.tp-psc__input-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.tp-psc__input {
    min-width: 0;
    flex: 1 1 auto;
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid #b8bec7;
    border-radius: 10px;
    background: #fff;
    color: #111827;
    font: inherit;
    outline: none;
}

.tp-psc__input:focus {
    border-color: #111827;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.12);
}

.tp-psc__toggle,
.tp-psc__button {
    min-height: 50px;
    border: 0;
    border-radius: 10px;
    padding: 0 18px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s ease, opacity .15s ease, background-color .15s ease;
}

.tp-psc__toggle:hover,
.tp-psc__button:hover {
    transform: translateY(-1px);
}

.tp-psc__toggle {
    flex: 0 0 auto;
    width: auto;
    height: 50px;
    min-height: 50px;
    max-height: 50px;
    margin: 0 !important;
    padding: 0 16px !important;
    line-height: 1.2 !important;
    border: 1px solid #b8bec7;
    background: #f7f7f8;
    color: #111827;
}

.tp-psc__button {
    width: 100%;
    margin-top: 22px;
    background: #111827;
    color: #fff;
}

.tp-psc__hint {
    margin: 8px 0 0;
    font-size: .92rem;
    opacity: .72;
}

.tp-psc__live {
    margin-top: 24px;
    padding: 16px;
    border-radius: 14px;
    background: #f7f8fa;
}

.tp-psc__score-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 10px;
}

.tp-psc__score-label {
    font-weight: 600;
}

.tp-psc__score-value {
    text-align: right;
}

.tp-psc__meter {
    width: 100%;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #dde1e7;
}

.tp-psc__meter-fill {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #94a3b8;
    transition: width .2s ease, background-color .2s ease;
}

.tp-psc__meter-fill[data-level="weak"] { background: #dc2626; }
.tp-psc__meter-fill[data-level="improvable"] { background: #ea580c; }
.tp-psc__meter-fill[data-level="good"] { background: #ca8a04; }
.tp-psc__meter-fill[data-level="very-strong"] { background: #15803d; }

.tp-psc__criteria {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.tp-psc__criterion {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid #e3e6eb;
    border-radius: 10px;
    background: #fff;
    font-size: .94rem;
}

.tp-psc__criterion-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    flex: 0 0 22px;
    background: #eef0f3;
    color: #697386;
    font-weight: 800;
}

.tp-psc__criterion.is-ok {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.tp-psc__criterion.is-ok .tp-psc__criterion-icon {
    background: #dcfce7;
    color: #15803d;
}

.tp-psc__criterion.is-fail {
    border-color: #fed7aa;
    background: #fff7ed;
}

.tp-psc__criterion.is-fail .tp-psc__criterion-icon {
    background: #ffedd5;
    color: #c2410c;
}

.tp-psc__result {
    margin-top: 24px;
    padding: 22px;
    border: 1px solid #e3e6eb;
    border-radius: 14px;
    background: #fafafa;
}

.tp-psc__result-eyebrow {
    display: block;
    margin-bottom: 4px;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .65;
}

.tp-psc__result-title {
    margin: 0;
    font-size: 1.45rem;
}

.tp-psc__result-text {
    margin: 10px 0 0;
}

.tp-psc__tips {
    margin-top: 20px;
}

.tp-psc__tips h4 {
    margin: 0 0 10px;
    font-size: 1rem;
}

.tp-psc__tips ul {
    margin: 0;
    padding-left: 20px;
}

.tp-psc__tips li + li {
    margin-top: 7px;
}

.tp-psc__privacy {
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #eef6ff;
    font-size: .9rem;
    line-height: 1.55;
}

.tp-psc__notice {
    margin-top: 20px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f1f5f9;
    font-size: .88rem;
}

@media (max-width: 640px) {
    .tp-psc__card {
        padding: 20px;
        border-radius: 14px;
    }

    .tp-psc__input-row {
        flex-direction: column;
    }

    .tp-psc__toggle {
        width: 100%;
    }

    .tp-psc__score-line {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .tp-psc__score-value {
        text-align: left;
    }

    .tp-psc__criteria {
        grid-template-columns: 1fr;
    }
}
