:root{--bg:#f4f7f6;--card:#fff;--text:#1f2937;--muted:#6b7280;--border:#e5e7eb;--accent:#0f766e;--accent-text:#fff;--danger:#b91c1c;--caution-bg:#fef9c3;--caution-text:#854d0e;--warning-bg:#fee2e2;--warning-text:#991b1b;--ok-bg:#dcfce7;--ok-text:#166534;--info-bg:#dbeafe;--info-text:#1e3a8a;--gear-light:#a7f3ea;--gear-mid:#14b8a6;--gear-dark:#0b5c55;--gear-hole-light:#4b5563;--gear-hole-dark:#111827;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;font-family:system-ui,-apple-system,Segoe UI,Hiragino Sans,Noto Sans JP,sans-serif}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial}}:root[data-theme=light]{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}:root[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#0f172a;--card:#1e293b;--text:#e5e7eb;--muted:#94a3b8;--border:#334155;--accent:#2dd4bf;--accent-text:#042f2e;--danger:#f87171;--caution-bg:#422006;--caution-text:#fde68a;--warning-bg:#450a0a;--warning-text:#fecaca;--ok-bg:#052e16;--ok-text:#bbf7d0;--info-bg:#172554;--info-text:#bfdbfe;--gear-light:#d5fff9;--gear-mid:#2dd4bf;--gear-dark:#0f766e;--gear-hole-light:#94a3b8;--gear-hole-dark:#0b1220}@media (prefers-color-scheme:dark){:root:not([data-theme]){--bg:#0f172a;--card:#1e293b;--text:#e5e7eb;--muted:#94a3b8;--border:#334155;--accent:#2dd4bf;--accent-text:#042f2e;--danger:#f87171;--caution-bg:#422006;--caution-text:#fde68a;--warning-bg:#450a0a;--warning-text:#fecaca;--ok-bg:#052e16;--ok-text:#bbf7d0;--info-bg:#172554;--info-text:#bfdbfe;--gear-light:#d5fff9;--gear-mid:#2dd4bf;--gear-dark:#0f766e;--gear-hole-light:#94a3b8;--gear-hole-dark:#0b1220}}*{box-sizing:border-box}html{-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%;-webkit-tap-highlight-color:transparent}body{background:var(--bg);min-height:100dvh;color:var(--text);overflow-wrap:anywhere;margin:0;line-height:1.5}.app{max-width:560px;padding:calc(12px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) calc(var(--dock-h,64px) + 16px) max(16px, env(safe-area-inset-left));flex-direction:column;gap:14px;margin:0 auto;display:flex}h1{white-space:nowrap;min-width:0;margin:2px 0 0;font-size:clamp(1.45rem,6vw,2.2rem);line-height:1.1}h2{margin:0;font-size:1rem}.card{background:var(--card);border:1px solid var(--border);border-radius:14px;flex-direction:column;gap:10px;padding:14px;display:flex}.row{justify-content:space-between;align-items:center;gap:8px;display:flex}.big{margin:0;font-size:2rem;font-weight:700}.unit{color:var(--muted);font-size:1rem;font-weight:400}p{margin:0}.muted{color:var(--muted);font-size:.875rem}.small{font-size:.75rem}.error{color:var(--danger);font-size:.875rem}.ok{background:var(--ok-bg);color:var(--ok-text);border-radius:8px;padding:6px 10px;font-size:.875rem}.banner{border-radius:10px;padding:8px 12px;font-size:.9rem}.banner-none{background:var(--ok-bg);color:var(--ok-text)}.banner-caution{background:var(--caution-bg);color:var(--caution-text)}.banner-warning{background:var(--warning-bg);color:var(--warning-text);font-weight:600}input[type=text],input[type=number],input[type=datetime-local],select{width:100%;min-height:44px;font:inherit;border:1px solid var(--border);background:var(--bg);color:var(--text);border-radius:10px;padding:10px 12px;font-size:16px}button{font:inherit;cursor:pointer;touch-action:manipulation}button.primary{background:var(--accent);color:var(--accent-text);border:0;border-radius:10px;min-height:48px;padding:12px;font-weight:600}button.primary:disabled{opacity:.4;cursor:not-allowed}button.link{color:var(--accent);white-space:nowrap;background:0 0;border:0;min-height:44px;padding:4px 8px}button.link.danger{color:var(--danger)}button.link:disabled{color:var(--muted)}.file-btn{border:1px dashed var(--border);cursor:pointer;border-radius:10px;align-items:center;min-height:44px;padding:8px 12px;display:inline-flex}.preview{object-fit:contain;border-radius:10px;align-self:flex-start;max-width:100%;max-height:220px}.seg{border:1px solid var(--border);border-radius:8px;display:flex;overflow:hidden}.seg button{min-height:36px;color:var(--muted);background:0 0;border:0;padding:4px 10px;font-size:.8rem}.seg button.on{background:var(--accent);color:var(--accent-text)}.chart{touch-action:pan-y;-webkit-user-select:none;user-select:none;width:100%;min-width:0}.history{flex-direction:column;margin:0;padding:0;list-style:none;display:flex}.history li{border-top:1px solid var(--border);padding:8px 0}.history li:first-child{border-top:0}.dot{border-radius:50%;width:10px;height:10px;margin-right:6px;display:inline-block}.note{color:var(--muted);font-size:.875rem}.thumb{object-fit:cover;border-radius:8px;width:96px;height:96px;margin-top:6px}.slider{flex-direction:column;gap:6px;display:flex}.slider-value{align-items:baseline;gap:10px;display:flex}.slider-num{color:var(--c);font-size:2.25rem;font-weight:700;line-height:1}.slider-label{font-size:1rem;font-weight:600}.slider input[type=range]{width:100%;height:44px;accent-color:var(--c);touch-action:pan-y;margin:0}.slider-ticks{color:var(--muted);justify-content:space-between;padding:0 8px;font-size:.8rem;display:flex}.editor{flex-direction:column;gap:10px;padding-top:4px;display:flex}.field{color:var(--muted);flex-direction:column;gap:4px;font-size:.85rem;display:flex}.field input{color:var(--text)}.two{align-items:flex-end;gap:8px;display:flex}.grow{flex:1;min-width:0}select{appearance:auto}.med-name{align-items:center;gap:8px;display:inline-flex}.med-actions{flex:none;align-items:center;display:inline-flex}button.link.move-button{min-width:36px;padding:4px 6px}.legend{color:var(--muted);flex-wrap:wrap;gap:4px 14px;margin:0;padding:0;font-size:.8rem;list-style:none;display:flex}.legend li{align-items:center;gap:5px;display:inline-flex}.swatch{border-radius:2px;width:14px;height:4px;display:inline-block}.topbar{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;min-width:0;padding:4px 2px 0;display:grid}.topbar>div:first-child{min-width:0}.topbar-actions{align-items:center;gap:4px;min-width:0;display:flex}.eyebrow{letter-spacing:.08em;color:var(--muted);margin:0;font-size:11px}.icon-button{width:44px;height:44px;color:var(--text);background:0 0;border:0;font-size:1.4rem;line-height:1}.icon-button:hover,.icon-button:focus-visible{color:var(--accent)}.google-button{border:1px solid var(--border);background:var(--card);min-width:0;min-height:44px;color:var(--text);white-space:nowrap;border-radius:999px;align-items:center;gap:6px;padding:8px 12px 8px 10px;font-size:.8rem;display:inline-flex;box-shadow:0 6px 16px #0000001f}.google-button:disabled{opacity:.7}.google-button.google-button-live{border-color:#22c55e;animation:1s ease-in-out infinite live-glow}@keyframes live-glow{0%,to{box-shadow:0 6px 16px #0000001f,0 0 #22c55e26}50%{box-shadow:0 6px 16px #0000001f,0 0 10px 3px #22c55ebf}}@media (prefers-reduced-motion:reduce){.google-button.google-button-live{animation:none;box-shadow:0 6px 16px #0000001f,0 0 0 2px #22c55e80}}.google-text.connected{white-space:pre-line;font-size:.66rem;line-height:1.2}.google-text{text-overflow:ellipsis;min-width:0;overflow:hidden}.google-mark{background:50%/cover;border-radius:50%;flex:none;justify-content:center;align-items:center;width:24px;height:24px;display:inline-flex}.google-logo{background:#fff;border-radius:50%;width:100%;height:100%;padding:3px;box-shadow:inset 0 0 0 1px #0000001f}.modal-backdrop{z-index:10;background:#00000080;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.modal-card{background:var(--card);width:100%;max-width:400px;color:var(--text);border:1px solid var(--border);border-radius:14px;flex-direction:column;gap:12px;padding:16px;display:flex}button.secondary,button.danger-btn{background:0 0;border-radius:10px;min-height:48px;padding:10px;font-weight:600}button.secondary{border:1px solid var(--accent);color:var(--accent)}button.danger-btn{border:1px solid var(--danger);color:var(--danger)}.banner{cursor:pointer}.now{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px 12px;display:flex}.big-pressure{font-size:clamp(2.6rem,11vw,3.4rem);line-height:1.1}.weather{color:#fff;text-shadow:0 1px 2px #00000073;background:#1c6e22;border:1px solid #ffffff2e;border-radius:12px;align-items:center;gap:10px;padding:8px 12px;transition:background-color .5s;display:flex}.weather-main{flex-direction:column;align-items:center;gap:2px;display:flex}.weather-icon{font-size:2.6rem;line-height:1.1}.weather-label{color:#fff;font-size:.8rem;font-weight:600}.weather-meta{white-space:nowrap;flex-direction:column;gap:2px;font-size:.9rem;line-height:1.4;display:flex}@media (width<=379px){.app{gap:12px}.card{padding:12px}.big{font-size:1.75rem}.row{flex-wrap:wrap}}@media (width>=600px){.app{padding-top:32px}}textarea.sticky{resize:vertical;width:100%;min-height:72px;font:inherit;color:#422006;background:#fef08a;border:0;border-radius:4px 4px 16px;padding:10px 12px;font-size:16px;line-height:1.5;box-shadow:0 2px 6px #0003}textarea.sticky::placeholder{color:#a16207}.sticky-note{color:#422006;white-space:pre-wrap;background:#fef08a;border-radius:4px 4px 16px;margin:4px 0 0;padding:10px 12px;font-size:.9rem;box-shadow:0 2px 6px #00000026}.back-button{border:1px solid var(--accent);min-height:44px;color:var(--accent);white-space:nowrap;background:0 0;border-radius:999px;padding:8px 18px;font-weight:600}.back-button:hover,.back-button:focus-visible{background:var(--accent);color:var(--accent-text)}.chart-loading{min-height:320px}.help-button{color:var(--accent);border:2px solid var(--accent);border-radius:50%;justify-content:center;align-items:center;width:40px;height:40px;font-size:1.25rem;font-weight:800;text-decoration:none;display:inline-flex}.help-card{color:var(--text);flex-direction:row;align-items:center;gap:12px;text-decoration:none}.help-mark{background:var(--accent);width:40px;height:40px;color:var(--accent-text);border-radius:50%;flex:none;justify-content:center;align-items:center;font-size:1.3rem;font-weight:800;display:inline-flex}.privacy-link{text-align:center;font-size:.85rem}.privacy-link a{color:var(--muted)}.theme-row{margin-top:12px}.language-select{width:auto;min-height:44px;font:inherit;border:1px solid var(--border);background:var(--bg);color:var(--text);border-radius:10px;padding:8px 12px;font-size:16px}.popup-photo{object-fit:contain;border-radius:10px;width:100%;max-height:60vh}.gear{filter:drop-shadow(0 2px 1.5px #0006);margin:0 auto;transition:transform .4s;display:block}.icon-button:hover .gear,.icon-button:focus-visible .gear{transform:rotate(45deg)}@media (prefers-reduced-motion:reduce){.gear{transition:none}}.spark{width:100%;height:auto;display:block;overflow:visible}.spark-line{fill:none;stroke:var(--accent);stroke-width:2px;stroke-linejoin:round;stroke-linecap:round}.spark-future{stroke-dasharray:3 3;opacity:.85}.spark-now-line{stroke:var(--muted);stroke-width:1px;stroke-dasharray:2 2;opacity:.6}.spark-dot{fill:var(--card);stroke:var(--accent);stroke-width:1.6px}.spark-dot-now{fill:var(--accent);stroke:var(--card);stroke-width:1.5px}.spark-label{fill:var(--muted);font-size:9px}.spark-value{fill:var(--text);paint-order:stroke;stroke:var(--card);stroke-width:3px;stroke-linejoin:round;font-size:9.5px;font-weight:600}.brand{align-items:center;gap:10px;min-width:0;display:flex}.brand-logo{flex:none;width:56px;height:56px}.brand-text{min-width:0}.row>.link{margin-left:auto}.zoom{gap:6px;display:flex}.zoom button{border:1px solid var(--border);background:var(--bg);min-width:44px;min-height:40px;color:var(--text);border-radius:10px;font-size:1.2rem;line-height:1}.zoom button:disabled{opacity:.35;cursor:not-allowed}.seg{flex-wrap:wrap;align-self:flex-start}.swatches{grid-template-columns:repeat(4,26px);gap:8px;display:grid}.swatch-btn{border:2px solid var(--card);width:26px;height:26px;box-shadow:0 0 0 1px var(--border);border-radius:50%;padding:0}.swatch-btn[aria-checked=true]{box-shadow:0 0 0 2px var(--text)}.interval-color{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:12px 20px;display:flex}.interval-color>.field:first-child{flex:11em}.export-buttons{flex-wrap:wrap;gap:8px;display:flex}.export-buttons button{flex:auto}.when-field{flex-direction:column;align-items:flex-start;gap:4px;display:flex}.when-field p{margin:0}.when-box{border:1px solid var(--border);background:var(--card);border-radius:10px;justify-content:space-between;align-items:center;gap:8px;width:100%;min-height:44px;padding:8px 12px;display:flex;position:relative}.when-box.custom{border-color:var(--accent)}.when-label{color:var(--muted);font-size:.85rem}.when-time{font-variant-numeric:tabular-nums;font-weight:700}.when-box .when-input{opacity:0;cursor:pointer;width:100%;height:100%;min-height:0;padding:0;position:absolute;inset:0}.when-box:focus-within{outline:2px solid var(--accent);outline-offset:2px}.banner-info{background:var(--info-bg);color:var(--info-text)}.modal-card{max-height:88dvh;overflow-y:auto}.advice-section h3{margin:4px 0 6px;font-size:1rem}.advice-section p{margin:0 0 8px;font-size:.9rem}.advice-section ul{flex-direction:column;gap:8px;margin:0;padding-left:1.2em;font-size:.9rem;display:flex}.modal-card>*{flex-shrink:0}.form-title{font-size:1.3rem;font-weight:700;line-height:1.3}.pressure-bottom{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);align-items:stretch;gap:10px;display:grid}.pressure-bottom-single{grid-template-columns:1fr}.med-status{border:1px solid var(--border);background:var(--bg);border-radius:12px;flex-direction:column;justify-content:center;gap:2px;padding:10px 9px;display:flex}.med-status-title{color:var(--muted);margin:0;font-size:.85rem;font-weight:600}.med-status-time{margin:0;font-size:1.5rem;font-weight:700;line-height:1.25}.pressure-advice{flex-direction:column;justify-content:center;gap:8px;display:flex}.pressure-advice .banner{text-wrap:balance;word-break:auto-phrase;margin:0;padding:10px 12px;font-size:1.1rem;font-weight:600;line-height:1.4}.pressure-advice .secondary{border-radius:8px;min-height:36px;padding:6px 10px;font-size:.85rem}@media (width<=389px){.pressure-bottom{grid-template-columns:1fr}}.nowrap{white-space:nowrap}.med-status-empty{margin:0;font-size:1rem;font-weight:600;line-height:1.5}.interval-row{align-items:center;gap:8px;display:flex}.interval-row input{width:7em}.name-row{align-items:center;gap:10px;display:flex}.name-row input{flex:1;min-width:0}.med-status-drug{color:var(--text);font-size:.95rem;font-weight:700}.med-status-next{color:var(--muted);margin:2px 0 0;font-size:.75rem;line-height:1.4}.med-status-next strong{color:var(--text)}@keyframes spark-blink{0%,to{opacity:1}50%{opacity:.25}}.spark-dot-now{animation:2.4s ease-in-out infinite spark-blink}@media (prefers-reduced-motion:reduce){.spark-dot-now{animation:none}}@keyframes banner-blink{0%,to{background-color:var(--blink-from)}50%{background-color:color-mix(in srgb, var(--blink-from) 22%, var(--card))}}.pressure-advice .banner-caution{--blink-from:var(--caution-bg);animation:2.8s ease-in-out infinite banner-blink}.pressure-advice .banner-warning{--blink-from:var(--warning-bg);animation:2.8s ease-in-out infinite banner-blink}@media (prefers-reduced-motion:reduce){.pressure-advice .banner-caution,.pressure-advice .banner-warning{animation:none}}@media (width<=430px){.now{flex-wrap:nowrap;justify-content:space-between;gap:8px}.big-pressure{min-width:0;font-size:clamp(2.1rem,9.5vw,3.4rem)}.big-pressure .unit{font-size:.85rem}.weather{flex:none;gap:6px;padding:6px 8px}.weather-icon{font-size:2rem}.weather-label{text-align:center;max-width:5.5em;font-size:.7rem;line-height:1.2}.weather-meta{font-size:.8rem}}@media (width<=339px){.now{flex-wrap:wrap}}.location-warning{background:var(--warning-bg);color:var(--warning-text);border-radius:12px;flex-direction:column;gap:8px;padding:12px;display:flex}.location-warning-text{margin:0;font-size:1.05rem;font-weight:700;line-height:1.5}.location-warning .row{flex-wrap:wrap;justify-content:stretch}.location-warning .row button{flex:8em;min-height:44px}.location-warning .muted{color:inherit;opacity:.8}.loc-platform{margin:4px 0 0;font-size:1rem}.loc-steps{flex-direction:column;gap:8px;margin:0;padding-left:1.4em;font-size:.9rem;line-height:1.6;display:flex}.ad-banner{text-align:center;max-height:100px;overflow:hidden}.ad-banner ins{max-height:100px;display:block}.view-hidden{display:none!important}.tab-panel{flex-direction:column;gap:14px;display:flex}.bottom-dock{--dock-bg:var(--card);z-index:5;background:var(--dock-bg);border-top:1px solid var(--border);width:min(100%,560px);padding-bottom:env(safe-area-inset-bottom);position:fixed;bottom:0;left:50%;transform:translate(-50%);box-shadow:0 -6px 18px #0f1e3c1f}.bottom-dock .ad-banner{border-bottom:1px solid var(--border)}.bottom-dock .ad-banner:not(:has(ins[data-ad-status=filled])){border-bottom:0}.ad-banner ins[data-ad-status=unfilled]{display:none!important}.bottom-nav{grid-template-columns:repeat(5,minmax(0,1fr));display:grid}.nav-item{appearance:none;color:var(--muted);min-height:58px;font:inherit;letter-spacing:-.04em;white-space:nowrap;cursor:pointer;-webkit-tap-highlight-color:transparent;background:0 0;border:0;border-radius:0;flex-direction:column;justify-content:center;align-items:center;gap:3px;padding:8px 1px 6px;font-size:clamp(.54rem,2.5vw,.62rem);font-weight:700;line-height:1.2;text-decoration:none;display:flex;position:relative}.nav-item .nav-icon{width:26px;height:26px}.nav-icon .cut{fill:var(--dock-bg)}.nav-icon .cutline{fill:none;stroke:var(--dock-bg)}.nav-item.active{color:var(--accent)}.nav-item.active:before{content:"";background:var(--accent);border-radius:0 0 3px 3px;height:3px;position:absolute;top:0;left:24%;right:24%}.nav-item:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.dash-period{margin:4px 0 12px;font-size:.78rem}.dash-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.dash-stat{background:var(--bg);border:1px solid var(--border);text-align:center;border-radius:12px;flex-direction:column;align-items:center;padding:10px 8px;display:flex}.dash-stat strong{font-size:1.6rem;line-height:1.2}.dash-stat span{color:var(--muted);font-size:.75rem}.dash-stat-wide{grid-column:1/-1}.dash-heading{margin:18px 0 8px;font-size:.9rem}.dash-row{grid-template-columns:minmax(0,110px) minmax(0,1fr) 36px;align-items:center;gap:8px;margin-bottom:7px;font-size:.8rem;display:grid}.dash-name{align-items:center;gap:6px;min-width:0;display:flex}.dash-name>span{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.dash-name i{border-radius:50%;flex:none;width:10px;height:10px}.dash-bar{background:var(--border);border-radius:5px;height:10px;overflow:hidden}.dash-bar>span{border-radius:5px;height:100%;display:block}.dash-count{text-align:right;font-variant-numeric:tabular-nums}
