/* Scoped to time entry; existing weight input, forms and page layout stay intact. */
#mobileTimeDialog.has-time-wheels .mobile-time-columns {
  grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
#mobileTimeDialog.has-time-wheels .mobile-time-columns > input[hidden] { display: none; }
#mobileTimeDialog .time-wheel-unit { min-width: 0; }
#mobileTimeDialog .time-wheel-label { font-size: 16px; line-height: 24px; font-weight: 700; }
#mobileTimeDialog .time-wheel {
  height: 220px;
  box-sizing: border-box;
  padding: 88px 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  border-radius: 10px;
  background: linear-gradient(to bottom, transparent 88px, #edf2e5 88px, #edf2e5 132px, transparent 132px);
  -webkit-mask-image: linear-gradient(transparent, #000 35%, #000 65%, transparent);
  mask-image: linear-gradient(transparent, #000 35%, #000 65%, transparent);
}
#mobileTimeDialog .time-wheel::-webkit-scrollbar { display: none; }
#mobileTimeDialog .time-wheel:focus-visible { outline: 2px solid #647e50; outline-offset: 2px; }
#mobileTimeDialog .time-wheel-option {
  box-sizing: border-box;
  height: 44px;
  min-height: 44px;
  line-height: 44px;
  scroll-snap-align: center;
  font-size: 25px;
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  color: #819075;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
#mobileTimeDialog .time-wheel-option[aria-selected="true"] { font-size: 32px; font-weight: 700; color: #30432e; }
#mobileTimeDialog.has-time-wheels .mobile-time-colon { padding-top: 24px; }

/* Keep the existing time-field presentation after removing native time controls. */
input[data-app-time][aria-haspopup=dialog]{cursor:pointer;caret-color:transparent}
#recordForm .meal-time-label input[data-app-time]{min-width:0;min-height:44px;font-size:16px;padding:8px 5px;color:var(--ink);font-variant-numeric:tabular-nums}
