* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, monospace;
}
html,
body {
    height: 100%;
    overflow: hidden;
    background: #1a1a1a;
    color: #eee;
}
h2,
h3,
h4 {
    margin-bottom: 8px;
    color: #fff;
    font-weight: 500;
}
.top-bar {
    padding: 12px 16px;
    border-bottom: 1px solid #444;
}
/* 主体左右分栏容器 */
.main-container {
    display: flex;
    height: calc(100% - 190px);
    gap: 16px;
    padding: 16px;
}
.col-left {
    width: 48%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.col-right {
    width: 52%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.panel {
    background: #2d2d2d;
    padding: 14px;
    border-radius: 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.panel-bottom {
    height: 160px;
}
.row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
label {
    min-width: 85px;
    font-size: 14px;
}
select,
input[type="number"],
input[type="text"],
textarea,
button {
    padding: 7px 10px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
}
select,
input,
textarea {
    background: #3d3d3d;
    color: #fff;
    outline: none;
}
select:focus, input:focus, textarea:focus {
    box-shadow: 0 0 0 2px #409eff66;
}
button {
    cursor: pointer;
    background: #409eff;
    color: white;
    transition: opacity 0.15s;
}
button:hover:not(:disabled) {
    opacity: 0.9;
}
button.danger {
    background: #f56c6c;
}
button.warn {
    background: #e6a23c;
}
button:disabled {
    background: #666;
    cursor: not-allowed;
    opacity: 0.6;
}
/* 接收日志框 */
#recvBox {
    width: 100%;
    flex: 1;
    background: #000;
    color: #0f0;
    padding: 10px;
    border-radius: 4px;
    resize: none;
    font-size: 13px;
    white-space: pre-wrap;
    margin-bottom: 10px;
}
#seqEditor {
    width: 100%;
    flex: 1;
    resize: none;
    min-height: 180px;
}
#sendInput {
    flex: 1;
    min-width: 320px;
}
.tip {
    color: #aaa;
    font-size: 12px;
    margin-bottom: 8px;
    line-height: 1.5;
}
.var-view {
    background: #000;
    padding: 8px;
    color: #4cf;
    min-height: 70px;
    white-space: pre-wrap;
    margin-top: 8px;
    border-radius: 4px;
    font-size:13px;
}
/* 底部单发区域 */
.send-bottom-wrap {
    height: 130px;
    padding: 16px;
    border-top: 1px solid #444;
}
