.flow-context.has-wow-context {
  padding-right: .55rem;
}

.wow-context-trigger {
  display: flex;
  min-width: 11.5rem;
  align-self: stretch;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  margin: -.15rem 0 -.15rem .2rem;
  padding: .35rem .35rem .35rem .9rem;
  border: 0;
  border-left: 1px solid rgba(11, 48, 39, .13);
  background: transparent;
  color: #0b3027;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.wow-context-trigger-copy {
  display: grid;
  min-width: 0;
  gap: .22rem;
}

.wow-context-trigger small {
  color: #667a73;
  font-size: .45rem;
  font-weight: 760;
  letter-spacing: .12em;
  white-space: nowrap;
}

.flow-context .wow-context-trigger strong {
  display: block;
  min-width: 0;
  height: auto;
  place-items: initial;
  border-radius: 0;
  background: transparent;
  color: #0b3027;
  font-size: .63rem;
  font-weight: 760;
  letter-spacing: .055em;
  line-height: 1.2;
  white-space: nowrap;
}

.wow-context-more {
  display: grid;
  justify-items: center;
  gap: .22rem;
  color: #477066;
  font-size: .4rem;
  font-weight: 760;
  letter-spacing: .09em;
}

.wow-context-more i {
  display: grid;
  width: 1.75rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(11, 48, 39, .18);
  border-radius: 50%;
  font-size: .9rem;
  font-style: normal;
  transition: color .2s ease, background .2s ease, transform .25s ease;
}

.wow-context-trigger:hover .wow-context-more i,
.wow-context-trigger:focus-visible .wow-context-more i {
  background: #0b3027;
  color: #f1f3ed;
  transform: rotate(90deg);
}

.wow-context-trigger:focus-visible {
  border-radius: .7rem;
  outline: 2px solid #1d8b67;
  outline-offset: 2px;
}

.wow-modal[hidden] { display: none; }

.wow-modal {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(3, 30, 24, .72);
  opacity: 0;
  transition: opacity .22s ease;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.wow-modal.is-open { opacity: 1; }
.wow-modal-open { overflow: hidden; }

.wow-sheet {
  width: min(100%, 58rem);
  max-height: calc(100svh - 2.5rem);
  padding: clamp(1.25rem, 3vw, 2.3rem);
  border: 1px solid rgba(168, 221, 201, .24);
  border-radius: 1.7rem;
  background: #07372d;
  color: #f1f3ed;
  overflow: auto;
  box-shadow: 0 2rem 7rem rgba(0, 0, 0, .32);
  opacity: 0;
  transform: translateY(1rem) scale(.985);
  transition: opacity .22s ease, transform .3s cubic-bezier(.22, 1, .36, 1);
}

.wow-modal.is-open .wow-sheet {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.wow-sheet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(168, 221, 201, .18);
}

.wow-sheet-header p,
.wow-card p {
  margin: 0;
  color: #9db8ae;
  font-size: .56rem;
  font-weight: 760;
  letter-spacing: .16em;
}

.wow-sheet-header h2 {
  max-width: 18ch;
  margin: .65rem 0 0;
  font-size: clamp(1.8rem, 4.5vw, 3.8rem);
  font-weight: 590;
  line-height: .92;
  letter-spacing: -.055em;
}

.wow-close {
  display: grid;
  width: 2.7rem;
  aspect-ratio: 1;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(168, 221, 201, .28);
  border-radius: 50%;
  background: transparent;
  color: #a8ddc9;
  cursor: pointer;
  font-size: 1.4rem;
  font-weight: 350;
  line-height: 1;
  transition: background .2s ease, transform .25s ease;
}

.wow-close:hover,
.wow-close:focus-visible {
  background: rgba(168, 221, 201, .11);
  outline: none;
  transform: rotate(7deg);
}

.wow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
  margin-top: .8rem;
}

.wow-card {
  min-width: 0;
  padding: 1.4rem;
  border: 1px solid rgba(168, 221, 201, .18);
  border-radius: 1.15rem;
  background: rgba(241, 243, 237, .035);
}

.wow-card > strong,
.wow-gauge-copy strong {
  display: block;
  margin-top: .85rem;
  color: #f1f3ed;
  font-size: clamp(1.4rem, 3.5vw, 2.8rem);
  font-weight: 590;
  line-height: .95;
  letter-spacing: -.05em;
}

.wow-card > span {
  display: block;
  margin-top: 1rem;
  color: #9db8ae;
  font-size: .7rem;
  line-height: 1.5;
}

.wow-gauge-card {
  grid-column: 1 / -1;
}

.wow-gauge-copy {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.wow-gauge-copy strong {
  margin: 0;
  color: #a8ddc9;
  font-size: clamp(1rem, 2.2vw, 1.6rem);
  text-align: right;
}

.wow-gauge-current {
  margin: .62rem 0 0;
  color: #9db8ae;
  font-size: .56rem;
  font-weight: 720;
  letter-spacing: .1em;
}

.wow-gauge {
  position: relative;
  height: .5rem;
  margin-top: 1.8rem;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(168, 221, 201, .18) 0 25%, rgba(168, 221, 201, .28) 25% 50%, rgba(168, 221, 201, .38) 50% 75%, rgba(168, 221, 201, .52) 75%);
}

.wow-gauge-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: #a8ddc9;
  transition: width 1.15s cubic-bezier(.22, 1, .36, 1);
}

.wow-gauge-marker {
  position: absolute;
  width: 1.15rem;
  height: 1.15rem;
  top: 50%;
  border: .22rem solid #07372d;
  border-radius: 50%;
  background: #f1f3ed;
  box-shadow: 0 0 0 1px #a8ddc9;
  transform: translate(-50%, -50%);
  transition: left 1.15s cubic-bezier(.22, 1, .36, 1);
}

.wow-gauge-scale {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: .8rem;
  color: #76958a;
  font-size: .44rem;
  font-weight: 720;
  letter-spacing: .075em;
  line-height: 1.25;
}

.wow-gauge-scale span { display: grid; gap: .18rem; }
.wow-gauge-scale b,
.wow-gauge-scale small { font: inherit; }
.wow-gauge-scale b { color: #d7ebe2; }
.wow-gauge-scale small { color: #76958a; font-size: .92em; }
.wow-gauge-scale span:nth-child(2),
.wow-gauge-scale span:nth-child(3) { text-align: center; }
.wow-gauge-scale span:last-child { text-align: right; }

.wow-gauge-note {
  margin: 1rem 0 0;
  color: #9db8ae;
  font-size: .58rem;
  line-height: 1.5;
}

.flow-sticky {
  position: fixed;
  z-index: 90;
  top: 1rem;
  left: 50%;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .8rem 1.05rem;
  border: 1px solid rgba(168, 221, 201, .35);
  border-radius: 999px;
  background: rgba(7, 55, 45, .9);
  color: #f1f3ed;
  box-shadow: 0 1rem 3rem rgba(3, 30, 24, .25);
  opacity: 0;
  pointer-events: none;
  text-decoration: none;
  transform: translate(-50%, -1rem);
  transition: opacity .25s ease, transform .35s cubic-bezier(.22, 1, .36, 1);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.flow-sticky.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.flow-sticky span,
.flow-sticky small {
  font-size: .52rem;
  font-weight: 760;
  letter-spacing: .12em;
  white-space: nowrap;
}

.flow-sticky span { display: flex; align-items: center; gap: .45rem; color: #a8ddc9; }
.flow-sticky span i { width: .45rem; height: .45rem; border-radius: 50%; background: #1ca178; }
.flow-sticky strong { font-size: 1.15rem; font-weight: 760; letter-spacing: -.025em; }
.flow-sticky small { color: #9db8ae; }

.flow-hero.has-new-reading::after {
  position: absolute;
  z-index: 1;
  width: 4rem;
  height: 4rem;
  top: 58%;
  left: 50%;
  border: 1px solid rgba(29, 139, 103, .5);
  border-radius: 50%;
  content: "";
  pointer-events: none;
  animation: wowReadingRipple 1.5s cubic-bezier(.22, 1, .36, 1) both;
}

.flow-hero.has-new-reading .flow-number { animation: wowNumberFresh .7s cubic-bezier(.22, 1, .36, 1); }

@keyframes wowReadingRipple {
  from { opacity: .8; transform: translate(-50%, -50%) scale(.25); }
  to { opacity: 0; transform: translate(-50%, -50%) scale(18); }
}

@keyframes wowNumberFresh {
  0% { opacity: .35; transform: translateY(.18em); }
  100% { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1050px) {
  .flow-context.has-wow-context {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .wow-context-trigger {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 3rem;
    margin: .45rem 0 0;
    padding: .55rem .35rem .1rem;
    border-top: 1px solid rgba(11, 48, 39, .13);
    border-left: 0;
  }
}

@media (max-width: 640px) {
  .flow-context.has-wow-context {
    padding: .65rem;
  }

  .wow-context-trigger {
    min-width: 0;
  }

  .flow-context .wow-context-trigger strong { font-size: .61rem; }
  .wow-context-more { display: flex; align-items: center; gap: .45rem; }
  .wow-context-more i { width: 1.7rem; }

  .wow-modal {
    align-items: end;
    padding: 0;
  }

  .wow-sheet {
    width: 100%;
    max-height: 91svh;
    padding: 1.15rem;
    border-radius: 1.5rem 1.5rem 0 0;
    transform: translateY(2.5rem);
  }

  .wow-sheet-header { padding-bottom: 1.15rem; }
  .wow-sheet-header h2 { font-size: clamp(1.8rem, 9vw, 2.6rem); }
  .wow-grid { grid-template-columns: 1fr; gap: .65rem; }
  .wow-card { padding: 1.15rem; }
  .wow-gauge-card { grid-column: auto; }
  .wow-gauge-copy { display: block; }
  .wow-gauge-copy strong { margin-top: .65rem; text-align: left; }
  .wow-gauge-current { font-size: .5rem; }
  .wow-gauge-scale { gap: .22rem; font-size: .38rem; letter-spacing: .04em; }
  .wow-gauge-note { font-size: .52rem; }
  .flow-sticky { top: auto; bottom: calc(1rem + env(safe-area-inset-bottom)); width: max-content; max-width: calc(100vw - 2rem); }
  .flow-sticky span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .flow-hero.has-new-reading::after { display: none; }
  .flow-hero.has-new-reading .flow-number { animation: none; }
  .wow-modal, .wow-sheet, .wow-gauge-fill, .wow-gauge-marker, .flow-sticky { transition: none; }
}
