:root{color:#fff;background:#000;font-family:Segoe UI,Roboto,sans-serif}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:#000 url(/bg_home_milky_way.png) center / 100% 100% no-repeat fixed}button,input,select{font:inherit}.screen{position:relative;min-height:100vh}.screen:before{content:"";position:fixed;inset:0;background:#0000004d;pointer-events:none}.phone{position:relative;z-index:1;width:min(100%,480px);min-height:100vh;margin:0 auto;padding:16px 20px 24px;display:flex;flex-direction:column}.phone-centered{justify-content:center;padding-bottom:12vh}.welcome{margin:8px 0 20px;text-align:center;font-size:clamp(18px,4.2vw,22px);font-weight:700;line-height:1.15;white-space:nowrap}.field-row{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1.35fr);align-items:center;column-gap:8px;width:100%;margin:10px 0 0}.field-row>span{min-width:0;font-size:14px;line-height:1.25}.field-row>input,.field-row>select,.field-row>button,.field-row>.temp-range{width:100%;min-width:0}input,select,.white-btn{height:40px;border:0;border-radius:4px;background:#fff;color:#000;padding:0 10px}select{appearance:none;background-image:linear-gradient(45deg,transparent 50%,#333 50%),linear-gradient(135deg,#333 50%,transparent 50%);background-position:calc(100% - 16px) 17px,calc(100% - 10px) 17px;background-size:6px 6px,6px 6px;background-repeat:no-repeat;padding-right:28px}.white-btn{cursor:pointer;font-size:14px}.temp-range{display:grid;grid-template-columns:1em minmax(0,1fr) 1.7em minmax(0,1fr) 48px;align-items:center;column-gap:6px}.temp-range input{width:100%;min-width:0;text-align:center;padding:0 4px}.range-mark{font-weight:700;font-size:14px;text-align:center}.unit-btn{width:48px;flex:none;font-weight:700;font-size:13px}.status{min-height:16px;margin:8px 0 0;color:#fffc;font-size:12px}.status.error{color:#ffd0d0}.auth-note{margin:0;line-height:1.4;color:#ffffffeb;font-size:15px}.reading-layout{display:flex;align-items:center;gap:2px;margin-top:12px}.reading-layout .thermometer{width:152px;margin:0;flex:none}.reading-layout .reading-card{flex:1;min-width:0;margin-top:0}.reading-card{margin-top:14px;padding:14px;border-radius:6px;background:#fff;color:#000}.reading-card p{margin:0;font-size:15px}.reading-card .stale,.day-over{color:#8a5800}.day-count{display:block;margin-top:8px;padding:0;border:0;background:transparent;color:#000;font:inherit;font-size:15px;text-align:left;cursor:pointer}.reading-card .strong{margin-top:8px;font-size:18px;font-weight:700}.reading-card .strong+.strong{margin-top:2px}.log-row,.chart-zoom{display:flex;gap:8px;margin-top:10px}.log-row .white-btn{flex:1}.text-btn{display:inline-block;margin-top:8px;border:0;background:transparent;color:#fffc;cursor:pointer;font-size:14px;text-decoration:none}.disclaimer,.version{margin:8px 0 0;color:#ffffffb8;font-size:12px;line-height:1.4;text-align:center}.auth-links{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:4px 20px}.auth-links .text-btn{margin-top:0}.stack{display:flex;flex-direction:column;gap:10px;margin-top:12px}.stack input,.stack .white-btn{width:100%}.log-screen{min-height:100vh;min-height:100dvh;background:#000;color:#fff}.log-screen .phone{background:#000}.log-phone{position:relative;height:100vh;height:100dvh;min-height:0;overflow:hidden;padding-bottom:calc(16px + env(safe-area-inset-bottom))}.log-body{flex:1;min-height:0;overflow:auto;padding-bottom:12px}.log-actions{flex-shrink:0;display:flex;gap:8px;padding-top:8px}.log-actions .white-btn{flex:1;min-width:0;background:#111;color:#fff;border:1px solid rgba(255,255,255,.45)}.log-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.log-head h1{margin:0;font-size:22px}.log-table{width:100%;margin-top:16px;border-collapse:collapse;font-size:13px}.log-table th,.log-table td{padding:8px 6px;border:1px solid rgba(255,255,255,.35);text-align:left}.log-empty{margin-top:24px;text-align:center;color:#fff9;white-space:pre-line}.log-loading{padding:0 12px}.progress{position:relative;height:6px;margin-top:16px;overflow:hidden;border-radius:3px;background:#ffffff26}.progress-fill{position:relative;height:100%;overflow:hidden;border-radius:3px;background:#1565c0;transition:width .2s linear}.progress-fill:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent,rgba(255,255,255,.35),transparent);animation:progress-shine 1.2s linear infinite}@keyframes progress-shine{0%{transform:translate(-100%)}to{transform:translate(100%)}}.progress-label{margin:8px 0 0;text-align:center;font-size:12px;color:#fff9}.alert-backdrop{position:fixed;inset:0;z-index:20;display:flex;align-items:center;justify-content:center;padding:24px;background:#000c}.alert-card{width:min(100%,420px);padding:24px;border-radius:8px;background:#fff;color:#111}.alert-card h2{margin:0;font-size:22px}.alert-card p{margin:16px 0 0;white-space:pre-line;line-height:1.4;font-size:16px}.alert-card button{width:100%;height:44px;margin-top:24px;border:0;border-radius:4px;background:#1565c0;color:#fff;font-weight:700;cursor:pointer}.alert-secondary{margin-top:8px;background:#e8e8e8;color:#111}.tips-body{padding-bottom:24px}.tips-heading{margin:22px 0 0;font-size:18px;line-height:1.3}.tips-heading:first-child{margin-top:16px}.tips-copy,.tips-list{margin:12px 0 0;line-height:1.45;color:#ffffffeb}.tips-list{padding-left:1.3em}.tips-list li+li{margin-top:12px}.chart-panel{position:relative;margin-top:12px;padding:8px;border-radius:6px;background:#f5f5f5}.chart-panel .chart-zoom{position:static;justify-content:flex-end;margin:0 0 8px}.temp-chart{width:100%;height:auto;background:#fff;cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none}.temp-chart.dragging{cursor:grabbing}.chart-hint{margin:6px 0 0;color:#616161;font-size:12px;text-align:right}.temp-chart .grid{stroke:#e0e0e0;stroke-width:1}.temp-chart .axis{fill:none;stroke:#616161;stroke-width:1.5}.temp-chart .safety{fill:#4caf502e;stroke:#2e7d32;stroke-dasharray:6 4}.temp-chart .temp-line,.temp-chart .hum-line{fill:none;stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round}.temp-chart .guide{stroke:#424242;stroke-width:1;stroke-dasharray:3 3}.temp-chart .guide-label{fill:#212121;font-size:11px;font-weight:700}.temp-chart .temp-line{stroke:#c62828}.temp-chart .hum-line{stroke:#1565c0;stroke-dasharray:8 5}.temp-chart .tick{fill:#616161;font-size:11px}.temp-chart .tick-temp{fill:#c62828;font-weight:700}.temp-chart .tick-hum{fill:#1565c0;font-weight:700}.chart-zoom button{min-width:44px;height:36px;border:0;border-radius:4px;background:#111;color:#fff;cursor:pointer}.unit-tag{width:48px;flex:none;text-align:center;font-weight:700;font-size:13px}.thermometer{position:relative;width:min(100%,300px);margin:18px auto 0;aspect-ratio:613 / 1024}.thermo-media,.thermo-svg{position:absolute;inset:0;width:100%;height:100%}.thermo-media{object-fit:contain;display:block;pointer-events:none}.thermo-svg{overflow:visible;pointer-events:none}.thermo-tick,.thermo-safe,.thermo-unit{font-family:Segoe UI,Roboto,sans-serif;font-size:48px;font-weight:700;stroke:#000;stroke-width:4px;paint-order:stroke;dominant-baseline:central}.thermo-tick,.thermo-unit{fill:#fff}.thermo-safe{fill:#b8ff6a}.thermo-c{text-anchor:end}.thermo-f{text-anchor:start}
