body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    max-width: 600px;
    margin: 40px auto;
    line-height: 1.6;
    background-color: #f0f2f5;
    color: #333;
}

h1 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.mode-selector {
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.mode-selector label {
    display: block;
    margin: 0.5rem 0;
    font-weight: 400;
    cursor: pointer;
}

.mode-selector input[type="radio"] {
    margin-right: 0.5rem;
}

label {
    display: block;
    margin-top: 1rem;
    font-weight: 500;
}

input[type=range] {
    width: 100%;
    margin-top: 6px;
}

input[type=number] {
    width: 100%;
    padding: 8px;
    margin-top: 4px;
    font-size: 1rem;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.slider-value {
    margin-top: 4px;
    font-weight: 400;
    color: #555;
}

.result {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.result p {
    margin: 0.5rem 0;
    font-weight: 500;
}

.result strong {
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
}

.section-divider {
    height: 1px;
    background: #ddd;
    margin: 1.5rem 0;
    border: none;
}

.inline-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.inline-label span {
    font-weight: 500;
    color: #444;
}