* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
    position: fixed;
    width: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
    background: transparent;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 430px;
    height: 100vh;
    max-height: 932px;
    margin: 0 auto;
    background: #efeff4;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #c6c6c8;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.section-header {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 400;
    color: #8e8e93;
    text-transform: uppercase;
    letter-spacing: -0.08px;
    background: #efeff4;
    margin-top: 0;
}

.section-header:first-of-type {
    margin-top: 0;
}

.input-group {
    background: #efeff4;
    border-top: 0.5px solid #c6c6c8;
    border-bottom: 0.5px solid #c6c6c8;
    margin-bottom: 35px;
}

.input-row {
    display: flex;
    align-items: center;
    padding: 11px 16px;
    border-bottom: 0.5px solid #c6c6c8;
    min-height: 44px;
    background: #efeff4;
}

.input-row:last-child {
    border-bottom: none;
}

.input-label {
    flex: 1;
    font-size: 17px;
    color: #000;
    font-weight: 400;
}

.input-value-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
    min-width: 150px;
}

.input-field {
    text-align: right;
    border: none;
    background: #ffffff;
    font-size: 17px;
    color: #000;
    padding: 6px 10px;
    width: 90px;
    border-radius: 6px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
}

.input-field:focus {
    outline: none;
    background: #ffffff;
}

.input-unit {
    font-size: 17px;
    color: #000000;
    min-width: 45px;
    width: 45px;
    text-align: left;
}

select.input-field {
    appearance: none;
    -webkit-appearance: none;
    background: #ffffff;
    color: #000;
    text-align: right;
    padding: 6px 10px;
    width: 90px;
    border-radius: 6px;
}

.results-group {
    background: #efeff4;
    border-top: 0.5px solid #c6c6c8;
    border-bottom: 0.5px solid #c6c6c8;
}

.result-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px;
    border-bottom: 0.5px solid #c6c6c8;
    min-height: 44px;
    background: #efeff4;
}

.result-row:last-child {
    border-bottom: none;
}

.result-label {
    font-size: 17px;
    color: #000;
    font-weight: 400;
}

.result-value-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-value {
    font-size: 17px;
    color: #000;
    text-align: right;
}

.result-unit {
    font-size: 17px;
    color: #000000;
    min-width: 50px;
    text-align: left;
}

/* Prevent zoom on input focus on iOS */
@supports (-webkit-touch-callout: none) {
    input, select {
        font-size: 16px !important;
    }
}

@media (max-width: 600px) {
    .header {
        padding: 50px 20px 25px;
    }
    
    .header h1 {
        font-size: 30px;
    }
}
