:root {
  --vertex-blue: #003865;
  --vertex-blue-dark: #002b4d;
  --vertex-blue-light: #e8f2f7;
  --vertex-gray: #707372;
  --vertex-gold: #cba052;
  --vertex-green: #2da44a;
  --dark-gray: #404342;
  --light-gray: #c0c3c2;
  --white: #ffffff;
  --app-bg: #f5f8fb;
  --card-bg: #ffffff;
  --line: #e2e7ec;
  --text: #1f2a33;
  --muted: #66727d;
  --shadow-sm: 0 2px 8px rgba(0, 56, 101, 0.08);
  --shadow-md: 0 14px 34px rgba(0, 56, 101, 0.14);
  --shadow-lg: 0 28px 70px rgba(0, 56, 101, 0.2);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(0, 56, 101, 0.04), rgba(255, 255, 255, 0) 360px),
    var(--app-bg);
  color: var(--text);
  font-family: "DM Sans", Arial, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

svg {
  display: block;
  fill: currentColor;
}

.app-shell {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 22px;
  background:
    linear-gradient(180deg, var(--vertex-blue), var(--vertex-blue-dark));
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 8px 0 28px rgba(0, 56, 101, 0.16);
  z-index: 2;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 196px;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.profile-card small {
  display: block;
  color: rgba(255, 255, 255, 0.72);
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-weight: 800;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-item svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.nav-item:hover,
.nav-item.active {
  background: var(--white);
  color: var(--vertex-blue);
  transform: translateX(2px);
}

.profile-card {
  margin-top: auto;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.12);
}

.profile-card strong {
  display: block;
}

.avatar {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: var(--vertex-gold);
  color: var(--vertex-blue);
  font-weight: 900;
}

.workspace {
  width: min(1420px, 100%);
  padding: 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.topbar h1,
.hero-card h2,
.panel h2 {
  font-family: "Red Hat Display", Arial, sans-serif;
  letter-spacing: 0;
}

.topbar h1 {
  margin: 0;
  color: var(--vertex-blue);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--vertex-gray);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.topbar .eyebrow {
  margin-bottom: 0;
  color: var(--vertex-blue);
  font-family: "Red Hat Display", Arial, sans-serif;
  font-size: clamp(1.35rem, 3vw, 2.35rem);
  line-height: 1;
  text-transform: none;
}

.microsoft-button,
.primary-button,
.secondary-button,
.segmented button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-weight: 900;
}

.microsoft-button {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--card-bg);
  color: var(--vertex-blue);
  box-shadow: var(--shadow-sm);
}

.microsoft-button svg {
  width: 18px;
  height: 18px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.9fr);
  gap: 20px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(330px, 0.8fr) minmax(0, 1.2fr);
  gap: 20px;
}

.hero-card {
  grid-column: 1 / -1;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 30px;
  align-items: stretch;
  min-height: 430px;
  padding: clamp(24px, 4vw, 48px);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, var(--vertex-blue) 0%, #064d7c 58%, var(--vertex-blue-dark) 100%);
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.hero-card::after {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -82px;
  height: 180px;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(255, 255, 255, 0.42) 0 10%, transparent 11%),
    repeating-radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.18) 0 2px, transparent 3px 18px);
  opacity: 0.75;
}

.hero-copy-block {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 720px;
}

.date-chip {
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-weight: 900;
}

.hero-card h2 {
  margin: 24px 0 16px;
  max-width: 760px;
  font-size: clamp(2.7rem, 6vw, 6rem);
  line-height: 0.92;
}

.hero-card p {
  max-width: 600px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.13rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-button,
.secondary-button {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
}

.primary-button {
  background: var(--vertex-gold);
  color: var(--vertex-blue);
  box-shadow: 0 10px 24px rgba(0, 43, 77, 0.2);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.hydration-art {
  position: relative;
  z-index: 1;
  min-height: 330px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 78% 18%, rgba(203, 160, 82, 0.34), transparent 72px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(232, 242, 247, 0.88));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55), 0 24px 56px rgba(0, 24, 48, 0.18);
  overflow: hidden;
  outline: none;
  cursor: pointer;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.hydration-art:hover,
.hydration-art.is-filling,
.hydration-art:focus,
.hydration-art:focus-visible {
  transform: translateY(-3px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), 0 30px 68px rgba(0, 24, 48, 0.24);
}

.hydration-art:focus,
.hydration-art.is-filling,
.hydration-art:focus-visible {
  box-shadow:
    0 0 0 4px rgba(203, 160, 82, 0.48),
    inset 0 0 0 1px rgba(255, 255, 255, 0.7),
    0 30px 68px rgba(0, 24, 48, 0.24);
}

.sun-orb {
  position: absolute;
  top: 28px;
  left: 34px;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--vertex-gold), #efd38d);
  box-shadow: 0 14px 38px rgba(203, 160, 82, 0.38);
}

.summit-ridge {
  position: absolute;
  right: 16px;
  bottom: 86px;
  width: 220px;
  height: 118px;
  clip-path: polygon(0 100%, 22% 46%, 36% 68%, 56% 20%, 72% 56%, 88% 34%, 100% 100%);
}

.ridge-back {
  right: -2px;
  bottom: 112px;
  background: rgba(45, 164, 74, 0.2);
}

.ridge-front {
  background: linear-gradient(135deg, var(--vertex-blue), #07598b);
}

.mountain-icon {
  position: absolute;
  right: 26px;
  top: 26px;
  width: 118px;
  height: 118px;
  border-radius: 26px;
  box-shadow: 0 14px 34px rgba(0, 56, 101, 0.24);
}

.water-bottle {
  position: absolute;
  left: 44px;
  bottom: 36px;
  width: 112px;
  height: 246px;
  transition: transform 0.28s ease;
}

.hydration-art:hover .water-bottle,
.hydration-art.is-filling .water-bottle,
.hydration-art:focus .water-bottle,
.hydration-art:focus-visible .water-bottle {
  transform: translateY(-8px);
}

.bottle-cap {
  width: 46px;
  height: 24px;
  margin: 0 auto 8px;
  border-radius: 10px 10px 6px 6px;
  background: var(--vertex-gold);
}

.bottle-body {
  position: relative;
  height: 214px;
  border: 4px solid var(--vertex-blue);
  border-radius: 34px 34px 28px 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.88);
  transition: box-shadow 0.28s ease, border-color 0.28s ease;
}

.hydration-art:hover .bottle-body,
.hydration-art.is-filling .bottle-body,
.hydration-art:focus .bottle-body,
.hydration-art:focus-visible .bottle-body {
  border-color: #07598b;
  box-shadow: 0 16px 34px rgba(0, 56, 101, 0.2);
}

.bottle-gloss {
  position: absolute;
  z-index: 4;
  top: 26px;
  left: 20px;
  width: 18px;
  height: 118px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
}

.bottle-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46%;
  background:
    linear-gradient(180deg, rgba(45, 164, 74, 0.22), rgba(0, 56, 101, 0.12)),
    var(--vertex-blue-light);
  transition: height 0.72s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.3s ease;
}

.hydration-art:hover .bottle-fill,
.hydration-art.is-filling .bottle-fill,
.hydration-art:focus .bottle-fill,
.hydration-art:focus-visible .bottle-fill {
  height: 84%;
  background:
    linear-gradient(180deg, rgba(45, 164, 74, 0.28), rgba(0, 56, 101, 0.14)),
    #d9f0f7;
}

.fill-shine {
  position: absolute;
  z-index: 2;
  left: -20px;
  right: -20px;
  bottom: 112px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.62);
  transform: rotate(-5deg);
  transition: bottom 0.72s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
}

.hydration-art:hover .fill-shine,
.hydration-art.is-filling .fill-shine,
.hydration-art:focus .fill-shine,
.hydration-art:focus-visible .fill-shine {
  bottom: 178px;
  opacity: 0.9;
}

.bottle-line {
  position: absolute;
  z-index: 3;
  left: 20px;
  right: 20px;
  height: 3px;
  border-radius: 999px;
  background: rgba(0, 56, 101, 0.2);
}

.line-a {
  top: 78px;
}

.line-b {
  top: 132px;
}

.line-c {
  top: 162px;
}

.bubble {
  position: absolute;
  z-index: 3;
  border-radius: 50%;
  background: rgba(0, 56, 101, 0.18);
  transition: transform 0.7s ease, opacity 0.7s ease;
}

.bubble-one {
  width: 9px;
  height: 9px;
  right: 22px;
  bottom: 46px;
}

.bubble-two {
  width: 13px;
  height: 13px;
  right: 38px;
  bottom: 86px;
  background: rgba(45, 164, 74, 0.24);
}

.bubble-three {
  width: 7px;
  height: 7px;
  right: 22px;
  bottom: 122px;
}

.hydration-art:hover .bubble-one,
.hydration-art.is-filling .bubble-one,
.hydration-art:focus .bubble-one,
.hydration-art:focus-visible .bubble-one {
  transform: translateY(-42px) scale(1.2);
  opacity: 0.9;
}

.hydration-art:hover .bubble-two,
.hydration-art.is-filling .bubble-two,
.hydration-art:focus .bubble-two,
.hydration-art:focus-visible .bubble-two {
  transform: translateY(-54px) scale(1.12);
  opacity: 0.9;
}

.hydration-art:hover .bubble-three,
.hydration-art.is-filling .bubble-three,
.hydration-art:focus .bubble-three,
.hydration-art:focus-visible .bubble-three {
  transform: translateY(-34px) scale(1.25);
  opacity: 0.9;
}

.drop {
  position: absolute;
  width: 22px;
  height: 30px;
  border-radius: 50% 50% 55% 55%;
  background: linear-gradient(180deg, #ffffff, var(--vertex-blue-light));
  transform: rotate(45deg);
  box-shadow: 0 8px 18px rgba(0, 56, 101, 0.12);
  transition: transform 0.28s ease, background 0.28s ease;
}

.hydration-art:hover .drop,
.hydration-art.is-filling .drop,
.hydration-art:focus .drop,
.hydration-art:focus-visible .drop {
  transform: rotate(45deg) translate(-4px, -4px) scale(1.08);
  background: linear-gradient(180deg, #ffffff, #d9f0f7);
}

.drop-one {
  top: 112px;
  left: 158px;
}

.drop-two {
  top: 54px;
  left: 230px;
  width: 16px;
  height: 22px;
}

.drop-three {
  right: 132px;
  top: 166px;
  width: 18px;
  height: 24px;
  background: linear-gradient(180deg, #ffffff, rgba(45, 164, 74, 0.18));
}

.wave-stack {
  position: absolute;
  left: 170px;
  right: -22px;
  bottom: 52px;
  display: grid;
  gap: 18px;
}

.wave-stack span {
  display: block;
  height: 16px;
  border-radius: 999px;
  background: rgba(0, 56, 101, 0.16);
  transition: width 0.4s ease, background-color 0.28s ease, transform 0.28s ease;
}

.hydration-art:hover .wave-stack span,
.hydration-art.is-filling .wave-stack span,
.hydration-art:focus .wave-stack span,
.hydration-art:focus-visible .wave-stack span {
  transform: translateX(-12px);
  background: rgba(0, 56, 101, 0.24);
}

.wave-stack span:nth-child(2) {
  margin-left: 34px;
  background: rgba(45, 164, 74, 0.18);
}

.wave-stack span:nth-child(3) {
  margin-left: 72px;
  background: rgba(203, 160, 82, 0.24);
}

.quick-log-panel {
  display: grid;
  align-content: start;
  gap: 18px;
}

.quick-log-control {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  gap: 12px;
  align-items: center;
}

.amount-step {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--vertex-blue-light);
  color: var(--vertex-blue);
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.amount-step:hover {
  background: #dbeef6;
  transform: translateY(-1px);
}

.amount-step svg {
  width: 24px;
  height: 24px;
}

.amount-display {
  display: grid;
  place-items: center;
  min-height: 116px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 74% 18%, rgba(203, 160, 82, 0.18), transparent 56px),
    linear-gradient(180deg, #ffffff, #f7fbfd);
  border: 1px solid var(--line);
}

.amount-display strong {
  color: var(--vertex-blue);
  font-family: "Red Hat Display", Arial, sans-serif;
  font-size: 3.5rem;
  line-height: 0.9;
  font-weight: 900;
}

.amount-display span {
  color: var(--muted);
  font-weight: 800;
}

.preset-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.preset-row button {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: #eef3f6;
  color: var(--vertex-blue);
  cursor: pointer;
  font-weight: 900;
}

.preset-row button.active,
.preset-row button:hover {
  background: var(--vertex-blue);
  color: var(--white);
}

.personal-summary {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.summary-card,
.panel {
  border-radius: var(--radius-md);
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 56, 101, 0.06);
}

.summary-card {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  padding: 22px;
}

.summary-card::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -34px;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: var(--vertex-blue-light);
}

.summary-card:nth-child(2)::after {
  background: rgba(203, 160, 82, 0.22);
}

.summary-card:nth-child(3)::after {
  background: rgba(45, 164, 74, 0.18);
}

.summary-card span,
.stat-card span,
.schema-list span,
.idea-list span {
  color: var(--muted);
}

.summary-card strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 12px;
  color: var(--vertex-blue);
  font-family: "Red Hat Display", Arial, sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.panel {
  padding: 24px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.panel h2 {
  margin: 0;
  color: var(--vertex-blue);
  font-size: 1.45rem;
  line-height: 1.1;
}

.panel-copy {
  max-width: 360px;
  color: var(--muted);
  line-height: 1.5;
}

.progress-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 18px;
  align-items: center;
}

.trail-panel {
  grid-column: 1 / -1;
}

.trail-grid {
  display: grid;
  grid-template-columns: repeat(15, minmax(0, 1fr));
  gap: 9px;
}

.trail-day {
  position: relative;
  display: grid;
  min-height: 44px;
  place-items: center;
  border: 0;
  border-radius: 14px;
  background: #eef3f6;
  color: var(--vertex-gray);
  cursor: pointer;
  font-weight: 900;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.trail-day:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.trail-day.logged {
  background: var(--vertex-blue-light);
  color: var(--vertex-blue);
}

.trail-day.today {
  box-shadow: inset 0 0 0 2px var(--vertex-gold);
}

.trail-day.selected {
  background: var(--vertex-blue);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.trail-day::after {
  content: "";
  position: absolute;
  bottom: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: transparent;
}

.trail-day.logged::after {
  background: var(--vertex-green);
}

.trail-day.selected::after {
  background: var(--vertex-gold);
}

.trail-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--vertex-blue-light);
  color: var(--vertex-blue);
}

.trail-detail strong {
  font-family: "Red Hat Display", Arial, sans-serif;
  font-size: 1.1rem;
}

.trail-detail span {
  color: var(--dark-gray);
  font-weight: 800;
}

.water-meter {
  position: relative;
  width: 170px;
  height: 170px;
  justify-self: end;
}

.water-meter svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.meter-track,
.meter-fill {
  fill: none;
  stroke-width: 13;
}

.meter-track {
  stroke: #e7edf1;
}

.meter-fill {
  stroke: var(--vertex-green);
  stroke-linecap: round;
  stroke-dasharray: 414;
  stroke-dashoffset: 116;
  transition: stroke-dashoffset 0.35s ease;
}

.meter-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}

.meter-label strong {
  color: var(--vertex-blue);
  font-family: "Red Hat Display", Arial, sans-serif;
  font-size: 2.2rem;
  line-height: 1;
  font-weight: 900;
}

.meter-label span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.text-link {
  color: var(--vertex-blue);
  font-weight: 900;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.leaderboard {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.leader-row {
  display: grid;
  grid-template-columns: 44px 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 66px;
  padding: 10px 12px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.leader-rank {
  color: var(--vertex-gold);
  font-family: "Red Hat Display", Arial, sans-serif;
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.leader-avatar {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--vertex-blue-light);
  color: var(--vertex-blue);
  font-weight: 900;
}

.leader-name strong {
  display: block;
  color: var(--text);
}

.leader-name span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.84rem;
}

.leaderboard-page {
  max-width: 980px;
}

.privacy-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--vertex-blue-light);
  color: var(--vertex-blue);
  font-weight: 800;
}

.privacy-note svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.insights-panel {
  display: grid;
  gap: 18px;
}

.insight-spotlight {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 86% 18%, rgba(203, 160, 82, 0.26), transparent 74px),
    linear-gradient(135deg, var(--vertex-blue), #07598b);
  color: var(--white);
}

.insight-spotlight::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -44px;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
}

.insight-spotlight span,
.insight-grid span {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.insight-spotlight span {
  color: rgba(255, 255, 255, 0.74);
}

.insight-spotlight strong {
  display: block;
  margin-top: 10px;
  font-family: "Red Hat Display", Arial, sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1;
  font-weight: 900;
}

.insight-spotlight p {
  position: relative;
  z-index: 1;
  max-width: 360px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.insight-grid article {
  display: grid;
  gap: 6px;
  min-height: 122px;
  padding: 14px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.insight-grid strong {
  display: block;
  color: var(--vertex-blue);
  font-family: "Red Hat Display", Arial, sans-serif;
  font-size: 1.32rem;
  line-height: 1.08;
  font-weight: 900;
}

.insight-grid small {
  color: var(--muted);
  line-height: 1.35;
}

.entry-form {
  display: grid;
  gap: 16px;
}

.entry-form label {
  display: grid;
  gap: 8px;
  color: var(--dark-gray);
  font-weight: 800;
}

.entry-form input,
.entry-form select,
.entry-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcfd;
  color: var(--text);
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.entry-form textarea {
  resize: vertical;
}

.entry-form input:focus,
.entry-form select:focus,
.entry-form textarea:focus {
  border-color: var(--vertex-blue);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(0, 56, 101, 0.1);
}

.form-panel .primary-button,
#settingsForm .primary-button {
  width: 100%;
}

.activity-list,
.idea-list,
.schema-list {
  display: grid;
  gap: 12px;
}

.activity-item,
.idea-list article,
.schema-list article {
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.activity-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
}

.activity-item span {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.activity-item strong:last-child {
  color: var(--vertex-green);
  white-space: nowrap;
}

.segmented {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: #eef3f6;
}

.segmented button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: transparent;
  color: var(--vertex-gray);
}

.segmented button.active {
  background: var(--white);
  color: var(--vertex-blue);
  box-shadow: var(--shadow-sm);
}

.idea-list article,
.schema-list article {
  display: grid;
  gap: 5px;
  padding: 16px;
}

.schema-list strong,
.idea-list strong {
  color: var(--vertex-blue);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  transform: translateY(90px);
  opacity: 0;
  max-width: min(380px, calc(100vw - 44px));
  padding: 15px 18px;
  border-radius: 16px;
  background: var(--vertex-blue);
  color: var(--white);
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, opacity 0.25s ease;
  font-weight: 800;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 18px;
  }

  .brand {
    width: 164px;
  }

  .nav-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .nav-item {
    justify-content: center;
  }

  .profile-card {
    display: none;
  }

  .dashboard-grid,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .personal-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .workspace {
    padding: 18px 14px 28px;
  }

  .topbar,
  .panel-heading,
  .leaderboard-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .microsoft-button {
    width: 100%;
  }

  .nav-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-item {
    border-radius: 16px;
    font-size: 0.92rem;
  }

  .hero-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-card h2 {
    font-size: 3.2rem;
  }

  .hydration-art {
    min-height: 300px;
  }

  .personal-summary,
  .progress-panel,
  .insight-grid {
    grid-template-columns: 1fr;
  }

  .trail-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .water-meter {
    justify-self: center;
  }

  .segmented {
    grid-auto-flow: row;
    border-radius: 18px;
  }

  .segmented button {
    border-radius: 14px;
  }
}

@media (max-width: 520px) {
  .hero-card h2 {
    font-size: 2.65rem;
  }

  .hero-actions {
    display: grid;
  }

  .leader-row {
    grid-template-columns: 34px 42px minmax(0, 1fr);
  }

  .leader-avatar {
    width: 42px;
    height: 42px;
  }

  .preset-row,
  .trail-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- Production additions: SSO gate, account chip, self-logging ---------- */

.topbar-account {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.topbar-user {
  font-weight: 700;
  color: var(--vertex-blue);
  font-size: 0.95rem;
}

.logging-as {
  background: var(--vertex-blue-light);
  color: var(--vertex-blue);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem;
}

.logging-as strong {
  font-weight: 800;
}

.leader-row.is-me {
  outline: 2px solid var(--vertex-gold);
  outline-offset: -2px;
  border-radius: var(--radius-sm);
}

.signin-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background:
    linear-gradient(160deg, rgba(0, 56, 101, 0.92), rgba(0, 43, 77, 0.96)),
    var(--vertex-blue);
  z-index: 1000;
}

.signin-overlay.show {
  display: flex;
}

.signin-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 28rem;
  width: 100%;
  overflow: hidden;
  text-align: center;
}

.signin-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.1rem 2rem;
  background:
    radial-gradient(120% 140% at 50% -20%, rgba(203, 160, 82, 0.28), transparent 60%),
    linear-gradient(160deg, var(--vertex-blue), var(--vertex-blue-dark));
}

.signin-logo {
  height: 34px;
  width: auto;
}

.signin-body {
  padding: 2.1rem 2.5rem 2.4rem;
}

.signin-eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--vertex-gold);
  margin-bottom: 0.5rem;
}

.signin-body h1 {
  font-family: "Red Hat Display", "DM Sans", sans-serif;
  color: var(--vertex-blue);
  margin: 0 0 0.6rem;
  font-size: 1.7rem;
  line-height: 1.1;
}

.signin-body p {
  color: var(--muted);
  margin: 0 0 1.6rem;
  line-height: 1.55;
  font-size: 0.97rem;
}

.signin-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  min-height: 50px;
  padding: 0 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: #3b3b3b;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.signin-button:hover {
  border-color: var(--vertex-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.ms-logo {
  display: grid;
  grid-template-columns: repeat(2, 9px);
  grid-template-rows: repeat(2, 9px);
  gap: 2px;
}

.ms-logo span {
  display: block;
  width: 9px;
  height: 9px;
}

.ms-logo span:nth-child(1) { background: #f25022; }
.ms-logo span:nth-child(2) { background: #7fba00; }
.ms-logo span:nth-child(3) { background: #00a4ef; }
.ms-logo span:nth-child(4) { background: #ffb900; }

.signin-foot {
  margin: 1.1rem 0 0;
  font-size: 0.78rem;
  color: var(--light-gray);
}

/* ---------- Admin participants roster ---------- */

.participant-count {
  font-size: 0.85rem;
  color: var(--muted);
}

.participant-count strong {
  color: var(--vertex-blue);
  font-weight: 800;
}

.participant-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.participant-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.participant-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--vertex-blue-light);
  color: var(--vertex-blue);
  font-weight: 800;
  font-size: 0.82rem;
}

.participant-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.participant-meta strong {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.participant-meta span {
  color: var(--muted);
  font-size: 0.82rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.role-badge {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
  color: var(--vertex-gold);
  border: 1px solid var(--vertex-gold);
  border-radius: 999px;
  padding: 0.05rem 0.45rem;
}

.participant-stats {
  text-align: right;
  display: flex;
  flex-direction: column;
}

.participant-stats strong {
  color: var(--vertex-blue);
  font-weight: 800;
}

.participant-stats span {
  color: var(--muted);
  font-size: 0.78rem;
}

.empty-note {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}
