/* Bounded Today/routine proof; five existing destinations retained. */
#proof-notice{margin-bottom:12px;font-size:12px}
#home #daily-check-in{margin:0 0 14px;background:linear-gradient(140deg,#1d3d52,#172b40)}
#home>.topfocus{display:grid;grid-template-columns:1fr 1fr;gap:10px}
#home .topfocus .compact-nutrition{min-height:0;padding:14px;justify-content:flex-start}
#home .compact-nutrition .metric,#home .compact-nutrition .metric.unlogged{font-size:25px!important;letter-spacing:-.7px;margin:8px 0}
#home .compact-nutrition .microhead{font-size:10px;min-height:0}
#home .compact-nutrition .hint{font-size:11px;line-height:1.45}
#home .macro-heading,#home .other-macros{display:none}
#home .compact-nutrition .track{margin-top:6px}
#daily-check-in .actions{margin-top:12px}
#start-shoulder{width:100%;font-size:16px;min-height:52px}
#daily-check-in summary{min-height:44px;padding:12px 0}
dialog{background:#152338;color:#f0f5ff;border:1px solid #52708d;border-radius:20px;padding:20px;width:min(620px,calc(100vw - 24px));max-height:calc(100dvh - 30px);box-sizing:border-box;overflow:auto;overscroll-behavior:contain}
dialog::backdrop{background:#020a17d9}
dialog h2{font-size:23px;margin:0}dialog h3{font-size:23px;line-height:1.25;margin:14px 0;overflow-wrap:anywhere}
dialog p,dialog li,dialog dd{line-height:1.55;overflow-wrap:anywhere}
dialog details summary{padding:10px 0;min-height:44px;box-sizing:border-box}
.routine-top{display:flex;gap:14px;justify-content:space-between;align-items:center}
.routine-top button{flex-shrink:0}
.routine-dose{font-size:21px;color:#f2d997;font-weight:700}
dialog .field{display:grid;gap:8px;margin-top:14px}
dialog input{box-sizing:border-box;width:100%;padding:10px;min-width:0}
.routine-controls{display:grid;grid-template-columns:1fr 1fr 1.5fr;gap:8px;position:sticky;bottom:-20px;background:#152338;padding:12px 0 calc(12px + env(safe-area-inset-bottom))}
.routine-controls button{padding:10px 4px;font-size:14px;min-height:48px}
#routine-finish,#routine-discard{width:100%;margin:8px 0;min-height:48px}
.routine-drawing img{display:block;background:white;width:100%;height:auto;max-width:100%}
dialog dl{display:grid;grid-template-columns:82px minmax(0,1fr);gap:10px;font-size:14px}
dialog dt{color:#aebdd1}dialog dd{margin:0}
#routine-save-state{padding:12px;border:1px solid #6a7e93;border-radius:10px;color:#ffdfac;font-size:14px}
#routine-history-list .list-item{flex-wrap:wrap}
[hidden]{display:none!important}
@media(min-width:1000px){#home>#daily-check-in{grid-column:1/-1;grid-row:4}#home>.topfocus{grid-row:5}#home>.meals-card{grid-row:6/8}#home>.ward-glance{grid-row:6}#home>.activity-glance{grid-row:7}}
@media(max-width:359px){#home .topfocus .compact-nutrition{padding:12px}#home .compact-nutrition .metric,#home .compact-nutrition .metric.unlogged{font-size:21px!important}dialog{padding:16px}.routine-top h2{font-size:20px}}
/* Native Safari menulists need an explicit height to honour the touch target. */
select,.field select{height:48px;min-height:48px;box-sizing:border-box}
