.stdev-hero {
    background: #f5f8fc;
    border-bottom: 1px solid #e3e9f0;
}

.stdev-hero-copy {
    max-width: 860px;
}

.stdev-hero h1 {
    letter-spacing: 0;
    line-height: 1.2;
}

.stdev-hero-note {
    color: #344054;
}

.stdev-tool-section {
    scroll-margin-top: 1rem;
}

.stdev-values-input {
    min-height: 10rem;
    resize: vertical;
    font-variant-numeric: tabular-nums;
}

.stdev-result-panel {
    min-height: 100%;
}

.stdev-primary-result {
    color: #145c91;
    font-size: 2.75rem;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.stdev-result-mark {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 0.75rem;
    background: #e8f2f8;
    color: #145c91;
    font-weight: 700;
}

.stdev-number-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0.65rem;
    border: 1px solid #e1e7ed;
    border-radius: 0.5rem;
    background: #f8fafc;
}

.stdev-number-chip {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.25rem 0.6rem;
    border: 1px solid #d4e3ee;
    border-radius: 999px;
    background: #fff;
    color: #174e75;
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
}

.stdev-number-chip-muted {
    color: #475467;
    border-color: #d0d5dd;
    background: #f2f4f7;
}

.stdev-metric {
    min-height: 5.3rem;
    padding: 0.6rem 0;
    border-top: 1px solid #e1e7ed;
}

.stdev-metric [data-result-key] {
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.stdev-formula-block,
.stdev-steps-block {
    border: 1px solid #e1e7ed;
    border-radius: 0.5rem;
    background: #f8fafc;
}

.stdev-formula {
    margin: 0;
    padding: 0.75rem;
    border: 1px solid #e1e7ed;
    border-radius: 0.375rem;
    background: #fff;
    color: #1d2939;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 0.9rem;
}

.stdev-steps-block li + li {
    margin-top: 0.35rem;
}

.stdev-tool-hint {
    max-width: 50rem;
}

.stdev-info-item {
    padding: 1.25rem;
    border: 1px solid #e3e9ef;
    border-radius: 0.5rem;
    background: #fff;
}

.stdev-step-number {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e4f0f6;
    color: #145c91;
    font-weight: 700;
}

.stdev-reading-width {
    max-width: 920px;
}

.stdev-callout {
    border-left: 4px solid #16827b;
    background: #eef7f5;
}

.stdev-final-callout {
    border: 1px solid #e3e9ef;
    border-radius: 0.5rem;
    background: #fff;
}

.stdev-hero button,
.stdev-hero select,
.stdev-hero input,
.stdev-hero textarea,
.stdev-tool-section button,
.stdev-tool-section select,
.stdev-tool-section input,
.stdev-tool-section textarea {
    touch-action: manipulation;
}

.stdev-tool-section button:focus-visible,
.stdev-tool-section select:focus-visible,
.stdev-tool-section textarea:focus-visible,
.stdev-final-callout a:focus-visible {
    outline: 3px solid rgba(20, 92, 145, 0.4);
    outline-offset: 2px;
}

@media (max-width: 991.98px) {
    .stdev-primary-result {
        font-size: 2.35rem;
    }
}

@media (max-width: 575.98px) {
    .stdev-hero {
        padding-top: 1rem !important;
        padding-bottom: 1.25rem !important;
    }

    .stdev-values-input {
        min-height: 8.5rem;
    }

    .stdev-primary-result {
        font-size: 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .stdev-tool-section *,
    .stdev-tool-section *::before,
    .stdev-tool-section *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
