:root {
  color-scheme: light dark;
  --accent: #0068d4;
  --accent-soft: rgba(0, 104, 212, 0.13);
  --action-bg: #0064cc;
  --action-bg-deep: #0058b0;
  --water: #0068d4;
  --urination: #8f5d00;
  --urination-soft: rgba(213, 160, 18, 0.15);
  --record-water-action: var(--water);
  --record-water-on: var(--on-water);
  --record-urination-action: #e7a93e;
  --record-urination-foreground: #b77c0d;
  --record-urination-on: #4d3400;
  --danger: #d92d20;
  --danger-action: #c2261a;
  --background: #f2f6fc;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-secondary: #f1f3f7;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-strong: rgba(255, 255, 255, 0.88);
  --glass-border: rgba(255, 255, 255, 0.74);
  --on-action: #ffffff;
  --on-water: #ffffff;
  --ambient-water: rgba(37, 146, 255, 0.14);
  --ambient-warm: rgba(255, 192, 76, 0.11);
  --fill: rgba(118, 118, 128, 0.12);
  --fill-strong: rgba(118, 118, 128, 0.2);
  --text: #17191d;
  --secondary: #656870;
  --tertiary: #8b8e96;
  --separator: rgba(60, 60, 67, 0.16);
  --shadow: 0 10px 32px rgba(25, 48, 78, 0.075), 0 1px 2px rgba(25, 48, 78, 0.035);
  --glass-shadow: 0 18px 48px rgba(31, 70, 112, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  --page-padding: clamp(16px, 4.5vw, 20px);
  --card-radius: 20px;
  --ease-apple-out: cubic-bezier(.2, .8, .25, 1);
  --ease-apple-spring: cubic-bezier(.22, .82, .25, 1);
  --motion-press: 100ms;
  --motion-fast: 160ms;
  --motion-standard: 280ms;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tabbar-height: calc(max(65px, 4.25rem) + var(--safe-bottom));
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif;
  font-synthesis: none;
  font-optical-sizing: auto;
  font-kerning: normal;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --accent: #52a8ff;
  --accent-soft: rgba(82, 168, 255, 0.16);
  --action-bg: #0b63bd;
  --action-bg-deep: #084f98;
  --water: #52a8ff;
  --urination: #e5b94c;
  --urination-soft: rgba(229, 185, 76, 0.17);
  --record-water-action: var(--water);
  --record-water-on: var(--on-water);
  --record-urination-action: #edad3f;
  --record-urination-foreground: #efbd52;
  --record-urination-on: #3e2900;
  --danger: #ff6961;
  --danger-action: #c4322a;
  --background: #090d14;
  --surface: #181c24;
  --surface-raised: #202630;
  --surface-secondary: #252b35;
  --glass: rgba(27, 32, 41, 0.72);
  --glass-strong: rgba(27, 32, 41, 0.9);
  --glass-border: rgba(255, 255, 255, 0.1);
  --on-action: #ffffff;
  --on-water: #07111d;
  --ambient-water: rgba(36, 132, 255, 0.16);
  --ambient-warm: rgba(229, 185, 76, 0.09);
  --fill: rgba(118, 118, 128, 0.24);
  --fill-strong: rgba(118, 118, 128, 0.34);
  --text: #f5f5f7;
  --secondary: #b1b1b6;
  --tertiary: #8e8e93;
  --separator: rgba(84, 84, 88, 0.62);
  --shadow: 0 12px 34px rgba(0, 0, 0, 0.22), 0 1px 0 rgba(255, 255, 255, 0.035) inset;
  --glass-shadow: 0 20px 52px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent: #52a8ff;
    --accent-soft: rgba(82, 168, 255, 0.16);
    --action-bg: #0b63bd;
    --action-bg-deep: #084f98;
    --water: #52a8ff;
    --urination: #e5b94c;
    --urination-soft: rgba(229, 185, 76, 0.17);
    --record-water-action: var(--water);
    --record-water-on: var(--on-water);
    --record-urination-action: #edad3f;
    --record-urination-foreground: #efbd52;
    --record-urination-on: #3e2900;
    --danger: #ff6961;
    --danger-action: #c4322a;
    --background: #090d14;
    --surface: #181c24;
    --surface-raised: #202630;
    --surface-secondary: #252b35;
    --glass: rgba(27, 32, 41, 0.72);
    --glass-strong: rgba(27, 32, 41, 0.9);
    --glass-border: rgba(255, 255, 255, 0.1);
    --on-action: #ffffff;
    --on-water: #07111d;
    --ambient-water: rgba(36, 132, 255, 0.16);
    --ambient-warm: rgba(229, 185, 76, 0.09);
    --fill: rgba(118, 118, 128, 0.24);
    --fill-strong: rgba(118, 118, 128, 0.34);
    --text: #f5f5f7;
    --secondary: #b1b1b6;
    --tertiary: #8e8e93;
    --separator: rgba(84, 84, 88, 0.62);
    --shadow: 0 12px 34px rgba(0, 0, 0, 0.22), 0 1px 0 rgba(255, 255, 255, 0.035) inset;
    --glass-shadow: 0 20px 52px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; background: var(--background); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; touch-action: pan-x pan-y; }
body { position: relative; isolation: isolate; margin: 0; min-width: 280px; min-height: 100vh; min-height: 100dvh; color: var(--text); background: var(--background); font: -apple-system-body; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif; line-height: 1.45; -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; touch-action: pan-x pan-y; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
body::before { content: ""; position: fixed; z-index: 0; inset: -18vmax; contain: strict; background: radial-gradient(circle at 15% 12%, var(--ambient-water), transparent 31%), radial-gradient(circle at 88% 38%, var(--ambient-warm), transparent 29%), radial-gradient(circle at 28% 88%, color-mix(in srgb, var(--ambient-water) 68%, transparent), transparent 33%); transform: translate3d(-1.5%, -1%, 0) scale(1.02); opacity: .95; pointer-events: none; animation: ambient-drift 18s ease-in-out infinite alternate; }
body.sheet-open { overflow: hidden; }
.app-main, .tab-bar { transition: opacity var(--motion-standard) var(--ease-apple-out); }
body.sheet-open .app-main, body.sheet-open .tab-bar { opacity: .985; pointer-events: none; }
body.sheet-open .progress-ring-card::before,
body.sheet-open .progress-label::before { animation-play-state: paused; }
button, input, select, textarea { font: inherit; }
input, textarea, [contenteditable="true"], [data-allow-selection] { user-select: text; -webkit-user-select: text; -webkit-touch-callout: default; }
button, label, select { touch-action: manipulation; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: 0.45; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.app-main { position: relative; z-index: 1; width: 100%; max-width: 760px; min-height: 100vh; min-height: 100dvh; margin: 0 auto; padding: calc(var(--safe-top) + 10px) var(--page-padding) calc(var(--tabbar-height) + 29px); }
.page { animation: page-in 240ms var(--ease-apple-out) both; backface-visibility: hidden; }
.page-header { padding: 14px 2px 20px; }
.page-header h1 { margin: 0; font-size: clamp(2.15rem, 9vw, 2.8rem); line-height: 1.05; letter-spacing: -0.045em; text-wrap: balance; }
.page-subtitle { margin: 9px 1px 0; color: var(--secondary); font-size: 1rem; }
.section-title { margin: 25px 2px 12px; font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.025em; text-wrap: balance; }
.section-title.first { margin-top: 10px; }
.content-section { margin-top: 3px; }

/* 记录首页 */
#page-record { min-height: calc(100dvh - var(--safe-top) - var(--tabbar-height) - 39px); display: flex; flex-direction: column; }
.record-home { flex: 0 0 auto; display: grid; place-items: center; padding: clamp(2px, 1.4vh, 16px) 0 4px; }
.progress-wrap { width: min(84vw, 330px); }
.progress-ring-card { position: relative; isolation: isolate; width: 100%; aspect-ratio: 1; padding: 0; appearance: none; border: 1px solid color-mix(in srgb, var(--glass-border) 72%, transparent); border-radius: 50%; background: linear-gradient(150deg, color-mix(in srgb, var(--glass) 90%, var(--accent-soft)), color-mix(in srgb, var(--glass) 94%, transparent)); box-shadow: var(--glass-shadow); color: inherit; font: inherit; text-align: inherit; touch-action: none; cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%); transition: transform var(--motion-press) var(--ease-apple-out); }
.progress-ring-card * { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.progress-ring-card:active { transform: scale(.992); }
.progress-ring-card:focus-visible { outline: 4px solid color-mix(in srgb, var(--water) 36%, transparent); outline-offset: 4px; }
.progress-ring-card::before { content: ""; position: absolute; inset: 7%; z-index: -1; border-radius: 50%; background: conic-gradient(from 210deg, transparent 0 32%, color-mix(in srgb, var(--water) 20%, transparent) 44%, transparent 57% 100%); filter: blur(16px); opacity: .72; animation: ring-aurora 7s ease-in-out infinite; }
.progress-ring-card::after { content: ""; position: absolute; inset: 15%; z-index: 0; border-radius: 50%; background: radial-gradient(circle at 38% 28%, color-mix(in srgb, var(--surface) 94%, var(--accent-soft)) 0, color-mix(in srgb, var(--glass-strong) 94%, var(--surface)) 70%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--water) 10%, var(--glass-border)), 0 10px 32px color-mix(in srgb, var(--water) 8%, transparent); transform-origin: center; transition: transform var(--motion-press) var(--ease-apple-out); }
.progress-ring-card:active::after { transform: scale(.985); }
.progress-ring-card.is-holding-easter-egg::after { transform: scale(.99); }
.progress-ring { position: relative; z-index: 1; display: block; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.progress-ring circle { fill: none; }
.progress-track { stroke: color-mix(in srgb, var(--fill-strong) 86%, var(--water)); stroke-width: 23; }
.progress-value { stroke: var(--water); stroke-width: 23; stroke-linecap: round; filter: none; transition: stroke-dashoffset 560ms cubic-bezier(.2, .8, .25, 1); will-change: stroke-dashoffset; }
.progress-ticks { stroke: color-mix(in srgb, var(--water) 58%, transparent); stroke-width: 4; stroke-linecap: round; opacity: .72; }
.progress-label { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; text-align: center; pointer-events: none; }
.progress-label::before { content: "💧"; margin-bottom: 7px; font-size: clamp(1.65rem, 7vw, 2.25rem); line-height: 1; filter: drop-shadow(0 5px 8px rgba(8, 123, 234, .2)); animation: mascot-float 3.2s ease-in-out infinite; }
.progress-label strong { font-size: clamp(2.35rem, 12vw, 3.6rem); line-height: 1; letter-spacing: -0.055em; }
.progress-label > span:not([aria-hidden="true"]) { margin-top: 11px; color: var(--secondary); font-size: clamp(0.82rem, 3.8vw, 1rem); font-variant-numeric: tabular-nums; }
.progress-number-stack, .progress-amount-stack { display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.progress-number-stack > span, .progress-amount-stack > span { grid-area: 1 / 1; margin: 0; color: inherit; font: inherit; line-height: inherit; letter-spacing: inherit; }
.progress-number-old { animation: progress-number-old-out 150ms var(--ease-apple-out) both; }
.progress-number-new { animation: progress-number-new-in 150ms var(--ease-apple-out) both; }
.progress-label small { margin-top: 5px; color: var(--tertiary); }
.progress-cat-mascot { position: absolute; right: 3%; bottom: 5%; z-index: 3; width: clamp(58px, 22%, 78px); height: auto; pointer-events: none; user-select: none; -webkit-user-drag: none; transform-origin: 50% 92%; filter: drop-shadow(0 7px 10px rgba(44, 60, 78, .16)); animation: cat-breathe 4.4s ease-in-out infinite; }
.progress-cat-mascot.is-sleepy { right: 1%; bottom: 4%; width: clamp(70px, 27%, 94px); }
.progress-cat-mascot.is-window { right: 2%; bottom: 4%; width: clamp(64px, 24%, 84px); }
.progress-cat-mascot.is-lounge { right: 1%; bottom: 4%; width: clamp(72px, 27%, 96px); }
.progress-cat-mascot.is-surprised { right: 2%; bottom: 4%; width: clamp(64px, 24%, 86px); }
.progress-cat-mascot.is-random { right: 1%; bottom: 4%; width: clamp(68px, 26%, 92px); max-height: 34%; object-fit: contain; object-position: 50% 100%; }
.progress-ring-card.is-complete { animation: none; }
.progress-ring-card.is-complete::after { animation: completion-pop .58s cubic-bezier(.2,.85,.3,1) both; }
.progress-ring-card.is-complete::before { opacity: .82; animation: completion-shine .76s ease-out both; }
.progress-ring-card.is-complete .progress-value { filter: none; }
.progress-ring-card.is-complete .progress-cat-mascot { animation: cat-celebrate .72s cubic-bezier(.2,.9,.25,1) both; }
.progress-ring-card.is-easter-egg { animation: none; }
.progress-ring-card.is-sticker-tap { animation: progress-sticker-tap 290ms cubic-bezier(.23,1,.32,1) both; }
.progress-ring-card.is-easter-egg::after { animation: completion-pop .58s cubic-bezier(.2,.85,.3,1) both; }
.progress-paw-burst { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.progress-paw-burst > * { position: absolute; left: 50%; top: 52%; display: grid; place-items: center; width: var(--effect-size, clamp(38px, 12vw, 52px)); height: var(--effect-size, clamp(38px, 12vw, 52px)); object-fit: contain; object-position: 50% 100%; opacity: 0; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-user-drag: none; will-change: transform, opacity; filter: drop-shadow(0 5px 7px rgba(42, 63, 89, .14)); animation: paw-burst var(--effect-duration, .76s) var(--ease-apple-out) var(--effect-delay, 0ms) both; }
.progress-paw-burst .effect-emoji { font-size: min(calc(var(--effect-size, 48px) * .82), 13vw); line-height: 1; }
.progress-paw-burst > :nth-child(1) { --paw-x: -116px; --paw-y: -92px; --paw-r: -12deg; }
.progress-paw-burst > :nth-child(2) { --paw-x: 104px; --paw-y: -78px; --paw-r: 10deg; }
.progress-paw-burst > :nth-child(3) { --paw-x: -124px; --paw-y: 30px; --paw-r: -8deg; }
.progress-paw-burst > :nth-child(4) { --paw-x: 116px; --paw-y: 38px; --paw-r: 9deg; }
.progress-paw-burst > :nth-child(5) { --paw-x: -66px; --paw-y: 104px; --paw-r: -6deg; }
.progress-paw-burst > :nth-child(6) { --paw-x: 70px; --paw-y: 102px; --paw-r: 7deg; }
.progress-ring-card.is-holding-easter-egg { transform: scale(.972); }
.progress-cat-mascot.is-easter-egg-swap { animation: cat-easter-egg .74s cubic-bezier(.2,.9,.25,1) both; }
.progress-hold-burst { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.progress-hold-burst > * { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: var(--effect-size, clamp(34px, 10.5vw, 46px)); height: var(--effect-size, clamp(34px, 10.5vw, 46px)); object-fit: contain; object-position: 50% 100%; opacity: 0; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-user-drag: none; will-change: transform, opacity; filter: drop-shadow(0 5px 7px rgba(42,63,89,.14)); animation: progress-hold-pop var(--hold-duration, .86s) var(--ease-apple-out) var(--hold-delay, 0ms) both; }
.progress-hold-burst .effect-emoji { font-size: min(calc(var(--effect-size, 44px) * .82), 12vw); line-height: 1; }
.goal-echo-celebration { position: fixed; z-index: 20; inset: 0; overflow: hidden; pointer-events: none; contain: strict; }
.goal-echo-cheer { position: absolute; left: var(--echo-x); top: var(--echo-y); display: grid; place-items: center; width: min(var(--echo-size), 14vw); height: min(var(--echo-size), 14vw); font-size: min(var(--echo-size), 13vw); line-height: 1; opacity: 0; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; will-change: transform, opacity; filter: drop-shadow(0 6px 9px rgba(35,50,72,.13)); animation: goal-echo-pop var(--echo-duration, 1.16s) var(--ease-apple-out) var(--echo-delay) both; }
.goal-echo-sticker { position: absolute; left: var(--echo-x); top: var(--echo-y); width: min(var(--echo-size), 16vw); height: min(var(--echo-size), 16vw); object-fit: contain; object-position: 50% 100%; opacity: 0; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-user-drag: none; will-change: transform, opacity; filter: drop-shadow(0 6px 9px rgba(35,50,72,.13)); animation: goal-echo-pop var(--echo-duration, 1.16s) var(--ease-apple-out) var(--echo-delay) both; }
.goal-echo-celebration.is-leaving { opacity: 0; transition: opacity .34s ease-out; }
.effect-physics-layer { position: fixed; inset: 0; z-index: 20; overflow: hidden; pointer-events: none; contain: layout paint; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.effect-physics-item { position: absolute; left: 0; top: 0; display: grid; place-items: center; object-fit: contain; object-position: 50% 100%; line-height: 1; opacity: 1; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-user-drag: none; will-change: transform; transform-origin: 50% 55%; backface-visibility: hidden; filter: none; }
.effect-physics-item.is-settled { will-change: auto; }
.effect-physics-item.is-retiring { will-change: opacity; transition: opacity 420ms cubic-bezier(.4,0,.2,1); }
.effect-physics-item.is-emoji { font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif; }
.effect-physics-item.is-reduced-motion { transition: opacity .34s ease-out; }
.effect-physics-item.is-fading { opacity: 0; }
.effect-pop-item { will-change: transform, opacity; }
.record-actions { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: auto; margin-bottom: clamp(16px, 4vh, 40px); padding-top: clamp(18px, 4vh, 42px); }
.record-action { --action-accent: var(--accent); --action-soft: var(--accent-soft); min-width: 0; min-height: 126px; position: relative; isolation: isolate; overflow: hidden; padding: 16px 12px; display: flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid color-mix(in srgb, var(--glass-border) 94%, var(--action-accent)); border-radius: 25px; background: color-mix(in srgb, var(--glass-strong) 97%, transparent); box-shadow: 0 12px 30px rgba(35, 58, 87, .075), inset 0 1px 0 color-mix(in srgb, var(--glass-border) 86%, transparent); backdrop-filter: blur(18px) saturate(118%); -webkit-backdrop-filter: blur(18px) saturate(118%); font-size: clamp(1.08rem, 4.8vw, 1.3rem); font-weight: 760; transition: transform var(--motion-press) var(--ease-apple-out), border-color var(--motion-fast) ease-out, background var(--motion-fast) ease-out, box-shadow var(--motion-fast) ease-out; animation: action-arrive .3s var(--ease-apple-out) backwards; backface-visibility: hidden; }
.record-action:nth-child(2) { animation-delay: 70ms; }
.record-action::before { content: ""; position: absolute; z-index: -1; width: 142px; height: 94px; left: -36px; top: 50%; border-radius: 50%; background: radial-gradient(ellipse, color-mix(in srgb, var(--action-accent) 8%, transparent), transparent 70%); opacity: .72; transform: translateY(-50%); pointer-events: none; }
.record-action:active { transform: translateY(2px) scale(0.978); border-color: color-mix(in srgb, var(--action-accent) 22%, var(--glass-border)); background: color-mix(in srgb, var(--glass-strong) 84%, var(--action-accent)); box-shadow: 0 6px 16px rgba(29, 47, 72, .07), inset 0 1px 0 color-mix(in srgb, var(--glass-border) 72%, transparent); }
.record-action.water { --action-accent: var(--water); --action-soft: var(--water-soft); color: var(--water); }
.record-action.urine { --action-accent: var(--record-urination-foreground); --action-soft: var(--urination-soft); color: var(--record-urination-foreground); }
.record-action.water:active { background: color-mix(in srgb, var(--glass-strong) 83%, var(--water)); }
.record-action.urine:active { border-color: color-mix(in srgb, var(--record-urination-action) 34%, var(--glass-border)); background: color-mix(in srgb, var(--glass-strong) 70%, var(--record-urination-action)); box-shadow: 0 6px 16px rgba(29,47,72,.06), inset 0 0 0 1px color-mix(in srgb, var(--record-urination-action) 14%, transparent); }
.action-orbit { width: 56px; height: 61px; flex: 0 0 auto; position: relative; display: grid; place-items: center; border: 0; background: transparent; transition: transform .2s var(--ease-apple-out); }
.action-orbit::before { content: ""; position: absolute; left: 50%; bottom: 5px; width: 44px; height: 15px; border-radius: 50%; background: color-mix(in srgb, var(--action-accent) 12%, transparent); filter: blur(1.5px); transform: translateX(-50%); }
.action-orbit::after { content: ""; position: absolute; left: 50%; bottom: 8px; width: 31px; height: 5px; border-radius: 50%; background: color-mix(in srgb, var(--action-accent) 16%, transparent); transform: translateX(-50%); pointer-events: none; }
.record-action .action-icon { width: 44px; height: 48px; position: relative; z-index: 1; display: grid; place-items: center; font-size: 2rem; line-height: 1; filter: drop-shadow(0 5px 7px color-mix(in srgb, var(--action-accent) 15%, transparent)); transition: transform .2s var(--ease-apple-out); }
.record-action svg { width: 44px; height: 48px; position: relative; z-index: 1; padding: 1px; fill: currentColor; filter: drop-shadow(0 5px 7px color-mix(in srgb, var(--action-accent) 14%, transparent)); transition: transform .2s var(--ease-apple-out); }
.record-action:active .action-orbit { transform: translateY(2px) scale(.94); }
.record-action:active .action-icon, .record-action:active svg { transform: scale(.94) rotate(-3deg); }
.action-copy, .record-action-copy { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 5px; text-align: left; line-height: 1.1; }
.action-copy strong, .record-action-copy strong { max-width: 100%; font-size: clamp(1.02rem, 4.5vw, 1.22rem); font-weight: 680; line-height: 1.12; letter-spacing: .012em; white-space: nowrap; }
.action-copy small, .record-action-copy small { max-width: 100%; color: currentColor; font-size: clamp(.68rem, 3.15vw, .78rem); font-weight: 570; line-height: 1.25; opacity: .76; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.action-elapsed { min-width: 0; min-height: 25px; padding: 4px 8px 4px 6px; display: inline-flex; align-items: center; gap: 1px; border: 1px solid color-mix(in srgb, var(--action-accent) 6%, var(--glass-border)); border-radius: 999px; background: color-mix(in srgb, var(--action-accent) 5%, var(--fill)); color: color-mix(in srgb, var(--action-accent) 66%, var(--text)); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--glass-border) 62%, transparent); font-size: clamp(.74rem, 3.35vw, .86rem); font-weight: 700; line-height: 1.15; opacity: 1; text-align: left; white-space: nowrap; overflow: hidden; }
.action-elapsed > span:first-child { font-size: .82em; opacity: .82; }
.action-elapsed > span:last-child { overflow: hidden; text-overflow: ellipsis; }

/* Tab Bar */
.tab-bar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 7px max(7px, env(safe-area-inset-right)) calc(7px + var(--safe-bottom)) max(7px, env(safe-area-inset-left)); border-top: 0.5px solid color-mix(in srgb, var(--glass-border) 60%, var(--separator)); background: color-mix(in srgb, var(--glass-strong) 88%, transparent); box-shadow: 0 -12px 38px rgba(28, 57, 92, .08), inset 0 1px 0 color-mix(in srgb, var(--glass-border) 65%, transparent); backdrop-filter: blur(28px) saturate(175%); -webkit-backdrop-filter: blur(28px) saturate(175%); }
.tab-item { position: relative; isolation: isolate; min-width: 0; min-height: 51px; padding: 3px 2px; display: grid; place-content: center; justify-items: center; gap: 2px; border: 0; border-radius: 15px; background: transparent; color: var(--secondary); font-size: 0.68rem; letter-spacing: .01em; transition: color var(--motion-fast) ease-out, background var(--motion-fast) ease-out, transform var(--motion-press) var(--ease-apple-out); }
.tab-item::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 2px; width: 38px; height: 32px; border-radius: 12px; background: color-mix(in srgb, var(--accent-soft) 86%, var(--surface)); opacity: 0; transform: translate3d(-50%,0,0) scale(.92); transition: opacity var(--motion-fast) ease-out, transform var(--motion-fast) var(--ease-apple-out); pointer-events: none; }
.tab-item:active { transform: scale(.94); }
.tab-item svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s cubic-bezier(.2,.8,.25,1); }
.tab-item.is-active { color: var(--accent); background: transparent; font-weight: 700; }
.tab-item.is-active::before { opacity: 1; transform: translate3d(-50%,0,0) scale(1); }
.tab-item.is-active svg { transform: translateY(-1px) scale(1.06); }
.tab-item[data-tab="record"].is-active svg { fill: currentColor; stroke: var(--on-action); }

/* 今日概览与时间线 */
#page-today { margin-inline: -12px; padding-inline: 12px; overflow-x: hidden; overflow-x: clip; touch-action: pan-y; }
.today-swipe-content { backface-visibility: hidden; transform: translate3d(0,0,0); }
.today-swipe-content > section:first-of-type,
.today-swipe-content > .content-section > .section-title,
#today-timeline > .empty-state { touch-action: pan-y; }
#page-today.is-today-swiping .summary-card,
#page-today.is-today-transitioning .summary-card,
#page-today.is-today-swiping .timeline-swipe-shell,
#page-today.is-today-transitioning .timeline-swipe-shell { animation: none !important; transition: none !important; }
.today-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "calendar reset"; align-items: center; column-gap: 10px; margin-bottom: 0; padding-bottom: 5px; }
.today-calendar-control { grid-area: calendar; position: relative; justify-self: start; width: fit-content; max-width: 100%; min-height: 68px; padding: 4px 10px 4px 0; display: inline-grid; align-items: center; border: 0; border-radius: 0; background: transparent; color: var(--text); cursor: pointer; transition: transform .18s var(--ease-apple-out), opacity .18s ease; }
.today-calendar-control:hover { opacity: .82; }
.today-calendar-control:active { transform: scale(.975); opacity: .68; }
.today-calendar-control:focus-within { outline: 3px solid color-mix(in srgb, var(--accent) 28%, transparent); outline-offset: 3px; border-radius: 8px; }
.today-date-copy { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.today-primary-title { min-width: 0; font-size: clamp(2.15rem, 9vw, 2.8rem); font-weight: 780; line-height: 1.05; letter-spacing: -0.045em; white-space: nowrap; }
.today-date-copy > .page-subtitle { margin: 0; color: var(--secondary); font-size: clamp(.92rem, 3.85vw, 1.08rem); font-weight: 540; line-height: 1.22; white-space: nowrap; }
.today-header .today-calendar-control input { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: inherit; background: transparent; opacity: .001; cursor: pointer; }
.today-reset { grid-area: reset; min-height: 44px; padding: 7px 11px; border: 1px solid color-mix(in srgb, var(--accent) 8%, var(--glass-border)); border-radius: 12px; background: color-mix(in srgb, var(--accent-soft) 72%, var(--glass)); color: var(--accent); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--glass-border) 70%, transparent); font-size: .82rem; font-weight: 700; transition: transform var(--motion-press) var(--ease-apple-out); }
.today-reset:active { transform: scale(.95); }
#today-overview-title { margin-top: 8px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px; }
.today-overview-label { display: inline-flex; align-items: center; gap: 3px; }
.today-balance { display: inline-flex; align-items: center; min-height: 22px; padding: 2px 7px; border-radius: 999px; background: color-mix(in srgb, currentColor 9%, transparent); font-size: .72em; font-weight: 760; line-height: 1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.today-balance.is-water { color: var(--water); }
.today-balance.is-urination { color: var(--urination); }
.today-balance.is-even,
.today-balance.is-incomplete { color: var(--secondary); }
.summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.summary-card { min-width: 0; min-height: 150px; position: relative; isolation: isolate; padding: 16px; display: block; border: 1px solid var(--glass-border); border-radius: var(--card-radius); background: var(--glass-strong); box-shadow: var(--glass-shadow); text-align: left; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; animation: card-arrive .4s cubic-bezier(.2,.8,.25,1) backwards; }
.summary-card:nth-child(2) { animation-delay: 55ms; }
.summary-card.water { --card-accent: var(--water); }
.summary-card.urination { --card-accent: var(--urination); }
.summary-card::before { content: ""; position: absolute; z-index: -1; width: 116px; height: 116px; top: -68px; right: -55px; border-radius: 50%; background: var(--card-accent, var(--accent)); filter: blur(28px); opacity: .11; pointer-events: none; }
.summary-card:active { transform: translateY(2px) scale(.985); box-shadow: var(--shadow); }
.summary-eyebrow { display: block; padding-right: 13px; font-size: 0.9rem; font-weight: 700; }
.summary-card.water .summary-eyebrow { color: var(--water); }
.summary-card.urination .summary-eyebrow { color: var(--urination); }
.summary-card strong { display: block; margin-top: 20px; font-size: clamp(1.15rem, 5.7vw, 1.85rem); line-height: 1.05; letter-spacing: -0.04em; white-space: normal; overflow-wrap: anywhere; }
.summary-card small { display: block; margin-top: 11px; color: var(--secondary); line-height: 1.3; }
.summary-chevron { position: absolute; top: 14px; right: 14px; color: var(--tertiary); font-size: 1.4rem; }
.timeline-list { overflow: hidden; border: 1px solid var(--glass-border); border-radius: var(--card-radius); background: var(--glass-strong); box-shadow: var(--glass-shadow); }
.timeline-row { width: 100%; min-height: 76px; display: grid; grid-template-columns: 50px 36px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 12px; border: 0; border-bottom: 0.5px solid var(--separator); background: transparent; text-align: left; transition: background .16s ease, transform .16s ease; }
.timeline-row:last-child { border-bottom: 0; }
.timeline-row:active { background: var(--fill); transform: scale(.992); }
.timeline-time { color: var(--secondary); font-size: 0.84rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.timeline-icon { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--water) 9%, var(--glass-border)); border-radius: 50%; background: linear-gradient(145deg, color-mix(in srgb, var(--accent-soft) 84%, var(--glass)), var(--accent-soft)); box-shadow: 0 5px 12px color-mix(in srgb, var(--water) 10%, transparent), inset 0 1px 0 var(--glass-border); }
.timeline-icon.urination { color: var(--urination); background: var(--urination-soft); }
.timeline-icon svg { width: 19px; height: 19px; fill: currentColor; }
.timeline-copy { min-width: 0; }
.timeline-copy strong { display: block; }
.timeline-copy small { display: block; margin-top: 3px; color: var(--secondary); line-height: 1.35; overflow-wrap: anywhere; }
.chevron { color: var(--tertiary); font-size: 1.5rem; }
.timeline-swipe-shell { width: 100%; max-width: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; background: transparent; animation: timeline-arrive .24s cubic-bezier(.2,.8,.25,1) both; backface-visibility: hidden; touch-action: pan-x pan-y; }
.timeline-swipe-shell:nth-child(2) { animation-delay: 35ms; }
.timeline-swipe-shell:nth-child(3) { animation-delay: 70ms; }
.timeline-swipe-shell:nth-child(4) { animation-delay: 105ms; }
.timeline-swipe-shell:nth-child(n+5) { animation-delay: 130ms; }
.timeline-swipe-shell:nth-child(n+9) { animation: none; }
.timeline-swipe-shell.is-deleting { animation: none !important; }
.timeline-swipe-shell::-webkit-scrollbar { display: none; }
.timeline-swipe-track { width: calc(100% + 136px); display: grid; grid-template-columns: minmax(0, 1fr) 136px; align-items: stretch; }
.timeline-swipe-content { position: relative; scroll-snap-align: start; scroll-snap-stop: always; }
.timeline-swipe-content .timeline-row { height: 100%; padding-right: 50px; }
.timeline-swipe-shell:last-child .timeline-row, .timeline-swipe-shell:last-child .timeline-swipe-actions { border-bottom: 0; }
.timeline-swipe-actions { scroll-snap-align: end; scroll-snap-stop: always; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: .5px solid var(--separator); }
.timeline-swipe-actions button { min-width: 0; border: 0; color: var(--on-action); font-size: .82rem; font-weight: 700; }
.timeline-swipe-edit { background: var(--action-bg); }
.timeline-swipe-delete { background: var(--danger-action); }
.timeline-row-menu { position: absolute; z-index: 1; right: 9px; top: 50%; transform: translateY(-50%); width: 36px; min-width: 36px; min-height: 36px; padding: 0; border: 0; border-radius: 11px; background: var(--fill); color: var(--secondary); font-size: 1rem; font-weight: 800; letter-spacing: -.12em; line-height: 1; }
.timeline-row-menu[aria-expanded="true"] { background: var(--accent-soft); color: var(--accent); }
.empty-state { min-height: 220px; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 28px 20px; text-align: center; color: var(--secondary); }
.empty-state .empty-icon { font-size: 2.25rem; }
.empty-state .empty-mascot { width: clamp(88px, 28vw, 116px); height: auto; margin-bottom: 2px; pointer-events: none; user-select: none; -webkit-user-drag: none; filter: drop-shadow(0 9px 13px rgba(44, 60, 78, .14)); animation: cat-breathe 4.8s ease-in-out infinite; }
.empty-state .empty-mascot.is-calendar { width: clamp(128px, 43vw, 180px); }
.empty-state .empty-mascot.is-cone { width: clamp(102px, 33vw, 138px); }
.empty-state .empty-mascot.is-drop { width: clamp(104px, 31vw, 138px); }
.empty-state strong { color: var(--text); font-size: 1.14rem; }
.empty-state > span:not(.empty-icon) { max-width: 26rem; line-height: 1.45; }

/* 通用按钮和卡片 */
.card, .detail-card, .calendar-card, .settings-group, .chart-card { border: 1px solid var(--glass-border); border-radius: var(--card-radius); background: var(--glass-strong); box-shadow: var(--glass-shadow); }
.primary-button, .secondary-button, .danger-button { min-height: 48px; padding: 11px 17px; border-radius: 14px; font-weight: 700; transition: transform .16s ease, filter .16s ease, box-shadow .16s ease; }
.primary-button { border: 0; background: linear-gradient(145deg, var(--action-bg), var(--action-bg-deep)); color: var(--on-action); box-shadow: 0 8px 20px color-mix(in srgb, var(--action-bg) 24%, transparent), inset 0 1px 0 rgba(255,255,255,.24); }
.secondary-button { border: 1px solid var(--glass-border); background: color-mix(in srgb, var(--glass) 80%, var(--fill)); color: var(--accent); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--glass-border) 70%, transparent); }
.danger-button { border: 1px solid color-mix(in srgb, var(--danger) 12%, var(--glass-border)); background: color-mix(in srgb, var(--danger) 10%, var(--glass)); color: var(--danger); }
.primary-button:active, .secondary-button:active, .danger-button:active { transform: translate3d(0,1px,0) scale(.975); filter: none; opacity: .94; }
.detail-date { margin: 1px 2px 16px; color: var(--secondary); }
.detail-card { padding: 4px 16px; }
.detail-row { min-height: 49px; display: grid; grid-template-columns: minmax(84px, auto) minmax(0, 1fr); align-items: start; gap: 14px; padding: 13px 0; border-bottom: 0.5px solid var(--separator); }
.detail-row:last-child { border-bottom: 0; }
.detail-row span:first-child { color: var(--secondary); }
.detail-row span:last-child { text-align: right; white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-actions { display: grid; gap: 10px; margin-top: 18px; }
.supporting-text { margin: 12px 4px; color: var(--secondary); font-size: 0.84rem; line-height: 1.5; }
.analysis-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.metric-card { min-width: 0; min-height: 94px; padding: 14px; border: 1px solid var(--glass-border); border-radius: 17px; background: var(--glass-strong); box-shadow: var(--glass-shadow); animation: card-arrive .38s cubic-bezier(.2,.8,.25,1) both; }
.metric-card:nth-child(2) { animation-delay: 35ms; }
.metric-card:nth-child(3) { animation-delay: 70ms; }
.metric-card:nth-child(4) { animation-delay: 105ms; }
.metric-card:nth-child(5) { animation-delay: 140ms; }
.metric-card:nth-child(n+6) { animation-delay: 170ms; }
.metric-card small { display: block; color: var(--secondary); line-height: 1.3; }
.metric-card strong { display: block; margin-top: 8px; font-size: clamp(1.05rem, 4.5vw, 1.4rem); line-height: 1.22; overflow-wrap: anywhere; }
.metric-card.water strong { color: var(--water); }
.metric-card.urination strong { color: var(--urination); }

/* 趋势 */
.segmented { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; padding: 3px; border: 1px solid color-mix(in srgb, var(--glass-border) 62%, transparent); border-radius: 12px; background: color-mix(in srgb, var(--fill) 78%, var(--glass)); }
.segmented button { min-width: 0; min-height: 44px; padding: 6px 8px; border: 0; border-radius: 9px; background: transparent; color: var(--secondary); transition: color var(--motion-fast) ease-out, background var(--motion-fast) ease-out, transform var(--motion-press) var(--ease-apple-out), box-shadow var(--motion-fast) ease-out; }
.segmented button:active { transform: scale(.97); }
.segmented button.is-selected { background: var(--glass-strong); color: var(--text); box-shadow: 0 3px 10px rgba(0,0,0,.1), inset 0 1px 0 var(--glass-border); font-weight: 700; }
.range-segmented { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 12px; }
.range-segmented button { padding-inline: 3px; font-size: clamp(0.72rem, 3.3vw, 0.88rem); }
.custom-range { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.custom-range label { min-width: 0; color: var(--secondary); font-size: 0.8rem; }
.custom-range label span { display: block; margin: 0 0 6px 2px; }
.custom-range input { min-width: 0; width: 100%; }
.trend-content { display: grid; gap: 12px; margin-top: 16px; }
.trend-metrics { margin-bottom: 2px; }
.chart-card { padding: 17px 16px 15px; overflow: hidden; animation: chart-card-in .26s var(--ease-apple-out) both; backface-visibility: hidden; }
.chart-card h3 { margin: 0 2px 10px; font-size: 1.06rem; letter-spacing: -.012em; }
.chart-scroll { position: relative; width: 100%; max-width: 100%; overflow: hidden; border-radius: 15px; background: color-mix(in srgb, var(--fill) 24%, transparent); touch-action: pan-y; -webkit-touch-callout: none; }
.chart { display: block; width: 100%; max-width: 100%; min-width: 0; height: auto; color: var(--text); }
.chart { cursor: crosshair; }
.chart[data-chart-animated]:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 38%, transparent); outline-offset: -3px; }
.chart-grid { stroke: color-mix(in srgb, var(--separator) 70%, transparent); stroke-width: 1; }
.chart-axis { fill: var(--secondary); font-size: 11px; font-weight: 540; font-variant-numeric: tabular-nums; }
.chart-bar { opacity: 1; transform-box: fill-box; transform-origin: center bottom; }
.chart-line { opacity: .96; }
.chart-single-point { opacity: 1; }
.chart-line-point, .chart-lollipop-day { opacity: 1; transform-box: fill-box; transform-origin: center; }
.chart-insight-axis, .chart-radial-event, .chart-heat-cell, .chart-heat-zero, .chart-heat-maximum, .chart-calendar-day, .chart-calendar-zero, .chart-calendar-peak { opacity: 1; transform-box: fill-box; transform-origin: center; }
.chart-horizontal-percent-fill { opacity: .88; transform-box: fill-box; transform-origin: left center; }
.chart-day-rail { stroke-width: .65; opacity: .105; }
.chart-lollipop-stem { stroke-width: 1; stroke-linecap: round; opacity: .72; }
.chart-lollipop-point { filter: none; }
.chart-hit-zone { fill: transparent; pointer-events: all; }
.chart-inspector-guide { opacity: 0; transition: opacity 140ms ease-out; pointer-events: none; }
.chart-inspector-guide line { stroke: color-mix(in srgb, var(--secondary) 52%, transparent); stroke-width: 1; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }
.chart.is-inspecting .chart-inspector-guide { opacity: 1; }
.chart-inspector { position: absolute; z-index: 2; left: 0; top: 0; width: max-content; min-width: 104px; max-width: min(260px, calc(100% - 14px)); padding: 8px 11px 9px; border: 1px solid color-mix(in srgb, var(--separator) 70%, transparent); border-radius: 11px; background: var(--surface-raised); box-shadow: 0 7px 20px rgba(24,39,62,.14); color: var(--text); text-align: center; pointer-events: none; transform: translate3d(0,0,0); animation: chart-inspector-in 125ms cubic-bezier(.23,1,.32,1) both; will-change: transform, opacity; }
.chart-inspector strong, .chart-inspector span { display: block; max-width: 100%; font-variant-numeric: tabular-nums; white-space: normal; overflow-wrap: anywhere; }
.chart-inspector strong { font-size: .9rem; line-height: 1.18; }
.chart-inspector span { margin-top: 3px; color: var(--secondary); font-size: .68rem; line-height: 1.3; }
.chart-inspector small { display: block; max-width: 100%; margin-top: 4px; color: var(--secondary); font-size: .62rem; line-height: 1.32; font-variant-numeric: tabular-nums; white-space: normal; overflow-wrap: anywhere; }
.chart-empty { min-height: 160px; display: grid; place-items: center; color: var(--secondary); }
.chart[data-chart-animated]:not(.is-revealed) .chart-bar,
.chart[data-chart-animated]:not(.is-revealed) .chart-single-point,
.chart[data-chart-animated]:not(.is-revealed) .chart-line-point,
.chart[data-chart-animated]:not(.is-revealed) .chart-lollipop-day,
.chart[data-chart-animated]:not(.is-revealed) .chart-insight-axis,
.chart[data-chart-animated]:not(.is-revealed) .chart-radial-event,
.chart[data-chart-animated]:not(.is-revealed) .chart-heat-cell,
.chart[data-chart-animated]:not(.is-revealed) .chart-heat-zero,
.chart[data-chart-animated]:not(.is-revealed) .chart-heat-maximum,
.chart[data-chart-animated]:not(.is-revealed) .chart-calendar-day,
.chart[data-chart-animated]:not(.is-revealed) .chart-calendar-zero,
.chart[data-chart-animated]:not(.is-revealed) .chart-calendar-peak,
.chart[data-chart-animated]:not(.is-revealed) .chart-horizontal-percent-fill { opacity: 0; }
.chart[data-chart-animated] .chart-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.chart[data-chart-animated].is-revealed .chart-bar { animation: chart-wave-in 640ms cubic-bezier(.23,1,.32,1) var(--chart-delay, 0ms) both; }
.chart[data-chart-animated].is-revealed .chart-line { animation: chart-line-draw 720ms cubic-bezier(.23,1,.32,1) both; }
.chart[data-chart-animated].is-revealed .chart-line-point { animation: chart-line-point-in 360ms var(--ease-apple-out) var(--chart-delay, 0ms) both; }
.chart[data-chart-animated].is-revealed .chart-lollipop-day { animation: chart-lollipop-in 460ms var(--ease-apple-out) var(--chart-delay, 0ms) both; }
.chart[data-chart-animated].is-revealed .chart-single-point { animation: chart-single-point-in 200ms cubic-bezier(.23,1,.32,1) both; transform-box: fill-box; transform-origin: center; }
.chart[data-chart-animated].is-revealed .chart-insight-axis { animation: chart-insight-axis-in 260ms var(--ease-apple-out) both; }
.chart[data-chart-animated].is-revealed .chart-radial-event { animation: chart-radial-event-in 360ms var(--ease-apple-out) var(--chart-delay, 0ms) both; }
.chart[data-chart-animated].is-revealed .chart-heat-cell,
.chart[data-chart-animated].is-revealed .chart-heat-zero,
.chart[data-chart-animated].is-revealed .chart-calendar-day,
.chart[data-chart-animated].is-revealed .chart-calendar-zero { animation: chart-heat-cell-in 320ms var(--ease-apple-out) var(--chart-delay, 0ms) both; }
.chart[data-chart-animated].is-revealed .chart-heat-maximum,
.chart[data-chart-animated].is-revealed .chart-calendar-peak { animation: chart-heat-maximum-in 300ms var(--ease-apple-out) var(--chart-delay, 0ms) both; }
.chart[data-chart-animated].is-revealed .chart-horizontal-percent-fill { animation: chart-horizontal-wave-in 640ms cubic-bezier(.23,1,.32,1) var(--chart-delay, 0ms) both; }
.history-entry { margin-top: 25px; padding: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; animation: card-arrive .4s cubic-bezier(.2,.8,.25,1) both; }
.history-entry h2 { margin: 0; font-size: 1.1rem; }
.history-entry p { margin: 4px 0 0; color: var(--secondary); font-size: 0.82rem; line-height: 1.35; }

/* 设置 */
.settings-title { margin: 25px 6px 8px; color: var(--secondary); font-size: 0.78rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.025em; }
.settings-section { margin: 0 0 10px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--glass-border) 76%, var(--separator)); border-radius: 20px; background: color-mix(in srgb, var(--glass-strong) 96%, var(--surface)); box-shadow: 0 6px 18px rgba(38,61,92,.05), inset 0 1px 0 color-mix(in srgb, var(--glass-border) 74%, transparent); }
.settings-section-summary { min-height: 68px; padding: 12px 14px; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 11px; list-style: none; cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; transition: background var(--motion-fast) var(--ease-apple-out); }
.settings-section-summary::-webkit-details-marker { display: none; }
.settings-section-summary::marker { content: ""; }
.settings-section-summary:active { background: color-mix(in srgb, var(--fill) 58%, transparent); }
.settings-section-summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 30%, transparent); outline-offset: -3px; }
.settings-section-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--accent-soft) 78%, var(--surface-secondary)); color: var(--accent); box-shadow: inset 0 1px 0 color-mix(in srgb, white 48%, transparent); transition: transform var(--motion-fast) var(--ease-apple-out); }
.settings-section-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.settings-section[data-settings-section="notification"] .settings-section-icon { background: color-mix(in srgb, #ff9f0a 14%, var(--surface-secondary)); color: #c47700; }
.settings-section[data-settings-section="appearance"] .settings-section-icon { background: color-mix(in srgb, #af52de 13%, var(--surface-secondary)); color: #8e44b5; }
.settings-section[data-settings-section="charts"] .settings-section-icon { background: color-mix(in srgb, var(--water) 12%, var(--surface-secondary)); color: var(--water); }
.settings-section[data-settings-section="data"] .settings-section-icon { background: color-mix(in srgb, #30b0c7 13%, var(--surface-secondary)); color: #24899c; }
.settings-section[data-settings-section="about"] .settings-section-icon { background: color-mix(in srgb, var(--secondary) 11%, var(--surface-secondary)); color: var(--secondary); }
.settings-section-copy { min-width: 0; }
.settings-section-copy strong { display: block; font-size: 1.02rem; font-weight: 680; letter-spacing: -.012em; }
.settings-section-copy small { display: block; margin-top: 3px; color: var(--secondary); font-size: .74rem; font-weight: 500; line-height: 1.3; }
.settings-section-tail { display: inline-flex; align-items: center; gap: 10px; }
.settings-section-status { max-width: 82px; padding: 5px 8px; border-radius: 999px; background: color-mix(in srgb, var(--fill) 72%, transparent); color: var(--secondary); font-size: .7rem; font-weight: 650; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.settings-section-chevron, .effect-customizer-chevron { width: 9px; height: 9px; border-right: 2px solid var(--tertiary); border-bottom: 2px solid var(--tertiary); transform: rotate(45deg); transition: transform var(--motion-fast) var(--ease-apple-out); }
.settings-section[open] > .settings-section-summary .settings-section-chevron,
.effect-customizer[open] > summary .effect-customizer-chevron { transform: rotate(225deg); }
.settings-section[open] > .settings-section-summary { background: color-mix(in srgb, var(--fill) 24%, transparent); box-shadow: inset 0 -.5px color-mix(in srgb, var(--separator) 38%, transparent); }
.settings-section[open] > .settings-section-summary .settings-section-status { background: color-mix(in srgb, var(--accent-soft) 62%, var(--surface-secondary)); color: color-mix(in srgb, var(--accent) 78%, var(--text)); }
.settings-section[open] > .settings-section-summary .settings-section-icon { transform: scale(.965); }
.settings-section-content { padding: 5px 9px 13px; overflow: hidden; }
.is-settings-flipping { will-change: transform; }
.settings-subheading { margin: 17px 6px 7px; display: flex; align-items: center; gap: 6px; color: var(--secondary); font-size: .73rem; font-weight: 700; letter-spacing: .025em; }
.settings-subheading::before { content: ""; width: 3px; height: 11px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 66%, var(--secondary)); }
.settings-section-content > .settings-subheading:first-child { margin-top: 13px; }
.settings-section-content > .settings-group { border: 1px solid color-mix(in srgb, var(--separator) 34%, transparent); border-radius: 16px; background: color-mix(in srgb, var(--surface-secondary) 70%, var(--surface)); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--glass-border) 50%, transparent); }
.settings-section-content > .setting-note:last-child { margin-bottom: 0; }
.settings-group { overflow: hidden; }
.setting-row { width: 100%; min-height: 56px; padding: 11px 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; border: 0; border-bottom: 0.5px solid color-mix(in srgb, var(--separator) 72%, transparent); background: transparent; text-align: left; overflow-wrap: anywhere; transition: background .16s ease; }
.setting-row:active { background: var(--fill); }
.setting-row:last-child { border-bottom: 0; }
.setting-row > span:first-child { min-width: 0; }
.setting-row strong { display: block; font-size: .96rem; font-weight: 660; letter-spacing: -.008em; }
.setting-row small { display: block; margin-top: 4px; color: var(--secondary); font-size: .76rem; line-height: 1.36; }
.setting-row select { max-width: 155px; }
.setting-row.action-row { grid-template-columns: auto minmax(0, 1fr) auto; }
.setting-row.danger { color: var(--danger); }
.setting-row.is-disabled { opacity: .48; }
.setting-row:has(:disabled):active { background: transparent; }
.row-symbol { width: 25px; text-align: center; font-size: 1.15rem; }
.setting-note { margin: 9px 7px 18px; color: var(--secondary); font-size: 0.78rem; line-height: 1.5; }
.inline-unit { display: grid; grid-template-columns: minmax(84px, 120px) auto; align-items: center; gap: 6px; }
.inline-unit input { text-align: right; }
.inline-unit b { color: var(--secondary); font-weight: 500; }
.status-pill { padding: 5px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 0.82rem; font-weight: 650; }
.privacy-row { display: flex; gap: 12px; padding: 15px; color: var(--secondary); line-height: 1.48; }
.privacy-row p { margin: 0; }
.privacy-row strong { display: block; margin-bottom: 3px; color: var(--text); }
.install-instructions { margin-top: 10px; padding: 15px; border-radius: 17px; background: var(--accent-soft); line-height: 1.5; }
.install-instructions ol { margin: 8px 0 0; padding-left: 1.4rem; }
.switch { position: relative; width: 51px; height: 31px; flex: 0 0 auto; }
.switch.compact { transform: scale(.88); transform-origin: center; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch i { position: absolute; inset: 0; border-radius: 18px; background: var(--fill-strong); transition: background .18s; }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.24); transition: transform .18s; }
.switch input:checked + i { background: #34c759; }
.switch input:checked + i::after { transform: translateX(20px); }
.switch input:focus-visible + i { outline: 3px solid color-mix(in srgb, var(--accent) 38%, transparent); }
.reminder-list { display: grid; gap: 9px; }
.reminder-row { min-height: 67px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 5px; padding: 8px 10px; border-radius: 17px; background: var(--surface); box-shadow: var(--shadow); }
.reminder-main { min-width: 0; padding: 4px 8px; border: 0; background: transparent; text-align: left; }
.reminder-main strong { display: block; font-size: 1.17rem; font-variant-numeric: tabular-nums; }
.reminder-main small { display: block; margin-top: 3px; color: var(--secondary); overflow-wrap: anywhere; }
.reminder-delete { min-height: 36px; padding: 4px 8px; border: 0; border-radius: 10px; background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--danger); font-size: .78rem; }
.settings-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.feedback-volume-control { width: min(190px, 43vw); display: grid; grid-template-columns: minmax(90px, 1fr) 38px; align-items: center; gap: 8px; }
.feedback-volume-control input[type="range"] { width: 100%; min-height: 44px; margin: 0; padding: 0; accent-color: var(--accent); }
.feedback-volume-control output { color: var(--secondary); font-size: .78rem; font-variant-numeric: tabular-nums; text-align: right; }
.feedback-preview:disabled { color: var(--secondary); cursor: default; opacity: .48; }
.feedback-preview:not(:disabled) .row-symbol { color: var(--accent); }
.chart-order-list { position: relative; overflow: hidden; }
.chart-order-list.is-dragging { overflow: visible; }
.chart-order-row { position: relative; z-index: 0; min-height: 67px; display: grid; grid-template-columns: minmax(0, 1fr) 50px; align-items: stretch; border-bottom: .5px solid color-mix(in srgb, var(--separator) 78%, transparent); background: transparent; }
.chart-order-row:last-child { border-bottom: 0; }
.chart-order-toggle { min-width: 0; padding: 10px 5px 10px 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; cursor: pointer; transition: background 160ms ease; }
.chart-order-toggle:active { background: var(--fill); }
.chart-order-copy { min-width: 0; }
.chart-order-copy strong { display: block; font-size: .94rem; font-weight: 660; line-height: 1.28; overflow-wrap: anywhere; }
.chart-order-copy small { display: block; margin-top: 3px; color: var(--secondary); font-size: .72rem; font-variant-numeric: tabular-nums; }
.chart-drag-handle { position: relative; width: 44px; height: 44px; min-height: 44px; margin: 0 6px 0 0; padding: 0; align-self: center; display: grid; place-items: center; border: 0; border-radius: 12px; background: transparent; color: color-mix(in srgb, var(--secondary) 78%, var(--text)); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; transition: color 130ms ease, transform 130ms cubic-bezier(.23,1,.32,1); }
.chart-drag-handle::before { content: ""; position: absolute; inset: 5px; border-radius: 10px; background: color-mix(in srgb, var(--fill) 58%, transparent); transition: background 130ms ease; }
.chart-drag-handle svg { position: relative; z-index: 1; width: 14px; height: 22px; display: block; fill: currentColor; pointer-events: none; }
.chart-drag-handle:active { color: var(--accent); transform: scale(.95); cursor: grabbing; }
.chart-drag-handle:active::before { background: var(--accent-soft); }
.chart-drag-handle:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 32%, transparent); outline-offset: -2px; }
.chart-order-row.is-dragging { z-index: 8; border-color: transparent; border-radius: 16px; background: var(--surface-raised); box-shadow: 0 18px 42px rgba(21, 48, 82, .2), 0 2px 10px rgba(21, 48, 82, .12); cursor: grabbing; will-change: transform; }
.chart-order-row.is-dragging .chart-order-toggle { pointer-events: none; }
.chart-order-row.is-dragging .chart-drag-handle { color: var(--accent); background: transparent; transform: scale(.97); cursor: grabbing; }
.chart-order-row.is-dragging .chart-drag-handle::before { background: var(--accent-soft); }
body.is-chart-sorting { user-select: none; -webkit-user-select: none; }
.trend-charts-hidden { min-height: 96px; margin: 0; }
.effect-settings { overflow: hidden; }
.sticker-library-heading { display: flex; align-items: center; gap: 6px; color: color-mix(in srgb, var(--accent) 72%, var(--secondary)); }
.sticker-library-heading::before { content: "✦"; font-size: .72rem; }
.settings-section-content > .sticker-library-settings { margin-top: 12px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--separator)); background: color-mix(in srgb, var(--accent-soft) 18%, var(--surface)); box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 5%, transparent), inset 0 1px 0 color-mix(in srgb, var(--glass-border) 76%, transparent); }
.sticker-library-settings .effect-customizer { border-bottom: 0; }
.sticker-library-settings .effect-current-mode { background: color-mix(in srgb, var(--accent-soft) 82%, var(--surface-secondary)); }
.sticker-library-note { margin-bottom: 8px; }
.effect-scenarios-settings { border: 1px solid color-mix(in srgb, var(--separator) 62%, transparent); }
.effect-customizer { padding: 0; border-bottom: .5px solid var(--separator); background: transparent; }
.effect-customizer:last-child { border-bottom: 0; }
.effect-customizer > summary { min-height: 69px; padding: 12px 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto 14px; align-items: center; gap: 10px; list-style: none; cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; transition: background var(--motion-fast) ease-out; }
.effect-customizer > summary::-webkit-details-marker { display: none; }
.effect-customizer > summary::marker { content: ""; }
.effect-customizer > summary:active { background: var(--fill); }
.effect-customizer > summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 28%, transparent); outline-offset: -3px; }
.effect-customizer-summary-copy { min-width: 0; }
.effect-customizer-summary-copy strong { display: block; font-size: .98rem; font-weight: 680; letter-spacing: -.008em; }
.effect-customizer-summary-copy small { display: block; margin-top: 4px; color: var(--secondary); font-size: .76rem; font-weight: 500; line-height: 1.32; }
.effect-current-mode { max-width: 98px; padding: 5px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent-soft) 58%, var(--surface-secondary)); color: color-mix(in srgb, var(--accent) 86%, var(--text)); font-size: .73rem; font-weight: 680; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticker-library-customizer .effect-current-mode { max-width: 132px; }
.effect-customizer[open] > summary { background: color-mix(in srgb, var(--accent-soft) 15%, transparent); }
.effect-customizer-body { padding: 0 14px 14px; overflow: hidden; border-top: .5px solid color-mix(in srgb, var(--separator) 34%, transparent); }
.effect-customizer-body > .setting-row { width: calc(100% + 28px); margin: 0 -14px 12px; }
.effect-editor-block { margin-top: 13px; }
.effect-editor-label { margin: 0 2px 7px; color: var(--secondary); font-size: .76rem; font-weight: 650; }
.effect-off-state { margin: 2px 0 0; padding: 13px; border-radius: 13px; background: var(--surface-secondary); color: var(--secondary); font-size: .78rem; line-height: 1.45; text-align: center; }
.effect-tuning-panel { margin: 12px 0 4px; padding: 5px 12px; border: 1px solid color-mix(in srgb, var(--separator) 55%, transparent); border-radius: 16px; background: color-mix(in srgb, var(--surface-secondary) 88%, var(--glass)); }
.effect-tuning-row { min-height: 50px; display: grid; grid-template-columns: 42px minmax(0, 1fr) 48px; align-items: center; gap: 9px; border-bottom: .5px solid color-mix(in srgb, var(--separator) 70%, transparent); color: var(--secondary); font-size: .78rem; font-weight: 650; }
.effect-tuning-row:last-child { border-bottom: 0; }
.effect-tuning-row input[type="range"] { width: 100%; min-width: 0; accent-color: var(--accent); touch-action: pan-x; }
.effect-tuning-row output { color: var(--text); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.effect-add-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.effect-add-row input { width: 100%; min-height: 44px; }
.effect-add-row button, .effect-sticker-toolbar button { min-height: 44px; padding: 8px 13px; border: 0; border-radius: 13px; background: var(--accent-soft); color: var(--accent); font-weight: 700; transition: transform var(--motion-press) var(--ease-apple-out), opacity var(--motion-fast) ease-out; }
.effect-add-row button:active, .effect-sticker-toolbar button:active { transform: scale(.95); }
.effect-add-row button:disabled, .effect-sticker-toolbar button:disabled { opacity: .45; }
.effect-emoji-library { margin-top: 9px; display: flex; flex-wrap: wrap; gap: 7px; }
.effect-emoji-library button { min-width: 44px; min-height: 44px; position: relative; display: grid; place-items: center; border: 1px solid var(--glass-border); border-radius: 14px; background: var(--surface-secondary); font-size: 1.22rem; }
.effect-emoji-library button i { position: absolute; top: -5px; right: -4px; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: var(--secondary); color: var(--surface); font-size: .72rem; font-style: normal; }
.effect-sticker-toolbar { margin-top: 13px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.effect-sticker-toolbar > span { color: var(--secondary); font-size: .82rem; font-weight: 650; }
.effect-sticker-toolbar small { font-weight: 500; }
.sticker-library-intro { margin-top: 13px; }
.sticker-library-intro strong { display: block; font-size: .86rem; }
.sticker-library-intro small { display: block; margin-top: 4px; color: var(--secondary); font-size: .73rem; line-height: 1.4; }
.sticker-source-actions { margin-top: 10px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sticker-source-actions button { min-width: 0; min-height: 58px; padding: 8px 5px; display: grid; grid-template-columns: auto auto; align-items: center; justify-content: center; gap: 5px; border: 1px solid color-mix(in srgb, var(--accent) 15%, var(--separator)); border-radius: 15px; background: color-mix(in srgb, var(--surface) 88%, var(--accent-soft)); color: var(--text); box-shadow: inset 0 1px 0 color-mix(in srgb, white 58%, transparent); transition: transform var(--motion-press) var(--ease-apple-out), background var(--motion-fast) ease-out, border-color var(--motion-fast) ease-out; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.sticker-source-actions button:active { transform: scale(.96); background: color-mix(in srgb, var(--accent-soft) 58%, var(--surface)); }
.sticker-source-actions button:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 28%, transparent); outline-offset: 2px; }
.sticker-source-actions button:disabled { opacity: .44; }
.sticker-source-actions button > span { font-size: 1.05rem; line-height: 1; }
.sticker-source-actions button > strong { min-width: 0; font-size: .74rem; white-space: nowrap; }
.sticker-keyboard-well { margin-top: 10px; opacity: 0; transform: translateY(-4px) scale(.99); transition: opacity .2s ease-out, transform .26s var(--ease-apple-out); }
.sticker-keyboard-well.is-visible { opacity: 1; transform: none; }
.sticker-keyboard-input { min-height: 52px; padding: 13px; display: flex; align-items: center; overflow: hidden; border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--separator)); border-radius: 14px; background: color-mix(in srgb, var(--surface-secondary) 84%, var(--glass)); color: var(--text); outline: 0; }
.sticker-keyboard-input:empty::before { content: attr(data-placeholder); color: var(--tertiary); font-size: .76rem; pointer-events: none; }
.sticker-keyboard-input:focus { border-color: color-mix(in srgb, var(--accent) 55%, var(--separator)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent); }
.sticker-keyboard-input img { width: 42px; height: 42px; object-fit: contain; }
.sticker-keyboard-well > small { display: block; margin: 6px 3px 0; color: var(--tertiary); font-size: .68rem; line-height: 1.4; }
.effect-sticker-library { margin-top: 9px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.effect-sticker-library > div, .mascot-choice-wrap { min-width: 0; position: relative; }
.effect-sticker-library img { width: 100%; aspect-ratio: 1; padding: 4px; display: block; object-fit: contain; object-position: 50% 100%; border: 1px solid var(--glass-border); border-radius: 14px; background: var(--surface-secondary); }
.effect-sticker-library button, .mascot-remove { position: absolute; top: -5px; right: -5px; width: 22px; height: 22px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--secondary) 92%, transparent); color: var(--surface); font-size: .84rem; font-weight: 700; }
.effect-empty { margin: 8px 0 0; color: var(--tertiary); font-size: .76rem; }
.mascot-library { margin-top: 12px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mascot-choice { width: 100%; aspect-ratio: 1; min-width: 0; position: relative; overflow: hidden; padding: 5px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--separator) 58%, transparent); border-radius: 16px; background: color-mix(in srgb, var(--surface-secondary) 92%, var(--glass)); transition: transform var(--motion-press) var(--ease-apple-out), border-color var(--motion-fast) ease-out, background var(--motion-fast) ease-out; }
.mascot-choice:active { transform: scale(.95); }
.mascot-choice.is-selected { border-color: color-mix(in srgb, var(--accent) 50%, var(--glass-border)); background: color-mix(in srgb, var(--accent-soft) 62%, var(--surface-secondary)); }
.mascot-choice.is-selected img { transform: scale(.93); }
.mascot-choice img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; user-select: none; -webkit-user-drag: none; }
.mascot-choice img { transition: transform .26s var(--ease-apple-out); }
.mascot-choice > span { position: absolute; right: 5px; bottom: 5px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--on-action); font-size: .7rem; font-weight: 800; opacity: 0; transform: scale(.45); transition: opacity .17s ease-out, transform .27s var(--ease-apple-out); }
.mascot-choice.is-selected > span { opacity: 1; transform: scale(1); }
.mascot-random { grid-template-rows: 1fr auto; gap: 1px; color: var(--text); }
.mascot-random b { font-size: 1.5rem; line-height: 1; }
.mascot-random small { color: var(--secondary); font-size: .68rem; }
.mascot-remove { z-index: 2; }
.sticker-library-grid { max-height: 330px; margin-top: 10px; padding: 2px 3px 6px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; scrollbar-width: thin; }
.sticker-library-item { min-width: 0; aspect-ratio: 1; position: relative; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--separator) 55%, transparent); border-radius: 16px; background: color-mix(in srgb, var(--surface-secondary) 92%, var(--glass)); }
.sticker-library-item img { width: 100%; height: 100%; padding: 5px; display: block; object-fit: contain; object-position: 50% 100%; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
.sticker-library-item > button { position: absolute; top: -5px; right: -5px; width: 24px; height: 24px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--secondary) 92%, transparent); color: var(--surface); font-size: .88rem; font-weight: 750; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.sticker-library-badge { position: absolute; left: 5px; bottom: 5px; padding: 2px 5px; border-radius: 999px; background: color-mix(in srgb, var(--glass-strong) 85%, transparent); color: var(--secondary); font-size: .58rem; font-weight: 650; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.effect-library-note { margin: 10px 2px 0; color: var(--tertiary); font-size: .73rem; line-height: 1.45; }
.sticker-picker-grid { max-height: 248px; margin-top: 9px; padding: 2px 3px 5px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; scrollbar-width: thin; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.sticker-library-choice { width: 100%; aspect-ratio: 1; min-width: 0; position: relative; overflow: hidden; padding: 4px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--separator) 55%, transparent); border-radius: 14px; background: color-mix(in srgb, var(--surface-secondary) 93%, var(--glass)); transition: transform var(--motion-press) var(--ease-apple-out), border-color var(--motion-fast) ease-out, background var(--motion-fast) ease-out; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.sticker-library-choice:active { transform: scale(.95); }
.sticker-library-choice.is-selected { border-color: color-mix(in srgb, var(--accent) 55%, var(--glass-border)); background: color-mix(in srgb, var(--accent-soft) 64%, var(--surface-secondary)); }
.sticker-library-choice img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; transition: transform .26s var(--ease-apple-out); }
.sticker-library-choice.is-selected img { transform: scale(.91); }
.sticker-library-choice > span { position: absolute; right: 4px; bottom: 4px; width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--on-action); font-size: .66rem; font-weight: 800; opacity: 0; transform: scale(.45); transition: opacity .17s ease-out, transform .27s var(--ease-apple-out); }
.sticker-library-choice.is-selected > span { opacity: 1; transform: scale(1); }
.mascot-off b { color: var(--secondary); font-size: 1.8rem; font-weight: 500; }
.empty-inline { margin: 0; padding: 22px; border: 1px solid var(--glass-border); border-radius: 17px; background: var(--glass-strong); box-shadow: var(--shadow); color: var(--secondary); text-align: center; }

/* 表单 */
#record-form { position: relative; padding-bottom: 96px; }
.form-section { margin-bottom: 16px; padding: 16px; border: 1px solid color-mix(in srgb, var(--glass-border) 82%, var(--separator)); border-radius: var(--card-radius); background: color-mix(in srgb, var(--surface) 95%, var(--glass)); box-shadow: var(--shadow), inset 0 1px 0 color-mix(in srgb, var(--glass-border) 68%, transparent); animation: form-section-arrive .36s cubic-bezier(.2,.8,.25,1) both; }
.form-section:nth-child(2) { animation-delay: 45ms; }
.form-section:nth-child(3) { animation-delay: 85ms; }
.form-section:nth-child(n+4) { animation-delay: 110ms; }
.form-section > h2 { margin: 0 0 14px; display: flex; align-items: baseline; gap: 7px; font-size: 1.12rem; }
.record-form[data-kind="urination"] > .form-section { margin-bottom: 12px; padding: 13px 14px; }
.record-form[data-kind="urination"] > .form-section > h2 { margin-bottom: 10px; }
.record-form[data-kind="urination"] .choice-pill { min-height: 0; }
.record-form[data-kind="urination"] .custom-amount { margin-top: 10px; }
.record-form[data-kind="urination"] .record-night-row { margin-top: 7px; }
.record-form[data-kind="urination"] .urination-expanded-fields .level-field { margin-top: 14px; }
.record-form[data-kind="urination"] .urination-expanded-fields > .level-field:first-child { margin-top: 0; }
.record-form[data-kind="urination"] .level-field h3 { margin-bottom: 8px; }
.level-description:empty { display: none; }
.optional-mark { margin-left: 6px; color: var(--secondary); font-size: 0.74rem; font-weight: 500; }
input[type="text"], input[type="number"], input[type="date"], input[type="time"], select, textarea { max-width: 100%; min-height: 45px; padding: 9px 11px; border: 1px solid color-mix(in srgb, var(--separator) 80%, var(--glass-border)); border-radius: 12px; color: var(--text); background: color-mix(in srgb, var(--surface-secondary) 93%, var(--glass)); box-shadow: inset 0 1px 2px rgba(20, 36, 58, .035); transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
textarea { width: 100%; min-height: 102px; resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: 3px solid color-mix(in srgb, var(--accent) 20%, transparent); background: var(--surface); box-shadow: 0 5px 16px color-mix(in srgb, var(--accent) 8%, transparent); }
.datetime-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(104px, 1fr); gap: 9px; }
.compact-picker { min-width: 0; min-height: 46px; position: relative; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--separator) 76%, var(--glass-border)); border-radius: 12px; background: color-mix(in srgb, var(--surface-secondary) 93%, var(--glass)); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--glass-border) 48%, transparent); overflow: hidden; transition: border-color .18s ease, transform .18s ease; }
.compact-picker:active { transform: scale(.985); border-color: color-mix(in srgb, var(--accent) 45%, var(--separator)); }
.picker-display { max-width: 100%; padding: 0 9px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.compact-picker input { position: absolute; inset: 0; width: 100%; min-width: 0; height: 100%; margin: 0; border: 0; opacity: 0.001; cursor: pointer; }
.quick-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); justify-items: center; gap: 6px; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.choice-pill { width: clamp(48px, 13vw, 58px); min-width: 0; aspect-ratio: 1; min-height: 0; padding: 4px 1px; display: grid; place-content: center; border: 1px solid color-mix(in srgb, var(--glass-border) 52%, transparent); border-radius: 50%; background: linear-gradient(150deg, color-mix(in srgb, var(--surface-secondary) 90%, var(--glass)), var(--surface-secondary)); color: var(--text); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--glass-border) 48%, transparent); transition: transform .16s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, filter .18s ease; touch-action: manipulation; -webkit-touch-callout: none; user-select: none; }
.choice-pill:active { transform: scale(.95); }
.choice-pill strong { font-size: clamp(.9rem, 4vw, 1.05rem); }
.choice-pill span { margin-top: 2px; color: var(--secondary); font-size: .66rem; }
.choice-pill.is-selected { border-color: color-mix(in srgb, var(--water) 76%, var(--on-water)); background: var(--water); box-shadow: 0 7px 16px color-mix(in srgb, var(--water) 24%, transparent), inset 0 1px 0 rgba(255,255,255,.25); color: var(--on-water); }
.choice-pill.is-selected span { color: currentColor; opacity: .78; }
.choice-pill.is-long-pressed { transform: scale(1.08); filter: none; }
.choice-pill.quick-add { border-style: dashed; color: var(--secondary); }
.custom-amount { margin-top: 14px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; }
.number-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 7px; }
.number-field input { width: 100%; min-width: 0; text-align: right; }
.number-field b { color: var(--secondary); font-weight: 500; }
.field-hint, .level-description { margin: 8px 1px 0; color: var(--secondary); font-size: .78rem; line-height: 1.45; }
.night-button { width: 100%; min-height: 54px; padding: 10px 14px; display: flex; justify-content: center; align-items: center; gap: 9px; border: 1px solid color-mix(in srgb, var(--glass-border) 52%, transparent); border-radius: 15px; background: color-mix(in srgb, var(--surface-secondary) 92%, var(--glass)); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--glass-border) 48%, transparent); font-weight: 650; transition: transform .16s ease, background .18s ease, border-color .18s ease; }
.night-button:active { transform: scale(.97); }
.night-button svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.night-button.is-selected { border-color: #5c6bc0; background: rgba(92,107,192,.15); color: #5362bb; }
.record-night-row { margin-top: 9px; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.record-night-row .field-hint { min-width: 0; margin: 0 auto 0 0; }
.night-button.record-night-toggle { width: auto; min-height: 38px; flex: 0 0 auto; padding: 4px 6px 4px 11px; justify-content: flex-start; gap: 7px; border-radius: 999px; white-space: nowrap; }
.night-switch-track { width: 34px; height: 21px; position: relative; display: inline-block; flex: 0 0 auto; border-radius: 999px; background: var(--separator); transition: background .18s ease; }
.night-switch-thumb { width: 17px; height: 17px; position: absolute; top: 2px; left: 2px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.22); transition: transform .18s ease; }
.night-button.record-night-toggle.is-selected .night-switch-track { background: #5c6bc0; }
.night-button.record-night-toggle.is-selected .night-switch-thumb { transform: translateX(13px); }
.urination-expanded-fields > .level-field:first-child { margin-top: 0; }
.note-disclosure { margin: 0 0 16px; padding: 0; overflow: hidden; border: 1px solid color-mix(in srgb, var(--glass-border) 82%, var(--separator)); border-radius: var(--card-radius); background: color-mix(in srgb, var(--surface) 95%, var(--glass)); box-shadow: var(--shadow), inset 0 1px 0 color-mix(in srgb, var(--glass-border) 58%, transparent); }
.note-disclosure > summary { width: 100%; min-height: 54px; padding: 11px 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; list-style: none; color: var(--text); cursor: pointer; user-select: none; -webkit-user-select: none; }
.note-disclosure > summary::-webkit-details-marker { display: none; }
.note-disclosure > summary::marker { content: ""; }
.note-disclosure > summary::after { content: ""; width: 9px; height: 9px; margin: 0 3px 4px 1px; border-right: 2px solid var(--tertiary); border-bottom: 2px solid var(--tertiary); transform: rotate(45deg); transform-origin: center; transition: transform .2s ease, margin .2s ease; }
.note-disclosure[open] > summary { border-bottom: .5px solid var(--separator); }
.note-disclosure[open] > summary::after { margin-top: 5px; margin-bottom: 0; transform: rotate(225deg); }
.note-disclosure > summary:active { background: var(--surface-secondary); }
.note-disclosure > summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 30%, transparent); outline-offset: -3px; }
.note-disclosure-status { min-width: 0; color: var(--secondary); font-size: .78rem; line-height: 1.3; text-align: right; overflow-wrap: anywhere; }
.note-disclosure:not([open]) > .note-disclosure-content { display: none; }
.note-disclosure-content { padding: 14px 16px 16px; }
.note-disclosure-content textarea { display: block; width: 100%; min-height: 108px; margin: 0; }
.urination-expanded-fields > .note-disclosure { margin: 14px 0 0; overflow: visible; border: 0; border-top: .5px solid var(--separator); border-radius: 0; background: transparent; box-shadow: none; }
.urination-expanded-fields > .note-disclosure > summary { padding-inline: 0; }
.urination-expanded-fields > .note-disclosure[open] > summary { border-bottom: 0; }
.urination-expanded-fields > .note-disclosure > .note-disclosure-content { padding: 0 0 2px; }
.record-sheet-save { width: 100%; min-height: 55px; margin: 4px 0 0; padding: 10px 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 18px; background: var(--record-water-action); color: var(--record-water-on); box-shadow: none; font-size: .98rem; font-weight: 780; transition: transform var(--motion-press) var(--ease-apple-out), opacity var(--motion-fast) ease-out; }
.record-form[data-kind="urination"] .record-sheet-save { background: var(--record-urination-action); color: var(--record-urination-on); box-shadow: none; }
.record-sheet-save:active { transform: scale(.985); filter: none; opacity: .94; box-shadow: none; }
.record-sheet-save:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent); outline-offset: 3px; }
.record-sheet-save:disabled, .record-sheet-save[aria-busy="true"] { opacity: .62; }
.level-field { margin-top: 18px; }
.level-field h3 { margin: 0 0 10px; display: flex; align-items: baseline; justify-content: flex-start; gap: 8px; font-size: 1rem; }
.level-inline-description { min-width: 0; color: var(--secondary); font-size: .78rem; font-weight: 500; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.level-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
.level-option { min-width: 0; min-height: 44px; padding: 5px 2px; display: flex; justify-content: center; align-items: center; gap: 3px; border: 1px solid color-mix(in srgb, var(--glass-border) 48%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--surface-secondary) 93%, var(--glass)); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--glass-border) 42%, transparent); font-size: clamp(.7rem, 3vw, .86rem); text-align: center; white-space: normal; overflow-wrap: anywhere; transition: transform var(--motion-press) var(--ease-apple-out), background var(--motion-fast) ease-out; }
.level-option:active { transform: scale(.94); }
.level-option i { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--level-color); border: .5px solid rgba(0,0,0,.15); }
.level-option span { font-variant-numeric: tabular-nums; }
.level-field.is-urgency-level .level-options,
.level-field.is-color-level .level-options { gap: 3px; padding: 4px; border-radius: 16px; background: color-mix(in srgb, var(--surface-secondary) 92%, var(--glass)); box-shadow: none; }
.level-field.is-urgency-level .level-option,
.level-field.is-color-level .level-option { min-height: 44px; flex-direction: row; gap: 4px; border-color: transparent; border-radius: 13px; background: transparent; color: var(--text); box-shadow: none; }
.level-field.is-color-level .level-option i { width: 9px; height: 9px; border-width: .5px; box-shadow: none; }
.level-option .urgency-dot { width: 9px; height: 9px; background: var(--urgency-color); border: .5px solid color-mix(in srgb, var(--urgency-color) 74%, #8f2028); box-shadow: none; }
.level-option.is-selected { border-color: var(--water); background: var(--water); color: var(--on-water); font-weight: 700; }
.amount-picker.has-error > h2,
.level-field.has-error > h3 { color: var(--danger); }
.form-error { margin: 10px 2px; padding: 11px 13px; border-radius: 12px; background: color-mix(in srgb, var(--danger) 11%, transparent); color: var(--danger); font-weight: 600; line-height: 1.4; }
.large-time input { width: 100%; font-size: 1.35rem; text-align: center; font-variant-numeric: tabular-nums; }
.repeat-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.repeat-options label, .weekday-grid label { position: relative; }
.repeat-options input, .weekday-grid input { position: absolute; opacity: 0; }
.repeat-options span, .weekday-grid span { min-height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--surface-secondary); }
.repeat-options input:checked + span, .weekday-grid input:checked + span { background: var(--action-bg); color: var(--on-action); font-weight: 700; }
.weekday-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; margin-top: 12px; }
.weekday-grid span { min-height: 44px; border-radius: 50%; }

/* Sheet / Dialog */
.sheet { position: fixed; z-index: 60; inset: 0; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(7,12,20,.1); backdrop-filter: blur(.65px) saturate(100%); -webkit-backdrop-filter: blur(.65px) saturate(100%); animation: fade-in .18s ease-out both; }
.sheet-panel { position: absolute; inset: max(10px, var(--safe-top)) 0 0; display: grid; grid-template-rows: minmax(0, 1fr); border: 1px solid color-mix(in srgb, var(--glass-border) 64%, var(--separator)); border-bottom: 0; border-radius: 26px 26px 0 0; background: var(--background); box-shadow: 0 -8px 28px rgba(18,38,65,.1), inset 0 1px 0 color-mix(in srgb, var(--glass-border) 78%, transparent); overflow: hidden; animation: sheet-up .32s var(--ease-apple-spring) backwards; }
.sheet.is-settled .sheet-panel { animation: none; transform: none; }
.sheet.is-record-sheet .sheet-panel { inset: auto 0 0; width: 100%; height: auto; max-height: calc(100dvh - max(18px, var(--safe-top))); display: flex; flex-direction: column; border-radius: 30px 30px 0 0; background: var(--surface-raised); box-shadow: 0 -20px 52px rgba(20,48,76,.18), inset 0 1px 0 var(--glass-border); animation: record-sheet-up .34s var(--ease-apple-spring) backwards; }
.sheet.is-edge-swiping .sheet-panel { animation: none; transform: translate3d(var(--edge-swipe-x, 0), 0, 0); transition: none; }
.sheet.is-edge-cancelling .sheet-panel { animation: none; transform: translate3d(0,0,0); transition: transform .2s cubic-bezier(.22,.78,.22,1); }
.sheet.is-edge-completing .sheet-panel { animation: none; transform: translate3d(100vw,0,0); transition: transform .2s cubic-bezier(.2,.72,.2,1); }
.sheet.is-edge-swiping .sheet-backdrop { opacity: calc(1 - (var(--edge-progress, 0) * .62)); animation: none; }
.sheet.is-edge-cancelling .sheet-backdrop { opacity: 1; animation: none; transition: opacity .2s cubic-bezier(.22,.78,.22,1); }
.sheet.is-edge-completing .sheet-backdrop { opacity: 0; animation: none; transition: opacity .2s cubic-bezier(.2,.72,.2,1); }
.sheet.is-top-pulling .sheet-panel { animation: none; transform: translate3d(0, var(--sheet-pull-y, 0), 0); transition: none; }
.sheet.is-top-cancelling .sheet-panel { animation: none; transform: translate3d(0,0,0); transition: transform .2s cubic-bezier(.22,.78,.22,1); }
.sheet.is-top-completing .sheet-panel { animation: none; transform: translate3d(0,105%,0); transition: transform .22s cubic-bezier(.2,.72,.2,1); }
.sheet.is-top-pulling .sheet-backdrop { opacity: calc(1 - (var(--sheet-pull-progress, 0) * .68)); animation: none; }
.sheet.is-top-cancelling .sheet-backdrop { opacity: 1; animation: none; transition: opacity .2s cubic-bezier(.22,.78,.22,1); }
.sheet.is-top-completing .sheet-backdrop { opacity: 0; animation: none; transition: opacity .22s cubic-bezier(.2,.72,.2,1); }
.sheet-header { position: relative; z-index: 3; isolation: isolate; grid-area: 1 / 1; align-self: start; min-height: 57px; padding: 8px 11px; display: grid; grid-template-columns: minmax(62px, 1fr) minmax(0, 2fr) minmax(62px, 1fr); align-items: center; gap: 5px; border-bottom: .5px solid color-mix(in srgb, var(--separator) 40%, transparent); background: transparent; }
.sheet-header::after { content: ""; position: absolute; z-index: -1; inset: 0; background: var(--background); pointer-events: none; }
.sheet-header h1 { min-width: 0; margin: 0; font-size: 1.04rem; line-height: 1.2; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-button, .nav-action { min-height: 44px; padding: 4px 3px; border: 0; background: transparent; color: var(--accent); }
.nav-button { text-align: left; }
.nav-action { width: 100%; text-align: right; font-weight: 700; }
.sheet-action-slot { min-width: 0; }
.sheet-content { grid-area: 1 / 1; overflow-y: auto; overscroll-behavior: contain; padding: 73px max(var(--page-padding), env(safe-area-inset-right)) calc(28px + var(--safe-bottom)) max(var(--page-padding), env(safe-area-inset-left)); }
.sheet.is-record-sheet .sheet-header { position: absolute; inset: 0 0 auto; z-index: 3; min-height: 72px; padding: 20px 16px 6px; border-bottom: .5px solid color-mix(in srgb, var(--separator) 38%, transparent); background: transparent; }
.sheet.is-record-sheet .sheet-header::after { background: var(--surface-raised); }
.sheet.is-record-sheet .sheet-header::before { content: ""; position: absolute; top: 9px; left: 50%; width: 38px; height: 5px; transform: translateX(-50%); border-radius: 999px; background: color-mix(in srgb, var(--tertiary) 44%, transparent); }
.sheet.is-record-sheet .sheet-header h1 { font-size: 1.08rem; font-weight: 760; }
.sheet.is-record-sheet .sheet-action-slot { visibility: hidden; }
.sheet.is-record-sheet .sheet-content { flex: 0 1 auto; min-height: 0; padding: 80px max(18px, env(safe-area-inset-right)) max(10px, calc(7px + var(--safe-bottom))) max(18px, env(safe-area-inset-left)); scroll-padding-top: 80px; scroll-padding-bottom: calc(66px + var(--safe-bottom)); }
.sheet.is-record-sheet .record-form { display: block; padding-bottom: 0; }
.sheet.is-record-sheet .record-form > .form-section,
.sheet.is-record-sheet .record-form[data-kind="urination"] > .form-section { margin: 0 0 18px; padding: 0 0 18px; border: 0; border-bottom: .5px solid color-mix(in srgb, var(--separator) 76%, transparent); border-radius: 0; background: transparent; box-shadow: none; animation: none; }
.sheet.is-record-sheet .record-form > .form-section:last-of-type,
.sheet.is-record-sheet .record-form[data-kind="urination"] > .form-section:last-of-type { margin-bottom: 12px; border-bottom: 0; }
.sheet.is-record-sheet .form-section > h2 { margin: 0 0 12px; font-size: 1.02rem; }
.sheet.is-record-sheet .compact-picker { min-height: 50px; border-radius: 15px; background: color-mix(in srgb, var(--surface-secondary) 88%, var(--glass)); }
.sheet.is-record-sheet .choice-pill { width: clamp(50px, 14vw, 60px); border-width: 1px; }
.sheet.is-record-sheet .choice-pill:not(.is-selected):not(.quick-add) strong { color: color-mix(in srgb, var(--text) 94%, var(--secondary)); font-weight: 760; }
.sheet.is-record-sheet .choice-pill.is-selected { border-color: transparent; background: var(--record-water-action); color: var(--record-water-on); transform: none; box-shadow: none; }
.sheet.is-record-sheet .record-form[data-kind="urination"] .choice-pill.is-selected { border-color: transparent; background: var(--record-urination-action); color: var(--record-urination-on); box-shadow: none; }
.sheet.is-record-sheet .custom-amount { margin-top: 12px; padding: 3px 0 0; }
.sheet.is-record-sheet .number-field input { min-height: 48px; border-radius: 15px; }
.sheet.is-record-sheet .record-night-row { margin-top: 9px; }
.sheet.is-record-sheet .level-options { padding: 4px; gap: 3px; border-radius: 16px; background: color-mix(in srgb, var(--surface-secondary) 88%, var(--glass)); box-shadow: inset 0 1px 2px rgba(20,36,58,.04); }
.sheet.is-record-sheet .level-option { min-height: 44px; border-color: transparent; background: transparent; box-shadow: none; }
.sheet.is-record-sheet .level-option.is-selected { border-color: transparent; background: var(--record-urination-action); color: var(--record-urination-on); box-shadow: none; }
.sheet.is-record-sheet .level-field.is-urgency-level .level-options,
.sheet.is-record-sheet .level-field.is-color-level .level-options { padding: 4px; gap: 3px; border-radius: 16px; background: color-mix(in srgb, var(--surface-secondary) 92%, var(--glass)); box-shadow: none; }
.sheet.is-record-sheet .level-field.is-urgency-level .level-option,
.sheet.is-record-sheet .level-field.is-color-level .level-option { min-height: 44px; flex-direction: row; gap: 4px; border-color: transparent; border-radius: 13px; background: transparent; color: var(--text); box-shadow: none; }
.sheet.is-record-sheet .level-field.is-urgency-level .level-option.is-selected,
.sheet.is-record-sheet .level-field.is-color-level .level-option.is-selected { border-color: transparent; background: var(--record-urination-action); color: var(--record-urination-on); box-shadow: none; }
.confirm { position: fixed; z-index: 90; inset: 0; display: grid; place-items: center; padding: 22px; }
.confirm-backdrop { position: absolute; inset: 0; background: rgba(5,9,15,.42); }
.confirm-card { position: relative; width: min(100%, 340px); padding: 20px; border: 1px solid var(--glass-border); border-radius: 23px; background: color-mix(in srgb, var(--glass-strong) 92%, var(--surface-raised)); box-shadow: var(--glass-shadow), 0 24px 64px rgba(0,0,0,.18); backdrop-filter: blur(28px) saturate(150%); -webkit-backdrop-filter: blur(28px) saturate(150%); animation: confirm-pop .24s var(--ease-apple-out) both; }
.confirm-card h2 { margin: 0; font-size: 1.22rem; }
.confirm-card p { margin: 10px 0 18px; color: var(--secondary); line-height: 1.5; }
.confirm-input-row { display: block; margin: -4px 0 16px; }
.confirm-input-row[hidden] { display: none; }
.confirm-input-row input { width: 100%; font-size: 1.05rem; text-align: center; }
.confirm-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.confirm.is-number-input .confirm-card { width: min(100%, 330px); padding: 16px; }
.confirm.is-number-input .confirm-card > h2,
.confirm.is-number-input .confirm-card > p,
.confirm.is-number-input .confirm-input-row > span:first-child { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.confirm.is-number-input .confirm-input-row { margin: 0 0 14px; }
.confirm.is-number-input .confirm-input-row input { min-height: 54px; border-radius: 16px; font-size: 1.2rem; font-weight: 700; }
.confirm.is-number-input .confirm-actions button { min-height: 52px; border-radius: 16px; }
.toast { position: fixed; z-index: 110; left: 50%; bottom: calc(var(--tabbar-height) + 2px); max-width: calc(100% - 32px); transform: translateX(-50%); padding: 11px 16px; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; background: rgba(29,29,31,.88); color: var(--on-action); box-shadow: 0 10px 30px rgba(0,0,0,.24); backdrop-filter: blur(20px) saturate(135%); -webkit-backdrop-filter: blur(20px) saturate(135%); font-size: .9rem; font-weight: 650; text-align: center; pointer-events: none; user-select: none; -webkit-user-select: none; will-change: transform, opacity; animation: toast-in .24s cubic-bezier(.2,.8,.25,1) both; }
.toast.has-mascot { min-height: 54px; padding: 7px 16px 7px 8px; display: flex; align-items: center; gap: 7px; border-radius: 21px; text-align: left; }
.toast-mascot { width: 45px; height: 45px; object-fit: contain; flex: 0 0 auto; filter: drop-shadow(0 4px 7px rgba(0,0,0,.2)); animation: toast-cat-pop .36s cubic-bezier(.2,.88,.25,1) both; }
.toast.is-sticker-toast { min-width: 132px; min-height: 0; padding: 0; display: grid; justify-items: center; gap: 7px; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--text); backdrop-filter: none; -webkit-backdrop-filter: none; overflow: visible; }
.toast.is-sticker-toast .toast-mascot { position: relative; z-index: 1; width: 108px; height: 96px; margin: 0; object-position: 50% 100%; filter: drop-shadow(0 9px 12px rgba(35,50,72,.18)); will-change: transform, opacity; animation: sticker-pop .4s cubic-bezier(.22,.78,.28,1) both; }
.toast.is-sticker-toast .toast-copy { position: relative; z-index: 1; margin: 0; padding: 8px 14px; border: 1px solid color-mix(in srgb, var(--glass-border) 82%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--glass-strong) 94%, transparent); color: var(--text); box-shadow: 0 8px 22px rgba(35,50,72,.13), inset 0 1px 0 rgba(255,255,255,.55); backdrop-filter: blur(18px) saturate(135%); -webkit-backdrop-filter: blur(18px) saturate(135%); white-space: nowrap; animation: toast-copy-in .26s .08s cubic-bezier(.2,.75,.3,1) both; }
.toast.is-leaving { animation: toast-out .18s ease-in both; }
.about-group { position: relative; overflow: hidden; }
.about-group .privacy-row { padding-right: 74px; }
.about-cat-sticker { position: absolute; z-index: 1; right: 8px; bottom: -5px; width: 72px; height: auto; pointer-events: none; user-select: none; -webkit-user-drag: none; filter: drop-shadow(0 6px 9px rgba(44,60,78,.12)); opacity: .9; transform-origin: 50% 100%; animation: cat-breathe 5.2s ease-in-out infinite; }
.toast.is-error { border-color: color-mix(in srgb, var(--danger) 16%, var(--glass-border)); background: color-mix(in srgb, var(--surface) 92%, #fff1e8); color: var(--danger); box-shadow: 0 10px 28px rgba(70,38,30,.14); }
.fatal-message { margin: 24px; padding: 16px; border-radius: 16px; background: color-mix(in srgb, var(--danger) 10%, var(--surface)); color: var(--danger); }

/* 导出 */
.export-menu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 14px 0; }
.export-menu button { min-width: 0; min-height: 70px; padding: 9px 4px; display: grid; place-content: center; justify-items: center; gap: 4px; border: 1px solid var(--glass-border); border-radius: 15px; background: var(--glass-strong); box-shadow: var(--shadow); color: var(--accent); font-weight: 650; transition: transform .16s ease, box-shadow .16s ease; }
.export-menu button:active { transform: scale(.96); box-shadow: none; }
.export-menu svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* 日历 */
.calendar-card { padding: 14px; }
.calendar-header { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; margin-bottom: 12px; }
.calendar-header strong { text-align: center; font-size: 1.08rem; }
.calendar-header button { width: 44px; height: 44px; border: 1px solid color-mix(in srgb, var(--glass-border) 60%, transparent); border-radius: 50%; background: color-mix(in srgb, var(--fill) 80%, var(--glass)); color: var(--accent); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--glass-border) 55%, transparent); font-size: 1.35rem; transition: transform var(--motion-press) var(--ease-apple-out); }
.calendar-header button:active { transform: scale(.9); }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.calendar-weekdays span { padding: 6px 0; color: var(--secondary); font-size: .72rem; text-align: center; }
.calendar-day { position: relative; aspect-ratio: 1; min-width: 0; min-height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; }
.calendar-day:active:not(:disabled) { background: var(--fill); }
.calendar-day.is-today { color: var(--accent); font-weight: 750; }
.calendar-day i { position: absolute; bottom: 4px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.calendar-blank { aspect-ratio: 1; }

/* 页面内提醒 */
.reminder-banner { --reminder-drag-y: 0px; --reminder-drag-opacity: 1; position: fixed; z-index: 45; left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); top: calc(10px + var(--safe-top)); max-width: 520px; margin: auto; padding: 22px 14px 13px; border: 1px solid color-mix(in srgb, var(--water) 13%, var(--glass-border)); border-radius: 22px; background: color-mix(in srgb, var(--glass-strong) 92%, transparent); box-shadow: 0 18px 46px rgba(35,58,87,.16), inset 0 1px 0 var(--glass-border); backdrop-filter: blur(24px) saturate(150%); -webkit-backdrop-filter: blur(24px) saturate(150%); transform: translate3d(0, var(--reminder-drag-y), 0); opacity: var(--reminder-drag-opacity); touch-action: none; user-select: none; -webkit-user-select: none; will-change: transform, opacity; }
.reminder-banner.is-presenting { animation: banner-in .34s cubic-bezier(.2,.85,.3,1) both; }
.reminder-banner.is-dragging { animation: none; transition: none; }
.reminder-banner.is-settling { animation: none; transition: transform .34s cubic-bezier(.2,.9,.25,1), opacity .24s ease-out; }
.reminder-banner.is-dismissing { animation: none; transform: translate3d(0,-125%,0); opacity: 0; transition: transform .22s cubic-bezier(.32,.72,0,1), opacity .18s ease-out; }
.reminder-banner-grabber { position: absolute; top: 7px; left: 50%; width: 36px; height: 5px; border-radius: 999px; background: color-mix(in srgb, var(--secondary) 34%, transparent); transform: translateX(-50%); pointer-events: none; }
.reminder-banner-main { min-width: 0; display: flex; align-items: center; gap: 10px; }
.reminder-banner-main > div { min-width: 0; display: grid; gap: 2px; }
.reminder-banner-main strong { color: var(--text); font-size: .94rem; }
.reminder-banner-main span { color: var(--secondary); font-size: .75rem; font-variant-numeric: tabular-nums; line-height: 1.3; }
.reminder-banner-cat { width: 50px; height: 50px; flex: 0 0 auto; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 4px 6px rgba(35,58,87,.12)); }
.reminder-editor-form { display: grid; gap: 12px; padding-bottom: 2px; }
.reminder-editor-hero { min-height: 104px; padding: 12px 16px 10px; display: flex; align-items: center; gap: 13px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--water) 11%, var(--glass-border)); border-radius: 22px; background: color-mix(in srgb, var(--water-soft) 38%, var(--surface)); }
.reminder-editor-hero img { width: 82px; height: 82px; flex: 0 0 auto; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 6px 8px rgba(35,58,87,.12)); }
.reminder-editor-hero > div { min-width: 0; }
.reminder-editor-hero small { color: var(--water); font-size: .72rem; font-weight: 760; }
.reminder-editor-hero h2 { margin: 3px 0 2px; font-size: 1.08rem; }
.reminder-editor-hero p { margin: 0; color: var(--secondary); font-size: .76rem; }
.reminder-editor-card { margin: 0 !important; border-radius: 19px !important; }
.reminder-time-control { position: relative; width: 100%; min-height: 58px; display: grid; place-items: center; overflow: hidden; border: 1px solid color-mix(in srgb, var(--separator) 82%, transparent); border-radius: 16px; background: var(--surface-secondary); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--glass-border) 68%, transparent); transition: border-color var(--motion-fast) ease-out, box-shadow var(--motion-fast) ease-out, transform var(--motion-press) var(--ease-apple-out); }
.reminder-time-control:active { transform: scale(.992); }
.reminder-time-control:focus-within { border-color: color-mix(in srgb, var(--water) 52%, var(--separator)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--water) 14%, transparent), inset 0 1px 0 color-mix(in srgb, var(--glass-border) 68%, transparent); }
.reminder-time-display { color: var(--text); font-size: clamp(1.24rem, 5.6vw, 1.48rem); font-weight: 590; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; pointer-events: none; }
.reminder-time-control input[type="time"] { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: inherit; background: transparent; box-shadow: none; opacity: .001; cursor: pointer; -webkit-appearance: none; appearance: none; }
.reminder-save-button { position: sticky; bottom: 0; width: 100%; min-height: 52px; margin-top: 2px; border-radius: 17px; box-shadow: 0 12px 28px color-mix(in srgb, var(--water) 20%, transparent); }

@media (max-width: 370px) {
  .app-main { --page-padding: 13px; }
  .today-calendar-control { padding-right: 9px; }
  .summary-card { min-height: 142px; padding: 13px; }
  .timeline-row { grid-template-columns: 44px 32px minmax(0, 1fr) auto; gap: 6px; padding-inline: 9px; }
  .timeline-icon { width: 31px; height: 31px; }
  .timeline-swipe-track { width: calc(100% + 124px); grid-template-columns: minmax(0, 1fr) 124px; }
  .datetime-row { grid-template-columns: minmax(0, 1.45fr) minmax(92px, .8fr); gap: 6px; }
  .record-night-row { gap: 6px; }
  .record-night-row .field-hint { font-size: .7rem; }
  .night-button.record-night-toggle { padding-left: 9px; }
  .quick-grid { gap: 5px; }
  .level-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .level-option { padding-inline: 5px; white-space: normal; text-align: center; overflow-wrap: anywhere; }
  .setting-row { grid-template-columns: minmax(0, 1fr); align-items: stretch; gap: 8px; }
  .setting-row > :last-child:not(:first-child) { max-width: 100%; justify-self: stretch; }
  .setting-row select, .setting-row input[type="time"], .setting-row input[type="number"] { width: 100%; max-width: none; }
  .settings-actions { grid-template-columns: minmax(0, 1fr); }
  .note-disclosure > summary { padding-inline: 13px; gap: 8px; }
  .note-disclosure-status { font-size: .74rem; }
  .note-disclosure-content { padding-inline: 13px; }
  .urination-expanded-fields > .note-disclosure > summary { padding-inline: 0; }
  .urination-expanded-fields > .note-disclosure > .note-disclosure-content { padding-inline: 0; }
  .weekday-grid { gap: 3px; }
  .history-entry { align-items: stretch; flex-direction: column; }
}

@media (hover: none) and (pointer: coarse) {
  .timeline-row-menu, .timeline-menu-space { display: none; }
  .timeline-swipe-content .timeline-row { grid-template-columns: 44px 32px minmax(0, 1fr); padding-right: 12px; }
}

@media (max-height: 650px) {
  #page-record .page-header { padding-bottom: 10px; }
  .record-home { padding-block: 0 3px; }
  .progress-wrap { width: min(66vw, 220px); }
  .record-actions { margin-bottom: 8px; padding-top: 10px; }
  .record-action { min-height: 94px; padding-block: 12px; border-radius: 21px; }
  .action-orbit { width: 48px; height: 53px; }
  .record-action .action-icon { width: 36px; height: 40px; font-size: 1.55rem; }
  .record-action svg { width: 36px; height: 40px; padding: 1px; }
  .progress-label::before { margin-bottom: 3px; font-size: 1.45rem; }
  .progress-label strong { font-size: 2.35rem; }
  .progress-label span { margin-top: 7px; }
}

@media (max-width: 330px) {
  .record-actions { gap: 8px; }
  .record-action { gap: 7px; padding-inline: 5px; }
  .action-orbit { width: 47px; height: 53px; }
  .action-copy strong, .record-action-copy strong { font-size: .98rem; }
  .action-copy small, .record-action-copy small { font-size: .65rem; }
  .choice-pill { width: 46px; }
  .chart-order-row { grid-template-columns: minmax(0, 1fr) 48px; }
  .chart-drag-handle { width: 44px; }
}

@media (hover: hover) and (pointer: fine) {
  .record-action:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--action-accent) 11%, var(--glass-border)); background: color-mix(in srgb, var(--glass-strong) 94%, var(--action-soft)); box-shadow: 0 16px 34px rgba(27, 63, 104, .11), inset 0 1px 0 var(--glass-border); }
  .summary-card:hover { transform: translateY(-3px); box-shadow: 0 20px 48px rgba(27, 63, 104, .14), inset 0 1px 0 var(--glass-border); }
  .record-action:hover .action-icon, .record-action:hover svg { transform: translateY(-2px) rotate(-2deg); }
  .primary-button:hover, .secondary-button:hover, .danger-button:hover, .export-menu button:hover { transform: translateY(-1px); filter: brightness(1.02); }
  .tab-item:hover { color: var(--accent); }
}

@media (hover: none) and (pointer: coarse) {
  body::before { animation: none; transform: translate3d(0,0,0); }
  .progress-ring-card::before { animation-duration: 10s; }
  input, select, textarea, [contenteditable="true"] { font-size: max(16px, 1em); }
}

@media (min-width: 700px) {
  .app-main { padding-inline: 24px; }
  #page-record { min-height: calc(100dvh - var(--safe-top) - var(--tabbar-height) - 47px); }
  .record-actions { max-width: 600px; margin-inline: auto; }
  .summary-grid { gap: 14px; }
  .analysis-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sheet-panel { inset: max(28px, var(--safe-top)) max(calc((100vw - 720px) / 2), 32px) 0; }
  .detail-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .progress-ring-card, .record-action, .tab-bar, .sheet-header, .confirm-card, .reminder-banner {
    background: var(--surface-raised);
  }
  .sheet-backdrop { background: rgba(7,12,20,.1); }
  .toast { background: #1d1d1f; }
}

@media (prefers-reduced-transparency: reduce) {
  :root, :root[data-theme], :root:not([data-theme]) {
    --glass: var(--surface);
    --glass-strong: var(--surface);
    --glass-border: var(--separator);
  }
  .progress-ring-card, .record-action, .tab-bar, .sheet-backdrop, .sheet-header, .confirm-card, .toast, .reminder-banner {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .progress-ring-card, .record-action, .tab-bar, .sheet-header, .confirm-card, .reminder-banner { background: var(--surface); }
  .sheet-panel { background: var(--background); }
  .toast { background: #1d1d1f; }
}

@media (prefers-contrast: more) {
  :root, :root[data-theme], :root:not([data-theme]) {
    --glass: var(--surface);
    --glass-strong: var(--surface);
    --glass-border: color-mix(in srgb, var(--text) 38%, transparent);
    --separator: color-mix(in srgb, var(--text) 42%, transparent);
    --secondary: color-mix(in srgb, var(--text) 78%, var(--background));
  }
  .card, .detail-card, .calendar-card, .settings-group, .chart-card,
  .progress-ring-card, .record-action, .summary-card, .timeline-list,
  .sheet-panel, .confirm-card { border-width: 1.5px; box-shadow: none; }
  .tab-bar, .sheet-header { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .level-option, .choice-pill, .compact-picker, input, select, textarea { border-color: var(--separator); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition-duration: .01ms !important; }
  body::before { animation: none !important; transform: none; }
  .page, .sheet-backdrop, .confirm-card, .toast, .reminder-banner { animation: reduced-fade 120ms ease-out both !important; }
  .sheet-panel, .record-action, .metric-card, .chart-card, .timeline-swipe-shell, .form-section { transform: none !important; }
  .tab-item::before { transition: opacity 120ms ease-out; transform: translate3d(-50%,0,0) !important; }
  .goal-echo-cheer, .goal-echo-sticker { opacity: .92; transform: translate3d(-50%,-50%,0) scale(.9); }
  .effect-physics-item { filter: none; }
  .chart[data-chart-animated] .chart-bar,
  .chart[data-chart-animated] .chart-single-point,
  .chart[data-chart-animated] .chart-line-point,
  .chart[data-chart-animated] .chart-lollipop-day,
  .chart[data-chart-animated] .chart-insight-axis,
  .chart[data-chart-animated] .chart-radial-event,
  .chart[data-chart-animated] .chart-heat-cell,
  .chart[data-chart-animated] .chart-heat-zero,
  .chart[data-chart-animated] .chart-heat-maximum,
  .chart[data-chart-animated] .chart-calendar-day,
  .chart[data-chart-animated] .chart-calendar-zero,
  .chart[data-chart-animated] .chart-calendar-peak,
  .chart[data-chart-animated] .chart-horizontal-percent-fill { opacity: 1 !important; transform: none !important; }
  .chart[data-chart-animated] .chart-line { opacity: .96 !important; stroke-dasharray: none !important; stroke-dashoffset: 0 !important; }
  .progress-number-old { animation: reduced-number-old-out 100ms ease-out both !important; }
  .progress-number-new { animation: reduced-number-new-in 100ms ease-out both !important; }
}

@keyframes page-in { from { opacity: 0; transform: translate3d(0,6px,0); } to { opacity: 1; transform: translate3d(0,0,0); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes sheet-up { from { transform: translate3d(0,36px,0); opacity: .55; } to { transform: none; opacity: 1; } }
@keyframes record-sheet-up { from { transform: translate3d(0, 105%, 0); } to { transform: none; } }
@keyframes progress-number-old-out { from { opacity: 1; transform: translate3d(0,0,0); } to { opacity: 0; transform: translate3d(0,-3px,0); } }
@keyframes progress-number-new-in { from { opacity: 0; transform: translate3d(0,3px,0); } to { opacity: 1; transform: translate3d(0,0,0); } }
@keyframes reduced-number-old-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes reduced-number-new-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes cat-breathe { 0%, 100% { transform: translate3d(0,0,0) rotate(-.7deg); } 50% { transform: translate3d(0,-3px,0) rotate(.7deg); } }
@keyframes cat-celebrate { 0% { transform: translate3d(0,5px,0) scale(.92) rotate(-2deg); } 58% { transform: translate3d(0,-5px,0) scale(1.05) rotate(2deg); } 100% { transform: translate3d(0,0,0) scale(1) rotate(0); } }
@keyframes cat-easter-egg { 0% { transform: translate3d(0,10px,0) scale(.84) rotate(-6deg); opacity: .3; } 52% { transform: translate3d(0,-8px,0) scale(1.08) rotate(4deg); opacity: 1; } 100% { transform: translate3d(0,0,0) scale(1) rotate(0); opacity: 1; } }
@keyframes paw-burst { 0% { transform: translate3d(-50%,-50%,0) scale(.3) rotate(-14deg); opacity: 0; } 34% { opacity: 1; } 72% { opacity: 1; } 100% { transform: translate3d(calc(-50% + var(--paw-x)),calc(-50% + var(--paw-y)),0) scale(1.05) rotate(var(--paw-r)); opacity: 0; } }
@keyframes progress-hold-pop { 0% { transform: translate3d(-50%,-50%,0) scale(.35); opacity: 0; } 24% { opacity: 1; } 70% { opacity: .96; } 100% { transform: translate3d(calc(-50% + var(--hold-x)),calc(-50% + var(--hold-y)),0) scale(1.08) rotate(var(--hold-r)); opacity: 0; } }
@keyframes goal-echo-pop { 0% { transform: translate3d(-50%,-50%,0) scale(.22) rotate(0deg); opacity: 0; } 26% { transform: translate3d(-50%,-50%,0) scale(1.08) rotate(var(--echo-rotate)); opacity: .98; } 68% { transform: translate3d(-50%,-50%,0) scale(.96) rotate(var(--echo-rotate)); opacity: .98; } 100% { transform: translate3d(-50%,-50%,0) scale(.82) rotate(var(--echo-rotate)); opacity: 0; } }
@keyframes toast-in { from { transform: translate3d(-50%,7px,0); opacity: 0; } to { transform: translate3d(-50%,0,0); opacity: 1; } }
@keyframes toast-out { to { transform: translate3d(-50%,5px,0) scale(.98); opacity: 0; } }
@keyframes toast-cat-pop { from { transform: translate3d(0,5px,0) scale(.88); opacity: .2; } to { transform: translate3d(0,0,0) scale(1); opacity: 1; } }
@keyframes sticker-pop { 0% { transform: translate3d(0,24px,0) scale(.72) rotate(-5deg); opacity: 0; } 72% { transform: translate3d(0,-2px,0) scale(1.025) rotate(1deg); opacity: 1; } 100% { transform: translate3d(0,0,0) scale(1) rotate(0); opacity: 1; } }
@keyframes toast-copy-in { from { transform: translate3d(0,5px,0); opacity: 0; } to { transform: translate3d(0,0,0); opacity: 1; } }
@keyframes chart-wave-in { 0% { opacity: 0; transform: scaleY(.03); } 68% { opacity: 1; transform: scaleY(1.06); } 84% { transform: scaleY(.985); } 100% { opacity: 1; transform: scaleY(1); } }
@keyframes chart-line-draw { from { stroke-dashoffset: 1; opacity: .28; } to { stroke-dashoffset: 0; opacity: .96; } }
@keyframes chart-line-point-in { from { opacity: 0; transform: scale(.45); } to { opacity: 1; transform: scale(1); } }
@keyframes chart-lollipop-in { from { opacity: 0; transform: translate3d(0,3px,0); } to { opacity: 1; transform: translate3d(0,0,0); } }
@keyframes chart-insight-axis-in { from { opacity: 0; transform: translate3d(0,3px,0); } to { opacity: 1; transform: translate3d(0,0,0); } }
@keyframes chart-radial-event-in { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
@keyframes chart-heat-cell-in { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: scale(1); } }
@keyframes chart-heat-maximum-in { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: scale(1); } }
@keyframes chart-horizontal-wave-in { 0% { opacity: 0; transform: scaleX(.03); } 68% { opacity: .88; transform: scaleX(1.06); } 84% { transform: scaleX(.985); } 100% { opacity: .88; transform: scaleX(1); } }
@keyframes chart-inspector-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes chart-single-point-in { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
@keyframes chart-card-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes mascot-float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-4px) rotate(2deg); } }
@keyframes ambient-drift { from { transform: translate3d(-1.5%, -1%, 0) scale(1.02); opacity: .86; } to { transform: translate3d(2%, 1.4%, 0) scale(1.055); opacity: 1; } }
@keyframes ring-aurora { 0%, 100% { transform: rotate(-8deg) scale(.98); opacity: .48; } 50% { transform: rotate(8deg) scale(1.04); opacity: .78; } }
@keyframes action-arrive { from { transform: translate3d(0,12px,0) scale(.985); opacity: 0; } to { transform: translate3d(0,0,0) scale(1); opacity: 1; } }
@keyframes card-arrive { from { transform: translate3d(0,9px,0); opacity: 0; } to { transform: translate3d(0,0,0); opacity: 1; } }
@keyframes timeline-arrive { from { transform: translate3d(8px,0,0); opacity: 0; } to { transform: translate3d(0,0,0); opacity: 1; } }
@keyframes form-section-arrive { from { transform: translate3d(0,9px,0); opacity: 0; } to { transform: translate3d(0,0,0); opacity: 1; } }
@keyframes floating-save-in { from { transform: translateY(12px) scale(.94); opacity: 0; } }
@keyframes confirm-pop { from { transform: scale(.94) translateY(6px); opacity: 0; } }
@keyframes banner-in { from { transform: translateY(-12px) scale(.98); opacity: 0; } }
@keyframes completion-pop { 0% { transform: scale(1); } 45% { transform: scale(1.025); } 100% { transform: scale(1); } }
@keyframes progress-sticker-tap { 0% { transform: translate3d(0,0,0) scale(1) rotate(0deg); } 32% { transform: translate3d(0,4px,0) scale(.952,1.035) rotate(-.65deg); } 68% { transform: translate3d(0,-6px,0) scale(1.042,.972) rotate(.8deg); } 100% { transform: translate3d(0,0,0) scale(1) rotate(0deg); } }
@keyframes completion-shine { 0% { transform: rotate(-18deg) scale(.82); opacity: 0; } 45% { opacity: .92; } 100% { transform: rotate(12deg) scale(1.08); opacity: .28; } }
@keyframes reduced-fade { from { opacity: .72; } to { opacity: 1; } }
