.stx {
    --pk-accent: #fd3367;
    --pk-accent-dark: #500b28;
    --pk-gradient: linear-gradient(45deg, #fd3367, #663399);
    --pk-ink: #212529;
    --pk-muted: #6c757d;
    --pk-border: #dee2e6;
    --pk-field-bg: #fff;
    --pk-ok: #1e7e34;
    --pk-warning: #b8860b;
    --pk-error: #e21c34;
    max-width: 60rem;
    margin: 0 auto;
    color: var(--pk-ink);
}

.stx__title {
    font-family: "Montserrat-ExtraBold", sans-serif;
    letter-spacing: .02em;
    margin: 0 0 1rem;
    color: var(--pk-accent-dark);
}

.stx__intro {
    font-family: "Montserrat-Regular", sans-serif;
    font-size: .9rem;
    color: var(--pk-muted);
    margin: 0 0 1.25rem;
    line-height: 1.5;
}

.stx__intro code { font-family: monospace; background: rgba(253,51,103,.08); padding: 0 .25em; border-radius: .2rem; }

.stx__form { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: end; }
.stx__field { display: flex; flex-direction: column; gap: .4rem; margin: 0; }

.stx__label {
    font-family: "Montserrat-SemiBold", sans-serif;
    font-size: .8rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--pk-accent);
}

.stx__domain {
    font-family: "Menlo", "Consolas", monospace;
    font-size: .95rem;
    color: var(--pk-ink);
    padding: .7rem .75rem;
    border: 1px solid var(--pk-border);
    border-radius: .25rem;
    background: var(--pk-field-bg);
    box-sizing: border-box;
}

.stx__domain:focus { outline: 0; border-color: var(--pk-accent); box-shadow: 0 0 0 .2rem rgba(253,51,103,.25); }

.stx__btn {
    appearance: none;
    border: 0;
    border-radius: .25rem;
    padding: .75rem 2rem;
    font-family: "Montserrat-ExtraBold", sans-serif;
    font-size: .9rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #fff;
    background: var(--pk-gradient);
    cursor: pointer;
    transition: filter .3s ease, transform .1s ease;
}

.stx__btn:hover { filter: brightness(1.08); }
.stx__btn:active { transform: translateY(1px); }
.stx__btn:disabled { opacity: .6; cursor: progress; }

.stx__status {
    margin: 1rem 0 0;
    font-family: "Montserrat-SemiBold", sans-serif;
    font-size: .85rem;
    min-height: 1.2em;
}

.stx__status--error { color: var(--pk-error); }

.stx__result { margin-top: 1.5rem; }

.stx__summary {
    font-family: "Montserrat-ExtraBold", sans-serif;
    font-size: .95rem;
    margin: 0 0 1rem;
    padding: .75rem 1rem;
    border-radius: .25rem;
}

.stx__summary--ok { color: #fff; background: var(--pk-ok); }
.stx__summary--warning { color: #fff; background: var(--pk-warning); }
.stx__summary--error { color: #fff; background: var(--pk-error); }

.stx__issues {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
    font-family: "Montserrat-Regular", sans-serif;
    font-size: .88rem;
    color: var(--pk-ink);
}

.stx__issues li { margin: .2rem 0; }

.stx__fields {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: .35rem 1rem;
    margin: 0 0 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--pk-border);
    border-radius: .25rem;
    background: #fbfbfc;
    font-size: .85rem;
}

.stx__fields dt { font-family: "Montserrat-SemiBold", sans-serif; color: var(--pk-muted); }
.stx__fields dd { margin: 0; font-family: "Menlo", "Consolas", monospace; word-break: break-word; }

.stx__toggle {
    appearance: none;
    background: none;
    border: 0;
    padding: 0;
    font-family: "Montserrat-SemiBold", sans-serif;
    font-size: .82rem;
    color: var(--pk-accent);
    cursor: pointer;
    text-decoration: underline;
}

.stx__raw {
    font-family: "Menlo", "Consolas", monospace;
    font-size: .78rem;
    line-height: 1.5;
    color: var(--pk-ink);
    background: #fbfbfc;
    border: 1px solid var(--pk-border);
    border-radius: .25rem;
    padding: .75rem;
    margin: .75rem 0 0;
    max-height: 20rem;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

@media (max-width: 34rem) {
    .stx__form { grid-template-columns: 1fr; }
    .stx__btn { width: 100%; }
    .stx__fields { grid-template-columns: 1fr; gap: .1rem; }
    .stx__fields dd { margin-bottom: .4rem; }
}
