/* Local mirror status and responsive corrections preserve the source layout. */
* { letter-spacing: 0 !important; }
:root { --muted: #596f6b; }
.brand strong { font-size: 22px; }
.mirror-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 12px 0; border-bottom: 1px solid var(--line); color: #5c706b; font-size: 12px; }
.mirror-source { color: #0a746a; font-weight: 600; }
#mirrorHealth { margin-left: auto; color: #0a746a; }
.mirror-status.is-stale #mirrorHealth { color: #a54936; }
.hero { gap: 24px; padding-top: 34px; }
.hero h1 { font-size: 32px; }
.hero > div:first-child { min-width: 0; }
.hero-status { flex-shrink: 0; }
.hero-status.paused .status-pulse { background: #bb5b4f; box-shadow: 0 0 0 4px #f8e6e2; }
.model-strip { flex-wrap: wrap; gap: 20px; }
.model-chip { min-width: 190px; }
.strip-item { min-width: 96px; padding-left: 18px; }
.metric-card, .gallery-card, .run-row, .detail-dialog { border-radius: 8px; }
.metric-card > small, .latency-row small, .panel-subtitle, .legend, .auto-refresh, .gallery-meta, .gallery-time, .gallery-sub, .timeline-axis, .timeline-note, footer { color: #607571; }
.metric-card { min-width: 0; }
.latency-row { flex-wrap: wrap; gap: 10px; }
.latency-row > div { min-width: 55px; }
.quiet-btn { min-height: 44px; min-width: 105px; justify-content: center; }
.quiet-btn:disabled { cursor: wait; opacity: .65; }
button:focus-visible, [role="button"]:focus-visible, a:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.timeline-wrap { overflow-x: auto; padding: 8px 3px 4px; }
.timeline, .timeline-axis { min-width: 575px; }
.timeline .loading-line { grid-column: 1 / -1; }
.slot { transition: transform .16s; }
.slot:hover, .slot:focus-visible { height: 37px; transform: translateY(-4px) scaleY(1.2); }
.run-row { min-height: 44px; }
.gallery-line, .gallery-sub { flex-wrap: wrap; gap: 4px; }
.gallery-account, .gallery-duration, .gallery-time { overflow-wrap: anywhere; }
.gallery-thumb { aspect-ratio: 4 / 3; height: auto; }
.gallery-thumb img { min-width: 0; min-height: 0; }
.gallery-empty { grid-column: 1 / -1; }
.gallery-placeholder { font-size: 16px; }
.gallery-detail-meta { flex-wrap: wrap; gap: 8px; }
.gallery-dialog img { min-height: 180px; }
.dialog-close { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; }
.dialog-head { gap: 12px; }
.dialog-head h2, .detail-cell b { overflow-wrap: anywhere; }
.detail-dialog { max-height: calc(100dvh - 30px); overflow-y: auto; }
.gallery-dialog .floating { right: 16px; top: 16px; border-radius: 8px; background: #153d3b; }
.gallery-media-error { padding: 24px; color: #d9eeea; text-align: center; }
@media (max-width: 680px) {
  .mirror-status { gap: 6px 14px; font-size: 11px; }
  #mirrorHealth { margin-left: 0; }
  .hero { padding-top: 26px; }
  .hero h1 { font-size: 26px; }
  .hero-status { margin-top: 18px; }
  .model-strip { gap: 13px; }
  .strip-item { min-width: 0; padding: 0; }
  .slot:hover, .slot:focus-visible { height: 28px; }
  .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dialog-head { padding: 18px 16px 12px; }
  .dialog-head h2 { font-size: 17px; }
  .dialog-body { padding: 16px; }
  .gallery-meta { display: block; }
  .gallery-model { margin-left: 0; }
  .gallery-dialog img { max-height: 72dvh; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
