/* The time picker (lib/time_picker.js): a clock. The time in big numbers with AM / PM above, the clock face with a hand to
   the chosen number, and Cancel / OK underneath. Colours from the theme tokens. */
.time-picker-box {
  padding-right: 2.6rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23667085'%3E%3Cpath d='M8 3.5a.5.5 0 0 0-1 0V9a.5.5 0 0 0 .252.434l3.5 2a.5.5 0 0 0 .496-.868L8 8.71z'/%3E%3Cpath d='M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16m7-8A7 7 0 1 1 1 8a7 7 0 0 1 14 0'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 1.05rem;
}
.tp-panel {
  position: fixed;
  z-index: 1400; /* above pop-up forms */
  width: 16rem;
  padding: 0.8rem 0.9rem 0.4rem;
  color: var(--lb-ink);
  background: var(--lb-surface);
  border: 1px solid var(--lb-border);
  border-radius: 22px;
  box-shadow: var(--lb-shadow-lg);
  user-select: none;
  touch-action: none;
}
.tp-panel[hidden] { display: none; }
.tp-kicker { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lb-muted); }
.tp-display { display: flex; align-items: center; gap: 0.1rem; margin-top: 0.2rem; }
.tp-part { padding: 0.05rem 0.35rem; font-size: 2rem; font-weight: 500; line-height: 1.15; font-variant-numeric: tabular-nums; color: var(--lb-muted); background: transparent; border: 0; border-radius: 12px; }
.tp-part.is-active { color: var(--lb-primary); background: var(--lb-primary-soft); }
.tp-part:hover { color: var(--lb-primary); }
.tp-colon { font-size: 1.8rem; color: var(--lb-muted); }
.tp-period { display: flex; flex-direction: column; margin-left: auto; overflow: hidden; border: 1px solid var(--lb-border); border-radius: 10px; }
.tp-period button { padding: 0.2rem 0.65rem; font-size: 0.8rem; font-weight: 600; color: var(--lb-muted); background: transparent; border: 0; }
.tp-period button + button { border-top: 1px solid var(--lb-border); }
.tp-period button.is-active { color: var(--lb-primary); background: var(--lb-primary-soft); }
.tp-clock { display: block; width: 100%; max-width: 11.5rem; height: auto; margin: 0.5rem auto 0.2rem; cursor: pointer; outline: 0; touch-action: none; }
.tp-clock:focus-visible .tp-face { stroke: var(--lb-primary); stroke-width: 2; }
.tp-face { fill: var(--lb-hover); stroke: transparent; }
.tp-hand { stroke: var(--lb-primary); stroke-width: 2; }
.tp-pivot { fill: var(--lb-primary); }
.tp-knob { fill: var(--lb-primary); }
.tp-knob.is-small { fill: var(--lb-primary); }
.tp-numbers text { font-size: 14px; fill: var(--lb-ink); pointer-events: none; }
.tp-numbers text.is-selected { font-weight: 700; fill: #fff; }
.tp-actions { display: flex; align-items: center; gap: 0.2rem; padding-top: 0.2rem; }
.tp-actions button { padding: 0.4rem 0.7rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--lb-primary); background: transparent; border: 0; border-radius: 999px; }
.tp-actions button:hover { background: var(--lb-primary-soft); }
.tp-actions .tp-clear { font-weight: 500; color: var(--lb-muted); }
.tp-spacer { flex: 1; }
