.control-panel {
    font-family: Arial, sans-serif;
    font-size: 12px;
    padding: 10px;
    background: #f5f5f5;
    border: 1px solid #ccc;
    margin-bottom: 20px;
}
.section {
    margin-bottom: 12px;
    padding: 8px;
    background: #fff;
    border: 1px solid #ddd;
}
.section-title {
    font-weight: bold;
    margin-bottom: 6px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 3px;
}
.param-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 4px;
}
.param-group {
    display: flex;
    align-items: center;
    gap: 3px;
}
.param-group label {
    min-width: 50px;
    text-align: right;
    font-size: 11px;
}
.param-group input {
    width: 60px;
    padding: 2px 4px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 11px;
}
.param-group input:disabled {
    background: #e9e9e9;
    color: #666;
}
.info-btn {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid #888;
    background: #fff;
    color: #888;
    font-size: 9px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
}
.info-btn:hover {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}
.tooltip-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border: 1px solid #333;
    padding: 15px;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    border-radius: 5px;
}
.tooltip-modal.active {
    display: block;
}
.tooltip-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 999;
}
.tooltip-overlay.active {
    display: block;
}
.tooltip-close {
    float: right;
    cursor: pointer;
    font-weight: bold;
}
.tooltip-title {
    font-weight: bold;
    margin-bottom: 8px;
}

.calc-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
    width: 100%;
}

.calc-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.calc-right iframe {
    width: 100%;
    height: auto;
    border: none;
    border-radius: 6px;
}

#runBtn {
    padding: 6px 16px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    margin-top: 8px;
    margin-left: 16px;
}
#runBtn:hover {
    background: #0056b3;
}

#clrBtn {
    padding: 6px 16px;
    background: #ff0000;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    margin-top: 8px;
    margin-right: 16px;
}
#clrBtn:hover {
    background: #b50202;
}

.button-row {
    display: flex;
    justify-content: space-between;
    padding: 0 16px;
}