.room-sensors { margin-top: 20px; color: #183a57; }
.room-sensors-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.room-sensors-heading h3 { margin: 0; font-size: .70rem; letter-spacing: .08em; text-transform: uppercase; color: #516b80; }
.room-sensors-status { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; font-size: .70rem; font-weight: 600; color: #64748b; }
.room-sensors-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #94a3b8; }
.room-sensors[data-state="live"] .room-sensors-status { color: #14714c; }
.room-sensors[data-state="live"] .room-sensors-status::before { background: #22a06b; box-shadow: 0 0 0 3px #22a06b15; }
.room-sensor-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.room-sensors .room-sensor-card { margin: 0; padding: 11px 13px 9px; min-width: 0; border: 1px solid #d4e0ea; border-radius: 12px; background: linear-gradient(145deg, #fff, #f3f7fb); box-shadow: 0 3px 12px #002d5a05; display: flex; flex-direction: column; justify-content: space-between; }
.room-sensor-card h4 { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: .76rem; font-weight: 600; color: #4b647b; }
.room-sensor-card h4 svg { width: 15px; height: 15px; flex: 0 0 15px; fill: none; stroke: #5b809c; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.room-sensor-split-value { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.room-sensors .room-sensor-value { display: flex; align-items: baseline; gap: 4px; margin: 0; padding: 0; line-height: 1.1; font-size: clamp(1.45rem, 1.9vw, 1.95rem); font-weight: 600; letter-spacing: -.045em; color: #123955; font-variant-numeric: tabular-nums; }
.room-sensor-value span { font-size: .85rem; font-weight: 500; color: #71869a; letter-spacing: 0; }
.room-neopixel-indicator { display: inline-flex; align-items: center; gap: 5px; padding: 2px 7px; border-radius: 999px; background: #e8f0f8; font-size: .65rem; font-weight: 600; color: #2c5270; }
.neopixel-color-ring { width: 8px; height: 8px; border-radius: 50%; background: conic-gradient(#ff3b30, #ff9500, #ffcc00, #34c759, #00c7be, #30b0c7, #007aff, #5856d6, #af52de, #ff2d55, #ff3b30); box-shadow: 0 0 6px rgba(0,180,216,0.5); }
.room-sensors .room-sensor-description { margin: 4px 0 10px; font-size: .73rem; line-height: 1.25; color: #587287; }
.room-reference { position: relative; height: 4px; border-radius: 4px; margin: 0 2px; }
.room-reference-temperature { background: linear-gradient(90deg, #b7d9f1 0 33%, #bee4cf 33% 62%, #f5dfaa 62% 80%, #ecc4b7 80% 100%); }
.room-reference-light { background: linear-gradient(90deg, #adc0d3, #c9d8e3 20%, #e8dcb5 60%, #f1c873); }
.room-reference-sound { background: linear-gradient(90deg, #bee4cf 0 40%, #f5dfaa 40% 75%, #f5b7b1 75% 100%); }
.room-reference-marker { position: absolute; left: var(--position, 0%); top: -3px; height: 10px; width: 3px; border: 1px solid #fff; border-radius: 2px; background: #173f5e; box-shadow: 0 1px 3px #002d5a40; transform: translateX(-50%); transition: left .5s ease; opacity: 0; }
.room-sensors[data-has-reading="true"] .room-reference-marker { opacity: 1; }
.room-reference-labels { display: flex; justify-content: space-between; margin-top: 5px; color: #8092a2; font-size: .60rem; line-height: 1.2; }
.room-sensors-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 12px; margin-top: 8px; font-size: .67rem; color: #71869a; }
.room-sensors .room-sensors-note { margin: 6px 0 0; max-width: none; font-size: .65rem; line-height: 1.5; color: #7b8e9f; }
.room-sensors-note a { color: #53758e; text-underline-offset: 2px; }
.room-sensors[data-state="stale"] .room-sensor-value,
.room-sensors[data-state="disconnected"] .room-sensor-value,
.room-sensors[data-state="offline"] .room-sensor-value { color: #778b9b; }
@media (max-width: 768px) {
  .room-sensor-cards { grid-template-columns: 1fr; gap: 8px; }
  .room-sensors .room-sensor-card { padding: 12px 14px 10px; }
  .room-sensors .room-sensor-value { font-size: 2.1rem; }
}
@media (prefers-reduced-motion: reduce) { .room-reference-marker { transition: none; } }
