body { justify-content: flex-start; padding-top: 15px; overflow-y: auto; }
.top-bar {
    display: flex; align-items: center; gap: 20px; background: #16213e;
    padding: 10px 24px; border-radius: 12px; margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}
.btn-play {
    background: #2ed573; color: #111; border: none; padding: 10px 20px;
    font-size: 16px; font-weight: bold; border-radius: 8px; cursor: pointer;
}
.btn-play.editing { background: #ffa502; }
#test-stats { font-size: 18px; font-weight: bold; }
.workspace { width: 100%; max-width: 1100px; padding: 0 10px; box-sizing: border-box; display: flex; gap: 18px; align-items: flex-start; flex-wrap: nowrap; justify-content: center; }
.panel {
    background: #16213e; padding: 16px; border-radius: 12px; width: 185px; flex-shrink: 0;
    display: flex; flex-direction: column; gap: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}
.panel.hidden, #test-stats.hidden { display: none; }
.panel h3 { margin: 6px 0 4px; font-size: 15px; color: #a2a8d3; border-bottom: 1px solid #0f3460; padding-bottom: 4px; }
.brush-btn, .tpl-btn, .btn-sec {
    background: #0f3460; color: #fff; border: 2px solid transparent; padding: 8px 10px;
    border-radius: 8px; cursor: pointer; text-align: left; font-size: 14px; display: flex; align-items: center; gap: 8px;
}
.brush-btn.active { border-color: #2ed573; background: #1a4b84; font-weight: bold; }
.brush-dot { width: 14px; height: 14px; border-radius: 4px; display: inline-block; border: 1px solid rgba(255,255,255,0.4); }
.panel label { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.panel input { width: 70px; background: #0f3460; border: 1px solid #2f5585; color: #fff; padding: 5px; border-radius: 6px; font-size: 14px; }
.info-box { background: #0f3460; padding: 8px; border-radius: 8px; font-size: 13px; text-align: center; }
#export-out {
    width: 100%; height: 90px; background: #0a1931; color: #7bed9f; border: 1px solid #0f3460;
    border-radius: 6px; font-size: 11px; resize: none; box-sizing: border-box; padding: 6px;
}

.board-wrap { flex-shrink: 1; display: flex; justify-content: center; }

.brush-group-title { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: #70a1ff; margin: 8px 0 3px; font-weight: bold; }
.brush-row { display: flex; align-items: stretch; gap: 4px; margin-bottom: 4px; }
.brush-row .brush-btn { flex: 1; padding: 6px 8px; font-size: 13px; }
.help-btn { background: #0f3460; color: #a2a8d3; border: 1px solid #2f5585; border-radius: 8px; width: 28px; cursor: pointer; font-weight: bold; font-size: 13px; }
.help-btn:hover { background: #1e90ff; color: #fff; border-color: #1e90ff; }
#desc-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.75); display: flex; align-items: center; justify-content: center; z-index: 30; }
#desc-modal.hidden { display: none; }

#test-stats.hidden { display: none !important; }
.ed-goal-item { display:flex;justify-content:space-between;align-items:center;background:#0f3460;padding:4px 8px;border-radius:6px;font-size:12px; }
.ed-goal-del { background:none;border:none;color:#ff4757;cursor:pointer;font-weight:bold; }

.top-sel { background:#0f3460;color:#fff;border:1px solid #2f5585;border-radius:6px;padding:3px 6px;font-size:13px; }
.log-row { background:#0f3460;padding:5px 8px;border-radius:6px;display:flex;justify-content:space-between;align-items:center; }
.log-row.fail { border-left:3px solid #ff4757; }
.log-row.win { border-left:3px solid #2ed573; }
