.nd-page{margin:0;min-height:100dvh;background:radial-gradient(ellipse at 5% 8%,#d8eaf3,transparent 48%),radial-gradient(ellipse at 95% 68%,#e9e0f5,transparent 52%),#f3f4f7;color:#293441;font-family:-apple-system,BlinkMacSystemFont,'PingFang HK',sans-serif}.nd-page main{max-width:680px;margin:auto;padding:calc(max(env(safe-area-inset-top,0px),var(--rv-native-safe-top,0px)) + 14px) 18px calc(max(env(safe-area-inset-bottom,0px),var(--rv-native-safe-bottom,0px)) + 24px)}.nd-header{display:flex;justify-content:space-between;align-items:center}.nd-header h1{font-size:23px}.nd-card,.nd-dialog{border:1px solid #ffffffd9;background:linear-gradient(135deg,#ffffffba,#ffffff65);box-shadow:inset 0 1px 0 #fff,0 8px 28px #4b617610;backdrop-filter:blur(24px) saturate(150%);-webkit-backdrop-filter:blur(24px) saturate(150%);border-radius:24px;padding:18px;box-sizing:border-box}.nd-card{margin:12px 0}.nd-dialog{position:fixed;inset:0;margin:auto;width:min(480px,92vw);max-height:85dvh;overflow:auto;color:#293441;font:14px/1.6 -apple-system,BlinkMacSystemFont,sans-serif;background:linear-gradient(135deg,#f5fbfff5,#eaeff8f0)}.nd-dialog::backdrop{background:#202e4140;backdrop-filter:blur(5px)}.nd-dialog h2{margin-top:0;font-size:22px}.nd-button{border:1px solid #ffffffc9;border-radius:15px;background:#ffffff95;color:#395b79;padding:11px 15px;min-height:44px;font:13px -apple-system,BlinkMacSystemFont,sans-serif;cursor:pointer;margin:4px}.nd-button:disabled{opacity:.5;cursor:default}.nd-note{font-size:12px;line-height:1.7;color:#687788;white-space:pre-wrap}.nd-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px;margin:12px 0;min-height:32px}.nd-toggle input{width:36px;height:22px;accent-color:#4e9b8b;flex:none}.nd-value{display:block;font-size:23px;font-weight:500;margin:12px 0;overflow-wrap:anywhere}.nd-readings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.nd-readings .nd-card{margin:0}.nd-record{padding:12px 0;border-bottom:1px solid #7b8a9b26;font-size:12px;overflow-wrap:anywhere}.nd-card summary{cursor:pointer;font-size:14px}.nd-page button:focus-visible,.nd-dialog button:focus-visible{outline:2px solid #4e779a;outline-offset:2px}@media(max-width:340px){.nd-readings{grid-template-columns:1fr}}@media(prefers-reduced-transparency:reduce){.nd-card,.nd-dialog{backdrop-filter:none;-webkit-backdrop-filter:none;background:#f4f7fc}}


/* Health uses the same wallpaper and liquid-glass surface as Memory. */
#healthApp.nd-health{--nd-ink:#fff;--nd-muted:#ffffffc7;--nd-line:#ffffff45;--nd-glass:#ffffff20;position:fixed;inset:0;max-width:none;height:100dvh;padding:0!important;overflow:hidden;background:#64856d;color:var(--nd-ink);box-sizing:border-box}
#healthApp[data-ink=dark]{--nd-ink:#17251e;--nd-muted:#253b32cc;--nd-line:#ffffff80;--nd-glass:#ffffff48}
.nd-health *{box-sizing:border-box}.nd-wall,.nd-optics{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.nd-wall{z-index:0;background:center/cover no-repeat}.nd-optics{z-index:1}.nd-shell{position:relative;z-index:2;height:100%;overflow:auto;overscroll-behavior:contain;padding:calc(max(env(safe-area-inset-top,0px),var(--rv-native-safe-top,0px)) + 12px) max(18px,calc((100vw - 680px)/2)) calc(max(env(safe-area-inset-bottom,0px),var(--rv-native-safe-bottom,0px)) + 28px);scrollbar-width:none}.nd-shell::-webkit-scrollbar{display:none}
.nd-health .nd-header{height:46px;gap:16px;color:inherit}.nd-health .nd-header>span{font-size:15px;font-weight:600}.nd-health svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.nd-health .nd-header .nd-button{display:grid;place-items:center;width:44px;height:44px;min-height:44px;border-radius:50%;margin:0;padding:0;color:inherit}
.nd-health .nd-card,.nd-health .nd-avatar,.nd-shortcut-icon,.nd-health .nd-header .nd-button{border:1px solid var(--nd-line);background:var(--nd-glass);box-shadow:inset 0 1px 1px #ffffff80,0 8px 24px #183b2412;backdrop-filter:blur(18px) saturate(145%);-webkit-backdrop-filter:blur(18px) saturate(145%)}
.nd-hero{text-align:center;padding:28px 0 22px}.nd-avatar{display:grid;place-items:center;width:clamp(145px,42vw,190px);aspect-ratio:1;border-radius:50%;margin:0 auto 22px;padding:5px}.nd-avatar img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}.nd-avatar>svg{width:65px;height:65px;stroke-width:1.3}.nd-hero h1{font-size:32px;letter-spacing:-.04em;margin:0 0 10px;font-weight:650}.nd-subtitle{font-size:14px;line-height:1.6;margin:0 0 8px;color:var(--nd-muted)}.nd-health .nd-note{color:var(--nd-muted);font-size:12px;line-height:1.7}.nd-hero>.nd-note{font-size:11px;min-height:20px;margin:0}
.nd-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:3px 0 29px}.nd-shortcuts>.nd-button{display:flex;flex-direction:column;gap:9px;align-items:center;min-width:0;margin:0;padding:0;border:0;background:none;color:inherit;font:inherit}.nd-shortcut-icon{display:grid;place-items:center;width:100%;max-width:85px;aspect-ratio:1;border-radius:50%}.nd-shortcut-icon svg{width:28px;height:28px}.nd-shortcuts strong{font-size:11px;font-weight:600}.nd-group{scroll-margin-top:20px;margin:0 0 28px}.nd-group-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 4px 12px}.nd-group-heading h2{font-size:21px;letter-spacing:-.03em;font-weight:600;margin:0}.nd-group-heading .nd-note{font-size:11px}.nd-health .nd-readings{gap:13px}.nd-health .nd-card{border-radius:27px;min-height:126px;margin:0;padding:20px 17px;color:inherit}.nd-health .nd-card>.nd-note{font-size:12px}.nd-health .nd-value{font-size:25px;font-weight:550;letter-spacing:-.03em;margin:14px 0 3px}.nd-health .nd-card p{font-size:10px;line-height:1.8;margin:8px 0 0}.nd-optics-ready .nd-card,.nd-optics-ready .nd-avatar,.nd-optics-ready .nd-shortcut-icon,.nd-optics-ready .nd-header>.nd-button{background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none}
.nd-dialog{padding:24px 20px;border-radius:30px;max-height:calc(100dvh - max(env(safe-area-inset-top,0px),var(--rv-native-safe-top,0px)) - max(env(safe-area-inset-bottom,0px),var(--rv-native-safe-bottom,0px)) - 40px);width:min(370px,calc(100vw - 32px))}.nd-settings-group{background:#ffffff65;border-radius:20px;padding:6px 14px;margin:15px 0}.nd-toggle input{appearance:none;-webkit-appearance:none;position:relative;width:44px;height:27px;border-radius:20px;background:#c5c5cd;cursor:pointer}.nd-toggle input::before{content:'';position:absolute;width:21px;height:21px;left:3px;top:3px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0002;transition:transform .16s}.nd-toggle input:checked{background:#34c759}.nd-toggle input:checked::before{transform:translateX(17px)}.nd-toggle input:disabled{opacity:.45}
@media(prefers-reduced-transparency:reduce){.nd-health .nd-card,.nd-health .nd-avatar,.nd-shortcut-icon,.nd-health .nd-header .nd-button{background:#293b32;backdrop-filter:none;-webkit-backdrop-filter:none}.nd-optics{display:none}}
