}

.table-sort:hover {
  text-decoration: underline;
}

.route-place-editor {
  padding: 4px 6px;
}

.route-place-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 32px;
  align-items: center;
}

.route-place-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 30px;
  border: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
  border-radius: 999px;
  overflow: hidden;
  background: color-mix(in srgb, var(--panel) 78%, transparent);
  color: var(--ink);
  font-size: 12px;
  line-height: 1;
  cursor: grab;
  transition: border-color .15s ease, box-shadow .15s ease, opacity .15s ease, transform .15s ease;
}

.route-place-chip:active {
  cursor: grabbing;
}

.route-place-chip.is-dragging {
  opacity: .48;
}

.route-place-chip.is-drop-target {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 18%, transparent);
}

.route-place-number {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: 4px;
  border-radius: 50%;
  color: var(--panel);
  background: var(--accent);
  font-size: 11px;
  font-weight: var(--font-weight-medium);
}

.route-place-name {
  min-width: 0;
  max-width: 150px;
  padding: 0 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-place-chip button {
  display: inline-grid;
  place-items: center;
  width: 24px;
  min-height: 30px;
  border: 0;
  padding: 0;
  color: color-mix(in srgb, var(--ink) 72%, transparent);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
}

.route-place-chip button:hover:not(:disabled) {
  color: var(--ink);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.route-place-chip button:disabled {
  color: var(--muted);
  cursor: default;
  opacity: .35;
}

.route-place-add-chip {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px dashed color-mix(in srgb, var(--line) 88%, transparent);
  border-radius: 999px;
  color: var(--muted);
  background: color-mix(in srgb, var(--panel) 58%, transparent);
  cursor: pointer;
}

.route-place-add-chip:hover,
.route-place-add-chip:focus-within {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 9%, var(--panel));
}

.route-place-add-chip span {
  font-size: 18px;
  line-height: 1;
  transform: translateY(-1px);
  pointer-events: none;
}

.route-place-add {
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: 100%;
  border: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}

tr[data-dark="true"] .route-place-chip {
  border-color: rgba(255, 255, 255, .22);
  color: #fff;
  background: rgba(255, 255, 255, .1);
}

tr[data-dark="true"] .route-place-chip button {
  color: rgba(255, 255, 255, .72);
}

tr[data-dark="true"] .route-place-chip button:hover:not(:disabled) {
  color: #fff;
  background: rgba(255, 255, 255, .12);
}

tr[data-dark="true"] .route-place-add-chip {
  border-color: rgba(255, 255, 255, .24);
  color: rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .08);
}

.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid var(--field-border);
  border-radius: var(--radius-buttons);
  padding: 9px 14px;
  color: var(--ink);
  background: transparent;
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  line-height: 1.2;
  text-decoration: none;
}

.secondary-action:hover {
  background: var(--soft-surface);
}

