.project-media { min-width: 0; }
.source-panel {
  display: block;
  min-height: 0;
  padding: 0;
  color: #f2f5fc;
  background: #172439;
}
.source-heading { padding: 24px 24px 18px; }
.source-scope { display: block; font-size: 14px; color: #becbe0; margin-top: 5px; }
.source-panel h4 { font-size: 24px; line-height: 1.3; margin: 18px 0 10px; font-weight: 550; }
.source-panel .source-heading p { max-width: none; margin: 0; font-size: 16px; line-height: 1.7; }
.source-panel .source-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  border-top: 1px solid #35435b;
  padding: 18px 0 0;
  margin: 0 24px;
}
.source-facts dt { font-size: 12px; color: #becbe0; line-height: 1.6; }
.source-facts dd { font-size: 14px; font-weight: 550; margin: 4px 0 0; line-height: 1.5; }
.source-panel .source-note { max-width: none; margin: 15px 24px 22px; font-size: 14px; line-height: 1.65; }
.source-panel .source-filebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0;
  padding: 13px 18px;
  background: #22324b;
  border-top: 1px solid #35435b;
  border-bottom: 1px solid #35435b;
  font-size: 14px;
}
.source-line-count { color: #becbe0; font-size: 12px; }
.source-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.source-actions button, .source-actions a {
  display: inline-block;
  cursor: pointer;
  font: 500 14px/1.4 var(--font);
  padding: 8px 10px;
  color: #edf2ff;
  border: 1px solid #647691;
  border-radius: 4px;
  background: transparent;
}
.source-actions button:hover, .source-actions a:hover { background: #354764; border-color: #b2c7ff; }
.source-actions button:disabled { opacity: .6; cursor: wait; }
.source-actions button:focus-visible, .source-actions a:focus-visible, .source-code:focus-visible {
  outline: 3px solid #9eb6ff;
  outline-offset: -3px;
}
.source-code {
  max-height: 440px;
  overflow: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 20px;
  background: #101a2b;
  color: #e1e8f7;
  font: 14px/1.8 Consolas, 'Cascadia Code', 'Courier New', monospace;
  tab-size: 2;
  white-space: pre;
  text-align: left;
  scrollbar-color: #62728c #101a2b;
}
.source-code code { font: inherit; }
.source-code ::selection { background: #3c578c; color: #fff; }
.syntax-comment { color: #a7b6cb; }
.syntax-keyword, .syntax-directive { color: #9ec8ff; }
.syntax-string { color: #edd49b; }
.syntax-number { color: #d0b6ff; }
.source-panel .copy-status { margin: 0; max-width: none; padding: 0 18px; font-size: 14px; }
.source-panel .copy-status:not(:empty) { padding: 12px 18px; border-top: 1px solid #35435b; }
@media (max-width: 1000px) and (min-width: 701px) {
  .source-panel .source-facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .source-heading { padding: 21px 18px 16px; }
  .source-panel .source-facts { grid-template-columns: 1fr 1fr; margin-inline: 18px; gap: 14px; }
  .source-panel .source-note { margin-inline: 18px; }
  .source-panel .source-filebar { padding: 12px 14px; }
  .source-code { max-height: 380px; padding: 16px; }
}
