.sun-tool {
    max-width: 640px;
    margin: 1.5em auto;
    padding: 1.25em;
    border: 1px solid #e2e2e2;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    font-family: inherit;
}

.sun-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75em;
    align-items: flex-end;
}

.sun-field {
    display: flex;
    flex-direction: column;
    gap: 0.3em;
    flex: 1 1 160px;
}

.sun-label {
    font-size: 0.85em;
    font-weight: 600;
    color: #444;
}

.sun-select,
.sun-input {
    padding: 0.6em 0.7em;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fff;
}

.sun-select:focus,
.sun-input:focus {
    outline: none;
    border-color: #2f80ed;
    box-shadow: 0 0 0 2px rgba(47, 128, 237, 0.2);
}

.sun-btn {
    padding: 0.6em 1.4em;
    font-size: 1em;
    font-weight: 600;
    color: #fff;
    background: #2f80ed;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.sun-btn:hover {
    background: #1f6ad6;
}

.sun-err {
    margin: 1em 0 0;
    padding: 0.75em 1em;
    color: #b3261e;
    background: #fdecea;
    border: 1px solid #f5c2c0;
    border-radius: 8px;
}

.sun-results {
    margin-top: 1.25em;
}

.sun-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75em;
}

.sun-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35em;
    padding: 1em 0.5em;
    background: #f7f9fc;
    border: 1px solid #e6ebf2;
    border-radius: 10px;
    text-align: center;
}

.sun-stat-label {
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #667;
}

.sun-stat-value {
    font-size: 1.35em;
    font-weight: 700;
    color: #1a1a1a;
}

.sun-len {
    margin: 1em 0 0;
    text-align: center;
    font-size: 1.05em;
    color: #333;
}

.sun-len span {
    font-weight: 700;
}

@media (max-width: 520px) {
    .sun-stats {
        grid-template-columns: 1fr;
    }

    .sun-controls {
        flex-direction: column;
        align-items: stretch;
    }
}
