/* Location tiles keep text in normal flow; Mobile grid/styles are unchanged. */
.dashboard-home #locationsGrid {
  grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr))!important;
  grid-template-rows:none;
  grid-auto-rows:minmax(150px,auto);
  align-content:start;
}
.dashboard-home #locationsGrid .is-location-card {
  display:block;
  height:auto;
  min-height:150px;
  padding:14px 82px 14px 14px!important;
}
.dashboard-home #locationsGrid .location-card-topline,
.dashboard-home #locationsGrid .location-card-topline.is-two-line {
  position:static;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  max-width:none;
  padding:0;
  gap:6px 8px;
}
.dashboard-home #locationsGrid .location-card-primary {display:contents}
.dashboard-home #locationsGrid .location-card-secondary {order:1;flex-basis:100%;margin:0}
.dashboard-home #locationsGrid .location-card-name {flex-shrink:0;max-width:100%;overflow-wrap:anywhere;line-height:1.15}
.dashboard-home #locationsGrid .location-card-topline .entity-status {position:static;order:2;max-width:100%;white-space:normal}
.dashboard-home #locationsGrid .entity-copy {display:block;margin-top:12px;padding:0}
.dashboard-home #locationsGrid .location-temperature-stack,
.dashboard-home #locationsGrid .location-temperature-stack.has-weather,
.dashboard-home #locationsGrid .location-weather-stack {
  position:static;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:6px;
}
.dashboard-home #locationsGrid .location-temperature,
.dashboard-home #locationsGrid .location-weather-badge {max-width:100%;white-space:normal;overflow-wrap:anywhere}
.dashboard-home #locationsGrid .funchal-tile-detail {padding:0;margin-top:16px;overflow-wrap:anywhere}
.dashboard-home .dashboard-bottom-tiles {
  grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));
  align-content:start;
  height:auto;
}
.dashboard-home .dashboard-bottom-tiles .alarm-preview-heading {display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.dashboard-home .dashboard-bottom-tiles .alarm-preview-badge {position:static;align-self:flex-start;order:-1}
.dashboard-home .dashboard-bottom-tiles .alarm-preview-card,
.dashboard-home .dashboard-bottom-tiles .security-entry-card {height:auto;min-height:170px}
.dashboard-home .dashboard-bottom-tiles .security-entry-card {display:flex;flex-direction:column;gap:10px;align-items:flex-start}
.dashboard-home .dashboard-bottom-tiles .security-entry-card>div,
.dashboard-home .dashboard-bottom-tiles .security-entry-card>.security-entry-icon {position:static;min-width:0}
.dashboard-home .dashboard-bottom-tiles .security-entry-card .security-entry-badge {position:static!important;transform:none;max-width:100%;white-space:normal;margin-top:auto}
.dashboard-home .dashboard-bottom-tiles .security-entry-card>.security-entry-arrow {position:static;align-self:flex-end}
