/* Cameras refinement: scoped to #webcamsView, loaded last. Typography, contrast and spacing only. */
#webcamsView .camera-heading>span{color:rgba(164,244,207,.9);font-variant-numeric:tabular-nums}
#webcamsView .camera-heading h2{text-wrap:balance}

#webcamsView .camera-frame{border-color:rgba(164,244,207,.16);box-shadow:inset 0 0 0 1px rgba(2,9,11,.6),0 14px 30px -20px rgba(0,0,0,.85)}
#webcamsView .camera-provider-note{padding:8px 10px;border-color:rgba(164,244,207,.16);background:rgba(2,9,11,.9);color:rgba(236,255,249,.78);line-height:1.45}
html.layout-v2 #webcamsView .camera-provider-note{font-size:11px;letter-spacing:.02em}

#webcamsView .camera-meta{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.25fr);margin-top:10px;border-color:rgba(164,244,207,.14);background:rgba(255,255,255,.015)}
#webcamsView .camera-meta>div{padding:12px 9px}
#webcamsView .camera-meta>div+div{border-left-color:rgba(164,244,207,.12)}
html.layout-v2 #webcamsView .camera-meta p{color:rgba(170,200,180,.78);letter-spacing:.08em}
html.layout-v2 #webcamsView .camera-meta strong{margin-top:6px;line-height:1.35;color:#d3e6da}

#webcamsView .camera-meta #cameraObservation::before{content:"";display:inline-block;width:6px;height:6px;margin-right:6px;border-radius:50%;vertical-align:.08em;background:currentColor;opacity:.9}
#webcamsView .camera-meta #cameraObservation[data-state="observed"]{color:#a4f4cf}
#webcamsView .camera-meta #cameraObservation[data-state="observed"]::before{box-shadow:0 0 8px rgba(164,244,207,.55)}
#webcamsView .camera-meta #cameraObservation[data-state="verifying"]{color:#ffd86b}
#webcamsView .camera-meta #cameraObservation[data-state="off"]{color:rgba(211,230,218,.66)}
#webcamsView .camera-meta #cameraObservation[data-state="none"]{color:rgba(211,230,218,.76)}
#webcamsView .camera-meta #cameraObservation[data-state="off"]::before,#webcamsView .camera-meta #cameraObservation[data-state="none"]::before,#webcamsView .camera-meta #cameraObservation[data-state="idle"]::before{background:transparent;box-shadow:inset 0 0 0 1.5px currentColor}

html.layout-v2 #webcamsView .camera-attribution{margin-top:10px;padding:9px 11px;font-size:11px;line-height:1.5;color:rgba(211,230,218,.68);border-color:rgba(164,244,207,.12)}
#webcamsView .camera-attribution a{color:#a4f4cf}

#webcamsView .camera-controls{gap:10px;margin-top:10px}
#webcamsView .camera-controls button{min-height:48px;border-color:rgba(164,244,207,.16);color:rgba(236,255,249,.86);letter-spacing:.04em}

#webcamsView .camera-list{gap:10px}
#webcamsView .camera-list-item{padding:13px 14px;border-color:rgba(164,244,207,.12);row-gap:4px}
#webcamsView .camera-list-item.active{border-color:rgba(94,233,181,.55);background:rgba(94,233,181,.09);box-shadow:inset 0 0 0 1px rgba(94,233,181,.12)}
html.layout-v2 #webcamsView .camera-list-item span{color:#a4f4cf;font-variant-numeric:tabular-nums;white-space:nowrap}
html.layout-v2 #webcamsView .camera-list-item small{color:rgba(170,200,180,.82);letter-spacing:.02em}

/* Camera-first mobile layout: larger still image, visible status, no image obstruction.
   The original camera data, verification states and refresh behavior are unchanged. */
#webcamsView .camera-heading{align-items:flex-start;gap:12px}
#webcamsView .camera-heading>div{flex:1 1 auto;min-width:0}
#webcamsView .camera-heading h2{overflow-wrap:anywhere;line-height:1.16}
#webcamsView #cameraCounter{
  display:inline-flex;align-items:center;justify-content:center;
  flex:0 0 auto;align-self:flex-start;min-width:max-content;
  white-space:nowrap;padding:6px 10px;border-radius:999px;
  border:1px solid rgba(164,244,207,.24);
  background:rgba(125,255,213,.07);color:#b9f4da;
  font:700 12px/1.2 var(--mono);letter-spacing:.02em;
  font-variant-numeric:tabular-nums;
}
/* Provider messages follow the frame instead of hiding part of the sky. */
#webcamsView .camera-provider-note{
  position:static;inset:auto;left:auto;right:auto;bottom:auto;
  width:100%;margin-top:8px;padding:9px 12px;
  border:1px solid rgba(164,244,207,.15);
  border-left:2px solid rgba(164,244,207,.50);
  border-radius:6px;background:rgba(5,23,26,.72);
  backdrop-filter:none;text-align:left;
  font:600 11px/1.45 var(--sans);
  letter-spacing:.01em;color:#b9d4cb;
}
#webcamsView .camera-list-panel .camera-heading>span{
  min-width:0;overflow-wrap:anywhere;text-align:right;
}
@media(max-width:760px){
  #webcamsView .camera-main{padding:14px}
  #webcamsView .camera-heading h2{font-size:clamp(20px,5.6vw,24px)}
  #webcamsView .camera-frame{margin-top:12px}
  /* Image-only feeds get a taller viewport. Embeds retain their native 16:9 frame. */
  #webcamsView .camera-frame:has(> #cameraImage:not([hidden])){aspect-ratio:4/3}
  #webcamsView .camera-meta{grid-template-columns:repeat(2,minmax(0,1fr))}
  #webcamsView .camera-meta>div{min-width:0;padding:11px 12px}
  #webcamsView .camera-meta>div:last-child{
    grid-column:1/-1;padding:12px 13px;border-left:0;
    border-top:1px solid rgba(164,244,207,.16);
    background:rgba(111,225,190,.045);
  }
  html.layout-v2 #webcamsView .camera-meta>div:last-child p{
    font-size:11px!important;letter-spacing:.06em!important;
  }
  html.layout-v2 #webcamsView .camera-meta #cameraObservation{
    display:flex;align-items:baseline;flex-wrap:wrap;gap:5px;
    margin-top:5px;font-size:14px!important;
    line-height:1.4!important;letter-spacing:.01em;
    overflow:visible;text-overflow:clip;white-space:normal;
  }
  #webcamsView .camera-meta #cameraObservation::before{
    flex:0 0 7px;width:7px;height:7px;margin-right:1px;
  }
  html.layout-v2 #webcamsView .camera-meta strong:not(#cameraObservation){
    font-size:13px!important;line-height:1.35!important;
  }
  #webcamsView .camera-controls{margin-top:12px;gap:8px}
  #webcamsView .camera-controls button{min-height:46px;padding:10px 8px}
  #webcamsView .camera-list-item small{overflow-wrap:anywhere}
}
