/* climate-range - range control, source link, grouped list rows (#732, U8).
 * Consumes only --v2-* tokens; load with /css/canopy-v2.css.
 * Approved mockup: docs/design/mockups/climate-dial-732.html (.seg5, .src, .group, .lr).
 * The segmented control is a recessed track with a solid thumb: deliberately not the tab underline.
 */
.cr-seg { display: grid; grid-template-columns: repeat(5, 1fr); height: 48px; box-sizing: border-box; padding: 4px; border-radius: 12px; background: color-mix(in srgb, var(--v2-text-primary) 11%, transparent); box-shadow: inset 0 1px 3px color-mix(in srgb, var(--v2-bg-overlay) 60%, transparent); }
.cr-seg-btn { min-width: 44px; border: 0; border-radius: 9px; background: none; font: 600 15px var(--v2-font-body); color: var(--v2-text-secondary); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cr-seg-btn[aria-checked="true"] { background: var(--v2-text-primary); color: var(--v2-bg-primary); box-shadow: var(--v2-shadow-warm); }
.cr-seg-btn:focus-visible { outline: 2px solid var(--v2-text-primary); outline-offset: 2px; }

.cr-ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.cr-src { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 8px; border: 0; background: none; color: var(--v2-text-primary); font: 600 15px/1.3 var(--v2-font-body); cursor: pointer; }
.cr-src .cr-ic:last-child { color: var(--v2-text-tertiary); }
.cr-src:focus-visible, .cr-row:focus-visible { outline: 2px solid var(--v2-text-primary); outline-offset: 2px; }

/* Sensor menu in place of the source line (#770, mockup climate-sensor-menu-770.html). Button and list are .nur-menu* (nursery-chart.css). */
.cr-meta > [data-cr-src] { align-self: stretch; text-align: center; }
.cr-pick { position: relative; display: flex; justify-content: center; }
/* #789 (mockup climate-sensor-pick-789.html): a softer shadow and a gap, so the note under the button stays readable. */
.cr-pick .nur-menu-btn { max-width: 80%; box-shadow: inset 0 1px 0 var(--v2-glass-highlight), var(--v2-shadow-warm); }
.cr-pick .nur-menu { left: 50%; right: auto; transform: translateX(-50%); width: min(100%, 340px); min-width: 0; text-align: left; }
.cr-pick-note { margin: var(--v2-space-sm) 0 0; font: 400 13px/1.4 var(--v2-font-body); color: var(--v2-text-secondary); text-align: center; }
/* #789: right after a pick, the dial and chart fade until the picked sensor's numbers arrive. */
[data-cr-hero], [data-cr-chart] { transition: opacity var(--v2-transition-fast) var(--v2-ease-out); }
.is-picking [data-cr-hero], .is-picking [data-cr-chart] { opacity: 0.45; }

.cr-summary { margin: 0; font: 400 15px/1.4 var(--v2-font-body); color: var(--v2-text-primary); }

.cr-group { background: var(--v2-bg-card); border-radius: 16px; overflow: hidden; }
.cr-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 16px; box-sizing: border-box; width: 100%; border: 0; background: none; text-align: left; color: var(--v2-text-primary); font-family: var(--v2-font-body); cursor: pointer; }
.cr-row + .cr-row { border-top: 0.5px solid var(--v2-border-strong); }
.cr-row-label { flex: 1; min-width: 0; font-size: 17px; font-weight: 600; line-height: 1.25; }
.cr-row-val { max-width: 150px; text-align: right; font-size: 15px; line-height: 1.4; color: var(--v2-text-secondary); font-variant-numeric: tabular-nums; }
.cr-row-chev { width: 22px; height: 22px; color: var(--v2-text-tertiary); }
