.guide-item-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  font: inherit;
  color: var(--text, #e8eef5);
  cursor: pointer;
  text-align: start;
  transition: border-color .15s, background-color .15s;
}
.guide-item-chip:hover,
.guide-item-chip[aria-expanded="true"] {
  border-color: var(--accent, #3b82f6);
  background: var(--panel2, #22303f);
}
.guide-item-chip:focus-visible,
.guide-item-close:focus-visible {
  outline: 2px solid var(--accent2, #f59e0b);
  outline-offset: 3px;
}
.guide-item-icon { width: 30px; height: 30px; flex: 0 0 30px; object-fit: contain; border-radius: 4px; }
.guide-item-label { overflow-wrap: anywhere; }
.guide-item-panel {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--border, #2e4054);
  border-radius: 10px;
  background: var(--bg2, #17222e);
  color: var(--text, #e8eef5);
  min-width: 0;
}
.guide-item-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.guide-item-heading h4 { margin: 0; font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.guide-item-close {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--border, #2e4054);
  border-radius: 6px;
  background: var(--panel, #1b2a38);
  color: var(--text, #e8eef5);
  font: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.guide-item-close:hover { border-color: var(--accent, #3b82f6); }
.guide-item-content { overflow-x: auto; overflow-wrap: anywhere; line-height: 1.7; font-size: 14px; }
.guide-item-content[aria-busy="true"] { color: var(--muted, #8fa3b8); }
.guide-item-content p,
.guide-item-content ul,
.guide-item-content ol,
.guide-item-content dl,
.guide-item-content blockquote,
.guide-item-content figure { margin: 0 0 12px; }
.guide-item-content ul,
.guide-item-content ol { padding-inline-start: 24px; }
.guide-item-content h1,
.guide-item-content h2,
.guide-item-content h3,
.guide-item-content h4,
.guide-item-content h5,
.guide-item-content h6 { margin: 14px 0 8px; font-size: 16px; line-height: 1.5; }
.guide-item-content img { display: inline-block; max-width: 100%; height: auto; vertical-align: middle; }
.guide-item-content table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 13px; }
.guide-item-content th,
.guide-item-content td { padding: 8px 10px; border: 1px solid var(--border, #2e4054); text-align: start; vertical-align: top; min-width: 70px; }
.guide-item-content th { background: var(--panel2, #22303f); font-weight: 600; }
.guide-item-content blockquote { border-inline-start: 3px solid var(--accent, #3b82f6); padding-inline-start: 12px; }
.guide-item-content pre { white-space: pre-wrap; }
.guide-item-content .guide-image-caption { color: var(--muted, #8fa3b8); font-size: 13px; margin: 5px 0 10px; }
.guide-item-content .guide-image-supplement { margin: 10px 0; }
@media (max-width: 520px) {
  .guide-item-panel { padding: 10px; }
  .guide-item-content th,
  .guide-item-content td { padding: 6px; }
}
