

.pmu-figure {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #05070c;
  border-bottom: 1px solid var(--border-soft);
  overflow: hidden;
}
.pmu-figure img {
  width: 100%;
  height: 100%;
  display: block;
  
  image-rendering: pixelated;
}
.pmu-figure canvas {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 72px;
  height: 72px;
  background: rgba(6, 8, 13, 0.72);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
}

.pmu-figure.pmu-pending {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.pmu-code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--accent-soft);
  overflow-wrap: anywhere;
}

.pmu-nums {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.pmu-num {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 8px;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  background: var(--bg-raised);
}
.pmu-num-k { font-size: 9.5px; color: var(--text-faint); text-transform: lowercase; }
.pmu-num-v {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  color: var(--text);
}

.pmu-massbar {
  display: flex;
  height: 10px;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: var(--bg-raised);
}
.pmu-massbar > span { min-width: 2px; }
.pmu-massbar > span.pmu-off {
  flex: 0 0 2px;
  background: repeating-linear-gradient(
    90deg, var(--border-soft) 0 1px, transparent 1px 3px);
}
.pmu-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 10.5px;
  color: var(--text-faint);
}
.pmu-legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-right: 5px;
  vertical-align: -1px;
}

.pmu-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 28px;
  align-items: start;
}
@media (max-width: 900px) { .pmu-detail { grid-template-columns: 1fr; } }

.pmu-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #05070c;
}
.pmu-stage img { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.pmu-axis {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  margin-top: 6px;
}
.pmu-caption { font-size: 11.5px; color: var(--text-faint); line-height: 1.6; margin-top: 10px; }

.pmu-build-canvas {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1 / 1;
  display: block;
  margin: 0 auto;
}

.pmu-eq {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dim);
  line-height: 1.9;
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 4px;
}
.pmu-eq b { color: var(--accent-soft); font-weight: 700; }

.pmu-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  font-size: 12.5px;
  color: var(--text-faint);
  margin-bottom: 18px;
}
.pmu-hero b {
  color: var(--accent-soft);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.pmu-measuring {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--text-faint);
}
.pmu-measuring::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pmu-pulse 1.4s ease-in-out infinite;
}
@keyframes pmu-pulse { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .pmu-measuring::before { animation: none; opacity: 0.7; }
}

.pmb-search-bar .pm-select { flex: 0 0 auto; width: auto; min-width: 190px; }

.pmb-more[hidden] { display: none; }

.pmu-axes {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 7px;
  font-size: 11px;
  color: var(--text-faint);
}
.pmu-axes span { font-family: var(--font-mono); }

.pmb-panel .pmb-empty { padding: 14px 0; text-align: left; }

.pmb-panel .pmb-comment-form .tab-btn { align-self: flex-start; }

.pmu-canon {
  margin: 0 0 26px;
  padding: 16px 16px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(0, 77, 255, 0.10), transparent 62%),
    var(--bg-raised);
}
.pmu-canon-head { margin-bottom: 12px; }
.pmu-canon-head h2 {
  margin: 0 0 3px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-soft);
}
.pmu-canon-head p { margin: 0; font-size: 12px; line-height: 1.6; color: var(--text-faint); }

.pmu-canon-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(118px, 1fr);
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.pmu-canon-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.pmu-canon-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.pmu-canon-card .pmu-figure { border-bottom: 1px solid var(--border-soft); }
.pmu-canon-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 8px 8px;
  min-width: 0;
}
.pmu-canon-name {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pmu-canon-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  color: var(--text-faint);
}

.pmu-byline { color: var(--text-faint); font-size: 11.5px; }
.pmu-badge-site {
  display: inline-block;
  padding: 2px 7px;
  border: 1px solid rgba(0, 77, 255, 0.45);
  border-radius: 999px;
  background: rgba(0, 77, 255, 0.14);
  color: var(--accent-soft);
  font-size: 10.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  vertical-align: 1px;
}
