/* V23 — centered content, clearer week entry, and stable version placement */

.login-brand-panel {
  align-items: center !important;
  text-align: center !important;
}

.login-brand-top {
  width: 100% !important;
  justify-content: center !important;
}

.login-hero-copy {
  width: 100% !important;
  display: grid !important;
  justify-items: center !important;
}

.brand-values {
  width: 100% !important;
  justify-content: center !important;
}

.overview-hero + .section-heading {
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
}

.overview-hero + .section-heading > div {
  width: 100% !important;
}

.overview-hero + .section-heading .section-kicker,
.overview-hero + .section-heading .week-pill {
  display: none !important;
}

.overview-hero + .section-heading h2 {
  width: 100% !important;
  margin: 0 !important;
  text-align: center !important;
}

.overview-hero {
  justify-items: center !important;
  text-align: center !important;
}

.overview-hero > * {
  justify-self: center !important;
}

.overview-hero .hero-copy {
  width: 100% !important;
  display: grid !important;
  place-items: center !important;
}

.summary-counts {
  width: 100% !important;
  max-width: 400px !important;
  margin-inline: auto !important;
}

.summary-counts > div {
  grid-template-columns: auto auto !important;
  justify-content: center !important;
  justify-items: center !important;
  text-align: center !important;
}

.summary-counts span {
  grid-column: 1 / -1 !important;
  text-align: center !important;
}

.metric-card {
  text-align: center !important;
}

.metric-card-head {
  justify-content: center !important;
}

.metric-card h3 {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.metric-card .current-block,
.metric-card .comparison-grid,
.metric-card .comparison-grid > div {
  width: 100% !important;
  text-align: center !important;
}

.metric-card .open-card {
  justify-self: center !important;
  text-align: center !important;
}

.page-head:has(.week-selector) {
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
}

.page-head:has(.week-selector) > div {
  width: 100% !important;
}

.page-head:has(.week-selector) .section-kicker {
  font-size: 16px !important;
}

.page-head:has(.week-selector) h2 {
  font-size: clamp(31px, 3vw, 42px) !important;
  text-align: center !important;
}

.page-head:has(.week-selector) .week-selector {
  justify-content: center !important;
  font-size: 15px !important;
}

.page-head:has(.week-selector) .week-selector select {
  min-width: 210px !important;
  font-size: 16px !important;
  text-align: center !important;
}

.week-card {
  text-align: center !important;
}

.week-card > * {
  width: 100% !important;
}

.week-card-head {
  justify-content: center !important;
  gap: 12px !important;
}

.week-card-head > span {
  font-size: 14px !important;
}

.week-card-head > b {
  font-size: 12px !important;
  padding: 7px 11px !important;
}

.week-card h3,
.weekly-entry-grid .week-card h3 {
  min-height: 58px !important;
  margin: 18px 0 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  font-size: 20px !important;
  line-height: 1.65 !important;
}

.week-editor {
  width: 100% !important;
  justify-items: center !important;
}

.week-editor label {
  width: 100% !important;
  justify-items: center !important;
  text-align: center !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

.week-editor input {
  min-height: 56px !important;
  text-align: center !important;
  font: 800 22px/1.2 Arial, sans-serif !important;
  font-variant-numeric: tabular-nums !important;
  caret-color: var(--accent) !important;
  transition: none !important;
}

.week-editor textarea {
  min-height: 68px !important;
  height: 68px !important;
  text-align: center !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  transition: none !important;
}

.week-editor button {
  min-height: 40px !important;
  font-size: 13px !important;
}

.week-card:focus-within {
  transform: none !important;
}

.week-readonly,
.empty-week {
  width: 100% !important;
  text-align: center !important;
}

.week-readonly > strong {
  font-size: 32px !important;
  text-align: center !important;
}

.week-readonly > div {
  justify-content: center !important;
  gap: 20px !important;
  font-size: 13px !important;
}

.week-readonly p,
.week-readonly small,
.empty-week p {
  font-size: 13px !important;
  text-align: center !important;
}

.side-user > div > strong::after {
  content: "V23";
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-inline-start: 9px;
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  color: #fff;
  background: rgba(165, 32, 43, .72);
  direction: ltr;
  vertical-align: middle;
  font: 800 11px/1 Tahoma, Arial, sans-serif;
}

@media (max-width: 840px) {
  .page-head:has(.week-selector) .week-selector {
    width: 100% !important;
    flex-direction: column !important;
  }

  .page-head:has(.week-selector) .week-selector select {
    width: 100% !important;
  }
}
