.debugger-shell {
  margin-top: 1.5rem;
}
.debugger-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.platform-toggle {
  display: inline-flex;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 0.25rem;
  gap: 0.25rem;
}
.platform-btn {
  border: none;
  background: transparent;
  color: #334155;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.platform-btn[aria-pressed="true"] {
  background: #0f766e;
  color: #ffffff;
}
.error-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}
.error-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}
.error-chip:hover {
  border-color: #0f766e;
  transform: translateY(-1px);
}
.error-chip.active {
  border-color: #0f766e;
  background: #f0fdfa;
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.15);
}
.error-code-badge {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 700;
  font-size: 1rem;
  color: #b91c1c;
}
.error-chip.active .error-code-badge {
  color: #0f766e;
}
.error-short-label {
  font-size: 0.8rem;
  color: #475569;
  line-height: 1.25;
}
.debugger-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}
.panel-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}
.panel-header h2 {
  margin: 0;
  font-size: 1.45rem;
  color: #0f172a;
}
.platform-pill {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: #ccfbf1;
  color: #115e59;
}
.plain-meaning {
  font-size: 1.02rem;
  color: #334155;
  margin: 0 0 1.25rem 0;
}
.symptom-bar {
  margin-bottom: 1.4rem;
}
.symptom-bar-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
}
.symptom-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.symptom-btn {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  font-size: 0.86rem;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.symptom-btn:hover {
  border-color: #0f766e;
  color: #0f766e;
}
.symptom-btn.active {
  background: #0f766e;
  border-color: #0f766e;
  color: #ffffff;
  font-weight: 600;
}
.likely-fix-box {
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-left: 4px solid #0f766e;
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
  margin-bottom: 1.5rem;
}
.likely-fix-box h3 {
  margin: 0 0 0.45rem 0;
  font-size: 1.05rem;
  color: #115e59;
}
.likely-fix-box p {
  margin: 0 0 0.9rem 0;
  color: #1e293b;
  font-size: 0.95rem;
}
.formula-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}
.formula-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.25rem;
}
.formula-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.45rem 0.6rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9rem;
  background: #ffffff;
  color: #0f172a;
}
.formula-field input:focus {
  outline: 2px solid rgba(15, 118, 110, 0.3);
  border-color: #0f766e;
}
.formula-output-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  background: #0f172a;
  color: #f8fafc;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
}
.formula-output-code {
  flex: 1 1 240px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.94rem;
  word-break: break-all;
  color: #5eead4;
  background: transparent;
  padding: 0;
}
.copy-fix-btn {
  border: none;
  background: #0f766e;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.86rem;
  padding: 0.5rem 0.95rem;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}
.copy-fix-btn:hover {
  background: #115e59;
}
.debugger-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.checklist-card, .platform-note-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.1rem;
}
.checklist-card h3, .platform-note-card h3, .worked-wrap h3, .related-wrap h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1.05rem;
  color: #0f172a;
}
.diag-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.diag-checklist li label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  cursor: pointer;
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.4;
}
.diag-checklist input[type="checkbox"] {
  margin-top: 0.2rem;
  accent-color: #0f766e;
  flex-shrink: 0;
}
.diag-checklist li.checked label {
  text-decoration: line-through;
  color: #64748b;
}
.worked-wrap {
  margin-bottom: 1.4rem;
  overflow-x: auto;
}
.worked-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.worked-table th, .worked-table td {
  border: 1px solid #e2e8f0;
  padding: 0.6rem 0.75rem;
  text-align: left;
  vertical-align: top;
}
.worked-table th {
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 700;
}
.related-links-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.related-links-list a {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f766e;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
}
.related-links-list a:hover {
  background: #f0fdfa;
  border-color: #0f766e;
}
.quick-ref-section {
  margin-top: 2.5rem;
}
