.sta-app {
    --sta-border: #d7dce2;
    --sta-muted: #5e6875;
    --sta-surface: #ffffff;
    --sta-soft: #f5f7f9;
    --sta-accent: #173f5f;
    --sta-positive: #177245;
    --sta-warning: #8a4b08;
    --sta-danger: #9f2d2d;
    max-width: 980px;
    margin: 2rem auto;
    padding: clamp(1.1rem, 3vw, 2.25rem);
    border: 1px solid var(--sta-border);
    border-radius: 20px;
    background: var(--sta-surface);
    box-shadow: 0 18px 50px rgba(25, 40, 55, 0.08);
    color: #18212a;
    font-size: 16px;
    line-height: 1.58;
}

.sta-app *,
.sta-app *::before,
.sta-app *::after {
    box-sizing: border-box;
}

.sta-app__header {
    max-width: 760px;
    margin-bottom: 1.5rem;
}

.sta-app__eyebrow {
    margin: 0 0 0.35rem;
    color: var(--sta-accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.sta-app h2,
.sta-app h3,
.sta-app h4 {
    line-height: 1.25;
}

.sta-app h2 {
    margin: 0 0 0.65rem;
    font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.sta-app p {
    margin-top: 0.45rem;
}

.sta-form {
    padding: clamp(1rem, 2.5vw, 1.5rem);
    border-radius: 15px;
    background: var(--sta-soft);
}

.sta-field label,
.sta-form__options > label {
    display: block;
    margin-bottom: 0.45rem;
    font-weight: 750;
}

.sta-field textarea,
.sta-form select,
.sta-password-field input {
    width: 100%;
    border: 1px solid #b9c2cc;
    border-radius: 10px;
    background: #fff;
    color: #18212a;
    font: inherit;
}

.sta-field textarea {
    min-height: 230px;
    padding: 0.95rem;
    resize: vertical;
}

.sta-form select {
    min-width: 240px;
    padding: 0.7rem 2.2rem 0.7rem 0.8rem;
}

.sta-password-field input {
    min-width: 220px;
    padding: 0.7rem 0.8rem;
}

.sta-field textarea:focus,
.sta-form select:focus,
.sta-password-field input:focus,
.sta-button:focus-visible,
.sta-details summary:focus-visible {
    outline: 3px solid rgba(23, 63, 95, 0.22);
    outline-offset: 2px;
    border-color: var(--sta-accent);
}

.sta-field__meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.35rem;
    color: var(--sta-muted);
    font-size: 0.82rem;
}

.sta-form__options {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
}

.sta-button {
    min-height: 46px;
    padding: 0.72rem 1.2rem;
    border: 0;
    border-radius: 10px;
    background: var(--sta-accent);
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.sta-button:hover {
    filter: brightness(1.08);
}

.sta-button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.sta-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.sta-status {
    min-height: 1.5rem;
    margin: 1rem 0;
    font-weight: 700;
}

.sta-status--working {
    color: var(--sta-accent);
}

.sta-status--success {
    color: var(--sta-positive);
}

.sta-status--error {
    color: var(--sta-danger);
}

.sta-overview {
    margin: 1.5rem 0;
    padding: 1.1rem 1.25rem;
    border-left: 5px solid var(--sta-accent);
    border-radius: 8px;
    background: #eef4f8;
}

.sta-overview h3 {
    margin: 0;
}

.sta-overview__meta {
    color: var(--sta-muted);
    font-size: 0.86rem;
}

.sta-result {
    margin: 1.4rem 0;
    padding: clamp(1rem, 2.5vw, 1.5rem);
    border: 1px solid var(--sta-border);
    border-radius: 16px;
    background: #fff;
}

.sta-result__header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: start;
    gap: 0.9rem;
}

.sta-result__rank {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    border-radius: 50%;
    background: var(--sta-accent);
    color: #fff;
    font-weight: 850;
}

.sta-result__title h3 {
    margin: 0;
    font-size: 1.3rem;
}

.sta-result__title p {
    margin: 0.2rem 0 0;
    color: var(--sta-muted);
    font-size: 0.88rem;
}

.sta-score {
    min-width: 118px;
    text-align: right;
}

.sta-score strong,
.sta-score span {
    display: block;
}

.sta-score strong {
    font-size: 1.45rem;
}

.sta-score span {
    color: var(--sta-muted);
    font-size: 0.78rem;
}

.sta-meter {
    height: 8px;
    margin: 0.9rem 0;
    overflow: hidden;
    border-radius: 999px;
    background: #e4e8ec;
}

.sta-meter__value {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--sta-accent);
}

.sta-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0.7rem 0 1rem;
}

.sta-badge {
    display: inline-flex;
    padding: 0.3rem 0.58rem;
    border-radius: 999px;
    background: #eaf0f4;
    color: #263440;
    font-size: 0.78rem;
    font-weight: 700;
}

.sta-badge--status {
    background: #f4eee5;
}

.sta-result__definition {
    font-size: 1.02rem;
}

.sta-result__section {
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid #e8ebee;
}

.sta-result__section h4 {
    margin: 0 0 0.55rem;
}

.sta-evidence-list,
.sta-result__section ul,
.sta-source-list {
    padding-left: 1.25rem;
}

.sta-evidence-list__item {
    margin-bottom: 0.85rem;
}

.sta-evidence-list__item p {
    margin: 0.15rem 0;
    color: #394550;
}

.sta-evidence-list blockquote {
    margin: 0.45rem 0 0;
    padding: 0.65rem 0.8rem;
    border-left: 3px solid #a8b6c3;
    background: #fafbfc;
    color: #35414c;
    font-size: 0.92rem;
}

.sta-result__section--counter {
    color: #662424;
}

.sta-result__section--questions {
    padding: 1rem;
    border: 1px solid #e0c899;
    border-radius: 10px;
    background: #fff9ec;
}

.sta-callout {
    padding: 0.85rem 1rem;
    border-radius: 9px;
    background: #eef4f8;
}

.sta-callout--caution {
    border-left: 4px solid var(--sta-warning);
    background: #fff8ee;
}

.sta-alternatives {
    color: var(--sta-muted);
}

.sta-details {
    margin-top: 1rem;
    border-top: 1px solid #e8ebee;
    padding-top: 0.8rem;
}

.sta-details summary {
    cursor: pointer;
    font-weight: 800;
}

.sta-source-list li {
    margin: 0.55rem 0;
}

.sta-source-list a {
    overflow-wrap: anywhere;
}

.sta-app__footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--sta-border);
    color: var(--sta-muted);
    font-size: 0.82rem;
}

@media (max-width: 680px) {
    .sta-app {
        margin: 1rem auto;
        border-radius: 12px;
    }

    .sta-form__options {
        display: grid;
    }

    .sta-form select,
    .sta-password-field input,
    .sta-button {
        width: 100%;
    }

    .sta-result__header {
        grid-template-columns: auto 1fr;
    }

    .sta-score {
        grid-column: 2;
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sta-app * {
        scroll-behavior: auto !important;
    }
}

.sta-callout--diagnostic {
    border-left: 4px solid var(--sta-warning);
    background: #fff8ee;
}

.sta-callout--diagnostic strong {
    display: block;
    margin-bottom: 0.35rem;
}
