/* The time bar (src/ui/timebar.ts), which the desktop draws too. */

.tm {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  height: calc(44px + var(--bottom));
  padding: 0 4px var(--bottom) 8px;
  background: var(--band);
  display: flex; align-items: stretch;
}
.tm-chip {
  align-self: center;
  height: 26px; min-width: 58px; padding: 0 22px 0 11px;
  border-radius: 13px; background: var(--selected);
  font-size: 12px; font-weight: 700; white-space: nowrap;
  position: relative; flex: none;
}
.tm-chip::before { content: ""; position: absolute; inset: -9px -2px -9px -8px; }
.tm-caret { position: absolute; right: 7px; top: 11px; }
.tm-step {
  flex: none; width: 34px; margin-left: 1px;
  display: flex; align-items: center; justify-content: center;
  touch-action: none;
  -webkit-user-select: none; user-select: none;
}
.tm-step svg { opacity: 0.84; }
.tm-step.held svg { opacity: 1; }
.tm-step.dead { cursor: default; }
.tm-zone { flex: 1; min-width: 0; position: relative; touch-action: none; padding: 0 6px; }
.tm-track { position: absolute; left: 6px; right: 6px; top: 50%; height: 0; }
.tm-bare, .tm-held {
  position: absolute; top: -2px; height: 4px; border-radius: 2px;
}
.tm-bare { left: 0; right: 0; background: rgba(200, 210, 220, 0.2); }
.tm-held { background: rgba(120, 180, 255, 0.41); }
.tm-ticks { position: absolute; left: 0; right: 0; top: 0; }
.tm-tick { position: absolute; top: 5px; width: 1px; height: 4px; background: rgba(200, 210, 220, 0.235); }
.tm-voyage { position: absolute; top: 6px; height: 3px; border-radius: 1.5px; background: rgba(120, 180, 255, 0.82); }
.tm-now {
  position: absolute; top: -10.5px; width: 5px; height: 5px; margin-left: -2.5px;
  border-radius: 50%; background: rgba(255, 255, 255, 0.59);
}
.tm-stem { position: absolute; top: -19px; height: 19px; width: 1.5px; margin-left: -0.75px; background: rgba(120, 180, 255, 0.43); }
.tm-atdot {
  position: absolute; top: -3.5px; width: 7px; height: 7px; margin-left: -3.5px;
  border-radius: 50%; background: rgba(120, 180, 255, 0.86);
}
.tm-thumb {
  position: absolute; top: 0;
  height: 22px; line-height: 20px; padding: 0 8px;
  border-radius: 11px; background: var(--selected);
  border: 1.2px solid rgba(120, 180, 255, 0.8);
  font-size: 13px; font-weight: 700; white-space: nowrap;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: transform 90ms ease-out;
}
.tm-days {
  position: fixed; inset: 0; z-index: 45;
}
.tm-daylist {
  position: absolute; left: 8px; bottom: calc(44px + var(--bottom));
  background: var(--sheet); padding: 6px 0;
  border-radius: 6px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  max-height: 70dvh; overflow-y: auto;
  display: flex; flex-direction: column; min-width: 180px;
}
.tm-day {
  text-align: left; font-size: 17px; padding: 13px 30px 13px 22px;
  min-height: 48px; white-space: nowrap;
}
.tm-day.on { font-weight: 700; }
