












.calc-input-error { border-color: #e74c3c !important; }
.calc-remove { background: none; border: 1px solid #ccc; color: #999; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 18px; line-height: 1; transition: all 0.2s; }
.calc-remove:hover { border-color: #e74c3c; color: #e74c3c; }





.calc-presets { display: flex; gap: 8px; margin-bottom: 15px; }
.calc-preset { padding: 6px 14px; background: #fff; border: 1px solid #ddd; border-radius: 20px; color: #666; cursor: pointer; font-size: 12px; transition: all 0.2s; }
.calc-preset:hover, .calc-preset.active { border-color: #0d8059; color: #0d8059; background: #f0faf5; }










.bk-margin-table { width: 100%; border-collapse: collapse; margin: 15px 0; }
.bk-margin-table th { background: #f5f5f5; padding: 10px; text-align: left; color: #666; font-size: 12px; font-weight: 600; border-bottom: 2px solid #ddd; }
.bk-margin-table td { padding: 8px 10px; border-bottom: 1px solid #eee; color: #333; font-size: 13px; }
.bk-margin-table tr:hover td { background: #f9f9f9; }
.bk-margin-table .margin-badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: bold; }
.bk-margin-table .margin-badge.low { background: #e8f8f0; color: #1a9a5a; }
.bk-margin-table .margin-badge.medium { background: #fef5e7; color: #c07b10; }
.bk-margin-table .margin-badge.high { background: #fde8e8; color: #c0392b; }
.formula-block { background: #f8f8f8; border-left: 3px solid #0d8059; padding: 15px 20px; margin: 15px 0; border-radius: 0 6px 6px 0; font-family: 'Courier New', monospace; }
.formula-block .formula { font-size: 16px; color: #0d8059; margin: 8px 0; }

.calc-infobox dt { color: #888; font-size: 12px; margin-top: 10px; }
.calc-infobox dt:first-child { margin-top: 0; }
.calc-infobox dd { color: #333; font-size: 14px; margin: 2px 0 0 0; }

.converter-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.converter-tab {
    flex: 1;
    padding: 10px 16px;
    background: #fff;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    border-right: 1px solid #ddd;
}

.converter-tab:last-child {
    border-right: none;
}

.converter-tab:hover {
    background: #f5f5f5;
    color: #333;
}

.converter-tab.active {
    background: #0d8059;
    color: #fff;
}

.converter-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.converter-card {
    background: #f8f8f8;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.converter-card-prob {
    border-color: #0d8059;
    background: #f0faf5;
}

.converter-card-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.converter-card-value {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    line-height: 1.2;
}

.converter-card-prob .converter-card-value {
    color: #0d8059;
}

.converter-card-note {
    font-size: 11px;
    color: #aaa;
    margin-top: 4px;
}

.converter-input-wide {
    width: 120px;
}

@media (max-width: 600px) {
    
    
    .calc-input { max-width: 100%; }
    
    
    .bk-table th, .bk-table td { padding: 6px 4px; }
    .converter-tabs {
        flex-direction: column;
    }
    .converter-tab {
        border-right: none;
        border-bottom: 1px solid #ddd;
    }
    .converter-tab:last-child {
        border-bottom: none;
    }
    .converter-cards {
        grid-template-columns: 1fr 1fr;
    }
    .converter-card-value {
        font-size: 22px;
    }
}
