/* ===========================================================
   lab-guide.css — floating experiment guide panel in lab.html
   =========================================================== */

.exp-badge {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 16px;
  background: rgba(33, 150, 243, .15);
  border: 1px solid var(--accent-dim);
  color: var(--accent-2);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 1100px) { .exp-badge { display: none; } }

.exp-guide {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 330px;
  max-height: calc(100% - 28px);
  display: flex;
  flex-direction: column;
  background: rgba(23, 29, 40, .96);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 30;
  overflow: hidden;
  animation: pop-in .2s ease;
}
.exp-guide.minimised .eg-tabs,
.exp-guide.minimised .eg-body { display: none; }

.eg-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: linear-gradient(90deg, var(--accent-dim), transparent);
  border-bottom: 1px solid var(--border);
  cursor: default;
}
.eg-icon { font-size: 16px; }
.eg-title {
  flex: 1 1 auto;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.eg-min {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: var(--card);
  color: var(--text-dim);
  font-size: 16px; line-height: 1;
}
.eg-min:hover { background: var(--accent); color: #fff; }

.eg-tabs {
  display: flex;
  gap: 4px;
  padding: 8px 10px 0;
  border-bottom: 1px solid var(--border);
}
.eg-tab {
  flex: 1 1 0;
  padding: 7px 8px;
  border-radius: 7px 7px 0 0;
  background: transparent;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
  border-bottom: 2px solid transparent;
}
.eg-tab:hover { color: var(--text); background: var(--card); }
.eg-tab.active { color: var(--accent-2); border-bottom-color: var(--accent); }

.eg-body { overflow-y: auto; padding: 12px; }
.eg-panel.hidden { display: none; }

.eg-sec-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-mute);
  font-weight: 600;
  margin: 12px 0 7px;
}
.eg-sec-title:first-child { margin-top: 0; }

.eg-instr { margin: 0 0 4px; padding-left: 18px; }
.eg-instr li { font-size: 12.5px; color: var(--text-dim); margin-bottom: 4px; line-height: 1.4; }

.eg-proc { list-style: none; margin: 0; padding: 0; }
.eg-step { display: flex; gap: 9px; margin-bottom: 11px; }
.eg-step-no {
  flex: 0 0 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.eg-step-body { flex: 1 1 auto; }
.eg-step-desc { font-size: 13px; color: var(--text); line-height: 1.4; }
.eg-step-obs { font-size: 12px; color: var(--good); margin-top: 3px; }
.eg-step-warn { font-size: 12px; color: var(--warn); margin-top: 3px; }

.eg-obs-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.eg-obs-table th, .eg-obs-table td {
  border: 1px solid var(--border); padding: 6px 8px; text-align: left; vertical-align: top;
}
.eg-obs-table th { background: var(--card); color: var(--text-dim); font-weight: 600; }
.eg-obs-table td { color: var(--text-dim); }
.eg-muted { color: var(--text-mute); text-align: center; }

.eg-notes {
  width: 100%; height: 70px;
  background: var(--bg);
  border: 1px solid var(--border-2);
  border-radius: 7px;
  color: var(--text);
  font-size: 12.5px;
  padding: 8px;
  resize: vertical;
  font-family: inherit;
}
.eg-notes:focus { border-color: var(--accent); outline: none; }

.eg-result {
  font-size: 12.5px; color: var(--text-dim); line-height: 1.45;
  background: var(--bg); border-left: 3px solid var(--good);
  padding: 8px 10px; border-radius: 6px;
}
.eg-text { font-size: 12.5px; color: var(--text-dim); line-height: 1.5; }
.eg-eq {
  font-family: "SF Mono", ui-monospace, monospace;
  font-size: 12px; color: var(--accent-2);
  background: var(--bg); padding: 6px 8px; border-radius: 6px; margin-bottom: 5px;
}
.eg-prec { margin: 0; padding-left: 18px; }
.eg-prec li { font-size: 12px; color: var(--warn); margin-bottom: 4px; line-height: 1.4; }
.eg-link {
  display: inline-block; margin-top: 12px;
  font-size: 12.5px; color: var(--accent-2); text-decoration: none; font-weight: 600;
}
.eg-link:hover { text-decoration: underline; }

@media (max-width: 720px) {
  .exp-guide { width: calc(100% - 28px); }
}
