/* === Mobile First === */

.kek-calculator {
    width: 100%;
    max-width: 800px;
    margin: 0;
    padding: 1em;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
    box-sizing: border-box;
}

.kek-calculator h3 {
    margin: 0 0 0.8em;
    font-size: 1.1em;
}

.kek-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.2em;
    gap: 0.3em;
}

.kek-step {
    flex: 1;
    text-align: center;
    padding: 0.5em 0.2em;
    font-size: 0.75em;
    color: #999;
    border-bottom: 3px solid #eee;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kek-step.active {
    color: #2271b1;
    border-bottom-color: #2271b1;
    font-weight: 600;
}

.kek-step.done {
    color: #00a32a;
    border-bottom-color: #00a32a;
}

.kek-field {
    margin-bottom: 1em;
}

.kek-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3em;
    font-size: 0.95em;
}

.kek-field input,
.kek-field select {
    width: 100%;
    padding: 0.7em;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    -webkit-appearance: none;
}

.kek-field input:focus,
.kek-field select:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.15);
}

.kek-nav {
    display: flex;
    justify-content: space-between;
    gap: 0.5em;
    margin-top: 1.5em;
}

.kek-btn {
    padding: 0.8em 1.2em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    min-height: 44px;
    min-width: 44px;
}

.kek-btn-next {
    background: #2271b1;
    color: #fff;
}

.kek-btn-next:hover {
    background: #135e96;
}

.kek-btn-back {
    background: #eee;
    color: #333;
}

.kek-btn-back:hover {
    background: #ddd;
}

.kek-error {
    color: #d63638;
    font-size: 0.9em;
    margin-top: 0.5em;
}

.kek-result {
    padding: 0.8em;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.kek-result-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.5em 0;
    border-bottom: 1px solid #f0f0f0;
    gap: 0.5em;
}

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

.kek-result-label {
    color: #555;
    flex-shrink: 1;
}

.kek-result-value {
    color: #2271b1;
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
}

.kek-result-detail {
    font-size: 0.9em;
}

.kek-result-detail .kek-result-label {
    color: #888;
}

.kek-result-detail .kek-result-value {
    color: #666;
    font-weight: 400;
}

.kek-result-separator {
    border-top: 2px solid #ddd;
    margin: 0.5em 0;
}

.kek-result-highlight-green .kek-result-label {
    color: #00a32a;
    font-weight: 700;
}

.kek-result-highlight-green .kek-result-value {
    color: #00a32a;
    font-weight: 700;
}

.kek-result-highlight-red .kek-result-label {
    color: #d63638;
    font-weight: 700;
}

.kek-result-highlight-red .kek-result-value {
    color: #d63638;
    font-weight: 700;
}

.kek-result-note {
    font-size: 0.85em;
    color: #666;
    margin-top: 1em;
    padding: 0.5em;
    background: #f9f9f9;
    border-radius: 4px;
}

.kek-disclaimer {
    font-size: 0.8em;
    color: #999;
    margin-top: 1.5em;
    text-align: center;
}

.kek-calculator small {
    display: block;
    color: #888;
    font-size: 0.82em;
    margin-top: 0.2em;
}

.kek-loading {
    text-align: center;
    color: #999;
    padding: 1em;
}

/* === Tablet (480px+) === */
@media (min-width: 480px) {
    .kek-calculator {
        padding: 1.2em;
        margin: 0.5em auto;
    }

    .kek-step {
        font-size: 0.8em;
    }

    .kek-btn {
        padding: 0.7em 1.5em;
    }
}

/* === Desktop (800px+) === */
@media (min-width: 800px) {
    .kek-calculator {
        padding: 1.5em 2em;
        margin: 1em auto;
    }

    .kek-step {
        font-size: 0.85em;
        padding: 0.5em 0.5em;
    }

    .kek-field input,
    .kek-field select {
        font-size: 1em;
    }
}
