/* ── Design Tokens ─────────────────────────────────────────────────────────── */
:root {
  --sky-top:    #B8D8F8;
  --sky-mid:    #CEEAFF;
  --sky-bottom: #E8F5FF;
  --primary:         #5A90C0;
  --primary-light:   #8ABFDF;
  --primary-dark:    #3870A0;
  --glass-bg:        rgba(255,255,255,0.28);
  --glass-border:    rgba(255,255,255,0.58);
  --glass-shadow:    0 8px 32px rgba(70,120,175,0.13);
  --card-radius:     22px;
  --text:    #18283E;
  --text-2:  #446080;
  --text-3:  rgba(24,40,62,0.48);
  --clear-c: #5A90C0;
  --drink-c: #B07050;
  /* Hydration families: total (blue-purple), water (blue), coffee (espresso) */
  --hyd-total:   #7C77D8;
  --hyd-total-2: #9B7BD8;
  --hyd-water:   #4E9BDC;
  --hyd-water-2: #7CC0EE;
  --hyd-coffee:  #9A6A45;
  --hyd-coffee-2:#C08A5A;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
  --coin-zone-h: 200px;
}

/* ── Reset ──────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; color: inherit; }
input, select { font-family: var(--font); font-size: 16px; }
::-webkit-scrollbar { width: 0; background: transparent; }

/* ── Base layout: body scrolls naturally ────────────────────────────────────── */
html {
  height: 100%;
  width: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  background: linear-gradient(165deg, var(--sky-top) 0%, var(--sky-mid) 50%, var(--sky-bottom) 100%);
  background-attachment: fixed;
  min-height: 100svh;
  min-height: 100dvh;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

/* ── Sky Background ─────────────────────────────────────────────────────────── */
#sky-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.cloud {
  position: absolute;
  background: rgba(255,255,255,0.52);
  border-radius: 100px;
  filter: blur(10px);
}
.cloud::before, .cloud::after {
  content: '';
  position: absolute;
  background: rgba(255,255,255,0.52);
  border-radius: 50%;
}

.cloud-1 { width: 260px; height: 65px; top: 9%;  left: -80px; animation: drift1 85s linear infinite; }
.cloud-1::before { width:110px; height:110px; top:-45px; left:36px; }
.cloud-1::after  { width:75px;  height:75px;  top:-28px; left:130px; }
.cloud-2 { width: 190px; height: 48px; top: 25%; left: -60px; animation: drift2 130s linear infinite; opacity:.72; }
.cloud-2::before { width:80px; height:80px; top:-33px; left:28px; }
.cloud-2::after  { width:55px; height:55px; top:-18px; left:105px; }
.cloud-3 { width: 150px; height: 38px; top: 48%; left: -55px; animation: drift3 105s linear infinite; opacity:.48; }
.cloud-3::before { width:64px; height:64px; top:-26px; left:22px; }
.cloud-3::after  { width:46px; height:46px; top:-16px; left:85px; }

.sky-shimmer {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 62% 18%, rgba(255,255,255,0.16) 0%, transparent 58%);
  animation: shimmer 14s ease-in-out infinite;
}

@keyframes drift1  { from{transform:translateX(0)} to{transform:translateX(calc(100vw + 360px))} }
@keyframes drift2  { from{transform:translateX(0)} to{transform:translateX(calc(100vw + 280px))} }
@keyframes drift3  { from{transform:translateX(0)} to{transform:translateX(calc(100vw + 230px))} }
@keyframes shimmer { 0%,100%{opacity:.55} 50%{opacity:1} }

/* ── App Shell ──────────────────────────────────────────────────────────────── */
#app-shell {
  position: relative;
  z-index: 10;
  min-height: 100svh;
  min-height: 100dvh;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: calc(var(--coin-zone-h) + env(safe-area-inset-bottom, 0px) + 16px);
}

/* ── Header ─────────────────────────────────────────────────────────────────── */
#main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 4px;
}

.header-left {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.wordmark {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary-dark);
  opacity: 0.75;
}

#home-date {
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.01em;
}

.controls-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.30);
  border: 1px solid rgba(255,255,255,0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.08em;
  flex-shrink: 0;
  transition: background 0.2s;
}
.controls-btn:active { background: rgba(255,255,255,0.5); }

.status-line {
  font-size: 15px;
  font-weight: 400;
  font-style: italic;
  color: var(--text-2);
  padding: 4px 20px 14px;
  letter-spacing: 0.01em;
  line-height: 1.45;
}

/* ── Main Content ────────────────────────────────────────────────────────────── */
#main-content { padding: 0 14px; }

/* ── Glass Card ─────────────────────────────────────────────────────────────── */
.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--card-radius);
  backdrop-filter: blur(22px) saturate(120%);
  -webkit-backdrop-filter: blur(22px) saturate(120%);
  padding: 18px 18px 16px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}

.card.tappable {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.card.tappable:active { transform: scale(0.985); box-shadow: 0 4px 16px rgba(70,120,175,0.09); }

.card-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--text-3);
  margin-bottom: 8px;
  display: block;
}

.card-tap-hint {
  font-size: 11px;
  color: var(--text-3);
  display: block;
  margin-top: 8px;
}

/* ── Stats Grid — compact, single row ──────────────────────────────────────── */
#stats-grid.card {
  padding: 12px 14px 10px;
}

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

.stat-cell { text-align: center; padding: 2px 0; }

.stat-value {
  font-size: 22px;
  font-weight: 200;
  color: var(--text);
  line-height: 1;
  margin-bottom: 3px;
  letter-spacing: -0.01em;
}

.stat-label {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-3);
}

/* ── Clear Bank Card ────────────────────────────────────────────────────────── */
.bank-balance {
  font-size: 40px;
  font-weight: 200;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 4px;
}

.bank-daily {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 14px;
}

.bank-proj-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.bank-proj-cell {
  background: rgba(255,255,255,0.32);
  border-radius: 12px;
  padding: 10px 6px;
  text-align: center;
}
.bank-proj-value { font-size: 15px; font-weight: 500; color: var(--text); margin-bottom: 2px; }
.bank-proj-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-3); }

/* Clear Bank header row + subtle "days clear" status pill */
.bank-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.bank-card-top .card-label { margin-bottom: 0; }

.bank-days-clear {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-2);
  background: rgba(255,255,255,0.40);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}

/* ── Health Card ────────────────────────────────────────────────────────────── */
.health-top { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.health-icon { font-size: 26px; flex-shrink: 0; line-height: 1.1; }
.health-title { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.health-tagline { font-size: 12px; color: var(--text-2); }
.health-summary { font-size: 13px; color: var(--text-2); line-height: 1.58; margin-bottom: 6px; }
.health-next { font-size: 11px; color: var(--text-3); }

/* ── Journey Strip ──────────────────────────────────────────────────────────── */
.journey-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.journey-last { font-size: 11px; color: var(--text-3); }

.journey-dots {
  display: flex;
  gap: 5px;
  align-items: center;
}

.journey-dot {
  flex: 1;
  aspect-ratio: 1;
  max-width: 26px;
  border-radius: 50%;
  background: rgba(200,215,230,0.28);
}
.journey-clear   { background: rgba(90,144,192,0.45); }
.journey-drink   { background: rgba(176,112,80,0.42); }
.journey-unknown { background: rgba(200,215,230,0.25); }

.journey-today {
  outline: 2px solid rgba(90,144,192,0.7);
  outline-offset: 1px;
}
.journey-today.journey-clear { background: var(--primary); }

.journey-dot { position: relative; }

.journey-has-water::after {
  content: '';
  position: absolute;
  top: 1px;
  right: 1px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(60,150,220,0.72);
  border: 1px solid rgba(255,255,255,0.65);
  pointer-events: none;
}

.content-spacer { height: 12px; }

/* ── Fixed Coin Zone ────────────────────────────────────────────────────────── */
#coin-zone {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  height: calc(var(--coin-zone-h) + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 14px;
  z-index: 90;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 0%, rgba(205,230,252,0.60) 35%, rgba(195,225,250,0.82) 100%);
}

#coin-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  pointer-events: auto;
}

#coin-area {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

/* ── The Clear Coin ─────────────────────────────────────────────────────────── */
#coin {
  width: 80px;
  height: 80px;
  perspective: 500px;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  position: relative;
  flex-shrink: 0;
}

/* Outer glow ring */
.coin-glow {
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(100,165,218,0.32) 0%, transparent 68%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

#coin[data-state="idle"]  .coin-glow { animation: glowPulse 4.5s ease-in-out infinite; }
#coin[data-state="clear"] .coin-glow {
  opacity: 0.55;
  background: radial-gradient(ellipse, rgba(200,232,255,0.55) 0%, transparent 68%);
  animation: glowPulse 7s ease-in-out infinite;
}
#coin[data-state="strike"] .coin-glow {
  opacity: 0.45;
  background: radial-gradient(ellipse, rgba(220,140,140,0.48) 0%, transparent 68%);
  animation: glowPulse 7s ease-in-out infinite;
}

.coin-glow.pulsing {
  animation: glowBurst 0.65s ease-out forwards !important;
}

@keyframes glowPulse {
  0%,100% { opacity: 0.15; transform: scale(0.96); }
  50%      { opacity: 0.38; transform: scale(1.06); }
}

@keyframes glowBurst {
  0%   { opacity: 0.65; transform: scale(1); }
  100% { opacity: 0.20; transform: scale(1.18); }
}

/* Coin inner — 2-D stage (floating animation only) */
.coin-inner {
  width: 100%;
  height: 100%;
  position: relative;
}

/* Idle float */
#coin[data-state="idle"] .coin-inner {
  animation: coinFloat 5s ease-in-out infinite;
}

@keyframes coinFloat {
  0%,100% { transform: translateY(0)   rotateZ(0deg); }
  35%      { transform: translateY(-6px) rotateZ(0.6deg); }
  68%      { transform: translateY(-3px) rotateZ(-0.35deg); }
}

/* Coin faces — shared */
.coin-face {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* ── Front face: frosted ice-glass ──────────────────────────────────────── */
.coin-front {
  background:
    radial-gradient(circle at 30% 22%,
      rgba(255,255,255,0.96),
      rgba(255,255,255,0.52) 28%,
      rgba(210,234,252,0.30) 58%,
      rgba(132,170,200,0.32) 100%);
  border: 1px solid rgba(255,255,255,0.75);
  box-shadow:
    inset 0  1px  8px rgba(255,255,255,0.94),
    inset 0 -12px 28px rgba(74,110,140,0.16),
    inset 0  0   22px rgba(255,255,255,0.22),
    0 16px 50px rgba(62,105,142,0.25);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  overflow: hidden;
  transition: background 0.6s ease, box-shadow 0.6s ease;
}

/* Upper-left shine crescent */
.coin-shine {
  position: absolute;
  top: 6%;
  left: 10%;
  width: 42%;
  height: 38%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 40% 35%,
    rgba(255,255,255,0.82) 0%,
    rgba(255,255,255,0.12) 60%,
    transparent 100%);
  pointer-events: none;
}

/* Rim highlight */
.coin-rim {
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.46);
  pointer-events: none;
}

/* Inner ring for depth */
.coin-front::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid rgba(100,148,188,0.11);
  box-shadow: inset 0 2px 6px rgba(255,255,255,0.28);
}

/* Coin emblem — SVG clear-sky icon */
.coin-emblem {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  pointer-events: none;
  color: rgba(80,125,165,0.30);
}

.coin-emblem-svg {
  width: 38px;
  height: 38px;
}

/* ── Clear (completed) state ─────────────────────────────────────────────── */
#coin[data-state="clear"] .coin-front {
  background: radial-gradient(
    circle at 36% 30%,
    rgba(255,255,255,1.0)   0%,
    rgba(250,253,255,0.98) 38%,
    rgba(235,248,255,0.96) 70%,
    rgba(218,240,255,0.93) 100%
  );
  box-shadow:
    inset 0 0 28px rgba(255,255,255,1),
    inset 0 0 12px rgba(200,234,255,0.80),
    0 0 32px rgba(195,228,255,0.55),
    0 14px 46px rgba(62,105,142,0.14);
}

#coin[data-state="clear"] .coin-emblem { color: rgba(100,158,205,0.22); }

/* ── Strike state ────────────────────────────────────────────────────────── */
#coin[data-state="strike"] .coin-front {
  background: radial-gradient(
    circle at 32% 26%,
    rgba(255,246,246,0.97)  0%,
    rgba(250,225,225,0.90) 34%,
    rgba(228,190,190,0.75) 66%,
    rgba(205,158,158,0.62) 100%
  );
  box-shadow:
    inset 0  1px  8px rgba(255,242,242,0.96),
    inset 0 -10px 24px rgba(180,80,80,0.10),
    inset 0  0   22px rgba(255,225,225,0.22),
    0 0 28px rgba(210,125,125,0.32),
    0 14px 42px rgba(140,70,70,0.18);
  border-color: rgba(255,220,220,0.65);
}

#coin[data-state="strike"] .coin-emblem { color: rgba(180,90,90,0.22); }
#coin[data-state="strike"] .coin-rim { border-color: rgba(255,200,200,0.42); }

/* ── Hold progress ring (SVG) ────────────────────────────────────────────── */
.coin-hold-ring {
  position: absolute;
  width: 95px;
  height: 95px;
  top: -7px;
  left: -7px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
}
.coin-hold-ring.active { opacity: 1; }

.hold-ring-track {
  fill: none;
  stroke: rgba(160,170,185,0.18);
  stroke-width: 3;
}

.hold-ring-fill {
  fill: none;
  stroke: rgba(185,120,120,0.70);
  stroke-width: 3;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transform-box: fill-box;
}

/* ── Press feedback ──────────────────────────────────────────────────────── */
#coin.coin-pressed .coin-inner {
  transform: scale(0.93) !important;
  transition: transform 0.10s ease !important;
}

/* ── Tap pulse (clear day) ───────────────────────────────────────────────── */
.coin-tap-pulse .coin-inner {
  animation: coinTapPulse 0.42s ease-out forwards !important;
}

@keyframes coinTapPulse {
  0%   { transform: scale(1); }
  28%  { transform: scale(0.90); }
  100% { transform: scale(1); }
}

/* ── Shake animation (strike) ────────────────────────────────────────────── */
.coin-shake .coin-inner {
  animation: coinShake 0.60s ease-out forwards !important;
}

@keyframes coinShake {
  0%   { transform: translateX(0)     rotateZ(0deg); }
  14%  { transform: translateX(-7px)  rotateZ(-2.0deg); }
  29%  { transform: translateX( 7px)  rotateZ( 2.0deg); }
  43%  { transform: translateX(-5px)  rotateZ(-1.5deg); }
  57%  { transform: translateX( 4px)  rotateZ( 1.0deg); }
  72%  { transform: translateX(-2px)  rotateZ(-0.5deg); }
  100% { transform: translateX(0)     rotateZ( 0deg); }
}

/* Coin labels */
#coin-label {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-align: center;
  letter-spacing: 0.01em;
  min-height: 18px;
}

#coin-hint {
  margin-top: 2px;
  font-size: 11px;
  color: var(--text-3);
  text-align: center;
  min-height: 14px;
}


/* ── Overlay Pane System ────────────────────────────────────────────────────── */
.overlay-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(18,38,68,0.38);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.overlay-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.overlay-pane {
  width: 100%;
  max-width: 520px;
  max-height: 90svh;
  max-height: 90dvh;
  background: rgba(210,235,255,0.90);
  backdrop-filter: blur(32px) saturate(140%);
  -webkit-backdrop-filter: blur(32px) saturate(140%);
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  border-top: 1px solid rgba(255,255,255,0.65);
  border-left: 1px solid rgba(255,255,255,0.45);
  border-right: 1px solid rgba(255,255,255,0.45);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(0.34,1.15,0.64,1);
  overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.overlay-backdrop.open .overlay-pane {
  transform: translateY(0);
}

.overlay-handle {
  width: 38px; height: 4px;
  border-radius: 2px;
  background: rgba(90,130,175,0.28);
  margin: 12px auto 0;
  flex-shrink: 0;
}

.overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,0.38);
}

.overlay-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.overlay-close {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.36);
  border: 1px solid rgba(255,255,255,0.5);
  font-size: 14px;
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}
.overlay-close:active { background: rgba(255,255,255,0.6); }

.overlay-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 20px 24px;
}

/* ── Overlay sections ───────────────────────────────────────────────────────── */
.ov-section {
  background: rgba(255,255,255,0.28);
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 14px;
}

.ov-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.32);
  gap: 12px;
}
.ov-row:last-child { border-bottom: none; }
.ov-label { font-size: 14px; color: var(--text-2); }
.ov-value { font-size: 16px; font-weight: 500; color: var(--text); }

.ov-rule-box {
  background: rgba(255,255,255,0.20);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.ov-rule-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-3); margin-bottom: 6px; }
.ov-rule-body  { font-size: 13px; color: var(--text-2); line-height: 1.62; }

.ov-form-section { margin-bottom: 14px; }
.ov-section-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.10em; color: var(--text-3); margin-bottom: 10px; }

.ov-disclaimer { font-size: 12px; color: var(--text-3); line-height: 1.5; margin-bottom: 14px; }
.ov-footnote   { font-size: 12px; color: var(--text-3); line-height: 1.5; margin-top: 10px; }

/* Form elements inside overlays */
.form-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-3);
  margin: 10px 0 5px;
}

.form-input, .form-select {
  width: 100%;
  background: rgba(255,255,255,0.50);
  border: 1px solid rgba(255,255,255,0.65);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 2px;
}
.form-input:focus, .form-select:focus { outline: 2px solid var(--primary-light); }
.form-select { -webkit-appearance: none; appearance: none; }

.form-preview {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-dark);
  min-height: 36px;
  padding: 8px 0;
}

/* ── Milestone timeline (in overlay) ───────────────────────────────────────── */
.milestone-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  position: relative;
}
.milestone-item:last-child { border-bottom: none; }
.milestone-item.upcoming { opacity: 0.42; }
.milestone-item.current::before {
  content: '';
  position: absolute;
  left: -8px; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 55%;
  background: var(--primary);
  border-radius: 2px;
}
.milestone-icon { font-size: 20px; flex-shrink: 0; width: 28px; text-align: center; padding-top: 2px; }
.milestone-body { flex: 1; }
.milestone-days { font-size: 10px; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-3); margin-bottom: 2px; }
.milestone-title { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.milestone-tag { font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.milestone-expand { display: none; margin-top: 8px; font-size: 13px; color: var(--text-2); line-height: 1.6; }
.milestone-expand.open { display: block; }
.milestone-detail { white-space: pre-line; margin-top: 8px; }
.milestone-source { font-size: 11px; color: var(--text-3); font-style: italic; margin-top: 8px; }
.milestone-btn { font-size: 12px; font-weight: 500; color: var(--primary); border: none; background: none; cursor: pointer; padding: 2px 0; }

.safety-box {
  background: rgba(176,112,80,0.08);
  border: 1px solid rgba(176,112,80,0.18);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 12px;
}

.sources-box {
  background: rgba(255,255,255,0.20);
  border: 1px solid rgba(255,255,255,0.34);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.62;
  margin-bottom: 12px;
}

/* ── Calendar (in overlay) ──────────────────────────────────────────────────── */
.cal-stats-chips { display: flex; gap: 10px; margin-bottom: 14px; }
.cal-chip {
  flex: 1;
  background: rgba(255,255,255,0.30);
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 14px;
  padding: 10px 6px;
  text-align: center;
}
.cal-chip-val { display: block; font-size: 22px; font-weight: 300; color: var(--text); }
.cal-chip-lab { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-3); }

.cal-container { margin-bottom: 10px; }

/* Calendar grid */
.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.cal-title { font-size: 16px; font-weight: 500; color: var(--text); }
.cal-nav-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: 1px solid rgba(255,255,255,0.5);
  font-size: 18px; color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.15s;
}
.cal-nav-btn:hover { background: rgba(255,255,255,0.55); }

.cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; }
.cal-day-name {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--text-3); text-align: center; padding: 4px 0 8px;
}
.cal-empty { aspect-ratio: 1; }

.cal-day {
  aspect-ratio: 1; border-radius: 50%; display: flex;
  flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer; position: relative;
  transition: transform 0.1s;
  border: none; background: transparent; padding: 0; min-height: 34px;
  -webkit-tap-highlight-color: transparent;
}
.cal-day:active:not(:disabled) { transform: scale(0.88); }
.cal-day-num { font-size: 13px; font-weight: 400; color: var(--text-2); line-height: 1; }
.cal-today { box-shadow: 0 0 0 2px var(--primary-light); }
.cal-today .cal-day-num { font-weight: 700; color: var(--text); }
.cal-clear { background: rgba(90,144,192,0.20); }
.cal-clear .cal-day-num { color: var(--primary-dark); }
.cal-clear::after { content:'◯'; position:absolute; bottom:1px; font-size:7px; color:var(--clear-c); }
.cal-drink { background: rgba(176,112,80,0.18); }
.cal-drink .cal-day-num { color: var(--drink-c); }
.cal-drink::after { content:'◆'; position:absolute; bottom:1px; font-size:6px; color:var(--drink-c); }
.cal-unlogged .cal-day-num { color: var(--text-3); }
.cal-future .cal-day-num { color: var(--text-3); opacity: 0.32; }
.cal-reset-dot {
  position: absolute; top: 2px; right: 2px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--drink-c); opacity: 0.65;
}

/* Water indicator on calendar day */
.cal-water-dot {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(60,150,220,0.65);
}

.cal-legend { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.cal-legend-item { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text-3); }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.leg-clear { background: rgba(90,144,192,0.4); }
.leg-drink { background: rgba(176,112,80,0.4); }
.leg-today { background: transparent; border: 2px solid var(--primary-light); }
.leg-water { background: rgba(60,150,220,0.5); }

/* Day-edit modal */
.day-modal-card { }
.day-modal-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.day-opt-btn {
  padding: 14px 10px; border-radius: 13px;
  border: 1px solid rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.30);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  cursor: pointer; font-size: 13px; font-weight: 500; color: var(--text-2);
  transition: all 0.15s;
}
.day-opt-btn:active { transform: scale(0.94); }
.day-opt-btn.active { background: var(--primary); color: white; border-color: transparent; }
.day-opt-icon { font-size: 18px; }
.day-opt-remove { grid-column: 1/-1; }
.modal-close-btn { width:100%; padding:14px; border-radius:14px; font-size:15px; font-weight:500; background:var(--primary); color:white; cursor:pointer; border:none; margin-top:8px; }

/* Hydration section inside day modal */
.day-hydration-section {
  background: rgba(60,150,220,0.06);
  border: 1px solid rgba(60,150,220,0.15);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 4px;
}

.day-hydration-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.day-hydration-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-3);
}

.day-hydration-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-dark);
}

.day-hydration-input {
  margin-bottom: 10px !important;
  font-size: 15px !important;
  padding: 10px 12px !important;
}

.day-hydration-quick {
  display: flex;
  gap: 6px;
}

.day-quick-btn {
  flex: 1;
  padding: 8px 4px;
  border-radius: 10px;
  border: 1px solid rgba(60,150,220,0.25);
  background: rgba(60,150,220,0.10);
  font-size: 12px;
  font-weight: 500;
  color: var(--primary-dark);
  cursor: pointer;
  transition: background 0.15s;
  text-align: center;
}
.day-quick-btn:active { background: rgba(60,150,220,0.22); }
.day-quick-clear {
  background: rgba(255,255,255,0.28);
  border-color: rgba(255,255,255,0.45);
  color: var(--text-3);
}

/* ── Controls overlay ───────────────────────────────────────────────────────── */
.ctrl-section { margin-bottom: 18px; }
.ctrl-section-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.10em; color: var(--text-3); margin-bottom: 10px; padding-left: 2px; }
.ctrl-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  background: rgba(255,255,255,0.28); border: 1px solid rgba(255,255,255,0.45);
  border-radius: 14px; gap: 12px; margin-bottom: 8px;
}
.ctrl-label { font-size: 15px; color: var(--text); }
.ctrl-sub   { font-size: 12px; color: var(--text-3); margin-top: 1px; }
.ctrl-btn   { width: 100%; padding: 14px; border-radius: 14px; font-size: 15px; font-weight: 500; margin-bottom: 8px; }

.ctrl-toggle {
  width: 46px; height: 27px; border-radius: 14px;
  background: rgba(195,210,225,0.6); border: 1px solid rgba(255,255,255,0.5);
  position: relative; cursor: pointer; flex-shrink: 0;
  appearance: none; -webkit-appearance: none;
  transition: background 0.24s ease;
}
.ctrl-toggle:checked { background: var(--primary); }
.ctrl-toggle::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 21px; height: 21px; border-radius: 50%;
  background: white; box-shadow: 0 1px 4px rgba(0,0,0,0.18);
  transition: left 0.24s ease;
}
.ctrl-toggle:checked::after { left: calc(100% - 23px); }

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.btn-primary {
  display: block; width: 100%;
  padding: 15px; border-radius: 14px;
  font-size: 16px; font-weight: 600;
  background: var(--primary); color: white;
  box-shadow: 0 5px 22px rgba(70,130,185,0.30);
  border: none; cursor: pointer; text-align: center;
  transition: opacity 0.18s;
}
.btn-primary:active { opacity: 0.75; }

.btn-secondary {
  background: rgba(255,255,255,0.38);
  border: 1px solid rgba(255,255,255,0.55);
  color: var(--text);
}
.btn-secondary:active { opacity: 0.7; }

.btn-ghost { background: transparent; color: var(--text-3); font-size: 14px; }
.btn-ghost:active { opacity: 0.7; }

.btn-danger {
  background: rgba(176,112,80,0.12);
  border: 1px solid rgba(176,112,80,0.25);
  color: var(--drink-c);
}
.btn-danger:active { opacity: 0.7; }

/* ── Modals ─────────────────────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 250;
  background: rgba(18,38,68,0.38);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.28s ease;
}
.modal-backdrop.visible {
  opacity: 1; pointer-events: auto;
}
.modal-card {
  width: 100%; max-width: 520px;
  background: rgba(210,235,255,0.92);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  border-top: 1px solid rgba(255,255,255,0.65);
  padding: 24px 22px calc(28px + env(safe-area-inset-bottom,0px));
  transform: translateY(20px);
  transition: transform 0.35s cubic-bezier(0.34,1.2,0.64,1);
}
.modal-backdrop.visible .modal-card { transform: translateY(0); }

.modal-handle { width:36px; height:4px; border-radius:2px; background:rgba(90,130,175,0.28); margin:0 auto 18px; }
.modal-headline { font-size: 22px; font-weight: 300; color: var(--text); text-align: center; margin-bottom: 8px; }
.modal-subhead  { font-size: 15px; color: var(--text-2); text-align: center; margin-bottom: 20px; line-height: 1.5; }
.modal-btn      { width:100%; padding:14px; border-radius:13px; font-size:15px; font-weight:500; margin-bottom:9px; display:block; text-align:center; }
.modal-select   { width:100%; background:rgba(255,255,255,0.50); border:1px solid rgba(255,255,255,0.65); border-radius:13px; padding:13px 14px; font-size:16px; color:var(--text); margin-bottom:14px; -webkit-appearance:none; appearance:none; }

/* Manual modal */
.manual-list { max-height:42vh; overflow-y:auto; -webkit-overflow-scrolling:touch; margin-bottom:14px; }
.manual-day-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,0.3); gap: 10px;
}
.manual-day-item:last-child { border-bottom: none; }
.manual-day-label { font-size: 13px; color: var(--text-2); flex: 1; }
.manual-day-toggle { display: flex; gap: 4px; }
.manual-toggle-btn {
  padding: 5px 9px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.25);
  font-size: 11px; color: var(--text-3); cursor: pointer;
}
.manual-toggle-btn.active[data-status="clear"]   { background:rgba(90,155,200,0.28); color:var(--primary-dark); }
.manual-toggle-btn.active[data-status="drink"]   { background:rgba(176,112,80,0.22); color:var(--drink-c); }
.manual-toggle-btn.active[data-status="unknown"] { background:rgba(255,255,255,0.4); color:var(--text-2); }

/* Calendar dynamic day-edit overlay */
.modal-overlay {
  position: fixed; inset: 0; z-index: 250;
  background: rgba(18,38,68,0.38);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.28s ease;
}
.modal-overlay.visible { opacity: 1; pointer-events: auto; }
.modal-overlay.visible .modal-card { transform: translateY(0); }
.modal-date { font-size: 13px; font-weight: 600; color: var(--text-2); text-align: center; margin-bottom: 14px; }

/* Confirm modal */
.confirm-title { font-size:19px; font-weight:500; text-align:center; margin-bottom:8px; }
.confirm-body  { font-size:14px; color:var(--text-2); text-align:center; line-height:1.5; margin-bottom:18px; }

/* ── Toasts ─────────────────────────────────────────────────────────────────── */
#reset-toast {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom,0px));
  left: 14px; right: 14px;
  background: rgba(38,65,110,0.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: 16px; padding: 14px 16px;
  color: white; z-index: 500;
  transform: translateY(24px); opacity: 0;
  transition: all 0.38s cubic-bezier(0.34,1.2,0.64,1);
  pointer-events: none;
}
#reset-toast.visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
.toast-close  { position:absolute; top:11px; right:13px; font-size:17px; color:rgba(255,255,255,0.45); background:none; border:none; cursor:pointer; padding:4px; }
.toast-title  { font-size:14px; font-weight:600; margin-bottom:3px; }
.toast-body   { font-size:12px; opacity:0.80; line-height:1.4; }

#toast {
  position: fixed;
  bottom: calc(22px + env(safe-area-inset-bottom,0px));
  left: 50%; transform: translateX(-50%) translateY(10px);
  background: rgba(28,50,85,0.90);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  color: white; padding: 10px 20px;
  border-radius: 100px; font-size: 14px; font-weight: 500;
  z-index: 501; opacity: 0;
  transition: all 0.28s ease;
  pointer-events: none; white-space: nowrap;
}
#toast.visible { opacity:1; transform:translateX(-50%) translateY(0); }

/* ── Onboarding Overlay ─────────────────────────────────────────────────────── */
#onboarding-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: linear-gradient(165deg, var(--sky-top) 0%, var(--sky-mid) 45%, var(--sky-bottom) 100%);
  transition: opacity 0.38s ease;
}

#onboarding-overlay.dismissing { opacity: 0; pointer-events: none; }
#onboarding-overlay.dismissed  { display: none; }

.ob-sheet {
  width: 100%; max-width: 480px;
  background: rgba(210,238,255,0.88);
  backdrop-filter: blur(28px) saturate(130%);
  -webkit-backdrop-filter: blur(28px) saturate(130%);
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  border-top: 1px solid rgba(255,255,255,0.65);
  border-left: 1px solid rgba(255,255,255,0.48);
  border-right: 1px solid rgba(255,255,255,0.48);
  padding: 28px 26px calc(40px + env(safe-area-inset-bottom,0px));
  overflow-y: auto;
  max-height: 92svh;
  max-height: 92dvh;
}

.ob-dots { display:flex; justify-content:center; gap:6px; margin-bottom:24px; }
.ob-dot { width:6px; height:6px; border-radius:50%; background:rgba(90,140,190,0.25); transition:all 0.3s ease; }
.ob-dot.active { background:var(--primary); width:20px; border-radius:3px; }

.ob-step { display: none; }
.ob-step.active { display: block; }

.ob-logo { font-size:13px; font-weight:700; letter-spacing:0.22em; text-transform:uppercase; color:var(--primary-dark); opacity:0.8; margin-bottom:14px; }
.ob-headline { font-size:28px; font-weight:300; color:var(--text); letter-spacing:-0.02em; line-height:1.22; margin-bottom:12px; }
.ob-body { font-size:15px; color:var(--text-2); line-height:1.65; margin-bottom:28px; }

.ob-coin-preview {
  width: 100px; height: 100px; border-radius: 50%;
  background: radial-gradient(circle at 30% 22%, rgba(255,255,255,0.96), rgba(210,232,250,0.5) 50%, rgba(132,168,196,0.3));
  border: 1.5px solid rgba(255,255,255,0.82);
  box-shadow: 0 12px 40px rgba(70,120,175,0.28);
  display: flex; align-items: center; justify-content: center;
  font-size: 42px; font-weight: 200; color: rgba(60,100,145,0.28);
  margin: 0 auto 24px;
}

.ob-label {
  display: block;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.09em; color: var(--text-3);
  margin: 10px 0 5px;
}
.ob-input, .ob-select {
  width: 100%; background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.65);
  border-radius: 14px; padding: 14px 16px;
  font-size: 16px; color: var(--text); margin-bottom: 8px;
}
.ob-input:focus, .ob-select:focus { outline: 2px solid var(--primary-light); }
.ob-select { -webkit-appearance: none; appearance: none; }

.ob-preview { font-size:14px; font-weight:600; color:var(--primary-dark); text-align:center; padding:8px 0 18px; min-height:40px; }
.ob-btn { width:100%; padding:16px; border-radius:16px; font-size:17px; font-weight:600; cursor:pointer; border:none; margin-bottom:10px; transition:opacity 0.18s; }
.ob-btn:active { opacity:0.72; }
.ob-btn-primary { background:var(--primary); color:white; box-shadow:0 6px 24px rgba(70,120,175,0.30); }
.ob-btn-ghost { background:transparent; color:var(--text-3); font-size:14px; font-weight:400; }

/* ── Accessibility ───────────────────────────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.hidden { display: none !important; }

/* ── Reduced motion ─────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .cloud, .sky-shimmer,
  #coin[data-state="idle"] .coin-inner,
  #coin .coin-glow,
  .water-inner,
  .hydration-bar-fill::before { animation: none !important; }
  * { transition-duration: 0.01ms !important; }
}
.reduced-motion .cloud,
.reduced-motion .sky-shimmer,
.reduced-motion #coin[data-state="idle"] .coin-inner,
.reduced-motion #coin .coin-glow,
.reduced-motion .water-inner,
.reduced-motion .hydration-bar-fill::before { animation: none !important; }

/* ── Two-button action row ───────────────────────────────────────────────────── */
#action-row {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  justify-content: center;
}

/* ── Water Button ────────────────────────────────────────────────────────────── */
#water-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  pointer-events: auto;
}

#water-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 25%,
    rgba(255,255,255,0.97),
    rgba(200,232,255,0.70) 45%,
    rgba(110,175,225,0.45) 100%
  );
  border: 1px solid rgba(255,255,255,0.80);
  box-shadow:
    inset 0  1px  8px rgba(255,255,255,0.92),
    inset 0 -8px 20px rgba(80,145,200,0.14),
    0 12px 36px rgba(62,120,185,0.20);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}

/* Water inner — animated like coin-inner */
.water-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  animation: waterFloat 5.8s ease-in-out infinite;
  transition: transform 0.10s ease;
}

.water-inner svg {
  width: 44px;
  height: 44px;
  pointer-events: none;
}

/* Press state overrides float — mirrors coin-pressed pattern */
#water-btn.water-pressed .water-inner {
  transform: scale(0.93) !important;
  transition: transform 0.10s ease !important;
  animation: none !important;
}

/* Tap pulse — same timing/curve as coinTapPulse */
#water-btn.water-tap-pulse .water-inner {
  animation: waterTapPulse 0.42s ease-out forwards !important;
}

@keyframes waterFloat {
  0%,100% { transform: translateY(0); }
  38%      { transform: translateY(-5px); }
  70%      { transform: translateY(-2px); }
}

@keyframes waterTapPulse {
  0%   { transform: scale(1); }
  28%  { transform: scale(0.90); }
  100% { transform: scale(1); }
}

#water-label {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-align: center;
  letter-spacing: 0.01em;
  min-height: 18px;
}

#water-progress {
  margin-top: 2px;
  font-size: 11px;
  color: var(--text-3);
  text-align: center;
  min-height: 14px;
}

/* ── Hydration Card ──────────────────────────────────────────────────────────── */
.hydration-main-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 12px;
}

.hydration-amount {
  font-size: 28px;
  font-weight: 200;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
}

.hydration-target-label {
  font-size: 14px;
  color: var(--text-3);
}

/* Hydration bar — frosted glass water-fill */
.hydration-bar-wrap {
  position: relative;
  margin-bottom: 10px;
}

.hydration-bar-track {
  height: 22px;
  background: rgba(255,255,255,0.22);
  border-radius: 11px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255,255,255,0.52);
  box-shadow:
    inset 0 2px 8px rgba(60,100,150,0.10),
    inset 0 0 16px rgba(255,255,255,0.14);
}

.hydration-bar-fill {
  height: 100%;
  max-width: 100%;
  background: linear-gradient(
    90deg,
    rgba(148,210,248,0.85) 0%,
    rgba(90,170,228,0.90) 55%,
    rgba(60,145,215,0.95) 100%
  );
  border-radius: 11px;
  transition: width 0.65s cubic-bezier(0.34, 1.15, 0.64, 1);
  position: relative;
  overflow: hidden;
}

/* Shimmer sweep */
.hydration-bar-fill::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: -50%;
  width: 50%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.24), transparent);
  animation: barShimmer 4s ease-in-out infinite;
  border-radius: inherit;
  pointer-events: none;
}

@keyframes barShimmer {
  0%      { left: -50%; }
  55%,100% { left: 120%; }
}

/* Glass shine on fill */
.hydration-bar-fill::after {
  content: '';
  position: absolute;
  top: 1px; left: 0; right: 0; height: 45%;
  background: linear-gradient(180deg, rgba(255,255,255,0.44) 0%, transparent 100%);
  border-radius: 11px 11px 0 0;
  pointer-events: none;
}

/* Stretch marker — positioned outside the track, relative to wrap */
.hydration-stretch-marker {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  background: rgba(90,144,192,0.60);
  border-radius: 1px;
  pointer-events: none;
  box-shadow: 0 0 4px rgba(90,144,192,0.30);
}

.hydration-status-row {
  font-size: 12px;
  color: var(--primary-dark);
  font-weight: 500;
  min-height: 16px;
}

/* Total hydration bar — blended blue-purple premium fill */
.hyd-bar-total {
  background: linear-gradient(
    90deg,
    rgba(124,119,216,0.88) 0%,
    rgba(139,123,216,0.92) 50%,
    rgba(110,150,225,0.95) 100%
  ) !important;
}

/* ── Water + coffee category bars ────────────────────────────────────────────── */
.hyd-cat-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}
.hyd-cat-row { display: flex; flex-direction: column; gap: 5px; }
.hyd-cat-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.hyd-cat-name {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.hyd-cat-name-water  { color: var(--hyd-water); }
.hyd-cat-name-coffee { color: var(--hyd-coffee); }
.hyd-cat-stat {
  font-size: 11px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.hyd-cat-track {
  height: 8px;
  background: rgba(255,255,255,0.30);
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.45);
}
.hyd-cat-fill {
  height: 100%;
  border-radius: 5px;
  min-width: 0;
  transition: width 0.6s cubic-bezier(0.34,1.15,0.64,1);
}
.hyd-cat-fill-water {
  background: linear-gradient(90deg, var(--hyd-water-2), var(--hyd-water));
}
.hyd-cat-fill-coffee {
  background: linear-gradient(90deg, var(--hyd-coffee-2), var(--hyd-coffee));
}

/* ── Settings number inputs ──────────────────────────────────────────────────── */
.ctrl-number-input {
  width: 76px;
  background: rgba(255,255,255,0.50);
  border: 1px solid rgba(255,255,255,0.65);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 15px;
  color: var(--text);
  text-align: right;
  flex-shrink: 0;
}
.ctrl-number-input:focus { outline: 2px solid var(--primary-light); }

/* milestone-learn-btn */
.milestone-learn-btn {
  font-size: 12px;
  font-weight: 500;
  color: var(--primary);
  border: none;
  background: none;
  cursor: pointer;
  padding: 2px 0;
}

/* ── DrinkMenu bottom sheet ──────────────────────────────────────────────────── */
.drink-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 260;
  background: rgba(18,38,68,0.38);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.drink-menu-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

.drink-menu-sheet {
  width: 100%;
  max-width: 520px;
  background: rgba(210,235,255,0.94);
  backdrop-filter: blur(32px) saturate(145%);
  -webkit-backdrop-filter: blur(32px) saturate(145%);
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  border-top: 1px solid rgba(255,255,255,0.68);
  border-left: 1px solid rgba(255,255,255,0.48);
  border-right: 1px solid rgba(255,255,255,0.48);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(0.34,1.15,0.64,1);
}
.drink-menu-backdrop.visible .drink-menu-sheet {
  transform: translateY(0);
}

.drink-menu-handle {
  width: 38px; height: 4px;
  border-radius: 2px;
  background: rgba(90,130,175,0.28);
  margin: 12px auto 0;
}

.drink-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.38);
}
.drink-menu-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.drink-menu-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.drink-menu-edit-btn {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  background: rgba(255,255,255,0.32);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 10px;
  padding: 5px 12px;
  cursor: pointer;
  transition: background 0.15s;
}
.drink-menu-edit-btn:active { background: rgba(255,255,255,0.55); }
.drink-menu-close-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.36);
  border: 1px solid rgba(255,255,255,0.5);
  font-size: 14px;
  color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}
.drink-menu-close-btn:active { background: rgba(255,255,255,0.6); }

.drink-menu-body {
  padding: 16px 16px 20px;
}

/* Preset cards grid */
.drink-presets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.drink-preset-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 16px 10px 14px;
  background: rgba(255,255,255,0.42);
  border: 1px solid rgba(255,255,255,0.65);
  border-radius: 18px;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 4px 14px rgba(70,120,175,0.09);
}
.drink-preset-card:active {
  transform: scale(0.93);
  background: rgba(255,255,255,0.62);
}

.drink-preset-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
}
.drink-preset-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  line-height: 1.2;
}
.drink-preset-ml {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 500;
}

/* Custom amount row */
.drink-custom-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.32);
  border: 1px solid rgba(255,255,255,0.52);
  border-radius: 14px;
  padding: 10px 12px;
}
.drink-custom-icon {
  flex-shrink: 0;
  display: flex; align-items: center;
}
.drink-custom-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  flex-shrink: 0;
}
.drink-custom-input {
  flex: 1;
  min-width: 0;
  background: rgba(255,255,255,0.58);
  border: 1px solid rgba(255,255,255,0.70);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 15px;
  color: var(--text);
  text-align: right;
}
.drink-custom-input:focus { outline: 2px solid var(--primary-light); }
.drink-custom-input.drink-input-error {
  border-color: rgba(176,80,80,0.55);
  animation: inputShake 0.35s ease;
}
.drink-custom-unit {
  font-size: 13px;
  color: var(--text-3);
  flex-shrink: 0;
}
.drink-custom-add {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.15s;
}
.drink-custom-add:active { opacity: 0.72; }

@keyframes inputShake {
  0%,100% { transform: translateX(0); }
  20%     { transform: translateX(-5px); }
  60%     { transform: translateX(5px); }
}

/* Edit presets view */
.drink-edit-hint {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 12px;
  line-height: 1.5;
}

.drink-edit-list { margin-bottom: 14px; }

.drink-edit-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.35);
}
.drink-edit-row:last-child { border-bottom: none; }

.drink-edit-icon-wrap { position: relative; flex-shrink: 0; }

.drink-edit-icon-preview {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.42);
  border: 1px solid rgba(255,255,255,0.60);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}
.drink-edit-icon-preview:active { background: rgba(255,255,255,0.68); }

.drink-edit-icon-picker {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 10;
  display: flex;
  gap: 4px;
  background: rgba(220,238,255,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.65);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 8px 28px rgba(60,100,160,0.18);
}

.drink-icon-chip {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: rgba(255,255,255,0.38);
  border: 1px solid rgba(255,255,255,0.55);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.12s;
  flex-shrink: 0;
}
.drink-icon-chip:active  { background: rgba(255,255,255,0.65); }
.drink-icon-chip.active  { background: var(--primary); border-color: var(--primary); }

.drink-edit-name {
  flex: 2;
  min-width: 0;
  background: rgba(255,255,255,0.50);
  border: 1px solid rgba(255,255,255,0.65);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 14px;
  color: var(--text);
}
.drink-edit-name:focus { outline: 2px solid var(--primary-light); }

.drink-edit-ml {
  flex: 1;
  min-width: 56px;
  background: rgba(255,255,255,0.50);
  border: 1px solid rgba(255,255,255,0.65);
  border-radius: 10px;
  padding: 8px 8px;
  font-size: 14px;
  color: var(--text);
  text-align: right;
}
.drink-edit-ml:focus { outline: 2px solid var(--primary-light); }

.drink-edit-done-btn {
  margin-top: 4px;
}

/* ── Hydration detail modal ───────────────────────────────────────────────────── */
.hyd-detail-card {
  max-height: 88svh;
  max-height: 88dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.hyd-detail-hero {
  display: flex;
  align-items: baseline;
  gap: 7px;
  justify-content: center;
  margin: 8px 0 14px;
}
.hyd-detail-total {
  font-size: 38px;
  font-weight: 200;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1;
}
.hyd-detail-target-lbl {
  font-size: 16px;
  color: var(--text-3);
  font-weight: 400;
}

.hyd-detail-bar-wrap {
  position: relative;
  margin-bottom: 14px;
}
.hyd-detail-bar-track {
  height: 20px;
  background: rgba(255,255,255,0.30);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.52);
  box-shadow: inset 0 2px 6px rgba(60,100,150,0.08);
}
.hyd-detail-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(148,210,248,0.85), rgba(60,145,215,0.95));
  border-radius: 10px;
  transition: width 0.55s cubic-bezier(0.34,1.15,0.64,1);
}
.hyd-detail-stretch-marker {
  position: absolute;
  top: -4px; bottom: -4px;
  width: 2px;
  background: rgba(90,144,192,0.60);
  border-radius: 1px;
  pointer-events: none;
}

.hyd-detail-progress-rows {
  background: rgba(255,255,255,0.28);
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
}
.hyd-detail-progress-row {
  display: flex;
  align-items: center;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.32);
  gap: 8px;
}
.hyd-detail-progress-row:last-child { border-bottom: none; }
.hyd-detail-label {
  font-size: 14px;
  color: var(--text-2);
  flex: 1;
}
.hyd-detail-val {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}
.hyd-detail-status {
  font-size: 12px;
  color: var(--text-3);
  min-width: 40px;
  text-align: right;
}
.hyd-status-hit {
  color: var(--primary-dark);
  font-weight: 600;
}

.hyd-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--text-3);
  margin-bottom: 10px;
}

.hyd-breakdown-list { margin-bottom: 4px; }

.hyd-breakdown-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.30);
}
.hyd-breakdown-row:last-child { border-bottom: none; }

.hyd-breakdown-icon {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hyd-breakdown-info {
  flex: 1;
  min-width: 0;
}
.hyd-breakdown-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hyd-breakdown-bar-wrap {
  height: 5px;
  background: rgba(255,255,255,0.32);
  border-radius: 3px;
  overflow: hidden;
}
.hyd-breakdown-bar {
  height: 100%;
  background: linear-gradient(90deg, rgba(110,185,240,0.75), rgba(60,140,215,0.90));
  border-radius: 3px;
  transition: width 0.45s ease;
  min-width: 3px;
}
.hyd-breakdown-amounts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}
.hyd-breakdown-ml {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.hyd-breakdown-pct {
  font-size: 11px;
  color: var(--text-3);
}

.hyd-empty-state {
  font-size: 14px;
  color: var(--text-3);
  text-align: center;
  padding: 20px 0 14px;
  line-height: 1.6;
}

/* ── Day modal entry list ─────────────────────────────────────────────────────── */
.day-entry-list {
  margin-bottom: 8px;
}

.day-entry-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.28);
}
.day-entry-item:last-child { border-bottom: none; }

.day-entry-icon {
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.day-entry-info {
  flex: 1;
  min-width: 0;
}
.day-entry-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.day-entry-time {
  display: block;
  font-size: 11px;
  color: var(--text-3);
  margin-top: 1px;
}
.day-entry-ml-input {
  width: 68px;
  background: rgba(255,255,255,0.50);
  border: 1px solid rgba(255,255,255,0.65);
  border-radius: 9px;
  padding: 6px 7px;
  font-size: 13px;
  color: var(--text);
  text-align: right;
  flex-shrink: 0;
}
.day-entry-ml-input:focus { outline: 2px solid var(--primary-light); }
.day-entry-delete {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(176,80,80,0.10);
  border: 1px solid rgba(176,80,80,0.18);
  color: rgba(176,80,80,0.70);
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}
.day-entry-delete:active { background: rgba(176,80,80,0.22); }

.day-entry-empty {
  font-size: 13px;
  color: var(--text-3);
  padding: 10px 0 6px;
  text-align: center;
}

.day-add-entry-btn {
  width: 100%;
  padding: 9px;
  border-radius: 11px;
  border: 1px dashed rgba(90,140,190,0.40);
  background: rgba(90,140,190,0.06);
  font-size: 13px;
  font-weight: 500;
  color: var(--primary-dark);
  cursor: pointer;
  text-align: center;
  transition: background 0.15s;
  margin-bottom: 8px;
}
.day-add-entry-btn:active { background: rgba(90,140,190,0.14); }

.day-add-entry-form { margin-top: 6px; }

.day-add-row {
  display: flex;
  gap: 6px;
  align-items: center;
}

.day-add-type-select {
  flex: 2;
  min-width: 0;
  background: rgba(255,255,255,0.50);
  border: 1px solid rgba(255,255,255,0.65);
  border-radius: 10px;
  padding: 8px 9px;
  font-size: 13px;
  color: var(--text);
  -webkit-appearance: none;
  appearance: none;
}
.day-add-type-select:focus { outline: 2px solid var(--primary-light); }

.day-add-ml-input {
  flex: 1;
  min-width: 0;
  background: rgba(255,255,255,0.50);
  border: 1px solid rgba(255,255,255,0.65);
  border-radius: 10px;
  padding: 8px 7px;
  font-size: 13px;
  color: var(--text);
  text-align: right;
}
.day-add-ml-input:focus { outline: 2px solid var(--primary-light); }

.day-add-confirm {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.15s;
}
.day-add-confirm:active { opacity: 0.72; }

/* ── Drink preset category accents ───────────────────────────────────────────── */
.drink-preset-card.drink-cat-water  { border-bottom: 2px solid rgba(78,155,220,0.45); }
.drink-preset-card.drink-cat-coffee { border-bottom: 2px solid rgba(154,106,69,0.45); }

/* ── Manual-entry type chooser (Water / Coffee) ──────────────────────────────── */
.drink-type-question {
  font-size: 15px;
  color: var(--text-2);
  text-align: center;
  margin: 4px 0 16px;
}
.drink-type-question .js-type-ml { font-weight: 700; color: var(--text); }
.drink-type-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 8px;
}
.drink-type-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.30);
  border: 1px solid rgba(255,255,255,0.55);
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease;
}
.drink-type-choice:active { transform: scale(0.97); }
.drink-type-choice.drink-cat-water {
  background: rgba(78,155,220,0.10);
  border-color: rgba(78,155,220,0.32);
}
.drink-type-choice.drink-cat-coffee {
  background: rgba(154,106,69,0.10);
  border-color: rgba(154,106,69,0.32);
}
.drink-type-choice-icon { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; }
.drink-type-choice-label { font-size: 15px; font-weight: 600; color: var(--text); }
.drink-type-back {
  display: block;
  width: 100%;
  text-align: center;
  padding: 10px;
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-3);
  background: none;
  border: none;
  cursor: pointer;
}

/* ── Preset edit: name + category toggle ─────────────────────────────────────── */
.drink-edit-fields {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.drink-edit-cat-toggle {
  display: inline-flex;
  gap: 0;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.28);
  width: fit-content;
}
.drink-cat-btn {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 11px;
  color: var(--text-3);
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.drink-cat-btn.drink-cat-water.active  { background: rgba(78,155,220,0.85);  color: #fff; }
.drink-cat-btn.drink-cat-coffee.active { background: rgba(154,106,69,0.85);  color: #fff; }

/* ── Hydration detail: water/coffee category block ───────────────────────────── */
.hyd-cat-detail {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.hyd-cat-detail-row { display: flex; flex-direction: column; gap: 6px; }
.hyd-cat-detail-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.hyd-cat-detail-amt {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.hyd-cat-detail .hyd-cat-track { height: 10px; border-radius: 6px; }
.hyd-cat-detail .hyd-cat-fill  { border-radius: 6px; }

/* Entry icon category tint in detail / day list */
.day-entry-icon.hyd-cat-coffee { filter: none; }

/* ── Clear Bank ledger ───────────────────────────────────────────────────────── */
.ov-ledger {
  display: flex;
  flex-direction: column;
}
.ov-ledger-empty {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.55;
  padding: 4px 0;
}
.ov-ledger-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.30);
}
.ov-ledger-row:last-child { border-bottom: none; }
.ov-ledger-marker {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 5px;
}
.ov-ledger-strike .ov-ledger-marker { background: var(--drink-c); }
.ov-ledger-reset  .ov-ledger-marker { background: #8E6FD0; box-shadow: 0 0 0 3px rgba(142,111,208,0.18); }
.ov-ledger-body { flex: 1; min-width: 0; }
.ov-ledger-title { font-size: 14px; font-weight: 600; color: var(--text); }
.ov-ledger-detail { font-size: 12px; color: var(--text-3); margin-top: 1px; line-height: 1.45; }
.ov-ledger-date {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--text-3);
  text-align: right;
  white-space: nowrap;
  margin-top: 1px;
}
