.empty-state {
  margin-top: 2rem;
  padding: 2rem;
  border: 1px dashed var(--border);
  border-radius: 0.5rem;
  color: var(--muted);
  text-align: center;
}

/* Brand imagery that melts into the page instead of sitting in a hard-edged
   box: a radial mask fades the image out at its edges so the site background
   shows through. Built for the EVOLV colored logo on the Evolv page hero;
   reusable for any brand hero. */
.brand-fade {
  display: block;
  width: 100%;
  max-width: 28rem;
  margin: 1.5rem auto 0.5rem;
  border: none;
  -webkit-mask-image: radial-gradient(ellipse 72% 68% at 50% 46%, #000 52%, transparent 80%);
  mask-image: radial-gradient(ellipse 72% 68% at 50% 46%, #000 52%, transparent 80%);
}

/* Typographic stand-in for the EVOLV logo until the real package lands:
   wordmark in the two flagship colorways (Elongated light blue -> Hybrid
   pink) fading into the page background at the bottom. The whole hero links
   out to evolvpickleball.com. */
.evolv-hero {
  display: block;
  margin: 1.75rem auto 0.25rem;
  text-align: center;
  text-decoration: none;
}

.evolv-hero:hover {
  text-decoration: none;
  filter: brightness(1.15);
}

.evolv-wordmark {
  display: block;
  font-size: 4.2rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  line-height: 1;
  background: linear-gradient(180deg, #8ec5e8 0%, #e89ec5 62%, rgba(232, 158, 197, 0) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.evolv-wordmark-sub {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.55em;
  text-indent: 0.55em;
  text-transform: uppercase;
}

.evolv-hero-tagline {
  margin: 0.75rem 0 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.evolv-logo-img {
  display: block;
  width: 100%;
  max-width: 30rem;
  margin: 0 auto;
}

.evolv-socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.6rem 1rem;
  margin: 0.75rem 0 0.5rem;
}

.evolv-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted);
  transition: color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.evolv-socials a svg {
  width: 22px;
  height: 22px;
}

.evolv-socials a:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: scale(1.08);
  text-decoration: none;
}

.paddle-render {
  display: block;
  height: 340px;
  width: auto;
  margin: 0 auto;
}

/* Click-to-flip shape comparison: both outlines share one to-scale SVG;
   the inactive one stays visible as a ghost so differences read in place.
   Starts fully grayed out with an instruction card on top — the gray state
   is the "press me" signal; first tap reveals, later taps flip. */
.shape-flip-stage {
  position: relative;
  display: flex;
  justify-content: center;
  cursor: pointer;
  border-radius: 0.6rem;
}

.shape-flip-stage:hover {
  background: rgba(255, 255, 255, 0.03);
}

.shape-flip .shape-variant {
  transition: opacity 0.25s ease, filter 0.25s ease;
}

.shape-flip.dimmed .shape-variant {
  opacity: 0.28;
  filter: grayscale(1);
}

.shape-flip .shape-variant.ghost {
  opacity: 0.35;
}

.shape-flip:not(.dimmed):hover .shape-variant.ghost {
  opacity: 0.5;
}

.shape-flip-intro {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
}

.shape-flip-intro[hidden] {
  display: none;
}

.shape-flip-intro p {
  margin: 0;
  padding: 0.6rem 1rem;
  border: 1px dashed var(--border);
  border-radius: 999px;
  background: rgba(43, 51, 44, 0.88);
  color: var(--text);
  font-size: 0.85rem;
  white-space: nowrap;
}

/* Eric's referral code: a button inside the disclosure — tapping it reveals
   the ambassador card below. */
.evolv-code {
  padding: 0.1rem 0.5rem;
  border: none;
  border-radius: 0.35rem;
  background: rgba(142, 197, 232, 0.16);
  color: #8ec5e8;
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: inherit;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}

.evolv-code:hover {
  background: rgba(142, 197, 232, 0.3);
}

/* Subtle "my code" pill living with the social icon buttons; jumps to the
   code section at the bottom. */
.evolv-code-pill {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 1.1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.evolv-code-pill:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: scale(1.08);
  text-decoration: none;
}

#my-code {
  scroll-margin-top: 90px;
}

.evolv-card-fig[hidden] {
  display: none;
}

/* Paddle renders with their labels on the side (model / shape / colorway). */
.paddle-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}

/* Lineup triptych: Elongated viewer | compare tool | Hybrid viewer, with the
   passage text full-width underneath. */
.lineup-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  margin: 1.25rem 0 1.5rem;
}

.lineup-tool {
  margin: 0;
  flex: 0 0 auto;
}

@media (max-width: 1000px) {
  .lineup-row {
    flex-wrap: wrap;
  }
}

.paddle-card-side.mirror {
  flex-direction: row-reverse;
}

.paddle-card-side.mirror .paddle-side-label {
  text-align: right;
}

.paddle-card-side {
  cursor: pointer;
}

.psl-tap {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-style: italic;
}

/* Paddle viewer: label hugs the outside, color dots next, paddle image
   toward the tool in the middle. Dots pick the colorway; tapping the
   paddle cycles camera views cut from EVOLV's layout sheets. */
.paddle-viewer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.paddle-viewer.mirror {
  flex-direction: row-reverse;
}

.paddle-viewer.mirror .paddle-side-label {
  text-align: right;
}

/* Fixed-size stage so switching between tall and wide views never shifts
   the row layout. */
.pv-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 190px;
  height: 300px;
  flex-shrink: 0;
}

.paddle-viewer .paddle-render {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  cursor: pointer;
}

/* Quiet pre-order link: plain text, small highlight only on hover. */
.pv-preorder {
  align-self: flex-start;
  margin-top: 0.6rem;
  padding: 0.2rem 0.55rem 0.2rem 0;
  border-radius: 0.4rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.pv-preorder:hover {
  padding-left: 0.55rem;
  background: rgba(201, 185, 143, 0.16);
  text-decoration: none;
}

.paddle-viewer.mirror .pv-preorder {
  align-self: flex-end;
}

/* Lineup columns: shape name on top, viewer beneath. */
.lineup-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  flex: 0 0 auto;
}

.lineup-title {
  font-size: 1.2rem;
  font-weight: 700;
}

/* Centered model name over the lineup. */
.lineup-heading {
  text-align: center;
  font-size: 1.5rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* The compare tool in its own section, rendered larger so the shape
   difference actually reads. Kept slightly grayed even when revealed —
   it's a supporting diagram, not the main event. */
.compare-section .lineup-tool {
  flex: 0 0 auto;
}

.compare-section .lineup-tool svg {
  height: 380px;
}

.compare-section .shape-flip:not(.dimmed) {
  filter: saturate(0.55);
  opacity: 0.85;
}

.color-dots {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.color-dot {
  /* appearance reset: iOS Safari otherwise paints its own button chrome
     over the swatch color */
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 1.5px solid rgba(236, 229, 211, 0.4);
  border-radius: 50%;
  background: var(--dot);
  background-color: var(--dot);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.color-dot:hover {
  transform: scale(1.2);
}

.color-dot.active {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.evolv-code-note-row {
  display: flex;
  justify-content: center;
  margin: 0.5rem 0 0;
}

/* Text on the left, picture on the right (What's coming, My first hit). */
.split-row {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.split-text {
  flex: 1;
  min-width: 0;
}

.split-fig {
  margin: 0;
  flex: 0 0 auto;
}

@media (max-width: 900px) {
  .split-row {
    flex-direction: column;
    gap: 1.25rem;
  }
}

/* Three-sentence summary at the end of the honest take. */
.take-tldr {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
  color: var(--muted);
  font-size: 0.92rem;
}

/* Honest-take paddle panels: one big square for the main, a column of
   three sub-squares on its right that together match its height. */
.take-paddles {
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.take-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.6rem;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.02);
}

.take-panel img {
  display: block;
  width: auto;
}

.take-panel-main {
  width: 320px;
  height: 344px;
}

.take-panel-main img {
  height: 270px;
}

.take-subs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.take-panel-sub {
  width: 106px;
  flex: 1;
}

.take-panel-sub img {
  height: 68px;
}

.take-cap {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  text-align: center;
  white-space: nowrap;
}

/* Understated code chip under the socials — plain text, still tappable. */
.evolv-code-plain {
  padding: 0;
  border: none;
  background: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.85rem;
  font-style: italic;
  cursor: pointer;
}

.evolv-code-plain:hover {
  color: var(--accent);
}

/* Ambassador card popup: click anywhere (or Esc) to dismiss. */
.card-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(20, 24, 20, 0.78);
  cursor: zoom-out;
}

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

.card-modal img {
  max-width: min(90%, 38rem);
  max-height: 85vh;
  border-radius: 0.75rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

/* Paddle gallery overlay: arrows to scroll, caption under the image. */
.take-panel[data-gallery] {
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.take-panel[data-gallery]:hover {
  border-color: var(--accent);
}

.gallery-modal {
  gap: 1.5rem;
  cursor: zoom-out;
}

.gal-stage {
  margin: 0;
  text-align: center;
  cursor: default;
}

.gal-stage img {
  max-height: 70vh;
  max-width: min(80vw, 34rem);
  width: auto;
  border-radius: 0;
  box-shadow: none;
}

.gal-stage figcaption {
  margin-top: 0.9rem;
  color: var(--text);
  font-size: 0.9rem;
}

.gal-arrow {
  width: 52px;
  height: 52px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(43, 51, 44, 0.9);
  color: var(--text);
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.gal-arrow:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Pre-order confirmation box. */
.confirm-modal {
  cursor: default;
}

.confirm-box {
  max-width: 22rem;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--bg);
  text-align: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.confirm-title {
  margin: 0 0 0.6rem;
  font-weight: 600;
}

.confirm-code {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.confirm-code strong {
  padding: 0.05rem 0.4rem;
  border-radius: 0.35rem;
  background: rgba(142, 197, 232, 0.16);
  color: #8ec5e8;
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
}

.confirm-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.confirm-actions button {
  padding: 0.45rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.confirm-actions button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.lineup-tool figcaption:empty {
  display: none;
}

/* Eric's playful code reminder riding with the social buttons. */
.evolv-code-note {
  display: flex;
  align-items: center;
  margin-left: 0.5rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-style: italic;
  text-decoration: none;
  white-space: nowrap;
}

.evolv-code-note:hover {
  color: var(--accent);
  text-decoration: underline;
}

.paddle-card-side {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0;
}

.paddle-card-side .paddle-render {
  height: 300px;
  margin: 0;
}

.paddle-side-label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-align: left;
  width: 7.75rem;
  flex-shrink: 0;
}

.psl-model {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.psl-shape {
  font-size: 1.15rem;
  font-weight: 700;
}

.psl-color {
  color: var(--muted);
  font-size: 0.8rem;
}

/* Personal images fade into the page background instead of sitting in hard
   rectangles. Soft = corners only (keeps card/flyer text legible); strong =
   full vignette for busy photo backgrounds. */
.img-fade {
  display: block;
  margin: 0 auto;
  border-radius: 0.75rem;
}

/* CarbonSkyn emphasis callout — the molded-in-grit pitch, with EVOLV's own
   emblem pulled from the flyer. */
.carbonskyn-callout {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.02);
}

.carbonskyn-callout img {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
}

.carbonskyn-callout p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Split-flap countdown to the ship date. Each unit is two cropped halves
   plus two flaps that rotate on change. */
.evolv-countdown {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 0.9rem 0 0.3rem;
}

.cd-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.cd-lab {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.flip-unit {
  position: relative;
  width: 3rem;
  height: 2.5rem;
  perspective: 240px;
}

.fu-top,
.fu-bottom,
.fu-flap {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.25rem;
  overflow: hidden;
  display: flex;
  justify-content: center;
  background: #222a23;
  color: var(--accent);
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 2.5rem;
  font-variant-numeric: tabular-nums;
  backface-visibility: hidden;
}

.fu-top,
.fu-flap-top {
  top: 0;
  align-items: flex-start;
  border-radius: 0.35rem 0.35rem 0 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.45);
}

.fu-bottom,
.fu-flap-bottom {
  bottom: 0;
  align-items: flex-end;
  border-radius: 0 0 0.35rem 0.35rem;
}

.fu-flap-top {
  transform-origin: center bottom;
  z-index: 2;
  visibility: hidden;
}

.fu-flap-bottom {
  transform-origin: center top;
  transform: rotateX(90deg);
  z-index: 2;
  visibility: hidden;
}

.flip-unit.flipping .fu-flap-top {
  visibility: visible;
  animation: fu-fold 0.3s ease-in forwards;
}

.flip-unit.flipping .fu-flap-bottom {
  visibility: visible;
  animation: fu-unfold 0.3s ease-out 0.3s forwards;
}

@keyframes fu-fold {
  to { transform: rotateX(-90deg); }
}

@keyframes fu-unfold {
  from { transform: rotateX(90deg); }
  to { transform: rotateX(0deg); }
}

.cd-live {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
}

.fade-soft {
  -webkit-mask-image: radial-gradient(ellipse 120% 115% at 50% 50%, #000 70%, transparent 100%);
  mask-image: radial-gradient(ellipse 120% 115% at 50% 50%, #000 70%, transparent 100%);
}

.fade-strong {
  -webkit-mask-image: radial-gradient(ellipse 88% 84% at 50% 50%, #000 48%, transparent 94%);
  mask-image: radial-gradient(ellipse 88% 84% at 50% 50%, #000 48%, transparent 94%);
}

.evolv-card-fig {
  margin: 1.5rem 0 0;
}

.evolv-card-img {
  width: 100%;
  max-width: 33rem;
}

.evolv-proto-img {
  max-height: 430px;
  max-width: 100%;
  width: auto;
}

.evolv-flyer-img {
  width: 100%;
  max-width: 22rem;
}

/* Wide two-column layout so the page reads side-to-side instead of one long
   scroll: paddles on the left, words on the right. Stacks on narrow screens. */
.evolv-columns {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
  gap: 0 3rem;
  align-items: start;
}

.evolv-columns .shape-row {
  justify-content: center;
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .evolv-columns {
    grid-template-columns: 1fr;
  }
}

.page-photo {
  margin: 1.5rem 0 0;
}

.page-photo img {
  display: block;
  width: 100%;
  max-width: 40rem;
  border-radius: 0.6rem;
  border: 1px solid var(--border);
}

.ambassador-disclosure {
  padding: 0.85rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 0.6rem;
  background: rgba(201, 185, 143, 0.08);
  font-size: 0.92rem;
  line-height: 1.55;
}

.paddle-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0.75rem;
}

.paddle-tab {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

.paddle-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.paddle-tab.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
}

.paddle-stage {
  background: rgba(255, 255, 255, 0.02);
}

.paddle-stage img {
  padding: 1rem;
  box-sizing: border-box;
}

.paddle-detail {
  margin-top: 1rem;
}

.paddle-detail h3 {
  margin: 0 0 0.3rem;
}

.paddle-spec {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.paddle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.paddle-card {
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.02);
}

.paddle-card-name {
  font-weight: 700;
}

.paddle-card-count {
  margin-left: 0.35rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
}

.paddle-card-note {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

main.vatic-page {
  --main-w: 56rem;
  max-width: 56rem;
}

.shape-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-end;
  margin: 1.5rem 0;
}

.shape-fig {
  margin: 0;
  text-align: center;
}

.shape-fig svg {
  display: block;
  height: 250px;
  width: auto;
  margin: 0 auto;
}

.shape-fig figcaption {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.shape-key {
  font-weight: 600;
}

.shape-label {
  fill: var(--muted);
  stroke: none;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.shape-compare label {
  margin: 0 0.35rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.shape-compare input {
  accent-color: currentColor;
  cursor: pointer;
}

.qa {
  margin-top: 0.75rem;
  padding: 0 1rem;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.02);
}

.qa summary {
  padding: 0.8rem 0;
  font-size: 0.95rem;
  line-height: 1.5;
  cursor: pointer;
}

.qa summary:hover {
  color: var(--accent);
}

.qa[open] summary {
  border-bottom: 1px solid var(--border);
}

.qa-quick {
  color: var(--muted);
}

.qa-body {
  padding: 0.85rem 0 1rem;
}

.qa-body p {
  margin: 0 0 0.85rem;
}

.qa-body p:last-child {
  margin-bottom: 0;
}

.spec-tip {
  position: relative;
  border-bottom: 1px dotted var(--muted);
  cursor: help;
}

.spec-tip:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 0.4rem;
  background: var(--bg);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 400;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.page-photo figcaption {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
}

.page-photo-cycle {
  position: relative;
  display: block;
  max-width: 40rem;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 0.6rem;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.page-photo-cycle img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  border: none;
  border-radius: 0;
}

.page-photo-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
  border-radius: 0.6rem;
}

.page-photo-cycle:hover .page-photo-hint {
  opacity: 1;
}

.workout-count {
  margin: 1.5rem 0 0.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.workout-log-heading {
  margin: 2rem 0 0.5rem;
  font-size: 1.1rem;
}

.workout-log {
  width: 100%;
  margin-top: 0.5rem;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.workout-log th {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.workout-log td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.workout-log tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 700px) {
  .workout-log {
    display: block;
    overflow-x: auto;
  }
}

.health-section {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.health-section h2 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
}

.health-section-note {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.health-freshness {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-style: italic;
}

.metric-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0.5rem 0 1rem;
}

.metric-card {
  flex: 1;
  min-width: 9rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.02);
}

.metric-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
}

.metric-label {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.health-split {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-top: 0.5rem;
}

.health-split-main {
  flex: 2;
  min-width: 0;
}

.health-split-side {
  flex: 1;
  min-width: 16rem;
}

.workout-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.workout-filter-bar select {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 0.4rem;
  padding: 0.35rem 0.6rem;
  font-size: 0.85rem;
}

@media (max-width: 800px) {
  .health-split {
    flex-direction: column;
  }

  .health-split-side {
    min-width: 0;
    width: 100%;
  }
}

.workout-log tbody tr.zone-highlight {
  background: rgba(124, 148, 115, 0.12);
}

.workout-log tbody tr.zone-highlight td:first-child {
  font-weight: 600;
  color: var(--accent);
}

.trend-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 0.5rem 0 1rem;
}

.trend-card {
  flex: 1;
  min-width: 22rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.02);
}

.trend-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.3rem;
}

.trend-title {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

.trend-delta {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.trend-current {
  margin-bottom: 0.4rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.trend-unit {
  margin-left: 0.3rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
}

.trend-card canvas {
  display: block;
  width: 100%;
  height: 150px;
}

@media (max-width: 600px) {
  .trend-card {
    min-width: 100%;
  }
}

.hr-range-chart {
  display: block;
  width: 100%;
  height: 180px;
  margin-top: 1rem;
}

.journal-entries {
  margin-top: 2rem;
}

.journal-entry {
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.journal-entry:first-child,
.journal-year-divider + .journal-entry {
  padding-top: 0;
  margin-top: 0;
  border-top: none;
}

.journal-year-divider {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 2.5rem 0 1.25rem;
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 700;
}

.journal-year-divider:first-child {
  margin-top: 0;
}

.journal-year-divider svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.journal-year-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.journal-entry-date {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.journal-entry-date:hover {
  color: var(--text);
}

.journal-entry-body {
  display: none;
  margin-top: 0.6rem;
}

.journal-entry.expanded .journal-entry-body {
  display: block;
}

.journal-entry-menu {
  position: relative;
  flex-shrink: 0;
}

.journal-menu-toggle {
  padding: 0 0.3rem;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.4;
  cursor: pointer;
  text-transform: none;
}

.journal-menu-toggle:hover {
  color: var(--text);
}

.journal-menu-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 10;
  min-width: 7rem;
  margin-top: 0.3rem;
  padding: 0.3rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--bg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.journal-menu-dropdown.open {
  display: block;
}

.journal-delete {
  display: block;
  width: 100%;
  padding: 0.4rem 0.6rem;
  border: none;
  border-radius: 0.35rem;
  background: none;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
}

.journal-delete:hover {
  background: rgba(201, 122, 90, 0.12);
  color: #c97a5a;
}

.journal-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1.5rem 0 2rem;
}

.journal-form textarea {
  width: 100%;
  resize: vertical;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.5;
}

.journal-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.journal-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.journal-form-dropdown {
  left: 0;
  right: auto;
  min-width: 14rem;
  padding: 0.75rem;
}

.journal-field-label {
  display: block;
  margin: 0 0 0.3rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.journal-form-dropdown input {
  width: 100%;
  margin-bottom: 0.75rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 0.4rem;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-family: inherit;
  font-size: 0.82rem;
}

.journal-form-dropdown input:last-of-type {
  margin-bottom: 0;
}

.journal-form-dropdown input:focus {
  outline: none;
  border-color: var(--accent);
}

.journal-form button {
  align-self: flex-end;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

.journal-form button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.journal-form button:disabled {
  opacity: 0.5;
  cursor: default;
}

.journal-entry-body p {
  margin: 0 0 0.85rem;
  line-height: 1.6;
}

.journal-entry-body p:last-child {
  margin-bottom: 0;
}

.zone-row {
  cursor: pointer;
}

.zone-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

.zone-row.zone-row-active {
  background: rgba(201, 185, 143, 0.14);
}

.zone-row.zone-row-active td:first-child {
  color: var(--accent);
  font-weight: 600;
}

.workout-disclosure summary {
  cursor: pointer;
  padding: 0.6rem 0;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}

.workout-disclosure summary:hover {
  color: var(--accent);
}

.workout-disclosure[open] summary {
  margin-bottom: 0.5rem;
}
