/* ATLAS 9.19.33 — warning mini-maps, focus chip, Tímabil at 320, single VÍ-Static kort label. */

/* Sheet header only (do not right-align warning card titles). */
html.atlas-phone-shell body #atlasBriefSheet > header,
.atlas-brief-sheet > header{
  display:flex;align-items:flex-start;justify-content:space-between;gap:12px;
}
.brief-card header,
html.atlas-phone-shell body #atlasBriefSheet .brief-card header{
  display:flex !important;
  justify-content:flex-start !important;
  align-items:flex-start !important;
  text-align:left !important;
  gap:8px;
}
.brief-card header b,
.brief-card header small,
.brief-card header > div{
  text-align:left !important;
}

/* Focus chip: way back to the warnings list */
#atlasWarnFocus{
  position:fixed;
  top:calc(env(safe-area-inset-top,0px) + 50px);
  left:8px;right:8px;
  z-index:125;
  display:flex;align-items:center;gap:8px;
  padding:6px 8px;
  border-radius:12px;
  background:#161c22ee;
  color:#e8eef1;
  box-shadow:0 4px 14px rgba(0,0,0,.35);
  pointer-events:auto;
}
#atlasWarnFocus[hidden]{display:none !important;}
#atlasWarnFocus .warn-back{
  flex:0 0 auto;
  border:0;border-radius:9px;
  background:rgba(67,214,207,.18);color:#d7fffb;
  font:750 12px/1.2 system-ui,sans-serif;
  padding:8px 10px;
  min-height:36px;
}
#atlasWarnFocus .warn-focus-caption{
  flex:1;min-width:0;
  font:650 12px/1.3 system-ui,sans-serif;
  color:#c5d0d6;
}
#atlasWarnFocus .warn-focus-clear{
  width:36px;height:36px;border:0;border-radius:9px;
  background:rgba(255,255,255,.08);color:#fff;font-size:18px;
}
html.atlas-phone-shell.atlas-warn-focus body #layerChips#layerChips.layer-chips,
html.atlas-phone-shell.atlas-pro-phone.atlas-warn-focus body #layerChips#layerChips.layer-chips{
  top:calc(env(safe-area-inset-top,0px) + 94px) !important;
}
html.atlas-sheet-open #atlasWarnFocus{display:none !important;}

/* 320 px: bubble-9198 centres ‹ ▶ › across the whole row (grid-column:1/-1),
   which sits on top of Tímabil. Use a real 7-column row instead; hide 1× (it’s in ⋯). */
@media (max-width:360px){
  html.atlas-phone-shell body #weatherGraphSystem#weatherGraphSystem #loopSpeed#loopSpeed,
  html.atlas-phone-shell.atlas-pro-phone body #weatherGraphSystem#weatherGraphSystem#weatherGraphSystem#weatherGraphSystem #loopSpeed#loopSpeed,
  html.atlas-narrow-phone #loopSpeed{
    display:none !important;
  }
  html.atlas-phone-shell body #weatherGraphSystem#weatherGraphSystem #timeDock .timeline-head.atlas-playback-row,
  html.atlas-phone-shell.atlas-pro-phone body #weatherGraphSystem#weatherGraphSystem#weatherGraphSystem#weatherGraphSystem#weatherGraphSystem#weatherGraphSystem#weatherGraphSystem#weatherGraphSystem #timeDock .timeline-head.atlas-playback-row{
    grid-template-columns: minmax(0,auto) auto 30px 36px 30px auto 32px !important;
    column-gap: 3px !important;
  }
  html.atlas-phone-shell body #weatherGraphSystem#weatherGraphSystem #timeDock .atlas-playback-row > .atlas-playback-clock{
    grid-column:1 !important; grid-row:1 !important;
  }
  html.atlas-phone-shell body #weatherGraphSystem#weatherGraphSystem #timeDock .atlas-playback-row button#rowNow{
    grid-column:2 !important; grid-row:1 !important;
    position:relative !important; left:auto !important; transform:none !important;
    justify-self:stretch !important; margin:0 !important;
  }
  html.atlas-phone-shell body #weatherGraphSystem#weatherGraphSystem #timeDock .atlas-playback-row #timePrev,
  html.atlas-phone-shell body #weatherGraphSystem#weatherGraphSystem #timeDock .atlas-playback-row #timePlay,
  html.atlas-phone-shell body #weatherGraphSystem#weatherGraphSystem #timeDock .atlas-playback-row #timeNext{
    position:relative !important;
    left:auto !important; right:auto !important;
    transform:none !important; margin:0 !important;
    justify-self:center !important;
    grid-row:1 !important;
  }
  html.atlas-phone-shell body #weatherGraphSystem#weatherGraphSystem #timeDock .atlas-playback-row #timePrev{grid-column:3 !important;width:30px !important;min-width:30px !important;}
  html.atlas-phone-shell body #weatherGraphSystem#weatherGraphSystem #timeDock .atlas-playback-row #timePlay{grid-column:4 !important;width:36px !important;min-width:36px !important;}
  html.atlas-phone-shell body #weatherGraphSystem#weatherGraphSystem #timeDock .atlas-playback-row #timeNext{grid-column:5 !important;width:30px !important;min-width:30px !important;}
  html.atlas-phone-shell body #weatherGraphSystem#weatherGraphSystem #timeDock .atlas-playback-row button#rowLoop,
  html.atlas-phone-shell.atlas-pro-phone body #weatherGraphSystem#weatherGraphSystem#weatherGraphSystem#weatherGraphSystem#weatherGraphSystem#weatherGraphSystem#weatherGraphSystem#weatherGraphSystem #timeDock .atlas-playback-row button#rowLoop,
  html.atlas-narrow-phone #rowLoop{
    grid-column:6 !important; grid-row:1 !important;
    width:auto !important;
    min-width:4.7em !important;
    max-width:none !important;
    flex:0 0 auto !important;
    overflow:visible !important;
    text-overflow:clip !important;
    white-space:nowrap !important;
    padding:0 7px !important;
    font-size:12px !important;
    position:relative !important; left:auto !important; transform:none !important;
    justify-self:stretch !important; margin:0 !important;
    z-index:2;
  }
  html.atlas-phone-shell body #weatherGraphSystem#weatherGraphSystem #timeDock .atlas-playback-row button#rowMore{
    grid-column:7 !important; grid-row:1 !important;
    width:32px !important; min-width:32px !important;
    position:relative !important; left:auto !important; transform:none !important;
    margin:0 !important;
  }
}

/* Focus chip must sit above layer chips even when JS sets top:!important */
html.atlas-phone-shell.atlas-warn-focus body #layerChips#layerChips,
html.atlas-phone-shell.atlas-pro-phone.atlas-warn-focus body #layerChips#layerChips.layer-chips,
html.atlas-phone-shell.atlas-warn-focus #viImageStatus,
html.atlas-phone-shell.atlas-warn-focus #surfaceFrameTrust{
  transform:translateY(42px) !important;
}

/* Always show the full VÍ-Static kort label — never the shorter “VÍ-kort” alias. */
html.atlas-phone-shell #atlasPhoneTop .vi-label-short{display:none !important;}
html.atlas-phone-shell #atlasPhoneTop .vi-label-full{display:inline !important;}
@media (max-width:360px){
  html.atlas-phone-shell #atlasPhoneTop #openReferencePlayer{
    max-width:48%;
    padding-left:8px !important;
    padding-right:8px !important;
    font-size:11px !important;
  }
  html.atlas-phone-shell #atlasPhoneTop .vi-label-full{display:inline !important;}
  html.atlas-phone-shell #atlasPhoneTop .vi-label-short{display:none !important;}
}
