/* FH-18 MOA Labs — additive styles matching Hub chips/hints */
.moa-tab-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  margin-bottom: 8px;
  min-height: 32px;
}
.moa-tab-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.moa-toolbar-spacer { flex: 1 1 auto; }
.moa-mount { margin-top: 8px; }
.moa-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 6px;
  background: color-mix(in srgb, currentColor 4%, transparent);
}
.moa-row > summary,
.moa-row-main {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  cursor: pointer;
  list-style: none;
}
.moa-row summary::-webkit-details-marker { display: none; }
.moa-piece-swatch {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex: 0 0 auto;
}
.moa-canvas-wrap {
  position: relative;
  width: 100%;
  max-width: 920px;
  height: 360px;
  border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 40%, color-mix(in srgb, #1e3a5f 55%, transparent), transparent 55%),
    radial-gradient(ellipse at 70% 55%, color-mix(in srgb, #0f766e 35%, transparent), transparent 50%),
    #0b1220;
}
.moa-canvas-wrap canvas { width: 100%; height: 100%; display: block; }
.moa-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  margin: 10px 0;
}
.moa-controls label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  white-space: nowrap;
}
.moa-controls input[type="range"] { width: 180px; }
.moa-detail {
  margin-top: 10px;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
}
.moa-status { font-size: 12px; }
.moa-error {
  color: #fca5a5;
  border: 1px solid #7f1d1d;
  border-radius: 6px;
  padding: 8px 10px;
  margin: 8px 0;
}
.moa-path {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 8px 0;
}
.moa-path .chip { cursor: default; }
.moa-path .chip.is-active {
  outline: 1px solid color-mix(in srgb, #38bdf8 70%, transparent);
}
.moa-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0 0 8px;
}
.moa-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  line-height: 1.4;
  border-radius: 999px;
  padding: 2px 9px;
  border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
  background: color-mix(in srgb, currentColor 8%, transparent);
}
.moa-badge.ok { color: #4ade80; }
.moa-badge.warn { color: #facc15; }
.moa-badge.bad { color: #fca5a5; }
.moa-valuation {
  margin-top: 6px;
  padding: 8px 10px;
  border: 1px dashed color-mix(in srgb, #facc15 40%, transparent);
  border-radius: 6px;
  font-size: 12px;
}
.moa-valuation-note {
  color: #facc15;
  margin-bottom: 6px;
  font-style: italic;
}
.moa-valuation pre {
  margin: 0;
  white-space: pre-wrap;
  font-size: 11px;
  color: #cbd5e1;
}
.moa-help-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.55);
  z-index: 12000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 8vh 16px 16px;
}
.moa-help-overlay[hidden] { display: none !important; }
.moa-help-dialog {
  width: min(560px, 100%);
  max-height: 80vh;
  overflow: auto;
  background: #0f172a;
  color: #e2e8f0;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 14px 16px 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.moa-help-dialog h3 { margin: 0 0 8px; color: #7dd3fc; font-size: 1rem; }
.moa-help-dialog .moa-help-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}
.moa-help-dialog input[type="search"] {
  flex: 1;
  background: #111827;
  border: 1px solid #1e293b;
  color: #e2e8f0;
  border-radius: 6px;
  padding: 6px 8px;
  font: inherit;
}
.moa-help-list { list-style: none; margin: 0; padding: 0; }
.moa-help-list li {
  border-top: 1px solid #1e293b;
  padding: 8px 0;
  cursor: pointer;
}
.moa-help-list li:hover { color: #7dd3fc; }
@media (max-width: 720px) {
  .moa-tab-toolbar { flex-wrap: wrap; }
  .moa-controls { flex-wrap: wrap; }
  .moa-canvas-wrap { height: 280px; }
}
