/* Time picker (js/ui/timepick.js). Prefix .tp-. The field looks like the input it replaces; the wheels sit in a sheet. */

/* the field: a button that reads like an input */
.tp-field { display: flex; align-items: center; justify-content: flex-start; cursor: pointer; text-align: start; font-variant-numeric: tabular-nums; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
.tp-field__time { min-width: 0; overflow: hidden; text-overflow: clip; }
.tp-field.is-empty { color: var(--faint); }
.tp-field:active { transform: scale(0.98); }

/* the wheels */
.tp { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 4px 0 2px; user-select: none; -webkit-user-select: none; }
.tp-wheels { position: relative; display: flex; align-items: stretch; justify-content: center; gap: 4px; width: 100%; max-width: 340px; }
.tp-band { position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); border-radius: var(--r-m, 14px); background: rgb(var(--cta-rgb) / 0.16); box-shadow: inset 0 0 0 1px rgb(var(--cta-rgb) / 0.42); pointer-events: none; }
.tp-col {
  position: relative; flex: 1 1 0; min-width: 64px; max-width: 110px; height: 220px;
  overflow-y: auto; overscroll-behavior: contain; scroll-snap-type: y mandatory; scrollbar-width: none;
  border-radius: var(--r-m, 14px); outline-offset: -2px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 34%, #000 66%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 34%, #000 66%, transparent 100%);
}
.tp-col::-webkit-scrollbar { display: none; }
.tp-col:focus-visible { -webkit-mask-image: none; mask-image: none; }
.tp-list { padding: 88px 0; }
.tp-item { height: 44px; display: grid; place-items: center; scroll-snap-align: center; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; color: var(--muted); font-variant-numeric: tabular-nums; cursor: pointer; transition: color var(--dur-fast, .15s), transform var(--dur-fast, .15s); }
.tp-item.is-cur { color: var(--fg); font-weight: 700; transform: scale(1.08); }
.tp-sep { display: grid; place-items: center; font-size: 22px; font-weight: 700; color: var(--fg); padding-bottom: 2px; }
.tp-actions { display: flex; gap: 10px; width: 100%; max-width: 340px; }
.tp-actions .btn { flex: 1 1 0; min-height: 50px; }
@media (prefers-reduced-motion: reduce) { .tp-item { transition: none; } .tp-item.is-cur { transform: none; } }
.tp-field { font-family: inherit; }
.su-time.tp-field, .st-num--time.tp-field { justify-content: center; text-align: center; }

/* v7 (owner): the band is the see-through grey used everywhere (not blue), and a column with the keyboard focus shows it
   by its number taking the app colour — the second rectangle around the column looked like a bug */
.tp-band { background: rgb(var(--fg-rgb) / 0.08); box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / 0.10); }
.tp-col:focus-visible { outline: none; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 34%, #000 66%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 34%, #000 66%, transparent 100%); }
.tp-col:focus-visible .tp-item.is-cur { color: var(--accent); }
