/* ECHOWX_R235H_RADAR_PAGE_VISUAL_REFINEMENT
   Desktop-only radar page refinement. Mobile dock/layout rules are intentionally untouched.
*/

@media (min-width: 900px) {
  body.echowx-r235h-radar-page {
    --r235h-surface: #0b1016;
    --r235h-surface-raised: #111820;
    --r235h-surface-hover: #17212b;
    --r235h-border: rgba(148, 163, 184, 0.20);
    --r235h-border-strong: rgba(148, 163, 184, 0.30);
    --r235h-text: #f4f7fa;
    --r235h-muted: #9ba7b4;
    --r235h-orange: #ff6a00;
    --r235h-orange-soft: rgba(255, 106, 0, 0.15);
  }

  body.echowx-r235h-radar-page .echowx-r235h-timeline-row,
  body.echowx-r235h-radar-page .echowx-r235h-selector-row,
  body.echowx-r235h-radar-page .echowx-r235h-command-row {
    box-sizing: border-box !important;
    width: calc(100vw - 20px) !important;
    max-width: none !important;
    margin-left: 10px !important;
    margin-right: 10px !important;
    background: var(--r235h-surface) !important;
    border-color: var(--r235h-border) !important;
    box-shadow: none !important;
  }

  body.echowx-r235h-radar-page .echowx-r235h-timeline-row {
    min-height: 44px !important;
    height: 44px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 5px 10px !important;
    border: 1px solid var(--r235h-border) !important;
    border-bottom: 0 !important;
    border-radius: 12px 12px 0 0 !important;
  }

  body.echowx-r235h-radar-page .echowx-r235h-selector-row {
    min-height: 44px !important;
    height: 44px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 4px 8px !important;
    gap: 6px !important;
    border-left: 1px solid var(--r235h-border) !important;
    border-right: 1px solid var(--r235h-border) !important;
    border-top: 1px solid rgba(148, 163, 184, 0.11) !important;
    border-bottom: 0 !important;
    border-radius: 0 !important;
  }

  body.echowx-r235h-radar-page .echowx-r235h-command-row {
    min-height: 52px !important;
    height: 52px !important;
    margin-top: 0 !important;
    margin-bottom: 10px !important;
    padding: 3px 6px !important;
    border: 1px solid var(--r235h-border) !important;
    border-top-color: rgba(148, 163, 184, 0.11) !important;
    border-radius: 0 0 12px 12px !important;
  }

  body.echowx-r235h-radar-page .echowx-r235h-selector {
    min-width: 0 !important;
    min-height: 34px !important;
    height: 34px !important;
    background: var(--r235h-surface-raised) !important;
    border: 1px solid var(--r235h-border) !important;
    border-radius: 9px !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }

  body.echowx-r235h-radar-page .echowx-r235h-location-selector {
    flex: 0 1 275px !important;
    width: min(275px, 24vw) !important;
  }

  body.echowx-r235h-radar-page .echowx-r235h-product-selector {
    flex: 1 1 360px !important;
  }

  body.echowx-r235h-radar-page .echowx-r235h-tilt-selector {
    flex: 0 1 170px !important;
  }

  body.echowx-r235h-radar-page .echowx-r235h-selector:focus-within {
    border-color: rgba(255, 106, 0, 0.72) !important;
    box-shadow: 0 0 0 2px rgba(255, 106, 0, 0.11) !important;
  }

  body.echowx-r235h-radar-page .echowx-r235h-selector select {
    height: 100% !important;
    color: var(--r235h-text) !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
    font-size: 12px !important;
    font-weight: 650 !important;
  }

  body.echowx-r235h-radar-page .echowx-r235h-selector label,
  body.echowx-r235h-radar-page .echowx-r235h-selector [class*="label"] {
    color: var(--r235h-muted) !important;
    letter-spacing: 0.075em !important;
    font-size: 8px !important;
    line-height: 1 !important;
  }

  body.echowx-r235h-radar-page .echowx-r235h-draw-button {
    min-width: 92px !important;
    height: 34px !important;
    color: #dce3ea !important;
    background: var(--r235h-surface-raised) !important;
    border: 1px solid var(--r235h-border) !important;
    border-radius: 9px !important;
    box-shadow: none !important;
  }

  body.echowx-r235h-radar-page .echowx-r235h-draw-button:hover,
  body.echowx-r235h-radar-page .echowx-r235h-command-button:hover {
    color: #fff !important;
    background: var(--r235h-surface-hover) !important;
    border-color: var(--r235h-border-strong) !important;
  }

  body.echowx-r235h-radar-page .echowx-r235h-live-pill {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    min-width: 58px !important;
    height: 24px !important;
    margin-right: 6px !important;
    padding: 0 9px !important;
    color: #bfffe5 !important;
    background: rgba(23, 193, 126, 0.10) !important;
    border: 1px solid rgba(23, 193, 126, 0.28) !important;
    border-radius: 999px !important;
    font-size: 9px !important;
    font-weight: 760 !important;
    letter-spacing: 0.09em !important;
  }

  body.echowx-r235h-radar-page .echowx-r235h-live-pill::before {
    content: "" !important;
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background: #1ed58b !important;
    box-shadow: 0 0 8px rgba(30, 213, 139, 0.8) !important;
  }

  body.echowx-r235h-radar-page .echowx-r235h-command-button {
    min-height: 42px !important;
    height: 42px !important;
    color: #c6ced7 !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: 9px !important;
    font-size: 11px !important;
    font-weight: 650 !important;
    transition: background 120ms ease, color 120ms ease, border-color 120ms ease !important;
  }

  body.echowx-r235h-radar-page .echowx-r235h-command-button svg {
    opacity: 0.9 !important;
  }

  body.echowx-r235h-radar-page .echowx-r235h-dock-play.is-playing {
    color: #fff !important;
    background: var(--r235h-orange-soft) !important;
    border-color: rgba(255, 106, 0, 0.35) !important;
  }

  body.echowx-r235h-radar-page .echowx-r235h-timeline-row input[type="range"] {
    --r235h-progress: 100%;
    appearance: none !important;
    -webkit-appearance: none !important;
    height: 4px !important;
    border-radius: 999px !important;
    background:
      linear-gradient(
        90deg,
        var(--r235h-orange) 0,
        var(--r235h-orange) var(--r235h-progress),
        rgba(148, 163, 184, 0.28) var(--r235h-progress),
        rgba(148, 163, 184, 0.28) 100%
      ) !important;
    outline: 0 !important;
  }

  body.echowx-r235h-radar-page .echowx-r235h-timeline-row input[type="range"]::-webkit-slider-thumb {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 14px !important;
    height: 14px !important;
    border: 2px solid #fff !important;
    border-radius: 50% !important;
    background: var(--r235h-orange) !important;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.45) !important;
  }

  body.echowx-r235h-radar-page .echowx-r235h-timeline-row input[type="range"]::-moz-range-thumb {
    width: 11px !important;
    height: 11px !important;
    border: 2px solid #fff !important;
    border-radius: 50% !important;
    background: var(--r235h-orange) !important;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.45) !important;
  }

  body.echowx-r235h-radar-page .echowx-r235h-timeline-button {
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
    padding: 0 !important;
    color: #cbd3dc !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: 50% !important;
  }

  body.echowx-r235h-radar-page .echowx-r235h-timeline-button:hover {
    color: #fff !important;
    background: rgba(148, 163, 184, 0.12) !important;
  }

  body.echowx-r235h-radar-page .echowx-r235h-timeline-play {
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    color: #fff !important;
    background: var(--r235h-orange) !important;
    border: 0 !important;
    box-shadow: 0 4px 14px rgba(255, 106, 0, 0.22) !important;
  }

  body.echowx-r235h-radar-page .echowx-r235h-latest-pill {
    height: 20px !important;
    padding: 0 7px !important;
    color: #ffd8b8 !important;
    background: rgba(255, 106, 0, 0.11) !important;
    border: 1px solid rgba(255, 106, 0, 0.30) !important;
    border-radius: 999px !important;
    font-size: 8px !important;
    font-weight: 780 !important;
    letter-spacing: 0.07em !important;
  }

  body.echowx-r235h-radar-page .echowx-r235h-frame-count {
    max-width: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    transition: max-width 140ms ease, opacity 140ms ease !important;
  }

  body.echowx-r235h-radar-page .echowx-r235h-timeline-row:hover .echowx-r235h-frame-count,
  body.echowx-r235h-radar-page .echowx-r235h-timeline-row:focus-within .echowx-r235h-frame-count {
    max-width: 54px !important;
    opacity: 0.72 !important;
  }

  body.echowx-r235h-radar-page .echowx-r235h-report-card {
    width: min(360px, calc(100vw - 32px)) !important;
    max-width: 360px !important;
    padding: 14px !important;
    background: rgba(7, 17, 27, 0.97) !important;
    border: 1px solid rgba(148, 163, 184, 0.26) !important;
    border-top: 3px solid var(--r235h-orange) !important;
    border-radius: 14px !important;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.48) !important;
  }

  body.echowx-r235h-radar-page .echowx-r235h-report-back {
    display: none !important;
  }

  body.echowx-r235h-radar-page .echowx-r235h-report-share,
  body.echowx-r235h-radar-page .echowx-r235h-report-close {
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    border-radius: 9px !important;
  }

  body.echowx-r235h-radar-page .echowx-r235h-report-share {
    color: #fff !important;
    background: var(--r235h-orange) !important;
    border: 0 !important;
  }

  body.echowx-r235h-radar-page .echowx-r235h-report-meta-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
    margin-top: 10px !important;
    margin-bottom: 10px !important;
  }

  body.echowx-r235h-radar-page .echowx-r235h-report-meta {
    min-width: 0 !important;
    min-height: 48px !important;
    padding: 8px 9px !important;
    background: rgba(148, 163, 184, 0.065) !important;
    border: 1px solid rgba(148, 163, 184, 0.16) !important;
    border-radius: 9px !important;
  }

  body.echowx-r235h-radar-page .echowx-r235h-report-meta:last-child:nth-child(odd) {
    grid-column: 1 / -1 !important;
  }

  body.echowx-r235h-radar-page .echowx-r235h-report-card p {
    line-height: 1.42 !important;
  }

  body.echowx-r235h-radar-page .echowx-r235h-legend {
    width: 45px !important;
    max-width: 45px !important;
    padding: 7px 5px !important;
    background: rgba(6, 12, 18, 0.86) !important;
    border: 1px solid rgba(148, 163, 184, 0.28) !important;
    border-radius: 11px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.26) !important;
    backdrop-filter: blur(8px) !important;
  }

  body.echowx-r235h-radar-page .echowx-r235h-legend-unit {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    margin-top: 4px !important;
    padding: 0 !important;
    color: #dce3ea !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    font-size: 9px !important;
    font-weight: 720 !important;
  }
}
