:root { --left-w: 380px; --view-h: 55%; --p1-w: 1fr; --p2-w: 1.4fr; --bg: #f5f6f8; --panel: #fff; --line: #dde1e7; --text: #1f2933; --muted: #6b7785; --accent: #2f80ed; font-size: 13px; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif; }
header { height: 42px; display: flex; align-items: center; gap: 12px; padding: 0 12px; background: #1d2633; color: #e8edf3; }
header .brand { display: flex; align-items: center; gap: 6px; font-size: 15px; }
header .tag { font-size: 10px; background: var(--accent); color: #fff; padding: 1px 5px; border-radius: 3px; }
header .sub { color: #9fb0c3; font-size: 12px; }
header .spacer { flex: 1; }
header .muted { color: #9fb0c3; font-size: 12px; }
header button.ghost { color: #e8edf3; border-color: #4a5868; }
#layout { position: absolute; top: 42px; bottom: 0; left: 0; right: 0; display: grid; grid-template-columns: var(--left-w) 5px 1fr; }
#left { display: flex; flex-direction: column; background: var(--panel); min-width: 0; overflow: hidden; }
#tabs { display: flex; border-bottom: 1px solid var(--line); }
#tabs button { flex: 1; border: 0; border-radius: 0; background: none; padding: 9px 2px; border-bottom: 2px solid transparent; color: var(--muted); }
#tabs button.on { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }
#panes { flex: 1; overflow: auto; padding: 10px 12px 20px; }
#panes section { display: none; } #panes section.on { display: block; }
h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 16px 0 6px; }
.grid2 { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(110px, 1fr); gap: 5px 8px; align-items: center; }
.grid2 label { color: #3c4650; }
.tri { display: flex; gap: 3px; } .tri input { width: 33%; min-width: 0; }
input, select, button { font: inherit; }
input[type=number], input:not([type]), select { padding: 3px 5px; border: 1px solid var(--line); border-radius: 4px; background: #fff; min-width: 0; width: 100%; }
input[type=checkbox] { justify-self: start; }
button { padding: 4px 10px; border: 1px solid #c5ccd6; border-radius: 4px; background: #fff; cursor: pointer; }
button:hover { border-color: var(--accent); } button:disabled { opacity: .5; cursor: default; }
button.primary { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; }
button.ghost { background: transparent; }
.row { display: flex; gap: 6px; align-items: center; margin: 8px 0; } .row.wrap { flex-wrap: wrap; }
.row select { width: auto; }
label.inl { display: inline-flex; gap: 4px; align-items: center; white-space: nowrap; }
.hint { color: var(--muted); font-size: 12px; line-height: 1.45; }
.info { margin: 8px 0; padding: 7px 9px; background: #f2f5f9; border-radius: 5px; line-height: 1.5; font-size: 12px; white-space: pre-line; }
.info:empty { display: none; }
.info.err { background: #fdecee; color: #a12a3a; }
.mono { font-family: ui-monospace, Consolas, monospace; }
.progress { height: 6px; background: #e5e9ef; border-radius: 3px; overflow: hidden; margin: 6px 0; } #progBar { height: 100%; width: 0; background: var(--accent); transition: width .4s; }
#runLog { max-height: 150px; overflow: auto; background: #1d2633; color: #cfd8e3; font-size: 11px; padding: 6px; border-radius: 4px; margin: 6px 0; white-space: pre-wrap; }
#runLog:empty { display: none; }
.ex { border: 1px solid var(--line); border-radius: 6px; padding: 9px 10px; margin-bottom: 8px; cursor: pointer; }
.ex:hover { border-color: var(--accent); } .ex b { display: block; margin-bottom: 3px; } .ex p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.ex .meta { margin-top: 4px; font-size: 11px; color: var(--accent); }
.runitem { display: flex; gap: 6px; align-items: center; padding: 5px 0; border-bottom: 1px solid #eef1f4; font-size: 12px; }
.runitem .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.runitem.cur { background: #eef5ff; }
.badge { font-size: 10px; padding: 1px 5px; border-radius: 8px; background: #e5e9ef; } .badge.done { background: #d7f1e4; color: #10734a; } .badge.running, .badge.queued, .badge.stopping { background: #dce9fd; color: #1d5fc2; } .badge.failed, .badge.interrupted { background: #fde3e6; color: #a12a3a; } .badge.stopped { background: #fdf1d8; color: #8a5a00; }
.tablewrap { overflow-x: auto; }
#phaseTable { border-collapse: collapse; width: 100%; font-size: 12px; }
#phaseTable th { text-align: left; font-weight: 600; color: var(--muted); padding: 3px; border-bottom: 1px solid var(--line); white-space: nowrap; }
#phaseTable td { padding: 2px; } #phaseTable input[type=number], #phaseTable input:not([type]) { padding: 2px 3px; }
#phaseTable tr.bnd td { color: var(--muted); }
.split { background: var(--line); z-index: 2; } .split:hover, .split.drag { background: var(--accent); }
.split.v { cursor: col-resize; } .split.h { cursor: row-resize; height: 5px; }
#right { display: grid; grid-template-rows: var(--view-h) 5px auto 1fr; min-width: 0; min-height: 0; }
#viewWrap { position: relative; background: #fff; min-height: 0; overflow: hidden; }
#view3d { position: absolute; inset: 0; } #view3d canvas { display: block; }
.viewbar { position: absolute; top: 6px; right: 8px; display: flex; gap: 8px; align-items: center; background: rgba(255,255,255,.9); padding: 4px 8px; border-radius: 5px; border: 1px solid var(--line); }
.viewbar select { width: auto; }
#legend { position: absolute; top: 8px; left: 10px; font-size: 12px; background: rgba(255,255,255,.85); padding: 4px 8px; border-radius: 5px; }
#legend:empty { display: none; } #legend div { display: flex; align-items: center; gap: 5px; } #legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
#viewMsg { position: absolute; bottom: 10px; right: 12px; color: var(--muted); font-size: 12px; }
#replayBar { display: flex; gap: 8px; align-items: center; padding: 4px 10px; background: var(--panel); border-bottom: 1px solid var(--line); }
#replayBar input[type=range] { flex: 1; }
#plots { display: grid; grid-template-columns: var(--p1-w) 5px var(--p2-w) 5px 1fr; min-height: 0; background: var(--panel); }
.plot { position: relative; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.plot canvas { flex: 1; width: 100%; min-height: 0; display: block; }
.ptitle { font-size: 12px; font-weight: 600; padding: 4px 8px 0; display: flex; gap: 8px; } .pnote { font-weight: 400; color: var(--muted); }
#downloads a, #downloads button { text-decoration: none; }
a.btn { display: inline-block; padding: 4px 10px; border: 1px solid #c5ccd6; border-radius: 4px; color: var(--text); background: #fff; }
a.btn:hover { border-color: var(--accent); } a.btn.off { pointer-events: none; opacity: .45; }
@media (max-width: 800px) { #layout { grid-template-columns: 1fr; grid-template-rows: auto auto; position: static; } #layout > .split { display: none; } #right { height: 900px; } header .sub { display: none; } }
