.tr08-wrap {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 14px;
  background: #fff;
}

.tr08-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.tr08-title h3 { margin: 0; font-size: 18px; }
.tr08-sub { opacity: .7; font-size: 12px; margin-top: 2px; }

.tr08-connection { display:flex; align-items:center; gap:10px; }
.tr08-status { font-size: 12px; opacity: .8; }

.tr08-topbar {
  display:flex;
  flex-wrap:wrap;
  gap: 10px 14px;
  align-items: end;
  padding: 10px;
  border-radius: 10px;
  background: #f7f7f7;
  margin-bottom: 12px;
}

.tr08-row { display:flex; flex-direction:column; gap:6px; }
.tr08-row label { font-size: 12px; opacity:.8; }
.tr08-row select, .tr08-row input[type="number"], .tr08-row input[type="text"]{
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #d0d0d0;
  min-width: 140px;
}
.tr08-hint { font-size: 11px; opacity: .65; }

.tr08-actions { flex-direction: row; flex-wrap: wrap; gap: 8px; align-items:center; }
.tr08-btn {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #cfcfcf;
  background: #fff;
  cursor: pointer;
}
.tr08-btn:hover { filter: brightness(0.98); }
.tr08-secondary { opacity: .9; }

.tr08-main {
  display:grid;
  grid-template-columns: 1.6fr .9fr;
  gap: 12px;
}

@media (max-width: 980px) {
  .tr08-main { grid-template-columns: 1fr; }
}

.tr08-left { overflow:auto; }
.tr08-grid-head { display:flex; gap:10px; align-items:center; margin-bottom:6px; }
.tr08-grid-legend { width: 140px; font-weight: 600; font-size: 12px; opacity:.8; }
.tr08-grid-steps { display:grid; gap:4px; }
.tr08-step-label {
  width: 26px; text-align:center; font-size: 11px; opacity:.7;
}
.tr08-grid { display:flex; flex-direction:column; gap:6px; }

.tr08-rowline { display:flex; gap:10px; align-items:center; }
.tr08-partname {
  width: 140px; font-size: 12px;
  display:flex; align-items:center; gap:8px;
}
.tr08-partbadge {
  width: 10px; height: 10px; border-radius: 50%;
  background: #000;
  opacity: .35;
}
.tr08-steps { display:grid; gap:4px; }
.tr08-cell {
  width: 26px; height: 26px;
  border-radius: 7px;
  border: 1px solid #d4d4d4;
  background: #fff;
  cursor:pointer;
  position: relative;
}
.tr08-cell.on { background: #111; border-color:#111; }
.tr08-cell.playing { outline: 2px solid #000; outline-offset: 1px; }

.tr08-right { display:flex; flex-direction:column; gap:12px; }
.tr08-card {
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 10px;
  background: #fff;
}
.tr08-card h4 { margin: 0 0 10px 0; font-size: 14px; }

.tr08-part-controls { display:flex; flex-direction:column; gap:10px; }
.tr08-partctl {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 10px;
  background: #fafafa;
}
.tr08-partctl-head { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.tr08-partctl-name { font-weight: 600; font-size: 13px; }
.tr08-mini { font-size: 11px; opacity: .7; }
.tr08-partctl-actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.tr08-sliderrow { display:grid; grid-template-columns: 90px 1fr 42px; gap:8px; align-items:center; margin-top:8px; }
.tr08-sliderrow label { font-size: 12px; opacity:.8; }
.tr08-sliderrow input[type="range"] { width: 100%; }
.tr08-sliderrow .val { font-size: 12px; text-align:right; opacity:.85; }

.tr08-log {
  height: 160px;
  overflow:auto;
  background: #0c0c0c;
  color: #cfcfcf;
  border-radius: 10px;
  padding: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.tr08-list { display:flex; flex-direction:column; gap:8px; margin-top:10px; }
.tr08-list-item {
  border: 1px solid #eee; border-radius: 10px; padding: 8px;
  display:flex; justify-content:space-between; gap:10px; align-items:center;
}
.tr08-list-item .meta { font-size: 11px; opacity: .7; }
