<!-- SOLIDABILITY-WORLD · part 4 -->
h: min(400px, 92vw);
  height: 100%;
  background: rgba(8, 10, 14, 0.97);
  border-right: 1px solid rgba(255, 170, 68, 0.3);
  z-index: 55;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}
#intervention-history.visible { transform: translateX(0); }
.history-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 16px;
}
.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.history-header h3 { margin: 0; color: #ffaa44; font-size: 16px; }
#history-search {
  width: 100%;
  padding: 10px 14px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #e0e0e0;
  font-size: 14px;
  box-sizing: border-box;
}
.history-list {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.history-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 8px;
  cursor: pointer;
}
.history-item:active { background: rgba(255, 170, 68, 0.1); }
.hist-room { color: #fff; font-weight: bold; font-size: 14px; }
.hist-meta { color: #888; font-size: 12px; margin-top: 4px; }
.hist-time { color: #555; font-size: 11px; margin-top: 2px; }

/* Merged pause UI in glass panel */
.pause-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(255, 170, 68, 0.08);
  border-bottom: 1px solid rgba(255, 170, 68, 0.2);
}
.pause-detail {
  font-size: 12px;
  color: #888;
}
.pause-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Hide old separate intervention UI */
#intervention-ui { display: none !important; }

/* Glass close button: moved to LEFT (was buried under HC buttons on right) */
.glass-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.glass-close-left {
  cursor: pointer;
  font-size: 20px;
  color: #888;
  padding: 4px 8px;
  flex-shrink: 0;
}
.glass-close-left:active { color: #fff; }
.glass-header h2 {
  flex: 1;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Hide old right-side close */
.glass-close { display: none !important; }

/* Code execution explanation */
.exec-flow {
  font-size: 13px;
  line-height: 1.7;
  color: #bbb;
}
.exec-flow .step {
  display: flex;
  gap: 8px;
  margin: 6px 0;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  border-left: 2px solid #00ffcc;
}
.exec-flow .step-num {
  color: #00ffcc;
  font-weight: bold;
  flex-shrink: 0;
}
.code-quality {
  font-size: 12px;
  line-height: 1.6;
  color: #999;
}
.code-quality .good { color: #66ff99; }
.code-quality .warn { color: #ffaa44; }
.code-quality .risk { color: #ff6666; }

/* Diagnostics Panel */
#diagnostics-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: min(420px, 94vw);
  height: 100%;
  background: rgba(8, 10, 14, 0.97);
  border-right: 1px solid rgba(0, 255, 204, 0.3);
  z-index: 55;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}
#diagnostics-panel.visible { transform: translateX(0); }
.diag-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 16px;
}
.diag-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.diag-header h3 { margin: 0; color: #00ffcc; }
.diag-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.diag-btn {
  padding: 10px 14px;
  background: rgba(0, 255, 204, 0.1);
  border: 1px solid rgba(0, 255, 204, 0.3);
  border-radius: 8px;
  color: #00ffcc;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}
.diag-results {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.diag-layer {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
}
.diag-layer h4 { margin: 0 0 8px 0; color: #fff; font-size: 14px; }
.status-verified { color: #66ff99; }
.status-issues-found { color: #ffaa44; }
.status-untested { color: #888; }
.diag-layer .issue { font-size: 12px; color: #ffaa44; margin: 4px 0; }
.candidate {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 8px;
  cursor: pointer;
}
.candidate:active { border-color: #00ffcc; }
.cand-room { color: #fff; font-weight: bold; }
.cand-evidence { font-size: 12px; color: #aaa; margin-top: 4px; line-height: 1.5; }
.cand-conf { font-size: 11px; color: #666; margin-top: 4px; }

/* Syntax test results */
.test-btn {
  background: rgba(0, 255, 204, 0.1) !important;
  border-color: rgba(0, 255, 204, 0.4) !important;
}
.syntax-result { margin-top: 8p