:root{--bg: #0c0e14;--surface: #13151d;--surface-2: #1b1e28;--border: #272b3a;--text: #f8fafc;--text-muted: rgba(248, 250, 252, .58);--accent: #e85b37;--accent-2: #d4fb44;--success: #10b981;--info: #38bdf8;--purple: #a855f7;--amber: #f59e0b}[data-theme=LAVENDER]{--bg: #f6f3ff;--surface: #ffffff;--surface-2: #efe9ff;--border: #ddd3fb;--text: #1c1535;--text-muted: rgba(28, 21, 53, .62);--accent: #7c3aed;--accent-2: #a855f7}[data-theme=LONGEVITY]{--bg: #070b10;--surface: #0f1620;--surface-2: #16202e;--border: #213044;--text: #eef6ff;--text-muted: rgba(238, 246, 255, .6);--accent: #00cec9;--accent-2: #38bdf8}[data-theme=WELLNESS]{--bg: #f3f7f4;--surface: #ffffff;--surface-2: #e6f0ea;--border: #cbe0d3;--text: #13251b;--text-muted: rgba(19, 37, 27, .62);--accent: #16a34a;--accent-2: #059669}*{box-sizing:border-box;margin:0;padding:0}html,body{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background-color:var(--bg);color:var(--text);min-height:100vh;overflow-x:hidden;-webkit-font-smoothing:antialiased}button,input,select{font-family:inherit}.app-shell{max-width:1120px;margin:0 auto;padding:20px 18px 104px}.top-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px;flex-wrap:wrap}.brand-group{display:flex;align-items:center;gap:12px;min-width:0;flex:1 1 auto}.brand-logo{width:44px;height:44px;border-radius:12px;object-fit:cover;border:1px solid var(--border)}.version-pill{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:999px;font-size:12px;font-weight:700;background:var(--surface-2);border:1px solid var(--border);color:var(--text);cursor:pointer}.card{background:var(--surface);border:1px solid var(--border);border-radius:22px;padding:18px}.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.grid-main{display:grid;grid-template-columns:1fr;gap:16px}@media (min-width: 880px){.grid-main{grid-template-columns:1.15fr .85fr;align-items:start}}.sensor-tile{background:var(--surface-2);border-radius:16px;padding:12px;border:1px solid var(--border)}.tile-header{display:flex;align-items:center;gap:8px;margin-bottom:8px}.icon-badge{width:26px;height:26px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.tile-value-row{display:flex;align-items:center;gap:6px;font-size:18px;font-weight:800}.muted{color:var(--text-muted)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:9px 14px;border-radius:12px;font-size:12px;font-weight:700;border:1px solid var(--border);background:var(--surface-2);color:var(--text);cursor:pointer;transition:opacity .15s ease}.btn:hover{opacity:.9}.btn-primary{background:var(--accent);color:#fff;border-color:transparent}.bottom-nav{position:fixed;bottom:14px;left:50%;transform:translate(-50%);width:min(560px,calc(100% - 28px));background:#1e1f24;border-radius:999px;padding:8px 10px;display:flex;justify-content:space-around;align-items:center;box-shadow:0 12px 30px #00000059;z-index:40}.nav-item{display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border-radius:999px;border:none;background:transparent;color:#ffffffa6;font-size:12px;font-weight:700;cursor:pointer}.nav-item.active{background:#fff;color:#16171b}.nav-item.active svg{color:#e85b37}.input{width:100%;min-height:44px;padding:10px 12px;border-radius:12px;border:1px solid var(--border);background:var(--surface-2);color:var(--text);font-size:14px}@media (max-width: 520px){.app-shell{padding:14px 12px 96px}.card{padding:14px;border-radius:18px}.grid-2{gap:10px}.input,select.input,textarea.input{font-size:16px;min-height:44px}.bottom-nav{width:calc(100% - 20px);padding:6px}.nav-item{min-height:44px;padding:8px 10px;font-size:11px}.btn{min-height:40px;white-space:nowrap}}@keyframes pfFadeUp{0%{opacity:0;transform:translateY(14px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes pfSheetSlideUp{0%{opacity:0;transform:translateY(48px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes pfBackdropFade{0%{opacity:0}to{opacity:1}}@keyframes pfBarGrow{0%{transform:scaleY(0)}to{transform:scaleY(1)}}@keyframes pfLineDraw{0%{stroke-dashoffset:320}to{stroke-dashoffset:0}}.pf-animate-in{animation:pfFadeUp .42s cubic-bezier(.22,1,.36,1) both}.pf-tap-card{transition:transform .18s cubic-bezier(.22,1,.36,1),border-color .2s ease,box-shadow .2s ease}.pf-tap-card:hover{transform:translateY(-2px)}.pf-tap-card:active{transform:scale(.96)}.pf-sheet-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#080a108f;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);display:flex;align-items:flex-end;justify-content:center;padding:16px;z-index:60;animation:pfBackdropFade .22s ease both}@media (min-width: 640px){.pf-sheet-backdrop{align-items:center}}.pf-sheet-panel{max-width:400px;width:100%;animation:pfSheetSlideUp .32s cubic-bezier(.22,1,.36,1) both}.pf-bar-grow{transform-origin:bottom;animation:pfBarGrow .55s cubic-bezier(.22,1,.36,1) both}.pf-line-draw{stroke-dasharray:320;animation:pfLineDraw .85s cubic-bezier(.22,1,.36,1) both}.progress-track{width:100%;height:8px;border-radius:999px;background:var(--surface-2);overflow:hidden}.progress-fill{height:100%;border-radius:999px;transition:width .25s ease}
