.portal-clock { padding: 4px 0; }
.portal-clock time {
  display: block;
  color: var(--color-text-highlight);
  font-size: 2.3rem;
  line-height: 1.3;
}
.portal-clock p { margin-top: 6px; color: var(--color-text-paragraph); }

.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px 20px;
}
.portal-grid li { min-width: 0; }
.portal-grid a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--color-text-highlight);
  padding: 4px 0;
}
.portal-grid a:hover,
.portal-grid a:focus-visible { color: var(--color-primary); }
.portal-grid img {
  width: 32px;
  height: 32px;
  flex: none;
  object-fit: contain;
}
@media (max-width: 1190px) {
  .body-content > .header-container { display: block; }
  body:has(.portal-grid) .page-columns { display: flex; flex-direction: column; }
  body:has(.portal-grid) .page-columns > .page-column { display: block; width: 100%; }
  body:has(.portal-grid) .mobile-navigation,
  body:has(.portal-grid) .mobile-navigation-offset { display: none; }
}
@media (max-width: 650px) {
  .portal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
  .portal-grid a { gap: 8px; overflow-wrap: anywhere; }
  .portal-grid img { width: 26px; height: 26px; }
}
.portal-app-status {
  margin-left: auto;
  flex: none;
  font-size: 1.35rem;
  font-weight: bold;
}

.portal-dns-uptime { display: flex; flex-direction: column; }
.portal-dns-summary { order: -1; padding-bottom: 6px; }
.portal-dns-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 1em;
  align-items: baseline;
  gap: 8px;
  padding: 6px 0;
  border-top: 1px solid var(--color-separator);
}
.portal-dns-row span:last-child { text-align: right; }

.portal-app-status:is(.color-positive, .color-negative) {
  font-size: 0;
}
.portal-app-status:is(.color-positive, .color-negative)::before {
  content: "";
  display: block;
  width: 1.8rem;
  height: 1.8rem;
  background-color: currentColor;
  mask: var(--portal-monitor-icon) center / contain no-repeat;
}
.portal-app-status.color-positive {
  --portal-monitor-icon: url("/assets/icons/monitor-ok.svg");
  opacity: .65;
}
.portal-app-status.color-negative {
  --portal-monitor-icon: url("/assets/icons/monitor-error.svg");
}

.header .logo > img { width: 2.7rem; height: 2.7rem; }

.portal-weather .widget-header {
  justify-content: flex-start;
  text-align: left;
}
.portal-weather .widget-small-content-bounds {
  display: flex;
  flex-direction: column;
  padding: 4px 0;
}
.portal-weather .weather-columns {
  order: -1;
  justify-content: flex-start;
  margin-top: 0;
}
.portal-weather .weather-column { display: none; }
.portal-weather .weather-column-current {
  display: block;
  width: auto;
  padding: 0;
}
.portal-weather .weather-column-current > :not(.weather-column-value) { display: none; }
.portal-weather .weather-column-current .weather-column-value {
  color: var(--color-text-highlight);
  font-size: 2.3rem;
  line-height: 1.3;
  letter-spacing: normal;
  margin: 0;
}
.portal-weather .weather-column-current .weather-column-value::after {
  position: static;
  color: inherit;
  content: '°C';
}
.portal-weather .widget-small-content-bounds > .size-h2,
.portal-weather .widget-small-content-bounds > .size-h4 {
  color: var(--color-text-paragraph);
  font-size: inherit;
  text-align: left;
}
.portal-weather .widget-small-content-bounds > .size-h2 { margin-top: 6px; }
.portal-weather .widget-small-content-bounds > .size-h5 {
  justify-content: flex-start;
  margin-top: 6px;
}
.portal-weather .location-icon { flex-shrink: 0; }
