/* ── Panel domain badge ──────────────────────── */
#panel-domain-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity var(--t-normal);
}

#panel-domain-badge.visible { opacity: 1; }

#panel-close {
  width: 26px;
  height: 26px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 5px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast), color var(--t-fast);
  flex-shrink: 0;
}

#panel-close:hover {
  background: var(--accent-bg);
  color: var(--text-primary);
}

/* ── Panel content ───────────────────────────── */
.panel-placeholder {
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
  margin-top: 48px;
  line-height: 1.6;
}

.panel__process-id {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.panel__process-name {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.panel__phase-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--border-medium);
  color: var(--text-muted);
  margin-bottom: 18px;
}

/* ── Export buttons ──────────────────────────── */
.panel-export-row {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.panel-export-btn {
  flex: 1;
  padding: 7px 10px;
  background: var(--accent-bg);
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
}

.panel-export-btn:hover {
  background: var(--accent-bg-hover);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

/* ── Panel section ───────────────────────────── */
.panel-section {
  margin-bottom: 14px;
  background: var(--bg-panel-section);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
}

.panel-section__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 9px 14px 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.panel-section__body { padding: 12px 14px; }

/* ── Lists ───────────────────────────────────── */
.panel-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.panel-list li {
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  line-height: 1.45;
}

.panel-list li::before {
  content: '›';
  color: var(--text-muted);
  font-weight: 700;
  flex-shrink: 0;
  transform: translateY(-1px);
}

/* ── Sub-items (nested list inside a parent <li>) ──── */
.panel-list__sub {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  margin-top: 5px;
  padding-left: 21px;
}

.panel-list__sub li {
  font-size: 12.5px;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.4;
}

.panel-list__sub li::before {
  content: '–';
  color: var(--text-tertiary);
  flex-shrink: 0;
}

/* ── Study tips ──────────────────────────────── */
.study-tip {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 9px 12px;
  border-left: 2px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.03);
  border-radius: 0 4px 4px 0;
  line-height: 1.55;
  margin-bottom: 7px;
}

.study-tip:last-child { margin-bottom: 0; }

/* ── Related chips ───────────────────────────── */
.panel-related-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.panel-related-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: filter var(--t-fast), transform var(--t-fast);
  line-height: 1.35;
}

.panel-related-chip:hover {
  filter: brightness(1.18);
  transform: translateX(3px);
}

.panel-related-chip .chip__id {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  opacity: 0.75;
  flex-shrink: 0;
}

.panel-related-chip .chip__name {
  font-size: 13px;
  font-weight: 600;
}

/* ── Why now (Tour) ──────────────────────────── */
.panel-section--why {
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.04);
}

.panel-section--why .panel-section__title {
  color: var(--text-primary);
  border-bottom-color: rgba(255,255,255,0.10);
}

.panel__why {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
  font-style: italic;
}

/* ── Notes ───────────────────────────────────── */
.panel__notes {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  font-style: italic;
}
