/* EARTH WATCH · the lens tray and its key. Chrome in ink, the one highlight on the chosen chip; the only
   colour is the data's (the key's bar). Tokens are ink.css's names (W2), each falling back to the W1 sheet's
   own so this re-dresses with no edit when the two meet. Every label sits in a fixed seat: choosing a lens
   changes colours, never sizes. */
.lens-host--own { position: fixed; left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom));
                  right: calc(max(16px, env(safe-area-inset-right)) + var(--tap, 48px) + 16px); max-width: 540px;
                  pointer-events: none; }
.lens { display: flex; flex-direction: column; gap: 10px; pointer-events: auto;
        font-family: var(--f-body, var(--body, system-ui, sans-serif)); }

.lens-tray { display: flex; flex-wrap: wrap; gap: 8px; }
.lens-chip { min-height: var(--tap, 48px); padding: 0 16px; border-radius: var(--r-chip, 999px);
             border: var(--edge, 2px) solid var(--rule-ink, var(--ink)); background: var(--surface, var(--chip));
             color: var(--ink); font: var(--w-label, 700) var(--t-cap, 15px)/1 var(--f-body, var(--body, system-ui, sans-serif));
             letter-spacing: var(--track-label, 0.07em); cursor: pointer; touch-action: manipulation; }
.lens-chip[aria-checked="true"] { background: var(--hi, var(--pick)); color: var(--on-hi, var(--pick-ink));
                                  border-color: var(--hi, var(--pick)); }
.lens-chip:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

.lens-key { background: var(--surface, var(--chip)); color: var(--ink); border: var(--hair, 1px) solid var(--rule, var(--line));
            border-radius: var(--r-card, 14px); padding: 12px 14px 10px; }
.lens-key[hidden] { display: none; }
.lens-bar { height: 14px; border-radius: 7px; border: var(--hair, 1px) solid var(--rule, var(--line)); }
.lens-key--wait .lens-bar { opacity: 0.45; }
.lens-ticks { position: relative; height: 26px; margin: 4px 0 2px; font: 700 var(--t-cap, 15px)/26px var(--f-body, var(--body, system-ui, sans-serif));
              font-variant-numeric: tabular-nums; }
.lens-tick { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.lens-tick--first { transform: none; }
.lens-tick--last { transform: translateX(-100%); }
/* two lines reserved, so a long source line never moves the tray */
.lens-src { margin: 0; min-height: calc(2 * 1.35em); font-size: var(--t-cap, 15px); line-height: 1.35;
            color: var(--ink-2, var(--dim)); }
.lens-phrase { white-space: nowrap; }
/* OLD DATA / NO DATA: the one highlight as a filled tag with ink type, inside the same text seat, so a warning
   never adds a line to the key */
.lens-tag { display: inline-block; padding: 0 6px; border-radius: 4px; background: var(--hi, var(--pick));
            color: var(--on-hi, var(--pick-ink)); font-weight: var(--w-label, 700); letter-spacing: var(--track-label, 0.07em);
            line-height: 1.35; }
/* a phone's key is narrow: rain's line ("mm/h · instant rain rate · NOAA GFS model · valid …") takes three lines
   there, so three are reserved for every lens and switching lens never changes the key's height (review, W4) */
@media (max-width: 599px) { .lens-src { min-height: calc(3 * 1.35em); } }
