.portal-home-status {
  display: flow-root;
  position: relative;
  container-type: inline-size;
}

#layer0Page .portal-visit-counter {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .2rem .5rem;
  width: max-content;
  max-width: calc(100% - 32px);
  margin: 0 auto 1rem;
  padding: .4rem .65rem;
  border: 1px solid #2a7889;
  border-top: 2px solid #5eead4;
  border-radius: 8px;
  background: radial-gradient(ellipse at right top, #166478, transparent 66%), linear-gradient(145deg, #102a43, #104c5a);
  box-shadow: 0 4px 10px #102a4324;
  color: #fff;
  text-align: left;
}

.portal-visit-label {
  color: #a2f6e8;
  font-size: .78rem;
  font-weight: 700;
}

#portalVisitsToday {
  color: #fff;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 1.125rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

#portalVisitsToday[data-unavailable] { font-size: .78rem; }
.portal-visit-timezone { flex-basis: 100%; color: #d7edf1; font-size: .68rem; }

@container (min-width: 1400px) {
  #layer0Page .portal-visit-counter {
    position: absolute;
    inset-block-start: 20px;
    inset-inline-end: calc(50% + 550px + .75rem);
    max-width: 8rem;
    margin: 0;
  }
}

#visitorAnalyticsOpen[hidden] { display: none !important; }
#visitorAnalyticsOpen { cursor: pointer; }

#visitorAnalyticsDialog {
  box-sizing: border-box;
  width: min(46rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  padding: clamp(1rem, 4vw, 1.75rem);
  color: #1f3545;
  background: #fff;
  border: 1px solid #d5e3ed;
  border-radius: .75rem;
}

#visitorAnalyticsDialog::backdrop { background: rgb(8 25 37 / 68%); }

.visitor-analytics-header,
.visitor-analytics-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

#visitorAnalyticsDialog h2, #visitorAnalyticsDialog h3 { margin: 0; color: inherit; }
#visitorAnalyticsDialog button {
  padding: .45rem .65rem;
  color: #163650;
  background: #eef4f7;
  border: 1px solid #b9cfdf;
  border-radius: .35rem;
  cursor: pointer;
}

.visitor-analytics-totals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: .75rem;
  margin-bottom: 1rem;
}

.visitor-analytics-totals section { padding: .75rem; background: #eef4f7; border-radius: .5rem; }
.visitor-analytics-totals dl { display: grid; grid-template-columns: 1fr auto; gap: .35rem .75rem; margin-bottom: 0; }
.visitor-analytics-totals dd { margin: 0; font-weight: 700; }
.visitor-analytics-table { overflow-x: auto; margin-top: .5rem; }
.visitor-analytics-table table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.visitor-analytics-table th, .visitor-analytics-table td { padding: .55rem; border-bottom: 1px solid #d5e3ed; text-align: left; }
