.badge { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: rgba(214,128,60,.2); color: #ffb070; font-weight: 700; }
.app { display: grid; grid-template-columns: 380px 1fr; gap: 22px; padding-top: 22px; padding-bottom: 30px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; align-self: start; }
.panel h2 { font-size: 16px; margin: 6px 0 10px; }
.drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px; border: 2px dashed var(--line); border-radius: 12px; cursor: pointer; text-align: center; }
.drop.over { border-color: var(--accent); background: rgba(52,120,246,.08); }
.drop input { display: none; }
.drop span { color: var(--dim); font-size: 13px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 10px 0; font-size: 13px; color: var(--dim); }
.row button, .tabs button { background: var(--bg2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; cursor: pointer; font: inherit; font-size: 13px; }
.row button:hover, .tabs button:hover { border-color: var(--accent); }
.msg { font-size: 13px; color: var(--dim); min-height: 1.2em; margin: 4px 0 12px; white-space: pre-wrap; }
.msg.err { color: #ff8a80; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; }
.grid2 label { min-width: 0; display: flex; flex-direction: column; font-size: 12.5px; color: var(--dim); gap: 3px; }
.grid2 input, .grid2 select { width: 100%; min-width: 0; background: var(--bg2); color: var(--text); border: 1px solid var(--line); border-radius: 7px; padding: 6px 8px; font: inherit; font-size: 13.5px; }
.checks { display: flex; flex-direction: column; gap: 4px; margin: 12px 0; font-size: 13px; }
.go { width: 100%; justify-content: center; font-size: 15px; cursor: pointer; }
.go:disabled { opacity: .5; cursor: default; }
.fine { font-size: 12px; color: var(--dim); margin: 10px 0 0; }
.view { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.canvasbox { position: relative; height: 470px; background: #0a0f1a; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.canvasbox canvas { width: 100%; height: 100%; display: block; }
.empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--dim); pointer-events: none; }
.legend { position: absolute; right: 12px; bottom: 10px; font-size: 12px; color: var(--dim); display: flex; gap: 10px; align-items: center; background: rgba(10,15,26,.8); padding: 4px 8px; border-radius: 8px; }
.legend i { display: inline-block; width: 14px; height: 3px; margin-right: 4px; vertical-align: middle; }
.legend .g { background: #e7ecf6; } .legend .f { background: #3fd0ff; } .legend .r { background: #ffcf4a; } .legend .s { background: #ff8a3d; } .legend .b { background: #ff7ad9; }
.tabs { display: flex; gap: 6px; align-items: center; }
.tabs button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.tabs .sp { flex: 1; }
.tabs button:disabled { opacity: .45; cursor: default; }
.out { margin: 0; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; height: 330px; overflow: auto; font-family: Consolas, 'D2Coding', monospace; font-size: 12.8px; line-height: 1.5; white-space: pre-wrap; }
.busy { opacity: .6; pointer-events: none; }
@media (max-width: 900px) { .app { grid-template-columns: 1fr; } .canvasbox { height: 340px; } }
